@draftbit/core 48.5.5-ee2f75.2 → 48.5.6
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/README.md +32 -32
- package/lib/commonjs/Provider.js +1 -1
- package/lib/commonjs/components/AccordionGroup.js +1 -1
- package/lib/commonjs/components/ActionSheet/ActionSheet.js +1 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +1 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +1 -1
- package/lib/commonjs/components/AspectRatio.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +1 -1
- package/lib/commonjs/components/Button.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -1
- package/lib/commonjs/components/Divider.js +1 -1
- package/lib/commonjs/components/Elevation.js +1 -1
- package/lib/commonjs/components/FormRow.js +1 -1
- package/lib/commonjs/components/IconButton.js +1 -1
- package/lib/commonjs/components/Image.js +1 -1
- package/lib/commonjs/components/Layout/AspectRatio.js +1 -1
- package/lib/commonjs/components/Layout/Center.js +1 -1
- package/lib/commonjs/components/Layout/Circle.js +1 -1
- package/lib/commonjs/components/Layout/HStack.js +1 -1
- package/lib/commonjs/components/Layout/Spacer.js +1 -1
- package/lib/commonjs/components/Layout/Square.js +1 -1
- package/lib/commonjs/components/Layout/VStack.js +1 -1
- package/lib/commonjs/components/Layout/ZStack.js +1 -1
- package/lib/commonjs/components/Markdown.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/index.js +1 -1
- package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
- package/lib/commonjs/components/NumberInput.js +1 -1
- package/lib/commonjs/components/Picker/NativePicker.js +1 -1
- package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
- package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +1 -1
- package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +1 -1
- package/lib/commonjs/components/Picker/index.js +1 -1
- package/lib/commonjs/components/PinInput/CustomPinInputCell.js +1 -1
- package/lib/commonjs/components/PinInput/PinInput.js +1 -1
- package/lib/commonjs/components/PinInput/PinInputText.js +1 -1
- package/lib/commonjs/components/Portal/Portal.js +1 -1
- package/lib/commonjs/components/Portal/PortalHost.js +1 -1
- package/lib/commonjs/components/Portal/PortalManager.js +1 -1
- package/lib/commonjs/components/Pressable.js +1 -1
- package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
- package/lib/commonjs/components/Progress/CircularProgress/index.js +1 -1
- package/lib/commonjs/components/Progress/IndeterminateProgress.js +1 -1
- package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
- package/lib/commonjs/components/Progress/LinearProgress/index.js +1 -1
- package/lib/commonjs/components/ProgressIndicator.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
- package/lib/commonjs/components/Row.js +1 -1
- package/lib/commonjs/components/SVG.js +1 -1
- package/lib/commonjs/components/ScreenContainer.js +1 -1
- package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
- package/lib/commonjs/components/SectionList/SectionList.js +1 -1
- package/lib/commonjs/components/Shadow.js +1 -1
- package/lib/commonjs/components/Slider.js +1 -1
- package/lib/commonjs/components/StarRating.js +1 -1
- package/lib/commonjs/components/StepIndicator.js +1 -1
- package/lib/commonjs/components/Stepper.js +1 -1
- package/lib/commonjs/components/Surface.js +1 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableList.js +1 -1
- package/lib/commonjs/components/Swiper/Swiper.js +1 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js +1 -1
- package/lib/commonjs/components/Switch.js +1 -1
- package/lib/commonjs/components/TabView/TabView.js +1 -1
- package/lib/commonjs/components/TabView/TabViewItem.js +1 -1
- package/lib/commonjs/components/Table/Table.js +1 -1
- package/lib/commonjs/components/Table/TableCell.js +1 -1
- package/lib/commonjs/components/Table/TableRow.js +1 -1
- package/lib/commonjs/components/Text.js +1 -1
- package/lib/commonjs/components/TextField.js +1 -1
- package/lib/commonjs/components/TextInput.js +1 -1
- package/lib/commonjs/components/Touchable.js +1 -1
- package/lib/commonjs/components/Typography.js +1 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +1 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js +1 -1
- package/lib/commonjs/deprecated-components/AccordionItem.js +1 -1
- package/lib/commonjs/deprecated-components/AnimatedCircularProgress.js +1 -1
- package/lib/commonjs/deprecated-components/AvatarEdit.js +1 -1
- package/lib/commonjs/deprecated-components/Banner.js +1 -1
- package/lib/commonjs/deprecated-components/Card.js +1 -1
- package/lib/commonjs/deprecated-components/CheckboxGroup.js +1 -1
- package/lib/commonjs/deprecated-components/CircleImage.js +1 -1
- package/lib/commonjs/deprecated-components/CircularProgress.js +1 -1
- package/lib/commonjs/deprecated-components/Container.js +1 -1
- package/lib/commonjs/deprecated-components/DeprecatedButton.js +1 -1
- package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +1 -1
- package/lib/commonjs/deprecated-components/DeprecatedFAB.js +1 -1
- package/lib/commonjs/deprecated-components/FAB.js +1 -1
- package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +1 -1
- package/lib/commonjs/deprecated-components/Layout.js +1 -1
- package/lib/commonjs/deprecated-components/ProgressBar.js +1 -1
- package/lib/commonjs/deprecated-components/ProgressCircle.js +1 -1
- package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +1 -1
- package/lib/commonjs/deprecated-components/RowBodyIcon.js +1 -1
- package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +1 -1
- package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +1 -1
- package/lib/commonjs/deprecated-components/ToggleButton.js +1 -1
- package/lib/typescript/src/Provider.d.ts +10 -10
- package/lib/typescript/src/Provider.js +9 -9
- package/lib/typescript/src/components/AccordionGroup.d.ts +21 -21
- package/lib/typescript/src/components/AccordionGroup.js +44 -44
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +8 -8
- package/lib/typescript/src/components/ActionSheet/ActionSheet.js +45 -45
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +10 -10
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.js +6 -6
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +10 -10
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.js +30 -30
- package/lib/typescript/src/components/ActionSheet/index.d.ts +3 -3
- package/lib/typescript/src/components/ActionSheet/index.js +3 -3
- package/lib/typescript/src/components/AspectRatio.d.ts +8 -8
- package/lib/typescript/src/components/AspectRatio.js +18 -18
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +28 -28
- package/lib/typescript/src/components/BottomSheet/BottomSheet.js +71 -71
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +169 -169
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.js +437 -437
- package/lib/typescript/src/components/BottomSheet/index.d.ts +1 -1
- package/lib/typescript/src/components/BottomSheet/index.js +1 -1
- package/lib/typescript/src/components/Button.d.ts +12 -12
- package/lib/typescript/src/components/Button.js +120 -120
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +19 -19
- package/lib/typescript/src/components/Checkbox/Checkbox.js +62 -62
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +21 -21
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.js +76 -76
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +17 -17
- package/lib/typescript/src/components/Checkbox/CheckboxRow.js +77 -77
- package/lib/typescript/src/components/Checkbox/context.d.ts +13 -13
- package/lib/typescript/src/components/Checkbox/context.js +14 -14
- package/lib/typescript/src/components/Checkbox/index.d.ts +2 -2
- package/lib/typescript/src/components/Checkbox/index.js +2 -2
- package/lib/typescript/src/components/Config.d.ts +35 -35
- package/lib/typescript/src/components/Config.js +64 -64
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +33 -33
- package/lib/typescript/src/components/DatePicker/DatePicker.js +394 -389
- package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +4 -4
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.js +13 -13
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +4662 -4662
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js +30 -30
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +11 -11
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.js +1 -1
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +27 -27
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js +90 -90
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +11 -11
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +20 -20
- package/lib/typescript/src/components/DeckSwiper/index.d.ts +2 -2
- package/lib/typescript/src/components/DeckSwiper/index.js +2 -2
- package/lib/typescript/src/components/Divider.d.ts +12 -12
- package/lib/typescript/src/components/Divider.js +13 -13
- package/lib/typescript/src/components/Elevation.d.ts +11 -11
- package/lib/typescript/src/components/Elevation.js +20 -20
- package/lib/typescript/src/components/FormRow.d.ts +13 -13
- package/lib/typescript/src/components/FormRow.js +19 -19
- package/lib/typescript/src/components/IconButton.d.ts +20 -20
- package/lib/typescript/src/components/IconButton.js +35 -35
- package/lib/typescript/src/components/Image.d.ts +4 -4
- package/lib/typescript/src/components/Image.js +47 -47
- package/lib/typescript/src/components/Layout/AspectRatio.d.ts +7 -7
- package/lib/typescript/src/components/Layout/AspectRatio.js +6 -6
- package/lib/typescript/src/components/Layout/Center.d.ts +4 -4
- package/lib/typescript/src/components/Layout/Center.js +14 -14
- package/lib/typescript/src/components/Layout/Circle.d.ts +7 -7
- package/lib/typescript/src/components/Layout/Circle.js +15 -15
- package/lib/typescript/src/components/Layout/HStack.d.ts +4 -4
- package/lib/typescript/src/components/Layout/HStack.js +11 -11
- package/lib/typescript/src/components/Layout/LayoutCommon.d.ts +15 -15
- package/lib/typescript/src/components/Layout/LayoutCommon.js +7 -7
- package/lib/typescript/src/components/Layout/Spacer.d.ts +11 -11
- package/lib/typescript/src/components/Layout/Spacer.js +14 -14
- package/lib/typescript/src/components/Layout/Square.d.ts +7 -7
- package/lib/typescript/src/components/Layout/Square.js +24 -24
- package/lib/typescript/src/components/Layout/VStack.d.ts +4 -4
- package/lib/typescript/src/components/Layout/VStack.js +11 -11
- package/lib/typescript/src/components/Layout/ZStack.d.ts +7 -7
- package/lib/typescript/src/components/Layout/ZStack.js +57 -57
- package/lib/typescript/src/components/Layout/index.d.ts +8 -8
- package/lib/typescript/src/components/Layout/index.js +8 -8
- package/lib/typescript/src/components/Markdown.d.ts +7 -7
- package/lib/typescript/src/components/Markdown.js +10 -10
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +22 -22
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +7 -7
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +125 -125
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.d.ts +9 -9
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +92 -92
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +11 -11
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js +14 -14
- package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.d.ts +15 -15
- package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js +41 -41
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +23 -23
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +23 -23
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.d.ts +15 -15
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +74 -74
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/index.d.ts +2 -2
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/index.js +1 -1
- package/lib/typescript/src/components/NumberInput.d.ts +11 -11
- package/lib/typescript/src/components/NumberInput.js +59 -59
- package/lib/typescript/src/components/Picker/NativePicker.d.ts +6 -6
- package/lib/typescript/src/components/Picker/NativePicker.js +94 -94
- package/lib/typescript/src/components/Picker/PickerCommon.d.ts +46 -46
- package/lib/typescript/src/components/Picker/PickerCommon.js +24 -24
- package/lib/typescript/src/components/Picker/PickerInputContainer.d.ts +11 -11
- package/lib/typescript/src/components/Picker/PickerInputContainer.js +36 -36
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +6 -6
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +66 -64
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +6 -6
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +8 -8
- package/lib/typescript/src/components/Picker/dropdown/PickerItem.d.ts +14 -14
- package/lib/typescript/src/components/Picker/dropdown/PickerItem.js +8 -8
- package/lib/typescript/src/components/Picker/index.d.ts +10 -10
- package/lib/typescript/src/components/Picker/index.js +17 -17
- package/lib/typescript/src/components/PinInput/CustomPinInputCell.d.ts +12 -12
- package/lib/typescript/src/components/PinInput/CustomPinInputCell.js +10 -10
- package/lib/typescript/src/components/PinInput/PinInput.d.ts +26 -26
- package/lib/typescript/src/components/PinInput/PinInput.js +80 -80
- package/lib/typescript/src/components/PinInput/PinInputText.d.ts +13 -13
- package/lib/typescript/src/components/PinInput/PinInputText.js +13 -13
- package/lib/typescript/src/components/PinInput/index.d.ts +3 -3
- package/lib/typescript/src/components/PinInput/index.js +3 -3
- package/lib/typescript/src/components/Portal/Portal.d.ts +42 -42
- package/lib/typescript/src/components/Portal/Portal.js +35 -35
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +15 -15
- package/lib/typescript/src/components/Portal/PortalConsumer.js +27 -27
- package/lib/typescript/src/components/Portal/PortalHost.d.ts +47 -47
- package/lib/typescript/src/components/Portal/PortalHost.js +107 -107
- package/lib/typescript/src/components/Portal/PortalManager.d.ts +18 -18
- package/lib/typescript/src/components/Portal/PortalManager.js +32 -32
- package/lib/typescript/src/components/Pressable.d.ts +9 -9
- package/lib/typescript/src/components/Pressable.js +12 -12
- package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.d.ts +6 -6
- package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +102 -102
- package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +6 -6
- package/lib/typescript/src/components/Progress/CircularProgress/index.js +13 -13
- package/lib/typescript/src/components/Progress/IndeterminateProgress.d.ts +7 -7
- package/lib/typescript/src/components/Progress/IndeterminateProgress.js +38 -38
- package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.d.ts +6 -6
- package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +55 -55
- package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +6 -6
- package/lib/typescript/src/components/Progress/LinearProgress/index.js +13 -13
- package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +40 -40
- package/lib/typescript/src/components/Progress/ProgressCommon.js +1 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts +23 -23
- package/lib/typescript/src/components/ProgressIndicator.js +27 -27
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +17 -17
- package/lib/typescript/src/components/RadioButton/RadioButton.js +17 -17
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +15 -15
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.js +43 -43
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +21 -21
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.js +76 -76
- package/lib/typescript/src/components/RadioButton/context.d.ts +13 -13
- package/lib/typescript/src/components/RadioButton/context.js +14 -14
- package/lib/typescript/src/components/RadioButton/index.d.ts +3 -3
- package/lib/typescript/src/components/RadioButton/index.js +3 -3
- package/lib/typescript/src/components/Row.d.ts +20 -20
- package/lib/typescript/src/components/Row.js +48 -48
- package/lib/typescript/src/components/SVG.d.ts +8 -8
- package/lib/typescript/src/components/SVG.js +13 -13
- package/lib/typescript/src/components/ScreenContainer.d.ts +17 -17
- package/lib/typescript/src/components/ScreenContainer.js +35 -35
- package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +15 -15
- package/lib/typescript/src/components/SectionList/SectionHeader.js +13 -13
- package/lib/typescript/src/components/SectionList/SectionList.d.ts +22 -22
- package/lib/typescript/src/components/SectionList/SectionList.js +110 -110
- package/lib/typescript/src/components/SectionList/index.d.ts +2 -2
- package/lib/typescript/src/components/SectionList/index.js +2 -2
- package/lib/typescript/src/components/Shadow.d.ts +23 -23
- package/lib/typescript/src/components/Shadow.js +25 -25
- package/lib/typescript/src/components/Slider.d.ts +27 -27
- package/lib/typescript/src/components/Slider.js +63 -63
- package/lib/typescript/src/components/StarRating.d.ts +20 -20
- package/lib/typescript/src/components/StarRating.js +50 -50
- package/lib/typescript/src/components/StepIndicator.d.ts +53 -53
- package/lib/typescript/src/components/StepIndicator.js +346 -346
- package/lib/typescript/src/components/Stepper.d.ts +19 -19
- package/lib/typescript/src/components/Stepper.js +41 -41
- package/lib/typescript/src/components/Surface.d.ts +12 -12
- package/lib/typescript/src/components/Surface.js +32 -32
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +43 -43
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +118 -118
- package/lib/typescript/src/components/SwipeableItem/SwipeableItemButton.d.ts +5 -5
- package/lib/typescript/src/components/SwipeableItem/SwipeableItemButton.js +5 -5
- package/lib/typescript/src/components/SwipeableItem/SwipeableItemCommon.d.ts +31 -31
- package/lib/typescript/src/components/SwipeableItem/SwipeableItemCommon.js +43 -43
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.d.ts +17 -17
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.js +28 -28
- package/lib/typescript/src/components/SwipeableItem/index.d.ts +3 -3
- package/lib/typescript/src/components/SwipeableItem/index.js +3 -3
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +29 -29
- package/lib/typescript/src/components/Swiper/Swiper.js +73 -73
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +8 -8
- package/lib/typescript/src/components/Swiper/SwiperItem.js +9 -9
- package/lib/typescript/src/components/Swiper/index.d.ts +2 -2
- package/lib/typescript/src/components/Swiper/index.js +2 -2
- package/lib/typescript/src/components/Switch.d.ts +50 -50
- package/lib/typescript/src/components/Switch.js +56 -56
- package/lib/typescript/src/components/TabView/TabView.d.ts +27 -27
- package/lib/typescript/src/components/TabView/TabView.js +49 -54
- package/lib/typescript/src/components/TabView/TabView.js.map +1 -1
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts +10 -10
- package/lib/typescript/src/components/TabView/TabViewItem.js +11 -11
- package/lib/typescript/src/components/TabView/index.d.ts +2 -2
- package/lib/typescript/src/components/TabView/index.js +2 -2
- package/lib/typescript/src/components/Table/Table.d.ts +18 -18
- package/lib/typescript/src/components/Table/Table.js +93 -93
- package/lib/typescript/src/components/Table/TableCell.d.ts +9 -9
- package/lib/typescript/src/components/Table/TableCell.js +33 -33
- package/lib/typescript/src/components/Table/TableCommon.d.ts +19 -19
- package/lib/typescript/src/components/Table/TableCommon.js +12 -12
- package/lib/typescript/src/components/Table/TableRow.d.ts +14 -14
- package/lib/typescript/src/components/Table/TableRow.js +39 -39
- package/lib/typescript/src/components/Table/index.d.ts +3 -3
- package/lib/typescript/src/components/Table/index.js +3 -3
- package/lib/typescript/src/components/Text.d.ts +19 -19
- package/lib/typescript/src/components/Text.js +33 -33
- package/lib/typescript/src/components/TextField.d.ts +72 -72
- package/lib/typescript/src/components/TextField.js +413 -413
- package/lib/typescript/src/components/TextInput.d.ts +8 -8
- package/lib/typescript/src/components/TextInput.js +14 -14
- package/lib/typescript/src/components/Touchable.d.ts +9 -9
- package/lib/typescript/src/components/Touchable.js +12 -12
- package/lib/typescript/src/components/Touchable.web.d.ts +2 -2
- package/lib/typescript/src/components/Touchable.web.js +2 -2
- package/lib/typescript/src/components/Typography.d.ts +21 -21
- package/lib/typescript/src/components/Typography.js +36 -36
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts +4 -4
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js +20 -20
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts +4 -4
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.js +9 -9
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +7 -7
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.js +1 -1
- package/lib/typescript/src/components/YoutubePlayer/index.d.ts +1 -1
- package/lib/typescript/src/components/YoutubePlayer/index.js +1 -1
- package/lib/typescript/src/components/useAuthState.d.ts +4 -4
- package/lib/typescript/src/components/useAuthState.js +34 -34
- package/lib/typescript/src/constants.d.ts +1 -1
- package/lib/typescript/src/constants.js +10 -10
- package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +15 -15
- package/lib/typescript/src/deprecated-components/AccordionItem.js +35 -35
- package/lib/typescript/src/deprecated-components/AnimatedCircularProgress.d.ts +16 -16
- package/lib/typescript/src/deprecated-components/AnimatedCircularProgress.js +46 -46
- package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +15 -15
- package/lib/typescript/src/deprecated-components/AvatarEdit.js +33 -33
- package/lib/typescript/src/deprecated-components/Banner.d.ts +22 -22
- package/lib/typescript/src/deprecated-components/Banner.js +112 -112
- package/lib/typescript/src/deprecated-components/Card.d.ts +42 -42
- package/lib/typescript/src/deprecated-components/Card.js +60 -60
- package/lib/typescript/src/deprecated-components/CheckboxGroup.d.ts +17 -17
- package/lib/typescript/src/deprecated-components/CheckboxGroup.js +24 -24
- package/lib/typescript/src/deprecated-components/CircleImage.d.ts +12 -12
- package/lib/typescript/src/deprecated-components/CircleImage.js +11 -11
- package/lib/typescript/src/deprecated-components/CircularProgress.d.ts +45 -45
- package/lib/typescript/src/deprecated-components/CircularProgress.js +84 -84
- package/lib/typescript/src/deprecated-components/Container.d.ts +20 -20
- package/lib/typescript/src/deprecated-components/Container.js +46 -46
- package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +53 -53
- package/lib/typescript/src/deprecated-components/DeprecatedButton.js +86 -86
- package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +14 -14
- package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js +21 -21
- package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +55 -55
- package/lib/typescript/src/deprecated-components/DeprecatedFAB.js +117 -117
- package/lib/typescript/src/deprecated-components/FAB.d.ts +19 -22
- package/lib/typescript/src/deprecated-components/FAB.js +49 -49
- package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +19 -19
- package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js +56 -56
- package/lib/typescript/src/deprecated-components/Layout.d.ts +60 -60
- package/lib/typescript/src/deprecated-components/Layout.js +68 -68
- package/lib/typescript/src/deprecated-components/ProgressBar.d.ts +37 -37
- package/lib/typescript/src/deprecated-components/ProgressBar.js +121 -121
- package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +20 -20
- package/lib/typescript/src/deprecated-components/ProgressCircle.js +16 -16
- package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +12 -12
- package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js +20 -20
- package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +15 -15
- package/lib/typescript/src/deprecated-components/RowBodyIcon.js +11 -11
- package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +15 -15
- package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js +15 -15
- package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +17 -17
- package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js +17 -17
- package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +24 -24
- package/lib/typescript/src/deprecated-components/ToggleButton.js +42 -42
- package/lib/typescript/src/hooks.d.ts +2 -2
- package/lib/typescript/src/hooks.js +24 -24
- package/lib/typescript/src/index.d.ts +64 -64
- package/lib/typescript/src/index.js +65 -65
- package/lib/typescript/src/interfaces/Icon.d.ts +21 -21
- package/lib/typescript/src/interfaces/Icon.js +8 -8
- package/lib/typescript/src/styles/DarkTheme.d.ts +3 -3
- package/lib/typescript/src/styles/DarkTheme.js +26 -26
- package/lib/typescript/src/styles/DefaultTheme.d.ts +1553 -1553
- package/lib/typescript/src/styles/DefaultTheme.js +111 -111
- package/lib/typescript/src/styles/fonts.d.ts +5 -5
- package/lib/typescript/src/styles/fonts.js +62 -62
- package/lib/typescript/src/styles/overlay.d.ts +2 -2
- package/lib/typescript/src/styles/overlay.js +60 -60
- package/lib/typescript/src/styles/shadow.d.ts +23 -23
- package/lib/typescript/src/styles/shadow.js +51 -51
- package/lib/typescript/src/theming.d.ts +8 -8
- package/lib/typescript/src/theming.js +3 -3
- package/lib/typescript/src/utilities.d.ts +48 -48
- package/lib/typescript/src/utilities.js +200 -200
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +105 -106
- package/src/Provider.tsx +22 -22
- package/src/components/AccordionGroup.tsx +111 -111
- package/src/components/ActionSheet/ActionSheet.tsx +69 -69
- package/src/components/ActionSheet/ActionSheetCancel.tsx +28 -28
- package/src/components/ActionSheet/ActionSheetItem.tsx +59 -59
- package/src/components/ActionSheet/index.tsx +3 -3
- package/src/components/AspectRatio.tsx +40 -40
- package/src/components/BottomSheet/BottomSheet.tsx +160 -160
- package/src/components/BottomSheet/BottomSheetComponent.tsx +895 -895
- package/src/components/BottomSheet/index.ts +1 -1
- package/src/components/Button.tsx +224 -224
- package/src/components/Checkbox/Checkbox.tsx +135 -135
- package/src/components/Checkbox/CheckboxGroupRow.tsx +152 -152
- package/src/components/Checkbox/CheckboxRow.tsx +157 -157
- package/src/components/Checkbox/context.ts +22 -22
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/Config.ts +82 -82
- package/src/components/DatePicker/DatePicker.tsx +604 -593
- package/src/components/DatePicker/DatePickerComponent.tsx +43 -43
- package/src/components/DatePicker/DatePickerComponent.web.tsx +63 -63
- package/src/components/DatePicker/DatePickerComponentType.ts +12 -12
- package/src/components/DeckSwiper/DeckSwiper.tsx +181 -181
- package/src/components/DeckSwiper/DeckSwiperCard.tsx +37 -37
- package/src/components/DeckSwiper/index.tsx +2 -2
- package/src/components/Divider.tsx +32 -32
- package/src/components/Elevation.tsx +48 -48
- package/src/components/FormRow.tsx +47 -47
- package/src/components/IconButton.tsx +88 -88
- package/src/components/Image.tsx +91 -91
- package/src/components/Layout/AspectRatio.tsx +16 -16
- package/src/components/Layout/Center.tsx +19 -19
- package/src/components/Layout/Circle.tsx +32 -32
- package/src/components/Layout/HStack.tsx +14 -14
- package/src/components/Layout/LayoutCommon.ts +25 -25
- package/src/components/Layout/Spacer.tsx +34 -34
- package/src/components/Layout/Square.tsx +41 -41
- package/src/components/Layout/VStack.tsx +14 -14
- package/src/components/Layout/ZStack.tsx +99 -99
- package/src/components/Layout/index.tsx +8 -8
- package/src/components/Markdown.tsx +22 -22
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +25 -25
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +219 -219
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +142 -142
- package/src/components/MediaPlayer/AudioPlayer/index.tsx +30 -30
- package/src/components/MediaPlayer/MediaPlaybackWrapper.tsx +68 -68
- package/src/components/MediaPlayer/MediaPlayerCommon.ts +52 -52
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +138 -138
- package/src/components/MediaPlayer/VideoPlayer/index.ts +2 -2
- package/src/components/NumberInput.tsx +103 -103
- package/src/components/Picker/NativePicker.tsx +158 -158
- package/src/components/Picker/PickerCommon.ts +86 -86
- package/src/components/Picker/PickerInputContainer.tsx +90 -90
- package/src/components/Picker/dropdown/DropDownPicker.tsx +157 -155
- package/src/components/Picker/dropdown/MultiSelectPicker.tsx +16 -16
- package/src/components/Picker/dropdown/PickerItem.tsx +19 -19
- package/src/components/Picker/index.tsx +27 -27
- package/src/components/PinInput/CustomPinInputCell.tsx +19 -19
- package/src/components/PinInput/PinInput.tsx +172 -172
- package/src/components/PinInput/PinInputText.tsx +37 -37
- package/src/components/PinInput/index.tsx +3 -3
- package/src/components/Portal/Portal.tsx +59 -59
- package/src/components/Portal/PortalConsumer.tsx +46 -46
- package/src/components/Portal/PortalHost.tsx +144 -144
- package/src/components/Portal/PortalManager.tsx +54 -54
- package/src/components/Pressable.tsx +44 -44
- package/src/components/Progress/CircularProgress/CircularProgress.tsx +205 -205
- package/src/components/Progress/CircularProgress/index.tsx +28 -28
- package/src/components/Progress/IndeterminateProgress.tsx +76 -76
- package/src/components/Progress/LinearProgress/LinearProgress.tsx +133 -133
- package/src/components/Progress/LinearProgress/index.tsx +25 -25
- package/src/components/Progress/ProgressCommon.ts +44 -44
- package/src/components/ProgressIndicator.tsx +71 -71
- package/src/components/RadioButton/RadioButton.tsx +63 -63
- package/src/components/RadioButton/RadioButtonGroup.tsx +79 -79
- package/src/components/RadioButton/RadioButtonRow.tsx +150 -150
- package/src/components/RadioButton/context.tsx +21 -21
- package/src/components/RadioButton/index.tsx +3 -3
- package/src/components/Row.tsx +108 -108
- package/src/components/SVG.tsx +35 -35
- package/src/components/ScreenContainer.tsx +86 -86
- package/src/components/SectionList/SectionHeader.tsx +37 -37
- package/src/components/SectionList/SectionList.tsx +205 -205
- package/src/components/SectionList/index.tsx +2 -2
- package/src/components/Shadow.tsx +74 -74
- package/src/components/Slider.tsx +137 -137
- package/src/components/StarRating.tsx +118 -118
- package/src/components/StepIndicator.tsx +494 -494
- package/src/components/Stepper.tsx +101 -101
- package/src/components/Surface.tsx +68 -68
- package/src/components/SwipeableItem/SwipeableItem.tsx +330 -330
- package/src/components/SwipeableItem/SwipeableItemButton.tsx +11 -11
- package/src/components/SwipeableItem/SwipeableItemCommon.ts +81 -81
- package/src/components/SwipeableItem/SwipeableList.tsx +62 -62
- package/src/components/SwipeableItem/index.tsx +3 -3
- package/src/components/Swiper/Swiper.tsx +142 -142
- package/src/components/Swiper/SwiperItem.tsx +19 -19
- package/src/components/Swiper/index.tsx +2 -2
- package/src/components/Switch.tsx +149 -149
- package/src/components/TabView/TabView.tsx +151 -156
- package/src/components/TabView/TabViewItem.tsx +24 -24
- package/src/components/TabView/index.tsx +2 -2
- package/src/components/Table/Table.tsx +176 -176
- package/src/components/Table/TableCell.tsx +69 -69
- package/src/components/Table/TableCommon.ts +40 -40
- package/src/components/Table/TableRow.tsx +83 -83
- package/src/components/Table/index.tsx +3 -3
- package/src/components/Text.tsx +65 -65
- package/src/components/TextField.tsx +616 -616
- package/src/components/TextInput.tsx +35 -35
- package/src/components/Touchable.tsx +40 -40
- package/src/components/Touchable.web.tsx +3 -3
- package/src/components/Typography.tsx +67 -67
- package/src/components/YoutubePlayer/YoutubePlayer.native.tsx +28 -28
- package/src/components/YoutubePlayer/YoutubePlayer.tsx +36 -36
- package/src/components/YoutubePlayer/YoutubePlayerProps.ts +8 -8
- package/src/components/YoutubePlayer/index.ts +1 -1
- package/src/components/useAuthState.tsx +41 -41
- package/src/constants.ts +13 -13
- package/src/deprecated-components/AccordionItem.tsx +77 -77
- package/src/deprecated-components/AnimatedCircularProgress.tsx +104 -104
- package/src/deprecated-components/AvatarEdit.tsx +67 -67
- package/src/deprecated-components/Banner.tsx +207 -207
- package/src/deprecated-components/Card.tsx +164 -164
- package/src/deprecated-components/CheckboxGroup.tsx +53 -53
- package/src/deprecated-components/CircleImage.tsx +36 -36
- package/src/deprecated-components/CircularProgress.tsx +191 -191
- package/src/deprecated-components/Container.tsx +126 -126
- package/src/deprecated-components/DeprecatedButton.tsx +193 -193
- package/src/deprecated-components/DeprecatedCardWrapper.tsx +49 -49
- package/src/deprecated-components/DeprecatedFAB.tsx +234 -234
- package/src/deprecated-components/FAB.tsx +111 -111
- package/src/deprecated-components/FieldSearchBarFull.tsx +129 -129
- package/src/deprecated-components/Layout.tsx +192 -192
- package/src/deprecated-components/ProgressBar.tsx +194 -194
- package/src/deprecated-components/ProgressCircle.tsx +67 -67
- package/src/deprecated-components/RadioButtonFieldGroup.tsx +46 -46
- package/src/deprecated-components/RowBodyIcon.tsx +50 -50
- package/src/deprecated-components/RowHeadlineImageCaption.tsx +52 -52
- package/src/deprecated-components/RowHeadlineImageIcon.tsx +64 -64
- package/src/deprecated-components/ToggleButton.tsx +97 -97
- package/src/hooks.ts +31 -31
- package/src/index.tsx +103 -103
- package/src/interfaces/Icon.ts +31 -31
- package/src/styles/DarkTheme.tsx +30 -30
- package/src/styles/DefaultTheme.tsx +114 -114
- package/src/styles/fonts.tsx +67 -67
- package/src/styles/overlay.tsx +69 -69
- package/src/styles/shadow.tsx +55 -55
- package/src/theming.tsx +6 -6
- package/src/utilities.ts +295 -295
- package/LICENSE +0 -21
- package/src/Provider.js +0 -10
- package/src/Provider.js.map +0 -1
- package/src/components/AccordionGroup.js +0 -45
- package/src/components/AccordionGroup.js.map +0 -1
- package/src/components/ActionSheet/ActionSheet.js +0 -46
- package/src/components/ActionSheet/ActionSheet.js.map +0 -1
- package/src/components/ActionSheet/ActionSheetCancel.js +0 -7
- package/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
- package/src/components/ActionSheet/ActionSheetItem.js +0 -31
- package/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
- package/src/components/ActionSheet/index.js +0 -4
- package/src/components/ActionSheet/index.js.map +0 -1
- package/src/components/AspectRatio.js +0 -19
- package/src/components/AspectRatio.js.map +0 -1
- package/src/components/BottomSheet/BottomSheet.js +0 -72
- package/src/components/BottomSheet/BottomSheet.js.map +0 -1
- package/src/components/BottomSheet/BottomSheetComponent.js +0 -438
- package/src/components/BottomSheet/BottomSheetComponent.js.map +0 -1
- package/src/components/BottomSheet/index.js +0 -2
- package/src/components/BottomSheet/index.js.map +0 -1
- package/src/components/Button.js +0 -121
- package/src/components/Button.js.map +0 -1
- package/src/components/Checkbox/Checkbox.js +0 -63
- package/src/components/Checkbox/Checkbox.js.map +0 -1
- package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
- package/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
- package/src/components/Checkbox/CheckboxRow.js +0 -78
- package/src/components/Checkbox/CheckboxRow.js.map +0 -1
- package/src/components/Checkbox/context.js +0 -15
- package/src/components/Checkbox/context.js.map +0 -1
- package/src/components/Checkbox/index.js +0 -3
- package/src/components/Checkbox/index.js.map +0 -1
- package/src/components/Config.js +0 -65
- package/src/components/Config.js.map +0 -1
- package/src/components/DatePicker/DatePicker.js +0 -390
- package/src/components/DatePicker/DatePicker.js.map +0 -1
- package/src/components/DatePicker/DatePickerComponent.js +0 -14
- package/src/components/DatePicker/DatePickerComponent.js.map +0 -1
- package/src/components/DatePicker/DatePickerComponent.web.js +0 -31
- package/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
- package/src/components/DatePicker/DatePickerComponentType.js +0 -2
- package/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
- package/src/components/DeckSwiper/DeckSwiper.js +0 -91
- package/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
- package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
- package/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
- package/src/components/DeckSwiper/index.js +0 -3
- package/src/components/DeckSwiper/index.js.map +0 -1
- package/src/components/Divider.js +0 -14
- package/src/components/Divider.js.map +0 -1
- package/src/components/Elevation.js +0 -21
- package/src/components/Elevation.js.map +0 -1
- package/src/components/FormRow.js +0 -20
- package/src/components/FormRow.js.map +0 -1
- package/src/components/IconButton.js +0 -36
- package/src/components/IconButton.js.map +0 -1
- package/src/components/Image.js +0 -48
- package/src/components/Image.js.map +0 -1
- package/src/components/Layout/AspectRatio.js +0 -7
- package/src/components/Layout/AspectRatio.js.map +0 -1
- package/src/components/Layout/Center.js +0 -15
- package/src/components/Layout/Center.js.map +0 -1
- package/src/components/Layout/Circle.js +0 -16
- package/src/components/Layout/Circle.js.map +0 -1
- package/src/components/Layout/HStack.js +0 -12
- package/src/components/Layout/HStack.js.map +0 -1
- package/src/components/Layout/LayoutCommon.js +0 -8
- package/src/components/Layout/LayoutCommon.js.map +0 -1
- package/src/components/Layout/Spacer.js +0 -15
- package/src/components/Layout/Spacer.js.map +0 -1
- package/src/components/Layout/Square.js +0 -25
- package/src/components/Layout/Square.js.map +0 -1
- package/src/components/Layout/VStack.js +0 -12
- package/src/components/Layout/VStack.js.map +0 -1
- package/src/components/Layout/ZStack.js +0 -58
- package/src/components/Layout/ZStack.js.map +0 -1
- package/src/components/Layout/index.js +0 -9
- package/src/components/Layout/index.js.map +0 -1
- package/src/components/Markdown.js +0 -11
- package/src/components/Markdown.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -2
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -126
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -93
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/index.js +0 -15
- package/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
- package/src/components/MediaPlayer/MediaPlaybackWrapper.js +0 -42
- package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
- package/src/components/MediaPlayer/MediaPlayerCommon.js +0 -24
- package/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -75
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
- package/src/components/MediaPlayer/VideoPlayer/index.js +0 -2
- package/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
- package/src/components/NumberInput.js +0 -60
- package/src/components/NumberInput.js.map +0 -1
- package/src/components/Picker/NativePicker.js +0 -95
- package/src/components/Picker/NativePicker.js.map +0 -1
- package/src/components/Picker/PickerCommon.js +0 -25
- package/src/components/Picker/PickerCommon.js.map +0 -1
- package/src/components/Picker/PickerInputContainer.js +0 -37
- package/src/components/Picker/PickerInputContainer.js.map +0 -1
- package/src/components/Picker/dropdown/DropDownPicker.js +0 -65
- package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
- package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
- package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
- package/src/components/Picker/dropdown/PickerItem.js +0 -9
- package/src/components/Picker/dropdown/PickerItem.js.map +0 -1
- package/src/components/Picker/index.js +0 -18
- package/src/components/Picker/index.js.map +0 -1
- package/src/components/PinInput/CustomPinInputCell.js +0 -11
- package/src/components/PinInput/CustomPinInputCell.js.map +0 -1
- package/src/components/PinInput/PinInput.js +0 -81
- package/src/components/PinInput/PinInput.js.map +0 -1
- package/src/components/PinInput/PinInputText.js +0 -14
- package/src/components/PinInput/PinInputText.js.map +0 -1
- package/src/components/PinInput/index.js +0 -4
- package/src/components/PinInput/index.js.map +0 -1
- package/src/components/Portal/Portal.js +0 -36
- package/src/components/Portal/Portal.js.map +0 -1
- package/src/components/Portal/PortalConsumer.js +0 -28
- package/src/components/Portal/PortalConsumer.js.map +0 -1
- package/src/components/Portal/PortalHost.js +0 -108
- package/src/components/Portal/PortalHost.js.map +0 -1
- package/src/components/Portal/PortalManager.js +0 -33
- package/src/components/Portal/PortalManager.js.map +0 -1
- package/src/components/Pressable.js +0 -13
- package/src/components/Pressable.js.map +0 -1
- package/src/components/Progress/CircularProgress/CircularProgress.js +0 -103
- package/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
- package/src/components/Progress/CircularProgress/index.js +0 -14
- package/src/components/Progress/CircularProgress/index.js.map +0 -1
- package/src/components/Progress/IndeterminateProgress.js +0 -39
- package/src/components/Progress/IndeterminateProgress.js.map +0 -1
- package/src/components/Progress/LinearProgress/LinearProgress.js +0 -56
- package/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
- package/src/components/Progress/LinearProgress/index.js +0 -14
- package/src/components/Progress/LinearProgress/index.js.map +0 -1
- package/src/components/Progress/ProgressCommon.js +0 -2
- package/src/components/Progress/ProgressCommon.js.map +0 -1
- package/src/components/ProgressIndicator.js +0 -28
- package/src/components/ProgressIndicator.js.map +0 -1
- package/src/components/RadioButton/RadioButton.js +0 -18
- package/src/components/RadioButton/RadioButton.js.map +0 -1
- package/src/components/RadioButton/RadioButtonGroup.js +0 -44
- package/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
- package/src/components/RadioButton/RadioButtonRow.js +0 -77
- package/src/components/RadioButton/RadioButtonRow.js.map +0 -1
- package/src/components/RadioButton/context.js +0 -15
- package/src/components/RadioButton/context.js.map +0 -1
- package/src/components/RadioButton/index.js +0 -4
- package/src/components/RadioButton/index.js.map +0 -1
- package/src/components/Row.js +0 -49
- package/src/components/Row.js.map +0 -1
- package/src/components/SVG.js +0 -14
- package/src/components/SVG.js.map +0 -1
- package/src/components/ScreenContainer.js +0 -36
- package/src/components/ScreenContainer.js.map +0 -1
- package/src/components/SectionList/SectionHeader.js +0 -14
- package/src/components/SectionList/SectionHeader.js.map +0 -1
- package/src/components/SectionList/SectionList.js +0 -111
- package/src/components/SectionList/SectionList.js.map +0 -1
- package/src/components/SectionList/index.js +0 -3
- package/src/components/SectionList/index.js.map +0 -1
- package/src/components/Shadow.js +0 -26
- package/src/components/Shadow.js.map +0 -1
- package/src/components/Slider.js +0 -64
- package/src/components/Slider.js.map +0 -1
- package/src/components/StarRating.js +0 -51
- package/src/components/StarRating.js.map +0 -1
- package/src/components/StepIndicator.js +0 -347
- package/src/components/StepIndicator.js.map +0 -1
- package/src/components/Stepper.js +0 -42
- package/src/components/Stepper.js.map +0 -1
- package/src/components/Surface.js +0 -33
- package/src/components/Surface.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableItem.js +0 -119
- package/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableItemButton.js +0 -6
- package/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableItemCommon.js +0 -44
- package/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableList.js +0 -29
- package/src/components/SwipeableItem/SwipeableList.js.map +0 -1
- package/src/components/SwipeableItem/index.js +0 -4
- package/src/components/SwipeableItem/index.js.map +0 -1
- package/src/components/Swiper/Swiper.js +0 -74
- package/src/components/Swiper/Swiper.js.map +0 -1
- package/src/components/Swiper/SwiperItem.js +0 -10
- package/src/components/Swiper/SwiperItem.js.map +0 -1
- package/src/components/Swiper/index.js +0 -3
- package/src/components/Swiper/index.js.map +0 -1
- package/src/components/Switch.js +0 -57
- package/src/components/Switch.js.map +0 -1
- package/src/components/TabView/TabView.js +0 -55
- package/src/components/TabView/TabView.js.map +0 -1
- package/src/components/TabView/TabViewItem.js +0 -12
- package/src/components/TabView/TabViewItem.js.map +0 -1
- package/src/components/TabView/index.js +0 -3
- package/src/components/TabView/index.js.map +0 -1
- package/src/components/Table/Table.js +0 -94
- package/src/components/Table/Table.js.map +0 -1
- package/src/components/Table/TableCell.js +0 -34
- package/src/components/Table/TableCell.js.map +0 -1
- package/src/components/Table/TableCommon.js +0 -13
- package/src/components/Table/TableCommon.js.map +0 -1
- package/src/components/Table/TableRow.js +0 -40
- package/src/components/Table/TableRow.js.map +0 -1
- package/src/components/Table/index.js +0 -4
- package/src/components/Table/index.js.map +0 -1
- package/src/components/Text.js +0 -34
- package/src/components/Text.js.map +0 -1
- package/src/components/TextField.js +0 -414
- package/src/components/TextField.js.map +0 -1
- package/src/components/TextInput.js +0 -15
- package/src/components/TextInput.js.map +0 -1
- package/src/components/Touchable.js +0 -13
- package/src/components/Touchable.js.map +0 -1
- package/src/components/Touchable.web.js +0 -3
- package/src/components/Touchable.web.js.map +0 -1
- package/src/components/Typography.js +0 -37
- package/src/components/Typography.js.map +0 -1
- package/src/components/YoutubePlayer/YoutubePlayer.js +0 -21
- package/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
- package/src/components/YoutubePlayer/YoutubePlayer.native.js +0 -10
- package/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
- package/src/components/YoutubePlayer/YoutubePlayerProps.js +0 -2
- package/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
- package/src/components/YoutubePlayer/index.js +0 -2
- package/src/components/YoutubePlayer/index.js.map +0 -1
- package/src/components/useAuthState.js +0 -35
- package/src/components/useAuthState.js.map +0 -1
- package/src/constants.js +0 -11
- package/src/constants.js.map +0 -1
- package/src/deprecated-components/AccordionItem.js +0 -36
- package/src/deprecated-components/AccordionItem.js.map +0 -1
- package/src/deprecated-components/AnimatedCircularProgress.js +0 -47
- package/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
- package/src/deprecated-components/AvatarEdit.js +0 -34
- package/src/deprecated-components/AvatarEdit.js.map +0 -1
- package/src/deprecated-components/Banner.js +0 -113
- package/src/deprecated-components/Banner.js.map +0 -1
- package/src/deprecated-components/Card.js +0 -61
- package/src/deprecated-components/Card.js.map +0 -1
- package/src/deprecated-components/CheckboxGroup.js +0 -25
- package/src/deprecated-components/CheckboxGroup.js.map +0 -1
- package/src/deprecated-components/CircleImage.js +0 -12
- package/src/deprecated-components/CircleImage.js.map +0 -1
- package/src/deprecated-components/CircularProgress.js +0 -85
- package/src/deprecated-components/CircularProgress.js.map +0 -1
- package/src/deprecated-components/Container.js +0 -47
- package/src/deprecated-components/Container.js.map +0 -1
- package/src/deprecated-components/DeprecatedButton.js +0 -87
- package/src/deprecated-components/DeprecatedButton.js.map +0 -1
- package/src/deprecated-components/DeprecatedCardWrapper.js +0 -22
- package/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
- package/src/deprecated-components/DeprecatedFAB.js +0 -118
- package/src/deprecated-components/DeprecatedFAB.js.map +0 -1
- package/src/deprecated-components/FAB.js +0 -50
- package/src/deprecated-components/FAB.js.map +0 -1
- package/src/deprecated-components/FieldSearchBarFull.js +0 -57
- package/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
- package/src/deprecated-components/Layout.js +0 -69
- package/src/deprecated-components/Layout.js.map +0 -1
- package/src/deprecated-components/ProgressBar.js +0 -122
- package/src/deprecated-components/ProgressBar.js.map +0 -1
- package/src/deprecated-components/ProgressCircle.js +0 -17
- package/src/deprecated-components/ProgressCircle.js.map +0 -1
- package/src/deprecated-components/RadioButtonFieldGroup.js +0 -21
- package/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
- package/src/deprecated-components/RowBodyIcon.js +0 -12
- package/src/deprecated-components/RowBodyIcon.js.map +0 -1
- package/src/deprecated-components/RowHeadlineImageCaption.js +0 -16
- package/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
- package/src/deprecated-components/RowHeadlineImageIcon.js +0 -18
- package/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
- package/src/deprecated-components/ToggleButton.js +0 -43
- package/src/deprecated-components/ToggleButton.js.map +0 -1
- package/src/hooks.js +0 -25
- package/src/hooks.js.map +0 -1
- package/src/index.js +0 -66
- package/src/index.js.map +0 -1
- package/src/interfaces/Icon.js +0 -9
- package/src/interfaces/Icon.js.map +0 -1
- package/src/styles/DarkTheme.js +0 -27
- package/src/styles/DarkTheme.js.map +0 -1
- package/src/styles/DefaultTheme.js +0 -112
- package/src/styles/DefaultTheme.js.map +0 -1
- package/src/styles/fonts.js +0 -63
- package/src/styles/fonts.js.map +0 -1
- package/src/styles/overlay.js +0 -61
- package/src/styles/overlay.js.map +0 -1
- package/src/styles/shadow.js +0 -52
- package/src/styles/shadow.js.map +0 -1
- package/src/theming.js +0 -4
- package/src/theming.js.map +0 -1
- package/src/utilities.js +0 -201
- package/src/utilities.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PickerItem.js","sourceRoot":"","sources":["PickerItem.tsx"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,GAAG,EAAE;IACxD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import NativePicker from "./NativePicker";
|
|
3
|
-
import DropDownPicker from "./dropdown/DropDownPicker";
|
|
4
|
-
import { withTheme } from "../../theming";
|
|
5
|
-
const SinglePicker = ({ mode = "native", ...rest }) => {
|
|
6
|
-
switch (mode) {
|
|
7
|
-
case "native":
|
|
8
|
-
//@ts-ignore Ignore theme type issues
|
|
9
|
-
return React.createElement(NativePicker, { ...rest });
|
|
10
|
-
case "dropdown":
|
|
11
|
-
//@ts-ignore
|
|
12
|
-
return React.createElement(DropDownPicker, { ...rest });
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export const Picker = withTheme(SinglePicker);
|
|
16
|
-
export { default as MultiSelectPicker } from "./dropdown/MultiSelectPicker";
|
|
17
|
-
export { default as PickerItem } from "./dropdown/PickerItem";
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,MAAM,YAAY,GAAmD,CAAC,EACpE,IAAI,GAAG,QAAQ,EACf,GAAG,IAAI,EACR,EAAE,EAAE;IACH,QAAQ,IAAI,EAAE;QACZ,KAAK,QAAQ;YACX,qCAAqC;YACrC,OAAO,oBAAC,YAAY,OAAK,IAAI,GAAI,CAAC;QACpC,KAAK,UAAU;YACb,YAAY;YACZ,OAAO,oBAAC,cAAc,OAAK,IAAI,GAAI,CAAC;KACvC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
/**
|
|
4
|
-
* Simple View wrapper component to create a custom pin input cell
|
|
5
|
-
* Meant to be used in PinInput's renderItem
|
|
6
|
-
*/
|
|
7
|
-
const CustomPinInputCell = (props) => {
|
|
8
|
-
return React.createElement(View, { ...props });
|
|
9
|
-
};
|
|
10
|
-
export default CustomPinInputCell;
|
|
11
|
-
//# sourceMappingURL=CustomPinInputCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomPinInputCell.js","sourceRoot":"","sources":["CustomPinInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,IAAI,EAAqB,MAAM,cAAc,CAAC;AAO7E;;;GAGG;AACH,MAAM,kBAAkB,GAEpB,CAAC,KAAK,EAAE,EAAE;IACZ,OAAO,oBAAC,IAAI,OAAK,KAAK,GAAI,CAAC;AAC7B,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View, StyleSheet, } from "react-native";
|
|
3
|
-
import TextInput from "../TextInput";
|
|
4
|
-
import { CodeField, useClearByFocusCell, } from "react-native-confirmation-code-field";
|
|
5
|
-
import { withTheme } from "../../theming";
|
|
6
|
-
import PinInputText from "./PinInputText";
|
|
7
|
-
import { extractStyles } from "../../utilities";
|
|
8
|
-
const PinInput = React.forwardRef(({ theme, onInputFull, cellCount = 4, clearOnCellFocus = true, blurOnFull = true, renderItem, value, onChangeText, focusedBorderColor = theme.colors.primary, focusedBackgroundColor, focusedBorderWidth, focusedTextColor, style, ...rest }, ref) => {
|
|
9
|
-
const newPinInputRef = React.useRef(null);
|
|
10
|
-
// Use the provided ref or default to new ref when not provided
|
|
11
|
-
const pinInputRef = ref
|
|
12
|
-
? ref
|
|
13
|
-
: newPinInputRef;
|
|
14
|
-
const { viewStyles, textStyles } = extractStyles(style);
|
|
15
|
-
// Clears input of a cell when focused, configured as explained here (https://github.com/retyui/react-native-confirmation-code-field/blob/master/API.md#useclearbyfocuscellvalue-string-setvalue-text-string--void)
|
|
16
|
-
const [codeFieldProps, getCellOnLayout] = useClearByFocusCell({
|
|
17
|
-
value,
|
|
18
|
-
setValue: (text) => onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(text),
|
|
19
|
-
});
|
|
20
|
-
React.useEffect(() => {
|
|
21
|
-
var _a;
|
|
22
|
-
if ((value === null || value === void 0 ? void 0 : value.length) === cellCount) {
|
|
23
|
-
if (blurOnFull) {
|
|
24
|
-
(_a = pinInputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
25
|
-
}
|
|
26
|
-
onInputFull === null || onInputFull === void 0 ? void 0 : onInputFull(value);
|
|
27
|
-
}
|
|
28
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29
|
-
}, [value, cellCount, blurOnFull, pinInputRef]);
|
|
30
|
-
const renderCell = (cellValue, index, isFocused) => {
|
|
31
|
-
const cell = (renderItem === null || renderItem === void 0 ? void 0 : renderItem({ cellValue, index, isFocused })) || (React.createElement(View, { testID: "default-code-input-cell", style: [
|
|
32
|
-
styles.cell,
|
|
33
|
-
{ borderColor: theme.colors.disabled },
|
|
34
|
-
viewStyles,
|
|
35
|
-
isFocused && focusedBorderWidth
|
|
36
|
-
? { borderWidth: focusedBorderWidth }
|
|
37
|
-
: undefined,
|
|
38
|
-
isFocused && focusedBorderColor
|
|
39
|
-
? { borderColor: focusedBorderColor }
|
|
40
|
-
: undefined,
|
|
41
|
-
isFocused && focusedBackgroundColor
|
|
42
|
-
? { backgroundColor: focusedBackgroundColor }
|
|
43
|
-
: undefined,
|
|
44
|
-
] },
|
|
45
|
-
React.createElement(PinInputText, { style: [
|
|
46
|
-
styles.cellText,
|
|
47
|
-
{ color: theme.colors.strong },
|
|
48
|
-
textStyles,
|
|
49
|
-
isFocused && focusedTextColor
|
|
50
|
-
? { color: focusedTextColor }
|
|
51
|
-
: undefined,
|
|
52
|
-
], isFocused: isFocused }, cellValue)));
|
|
53
|
-
return React.cloneElement(cell, {
|
|
54
|
-
onLayout: clearOnCellFocus ? getCellOnLayout(index) : undefined,
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
return (React.createElement(CodeField, { ref: pinInputRef, ...(clearOnCellFocus ? codeFieldProps : {}), value: value, onChangeText: onChangeText, rootStyle: styles.rootContainer, textInputStyle: { height: "100%" }, InputComponent: TextInput, cellCount: cellCount, renderCell: ({ symbol: cellValue, index, isFocused }) => (React.createElement(React.Fragment, { key: index }, renderCell(cellValue, index, isFocused))), ...rest }));
|
|
58
|
-
});
|
|
59
|
-
const styles = StyleSheet.create({
|
|
60
|
-
rootContainer: {
|
|
61
|
-
justifyContent: "center",
|
|
62
|
-
},
|
|
63
|
-
cell: {
|
|
64
|
-
marginLeft: 5,
|
|
65
|
-
marginRight: 5,
|
|
66
|
-
padding: 5,
|
|
67
|
-
borderRadius: 5,
|
|
68
|
-
justifyContent: "center",
|
|
69
|
-
alignItems: "center",
|
|
70
|
-
aspectRatio: 1,
|
|
71
|
-
maxWidth: 70,
|
|
72
|
-
maxHeight: 70,
|
|
73
|
-
borderWidth: 1,
|
|
74
|
-
flex: 1,
|
|
75
|
-
},
|
|
76
|
-
cellText: {
|
|
77
|
-
fontSize: 25,
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
export default withTheme(PinInput);
|
|
81
|
-
//# sourceMappingURL=PinInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PinInput.js","sourceRoot":"","sources":["PinInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,IAAI,EACJ,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,SAA6B,MAAM,cAAc,CAAC;AACzD,OAAO,EACL,SAAS,EACT,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,eAA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EAAE,WAAW,KACZ,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAC5C,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,CAAC,aAAa,EAC/B,cAAc,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAClC,cAAc,EAAE,SAAS,EACzB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACvD,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,KAAK,IACvB,UAAU,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,CACzB,CAClB,KACG,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,cAAc,EAAE,QAAQ;KACzB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;QACV,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,CAAC;QACd,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,CAAC;QACd,IAAI,EAAE,CAAC;KACR;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
|
-
import { withTheme } from "../../theming";
|
|
4
|
-
import { Cursor } from "react-native-confirmation-code-field";
|
|
5
|
-
/**
|
|
6
|
-
* Text component that can conditionally render a blinking cursor when focused and empty
|
|
7
|
-
* Meant to be used within a CustomPinInputCell component
|
|
8
|
-
*/
|
|
9
|
-
const CustomPinInputText = ({ isFocused, cursorBlinkDuration, cursorText, style, theme, children, ...rest }) => {
|
|
10
|
-
return (React.createElement(Text, { style: [{ color: theme.colors.strong }, style], ...rest }, children ||
|
|
11
|
-
(isFocused ? (React.createElement(Cursor, { cursorSymbol: cursorText, delay: cursorBlinkDuration })) : null)));
|
|
12
|
-
};
|
|
13
|
-
export default withTheme(CustomPinInputText);
|
|
14
|
-
//# sourceMappingURL=PinInputText.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PinInputText.js","sourceRoot":"","sources":["PinInputText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAS9D;;;GAGG;AACH,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,KAAM,IAAI,IAC3D,QAAQ;QACP,CAAC,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,mBAAmB,GAAI,CACjE,CAAC,CAAC,CAAC,IAAI,CAAC,CACN,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import PortalConsumer from "./PortalConsumer";
|
|
3
|
-
import PortalHost, { PortalContext } from "./PortalHost";
|
|
4
|
-
import { ThemeProvider, withTheme } from "../../theming";
|
|
5
|
-
/**
|
|
6
|
-
* Portal allows to render a component at a different place in the parent tree.
|
|
7
|
-
* You can use it to render content which should appear above other elements, similar to `Modal`.
|
|
8
|
-
* It requires a [`Portal.Host`](portal-host.html) component to be rendered somewhere in the parent tree.
|
|
9
|
-
*
|
|
10
|
-
* ## Usage
|
|
11
|
-
* ```js
|
|
12
|
-
* import * as React from 'react';
|
|
13
|
-
* import { Portal, Text } from 'react-native-paper';
|
|
14
|
-
*
|
|
15
|
-
* export default class MyComponent extends React.Component {
|
|
16
|
-
* render() {
|
|
17
|
-
* return (
|
|
18
|
-
* <Portal>
|
|
19
|
-
* <Text>This is rendered at a different place</Text>
|
|
20
|
-
* </Portal>
|
|
21
|
-
* );
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
class Portal extends React.Component {
|
|
27
|
-
render() {
|
|
28
|
-
const { children, theme } = this.props;
|
|
29
|
-
return (React.createElement(PortalContext.Consumer, null, (manager) => (React.createElement(PortalConsumer, { manager: manager },
|
|
30
|
-
React.createElement(ThemeProvider, { theme: theme }, children)))));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
// @component ./PortalHost.tsx
|
|
34
|
-
Portal.Host = PortalHost;
|
|
35
|
-
export default withTheme(Portal);
|
|
36
|
-
//# sourceMappingURL=Portal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Portal.js","sourceRoot":"","sources":["Portal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,UAAU,EAAE,EAAE,aAAa,EAAiB,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAczD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAO,SAAQ,KAAK,CAAC,SAAgB;IAIzC,MAAM;QACJ,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEvC,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,QACpB,CAAC,OAAO,EAAE,EAAE,CAAC,CACZ,oBAAC,cAAc,IAAC,OAAO,EAAE,OAAwB;YAE/C,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAiB,CACxC,CAClB,CACsB,CAC1B,CAAC;IACJ,CAAC;;AAhBD,8BAA8B;AACvB,WAAI,GAAG,UAAU,CAAC;AAkB3B,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export default class PortalConsumer extends React.Component {
|
|
3
|
-
async componentDidMount() {
|
|
4
|
-
this.checkManager();
|
|
5
|
-
// Delay updating to prevent React from going to infinite loop
|
|
6
|
-
await Promise.resolve();
|
|
7
|
-
this.key = this.props.manager.mount(this.props.children);
|
|
8
|
-
}
|
|
9
|
-
componentDidUpdate() {
|
|
10
|
-
this.checkManager();
|
|
11
|
-
this.props.manager.update(this.key, this.props.children);
|
|
12
|
-
}
|
|
13
|
-
componentWillUnmount() {
|
|
14
|
-
this.checkManager();
|
|
15
|
-
this.props.manager.unmount(this.key);
|
|
16
|
-
}
|
|
17
|
-
checkManager() {
|
|
18
|
-
if (!this.props.manager) {
|
|
19
|
-
throw new Error("Looks like you forgot to wrap your root component with `Provider` component from `react-native-paper`.\n\n" +
|
|
20
|
-
"Please read our getting-started guide and make sure you've followed all the required steps.\n\n" +
|
|
21
|
-
"https://callstack.github.io/react-native-paper/getting-started.html");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=PortalConsumer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PortalConsumer.js","sourceRoot":"","sources":["PortalConsumer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,SAAgB;IAChE,KAAK,CAAC,iBAAiB;QACrB,IAAI,CAAC,YAAY,EAAE,CAAC;QAEpB,8DAA8D;QAC9D,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAExB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,YAAY,EAAE,CAAC;QAEpB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,YAAY,EAAE,CAAC;QAEpB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAIO,YAAY;QAClB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YACvB,MAAM,IAAI,KAAK,CACb,4GAA4G;gBAC1G,iGAAiG;gBACjG,qEAAqE,CACxE,CAAC;SACH;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import PortalManager from "./PortalManager";
|
|
4
|
-
export const PortalContext = React.createContext(null);
|
|
5
|
-
/**
|
|
6
|
-
* Portal host renders all of its children `Portal` elements.
|
|
7
|
-
* For example, you can wrap a screen in `Portal.Host` to render items above the screen.
|
|
8
|
-
* If you're using the `Provider` component, it already includes `Portal.Host`.
|
|
9
|
-
*
|
|
10
|
-
* ## Usage
|
|
11
|
-
* ```js
|
|
12
|
-
* import * as React from 'react';
|
|
13
|
-
* import { Text } from 'react-native';
|
|
14
|
-
* import { Portal } from 'react-native-paper';
|
|
15
|
-
*
|
|
16
|
-
* export default class MyComponent extends React.Component {
|
|
17
|
-
* render() {
|
|
18
|
-
* return (
|
|
19
|
-
* <Portal.Host>
|
|
20
|
-
* <Text>Content of the app</Text>
|
|
21
|
-
* </Portal.Host>
|
|
22
|
-
* );
|
|
23
|
-
* }
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* Here any `Portal` elements under `<App />` are rendered alongside `<App />` and will appear above `<App />` like a `Modal`.
|
|
28
|
-
*/
|
|
29
|
-
export default class PortalHost extends React.Component {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(...arguments);
|
|
32
|
-
this.setManager = (manager) => {
|
|
33
|
-
this.manager = manager;
|
|
34
|
-
};
|
|
35
|
-
this.mount = (children) => {
|
|
36
|
-
const key = this.nextKey++;
|
|
37
|
-
if (this.manager) {
|
|
38
|
-
this.manager.mount(key, children);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.queue.push({ type: "mount", key, children });
|
|
42
|
-
}
|
|
43
|
-
return key;
|
|
44
|
-
};
|
|
45
|
-
this.update = (key, children) => {
|
|
46
|
-
if (this.manager) {
|
|
47
|
-
this.manager.update(key, children);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
const op = { type: "mount", key, children };
|
|
51
|
-
const index = this.queue.findIndex((o) => o.type === "mount" || (o.type === "update" && o.key === key));
|
|
52
|
-
if (index > -1) {
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
this.queue[index] = op;
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.queue.push(op);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
this.unmount = (key) => {
|
|
62
|
-
if (this.manager) {
|
|
63
|
-
this.manager.unmount(key);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
this.queue.push({ type: "unmount", key });
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
this.nextKey = 0;
|
|
70
|
-
this.queue = [];
|
|
71
|
-
}
|
|
72
|
-
componentDidMount() {
|
|
73
|
-
const manager = this.manager;
|
|
74
|
-
const queue = this.queue;
|
|
75
|
-
while (queue.length && manager) {
|
|
76
|
-
const action = queue.pop();
|
|
77
|
-
if (action) {
|
|
78
|
-
switch (action.type) {
|
|
79
|
-
case "mount":
|
|
80
|
-
manager.mount(action.key, action.children);
|
|
81
|
-
break;
|
|
82
|
-
case "update":
|
|
83
|
-
manager.update(action.key, action.children);
|
|
84
|
-
break;
|
|
85
|
-
case "unmount":
|
|
86
|
-
manager.unmount(action.key);
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
return (React.createElement(PortalContext.Provider, { value: {
|
|
94
|
-
mount: this.mount,
|
|
95
|
-
update: this.update,
|
|
96
|
-
unmount: this.unmount,
|
|
97
|
-
} },
|
|
98
|
-
React.createElement(View, { style: styles.container, collapsable: false, pointerEvents: "box-none" }, this.props.children),
|
|
99
|
-
React.createElement(PortalManager, { ref: this.setManager })));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
PortalHost.displayName = "Portal.Host";
|
|
103
|
-
const styles = StyleSheet.create({
|
|
104
|
-
container: {
|
|
105
|
-
flex: 1,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
//# sourceMappingURL=PortalHost.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PortalHost.js","sourceRoot":"","sources":["PortalHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAiB5C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAgB,IAAW,CAAC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,SAAgB;IAA9D;;QAyBU,eAAU,GAAG,CAAC,OAAyC,EAAE,EAAE;YACjE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC,CAAC;QAEM,UAAK,GAAG,CAAC,QAAyB,EAAE,EAAE;YAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAE3B,IAAI,IAAI,CAAC,OAAO,EAAE;gBAChB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;aACnC;iBAAM;gBACL,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;aACnD;YAED,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;QAEM,WAAM,GAAG,CAAC,GAAW,EAAE,QAAyB,EAAE,EAAE;YAC1D,IAAI,IAAI,CAAC,OAAO,EAAE;gBAChB,IAAI,CAAC,OAAO,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AO;wBACV,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;wBAC3C,MAAM;oBACR,KAAK,QAAQ;wBACX,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;wBAC5C,MAAM;oBACR,KAAK,SAAS;wBACZ,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;wBAC5B,MAAM;iBACT;aACF;SACF;IACH,CAAC;IAgDD,MAAM;QACJ,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,IACrB,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB;YAGD,oBAAC,IAAI,IACH,KAAK,EAAE,MAAM,CAAC,SAAS,EACvB,WAAW,EAAE,KAAK,EAClB,aAAa,EAAC,UAAU,IAEvB,IAAI,CAAC,KAAK,CAAC,QAAQ,CACf;YACP,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,CAAC,UAAU,GAAI,CAChB,CAC1B,CAAC;IACJ,CAAC;;AA1FM,sBAAW,GAAG,aAAa,CAAC;AA6FrC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet } from "react-native";
|
|
3
|
-
/**
|
|
4
|
-
* Portal host is the component which actually renders all Portals.
|
|
5
|
-
*/
|
|
6
|
-
export default class PortalManager extends React.PureComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.state = {
|
|
10
|
-
portals: [],
|
|
11
|
-
};
|
|
12
|
-
this.mount = (key, children) => {
|
|
13
|
-
this.setState((state) => ({
|
|
14
|
-
portals: [...state.portals, { key, children }],
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
this.update = (key, children) => this.setState((state) => ({
|
|
18
|
-
portals: state.portals.map((item) => {
|
|
19
|
-
if (item.key === key) {
|
|
20
|
-
return { ...item, children };
|
|
21
|
-
}
|
|
22
|
-
return item;
|
|
23
|
-
}),
|
|
24
|
-
}));
|
|
25
|
-
this.unmount = (key) => this.setState((state) => ({
|
|
26
|
-
portals: state.portals.filter((item) => item.key !== key),
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return this.state.portals.map(({ key, children }) => (React.createElement(View, { key: key, collapsable: false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */, pointerEvents: "box-none", style: StyleSheet.absoluteFill }, children)));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=PortalManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PortalManager.js","sourceRoot":"","sources":["PortalManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAShD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,aAAwB;IAAzE;;QACE,UAAK,GAAU;YACb,OAAO,EAAE,EAAE;SACZ,CAAC;QAEF,UAAK,GAAG,CAAC,GAAW,EAAE,QAAyB,EAAE,EAAE;YACjD,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBACxB,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;aAC/C,CAAC,CAAC,CAAC;QACN,CAAC,CAAC;QAEF,WAAM,GAAG,CAAC,GAAW,EAAE,QAAyB,EAAE,EAAE,CAClD,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACxB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBAClC,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,EAAE;oBACpB,OAAO,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC;iBAC9B;gBACD,OAAO,IAAI,CAAC;YACd,CAAC,CAAC;SACH,CAAC,CAAC,CAAC;QAEN,YAAO,GAAG,CAAC,GAAW,EAAE,EAAE,CACxB,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACxB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC;SAC1D,CAAC,CAAC,CAAC;IAgBR,CAAC;IAdC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACnD,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,EACR,WAAW,EACT,KAAK,CAAC,wGAAwG,EAEhH,aAAa,EAAC,UAAU,EACxB,KAAK,EAAE,UAAU,CAAC,YAAY,IAE7B,QAAQ,CACJ,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Pressable as NativePressable, } from "react-native";
|
|
3
|
-
export default function Pressable({ children, disabled, onPress, activeOpacity = 0.8, disabledOpacity = 0.8, delayLongPress, hitSlop, style, ...props }) {
|
|
4
|
-
return (React.createElement(NativePressable, { onPress: onPress, disabled: disabled, delayLongPress: delayLongPress ? delayLongPress : 500, hitSlop: hitSlop ? hitSlop : 8, style: ({ pressed }) => {
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
|
|
8
|
-
},
|
|
9
|
-
style,
|
|
10
|
-
];
|
|
11
|
-
}, ...props }, children));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Pressable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.js","sourceRoot":"","sources":["Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,IAAI,eAAe,GAG7B,MAAM,cAAc,CAAC;AAQtB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAa,GAAG,GAAG,EACnB,eAAe,GAAG,GAAG,EACrB,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACF;IACN,OAAO,CACL,oBAAC,eAAe,IACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAC9B,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,OAAO;gBACL;oBACE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;iBAClE;gBACD,KAAK;aACN,CAAC;QACJ,CAAC,KACG,KAAK,IAER,QAAQ,CACO,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
import { View } from "react-native";
|
|
4
|
-
import Animated, { useAnimatedProps, useSharedValue, withTiming, } from "react-native-reanimated";
|
|
5
|
-
import { DEFAULT_ANIMATION_DURATION, } from "../ProgressCommon";
|
|
6
|
-
export const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
7
|
-
export const CircularProgress = ({ theme, minimumValue = 0, maximumValue = 100, value = minimumValue, thickness = 10, trackThickness = thickness, color = theme.colors.primary, trackColor = theme.colors.divider, trackOpacity = 1, showTrack = true, animationDuration = DEFAULT_ANIMATION_DURATION, isAnimated = true, lineCap = "round", trackLineCap = lineCap, dashWidth, trackDashWidth, dashGap, trackDashGap, dashOffset, trackDashOffset, customDashArray, trackCustomDashArray, onFullPathWidth, startPosition = "top", style, testID, }) => {
|
|
8
|
-
const [svgContainerWidth, setSvgContainerWidth] = React.useState(0);
|
|
9
|
-
const [circumfrence, setCircumefrence] = React.useState(0);
|
|
10
|
-
const dashArray = dashWidth !== undefined
|
|
11
|
-
? `${dashWidth} ${dashGap || dashWidth}`
|
|
12
|
-
: undefined;
|
|
13
|
-
const trackDashArray = trackDashWidth !== undefined
|
|
14
|
-
? `${trackDashWidth} ${trackDashGap || trackDashWidth}`
|
|
15
|
-
: undefined;
|
|
16
|
-
const maxThickness = Math.max(thickness, trackThickness);
|
|
17
|
-
const thicknessOffset = maxThickness / 2; // This offset guarantees nothing is cut off by view bounds
|
|
18
|
-
const radius = svgContainerWidth / 2;
|
|
19
|
-
const c = 2 * Math.PI * radius;
|
|
20
|
-
if (c !== circumfrence) {
|
|
21
|
-
setCircumefrence(c);
|
|
22
|
-
}
|
|
23
|
-
const startAngle = React.useMemo(() => {
|
|
24
|
-
switch (startPosition) {
|
|
25
|
-
case "top":
|
|
26
|
-
return 0;
|
|
27
|
-
case "right":
|
|
28
|
-
return 90;
|
|
29
|
-
case "bottom":
|
|
30
|
-
return 180;
|
|
31
|
-
case "left":
|
|
32
|
-
return 270;
|
|
33
|
-
}
|
|
34
|
-
}, [startPosition]);
|
|
35
|
-
const currentFillPercentage = value / (maximumValue + minimumValue);
|
|
36
|
-
const currentAngle = useSharedValue(startAngle);
|
|
37
|
-
const progressPathAnimatedProps = useAnimatedProps(() => {
|
|
38
|
-
const isBelowMinAngle = currentAngle.value <= startAngle;
|
|
39
|
-
return {
|
|
40
|
-
d: circlePath(radius, radius, radius - thicknessOffset, startAngle, Math.min(currentAngle.value, startAngle + 360) //Prevents going beyond the max angle
|
|
41
|
-
),
|
|
42
|
-
strokeOpacity: isBelowMinAngle ? 0.0 : 1.0,
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
React.useEffect(() => {
|
|
46
|
-
currentAngle.value = withTiming(startAngle + currentFillPercentage * 360, {
|
|
47
|
-
duration: isAnimated ? animationDuration : 0,
|
|
48
|
-
});
|
|
49
|
-
}, [
|
|
50
|
-
value,
|
|
51
|
-
currentFillPercentage,
|
|
52
|
-
animationDuration,
|
|
53
|
-
currentAngle,
|
|
54
|
-
maximumValue,
|
|
55
|
-
minimumValue,
|
|
56
|
-
isAnimated,
|
|
57
|
-
startAngle,
|
|
58
|
-
]);
|
|
59
|
-
React.useEffect(() => {
|
|
60
|
-
onFullPathWidth === null || onFullPathWidth === void 0 ? void 0 : onFullPathWidth(circumfrence);
|
|
61
|
-
}, [circumfrence, onFullPathWidth]);
|
|
62
|
-
return (React.createElement(View, { onLayout: (event) => {
|
|
63
|
-
const width = event.nativeEvent.layout.width;
|
|
64
|
-
setSvgContainerWidth(width);
|
|
65
|
-
}, style: [
|
|
66
|
-
{
|
|
67
|
-
height: svgContainerWidth,
|
|
68
|
-
},
|
|
69
|
-
style,
|
|
70
|
-
] },
|
|
71
|
-
React.createElement(Svg, { testID: testID !== null && testID !== void 0 ? testID : "circular-progress-component", style: { flex: 1 } },
|
|
72
|
-
showTrack && (React.createElement(Path, { d: circlePath(radius, radius, radius - thicknessOffset, startAngle, startAngle + 360), stroke: trackColor, strokeWidth: trackThickness, strokeOpacity: trackOpacity, strokeLinecap: trackLineCap, strokeDasharray: trackCustomDashArray || trackDashArray, strokeDashoffset: trackDashOffset, fill: "rgba(0,0,0,0)" })),
|
|
73
|
-
React.createElement(AnimatedPath, { animatedProps: progressPathAnimatedProps, stroke: color, strokeWidth: thickness, strokeLinecap: lineCap, strokeDasharray: customDashArray || dashArray, strokeDashoffset: dashOffset, fill: "rgba(0,0,0,0)", onPress: () => { } }))));
|
|
74
|
-
};
|
|
75
|
-
// From: https://github.com/bartgryszko/react-native-circular-progress/blob/a93b501aea40306126c8ede72089741eead52308/src/CircularProgress.js#L15
|
|
76
|
-
function circlePath(x, y, radius, startAngle, endAngle) {
|
|
77
|
-
"worklet"; // Reanimated worklet to be runnable on the UI thread
|
|
78
|
-
function polarToCartesian(centerX, centerY, radius, angleInDegrees) {
|
|
79
|
-
var angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0;
|
|
80
|
-
return {
|
|
81
|
-
x: centerX + radius * Math.cos(angleInRadians),
|
|
82
|
-
y: centerY + radius * Math.sin(angleInRadians),
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
var start = polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
86
|
-
var end = polarToCartesian(x, y, radius, startAngle);
|
|
87
|
-
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
|
|
88
|
-
var d = [
|
|
89
|
-
"M",
|
|
90
|
-
start.x,
|
|
91
|
-
start.y,
|
|
92
|
-
"A",
|
|
93
|
-
radius,
|
|
94
|
-
radius,
|
|
95
|
-
0,
|
|
96
|
-
largeArcFlag,
|
|
97
|
-
0,
|
|
98
|
-
end.x,
|
|
99
|
-
end.y,
|
|
100
|
-
];
|
|
101
|
-
return d.join(" ");
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=CircularProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CircularProgress.js","sourceRoot":"","sources":["CircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,EAAE,EAAE,IAAI,EAAa,MAAM,kBAAkB,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,KAAK,CAAC,CAAC;QACP,GAAG;QACH,MAAM;QACN,MAAM;QACN,CAAC;QACD,YAAY;QACZ,CAAC;QACD,GAAG,CAAC,CAAC;QACL,GAAG,CAAC,CAAC;KACN,CAAC;IACF,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import IndeterminateProgress from "../IndeterminateProgress";
|
|
3
|
-
import { CircularProgress as CircularProgressComponent } from "./CircularProgress";
|
|
4
|
-
import { withTheme } from "../../../theming";
|
|
5
|
-
const CircularProgress = (props) => {
|
|
6
|
-
if (props.indeterminate) {
|
|
7
|
-
return (React.createElement(IndeterminateProgress, { ProgressComponent: CircularProgressComponent, ...props }));
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return React.createElement(CircularProgressComponent, { ...props });
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export default withTheme(CircularProgress);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAM7D,OAAO,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,gBAAgB,GAElB,CAAC,KAAK,EAAE,EAAE;IACZ,IAAI,KAAK,CAAC,aAAa,EAAE;QACvB,OAAO,CACL,oBAAC,qBAAqB,IACpB,iBAAiB,EACf,yBAAwE,KAEtE,KAAK,GACT,CACH,CAAC;KACH;SAAM;QACL,OAAO,oBAAC,yBAAyB,OAAK,KAAK,GAAI,CAAC;KACjD;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { runOnJS, useAnimatedReaction, useSharedValue, withTiming, } from "react-native-reanimated";
|
|
3
|
-
import { DEFAULT_ANIMATION_DURATION, } from "./ProgressCommon";
|
|
4
|
-
const IndeterminateProgress = ({ ProgressComponent, ...rest }) => {
|
|
5
|
-
const [pathWidth, setPathWidth] = React.useState(0);
|
|
6
|
-
const [value, setValue] = React.useState(0);
|
|
7
|
-
const [dashOffset, setDashOffset] = React.useState(0);
|
|
8
|
-
const animationDuration = rest.animationDuration || DEFAULT_ANIMATION_DURATION;
|
|
9
|
-
const currentOffset = useSharedValue(0);
|
|
10
|
-
// dashOffset animation done through state due to it not being a 'native' prop that reanimated can animate on the native thread
|
|
11
|
-
useAnimatedReaction(() => currentOffset.value, (result) => runOnJS(setDashOffset)(result));
|
|
12
|
-
const repeatIndeterminateAnimation = React.useCallback(() => {
|
|
13
|
-
if (value === 0) {
|
|
14
|
-
setValue(100);
|
|
15
|
-
currentOffset.value = withTiming(pathWidth, {
|
|
16
|
-
duration: animationDuration,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
setValue(0);
|
|
21
|
-
currentOffset.value = withTiming(0, {
|
|
22
|
-
duration: animationDuration,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}, [currentOffset, value, animationDuration, pathWidth]);
|
|
26
|
-
React.useEffect(() => {
|
|
27
|
-
const timeout = setTimeout(() => {
|
|
28
|
-
repeatIndeterminateAnimation();
|
|
29
|
-
}, animationDuration);
|
|
30
|
-
return () => clearTimeout(timeout);
|
|
31
|
-
}, [animationDuration, repeatIndeterminateAnimation]);
|
|
32
|
-
return (React.createElement(ProgressComponent, { ...rest, testID: rest.testID || "indeterminate-progress", onFullPathWidth: (width) => {
|
|
33
|
-
var _a;
|
|
34
|
-
setPathWidth(width);
|
|
35
|
-
(_a = rest.onFullPathWidth) === null || _a === void 0 ? void 0 : _a.call(rest, width);
|
|
36
|
-
}, dashOffset: dashOffset, dashGap: pathWidth / 2, dashWidth: pathWidth / 2, animationDuration: animationDuration, minimumValue: 0, maximumValue: 100, value: 100 }));
|
|
37
|
-
};
|
|
38
|
-
export default IndeterminateProgress;
|
|
39
|
-
//# sourceMappingURL=IndeterminateProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IndeterminateProgress.js","sourceRoot":"","sources":["IndeterminateProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,cAAc,EACd,UAAU,GACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,0BAA0B,GAE3B,MAAM,kBAAkB,CAAC;AAM1B,MAAM,qBAAqB,GAAyC,CAAC,EACnE,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,iBAAiB,GACrB,IAAI,CAAC,iBAAiB,IAAI,0BAA0B,CAAC;IAEvD,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAExC,+HAA+H;IAC/H,mBAAmB,CACjB,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,EACzB,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAC3C,CAAC;IAEF,MAAM,4BAA4B,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC1D,IAAI,KA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