@gluestack-ui/core 3.0.0-alpha.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/CHANGELOG.md +85 -0
- package/accordion/aria.ts +1 -0
- package/accordion/creator.ts +1 -0
- package/actionsheet/creator.ts +1 -0
- package/alert/creator.ts +1 -0
- package/alert-dialog/creator.ts +1 -0
- package/avatar/creator.ts +1 -0
- package/button/aria.ts +1 -0
- package/button/creator.ts +1 -0
- package/checkbox/aria.ts +1 -0
- package/checkbox/creator.ts +1 -0
- package/fab/creator.ts +1 -0
- package/form-control/creator.ts +1 -0
- package/icon/creator.ts +1 -0
- package/image/creator.ts +1 -0
- package/input/creator.ts +1 -0
- package/lib/esm/accordion/aria/index.d.ts +3 -0
- package/lib/esm/accordion/aria/index.d.ts.map +1 -0
- package/lib/esm/accordion/aria/index.js +3 -0
- package/lib/esm/accordion/aria/index.js.map +1 -0
- package/lib/esm/accordion/aria/types.d.ts +5 -0
- package/lib/esm/accordion/aria/types.d.ts.map +1 -0
- package/lib/esm/accordion/aria/types.js +2 -0
- package/lib/esm/accordion/aria/types.js.map +1 -0
- package/lib/esm/accordion/aria/useAccordion.d.ts +14 -0
- package/lib/esm/accordion/aria/useAccordion.d.ts.map +1 -0
- package/lib/esm/accordion/aria/useAccordion.js +44 -0
- package/lib/esm/accordion/aria/useAccordion.js.map +1 -0
- package/lib/esm/accordion/aria/useAccordionItem.d.ts +24 -0
- package/lib/esm/accordion/aria/useAccordionItem.d.ts.map +1 -0
- package/lib/esm/accordion/aria/useAccordionItem.js +26 -0
- package/lib/esm/accordion/aria/useAccordionItem.js.map +1 -0
- package/lib/esm/accordion/creator/Accordion.d.ts +4 -0
- package/lib/esm/accordion/creator/Accordion.d.ts.map +1 -0
- package/lib/esm/accordion/creator/Accordion.jsx +40 -0
- package/lib/esm/accordion/creator/Accordion.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionContent.d.ts +3 -0
- package/lib/esm/accordion/creator/AccordionContent.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionContent.jsx +24 -0
- package/lib/esm/accordion/creator/AccordionContent.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionContentText.d.ts +3 -0
- package/lib/esm/accordion/creator/AccordionContentText.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionContentText.jsx +19 -0
- package/lib/esm/accordion/creator/AccordionContentText.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionHeader.d.ts +3 -0
- package/lib/esm/accordion/creator/AccordionHeader.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionHeader.jsx +19 -0
- package/lib/esm/accordion/creator/AccordionHeader.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionIcon.d.ts +3 -0
- package/lib/esm/accordion/creator/AccordionIcon.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionIcon.jsx +5 -0
- package/lib/esm/accordion/creator/AccordionIcon.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionItem.d.ts +4 -0
- package/lib/esm/accordion/creator/AccordionItem.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionItem.jsx +50 -0
- package/lib/esm/accordion/creator/AccordionItem.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionTitleText.d.ts +6 -0
- package/lib/esm/accordion/creator/AccordionTitleText.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionTitleText.jsx +26 -0
- package/lib/esm/accordion/creator/AccordionTitleText.jsx.map +1 -0
- package/lib/esm/accordion/creator/AccordionTrigger.d.ts +3 -0
- package/lib/esm/accordion/creator/AccordionTrigger.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AccordionTrigger.jsx +53 -0
- package/lib/esm/accordion/creator/AccordionTrigger.jsx.map +1 -0
- package/lib/esm/accordion/creator/AnimatedHeight.d.ts +4 -0
- package/lib/esm/accordion/creator/AnimatedHeight.d.ts.map +1 -0
- package/lib/esm/accordion/creator/AnimatedHeight.jsx +52 -0
- package/lib/esm/accordion/creator/AnimatedHeight.jsx.map +1 -0
- package/lib/esm/accordion/creator/Context.d.ts +3 -0
- package/lib/esm/accordion/creator/Context.d.ts.map +1 -0
- package/lib/esm/accordion/creator/Context.jsx +4 -0
- package/lib/esm/accordion/creator/Context.jsx.map +1 -0
- package/lib/esm/accordion/creator/index.d.ts +13 -0
- package/lib/esm/accordion/creator/index.d.ts.map +1 -0
- package/lib/esm/accordion/creator/index.jsx +27 -0
- package/lib/esm/accordion/creator/index.jsx.map +1 -0
- package/lib/esm/accordion/creator/types.d.ts +35 -0
- package/lib/esm/accordion/creator/types.d.ts.map +1 -0
- package/lib/esm/accordion/creator/types.js +2 -0
- package/lib/esm/accordion/creator/types.js.map +1 -0
- package/lib/esm/actionsheet/creator/Actionsheet.d.ts +3 -0
- package/lib/esm/actionsheet/creator/Actionsheet.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/Actionsheet.jsx +78 -0
- package/lib/esm/actionsheet/creator/Actionsheet.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetBackdrop.d.ts +6 -0
- package/lib/esm/actionsheet/creator/ActionsheetBackdrop.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetBackdrop.jsx +29 -0
- package/lib/esm/actionsheet/creator/ActionsheetBackdrop.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetContent.d.ts +4 -0
- package/lib/esm/actionsheet/creator/ActionsheetContent.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetContent.jsx +128 -0
- package/lib/esm/actionsheet/creator/ActionsheetContent.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetContentContext.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetContentContext.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetContentContext.jsx +3 -0
- package/lib/esm/actionsheet/creator/ActionsheetContentContext.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicator.d.ts +6 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicator.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicator.jsx +22 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicator.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicatorWrapper.d.ts +3 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicatorWrapper.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicatorWrapper.jsx +64 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicatorWrapper.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetFlatList.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetFlatList.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetFlatList.jsx +19 -0
- package/lib/esm/actionsheet/creator/ActionsheetFlatList.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetIcon.d.ts +3 -0
- package/lib/esm/actionsheet/creator/ActionsheetIcon.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetIcon.jsx +19 -0
- package/lib/esm/actionsheet/creator/ActionsheetIcon.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetItem.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetItem.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetItem.jsx +32 -0
- package/lib/esm/actionsheet/creator/ActionsheetItem.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetItemText.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetItemText.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetItemText.jsx +21 -0
- package/lib/esm/actionsheet/creator/ActionsheetItemText.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetScrollView.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetScrollView.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetScrollView.jsx +21 -0
- package/lib/esm/actionsheet/creator/ActionsheetScrollView.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionHeaderText.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionHeaderText.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionHeaderText.jsx +21 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionHeaderText.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionList.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionList.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionList.jsx +19 -0
- package/lib/esm/actionsheet/creator/ActionsheetSectionList.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetVirtualizedList.d.ts +5 -0
- package/lib/esm/actionsheet/creator/ActionsheetVirtualizedList.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetVirtualizedList.jsx +19 -0
- package/lib/esm/actionsheet/creator/ActionsheetVirtualizedList.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/actionsheet/creator/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/OverlayAnimatePresence.jsx +59 -0
- package/lib/esm/actionsheet/creator/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/context.d.ts +17 -0
- package/lib/esm/actionsheet/creator/context.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/context.js +17 -0
- package/lib/esm/actionsheet/creator/context.js.map +1 -0
- package/lib/esm/actionsheet/creator/index.d.ts +18 -0
- package/lib/esm/actionsheet/creator/index.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/index.jsx +24 -0
- package/lib/esm/actionsheet/creator/index.jsx.map +1 -0
- package/lib/esm/actionsheet/creator/types.d.ts +45 -0
- package/lib/esm/actionsheet/creator/types.d.ts.map +1 -0
- package/lib/esm/actionsheet/creator/types.js +2 -0
- package/lib/esm/actionsheet/creator/types.js.map +1 -0
- package/lib/esm/alert/creator/Alert.d.ts +3 -0
- package/lib/esm/alert/creator/Alert.d.ts.map +1 -0
- package/lib/esm/alert/creator/Alert.jsx +19 -0
- package/lib/esm/alert/creator/Alert.jsx.map +1 -0
- package/lib/esm/alert/creator/AlertIcon.d.ts +3 -0
- package/lib/esm/alert/creator/AlertIcon.d.ts.map +1 -0
- package/lib/esm/alert/creator/AlertIcon.jsx +19 -0
- package/lib/esm/alert/creator/AlertIcon.jsx.map +1 -0
- package/lib/esm/alert/creator/AlertText.d.ts +3 -0
- package/lib/esm/alert/creator/AlertText.d.ts.map +1 -0
- package/lib/esm/alert/creator/AlertText.jsx +19 -0
- package/lib/esm/alert/creator/AlertText.jsx.map +1 -0
- package/lib/esm/alert/creator/index.d.ts +8 -0
- package/lib/esm/alert/creator/index.d.ts.map +1 -0
- package/lib/esm/alert/creator/index.jsx +13 -0
- package/lib/esm/alert/creator/index.jsx.map +1 -0
- package/lib/esm/alert/creator/types.d.ts +11 -0
- package/lib/esm/alert/creator/types.d.ts.map +1 -0
- package/lib/esm/alert/creator/types.jsx +2 -0
- package/lib/esm/alert/creator/types.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialog.d.ts +3 -0
- package/lib/esm/alert-dialog/creator/AlertDialog.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialog.jsx +70 -0
- package/lib/esm/alert-dialog/creator/AlertDialog.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBackdrop.d.ts +6 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBackdrop.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBackdrop.jsx +29 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBackdrop.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBody.d.ts +4 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBody.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBody.jsx +18 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBody.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogCloseButton.d.ts +4 -0
- package/lib/esm/alert-dialog/creator/AlertDialogCloseButton.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogCloseButton.jsx +44 -0
- package/lib/esm/alert-dialog/creator/AlertDialogCloseButton.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogContent.d.ts +4 -0
- package/lib/esm/alert-dialog/creator/AlertDialogContent.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogContent.jsx +64 -0
- package/lib/esm/alert-dialog/creator/AlertDialogContent.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogFooter.d.ts +4 -0
- package/lib/esm/alert-dialog/creator/AlertDialogFooter.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogFooter.jsx +20 -0
- package/lib/esm/alert-dialog/creator/AlertDialogFooter.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogHeader.d.ts +4 -0
- package/lib/esm/alert-dialog/creator/AlertDialogHeader.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogHeader.jsx +20 -0
- package/lib/esm/alert-dialog/creator/AlertDialogHeader.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/Context.d.ts +11 -0
- package/lib/esm/alert-dialog/creator/Context.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/Context.js +11 -0
- package/lib/esm/alert-dialog/creator/Context.js.map +1 -0
- package/lib/esm/alert-dialog/creator/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/alert-dialog/creator/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/OverlayAnimatePresence.jsx +57 -0
- package/lib/esm/alert-dialog/creator/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/index.d.ts +12 -0
- package/lib/esm/alert-dialog/creator/index.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/index.jsx +25 -0
- package/lib/esm/alert-dialog/creator/index.jsx.map +1 -0
- package/lib/esm/alert-dialog/creator/types.d.ts +28 -0
- package/lib/esm/alert-dialog/creator/types.d.ts.map +1 -0
- package/lib/esm/alert-dialog/creator/types.js +2 -0
- package/lib/esm/alert-dialog/creator/types.js.map +1 -0
- package/lib/esm/avatar/creator/Avatar.d.ts +4 -0
- package/lib/esm/avatar/creator/Avatar.d.ts.map +1 -0
- package/lib/esm/avatar/creator/Avatar.jsx +20 -0
- package/lib/esm/avatar/creator/Avatar.jsx.map +1 -0
- package/lib/esm/avatar/creator/AvatarBadge.d.ts +4 -0
- package/lib/esm/avatar/creator/AvatarBadge.d.ts.map +1 -0
- package/lib/esm/avatar/creator/AvatarBadge.jsx +20 -0
- package/lib/esm/avatar/creator/AvatarBadge.jsx.map +1 -0
- package/lib/esm/avatar/creator/AvatarFallbackText.d.ts +3 -0
- package/lib/esm/avatar/creator/AvatarFallbackText.d.ts.map +1 -0
- package/lib/esm/avatar/creator/AvatarFallbackText.jsx +36 -0
- package/lib/esm/avatar/creator/AvatarFallbackText.jsx.map +1 -0
- package/lib/esm/avatar/creator/AvatarGroup.d.ts +4 -0
- package/lib/esm/avatar/creator/AvatarGroup.d.ts.map +1 -0
- package/lib/esm/avatar/creator/AvatarGroup.jsx +20 -0
- package/lib/esm/avatar/creator/AvatarGroup.jsx.map +1 -0
- package/lib/esm/avatar/creator/AvatarImage.d.ts +4 -0
- package/lib/esm/avatar/creator/AvatarImage.d.ts.map +1 -0
- package/lib/esm/avatar/creator/AvatarImage.jsx +35 -0
- package/lib/esm/avatar/creator/AvatarImage.jsx.map +1 -0
- package/lib/esm/avatar/creator/index.d.ts +10 -0
- package/lib/esm/avatar/creator/index.d.ts.map +1 -0
- package/lib/esm/avatar/creator/index.jsx +19 -0
- package/lib/esm/avatar/creator/index.jsx.map +1 -0
- package/lib/esm/avatar/creator/types.d.ts +15 -0
- package/lib/esm/avatar/creator/types.d.ts.map +1 -0
- package/lib/esm/avatar/creator/types.js +2 -0
- package/lib/esm/avatar/creator/types.js.map +1 -0
- package/lib/esm/button/aria/index.d.ts +3 -0
- package/lib/esm/button/aria/index.d.ts.map +1 -0
- package/lib/esm/button/aria/index.js +3 -0
- package/lib/esm/button/aria/index.js.map +1 -0
- package/lib/esm/button/aria/index.web.d.ts +3 -0
- package/lib/esm/button/aria/index.web.d.ts.map +1 -0
- package/lib/esm/button/aria/index.web.js +3 -0
- package/lib/esm/button/aria/index.web.js.map +1 -0
- package/lib/esm/button/aria/useButton.d.ts +16 -0
- package/lib/esm/button/aria/useButton.d.ts.map +1 -0
- package/lib/esm/button/aria/useButton.js +33 -0
- package/lib/esm/button/aria/useButton.js.map +1 -0
- package/lib/esm/button/aria/useToggleButton.d.ts +14 -0
- package/lib/esm/button/aria/useToggleButton.d.ts.map +1 -0
- package/lib/esm/button/aria/useToggleButton.js +13 -0
- package/lib/esm/button/aria/useToggleButton.js.map +1 -0
- package/lib/esm/button/aria/useToggleButton.web.d.ts +5 -0
- package/lib/esm/button/aria/useToggleButton.web.d.ts.map +1 -0
- package/lib/esm/button/aria/useToggleButton.web.js +14 -0
- package/lib/esm/button/aria/useToggleButton.web.js.map +1 -0
- package/lib/esm/button/creator/Button.d.ts +11 -0
- package/lib/esm/button/creator/Button.d.ts.map +1 -0
- package/lib/esm/button/creator/Button.jsx +71 -0
- package/lib/esm/button/creator/Button.jsx.map +1 -0
- package/lib/esm/button/creator/ButtonGroup.d.ts +3 -0
- package/lib/esm/button/creator/ButtonGroup.d.ts.map +1 -0
- package/lib/esm/button/creator/ButtonGroup.jsx +73 -0
- package/lib/esm/button/creator/ButtonGroup.jsx.map +1 -0
- package/lib/esm/button/creator/ButtonIcon.d.ts +3 -0
- package/lib/esm/button/creator/ButtonIcon.d.ts.map +1 -0
- package/lib/esm/button/creator/ButtonIcon.jsx +13 -0
- package/lib/esm/button/creator/ButtonIcon.jsx.map +1 -0
- package/lib/esm/button/creator/ButtonSpinner.d.ts +3 -0
- package/lib/esm/button/creator/ButtonSpinner.d.ts.map +1 -0
- package/lib/esm/button/creator/ButtonSpinner.jsx +19 -0
- package/lib/esm/button/creator/ButtonSpinner.jsx.map +1 -0
- package/lib/esm/button/creator/ButtonText.d.ts +3 -0
- package/lib/esm/button/creator/ButtonText.d.ts.map +1 -0
- package/lib/esm/button/creator/ButtonText.jsx +33 -0
- package/lib/esm/button/creator/ButtonText.jsx.map +1 -0
- package/lib/esm/button/creator/Context.d.ts +3 -0
- package/lib/esm/button/creator/Context.d.ts.map +1 -0
- package/lib/esm/button/creator/Context.jsx +4 -0
- package/lib/esm/button/creator/Context.jsx.map +1 -0
- package/lib/esm/button/creator/index.d.ts +10 -0
- package/lib/esm/button/creator/index.d.ts.map +1 -0
- package/lib/esm/button/creator/index.jsx +19 -0
- package/lib/esm/button/creator/index.jsx.map +1 -0
- package/lib/esm/button/creator/types.d.ts +25 -0
- package/lib/esm/button/creator/types.d.ts.map +1 -0
- package/lib/esm/button/creator/types.js +2 -0
- package/lib/esm/button/creator/types.js.map +1 -0
- package/lib/esm/checkbox/aria/index.d.ts +4 -0
- package/lib/esm/checkbox/aria/index.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/index.js +4 -0
- package/lib/esm/checkbox/aria/index.js.map +1 -0
- package/lib/esm/checkbox/aria/index.web.d.ts +4 -0
- package/lib/esm/checkbox/aria/index.web.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/index.web.js +4 -0
- package/lib/esm/checkbox/aria/index.web.js.map +1 -0
- package/lib/esm/checkbox/aria/useCheckbox.d.ts +9 -0
- package/lib/esm/checkbox/aria/useCheckbox.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/useCheckbox.js +16 -0
- package/lib/esm/checkbox/aria/useCheckbox.js.map +1 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.d.ts +9 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.js +14 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.js.map +1 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.d.ts +9 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.js +10 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.js.map +1 -0
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.d.ts +6 -0
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.js +22 -0
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.js.map +1 -0
- package/lib/esm/checkbox/aria/utils.d.ts +3 -0
- package/lib/esm/checkbox/aria/utils.d.ts.map +1 -0
- package/lib/esm/checkbox/aria/utils.js +2 -0
- package/lib/esm/checkbox/aria/utils.js.map +1 -0
- package/lib/esm/checkbox/creator/Checkbox.d.ts +3 -0
- package/lib/esm/checkbox/creator/Checkbox.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/Checkbox.jsx +76 -0
- package/lib/esm/checkbox/creator/Checkbox.jsx.map +1 -0
- package/lib/esm/checkbox/creator/Checkbox.web.d.ts +3 -0
- package/lib/esm/checkbox/creator/Checkbox.web.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/Checkbox.web.jsx +88 -0
- package/lib/esm/checkbox/creator/Checkbox.web.jsx.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxGroup.d.ts +5 -0
- package/lib/esm/checkbox/creator/CheckboxGroup.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxGroup.jsx +29 -0
- package/lib/esm/checkbox/creator/CheckboxGroup.jsx.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxGroupContext.d.ts +5 -0
- package/lib/esm/checkbox/creator/CheckboxGroupContext.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxGroupContext.jsx +3 -0
- package/lib/esm/checkbox/creator/CheckboxGroupContext.jsx.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxIcon.d.ts +4 -0
- package/lib/esm/checkbox/creator/CheckboxIcon.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxIcon.jsx +25 -0
- package/lib/esm/checkbox/creator/CheckboxIcon.jsx.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxIndicator.d.ts +4 -0
- package/lib/esm/checkbox/creator/CheckboxIndicator.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxIndicator.jsx +42 -0
- package/lib/esm/checkbox/creator/CheckboxIndicator.jsx.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxLabel.d.ts +4 -0
- package/lib/esm/checkbox/creator/CheckboxLabel.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxLabel.jsx +42 -0
- package/lib/esm/checkbox/creator/CheckboxLabel.jsx.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxProvider.d.ts +5 -0
- package/lib/esm/checkbox/creator/CheckboxProvider.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/CheckboxProvider.jsx +3 -0
- package/lib/esm/checkbox/creator/CheckboxProvider.jsx.map +1 -0
- package/lib/esm/checkbox/creator/context.d.ts +21 -0
- package/lib/esm/checkbox/creator/context.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/context.jsx +64 -0
- package/lib/esm/checkbox/creator/context.jsx.map +1 -0
- package/lib/esm/checkbox/creator/index.d.ts +9 -0
- package/lib/esm/checkbox/creator/index.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/index.js +19 -0
- package/lib/esm/checkbox/creator/index.js.map +1 -0
- package/lib/esm/checkbox/creator/types.d.ts +33 -0
- package/lib/esm/checkbox/creator/types.d.ts.map +1 -0
- package/lib/esm/checkbox/creator/types.js +2 -0
- package/lib/esm/checkbox/creator/types.js.map +1 -0
- package/lib/esm/divider/creator/Divider.d.ts +3 -0
- package/lib/esm/divider/creator/Divider.d.ts.map +1 -0
- package/lib/esm/divider/creator/Divider.jsx +23 -0
- package/lib/esm/divider/creator/Divider.jsx.map +1 -0
- package/lib/esm/divider/creator/index.d.ts +6 -0
- package/lib/esm/divider/creator/index.d.ts.map +1 -0
- package/lib/esm/divider/creator/index.jsx +7 -0
- package/lib/esm/divider/creator/index.jsx.map +1 -0
- package/lib/esm/divider/creator/types.d.ts +7 -0
- package/lib/esm/divider/creator/types.d.ts.map +1 -0
- package/lib/esm/divider/creator/types.jsx +2 -0
- package/lib/esm/divider/creator/types.jsx.map +1 -0
- package/lib/esm/fab/creator/Fab.d.ts +4 -0
- package/lib/esm/fab/creator/Fab.d.ts.map +1 -0
- package/lib/esm/fab/creator/Fab.jsx +41 -0
- package/lib/esm/fab/creator/Fab.jsx.map +1 -0
- package/lib/esm/fab/creator/FabIcon.d.ts +3 -0
- package/lib/esm/fab/creator/FabIcon.d.ts.map +1 -0
- package/lib/esm/fab/creator/FabIcon.jsx +5 -0
- package/lib/esm/fab/creator/FabIcon.jsx.map +1 -0
- package/lib/esm/fab/creator/FabLabel.d.ts +4 -0
- package/lib/esm/fab/creator/FabLabel.d.ts.map +1 -0
- package/lib/esm/fab/creator/FabLabel.jsx +22 -0
- package/lib/esm/fab/creator/FabLabel.jsx.map +1 -0
- package/lib/esm/fab/creator/index.d.ts +7 -0
- package/lib/esm/fab/creator/index.d.ts.map +1 -0
- package/lib/esm/fab/creator/index.jsx +12 -0
- package/lib/esm/fab/creator/index.jsx.map +1 -0
- package/lib/esm/fab/creator/types.d.ts +13 -0
- package/lib/esm/fab/creator/types.d.ts.map +1 -0
- package/lib/esm/fab/creator/types.js +2 -0
- package/lib/esm/fab/creator/types.js.map +1 -0
- package/lib/esm/form-control/creator/FormControl.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControl.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControl.jsx +29 -0
- package/lib/esm/form-control/creator/FormControl.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlError.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlError.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlError.jsx +31 -0
- package/lib/esm/form-control/creator/FormControlError.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlErrorIcon.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlErrorIcon.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlErrorIcon.jsx +20 -0
- package/lib/esm/form-control/creator/FormControlErrorIcon.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlErrorText.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlErrorText.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlErrorText.jsx +20 -0
- package/lib/esm/form-control/creator/FormControlErrorText.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlHelper.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlHelper.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlHelper.jsx +30 -0
- package/lib/esm/form-control/creator/FormControlHelper.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlHelperText.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlHelperText.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlHelperText.jsx +20 -0
- package/lib/esm/form-control/creator/FormControlHelperText.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlLabel.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlLabel.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlLabel.jsx +38 -0
- package/lib/esm/form-control/creator/FormControlLabel.jsx.map +1 -0
- package/lib/esm/form-control/creator/FormControlLabelText.d.ts +4 -0
- package/lib/esm/form-control/creator/FormControlLabelText.d.ts.map +1 -0
- package/lib/esm/form-control/creator/FormControlLabelText.jsx +20 -0
- package/lib/esm/form-control/creator/FormControlLabelText.jsx.map +1 -0
- package/lib/esm/form-control/creator/index.d.ts +14 -0
- package/lib/esm/form-control/creator/index.d.ts.map +1 -0
- package/lib/esm/form-control/creator/index.jsx +31 -0
- package/lib/esm/form-control/creator/index.jsx.map +1 -0
- package/lib/esm/form-control/creator/types.d.ts +26 -0
- package/lib/esm/form-control/creator/types.d.ts.map +1 -0
- package/lib/esm/form-control/creator/types.jsx +2 -0
- package/lib/esm/form-control/creator/types.jsx.map +1 -0
- package/lib/esm/form-control/creator/useFormControl.d.ts +21 -0
- package/lib/esm/form-control/creator/useFormControl.d.ts.map +1 -0
- package/lib/esm/form-control/creator/useFormControl.jsx +64 -0
- package/lib/esm/form-control/creator/useFormControl.jsx.map +1 -0
- package/lib/esm/icon/creator/createIcon/index.d.ts +21 -0
- package/lib/esm/icon/creator/createIcon/index.d.ts.map +1 -0
- package/lib/esm/icon/creator/createIcon/index.jsx +70 -0
- package/lib/esm/icon/creator/createIcon/index.jsx.map +1 -0
- package/lib/esm/icon/creator/createIcon/index.web.d.ts +21 -0
- package/lib/esm/icon/creator/createIcon/index.web.d.ts.map +1 -0
- package/lib/esm/icon/creator/createIcon/index.web.jsx +69 -0
- package/lib/esm/icon/creator/createIcon/index.web.jsx.map +1 -0
- package/lib/esm/icon/creator/index.d.ts +4 -0
- package/lib/esm/icon/creator/index.d.ts.map +1 -0
- package/lib/esm/icon/creator/index.jsx +3 -0
- package/lib/esm/icon/creator/index.jsx.map +1 -0
- package/lib/esm/icon/creator/index.web.d.ts +4 -0
- package/lib/esm/icon/creator/index.web.d.ts.map +1 -0
- package/lib/esm/icon/creator/index.web.jsx +3 -0
- package/lib/esm/icon/creator/index.web.jsx.map +1 -0
- package/lib/esm/icon/creator/primitiveIcon/index.d.ts +21 -0
- package/lib/esm/icon/creator/primitiveIcon/index.d.ts.map +1 -0
- package/lib/esm/icon/creator/primitiveIcon/index.jsx +48 -0
- package/lib/esm/icon/creator/primitiveIcon/index.jsx.map +1 -0
- package/lib/esm/icon/creator/primitiveIcon/index.web.d.ts +21 -0
- package/lib/esm/icon/creator/primitiveIcon/index.web.d.ts.map +1 -0
- package/lib/esm/icon/creator/primitiveIcon/index.web.jsx +59 -0
- package/lib/esm/icon/creator/primitiveIcon/index.web.jsx.map +1 -0
- package/lib/esm/image/creator/Image.d.ts +3 -0
- package/lib/esm/image/creator/Image.d.ts.map +1 -0
- package/lib/esm/image/creator/Image.jsx +47 -0
- package/lib/esm/image/creator/Image.jsx.map +1 -0
- package/lib/esm/image/creator/index.d.ts +6 -0
- package/lib/esm/image/creator/index.d.ts.map +1 -0
- package/lib/esm/image/creator/index.jsx +7 -0
- package/lib/esm/image/creator/index.jsx.map +1 -0
- package/lib/esm/image/creator/types.d.ts +10 -0
- package/lib/esm/image/creator/types.d.ts.map +1 -0
- package/lib/esm/image/creator/types.js +2 -0
- package/lib/esm/image/creator/types.js.map +1 -0
- package/lib/esm/index.d.ts +36 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.jsx +36 -0
- package/lib/esm/index.jsx.map +1 -0
- package/lib/esm/input/creator/Input.d.ts +3 -0
- package/lib/esm/input/creator/Input.d.ts.map +1 -0
- package/lib/esm/input/creator/Input.jsx +69 -0
- package/lib/esm/input/creator/Input.jsx.map +1 -0
- package/lib/esm/input/creator/InputContext.d.ts +8 -0
- package/lib/esm/input/creator/InputContext.d.ts.map +1 -0
- package/lib/esm/input/creator/InputContext.jsx +3 -0
- package/lib/esm/input/creator/InputContext.jsx.map +1 -0
- package/lib/esm/input/creator/InputGroup.d.ts +3 -0
- package/lib/esm/input/creator/InputGroup.d.ts.map +1 -0
- package/lib/esm/input/creator/InputGroup.jsx +53 -0
- package/lib/esm/input/creator/InputGroup.jsx.map +1 -0
- package/lib/esm/input/creator/InputIcon.d.ts +3 -0
- package/lib/esm/input/creator/InputIcon.d.ts.map +1 -0
- package/lib/esm/input/creator/InputIcon.jsx +19 -0
- package/lib/esm/input/creator/InputIcon.jsx.map +1 -0
- package/lib/esm/input/creator/InputSlot.d.ts +3 -0
- package/lib/esm/input/creator/InputSlot.d.ts.map +1 -0
- package/lib/esm/input/creator/InputSlot.jsx +37 -0
- package/lib/esm/input/creator/InputSlot.jsx.map +1 -0
- package/lib/esm/input/creator/index.d.ts +8 -0
- package/lib/esm/input/creator/index.d.ts.map +1 -0
- package/lib/esm/input/creator/index.jsx +16 -0
- package/lib/esm/input/creator/index.jsx.map +1 -0
- package/lib/esm/input/creator/types.d.ts +38 -0
- package/lib/esm/input/creator/types.d.ts.map +1 -0
- package/lib/esm/input/creator/types.js +2 -0
- package/lib/esm/input/creator/types.js.map +1 -0
- package/lib/esm/link/creator/Context.d.ts +15 -0
- package/lib/esm/link/creator/Context.d.ts.map +1 -0
- package/lib/esm/link/creator/Context.js +10 -0
- package/lib/esm/link/creator/Context.js.map +1 -0
- package/lib/esm/link/creator/Link.d.ts +3 -0
- package/lib/esm/link/creator/Link.d.ts.map +1 -0
- package/lib/esm/link/creator/Link.jsx +70 -0
- package/lib/esm/link/creator/Link.jsx.map +1 -0
- package/lib/esm/link/creator/LinkText.d.ts +3 -0
- package/lib/esm/link/creator/LinkText.d.ts.map +1 -0
- package/lib/esm/link/creator/LinkText.jsx +33 -0
- package/lib/esm/link/creator/LinkText.jsx.map +1 -0
- package/lib/esm/link/creator/UseLink.d.ts +9 -0
- package/lib/esm/link/creator/UseLink.d.ts.map +1 -0
- package/lib/esm/link/creator/UseLink.js +37 -0
- package/lib/esm/link/creator/UseLink.js.map +1 -0
- package/lib/esm/link/creator/index.d.ts +9 -0
- package/lib/esm/link/creator/index.d.ts.map +1 -0
- package/lib/esm/link/creator/index.jsx +11 -0
- package/lib/esm/link/creator/index.jsx.map +1 -0
- package/lib/esm/link/creator/types.d.ts +23 -0
- package/lib/esm/link/creator/types.d.ts.map +1 -0
- package/lib/esm/link/creator/types.jsx +2 -0
- package/lib/esm/link/creator/types.jsx.map +1 -0
- package/lib/esm/menu/aria/index.d.ts +5 -0
- package/lib/esm/menu/aria/index.d.ts.map +1 -0
- package/lib/esm/menu/aria/index.js +5 -0
- package/lib/esm/menu/aria/index.js.map +1 -0
- package/lib/esm/menu/aria/index.web.d.ts +5 -0
- package/lib/esm/menu/aria/index.web.d.ts.map +1 -0
- package/lib/esm/menu/aria/index.web.js +5 -0
- package/lib/esm/menu/aria/index.web.js.map +1 -0
- package/lib/esm/menu/aria/useMenu.d.ts +15 -0
- package/lib/esm/menu/aria/useMenu.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenu.js +8 -0
- package/lib/esm/menu/aria/useMenu.js.map +1 -0
- package/lib/esm/menu/aria/useMenu.web.d.ts +5 -0
- package/lib/esm/menu/aria/useMenu.web.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenu.web.js +8 -0
- package/lib/esm/menu/aria/useMenu.web.js.map +1 -0
- package/lib/esm/menu/aria/useMenuItem.d.ts +21 -0
- package/lib/esm/menu/aria/useMenuItem.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenuItem.js +20 -0
- package/lib/esm/menu/aria/useMenuItem.js.map +1 -0
- package/lib/esm/menu/aria/useMenuItem.web.d.ts +22 -0
- package/lib/esm/menu/aria/useMenuItem.web.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenuItem.web.js +102 -0
- package/lib/esm/menu/aria/useMenuItem.web.js.map +1 -0
- package/lib/esm/menu/aria/useMenuSection.d.ts +13 -0
- package/lib/esm/menu/aria/useMenuSection.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenuSection.js +22 -0
- package/lib/esm/menu/aria/useMenuSection.js.map +1 -0
- package/lib/esm/menu/aria/useMenuTrigger.d.ts +13 -0
- package/lib/esm/menu/aria/useMenuTrigger.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenuTrigger.js +11 -0
- package/lib/esm/menu/aria/useMenuTrigger.js.map +1 -0
- package/lib/esm/menu/aria/useMenuTrigger.web.d.ts +12 -0
- package/lib/esm/menu/aria/useMenuTrigger.web.d.ts.map +1 -0
- package/lib/esm/menu/aria/useMenuTrigger.web.js +14 -0
- package/lib/esm/menu/aria/useMenuTrigger.web.js.map +1 -0
- package/lib/esm/menu/creator/Menu.d.ts +3 -0
- package/lib/esm/menu/creator/Menu.d.ts.map +1 -0
- package/lib/esm/menu/creator/Menu.jsx +90 -0
- package/lib/esm/menu/creator/Menu.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuContext.d.ts +5 -0
- package/lib/esm/menu/creator/MenuContext.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuContext.js +6 -0
- package/lib/esm/menu/creator/MenuContext.js.map +1 -0
- package/lib/esm/menu/creator/MenuItem.d.ts +3 -0
- package/lib/esm/menu/creator/MenuItem.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuItem.jsx +68 -0
- package/lib/esm/menu/creator/MenuItem.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuItemLabel.d.ts +4 -0
- package/lib/esm/menu/creator/MenuItemLabel.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuItemLabel.jsx +20 -0
- package/lib/esm/menu/creator/MenuItemLabel.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuItemStately.d.ts +2 -0
- package/lib/esm/menu/creator/MenuItemStately.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuItemStately.jsx +2 -0
- package/lib/esm/menu/creator/MenuItemStately.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/Backdrop.d.ts +4 -0
- package/lib/esm/menu/creator/MenuPopover/Backdrop.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/Backdrop.jsx +25 -0
- package/lib/esm/menu/creator/MenuPopover/Backdrop.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/menu/creator/MenuPopover/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/OverlayAnimatePresence.jsx +57 -0
- package/lib/esm/menu/creator/MenuPopover/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.d.ts +3 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.jsx +87 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.web.d.ts +3 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.web.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.web.jsx +35 -0
- package/lib/esm/menu/creator/MenuPopover/Popover.web.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContent.d.ts +4 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContent.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContent.jsx +81 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContent.jsx.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContext.d.ts +5 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContext.d.ts.map +1 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContext.js +3 -0
- package/lib/esm/menu/creator/MenuPopover/PopoverContext.js.map +1 -0
- package/lib/esm/menu/creator/Separator.d.ts +7 -0
- package/lib/esm/menu/creator/Separator.d.ts.map +1 -0
- package/lib/esm/menu/creator/Separator.jsx +14 -0
- package/lib/esm/menu/creator/Separator.jsx.map +1 -0
- package/lib/esm/menu/creator/index.d.ts +11 -0
- package/lib/esm/menu/creator/index.d.ts.map +1 -0
- package/lib/esm/menu/creator/index.jsx +20 -0
- package/lib/esm/menu/creator/index.jsx.map +1 -0
- package/lib/esm/menu/creator/types.d.ts +32 -0
- package/lib/esm/menu/creator/types.d.ts.map +1 -0
- package/lib/esm/menu/creator/types.js +2 -0
- package/lib/esm/menu/creator/types.js.map +1 -0
- package/lib/esm/menu/creator/useTypeSelect.d.ts +2 -0
- package/lib/esm/menu/creator/useTypeSelect.d.ts.map +1 -0
- package/lib/esm/menu/creator/useTypeSelect.js +22 -0
- package/lib/esm/menu/creator/useTypeSelect.js.map +1 -0
- package/lib/esm/modal/creator/Context.d.ts +11 -0
- package/lib/esm/modal/creator/Context.d.ts.map +1 -0
- package/lib/esm/modal/creator/Context.js +11 -0
- package/lib/esm/modal/creator/Context.js.map +1 -0
- package/lib/esm/modal/creator/Modal.d.ts +4 -0
- package/lib/esm/modal/creator/Modal.d.ts.map +1 -0
- package/lib/esm/modal/creator/Modal.jsx +73 -0
- package/lib/esm/modal/creator/Modal.jsx.map +1 -0
- package/lib/esm/modal/creator/ModalBackdrop.d.ts +4 -0
- package/lib/esm/modal/creator/ModalBackdrop.d.ts.map +1 -0
- package/lib/esm/modal/creator/ModalBackdrop.jsx +27 -0
- package/lib/esm/modal/creator/ModalBackdrop.jsx.map +1 -0
- package/lib/esm/modal/creator/ModalBody.d.ts +4 -0
- package/lib/esm/modal/creator/ModalBody.d.ts.map +1 -0
- package/lib/esm/modal/creator/ModalBody.jsx +20 -0
- package/lib/esm/modal/creator/ModalBody.jsx.map +1 -0
- package/lib/esm/modal/creator/ModalCloseButton.d.ts +4 -0
- package/lib/esm/modal/creator/ModalCloseButton.d.ts.map +1 -0
- package/lib/esm/modal/creator/ModalCloseButton.jsx +41 -0
- package/lib/esm/modal/creator/ModalCloseButton.jsx.map +1 -0
- package/lib/esm/modal/creator/ModalContent.d.ts +4 -0
- package/lib/esm/modal/creator/ModalContent.d.ts.map +1 -0
- package/lib/esm/modal/creator/ModalContent.jsx +68 -0
- package/lib/esm/modal/creator/ModalContent.jsx.map +1 -0
- package/lib/esm/modal/creator/ModalFooter.d.ts +4 -0
- package/lib/esm/modal/creator/ModalFooter.d.ts.map +1 -0
- package/lib/esm/modal/creator/ModalFooter.jsx +20 -0
- package/lib/esm/modal/creator/ModalFooter.jsx.map +1 -0
- package/lib/esm/modal/creator/ModalHeader.d.ts +4 -0
- package/lib/esm/modal/creator/ModalHeader.d.ts.map +1 -0
- package/lib/esm/modal/creator/ModalHeader.jsx +20 -0
- package/lib/esm/modal/creator/ModalHeader.jsx.map +1 -0
- package/lib/esm/modal/creator/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/modal/creator/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/modal/creator/OverlayAnimatePresence.jsx +57 -0
- package/lib/esm/modal/creator/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/modal/creator/index.d.ts +13 -0
- package/lib/esm/modal/creator/index.d.ts.map +1 -0
- package/lib/esm/modal/creator/index.jsx +26 -0
- package/lib/esm/modal/creator/index.jsx.map +1 -0
- package/lib/esm/modal/creator/types.d.ts +24 -0
- package/lib/esm/modal/creator/types.d.ts.map +1 -0
- package/lib/esm/modal/creator/types.js +2 -0
- package/lib/esm/modal/creator/types.js.map +1 -0
- package/lib/esm/overlay/aria/Portal.d.ts +15 -0
- package/lib/esm/overlay/aria/Portal.d.ts.map +1 -0
- package/lib/esm/overlay/aria/Portal.jsx +95 -0
- package/lib/esm/overlay/aria/Portal.jsx.map +1 -0
- package/lib/esm/overlay/aria/index.d.ts +6 -0
- package/lib/esm/overlay/aria/index.d.ts.map +1 -0
- package/lib/esm/overlay/aria/index.js +6 -0
- package/lib/esm/overlay/aria/index.js.map +1 -0
- package/lib/esm/overlay/aria/index.web.d.ts +6 -0
- package/lib/esm/overlay/aria/index.web.d.ts.map +1 -0
- package/lib/esm/overlay/aria/index.web.js +6 -0
- package/lib/esm/overlay/aria/index.web.js.map +1 -0
- package/lib/esm/overlay/aria/useOverlay.d.ts +15 -0
- package/lib/esm/overlay/aria/useOverlay.d.ts.map +1 -0
- package/lib/esm/overlay/aria/useOverlay.js +6 -0
- package/lib/esm/overlay/aria/useOverlay.js.map +1 -0
- package/lib/esm/overlay/aria/useOverlay.web.d.ts +15 -0
- package/lib/esm/overlay/aria/useOverlay.web.d.ts.map +1 -0
- package/lib/esm/overlay/aria/useOverlay.web.js +38 -0
- package/lib/esm/overlay/aria/useOverlay.web.js.map +1 -0
- package/lib/esm/overlay/aria/useOverlayPosition.d.ts +54 -0
- package/lib/esm/overlay/aria/useOverlayPosition.d.ts.map +1 -0
- package/lib/esm/overlay/aria/useOverlayPosition.js +283 -0
- package/lib/esm/overlay/aria/useOverlayPosition.js.map +1 -0
- package/lib/esm/overlay/aria/useOverlayPosition.web.d.ts +2 -0
- package/lib/esm/overlay/aria/useOverlayPosition.web.d.ts.map +1 -0
- package/lib/esm/overlay/aria/useOverlayPosition.web.js +2 -0
- package/lib/esm/overlay/aria/useOverlayPosition.web.js.map +1 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.d.ts +12 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.d.ts.map +1 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.js +9 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.js.map +1 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.web.d.ts +2 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.web.d.ts.map +1 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.web.js +2 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.web.js.map +1 -0
- package/lib/esm/overlay/aria/usePreventScroll.d.ts +6 -0
- package/lib/esm/overlay/aria/usePreventScroll.d.ts.map +1 -0
- package/lib/esm/overlay/aria/usePreventScroll.js +2 -0
- package/lib/esm/overlay/aria/usePreventScroll.js.map +1 -0
- package/lib/esm/overlay/aria/usePreventScroll.web.d.ts +2 -0
- package/lib/esm/overlay/aria/usePreventScroll.web.d.ts.map +1 -0
- package/lib/esm/overlay/aria/usePreventScroll.web.js +2 -0
- package/lib/esm/overlay/aria/usePreventScroll.web.js.map +1 -0
- package/lib/esm/overlay/aria/utils.d.ts +2 -0
- package/lib/esm/overlay/aria/utils.d.ts.map +1 -0
- package/lib/esm/overlay/aria/utils.js +14 -0
- package/lib/esm/overlay/aria/utils.js.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/index.d.ts +2 -0
- package/lib/esm/overlay/aria/web/overlays/index.d.ts.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/index.js +2 -0
- package/lib/esm/overlay/aria/web/overlays/index.js.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.d.ts +43 -0
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.d.ts.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.js +256 -0
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.js.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/index.d.ts +2 -0
- package/lib/esm/overlay/aria/web/overlays/src/index.d.ts.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/index.js +2 -0
- package/lib/esm/overlay/aria/web/overlays/src/index.js.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.d.ts +10 -0
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.d.ts.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.js +25 -0
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.js.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.d.ts +21 -0
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.d.ts.map +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.js +113 -0
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.js.map +1 -0
- package/lib/esm/overlay/creator/index.d.ts +21 -0
- package/lib/esm/overlay/creator/index.d.ts.map +1 -0
- package/lib/esm/overlay/creator/index.jsx +45 -0
- package/lib/esm/overlay/creator/index.jsx.map +1 -0
- package/lib/esm/popover/creator/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/popover/creator/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/popover/creator/OverlayAnimatePresence.jsx +57 -0
- package/lib/esm/popover/creator/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/popover/creator/Popover.d.ts +3 -0
- package/lib/esm/popover/creator/Popover.d.ts.map +1 -0
- package/lib/esm/popover/creator/Popover.jsx +117 -0
- package/lib/esm/popover/creator/Popover.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverArrow.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverArrow.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverArrow.jsx +65 -0
- package/lib/esm/popover/creator/PopoverArrow.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverBackdrop.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverBackdrop.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverBackdrop.jsx +26 -0
- package/lib/esm/popover/creator/PopoverBackdrop.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverBody.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverBody.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverBody.jsx +34 -0
- package/lib/esm/popover/creator/PopoverBody.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverCloseButton.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverCloseButton.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverCloseButton.jsx +45 -0
- package/lib/esm/popover/creator/PopoverCloseButton.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverContent.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverContent.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverContent.jsx +164 -0
- package/lib/esm/popover/creator/PopoverContent.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverContext.d.ts +9 -0
- package/lib/esm/popover/creator/PopoverContext.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverContext.jsx +4 -0
- package/lib/esm/popover/creator/PopoverContext.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverFooter.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverFooter.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverFooter.jsx +20 -0
- package/lib/esm/popover/creator/PopoverFooter.jsx.map +1 -0
- package/lib/esm/popover/creator/PopoverHeader.d.ts +4 -0
- package/lib/esm/popover/creator/PopoverHeader.d.ts.map +1 -0
- package/lib/esm/popover/creator/PopoverHeader.jsx +34 -0
- package/lib/esm/popover/creator/PopoverHeader.jsx.map +1 -0
- package/lib/esm/popover/creator/index.d.ts +13 -0
- package/lib/esm/popover/creator/index.d.ts.map +1 -0
- package/lib/esm/popover/creator/index.jsx +28 -0
- package/lib/esm/popover/creator/index.jsx.map +1 -0
- package/lib/esm/popover/creator/types.d.ts +33 -0
- package/lib/esm/popover/creator/types.d.ts.map +1 -0
- package/lib/esm/popover/creator/types.js +2 -0
- package/lib/esm/popover/creator/types.js.map +1 -0
- package/lib/esm/popover/creator/utils.d.ts +37 -0
- package/lib/esm/popover/creator/utils.d.ts.map +1 -0
- package/lib/esm/popover/creator/utils.js +43 -0
- package/lib/esm/popover/creator/utils.js.map +1 -0
- package/lib/esm/pressable/creator/Pressable.d.ts +15 -0
- package/lib/esm/pressable/creator/Pressable.d.ts.map +1 -0
- package/lib/esm/pressable/creator/Pressable.jsx +52 -0
- package/lib/esm/pressable/creator/Pressable.jsx.map +1 -0
- package/lib/esm/pressable/creator/index.d.ts +4 -0
- package/lib/esm/pressable/creator/index.d.ts.map +1 -0
- package/lib/esm/pressable/creator/index.jsx +7 -0
- package/lib/esm/pressable/creator/index.jsx.map +1 -0
- package/lib/esm/progress/creator/Progress.d.ts +3 -0
- package/lib/esm/progress/creator/Progress.d.ts.map +1 -0
- package/lib/esm/progress/creator/Progress.jsx +44 -0
- package/lib/esm/progress/creator/Progress.jsx.map +1 -0
- package/lib/esm/progress/creator/ProgressContext.d.ts +5 -0
- package/lib/esm/progress/creator/ProgressContext.d.ts.map +1 -0
- package/lib/esm/progress/creator/ProgressContext.jsx +3 -0
- package/lib/esm/progress/creator/ProgressContext.jsx.map +1 -0
- package/lib/esm/progress/creator/ProgressFilledTrack.d.ts +3 -0
- package/lib/esm/progress/creator/ProgressFilledTrack.d.ts.map +1 -0
- package/lib/esm/progress/creator/ProgressFilledTrack.jsx +24 -0
- package/lib/esm/progress/creator/ProgressFilledTrack.jsx.map +1 -0
- package/lib/esm/progress/creator/index.d.ts +6 -0
- package/lib/esm/progress/creator/index.d.ts.map +1 -0
- package/lib/esm/progress/creator/index.jsx +10 -0
- package/lib/esm/progress/creator/index.jsx.map +1 -0
- package/lib/esm/progress/creator/types.d.ts +12 -0
- package/lib/esm/progress/creator/types.d.ts.map +1 -0
- package/lib/esm/progress/creator/types.js +2 -0
- package/lib/esm/progress/creator/types.js.map +1 -0
- package/lib/esm/radio/aria/index.d.ts +3 -0
- package/lib/esm/radio/aria/index.d.ts.map +1 -0
- package/lib/esm/radio/aria/index.js +3 -0
- package/lib/esm/radio/aria/index.js.map +1 -0
- package/lib/esm/radio/aria/index.web.d.ts +3 -0
- package/lib/esm/radio/aria/index.web.d.ts.map +1 -0
- package/lib/esm/radio/aria/index.web.js +3 -0
- package/lib/esm/radio/aria/index.web.js.map +1 -0
- package/lib/esm/radio/aria/useRadio.d.ts +13 -0
- package/lib/esm/radio/aria/useRadio.d.ts.map +1 -0
- package/lib/esm/radio/aria/useRadio.js +25 -0
- package/lib/esm/radio/aria/useRadio.js.map +1 -0
- package/lib/esm/radio/aria/useRadioGroup.d.ts +11 -0
- package/lib/esm/radio/aria/useRadioGroup.d.ts.map +1 -0
- package/lib/esm/radio/aria/useRadioGroup.js +13 -0
- package/lib/esm/radio/aria/useRadioGroup.js.map +1 -0
- package/lib/esm/radio/aria/useRadioGroup.web.d.ts +9 -0
- package/lib/esm/radio/aria/useRadioGroup.web.d.ts.map +1 -0
- package/lib/esm/radio/aria/useRadioGroup.web.js +12 -0
- package/lib/esm/radio/aria/useRadioGroup.web.js.map +1 -0
- package/lib/esm/radio/creator/Radio.d.ts +4 -0
- package/lib/esm/radio/creator/Radio.d.ts.map +1 -0
- package/lib/esm/radio/creator/Radio.jsx +77 -0
- package/lib/esm/radio/creator/Radio.jsx.map +1 -0
- package/lib/esm/radio/creator/Radio.web.d.ts +4 -0
- package/lib/esm/radio/creator/Radio.web.d.ts.map +1 -0
- package/lib/esm/radio/creator/Radio.web.jsx +89 -0
- package/lib/esm/radio/creator/Radio.web.jsx.map +1 -0
- package/lib/esm/radio/creator/RadioGroup.d.ts +3 -0
- package/lib/esm/radio/creator/RadioGroup.d.ts.map +1 -0
- package/lib/esm/radio/creator/RadioGroup.jsx +31 -0
- package/lib/esm/radio/creator/RadioGroup.jsx.map +1 -0
- package/lib/esm/radio/creator/RadioGroupContext.d.ts +5 -0
- package/lib/esm/radio/creator/RadioGroupContext.d.ts.map +1 -0
- package/lib/esm/radio/creator/RadioGroupContext.jsx +3 -0
- package/lib/esm/radio/creator/RadioGroupContext.jsx.map +1 -0
- package/lib/esm/radio/creator/RadioIcon.d.ts +3 -0
- package/lib/esm/radio/creator/RadioIcon.d.ts.map +1 -0
- package/lib/esm/radio/creator/RadioIcon.jsx +24 -0
- package/lib/esm/radio/creator/RadioIcon.jsx.map +1 -0
- package/lib/esm/radio/creator/RadioIndicator.d.ts +3 -0
- package/lib/esm/radio/creator/RadioIndicator.d.ts.map +1 -0
- package/lib/esm/radio/creator/RadioIndicator.jsx +41 -0
- package/lib/esm/radio/creator/RadioIndicator.jsx.map +1 -0
- package/lib/esm/radio/creator/RadioLabel.d.ts +3 -0
- package/lib/esm/radio/creator/RadioLabel.d.ts.map +1 -0
- package/lib/esm/radio/creator/RadioLabel.jsx +41 -0
- package/lib/esm/radio/creator/RadioLabel.jsx.map +1 -0
- package/lib/esm/radio/creator/RadioProvider.d.ts +5 -0
- package/lib/esm/radio/creator/RadioProvider.d.ts.map +1 -0
- package/lib/esm/radio/creator/RadioProvider.jsx +3 -0
- package/lib/esm/radio/creator/RadioProvider.jsx.map +1 -0
- package/lib/esm/radio/creator/context.d.ts +21 -0
- package/lib/esm/radio/creator/context.d.ts.map +1 -0
- package/lib/esm/radio/creator/context.jsx +64 -0
- package/lib/esm/radio/creator/context.jsx.map +1 -0
- package/lib/esm/radio/creator/index.d.ts +9 -0
- package/lib/esm/radio/creator/index.d.ts.map +1 -0
- package/lib/esm/radio/creator/index.js +19 -0
- package/lib/esm/radio/creator/index.js.map +1 -0
- package/lib/esm/radio/creator/types.d.ts +28 -0
- package/lib/esm/radio/creator/types.d.ts.map +1 -0
- package/lib/esm/radio/creator/types.js +2 -0
- package/lib/esm/radio/creator/types.js.map +1 -0
- package/lib/esm/select/creator/Select.d.ts +3 -0
- package/lib/esm/select/creator/Select.d.ts.map +1 -0
- package/lib/esm/select/creator/Select.jsx +101 -0
- package/lib/esm/select/creator/Select.jsx.map +1 -0
- package/lib/esm/select/creator/SelectBackdrop.d.ts +3 -0
- package/lib/esm/select/creator/SelectBackdrop.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectBackdrop.jsx +23 -0
- package/lib/esm/select/creator/SelectBackdrop.jsx.map +1 -0
- package/lib/esm/select/creator/SelectContent.d.ts +3 -0
- package/lib/esm/select/creator/SelectContent.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectContent.jsx +23 -0
- package/lib/esm/select/creator/SelectContent.jsx.map +1 -0
- package/lib/esm/select/creator/SelectContext.d.ts +4 -0
- package/lib/esm/select/creator/SelectContext.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectContext.js +4 -0
- package/lib/esm/select/creator/SelectContext.js.map +1 -0
- package/lib/esm/select/creator/SelectDragIndicator.d.ts +3 -0
- package/lib/esm/select/creator/SelectDragIndicator.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectDragIndicator.jsx +23 -0
- package/lib/esm/select/creator/SelectDragIndicator.jsx.map +1 -0
- package/lib/esm/select/creator/SelectDragIndicatorWrapper.d.ts +3 -0
- package/lib/esm/select/creator/SelectDragIndicatorWrapper.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectDragIndicatorWrapper.jsx +23 -0
- package/lib/esm/select/creator/SelectDragIndicatorWrapper.jsx.map +1 -0
- package/lib/esm/select/creator/SelectFlatList.d.ts +3 -0
- package/lib/esm/select/creator/SelectFlatList.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectFlatList.jsx +27 -0
- package/lib/esm/select/creator/SelectFlatList.jsx.map +1 -0
- package/lib/esm/select/creator/SelectIcon.d.ts +3 -0
- package/lib/esm/select/creator/SelectIcon.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectIcon.jsx +19 -0
- package/lib/esm/select/creator/SelectIcon.jsx.map +1 -0
- package/lib/esm/select/creator/SelectInput.d.ts +3 -0
- package/lib/esm/select/creator/SelectInput.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectInput.jsx +26 -0
- package/lib/esm/select/creator/SelectInput.jsx.map +1 -0
- package/lib/esm/select/creator/SelectItem.d.ts +3 -0
- package/lib/esm/select/creator/SelectItem.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectItem.jsx +37 -0
- package/lib/esm/select/creator/SelectItem.jsx.map +1 -0
- package/lib/esm/select/creator/SelectPortal.d.ts +3 -0
- package/lib/esm/select/creator/SelectPortal.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectPortal.jsx +72 -0
- package/lib/esm/select/creator/SelectPortal.jsx.map +1 -0
- package/lib/esm/select/creator/SelectScrollView.d.ts +3 -0
- package/lib/esm/select/creator/SelectScrollView.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectScrollView.jsx +23 -0
- package/lib/esm/select/creator/SelectScrollView.jsx.map +1 -0
- package/lib/esm/select/creator/SelectSectionHeaderText.d.ts +3 -0
- package/lib/esm/select/creator/SelectSectionHeaderText.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectSectionHeaderText.jsx +23 -0
- package/lib/esm/select/creator/SelectSectionHeaderText.jsx.map +1 -0
- package/lib/esm/select/creator/SelectSectionList.d.ts +3 -0
- package/lib/esm/select/creator/SelectSectionList.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectSectionList.jsx +29 -0
- package/lib/esm/select/creator/SelectSectionList.jsx.map +1 -0
- package/lib/esm/select/creator/SelectTrigger.d.ts +3 -0
- package/lib/esm/select/creator/SelectTrigger.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectTrigger.jsx +41 -0
- package/lib/esm/select/creator/SelectTrigger.jsx.map +1 -0
- package/lib/esm/select/creator/SelectVirtualizedList.d.ts +3 -0
- package/lib/esm/select/creator/SelectVirtualizedList.d.ts.map +1 -0
- package/lib/esm/select/creator/SelectVirtualizedList.jsx +28 -0
- package/lib/esm/select/creator/SelectVirtualizedList.jsx.map +1 -0
- package/lib/esm/select/creator/index.d.ts +21 -0
- package/lib/esm/select/creator/index.d.ts.map +1 -0
- package/lib/esm/select/creator/index.js +50 -0
- package/lib/esm/select/creator/index.js.map +1 -0
- package/lib/esm/select/creator/types.d.ts +43 -0
- package/lib/esm/select/creator/types.d.ts.map +1 -0
- package/lib/esm/select/creator/types.js +2 -0
- package/lib/esm/select/creator/types.js.map +1 -0
- package/lib/esm/slider/aria/index.d.ts +3 -0
- package/lib/esm/slider/aria/index.d.ts.map +1 -0
- package/lib/esm/slider/aria/index.js +3 -0
- package/lib/esm/slider/aria/index.js.map +1 -0
- package/lib/esm/slider/aria/textSelection.d.ts +3 -0
- package/lib/esm/slider/aria/textSelection.d.ts.map +1 -0
- package/lib/esm/slider/aria/textSelection.js +29 -0
- package/lib/esm/slider/aria/textSelection.js.map +1 -0
- package/lib/esm/slider/aria/useMove.d.ts +6 -0
- package/lib/esm/slider/aria/useMove.d.ts.map +1 -0
- package/lib/esm/slider/aria/useMove.js +43 -0
- package/lib/esm/slider/aria/useMove.js.map +1 -0
- package/lib/esm/slider/aria/useMove.web.d.ts +8 -0
- package/lib/esm/slider/aria/useMove.web.d.ts.map +1 -0
- package/lib/esm/slider/aria/useMove.web.js +142 -0
- package/lib/esm/slider/aria/useMove.web.js.map +1 -0
- package/lib/esm/slider/aria/usePanResponder.d.ts +2 -0
- package/lib/esm/slider/aria/usePanResponder.d.ts.map +1 -0
- package/lib/esm/slider/aria/usePanResponder.js +28 -0
- package/lib/esm/slider/aria/usePanResponder.js.map +1 -0
- package/lib/esm/slider/aria/useSlider.d.ts +11 -0
- package/lib/esm/slider/aria/useSlider.d.ts.map +1 -0
- package/lib/esm/slider/aria/useSlider.js +72 -0
- package/lib/esm/slider/aria/useSlider.js.map +1 -0
- package/lib/esm/slider/aria/useSlider.web.d.ts +7 -0
- package/lib/esm/slider/aria/useSlider.web.d.ts.map +1 -0
- package/lib/esm/slider/aria/useSlider.web.js +176 -0
- package/lib/esm/slider/aria/useSlider.web.js.map +1 -0
- package/lib/esm/slider/aria/useSliderThumb.d.ts +14 -0
- package/lib/esm/slider/aria/useSliderThumb.d.ts.map +1 -0
- package/lib/esm/slider/aria/useSliderThumb.js +87 -0
- package/lib/esm/slider/aria/useSliderThumb.js.map +1 -0
- package/lib/esm/slider/aria/useSliderThumb.web.d.ts +15 -0
- package/lib/esm/slider/aria/useSliderThumb.web.d.ts.map +1 -0
- package/lib/esm/slider/aria/useSliderThumb.web.js +134 -0
- package/lib/esm/slider/aria/useSliderThumb.web.js.map +1 -0
- package/lib/esm/slider/aria/utils.d.ts +4 -0
- package/lib/esm/slider/aria/utils.d.ts.map +1 -0
- package/lib/esm/slider/aria/utils.js +9 -0
- package/lib/esm/slider/aria/utils.js.map +1 -0
- package/lib/esm/slider/creator/Context.d.ts +3 -0
- package/lib/esm/slider/creator/Context.d.ts.map +1 -0
- package/lib/esm/slider/creator/Context.js +3 -0
- package/lib/esm/slider/creator/Context.js.map +1 -0
- package/lib/esm/slider/creator/Slider.d.ts +4 -0
- package/lib/esm/slider/creator/Slider.d.ts.map +1 -0
- package/lib/esm/slider/creator/Slider.jsx +106 -0
- package/lib/esm/slider/creator/Slider.jsx.map +1 -0
- package/lib/esm/slider/creator/SliderFilledTrack.d.ts +4 -0
- package/lib/esm/slider/creator/SliderFilledTrack.d.ts.map +1 -0
- package/lib/esm/slider/creator/SliderFilledTrack.jsx +55 -0
- package/lib/esm/slider/creator/SliderFilledTrack.jsx.map +1 -0
- package/lib/esm/slider/creator/SliderThumb.d.ts +8 -0
- package/lib/esm/slider/creator/SliderThumb.d.ts.map +1 -0
- package/lib/esm/slider/creator/SliderThumb.jsx +123 -0
- package/lib/esm/slider/creator/SliderThumb.jsx.map +1 -0
- package/lib/esm/slider/creator/SliderTrack.d.ts +4 -0
- package/lib/esm/slider/creator/SliderTrack.d.ts.map +1 -0
- package/lib/esm/slider/creator/SliderTrack.jsx +40 -0
- package/lib/esm/slider/creator/SliderTrack.jsx.map +1 -0
- package/lib/esm/slider/creator/index.d.ts +11 -0
- package/lib/esm/slider/creator/index.d.ts.map +1 -0
- package/lib/esm/slider/creator/index.jsx +17 -0
- package/lib/esm/slider/creator/index.jsx.map +1 -0
- package/lib/esm/slider/creator/types.d.ts +44 -0
- package/lib/esm/slider/creator/types.d.ts.map +1 -0
- package/lib/esm/slider/creator/types.js +2 -0
- package/lib/esm/slider/creator/types.js.map +1 -0
- package/lib/esm/spinner/creator/index.d.ts +5 -0
- package/lib/esm/spinner/creator/index.d.ts.map +1 -0
- package/lib/esm/spinner/creator/index.jsx +9 -0
- package/lib/esm/spinner/creator/index.jsx.map +1 -0
- package/lib/esm/spinner/creator/spinner.d.ts +3 -0
- package/lib/esm/spinner/creator/spinner.d.ts.map +1 -0
- package/lib/esm/spinner/creator/spinner.jsx +19 -0
- package/lib/esm/spinner/creator/spinner.jsx.map +1 -0
- package/lib/esm/switch/aria/index.d.ts +2 -0
- package/lib/esm/switch/aria/index.d.ts.map +1 -0
- package/lib/esm/switch/aria/index.js +2 -0
- package/lib/esm/switch/aria/index.js.map +1 -0
- package/lib/esm/switch/aria/index.web.d.ts +2 -0
- package/lib/esm/switch/aria/index.web.d.ts.map +1 -0
- package/lib/esm/switch/aria/index.web.js +2 -0
- package/lib/esm/switch/aria/index.web.js.map +1 -0
- package/lib/esm/switch/aria/useSwitch.d.ts +9 -0
- package/lib/esm/switch/aria/useSwitch.d.ts.map +1 -0
- package/lib/esm/switch/aria/useSwitch.js +17 -0
- package/lib/esm/switch/aria/useSwitch.js.map +1 -0
- package/lib/esm/switch/aria/useSwitch.web.d.ts +10 -0
- package/lib/esm/switch/aria/useSwitch.web.d.ts.map +1 -0
- package/lib/esm/switch/aria/useSwitch.web.js +7 -0
- package/lib/esm/switch/aria/useSwitch.web.js.map +1 -0
- package/lib/esm/switch/creator/Switch.d.ts +3 -0
- package/lib/esm/switch/creator/Switch.d.ts.map +1 -0
- package/lib/esm/switch/creator/Switch.jsx +53 -0
- package/lib/esm/switch/creator/Switch.jsx.map +1 -0
- package/lib/esm/switch/creator/index.d.ts +6 -0
- package/lib/esm/switch/creator/index.d.ts.map +1 -0
- package/lib/esm/switch/creator/index.jsx +7 -0
- package/lib/esm/switch/creator/index.jsx.map +1 -0
- package/lib/esm/switch/creator/types.d.ts +11 -0
- package/lib/esm/switch/creator/types.d.ts.map +1 -0
- package/lib/esm/switch/creator/types.js +2 -0
- package/lib/esm/switch/creator/types.js.map +1 -0
- package/lib/esm/textarea/creator/Textarea.d.ts +3 -0
- package/lib/esm/textarea/creator/Textarea.d.ts.map +1 -0
- package/lib/esm/textarea/creator/Textarea.jsx +53 -0
- package/lib/esm/textarea/creator/Textarea.jsx.map +1 -0
- package/lib/esm/textarea/creator/TextareaContext.d.ts +8 -0
- package/lib/esm/textarea/creator/TextareaContext.d.ts.map +1 -0
- package/lib/esm/textarea/creator/TextareaContext.jsx +3 -0
- package/lib/esm/textarea/creator/TextareaContext.jsx.map +1 -0
- package/lib/esm/textarea/creator/TextareaRoot.d.ts +3 -0
- package/lib/esm/textarea/creator/TextareaRoot.d.ts.map +1 -0
- package/lib/esm/textarea/creator/TextareaRoot.jsx +51 -0
- package/lib/esm/textarea/creator/TextareaRoot.jsx.map +1 -0
- package/lib/esm/textarea/creator/index.d.ts +10 -0
- package/lib/esm/textarea/creator/index.d.ts.map +1 -0
- package/lib/esm/textarea/creator/index.jsx +17 -0
- package/lib/esm/textarea/creator/index.jsx.map +1 -0
- package/lib/esm/textarea/creator/types.d.ts +26 -0
- package/lib/esm/textarea/creator/types.d.ts.map +1 -0
- package/lib/esm/textarea/creator/types.js +2 -0
- package/lib/esm/textarea/creator/types.js.map +1 -0
- package/lib/esm/toast/creator/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/toast/creator/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/toast/creator/OverlayAnimatePresence.jsx +58 -0
- package/lib/esm/toast/creator/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/toast/creator/Toast.d.ts +12 -0
- package/lib/esm/toast/creator/Toast.d.ts.map +1 -0
- package/lib/esm/toast/creator/Toast.jsx +108 -0
- package/lib/esm/toast/creator/Toast.jsx.map +1 -0
- package/lib/esm/toast/creator/ToastComponent.d.ts +5 -0
- package/lib/esm/toast/creator/ToastComponent.d.ts.map +1 -0
- package/lib/esm/toast/creator/ToastComponent.jsx +21 -0
- package/lib/esm/toast/creator/ToastComponent.jsx.map +1 -0
- package/lib/esm/toast/creator/ToastContext.d.ts +3 -0
- package/lib/esm/toast/creator/ToastContext.d.ts.map +1 -0
- package/lib/esm/toast/creator/ToastContext.js +15 -0
- package/lib/esm/toast/creator/ToastContext.js.map +1 -0
- package/lib/esm/toast/creator/ToastDescription.d.ts +5 -0
- package/lib/esm/toast/creator/ToastDescription.d.ts.map +1 -0
- package/lib/esm/toast/creator/ToastDescription.jsx +21 -0
- package/lib/esm/toast/creator/ToastDescription.jsx.map +1 -0
- package/lib/esm/toast/creator/ToastList.d.ts +3 -0
- package/lib/esm/toast/creator/ToastList.d.ts.map +1 -0
- package/lib/esm/toast/creator/ToastList.jsx +113 -0
- package/lib/esm/toast/creator/ToastList.jsx.map +1 -0
- package/lib/esm/toast/creator/ToastTitle.d.ts +5 -0
- package/lib/esm/toast/creator/ToastTitle.d.ts.map +1 -0
- package/lib/esm/toast/creator/ToastTitle.jsx +25 -0
- package/lib/esm/toast/creator/ToastTitle.jsx.map +1 -0
- package/lib/esm/toast/creator/index.d.ts +14 -0
- package/lib/esm/toast/creator/index.d.ts.map +1 -0
- package/lib/esm/toast/creator/index.jsx +18 -0
- package/lib/esm/toast/creator/index.jsx.map +1 -0
- package/lib/esm/toast/creator/types.d.ts +48 -0
- package/lib/esm/toast/creator/types.d.ts.map +1 -0
- package/lib/esm/toast/creator/types.js +2 -0
- package/lib/esm/toast/creator/types.js.map +1 -0
- package/lib/esm/tooltip/creator/OverlayAnimatePresence.d.ts +3 -0
- package/lib/esm/tooltip/creator/OverlayAnimatePresence.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/OverlayAnimatePresence.jsx +57 -0
- package/lib/esm/tooltip/creator/OverlayAnimatePresence.jsx.map +1 -0
- package/lib/esm/tooltip/creator/Tooltip.d.ts +4 -0
- package/lib/esm/tooltip/creator/Tooltip.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/Tooltip.jsx +116 -0
- package/lib/esm/tooltip/creator/Tooltip.jsx.map +1 -0
- package/lib/esm/tooltip/creator/TooltipArrow.d.ts +5 -0
- package/lib/esm/tooltip/creator/TooltipArrow.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/TooltipArrow.jsx +21 -0
- package/lib/esm/tooltip/creator/TooltipArrow.jsx.map +1 -0
- package/lib/esm/tooltip/creator/TooltipContent.d.ts +3 -0
- package/lib/esm/tooltip/creator/TooltipContent.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/TooltipContent.jsx +77 -0
- package/lib/esm/tooltip/creator/TooltipContent.jsx.map +1 -0
- package/lib/esm/tooltip/creator/TooltipText.d.ts +3 -0
- package/lib/esm/tooltip/creator/TooltipText.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/TooltipText.jsx +19 -0
- package/lib/esm/tooltip/creator/TooltipText.jsx.map +1 -0
- package/lib/esm/tooltip/creator/context.d.ts +5 -0
- package/lib/esm/tooltip/creator/context.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/context.jsx +3 -0
- package/lib/esm/tooltip/creator/context.jsx.map +1 -0
- package/lib/esm/tooltip/creator/index.d.ts +8 -0
- package/lib/esm/tooltip/creator/index.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/index.jsx +13 -0
- package/lib/esm/tooltip/creator/index.jsx.map +1 -0
- package/lib/esm/tooltip/creator/types.d.ts +27 -0
- package/lib/esm/tooltip/creator/types.d.ts.map +1 -0
- package/lib/esm/tooltip/creator/types.js +2 -0
- package/lib/esm/tooltip/creator/types.js.map +1 -0
- package/link/creator.ts +1 -0
- package/menu/aria.ts +1 -0
- package/menu/creator.ts +1 -0
- package/modal/creator.ts +1 -0
- package/overlay/aria.ts +1 -0
- package/overlay/creator.ts +1 -0
- package/package.json +187 -0
- package/popover/creator.ts +1 -0
- package/pressable/creator.ts +1 -0
- package/progress/creator.ts +1 -0
- package/radio/aria.ts +1 -0
- package/radio/creator.ts +1 -0
- package/select/creator.ts +1 -0
- package/slider/aria.ts +1 -0
- package/slider/creator.ts +1 -0
- package/switch/aria.ts +1 -0
- package/switch/creator.ts +1 -0
- package/textarea/creator.ts +1 -0
- package/toast/creator.ts +1 -0
- package/tooltip/creator.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAetD,eAAO,MAAM,QAAQ,GAAI,gBAAgB,GAAG,qFA0JzC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef, useContext } from 'react';
|
|
13
|
+
import { CheckboxProvider } from './CheckboxProvider';
|
|
14
|
+
import { useHover, usePress } from '@gluestack-ui-nightly/utils/aria';
|
|
15
|
+
import { useFocus } from '@gluestack-ui-nightly/utils/aria';
|
|
16
|
+
import { useToggleState } from '@react-stately/toggle';
|
|
17
|
+
import { useCheckbox, useCheckboxGroupItem } from '../aria';
|
|
18
|
+
import { CheckboxGroupContext } from './CheckboxGroup';
|
|
19
|
+
import { combineContextAndProps, mergeRefs, stableHash, composeEventHandlers, } from '@gluestack-ui-nightly/utils/common';
|
|
20
|
+
import { useFormControlContext } from '../../form-control/creator';
|
|
21
|
+
export const Checkbox = (StyledCheckbox) => forwardRef((_a, ref) => {
|
|
22
|
+
var { _onPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onFocus, onBlur, children } = _a, props = __rest(_a, ["_onPress", "onPressIn", "onPressOut", "onHoverIn", "onHoverOut", "onFocus", "onBlur", "children"]);
|
|
23
|
+
const { isHovered: isHoveredProp, isChecked: isCheckedProp, isDisabled: isDisabledProp, isInvalid: isInvalidProp, isReadOnly: isReadOnlyProp, isPressed: isPressedProp, isFocused: isFocusedProp, isIndeterminate: isIndeterminateProp, isFocusVisible, } = props;
|
|
24
|
+
const formControlContext = useFormControlContext();
|
|
25
|
+
const _b = combineContextAndProps(formControlContext, props), { isInvalid, isReadOnly, isIndeterminate } = _b, combinedProps = __rest(_b, ["isInvalid", "isReadOnly", "isIndeterminate"]);
|
|
26
|
+
const checkboxGroupContext = useContext(CheckboxGroupContext);
|
|
27
|
+
const state = useToggleState(Object.assign(Object.assign({}, combinedProps), { defaultSelected: props.defaultIsChecked, isSelected: isCheckedProp }));
|
|
28
|
+
const _ref = React.useRef(null);
|
|
29
|
+
const mergedRef = mergeRefs([ref, _ref]);
|
|
30
|
+
const ariaLabel = combinedProps['aria-label'] || combinedProps.value || 'Checkbox';
|
|
31
|
+
const { inputProps: groupItemInputProps } = checkboxGroupContext
|
|
32
|
+
?
|
|
33
|
+
useCheckboxGroupItem(Object.assign(Object.assign({}, combinedProps), { 'aria-label': ariaLabel, 'value': combinedProps.value }), checkboxGroupContext.state, mergedRef)
|
|
34
|
+
:
|
|
35
|
+
useCheckbox(Object.assign(Object.assign({}, combinedProps), { 'aria-label': ariaLabel }), state, mergedRef);
|
|
36
|
+
const inputProps = React.useMemo(() => groupItemInputProps, [
|
|
37
|
+
groupItemInputProps.checked,
|
|
38
|
+
groupItemInputProps.disabled,
|
|
39
|
+
groupItemInputProps,
|
|
40
|
+
]);
|
|
41
|
+
const contextCombinedProps = React.useMemo(() => {
|
|
42
|
+
return Object.assign(Object.assign({}, checkboxGroupContext), combinedProps);
|
|
43
|
+
}, [stableHash(combinedProps)]);
|
|
44
|
+
const { hoverProps, isHovered } = useHover(isHoveredProp, _ref);
|
|
45
|
+
const { focusProps, isFocused } = useFocus();
|
|
46
|
+
const { checked: isChecked, disabled: isDisabled } = inputProps;
|
|
47
|
+
const { pressProps, isPressed } = usePress({
|
|
48
|
+
isDisabled: isDisabled || isDisabledProp,
|
|
49
|
+
});
|
|
50
|
+
return (<StyledCheckbox disabled={isDisabled || isDisabledProp} {...pressProps} {...contextCombinedProps} {...inputProps} ref={mergedRef} role="checkbox" onPressIn={composeEventHandlers(onPressIn, pressProps.onPressIn)} onPressOut={composeEventHandlers(onPressOut, pressProps.onPressOut)} onHoverIn={composeEventHandlers(onHoverIn, hoverProps.onHoverIn)} onHoverOut={composeEventHandlers(onHoverOut, hoverProps.onHoverOut)} onFocus={composeEventHandlers(composeEventHandlers(onFocus, focusProps.onFocus))} onBlur={composeEventHandlers(composeEventHandlers(onBlur, focusProps.onBlur))} states={{
|
|
51
|
+
checked: isChecked || isCheckedProp,
|
|
52
|
+
disabled: isDisabled || isDisabledProp,
|
|
53
|
+
hover: isHovered || isHoveredProp,
|
|
54
|
+
invalid: isInvalid || isInvalidProp,
|
|
55
|
+
readonly: isReadOnly || isReadOnlyProp,
|
|
56
|
+
active: isPressed,
|
|
57
|
+
focus: isFocused,
|
|
58
|
+
indeterminate: isIndeterminate || isIndeterminateProp,
|
|
59
|
+
focusVisible: isFocusVisible,
|
|
60
|
+
}} dataSet={{
|
|
61
|
+
checked: isChecked || isCheckedProp ? 'true' : 'false',
|
|
62
|
+
disabled: isDisabled || isDisabledProp ? 'true' : 'false',
|
|
63
|
+
hover: isHovered || isHoveredProp ? 'true' : 'false',
|
|
64
|
+
invalid: isInvalid || isInvalidProp ? 'true' : 'false',
|
|
65
|
+
readonly: isReadOnly || isReadOnlyProp ? 'true' : 'false',
|
|
66
|
+
active: isPressed ? 'true' : 'false',
|
|
67
|
+
focus: isFocused ? 'true' : 'false',
|
|
68
|
+
indeterminate: isIndeterminate || isIndeterminateProp ? 'true' : 'false',
|
|
69
|
+
focusVisible: isFocusVisible ? 'true' : 'false',
|
|
70
|
+
}}>
|
|
71
|
+
<CheckboxProvider isChecked={isChecked || isCheckedProp} isDisabled={isDisabled || isDisabledProp} isHovered={isHovered || isHoveredProp} isInvalid={isInvalid || isInvalidProp} isReadOnly={isReadOnly || isReadOnlyProp} isPressed={isPressed || isPressedProp} isFocused={isFocused || isFocusedProp} isIndeterminate={isIndeterminate || isIndeterminateProp} isFocusVisible={isFocusVisible}>
|
|
72
|
+
{children}
|
|
73
|
+
</CheckboxProvider>
|
|
74
|
+
</StyledCheckbox>);
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=Checkbox.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE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box.web.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/Checkbox.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAetD,eAAO,MAAM,QAAQ,GAAI,gBAAgB,GAAG,qFAyIxC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef, useContext } from 'react';
|
|
13
|
+
import { CheckboxProvider } from './CheckboxProvider';
|
|
14
|
+
import { useFocusRing } from '@gluestack-ui-nightly/utils/aria';
|
|
15
|
+
import { useHover } from '@gluestack-ui-nightly/utils/aria';
|
|
16
|
+
import { useToggleState } from '@react-stately/toggle';
|
|
17
|
+
import { useCheckbox, useCheckboxGroupItem } from '../aria';
|
|
18
|
+
import { CheckboxGroupContext } from './CheckboxGroup';
|
|
19
|
+
import { combineContextAndProps, mergeRefs, stableHash, } from '@gluestack-ui-nightly/utils/common';
|
|
20
|
+
import { useFormControlContext } from '../../form-control/creator';
|
|
21
|
+
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
22
|
+
export const Checkbox = (StyledCheckbox) => forwardRef((_a, ref) => {
|
|
23
|
+
var _b;
|
|
24
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
25
|
+
const { isHovered: isHoveredProp, isFocusVisible: isFocusVisibleProp, isChecked: isCheckedProp, isDisabled: isDisabledProp, isInvalid: isInvalidProp, isReadOnly: isReadOnlyProp, isIndeterminate: isIndeterminateProp, isFocused, isPressed, } = props;
|
|
26
|
+
const formControlContext = useFormControlContext();
|
|
27
|
+
const _c = combineContextAndProps(formControlContext, props), { isInvalid, isReadOnly, isIndeterminate } = _c, combinedProps = __rest(_c, ["isInvalid", "isReadOnly", "isIndeterminate"]);
|
|
28
|
+
const checkboxGroupContext = useContext(CheckboxGroupContext);
|
|
29
|
+
const state = useToggleState(Object.assign(Object.assign({}, combinedProps), { defaultSelected: props.defaultIsChecked, isSelected: isCheckedProp }));
|
|
30
|
+
const _ref = React.useRef(null);
|
|
31
|
+
const { isHovered } = useHover({}, _ref);
|
|
32
|
+
const { focusProps, isFocusVisible } = useFocusRing();
|
|
33
|
+
const ariaLabel = combinedProps['aria-label'] || combinedProps.value || 'Checkbox';
|
|
34
|
+
const mergedRef = mergeRefs([ref, _ref]);
|
|
35
|
+
let groupItemInputProps = { inputProps: {} };
|
|
36
|
+
if (checkboxGroupContext === null || checkboxGroupContext === void 0 ? void 0 : checkboxGroupContext.state) {
|
|
37
|
+
try {
|
|
38
|
+
groupItemInputProps = useCheckboxGroupItem(Object.assign(Object.assign({}, combinedProps), { 'aria-label': ariaLabel, 'value': combinedProps.value }), checkboxGroupContext.state, mergedRef);
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.warn('CheckboxGroupItem hook failed, falling back to standalone checkbox:', error);
|
|
42
|
+
groupItemInputProps = { inputProps: {} };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const standaloneCheckboxProps = useCheckbox(Object.assign(Object.assign({}, combinedProps), { 'aria-label': ariaLabel }), state, mergedRef);
|
|
46
|
+
const { inputProps: finalInputProps } = ((checkboxGroupContext === null || checkboxGroupContext === void 0 ? void 0 : checkboxGroupContext.state) && ((_b = groupItemInputProps.inputProps) === null || _b === void 0 ? void 0 : _b.onChange))
|
|
47
|
+
? groupItemInputProps
|
|
48
|
+
: standaloneCheckboxProps;
|
|
49
|
+
const inputProps = React.useMemo(() => finalInputProps, [
|
|
50
|
+
finalInputProps === null || finalInputProps === void 0 ? void 0 : finalInputProps.checked,
|
|
51
|
+
finalInputProps === null || finalInputProps === void 0 ? void 0 : finalInputProps.disabled,
|
|
52
|
+
finalInputProps === null || finalInputProps === void 0 ? void 0 : finalInputProps.value,
|
|
53
|
+
finalInputProps === null || finalInputProps === void 0 ? void 0 : finalInputProps.onChange,
|
|
54
|
+
]);
|
|
55
|
+
const contextCombinedProps = React.useMemo(() => {
|
|
56
|
+
return Object.assign(Object.assign({}, checkboxGroupContext), combinedProps);
|
|
57
|
+
}, [stableHash(combinedProps)]);
|
|
58
|
+
const { checked: isChecked, disabled: isDisabled } = inputProps || {};
|
|
59
|
+
return (<StyledCheckbox {...contextCombinedProps} role="label" accessibilityRole="label" ref={mergedRef} states={{
|
|
60
|
+
checked: isChecked || isCheckedProp,
|
|
61
|
+
disabled: isDisabled || isDisabledProp,
|
|
62
|
+
hover: isHovered || isHoveredProp,
|
|
63
|
+
invalid: isInvalid || isInvalidProp,
|
|
64
|
+
readonly: isReadOnly || isReadOnlyProp,
|
|
65
|
+
active: isPressed,
|
|
66
|
+
focus: isFocused,
|
|
67
|
+
indeterminate: isIndeterminate || isIndeterminateProp,
|
|
68
|
+
focusVisible: isFocusVisible || isFocusVisibleProp,
|
|
69
|
+
}} dataSet={{
|
|
70
|
+
checked: isChecked || isCheckedProp ? 'true' : 'false',
|
|
71
|
+
disabled: isDisabled || isDisabledProp ? 'true' : 'false',
|
|
72
|
+
hover: isHovered || isHoveredProp ? 'true' : 'false',
|
|
73
|
+
invalid: isInvalid || isInvalidProp ? 'true' : 'false',
|
|
74
|
+
readonly: isReadOnly || isReadOnlyProp ? 'true' : 'false',
|
|
75
|
+
active: isPressed ? 'true' : 'false',
|
|
76
|
+
focus: isFocused ? 'true' : 'false',
|
|
77
|
+
indeterminate: isIndeterminate || isIndeterminateProp ? 'true' : 'false',
|
|
78
|
+
focusVisible: isFocusVisible || isFocusVisibleProp ? 'true' : 'false',
|
|
79
|
+
}}>
|
|
80
|
+
<CheckboxProvider isChecked={isChecked || isCheckedProp} isDisabled={isDisabled || isDisabledProp} isFocusVisible={isFocusVisible || isFocusVisibleProp} isHovered={isHovered || isHoveredProp} isInvalid={isInvalid || isInvalidProp} isReadOnly={isReadOnly || isReadOnlyProp} isIndeterminate={isIndeterminate || isIndeterminateProp} isPressed={isPressed}>
|
|
81
|
+
<VisuallyHidden>
|
|
82
|
+
<input {...inputProps} {...focusProps} ref={mergedRef}/>
|
|
83
|
+
</VisuallyHidden>
|
|
84
|
+
{children}
|
|
85
|
+
</CheckboxProvider>
|
|
86
|
+
</StyledCheckbox>);
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=Checkbox.web.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.web.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/Checkbox.web.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,sBAAsB,EACtB,SAAS,EACT,UAAU,GACX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM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AAC,CAAC,OAAO;YAC3D,YAAY,EAAE,cAAc,IAAI,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;SACtE,CAAC,CAEF;QAAA,CAAC,gBAAgB,CACf,SAAS,CAAC,CAAC,SAAS,IAAI,aAAa,CAAC,CACtC,UAAU,CAAC,CAAC,UAAU,IAAI,cAAc,CAAC,CACzC,cAAc,CAAC,CAAC,cAAc,IAAI,kBAAkB,CAAC,CACrD,SAAS,CAAC,CAAC,SAAS,IAAI,aAAa,CAAC,CACtC,SAAS,CAAC,CAAC,SAAS,IAAI,aAAa,CAAC,CACtC,UAAU,CAAC,CAAC,UAAU,IAAI,cAAc,CAAC,CACzC,eAAe,CAAC,CAAC,eAAe,IAAI,mBAAmB,CAAC,CACxD,SAAS,CAAC,CAAC,SAAS,CAAC,CAErB;UAAA,CAAC,cAAc,CACb;YAAA,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,EACxD;UAAA,EAAE,cAAc,CAChB;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,gBAAgB,CACpB;MAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CheckboxGroupContext: React.Context<any>;
|
|
3
|
+
declare const CheckboxGroup: (StyledCheckboxGroup: any) => React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
4
|
+
export default CheckboxGroup;
|
|
5
|
+
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAIzD,eAAO,MAAM,oBAAoB,oBAA2B,CAAC;AAE7D,QAAA,MAAM,aAAa,GAAI,qBAAqB,GAAG,qFA2B3C,CAAC;AAEL,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { createContext, forwardRef } from 'react';
|
|
13
|
+
import { useCheckboxGroup } from '../aria';
|
|
14
|
+
import { useCheckboxGroupState } from '@react-stately/checkbox';
|
|
15
|
+
import { useFormControlContext } from '../../form-control/creator';
|
|
16
|
+
export const CheckboxGroupContext = createContext(null);
|
|
17
|
+
const CheckboxGroup = (StyledCheckboxGroup) => forwardRef((_a, ref) => {
|
|
18
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
19
|
+
const state = useCheckboxGroupState(Object.assign(Object.assign({}, props), { validationState: props.isInvalid ? 'invalid' : 'valid' }));
|
|
20
|
+
const { groupProps } = useCheckboxGroup(Object.assign(Object.assign({}, props), { 'aria-label': props['aria-label'] }), state);
|
|
21
|
+
const formControlContext = useFormControlContext();
|
|
22
|
+
return (<CheckboxGroupContext.Provider value={{ state: Object.assign(Object.assign({}, formControlContext), state) }}>
|
|
23
|
+
<StyledCheckboxGroup {...groupProps} {...props} ref={ref}>
|
|
24
|
+
{children}
|
|
25
|
+
</StyledCheckboxGroup>
|
|
26
|
+
</CheckboxGroupContext.Provider>);
|
|
27
|
+
});
|
|
28
|
+
export default CheckboxGroup;
|
|
29
|
+
//# sourceMappingURL=CheckboxGroup.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAM,IAAI,CAAC,CAAC;AAE7D,MAAM,aAAa,GAAG,CAAC,mBAAwB,EAAE,EAAE,CACjD,UAAU,CAAC,CAAC,EAA2B,EAAE,GAAS,EAAE,EAAE;QAA1C,EAAE,QAAQ,OAAiB,EAAZ,KAAK,cAApB,YAAsB,CAAF;IAC9B,MAAM,KAAK,GAAG,qBAAqB,iCAC9B,KAAK,KACR,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,IACtD,CAAC;IAEH,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,iCAEhC,KAAK,KACR,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,KAGnC,KAAK,CACN,CAAC;IAEF,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IAEnD,OAAO,CACL,CAAC,oBAAoB,CAAC,QAAQ,CAC5B,KAAK,CAAC,CAAC,EAAE,KAAK,kCAAO,kBAAkB,GAAK,KAAK,CAAE,EAAE,CAAC,CAEtD;QAAA,CAAC,mBAAmB,CAAC,IAAI,UAAU,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CACvD;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,mBAAmB,CACvB;MAAA,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CACjC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEL,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroupContext.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxGroupContext.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAO,qBAAqB;;;GAAE,gBAAgB,+BAEpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroupContext.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxGroupContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,MAAM,CAAC,MAAM,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,GAAG,aAAa,CACpE,sBAAsB,CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxIcon.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,QAAA,MAAM,YAAY,GAAI,oBAAoB,GAAG,qFAazC,CAAC;AAEL,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
import { useCheckbox } from './CheckboxProvider';
|
|
14
|
+
const CheckboxIcon = (StyledCheckboxIcon) => forwardRef((_a, ref) => {
|
|
15
|
+
var { children, forceMount = false } = _a, props = __rest(_a, ["children", "forceMount"]);
|
|
16
|
+
const { isChecked } = useCheckbox('CheckboxContext');
|
|
17
|
+
if (forceMount || isChecked) {
|
|
18
|
+
return (<StyledCheckboxIcon {...props} ref={ref}>
|
|
19
|
+
{children}
|
|
20
|
+
</StyledCheckboxIcon>);
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
});
|
|
24
|
+
export default CheckboxIcon;
|
|
25
|
+
//# sourceMappingURL=CheckboxIcon.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxIcon.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,YAAY,GAAG,CAAC,kBAAuB,EAAE,EAAE,CAC/C,UAAU,CAAC,CAAC,EAA+C,EAAE,GAAS,EAAE,EAAE;QAA9D,EAAE,QAAQ,EAAE,UAAU,GAAG,KAAK,OAAiB,EAAZ,KAAK,cAAxC,0BAA0C,CAAF;IAClD,MAAM,EAAE,SAAS,EAAE,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAErD,IAAI,UAAU,IAAI,SAAS,EAAE,CAAC;QAC5B,OAAO,CACL,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CACtC;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,kBAAkB,CAAC,CACtB,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxIndicator.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,QAAA,MAAM,iBAAiB,GAAI,yBAAyB,GAAG,qFA4CnD,CAAC;AACL,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
import { useCheckbox } from './CheckboxProvider';
|
|
14
|
+
const CheckboxIndicator = (StyledCheckboxIndicator) => forwardRef((_a, ref) => {
|
|
15
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
16
|
+
const { isChecked, isDisabled, isHovered, isInvalid, isReadOnly, isPressed, isFocused, isIndeterminate, isFocusVisible, } = useCheckbox('CheckboxContext');
|
|
17
|
+
return (<StyledCheckboxIndicator states={{
|
|
18
|
+
hover: isHovered,
|
|
19
|
+
checked: isChecked,
|
|
20
|
+
disabled: isDisabled,
|
|
21
|
+
focusVisible: isFocusVisible,
|
|
22
|
+
invalid: isInvalid,
|
|
23
|
+
readOnly: isReadOnly,
|
|
24
|
+
active: isPressed,
|
|
25
|
+
focused: isFocused,
|
|
26
|
+
indeterminate: isIndeterminate,
|
|
27
|
+
}} dataSet={{
|
|
28
|
+
hover: isHovered ? 'true' : 'false',
|
|
29
|
+
checked: isChecked ? 'true' : 'false',
|
|
30
|
+
disabled: isDisabled ? 'true' : 'false',
|
|
31
|
+
focusVisible: isFocusVisible ? 'true' : 'false',
|
|
32
|
+
invalid: isInvalid ? 'true' : 'false',
|
|
33
|
+
readOnly: isReadOnly ? 'true' : 'false',
|
|
34
|
+
active: isPressed ? 'true' : 'false',
|
|
35
|
+
focused: isFocused ? 'true' : 'false',
|
|
36
|
+
indeterminate: isIndeterminate ? 'true' : 'false',
|
|
37
|
+
}} {...props} ref={ref}>
|
|
38
|
+
{children}
|
|
39
|
+
</StyledCheckboxIndicator>);
|
|
40
|
+
});
|
|
41
|
+
export default CheckboxIndicator;
|
|
42
|
+
//# sourceMappingURL=CheckboxIndicator.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxIndicator.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxIndicator.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,iBAAiB,GAAG,CAAC,uBAA4B,EAAE,EAAE,CACzD,UAAU,CAAC,CAAC,EAA2B,EAAE,GAAS,EAAE,EAAE;QAA1C,EAAE,QAAQ,OAAiB,EAAZ,KAAK,cAApB,YAAsB,CAAF;IAC9B,MAAM,EACJ,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,eAAe,EACf,cAAc,GACf,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAEnC,OAAO,CACL,CAAC,uBAAuB,C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"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,QAAA,MAAM,aAAa,GAAI,qBAAqB,GAAG,qFA4C3C,CAAC;AAEL,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
import { useCheckbox } from './CheckboxProvider';
|
|
14
|
+
const CheckboxLabel = (StyledCheckboxLabel) => forwardRef((_a, ref) => {
|
|
15
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
16
|
+
const { isChecked, isDisabled, isHovered, isInvalid, isReadOnly, isPressed, isFocused, isIndeterminate, isFocusVisible, } = useCheckbox('CheckboxContext');
|
|
17
|
+
return (<StyledCheckboxLabel states={{
|
|
18
|
+
hover: isHovered,
|
|
19
|
+
checked: isChecked,
|
|
20
|
+
disabled: isDisabled,
|
|
21
|
+
focusVisible: isFocusVisible,
|
|
22
|
+
invalid: isInvalid,
|
|
23
|
+
readOnly: isReadOnly,
|
|
24
|
+
pressed: isPressed,
|
|
25
|
+
focused: isFocused,
|
|
26
|
+
indeterminate: isIndeterminate,
|
|
27
|
+
}} dataSet={{
|
|
28
|
+
hover: isHovered ? 'true' : 'false',
|
|
29
|
+
checked: isChecked ? 'true' : 'false',
|
|
30
|
+
disabled: isDisabled ? 'true' : 'false',
|
|
31
|
+
focusVisible: isFocusVisible ? 'true' : 'false',
|
|
32
|
+
invalid: isInvalid ? 'true' : 'false',
|
|
33
|
+
readOnly: isReadOnly ? 'true' : 'false',
|
|
34
|
+
pressed: isPressed ? 'true' : 'false',
|
|
35
|
+
focused: isFocused ? 'true' : 'false',
|
|
36
|
+
indeterminate: isIndeterminate ? 'true' : 'false',
|
|
37
|
+
}} {...props} ref={ref}>
|
|
38
|
+
{children}
|
|
39
|
+
</StyledCheckboxLabel>);
|
|
40
|
+
});
|
|
41
|
+
export default CheckboxLabel;
|
|
42
|
+
//# sourceMappingURL=CheckboxLabel.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxLabel.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,aAAa,GAAG,CAAC,mBAAwB,EAAE,EAAE,CACjD,UAAU,CAAC,CAAC,EAA2B,EAAE,GAAS,EAAE,EAAE;QAA1C,EAAE,QAAQ,OAAiB,EAAZ,KAAK,cAApB,YAAsB,CAAF;IAC9B,MAAM,EACJ,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,eAAe,EACf,cAAc,GACf,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAEnC,OAAO,CACL,CAAC,mBAAmB,CAClB,MAAM,CAAC,CAAC;YACN,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,eAAe;SAC/B,CAAC,CACF,OAAO,CAAC,CAAC;YACP,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACnC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACrC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACvC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YAC/C,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACrC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACvC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACrC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACrC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;SAClD,CAAC,CACF,IAAI,KAAK,CAAC,CACV,GAAG,CAAC,CAAC,GAAG,CAAC,CAET;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,mBAAmB,CAAC,CACvB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEL,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxProvider.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxProvider.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAO,gBAAgB;;;GAAE,WAAW,+BACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxProvider.jsx","sourceRoot":"","sources":["../../../../src/checkbox/creator/CheckboxProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAC1C,aAAa,CAAM,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ICheckboxContext = Omit<ReturnType<typeof useCheckboxProvider>, 'htmlProps'>;
|
|
3
|
+
export declare const CheckboxContext: React.Context<{}>;
|
|
4
|
+
export declare function useCheckboxProvider(props: any): {
|
|
5
|
+
isRequired: boolean;
|
|
6
|
+
isInvalid: boolean;
|
|
7
|
+
isReadOnly: boolean;
|
|
8
|
+
isDisabled: boolean;
|
|
9
|
+
hasFeedbackText: boolean;
|
|
10
|
+
setHasFeedbackText: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
+
hasHelpText: boolean;
|
|
12
|
+
setHasHelpText: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
id: any;
|
|
14
|
+
labelId: string;
|
|
15
|
+
feedbackId: string;
|
|
16
|
+
helpTextId: string;
|
|
17
|
+
htmlProps: any;
|
|
18
|
+
};
|
|
19
|
+
export declare function useCheckbox(props: any): any;
|
|
20
|
+
export declare const useCheckboxContext: () => ICheckboxContext;
|
|
21
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,UAAU,CAAC,OAAO,mBAAmB,CAAC,EACtC,WAAW,CACZ,CAAC;AAEF,eAAO,MAAM,eAAe,mBAA0B,CAAC;AAEvD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG;;;;;;;;;;;;;;EAsD7C;AASD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,OA4BrC;AAED,eAAO,MAAM,kBAAkB,QAC0B,gBACxD,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { ariaAttr } from '@gluestack-ui-nightly/utils/common';
|
|
14
|
+
export const CheckboxContext = React.createContext({});
|
|
15
|
+
export function useCheckboxProvider(props) {
|
|
16
|
+
const { id: idProp, isRequired, isInvalid, isDisabled, isReadOnly } = props, htmlProps = __rest(props, ["id", "isRequired", "isInvalid", "isDisabled", "isReadOnly"]);
|
|
17
|
+
var idCounter = 0;
|
|
18
|
+
function uniqueId(prefix = '') {
|
|
19
|
+
var id = ++idCounter;
|
|
20
|
+
return prefix + id;
|
|
21
|
+
}
|
|
22
|
+
const idTemp = uniqueId();
|
|
23
|
+
const id = idProp || `field-${idTemp}`;
|
|
24
|
+
const labelId = `${id}-label`;
|
|
25
|
+
const feedbackId = `${id}-feedback`;
|
|
26
|
+
const helpTextId = `${id}-helptext`;
|
|
27
|
+
const [hasFeedbackText, setHasFeedbackText] = React.useState(false);
|
|
28
|
+
const [hasHelpText, setHasHelpText] = React.useState(false);
|
|
29
|
+
const context = {
|
|
30
|
+
isRequired: !!isRequired,
|
|
31
|
+
isInvalid: !!isInvalid,
|
|
32
|
+
isReadOnly: !!isReadOnly,
|
|
33
|
+
isDisabled: !!isDisabled,
|
|
34
|
+
hasFeedbackText,
|
|
35
|
+
setHasFeedbackText,
|
|
36
|
+
hasHelpText,
|
|
37
|
+
setHasHelpText,
|
|
38
|
+
id,
|
|
39
|
+
labelId,
|
|
40
|
+
feedbackId,
|
|
41
|
+
helpTextId,
|
|
42
|
+
htmlProps,
|
|
43
|
+
};
|
|
44
|
+
return context;
|
|
45
|
+
}
|
|
46
|
+
export function useCheckbox(props) {
|
|
47
|
+
const field = useCheckboxContext();
|
|
48
|
+
const describedBy = [];
|
|
49
|
+
if (field === null || field === void 0 ? void 0 : field.hasFeedbackText)
|
|
50
|
+
describedBy.push(field === null || field === void 0 ? void 0 : field.feedbackId);
|
|
51
|
+
if (field === null || field === void 0 ? void 0 : field.hasHelpText)
|
|
52
|
+
describedBy.push(field === null || field === void 0 ? void 0 : field.helpTextId);
|
|
53
|
+
const ariaDescribedBy = describedBy.join(' ');
|
|
54
|
+
const { isInvalid, isDisabled, isReadOnly, isRequired } = props, cleanProps = __rest(props, ["isInvalid", "isDisabled", "isReadOnly", "isRequired"]);
|
|
55
|
+
let id = props === null || props === void 0 ? void 0 : props.id;
|
|
56
|
+
if (!id && (field === null || field === void 0 ? void 0 : field.id)) {
|
|
57
|
+
id = `${field === null || field === void 0 ? void 0 : field.id}-input`;
|
|
58
|
+
}
|
|
59
|
+
return Object.assign(Object.assign({}, cleanProps), { 'id': id, 'disabled': isDisabled || (field === null || field === void 0 ? void 0 : field.isDisabled), 'readOnly': isReadOnly || (field === null || field === void 0 ? void 0 : field.isReadOnly), 'required': isRequired || (field === null || field === void 0 ? void 0 : field.isRequired), 'aria-invalid': ariaAttr(isInvalid || (field === null || field === void 0 ? void 0 : field.isInvalid)), 'aria-required': ariaAttr(isRequired || (field === null || field === void 0 ? void 0 : field.isRequired)), 'aria-readonly': ariaAttr(isReadOnly || (field === null || field === void 0 ? void 0 : field.isReadOnly)), 'aria-describedby': ariaDescribedBy || undefined });
|
|
60
|
+
}
|
|
61
|
+
export const useCheckboxContext = () => {
|
|
62
|
+
return React.useContext(CheckboxContext);
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BAAL,KAAK,CAAE,UAAU,CAAA,EAC3C,UAAU,EAAE,UAAU,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,CAAA,EAC3C,cAAc,EAAE,QAAQ,CAAC,SAAS,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA,CAAC,EACvD,eAAe,EAAE,QAAQ,CAAC,UAAU,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,CAAA,CAAC,EAC1D,eAAe,EAAE,QAAQ,CAAC,UAAU,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,CAAA,CAAC,EAC1D,kBAAkB,EAAE,eAAe,IAAI,SAAS,IAChD;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO,KAAK,CAAC,UAAU,CAAC,eAAe,CAAgC,CAAC;AAC1E,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ICheckboxComponentType } from './types';
|
|
2
|
+
export declare const createCheckbox: <Root, Indicator, Icon, Label, Group>({ Root, Indicator, Icon, Label, Group, }: {
|
|
3
|
+
Root: React.ComponentType<Root>;
|
|
4
|
+
Indicator: React.ComponentType<Indicator>;
|
|
5
|
+
Icon: React.ComponentType<Icon>;
|
|
6
|
+
Label: React.ComponentType<Label>;
|
|
7
|
+
Group: React.ComponentType<Group>;
|
|
8
|
+
}) => ICheckboxComponentType<Root, Indicator, Icon, Label, Group>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/checkbox/creator/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,cAAc,GAAI,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,0CAMjE;IACD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAChC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;CACnC,KAaoB,sBAAsB,CACvC,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,KAAK,EACL,KAAK,CAER,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Checkbox as CheckboxMain } from './Checkbox';
|
|
2
|
+
import CheckboxIcon from './CheckboxIcon';
|
|
3
|
+
import CheckboxIndicator from './CheckboxIndicator';
|
|
4
|
+
import CheckboxLabel from './CheckboxLabel';
|
|
5
|
+
import CheckboxGroup from './CheckboxGroup';
|
|
6
|
+
export const createCheckbox = ({ Root, Indicator, Icon, Label, Group, }) => {
|
|
7
|
+
const Checkbox = CheckboxMain(Root);
|
|
8
|
+
Checkbox.Indicator = CheckboxIndicator(Indicator);
|
|
9
|
+
Checkbox.Icon = CheckboxIcon(Icon);
|
|
10
|
+
Checkbox.Label = CheckboxLabel(Label);
|
|
11
|
+
Checkbox.Group = CheckboxGroup(Group);
|
|
12
|
+
Checkbox.displayName = 'Checkbox';
|
|
13
|
+
Checkbox.Indicator.displayName = 'Checkbox.Indicator';
|
|
14
|
+
Checkbox.Icon.displayName = 'Checkbox.Icon';
|
|
15
|
+
Checkbox.Label.displayName = 'Checkbox.Label';
|
|
16
|
+
Checkbox.Group.displayName = 'Checkbox.Group';
|
|
17
|
+
return Checkbox;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/checkbox/creator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAsC,EAClE,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,KAAK,EACL,KAAK,GAON,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAQ,CAAC;IAC3C,QAAQ,CAAC,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAClD,QAAQ,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACnC,QAAQ,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACtC,QAAQ,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAEtC,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;IAClC,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,oBAAoB,CAAC;IACtD,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,WAAW,GAAG,gBAAgB,CAAC;IAC9C,QAAQ,CAAC,KAAK,CAAC,WAAW,GAAG,gBAAgB,CAAC;IAE9C,OAAO,QAMN,CAAC;AACJ,CAAC,CAAC"}
|