@utilitywarehouse/hearth-react-native 0.35.8 → 0.36.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/build/components/Accordion/Accordion.d.ts +8 -8
- package/build/components/Accordion/AccordionContent.d.ts +1 -1
- package/build/components/Accordion/AccordionContentText.d.ts +1 -1
- package/build/components/Accordion/AccordionHeader.d.ts +1 -1
- package/build/components/Accordion/AccordionIcon.d.ts +1 -1
- package/build/components/Accordion/AccordionItemRoot.d.ts +1 -1
- package/build/components/Accordion/AccordionRoot.d.ts +1 -1
- package/build/components/Accordion/AccordionTitleText.d.ts +1 -1
- package/build/components/Accordion/AccordionTrigger.d.ts +1 -1
- package/build/components/Accordion/AccordionTrigger.js +1 -1
- package/build/components/Alert/Alert.d.ts +1 -1
- package/build/components/Alert/AlertCloseButton.d.ts +1 -1
- package/build/components/Alert/AlertContent.d.ts +1 -1
- package/build/components/Alert/AlertIcon.d.ts +1 -1
- package/build/components/Alert/AlertIconButton.d.ts +1 -1
- package/build/components/Alert/AlertLink.d.ts +1 -1
- package/build/components/Alert/AlertText.d.ts +1 -1
- package/build/components/Alert/AlertTitle.d.ts +1 -1
- package/build/components/Avatar/Avatar.d.ts +1 -1
- package/build/components/Badge/Badge.d.ts +1 -1
- package/build/components/Badge/BadgeIcon.d.ts +1 -1
- package/build/components/Badge/BadgeText.d.ts +1 -1
- package/build/components/Banner/Banner.d.ts +1 -1
- package/build/components/Banner/BannerIllustration.d.ts +1 -1
- package/build/components/Banner/BannerImage.d.ts +1 -1
- package/build/components/BodyText/BodyText.d.ts +1 -1
- package/build/components/BottomSheet/BottomSheet.d.ts +2 -1
- package/build/components/BottomSheet/BottomSheetBackdrop.d.ts +1 -1
- package/build/components/BottomSheet/BottomSheetFlatList.d.ts +1 -1
- package/build/components/BottomSheet/BottomSheetHandle.d.ts +1 -1
- package/build/components/BottomSheet/BottomSheetModal.d.ts +2 -1
- package/build/components/BottomSheet/BottomSheetModalProvider.d.ts +1 -1
- package/build/components/BottomSheet/BottomSheetScrollView.d.ts +1 -1
- package/build/components/BottomSheet/BottomSheetView.d.ts +1 -1
- package/build/components/BottomSheet/useBottomSheetLogic.d.ts +2 -2
- package/build/components/Box/Box.d.ts +2 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/Button/ButtonGroup.d.ts +1 -1
- package/build/components/Button/ButtonGroupRoot.d.ts +1 -1
- package/build/components/Button/ButtonIcon.d.ts +1 -1
- package/build/components/Button/ButtonIcon.js +3 -4
- package/build/components/Button/ButtonRoot.d.ts +1 -1
- package/build/components/Button/ButtonSpinner.d.ts +1 -1
- package/build/components/Button/ButtonText.d.ts +1 -1
- package/build/components/Card/Card.d.ts +3 -3
- package/build/components/Card/CardAction/CardAction.d.ts +210 -3
- package/build/components/Card/CardAction/CardAction.props.d.ts +2 -2
- package/build/components/Card/CardAction/CardActionContent.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionHelperText.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionIcon.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionIcon.js +1 -2
- package/build/components/Card/CardAction/CardActionLeadingContent.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionRoot.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionRoot.js +4 -0
- package/build/components/Card/CardAction/CardActionText.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionTrailingContent.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionTrailingIcon.d.ts +1 -1
- package/build/components/Card/CardAction/CardActionTrailingIcon.js +1 -2
- package/build/components/Card/CardActions.d.ts +1 -1
- package/build/components/Card/CardContent.d.ts +1 -1
- package/build/components/Card/CardPressHandler.d.ts +1 -1
- package/build/components/Card/CardRoot.d.ts +1 -1
- package/build/components/Card/CardRoot.js +5 -1
- package/build/components/Carousel/Carousel.d.ts +1 -1
- package/build/components/Carousel/CarouselControlItem.d.ts +4 -4
- package/build/components/Carousel/CarouselItem.d.ts +1 -1
- package/build/components/Center/Center.d.ts +1 -1
- package/build/components/Checkbox/Checkbox.d.ts +3 -3
- package/build/components/Checkbox/CheckboxGroup.d.ts +2 -1
- package/build/components/Checkbox/CheckboxGroupRoot.d.ts +1 -1
- package/build/components/Checkbox/CheckboxGroupTextContent.d.ts +1 -1
- package/build/components/Checkbox/CheckboxIcon.d.ts +1 -1
- package/build/components/Checkbox/CheckboxImage.d.ts +1 -1
- package/build/components/Checkbox/CheckboxIndicator.d.ts +1 -1
- package/build/components/Checkbox/CheckboxLabel.d.ts +1 -1
- package/build/components/Checkbox/CheckboxRoot.d.ts +1 -1
- package/build/components/Checkbox/CheckboxTextContent.d.ts +1 -1
- package/build/components/Checkbox/CheckboxTileRoot.d.ts +1 -1
- package/build/components/Combobox/Combobox.d.ts +2 -1
- package/build/components/Combobox/ComboboxOption.d.ts +1 -1
- package/build/components/Container/Container.d.ts +1 -1
- package/build/components/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/build/components/DateInput/DateInput.d.ts +1 -1
- package/build/components/DateInput/DateInputSegment.d.ts +1 -1
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/DatePicker/DatePickerCalendar.d.ts +1 -1
- package/build/components/DatePicker/DatePickerDay.d.ts +2 -2
- package/build/components/DatePicker/DatePickerDay.js +3 -3
- package/build/components/DatePicker/DatePickerDays.d.ts +1 -1
- package/build/components/DatePicker/DatePickerFooter.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/DatePickerMonthButton.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/DatePickerNextButton.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/DatePickerPrevButton.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/DatePickerSelectors.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/DatePickerTimeButton.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/DatePickerYearButton.d.ts +1 -1
- package/build/components/DatePicker/DatePickerHeader/index.d.ts +1 -1
- package/build/components/DatePicker/DatePickerMonths.d.ts +1 -1
- package/build/components/DatePicker/DatePickerWeekdays.d.ts +1 -1
- package/build/components/DatePicker/DatePickerYears.d.ts +1 -1
- package/build/components/DatePickerInput/DatePickerInput.d.ts +1 -1
- package/build/components/DatePickerInput/DatePickerInputDoneButton.d.ts +1 -1
- package/build/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/build/components/DescriptionList/DescriptionListItem.d.ts +1 -1
- package/build/components/DetailText/DetailText.d.ts +1 -1
- package/build/components/Divider/Divider.d.ts +1 -1
- package/build/components/Expandable/Expandable.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCard.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardContent.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardExpandedContent.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardGroup.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardHelperText.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardIcon.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardIcon.js +1 -2
- package/build/components/ExpandableCard/ExpandableCardLeadingContent.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardText.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardTrailingContent.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardTrailingIcon.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardTrailingIcon.js +1 -2
- package/build/components/ExpandableCard/ExpandableCardTrigger.d.ts +18 -3
- package/build/components/ExpandableCard/ExpandableCardTrigger.props.d.ts +3 -3
- package/build/components/ExpandableCard/ExpandableCardTriggerRoot.d.ts +1 -1
- package/build/components/ExpandableCard/ExpandableCardTriggerRoot.js +4 -0
- package/build/components/Flex/Flex.d.ts +1 -1
- package/build/components/FormField/FormFielInvalidIcon.d.ts +1 -1
- package/build/components/FormField/FormField.d.ts +4 -4
- package/build/components/FormField/FormFieldHelper.d.ts +1 -1
- package/build/components/FormField/FormFieldInvalid.d.ts +1 -1
- package/build/components/FormField/FormFieldLabel.d.ts +1 -1
- package/build/components/FormField/FormFieldRoot.d.ts +1 -1
- package/build/components/FormField/FormFieldValid.d.ts +1 -1
- package/build/components/FormField/FormFieldValidIcon.d.ts +1 -1
- package/build/components/Grid/Grid.d.ts +2 -1
- package/build/components/HTMLElements/ListItem.d.ts +1 -1
- package/build/components/HTMLElements/OrderedList.d.ts +2 -1
- package/build/components/HTMLElements/UnorderedList.d.ts +2 -1
- package/build/components/Heading/Heading.d.ts +1 -1
- package/build/components/Helper/Helper.d.ts +1 -1
- package/build/components/Helper/HelperIcon.d.ts +1 -1
- package/build/components/Helper/HelperIcon.js +1 -2
- package/build/components/Helper/HelperText.d.ts +1 -1
- package/build/components/HighlightBanner/HighlightBanner.d.ts +1 -1
- package/build/components/HighlightBanner/HighlightBannerImage.d.ts +1 -1
- package/build/components/IconButton/IconButton.d.ts +1 -1
- package/build/components/IconButton/IconButtonIcon.d.ts +1 -1
- package/build/components/IconButton/IconButtonIcon.js +3 -4
- package/build/components/IconButton/IconButtonRoot.d.ts +1 -1
- package/build/components/IconButton/IconButtonSpinner.d.ts +1 -1
- package/build/components/IconContainer/IconContainer.d.ts +1 -1
- package/build/components/Icons/CircleIcon.d.ts +2 -2
- package/build/components/IndicatorIconButton/IndicatorIconButton.d.ts +2 -1
- package/build/components/InlineLink/InlineLink.d.ts +1 -1
- package/build/components/InlineLink/InlineLinkRoot.d.ts +1 -1
- package/build/components/Input/InputIcon.d.ts +1 -1
- package/build/components/Input/InputIcon.js +1 -2
- package/build/components/Input/InputRoot.d.ts +1 -1
- package/build/components/Input/InputSlot.d.ts +1 -1
- package/build/components/Label/Label.d.ts +1 -1
- package/build/components/Link/Link.d.ts +2 -2
- package/build/components/Link/LinkIcon.d.ts +1 -1
- package/build/components/Link/LinkIcon.js +3 -4
- package/build/components/Link/LinkRoot.d.ts +1 -1
- package/build/components/Link/LinkText.d.ts +1 -1
- package/build/components/List/List.d.ts +2 -1
- package/build/components/List/ListAction/ListAction.d.ts +3 -3
- package/build/components/List/ListAction/ListAction.js +1 -0
- package/build/components/List/ListAction/ListActionContent.d.ts +1 -1
- package/build/components/List/ListAction/ListActionText.d.ts +1 -1
- package/build/components/List/ListAction/ListActionTrailingContent.d.ts +1 -1
- package/build/components/List/ListAction/ListActionTrailingIcon.d.ts +1 -1
- package/build/components/List/ListAction/ListActionTrailingIcon.js +1 -2
- package/build/components/List/ListItem/ListItem.d.ts +18 -3
- package/build/components/List/ListItem/ListItemContent.d.ts +1 -1
- package/build/components/List/ListItem/ListItemHeading.d.ts +2 -2
- package/build/components/List/ListItem/ListItemHelperText.d.ts +1 -1
- package/build/components/List/ListItem/ListItemHelperText.js +2 -8
- package/build/components/List/ListItem/ListItemIcon.d.ts +1 -1
- package/build/components/List/ListItem/ListItemIcon.js +1 -2
- package/build/components/List/ListItem/ListItemLeadingContent.d.ts +1 -1
- package/build/components/List/ListItem/ListItemRoot.d.ts +1 -1
- package/build/components/List/ListItem/ListItemRoot.js +1 -0
- package/build/components/List/ListItem/ListItemTrailingContent.d.ts +1 -1
- package/build/components/List/ListItem/ListItemTrailingIcon.d.ts +1 -1
- package/build/components/List/ListItem/ListItemTrailingIcon.js +1 -2
- package/build/components/Menu/MenuItem.d.ts +3 -3
- package/build/components/Modal/Modal.d.ts +1 -1
- package/build/components/Modal/Modal.web.d.ts +1 -1
- package/build/components/Modal/ModalImage.d.ts +1 -1
- package/build/components/NavModal/NavModal.d.ts +1 -1
- package/build/components/Pagination/Pagination.d.ts +1 -1
- package/build/components/PillGroup/Pill.d.ts +3 -3
- package/build/components/PillGroup/PillGroup.d.ts +1 -1
- package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/components/ProgressBar/ProgressBarCircular.d.ts +2 -1
- package/build/components/ProgressBar/ProgressBarLinear.d.ts +1 -1
- package/build/components/ProgressStepper/ProgressStep.d.ts +2 -1
- package/build/components/ProgressStepper/ProgressStepper.d.ts +2 -1
- package/build/components/ProgressStepper/ProgressStepperRoot.d.ts +2 -1
- package/build/components/Radio/Radio.d.ts +3 -3
- package/build/components/Radio/RadioGroup.d.ts +2 -1
- package/build/components/Radio/RadioGroupRoot.d.ts +1 -1
- package/build/components/Radio/RadioGroupTextContent.d.ts +1 -1
- package/build/components/Radio/RadioIcon.d.ts +1 -1
- package/build/components/Radio/RadioIcon.js +1 -3
- package/build/components/Radio/RadioImage.d.ts +1 -1
- package/build/components/Radio/RadioIndicator.d.ts +1 -1
- package/build/components/Radio/RadioLabel.d.ts +1 -1
- package/build/components/Radio/RadioRoot.d.ts +1 -1
- package/build/components/Radio/RadioTextContent.d.ts +1 -1
- package/build/components/Radio/RadioTileRoot.d.ts +1 -1
- package/build/components/RadioCard/RadioCard.d.ts +2 -2
- package/build/components/RadioCard/RadioCardGroup.d.ts +1 -1
- package/build/components/RadioCard/RadioCardIcon.d.ts +1 -1
- package/build/components/RadioCard/RadioCardIndicator.d.ts +1 -1
- package/build/components/RadioCard/RadioCardIndicator.js +0 -3
- package/build/components/RadioCard/RadioCardLabel.d.ts +1 -1
- package/build/components/RadioCard/RadioCardRoot.d.ts +1 -1
- package/build/components/RadioCard/RadioCardRoot.js +3 -3
- package/build/components/Rating/Rating.d.ts +1 -1
- package/build/components/Rating/RatingStarEmpty.d.ts +1 -1
- package/build/components/Rating/RatingStarFilled.d.ts +1 -1
- package/build/components/Roundel/Roundel.d.ts +1 -1
- package/build/components/SectionHeader/SectionHeader.d.ts +1 -1
- package/build/components/SectionHeader/SectionHeaderHeading.d.ts +1 -1
- package/build/components/SectionHeader/SectionHeaderHelperText.d.ts +1 -1
- package/build/components/SectionHeader/SectionHeaderTextContent.d.ts +1 -1
- package/build/components/SectionHeader/SectionHeaderTrailingContent.d.ts +1 -1
- package/build/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/build/components/SegmentedControl/SegmentedControlOption.d.ts +3 -3
- package/build/components/SegmentedControl/SegmentedControlOption.js +3 -0
- package/build/components/Select/Select.d.ts +2 -1
- package/build/components/Select/SelectOption.d.ts +1 -1
- package/build/components/Skeleton/Skeleton.d.ts +2 -1
- package/build/components/StepperInput/StepperButton.d.ts +3 -3
- package/build/components/StepperInput/StepperInput.d.ts +1 -1
- package/build/components/Switch/Switch.d.ts +1 -1
- package/build/components/Switch/Switch.js +27 -1
- package/build/components/Switch/Switch.web.d.ts +1 -1
- package/build/components/Switch/Switch.web.js +26 -1
- package/build/components/Table/Table.d.ts +1 -1
- package/build/components/Table/TableBody.d.ts +1 -1
- package/build/components/Table/TableCell.d.ts +1 -1
- package/build/components/Table/TableHeader.d.ts +1 -1
- package/build/components/Table/TableHeaderCell.d.ts +1 -1
- package/build/components/Table/TablePagination.d.ts +1 -1
- package/build/components/Table/TableRow.d.ts +1 -1
- package/build/components/Tabs/Tab.d.ts +3 -3
- package/build/components/Tabs/Tab.js +5 -5
- package/build/components/Tabs/TabPanel.d.ts +1 -1
- package/build/components/Tabs/Tabs.d.ts +1 -1
- package/build/components/Tabs/TabsList.d.ts +1 -1
- package/build/components/Textarea/Textarea.d.ts +1 -1
- package/build/components/Textarea/TextareaField.d.ts +1 -1
- package/build/components/Textarea/TextareaRoot.d.ts +1 -1
- package/build/components/ThemedImage/ThemedImage.d.ts +1 -1
- package/build/components/TimePicker/TimePicker.d.ts +1 -1
- package/build/components/TimePicker/TimePickerView.d.ts +1 -1
- package/build/components/TimePicker/TimePickerWheel.d.ts +1 -1
- package/build/components/TimePicker/TimePickerWheel.js +2 -2
- package/build/components/TimePicker/TimePickerWheel.web.d.ts +1 -1
- package/build/components/TimePickerInput/TimePickerInput.d.ts +1 -1
- package/build/components/TimePickerInput/TimePickerInputDoneButton.d.ts +1 -1
- package/build/components/Timeline/Timeline.d.ts +2 -1
- package/build/components/Timeline/TimelineItem.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +3 -3
- package/build/components/ToggleButton/ToggleButtonIcon.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButtonIcon.js +1 -2
- package/build/components/ToggleButton/ToggleButtonRoot.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButtonRoot.js +1 -1
- package/build/components/ToggleButton/ToggleButtonText.d.ts +1 -1
- package/build/components/ToggleButtonCard/ToggleButtonCard.d.ts +2 -2
- package/build/components/ToggleButtonCard/ToggleButtonCardGroup.d.ts +1 -1
- package/build/components/ToggleButtonCard/ToggleButtonCardRoot.d.ts +1 -1
- package/build/components/ToggleButtonCard/ToggleButtonCardRoot.js +0 -5
- package/build/components/UnstyledIconButton/UnstyledIconButton.d.ts +1 -1
- package/build/components/UnstyledIconButton/UnstyledIconButtonIcon.d.ts +1 -1
- package/build/components/UnstyledIconButton/UnstyledIconButtonIcon.js +3 -4
- package/build/components/UnstyledIconButton/UnstyledIconButtonRoot.d.ts +1 -1
- package/build/components/UnstyledIconButton/UnstyledIconButtonRoot.js +1 -1
- package/build/components/UnstyledIconButton/UnstyledIconButtonSpinner.d.ts +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.js +1 -1
- package/build/core/themes.d.ts +16 -16
- package/package.json +25 -26
- package/public/llms/components/badge.md +15 -0
- package/public/llms/components/body-text.md +15 -0
- package/public/llms/components/button.md +12 -0
- package/public/llms/components/description-list.md +32 -0
- package/public/llms/components/detail-text.md +5 -0
- package/public/llms/components/heading.md +10 -0
- package/public/llms/components/icon-button.md +39 -0
- package/public/llms/components/icon-container.md +16 -0
- package/public/llms/components/themed-image.md +2 -6
- package/public/llms/docs/{ai-tooling.md → ai-toolkit.md} +2 -2
- package/public/llms/docs/introduction.md +1 -1
- package/public/llms.txt +1 -1
|
@@ -4,17 +4,17 @@ declare const RadioGroup: import("react").ForwardRefExoticComponent<import("reac
|
|
|
4
4
|
}> & import("./RadioGroup.props").default & {
|
|
5
5
|
isCard?: boolean;
|
|
6
6
|
} & import("@gluestack-ui/radio/lib/typescript/types").IRadioGroupProps>;
|
|
7
|
-
declare const RadioIndicator: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("react-native
|
|
7
|
+
declare const RadioIndicator: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("react-native").ViewProps> & import("react-native").ViewProps>;
|
|
8
8
|
declare const RadioIcon: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("..").IconProps> & import("..").IconProps & {
|
|
9
9
|
forceMount?: boolean;
|
|
10
10
|
}>;
|
|
11
11
|
declare const RadioLabel: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("../Label/Label.props").default> & Omit<import("../Label/Label.props").default, "ref">>;
|
|
12
12
|
declare const Radio: {
|
|
13
|
-
({ children, label, disabled, helperIcon, helperText, badge, invalidText, validText, validationStatus: validation, showValidationIcon, type, image, ...props }: RadioProps): import("react
|
|
13
|
+
({ children, label, disabled, helperIcon, helperText, badge, invalidText, validText, validationStatus: validation, showValidationIcon, type, image, ...props }: RadioProps): import("react").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
declare const RadioTile: {
|
|
17
|
-
({ type, ...props }: RadioProps): import("react
|
|
17
|
+
({ type, ...props }: RadioProps): import("react").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
export { Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RadioTile };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import RadioGroupProps from './RadioGroup.props';
|
|
2
3
|
declare const RadioGroup: {
|
|
3
|
-
({ children, disabled, readonly, onChange, onValueChange, validationStatus, label, labelVariant, helperText, invalidText, validText, showValidationIcon, helperIcon, type, direction, gap, ...props }: RadioGroupProps):
|
|
4
|
+
({ children, disabled, readonly, onChange, onValueChange, validationStatus, label, labelVariant, helperText, invalidText, validText, showValidationIcon, helperIcon, type, direction, gap, ...props }: RadioGroupProps): React.JSX.Element;
|
|
4
5
|
displayName: string;
|
|
5
6
|
};
|
|
6
7
|
export default RadioGroup;
|
|
@@ -2,7 +2,7 @@ import RadioGroupProps from './RadioGroup.props';
|
|
|
2
2
|
declare const RadioGroupRoot: {
|
|
3
3
|
({ children, style, isCard, ...props }: RadioGroupProps & {
|
|
4
4
|
isCard?: boolean;
|
|
5
|
-
}): import("react
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export default RadioGroupRoot;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import FlexProps from '../Flex/Flex.props';
|
|
2
2
|
declare const RadioGroupTextContent: {
|
|
3
|
-
({ children, ...props }: FlexProps): import("react
|
|
3
|
+
({ children, ...props }: FlexProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default RadioGroupTextContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import IconProps from '../Icon/Icon.props';
|
|
2
2
|
declare const RadioIcon: {
|
|
3
|
-
({ style, ...props }: IconProps): import("react
|
|
3
|
+
({ style, ...props }: IconProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default RadioIcon;
|
|
@@ -6,10 +6,8 @@ import { CircleIcon } from '../Icons';
|
|
|
6
6
|
const RadioIcon = ({ style, ...props }) => {
|
|
7
7
|
return (_jsx(Icon, { as: CircleIcon, ...props, style: Platform.OS === 'web'
|
|
8
8
|
? {
|
|
9
|
-
// @ts-expect-error - style prop type issue
|
|
10
9
|
...styles.container,
|
|
11
|
-
|
|
12
|
-
...props.style,
|
|
10
|
+
...style,
|
|
13
11
|
}
|
|
14
12
|
: [styles.container, style] }));
|
|
15
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageProps } from 'react-native';
|
|
2
2
|
import { ThemedImageProps } from '../ThemedImage';
|
|
3
3
|
declare const RadioImage: {
|
|
4
|
-
({ ...props }: ImageProps | ThemedImageProps): import("react
|
|
4
|
+
({ ...props }: ImageProps | ThemedImageProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default RadioImage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LabelProps from '../Label/Label.props';
|
|
2
2
|
declare const RadioLabel: {
|
|
3
|
-
({ children, ...props }: LabelProps): import("react
|
|
3
|
+
({ children, ...props }: LabelProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default RadioLabel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import FlexProps from '../Flex/Flex.props';
|
|
2
2
|
declare const RadioTextContent: {
|
|
3
|
-
({ children, style, ...props }: FlexProps): import("react
|
|
3
|
+
({ children, style, ...props }: FlexProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default RadioTextContent;
|
|
@@ -2,7 +2,7 @@ import { ViewProps } from 'react-native';
|
|
|
2
2
|
declare const RadioTileRoot: {
|
|
3
3
|
({ children }: {
|
|
4
4
|
children: ViewProps["children"];
|
|
5
|
-
}): import("react
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export default RadioTileRoot;
|
|
@@ -6,11 +6,11 @@ declare const RadioCardIcon: import("react").ForwardRefExoticComponent<import("r
|
|
|
6
6
|
}>;
|
|
7
7
|
declare const RadioCardLabel: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("../Label/Label.props").default> & Omit<import("../Label/Label.props").default, "ref">>;
|
|
8
8
|
declare const RadioCardGroup: {
|
|
9
|
-
({ onChange, onValueChange, disabled, ...props }: RadioCardGroupProps): import("react
|
|
9
|
+
({ onChange, onValueChange, disabled, ...props }: RadioCardGroupProps): import("react").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
declare const RadioCard: {
|
|
13
|
-
({ children, label, labelVariant, contentStyle, ...props }: RadioCardProps): import("react
|
|
13
|
+
({ children, label, labelVariant, contentStyle, ...props }: RadioCardProps): import("react").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
export { RadioCard, RadioCardGroup, RadioCardIcon, RadioCardIndicator, RadioCardLabel };
|
|
@@ -2,7 +2,7 @@ import RadioCardGroupProps from './RadioCardGroup.props';
|
|
|
2
2
|
declare const RadioCardGroup: {
|
|
3
3
|
({ children, gap, style, flexDirection, flexWrap, justifyContent, alignItems, columns, disabled, isDisabled, ...props }: RadioCardGroupProps & {
|
|
4
4
|
isDisabled?: boolean;
|
|
5
|
-
}): import("react
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export default RadioCardGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import IconProps from '../Icon/Icon.props';
|
|
2
2
|
declare const RadioCardIcon: {
|
|
3
|
-
({ style, ...props }: IconProps): import("react
|
|
3
|
+
({ style, ...props }: IconProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default RadioCardIcon;
|
|
@@ -30,9 +30,6 @@ const styles = StyleSheet.create(theme => ({
|
|
|
30
30
|
_hover: {
|
|
31
31
|
outlineColor: theme.components.radio.outlineColorHover,
|
|
32
32
|
},
|
|
33
|
-
// '_focus-within': {
|
|
34
|
-
// ...theme.helpers.focusVisible,
|
|
35
|
-
// },
|
|
36
33
|
_active: {
|
|
37
34
|
outlineColor: theme.components.radio.outlineColorActive,
|
|
38
35
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LabelProps from '../Label/Label.props';
|
|
2
2
|
declare const RadioCardLabel: {
|
|
3
|
-
({ children, style, ...props }: LabelProps): import("react
|
|
3
|
+
({ children, style, ...props }: LabelProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default RadioCardLabel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type RatingProps from './Rating.props';
|
|
2
2
|
declare const Rating: {
|
|
3
|
-
({ variant, value, defaultValue, onChange, onValueChange, disabled, labels, rangeLabels, hideLabel, style, accessibilityLabel, ...props }: RatingProps): import("react
|
|
3
|
+
({ variant, value, defaultValue, onChange, onValueChange, disabled, labels, rangeLabels, hideLabel, style, accessibilityLabel, ...props }: RatingProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Rating;
|
|
@@ -2,5 +2,5 @@ type RatingStarProps = {
|
|
|
2
2
|
width?: number;
|
|
3
3
|
height?: number;
|
|
4
4
|
};
|
|
5
|
-
declare const RatingStarEmpty: ({ width, height }: RatingStarProps) => import("react
|
|
5
|
+
declare const RatingStarEmpty: ({ width, height }: RatingStarProps) => import("react").JSX.Element;
|
|
6
6
|
export default RatingStarEmpty;
|
|
@@ -2,5 +2,5 @@ type RatingStarProps = {
|
|
|
2
2
|
width?: number;
|
|
3
3
|
height?: number;
|
|
4
4
|
};
|
|
5
|
-
declare const RatingStarFilled: ({ width, height }: RatingStarProps) => import("react
|
|
5
|
+
declare const RatingStarFilled: ({ width, height }: RatingStarProps) => import("react").JSX.Element;
|
|
6
6
|
export default RatingStarFilled;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type RoundelProps from './Roundel.props';
|
|
2
2
|
declare const Roundel: {
|
|
3
|
-
({ variant, style, ...props }: RoundelProps): import("react
|
|
3
|
+
({ variant, style, ...props }: RoundelProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Roundel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import SectionHeaderProps from './SectionHeader.props';
|
|
2
2
|
declare const SectionHeader: {
|
|
3
|
-
({ heading, helperText, children, style, trailingContent, badge, invalidText, ...props }: SectionHeaderProps): import("react
|
|
3
|
+
({ heading, helperText, children, style, trailingContent, badge, invalidText, ...props }: SectionHeaderProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SectionHeader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import HeadingProps from '../Heading/Heading.props';
|
|
2
2
|
declare const SectionHeaderHeading: {
|
|
3
|
-
({ children, ...props }: HeadingProps): import("react
|
|
3
|
+
({ children, ...props }: HeadingProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SectionHeaderHeading;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import TextProps from '../BodyText/BodyText.props';
|
|
2
2
|
declare const SectionHeaderHelperText: {
|
|
3
|
-
({ children, ...props }: TextProps): import("react
|
|
3
|
+
({ children, ...props }: TextProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SectionHeaderHelperText;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ViewProps } from 'react-native';
|
|
2
2
|
declare const SectionHeaderTextContent: {
|
|
3
|
-
({ children, ...props }: ViewProps): import("react
|
|
3
|
+
({ children, ...props }: ViewProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SectionHeaderTextContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ViewProps } from 'react-native';
|
|
2
2
|
declare const SectionHeaderTrailingContent: {
|
|
3
|
-
({ children, ...props }: ViewProps): import("react
|
|
3
|
+
({ children, ...props }: ViewProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SectionHeaderTrailingContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type SegmentedControlProps from './SegmentedControl.props';
|
|
2
2
|
declare const SegmentedControl: {
|
|
3
|
-
({ value: controlledValue, defaultValue, onValueChange, size, disabled, children, style, ...props }: SegmentedControlProps): import("react
|
|
3
|
+
({ value: controlledValue, defaultValue, onValueChange, size, disabled, children, style, ...props }: SegmentedControlProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SegmentedControl;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type SegmentedControlOptionProps from './SegmentedControlOption.props';
|
|
2
|
-
declare const SegmentedControlOption: import("react").ForwardRefExoticComponent<SegmentedControlOptionProps & {
|
|
2
|
+
declare const SegmentedControlOption: import("react").ForwardRefExoticComponent<Omit<SegmentedControlOptionProps & {
|
|
3
3
|
states?: {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
} & Omit<
|
|
7
|
+
} & Omit<any, "children"> & {
|
|
8
8
|
tabIndex?: 0 | -1 | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
children?: import("react").ReactNode | (({ hovered, pressed, focused, focusVisible, disabled, }: {
|
|
@@ -14,5 +14,5 @@ declare const SegmentedControlOption: import("react").ForwardRefExoticComponent<
|
|
|
14
14
|
focusVisible?: boolean | undefined;
|
|
15
15
|
disabled?: boolean | undefined;
|
|
16
16
|
}) => import("react").ReactNode);
|
|
17
|
-
} & import("react").RefAttributes<unknown>>;
|
|
17
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
18
18
|
export default SegmentedControlOption;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import SelectProps from './Select.props';
|
|
2
3
|
declare const Select: {
|
|
3
|
-
({ options, value, onValueChange, label, labelVariant, placeholder, disabled, leadingIcon: LeadingIcon, validationStatus, helperText, helperIcon, invalidText, validText, required, children, bottomSheetProps, menuHeading, readonly, emptyText, listProps, searchable, searchPlaceholder, testID, ...rest }: SelectProps):
|
|
4
|
+
({ options, value, onValueChange, label, labelVariant, placeholder, disabled, leadingIcon: LeadingIcon, validationStatus, helperText, helperIcon, invalidText, validText, required, children, bottomSheetProps, menuHeading, readonly, emptyText, listProps, searchable, searchPlaceholder, testID, ...rest }: SelectProps): React.JSX.Element;
|
|
4
5
|
displayName: string;
|
|
5
6
|
};
|
|
6
7
|
export default Select;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOptionProps } from './Select.props';
|
|
2
2
|
declare const SelectOption: {
|
|
3
|
-
({ label, value, leadingIcon: LeftIcon, trailingIcon: RightIcon, selected, disabled, onPress, testID, }: SelectOptionProps): import("react
|
|
3
|
+
({ label, value, leadingIcon: LeftIcon, trailingIcon: RightIcon, selected, disabled, onPress, testID, }: SelectOptionProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default SelectOption;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type SkeletonProps from './Skeleton.props';
|
|
2
3
|
declare const Skeleton: {
|
|
3
|
-
({ width, height, backgroundColor: bg, borderRadius, style, ...props }: SkeletonProps):
|
|
4
|
+
({ width, height, backgroundColor: bg, borderRadius, style, ...props }: SkeletonProps): React.JSX.Element;
|
|
4
5
|
displayName: string;
|
|
5
6
|
};
|
|
6
7
|
export default Skeleton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import type { PressableProps } from 'react-native';
|
|
3
|
-
declare const StepperButton: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
declare const StepperButton: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
4
|
icon: ComponentType;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
} & Omit<PressableProps, "children"> & {
|
|
@@ -8,7 +8,7 @@ declare const StepperButton: import("react").ForwardRefExoticComponent<{
|
|
|
8
8
|
active?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
} & {
|
|
11
|
+
} & Omit<any, "children"> & {
|
|
12
12
|
tabIndex?: 0 | -1 | undefined;
|
|
13
13
|
} & {
|
|
14
14
|
children?: import("react").ReactNode | (({ hovered, pressed, focused, focusVisible, disabled, }: {
|
|
@@ -18,5 +18,5 @@ declare const StepperButton: import("react").ForwardRefExoticComponent<{
|
|
|
18
18
|
focusVisible?: boolean | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
}) => import("react").ReactNode);
|
|
21
|
-
} & import("react").RefAttributes<unknown>>;
|
|
21
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
22
22
|
export default StepperButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import StepperInputProps from './StepperInput.props';
|
|
2
2
|
declare const StepperInput: {
|
|
3
|
-
({ value, defaultValue, onChangeText, onChangeValue, min, max, step, focusInputOnStepPress, validationStatus, disabled, readonly, focused, inBottomSheet, required, label, labelVariant, helperText, helperIcon, validText, invalidText, style, decrementAccessibilityLabel, incrementAccessibilityLabel, onFocus, onBlur, ref, ...props }: StepperInputProps): import("react
|
|
3
|
+
({ value, defaultValue, onChangeText, onChangeValue, min, max, step, focusInputOnStepPress, validationStatus, disabled, readonly, focused, inBottomSheet, required, label, labelVariant, helperText, helperIcon, validText, invalidText, style, decrementAccessibilityLabel, incrementAccessibilityLabel, onFocus, onBlur, ref, ...props }: StepperInputProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default StepperInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import SwitchProps from './Switch.props';
|
|
2
|
-
declare const CustomSwitch: ({ value, onValueChange, disabled, size, ...accessibilityProps }: SwitchProps) => import("react
|
|
2
|
+
declare const CustomSwitch: ({ value, onValueChange, disabled, size, ...accessibilityProps }: SwitchProps) => import("react").JSX.Element;
|
|
3
3
|
export default CustomSwitch;
|
|
@@ -68,7 +68,7 @@ const CustomSwitch = ({ value = false, onValueChange, disabled = false, size = '
|
|
|
68
68
|
const onPressOut = () => {
|
|
69
69
|
scale.value = withSpring(1);
|
|
70
70
|
};
|
|
71
|
-
return (_jsx(Pressable, { onPress: toggleSwitch, onPressIn: onPressIn, onPressOut: onPressOut, disabled: disabled, "aria-checked": value, accessibilityRole: "switch", accessibilityState: { checked: value, disabled }, accessibilityLabel: accessibilityProps.accessibilityLabel, accessibilityHint: accessibilityProps.accessibilityHint, ...accessibilityProps, children: _jsx(Animated.View, { style: [styles.switch, animatedSwitchBackgroundStyle, animatedSwitchStyle], children: _jsxs(Animated.View, { style: [styles.thumb, animatedThumbStyle], children: [_jsx(Animated.View, { style: [styles.iconWrap, animatedTickStyle], children: (() => {
|
|
71
|
+
return (_jsx(Pressable, { onPress: toggleSwitch, onPressIn: onPressIn, onPressOut: onPressOut, disabled: disabled, "aria-checked": value, accessibilityRole: "switch", accessibilityState: { checked: value, disabled }, accessibilityLabel: accessibilityProps.accessibilityLabel, accessibilityHint: accessibilityProps.accessibilityHint, style: styles.pressable, ...accessibilityProps, children: _jsx(Animated.View, { style: [styles.switch, animatedSwitchBackgroundStyle, animatedSwitchStyle], children: _jsxs(Animated.View, { style: [styles.thumb, animatedThumbStyle], children: [_jsx(Animated.View, { style: [styles.iconWrap, animatedTickStyle], children: (() => {
|
|
72
72
|
const IconAny = Icon;
|
|
73
73
|
return _jsx(IconAny, { as: TickSmallIcon, style: styles.icon });
|
|
74
74
|
})() }), _jsx(Animated.View, { style: [styles.iconWrap, animatedCrossStyle], children: (() => {
|
|
@@ -77,6 +77,22 @@ const CustomSwitch = ({ value = false, onValueChange, disabled = false, size = '
|
|
|
77
77
|
})() })] }) }) }));
|
|
78
78
|
};
|
|
79
79
|
const styles = StyleSheet.create(theme => ({
|
|
80
|
+
pressable: {
|
|
81
|
+
position: 'relative',
|
|
82
|
+
variants: {
|
|
83
|
+
disabled: {
|
|
84
|
+
false: {
|
|
85
|
+
_web: {
|
|
86
|
+
'_focus-visible': { outline: 'none' },
|
|
87
|
+
'_focus-visible > div:nth-child(1)': {
|
|
88
|
+
...theme.helpers.focusVisible,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
true: {},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
80
96
|
switch: {
|
|
81
97
|
justifyContent: 'center',
|
|
82
98
|
variants: {
|
|
@@ -97,9 +113,19 @@ const styles = StyleSheet.create(theme => ({
|
|
|
97
113
|
value: {
|
|
98
114
|
true: {
|
|
99
115
|
backgroundColor: theme.color.interactive.brand.surface.strong.default,
|
|
116
|
+
_web: {
|
|
117
|
+
_hover: {
|
|
118
|
+
backgroundColor: theme.color.interactive.brand.surface.strong.hover,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
100
121
|
},
|
|
101
122
|
false: {
|
|
102
123
|
backgroundColor: theme.color.interactive.functional.surface.strong.default,
|
|
124
|
+
_web: {
|
|
125
|
+
_hover: {
|
|
126
|
+
backgroundColor: theme.color.interactive.functional.surface.strong.hover,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
103
129
|
},
|
|
104
130
|
},
|
|
105
131
|
disabled: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import SwitchProps from './Switch.props';
|
|
2
|
-
declare const CustomSwitch: ({ value, onValueChange, disabled, size, ...accessibilityProps }: SwitchProps) => import("react
|
|
2
|
+
declare const CustomSwitch: ({ value, onValueChange, disabled, size, ...accessibilityProps }: SwitchProps) => import("react").JSX.Element;
|
|
3
3
|
export default CustomSwitch;
|
|
@@ -67,7 +67,7 @@ const CustomSwitch = ({ value = false, onValueChange, disabled = false, size = '
|
|
|
67
67
|
const onPressOut = () => {
|
|
68
68
|
scale.value = withSpring(1);
|
|
69
69
|
};
|
|
70
|
-
return (_jsx(Pressable, { onPress: toggleSwitch, onPressIn: onPressIn, onPressOut: onPressOut, disabled: disabled, "aria-checked": value, accessibilityRole: "switch", accessibilityState: { checked: value, disabled }, accessibilityLabel: accessibilityProps.accessibilityLabel, accessibilityHint: accessibilityProps.accessibilityHint, ...accessibilityProps, children: _jsx(AnimatedView, { style: [styles.switch, animatedSwitchBackgroundStyle, animatedSwitchStyle], children: _jsxs(AnimatedView, { style: [styles.thumb, animatedThumbStyle], children: [_jsx(AnimatedView, { style: [styles.iconWrap, animatedTickStyle], children: (() => {
|
|
70
|
+
return (_jsx(Pressable, { onPress: toggleSwitch, onPressIn: onPressIn, onPressOut: onPressOut, disabled: disabled, "aria-checked": value, accessibilityRole: "switch", accessibilityState: { checked: value, disabled }, accessibilityLabel: accessibilityProps.accessibilityLabel, accessibilityHint: accessibilityProps.accessibilityHint, style: styles.pressable, ...accessibilityProps, children: _jsx(AnimatedView, { style: [styles.switch, animatedSwitchBackgroundStyle, animatedSwitchStyle], children: _jsxs(AnimatedView, { style: [styles.thumb, animatedThumbStyle], children: [_jsx(AnimatedView, { style: [styles.iconWrap, animatedTickStyle], children: (() => {
|
|
71
71
|
const IconAny = Icon;
|
|
72
72
|
return _jsx(IconAny, { as: TickSmallIcon, style: styles.icon });
|
|
73
73
|
})() }), _jsx(AnimatedView, { style: [styles.iconWrap, animatedCrossStyle], children: (() => {
|
|
@@ -76,6 +76,21 @@ const CustomSwitch = ({ value = false, onValueChange, disabled = false, size = '
|
|
|
76
76
|
})() })] }) }) }));
|
|
77
77
|
};
|
|
78
78
|
const styles = StyleSheet.create(theme => ({
|
|
79
|
+
pressable: {
|
|
80
|
+
position: 'relative',
|
|
81
|
+
variants: {
|
|
82
|
+
disabled: {
|
|
83
|
+
false: {
|
|
84
|
+
_web: {
|
|
85
|
+
'_focus-visible': { outline: 'none' },
|
|
86
|
+
'_focus-visible > div:nth-child(1)': {
|
|
87
|
+
...theme.helpers.focusVisible,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
79
94
|
switch: {
|
|
80
95
|
justifyContent: 'center',
|
|
81
96
|
variants: {
|
|
@@ -96,9 +111,19 @@ const styles = StyleSheet.create(theme => ({
|
|
|
96
111
|
value: {
|
|
97
112
|
true: {
|
|
98
113
|
backgroundColor: theme.color.interactive.brand.surface.strong.default,
|
|
114
|
+
_web: {
|
|
115
|
+
_hover: {
|
|
116
|
+
backgroundColor: theme.color.interactive.brand.surface.strong.hover,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
99
119
|
},
|
|
100
120
|
false: {
|
|
101
121
|
backgroundColor: theme.color.interactive.functional.surface.strong.default,
|
|
122
|
+
_web: {
|
|
123
|
+
_hover: {
|
|
124
|
+
backgroundColor: theme.color.interactive.functional.surface.strong.hover,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
102
127
|
},
|
|
103
128
|
},
|
|
104
129
|
disabled: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TableProps } from './Table.props';
|
|
2
2
|
declare const Table: {
|
|
3
|
-
({ children, columnWidths, container, pagination, style, ...props }: TableProps): import("react
|
|
3
|
+
({ children, columnWidths, container, pagination, style, ...props }: TableProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Table;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableBodyProps } from './Table.props';
|
|
2
2
|
declare const TableBody: {
|
|
3
|
-
({ children, ...props }: TableBodyProps): import("react
|
|
3
|
+
({ children, ...props }: TableBodyProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default TableBody;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableHeaderProps } from './Table.props';
|
|
2
2
|
declare const TableHeader: {
|
|
3
|
-
({ children, color, style, ...props }: TableHeaderProps): import("react
|
|
3
|
+
({ children, color, style, ...props }: TableHeaderProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default TableHeader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TablePaginationProps } from './Table.props';
|
|
2
2
|
declare const TablePagination: {
|
|
3
|
-
(props: TablePaginationProps): import("react
|
|
3
|
+
(props: TablePaginationProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default TablePagination;
|
|
@@ -2,7 +2,7 @@ import { TableRowProps } from './Table.props';
|
|
|
2
2
|
declare const TableRow: {
|
|
3
3
|
({ children, ...props }: TableRowProps & {
|
|
4
4
|
isLastRow?: boolean;
|
|
5
|
-
}): import("react
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export default TableRow;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type TabProps from './Tab.props';
|
|
2
|
-
declare const PressableTab: import("react").ForwardRefExoticComponent<TabProps & {
|
|
2
|
+
declare const PressableTab: import("react").ForwardRefExoticComponent<Omit<TabProps & {
|
|
3
3
|
states?: {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
} & Omit<
|
|
7
|
+
} & Omit<any, "children"> & {
|
|
8
8
|
tabIndex?: 0 | -1 | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
children?: import("react").ReactNode | (({ hovered, pressed, focused, focusVisible, disabled, }: {
|
|
@@ -14,5 +14,5 @@ declare const PressableTab: import("react").ForwardRefExoticComponent<TabProps &
|
|
|
14
14
|
focusVisible?: boolean | undefined;
|
|
15
15
|
disabled?: boolean | undefined;
|
|
16
16
|
}) => import("react").ReactNode);
|
|
17
|
-
} & import("react").RefAttributes<unknown>>;
|
|
17
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
18
18
|
export default PressableTab;
|