@draftbit/core 50.1.2 → 50.1.3-13d35c.2
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/lib/commonjs/Provider.js +1 -1
- package/lib/commonjs/components/AccordionGroup.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.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/CheckboxRow.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.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/IconButton.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/index.js +1 -1
- package/lib/commonjs/components/Picker/NativePicker.js +1 -1
- package/lib/commonjs/components/Picker/dropdown/DropDownModalPicker.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/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/Progress/CircularProgress/CircularProgress.js +1 -1
- package/lib/commonjs/components/Progress/CircularProgress/index.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/RadioButtonRow.js +1 -1
- package/lib/commonjs/components/Row.js +1 -1
- package/lib/commonjs/components/ScreenContainer.js +1 -1
- package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
- package/lib/commonjs/components/Slider.js +1 -1
- package/lib/commonjs/components/StarRating.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/Swiper/Swiper.js +1 -1
- package/lib/commonjs/components/Switch.js +1 -1
- package/lib/commonjs/components/TabView/TabView.js +1 -1
- package/lib/commonjs/components/Table/Table.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/Typography.js +1 -1
- package/lib/commonjs/deprecated-components/AccordionItem.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/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/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/commonjs/index.js +1 -1
- package/lib/typescript/src/Provider.d.ts +7 -5
- package/lib/typescript/src/Provider.js +4 -4
- package/lib/typescript/src/Provider.js.map +1 -1
- package/lib/typescript/src/components/AccordionGroup.d.ts +3 -5
- package/lib/typescript/src/components/AccordionGroup.js +3 -3
- package/lib/typescript/src/components/AccordionGroup.js.map +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +3 -5
- package/lib/typescript/src/components/BottomSheet/BottomSheet.js +4 -4
- package/lib/typescript/src/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/typescript/src/components/Button.js +8 -6
- package/lib/typescript/src/components/Button.js.map +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.js +3 -3
- package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +4 -2
- package/lib/typescript/src/components/Checkbox/CheckboxRow.js +4 -3
- package/lib/typescript/src/components/Checkbox/CheckboxRow.js.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +3 -5
- package/lib/typescript/src/components/DatePicker/DatePicker.js +24 -23
- package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +4 -12654
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js +8 -6
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +2 -2
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +3 -5
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
- package/lib/typescript/src/components/Divider.d.ts +3 -5
- package/lib/typescript/src/components/Divider.js +2 -2
- package/lib/typescript/src/components/Divider.js.map +1 -1
- package/lib/typescript/src/components/Elevation.d.ts +3 -5
- package/lib/typescript/src/components/Elevation.js +3 -4
- package/lib/typescript/src/components/Elevation.js.map +1 -1
- package/lib/typescript/src/components/FormRow.d.ts +1 -2
- package/lib/typescript/src/components/FormRow.js.map +1 -1
- package/lib/typescript/src/components/IconButton.d.ts +3 -5
- package/lib/typescript/src/components/IconButton.js +2 -2
- package/lib/typescript/src/components/IconButton.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +0 -2
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +5 -4
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +10 -13
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +2 -4
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js +1 -3
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
- package/lib/typescript/src/components/Picker/NativePicker.d.ts +1 -3
- package/lib/typescript/src/components/Picker/NativePicker.js +5 -2
- package/lib/typescript/src/components/Picker/NativePicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/PickerCommon.d.ts +2 -2
- package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.d.ts +1 -3
- package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js +2 -2
- package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +1 -3
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +2 -2
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +1 -3
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/index.d.ts +1 -3
- package/lib/typescript/src/components/Picker/index.js +1 -1
- package/lib/typescript/src/components/Picker/index.js.map +1 -1
- package/lib/typescript/src/components/PinInput/PinInput.d.ts +3 -5
- package/lib/typescript/src/components/PinInput/PinInput.js +4 -4
- package/lib/typescript/src/components/PinInput/PinInput.js.map +1 -1
- package/lib/typescript/src/components/PinInput/PinInputText.d.ts +3 -5
- package/lib/typescript/src/components/PinInput/PinInputText.js +2 -2
- package/lib/typescript/src/components/PinInput/PinInputText.js.map +1 -1
- package/lib/typescript/src/components/Portal/Portal.d.ts +1 -9
- package/lib/typescript/src/components/Portal/Portal.js +3 -5
- package/lib/typescript/src/components/Portal/Portal.js.map +1 -1
- package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
- package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
- package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +1 -3
- package/lib/typescript/src/components/Progress/CircularProgress/index.js +1 -1
- package/lib/typescript/src/components/Progress/CircularProgress/index.js.map +1 -1
- package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
- package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
- package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +1 -3
- package/lib/typescript/src/components/Progress/LinearProgress/index.js +1 -1
- package/lib/typescript/src/components/Progress/LinearProgress/index.js.map +1 -1
- package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +2 -2
- package/lib/typescript/src/components/ProgressIndicator.d.ts +10 -13
- package/lib/typescript/src/components/ProgressIndicator.js +1 -1
- package/lib/typescript/src/components/ProgressIndicator.js.map +1 -1
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +2 -2
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +4 -2
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.js +4 -3
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.js.map +1 -1
- package/lib/typescript/src/components/Row.d.ts +3 -5
- package/lib/typescript/src/components/Row.js +1 -1
- package/lib/typescript/src/components/Row.js.map +1 -1
- package/lib/typescript/src/components/ScreenContainer.d.ts +3 -6
- package/lib/typescript/src/components/ScreenContainer.js +2 -2
- package/lib/typescript/src/components/ScreenContainer.js.map +1 -1
- package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +3 -5
- package/lib/typescript/src/components/SectionList/SectionHeader.js +3 -3
- package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
- package/lib/typescript/src/components/Slider.d.ts +3 -6
- package/lib/typescript/src/components/Slider.js +6 -6
- package/lib/typescript/src/components/Slider.js.map +1 -1
- package/lib/typescript/src/components/StarRating.d.ts +3 -5
- package/lib/typescript/src/components/StarRating.js +1 -1
- package/lib/typescript/src/components/StarRating.js.map +1 -1
- package/lib/typescript/src/components/Stepper.d.ts +3 -5
- package/lib/typescript/src/components/Stepper.js +3 -2
- package/lib/typescript/src/components/Stepper.js.map +1 -1
- package/lib/typescript/src/components/Surface.d.ts +3 -5
- package/lib/typescript/src/components/Surface.js +3 -10
- package/lib/typescript/src/components/Surface.js.map +1 -1
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +3 -5
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +10 -5
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +4 -2
- package/lib/typescript/src/components/Swiper/Swiper.js +3 -2
- package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
- package/lib/typescript/src/components/Switch.d.ts +7 -24
- package/lib/typescript/src/components/Switch.js +3 -4
- package/lib/typescript/src/components/Switch.js.map +1 -1
- package/lib/typescript/src/components/TabView/TabView.d.ts +3 -5
- package/lib/typescript/src/components/TabView/TabView.js +4 -4
- package/lib/typescript/src/components/TabView/TabView.js.map +1 -1
- package/lib/typescript/src/components/Table/Table.d.ts +3 -5
- package/lib/typescript/src/components/Table/Table.js +2 -2
- package/lib/typescript/src/components/Table/Table.js.map +1 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts +3 -5
- package/lib/typescript/src/components/Table/TableRow.js +4 -2
- package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
- package/lib/typescript/src/components/Text.d.ts +3 -9
- package/lib/typescript/src/components/Text.js +2 -2
- package/lib/typescript/src/components/Text.js.map +1 -1
- package/lib/typescript/src/components/TextField.d.ts +4 -41
- package/lib/typescript/src/components/TextField.js +22 -20
- package/lib/typescript/src/components/TextField.js.map +1 -1
- package/lib/typescript/src/components/TextInput.js +3 -0
- package/lib/typescript/src/components/TextInput.js.map +1 -1
- package/lib/typescript/src/components/Typography.d.ts +5 -11
- package/lib/typescript/src/components/Typography.js +4 -4
- package/lib/typescript/src/components/Typography.js.map +1 -1
- package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/AccordionItem.js +2 -2
- package/lib/typescript/src/deprecated-components/AccordionItem.js.map +1 -1
- package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/AvatarEdit.js +4 -4
- package/lib/typescript/src/deprecated-components/AvatarEdit.js.map +1 -1
- package/lib/typescript/src/deprecated-components/Banner.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/Banner.js +4 -5
- package/lib/typescript/src/deprecated-components/Banner.js.map +1 -1
- package/lib/typescript/src/deprecated-components/Card.d.ts +6 -18
- package/lib/typescript/src/deprecated-components/Card.js +3 -3
- package/lib/typescript/src/deprecated-components/Card.js.map +1 -1
- package/lib/typescript/src/deprecated-components/CheckboxGroup.d.ts +2 -2
- package/lib/typescript/src/deprecated-components/Container.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/Container.js +1 -1
- package/lib/typescript/src/deprecated-components/Container.js.map +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/DeprecatedButton.js +8 -8
- package/lib/typescript/src/deprecated-components/DeprecatedButton.js.map +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/DeprecatedFAB.js +8 -8
- package/lib/typescript/src/deprecated-components/DeprecatedFAB.js.map +1 -1
- package/lib/typescript/src/deprecated-components/FAB.d.ts +3 -8
- package/lib/typescript/src/deprecated-components/FAB.js +2 -2
- package/lib/typescript/src/deprecated-components/FAB.js.map +1 -1
- package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js +4 -4
- package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
- package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +5 -8
- package/lib/typescript/src/deprecated-components/ProgressCircle.js +3 -3
- package/lib/typescript/src/deprecated-components/ProgressCircle.js.map +1 -1
- package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +1 -3
- package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
- package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
- package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/RowBodyIcon.js +2 -2
- package/lib/typescript/src/deprecated-components/RowBodyIcon.js.map +1 -1
- package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
- package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
- package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +3 -5
- package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
- package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
- package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +6 -9
- package/lib/typescript/src/deprecated-components/ToggleButton.js +5 -5
- package/lib/typescript/src/deprecated-components/ToggleButton.js.map +1 -1
- package/lib/typescript/src/index.d.ts +0 -2
- package/lib/typescript/src/index.js +0 -2
- package/lib/typescript/src/index.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/Provider.js +4 -4
- package/src/Provider.js.map +1 -1
- package/src/Provider.tsx +15 -12
- package/src/components/AccordionGroup.js +3 -3
- package/src/components/AccordionGroup.js.map +1 -1
- package/src/components/AccordionGroup.tsx +5 -5
- package/src/components/BottomSheet/BottomSheet.js +4 -4
- package/src/components/BottomSheet/BottomSheet.js.map +1 -1
- package/src/components/BottomSheet/BottomSheet.tsx +7 -7
- package/src/components/Button.js +8 -6
- package/src/components/Button.js.map +1 -1
- package/src/components/Button.tsx +10 -10
- package/src/components/Checkbox/Checkbox.js +3 -3
- package/src/components/Checkbox/Checkbox.js.map +1 -1
- package/src/components/Checkbox/Checkbox.tsx +3 -3
- package/src/components/Checkbox/CheckboxRow.js +4 -3
- package/src/components/Checkbox/CheckboxRow.js.map +1 -1
- package/src/components/Checkbox/CheckboxRow.tsx +9 -2
- package/src/components/DatePicker/DatePicker.js +24 -23
- package/src/components/DatePicker/DatePicker.js.map +1 -1
- package/src/components/DatePicker/DatePicker.tsx +25 -24
- package/src/components/DatePicker/DatePickerComponent.web.js +8 -6
- package/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/src/components/DatePicker/DatePickerComponent.web.tsx +15 -8
- package/src/components/DatePicker/DatePickerComponentType.ts +2 -3
- package/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
- package/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
- package/src/components/DeckSwiper/DeckSwiperCard.tsx +5 -5
- package/src/components/Divider.js +2 -2
- package/src/components/Divider.js.map +1 -1
- package/src/components/Divider.tsx +4 -4
- package/src/components/Elevation.js +3 -4
- package/src/components/Elevation.js.map +1 -1
- package/src/components/Elevation.tsx +5 -6
- package/src/components/FormRow.js.map +1 -1
- package/src/components/FormRow.tsx +1 -2
- package/src/components/IconButton.js +2 -2
- package/src/components/IconButton.js.map +1 -1
- package/src/components/IconButton.tsx +4 -4
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +0 -2
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +10 -13
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +19 -19
- package/src/components/MediaPlayer/AudioPlayer/index.js +1 -3
- package/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
- package/src/components/MediaPlayer/AudioPlayer/index.tsx +1 -3
- package/src/components/Picker/NativePicker.js +5 -2
- package/src/components/Picker/NativePicker.js.map +1 -1
- package/src/components/Picker/NativePicker.tsx +5 -2
- package/src/components/Picker/PickerCommon.ts +2 -2
- package/src/components/Picker/dropdown/DropDownModalPicker.js +2 -2
- package/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -1
- package/src/components/Picker/dropdown/DropDownModalPicker.tsx +5 -5
- package/src/components/Picker/dropdown/DropDownPicker.js +2 -2
- package/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
- package/src/components/Picker/dropdown/DropDownPicker.tsx +5 -5
- package/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
- package/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
- package/src/components/Picker/dropdown/MultiSelectPicker.tsx +1 -1
- package/src/components/Picker/index.js +1 -1
- package/src/components/Picker/index.js.map +1 -1
- package/src/components/Picker/index.tsx +1 -1
- package/src/components/PinInput/PinInput.js +4 -4
- package/src/components/PinInput/PinInput.js.map +1 -1
- package/src/components/PinInput/PinInput.tsx +6 -6
- package/src/components/PinInput/PinInputText.js +2 -2
- package/src/components/PinInput/PinInputText.js.map +1 -1
- package/src/components/PinInput/PinInputText.tsx +4 -4
- package/src/components/Portal/Portal.js +3 -5
- package/src/components/Portal/Portal.js.map +1 -1
- package/src/components/Portal/Portal.tsx +3 -10
- package/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
- package/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
- package/src/components/Progress/CircularProgress/CircularProgress.tsx +2 -2
- package/src/components/Progress/CircularProgress/index.js +1 -1
- package/src/components/Progress/CircularProgress/index.js.map +1 -1
- package/src/components/Progress/CircularProgress/index.tsx +1 -1
- package/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
- package/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
- package/src/components/Progress/LinearProgress/LinearProgress.tsx +2 -2
- package/src/components/Progress/LinearProgress/index.js +1 -1
- package/src/components/Progress/LinearProgress/index.js.map +1 -1
- package/src/components/Progress/LinearProgress/index.tsx +1 -1
- package/src/components/Progress/ProgressCommon.ts +2 -2
- package/src/components/ProgressIndicator.js +1 -1
- package/src/components/ProgressIndicator.js.map +1 -1
- package/src/components/ProgressIndicator.tsx +10 -11
- package/src/components/RadioButton/RadioButtonGroup.tsx +2 -2
- package/src/components/RadioButton/RadioButtonRow.js +4 -3
- package/src/components/RadioButton/RadioButtonRow.js.map +1 -1
- package/src/components/RadioButton/RadioButtonRow.tsx +9 -2
- package/src/components/Row.js +1 -1
- package/src/components/Row.js.map +1 -1
- package/src/components/Row.tsx +3 -3
- package/src/components/ScreenContainer.js +2 -2
- package/src/components/ScreenContainer.js.map +1 -1
- package/src/components/ScreenContainer.tsx +4 -4
- package/src/components/SectionList/SectionHeader.js +3 -3
- package/src/components/SectionList/SectionHeader.js.map +1 -1
- package/src/components/SectionList/SectionHeader.tsx +5 -5
- package/src/components/Slider.js +6 -6
- package/src/components/Slider.js.map +1 -1
- package/src/components/Slider.tsx +8 -8
- package/src/components/StarRating.js +1 -1
- package/src/components/StarRating.js.map +1 -1
- package/src/components/StarRating.tsx +3 -3
- package/src/components/Stepper.js +3 -2
- package/src/components/Stepper.js.map +1 -1
- package/src/components/Stepper.tsx +5 -4
- package/src/components/Surface.js +3 -10
- package/src/components/Surface.js.map +1 -1
- package/src/components/Surface.tsx +5 -12
- package/src/components/SwipeableItem/SwipeableItem.js +10 -5
- package/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
- package/src/components/SwipeableItem/SwipeableItem.tsx +13 -7
- package/src/components/Swiper/Swiper.js +3 -2
- package/src/components/Swiper/Swiper.js.map +1 -1
- package/src/components/Swiper/Swiper.tsx +6 -3
- package/src/components/Switch.js +3 -4
- package/src/components/Switch.js.map +1 -1
- package/src/components/Switch.tsx +7 -7
- package/src/components/TabView/TabView.js +4 -4
- package/src/components/TabView/TabView.js.map +1 -1
- package/src/components/TabView/TabView.tsx +7 -7
- package/src/components/Table/Table.js +2 -2
- package/src/components/Table/Table.js.map +1 -1
- package/src/components/Table/Table.tsx +4 -4
- package/src/components/Table/TableRow.js +4 -2
- package/src/components/Table/TableRow.js.map +1 -1
- package/src/components/Table/TableRow.tsx +6 -4
- package/src/components/Text.js +2 -2
- package/src/components/Text.js.map +1 -1
- package/src/components/Text.tsx +4 -4
- package/src/components/TextField.js +22 -20
- package/src/components/TextField.js.map +1 -1
- package/src/components/TextField.tsx +26 -23
- package/src/components/TextInput.js +3 -0
- package/src/components/TextInput.js.map +1 -1
- package/src/components/TextInput.tsx +3 -0
- package/src/components/Typography.js +4 -4
- package/src/components/Typography.js.map +1 -1
- package/src/components/Typography.tsx +6 -6
- package/src/deprecated-components/AccordionItem.js +2 -2
- package/src/deprecated-components/AccordionItem.js.map +1 -1
- package/src/deprecated-components/AccordionItem.tsx +4 -4
- package/src/deprecated-components/AvatarEdit.js +4 -4
- package/src/deprecated-components/AvatarEdit.js.map +1 -1
- package/src/deprecated-components/AvatarEdit.tsx +6 -6
- package/src/deprecated-components/Banner.js +4 -5
- package/src/deprecated-components/Banner.js.map +1 -1
- package/src/deprecated-components/Banner.tsx +6 -10
- package/src/deprecated-components/Card.js +3 -3
- package/src/deprecated-components/Card.js.map +1 -1
- package/src/deprecated-components/Card.tsx +10 -6
- package/src/deprecated-components/CheckboxGroup.tsx +2 -2
- package/src/deprecated-components/Container.js +1 -1
- package/src/deprecated-components/Container.js.map +1 -1
- package/src/deprecated-components/Container.tsx +3 -3
- package/src/deprecated-components/DeprecatedButton.js +8 -8
- package/src/deprecated-components/DeprecatedButton.js.map +1 -1
- package/src/deprecated-components/DeprecatedButton.tsx +10 -10
- package/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
- package/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
- package/src/deprecated-components/DeprecatedCardWrapper.tsx +3 -3
- package/src/deprecated-components/DeprecatedFAB.js +8 -8
- package/src/deprecated-components/DeprecatedFAB.js.map +1 -1
- package/src/deprecated-components/DeprecatedFAB.tsx +10 -10
- package/src/deprecated-components/FAB.js +2 -2
- package/src/deprecated-components/FAB.js.map +1 -1
- package/src/deprecated-components/FAB.tsx +4 -4
- package/src/deprecated-components/FieldSearchBarFull.js +4 -4
- package/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
- package/src/deprecated-components/FieldSearchBarFull.tsx +6 -6
- package/src/deprecated-components/ProgressCircle.js +3 -3
- package/src/deprecated-components/ProgressCircle.js.map +1 -1
- package/src/deprecated-components/ProgressCircle.tsx +7 -8
- package/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
- package/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
- package/src/deprecated-components/RadioButtonFieldGroup.tsx +1 -1
- package/src/deprecated-components/RowBodyIcon.js +2 -2
- package/src/deprecated-components/RowBodyIcon.js.map +1 -1
- package/src/deprecated-components/RowBodyIcon.tsx +6 -6
- package/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
- package/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
- package/src/deprecated-components/RowHeadlineImageCaption.tsx +6 -6
- package/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
- package/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
- package/src/deprecated-components/RowHeadlineImageIcon.tsx +6 -6
- package/src/deprecated-components/ToggleButton.js +5 -5
- package/src/deprecated-components/ToggleButton.js.map +1 -1
- package/src/deprecated-components/ToggleButton.tsx +12 -11
- package/src/index.js +0 -2
- package/src/index.js.map +1 -1
- package/src/index.tsx +0 -2
- package/lib/commonjs/styles/DarkTheme.js +0 -1
- package/lib/commonjs/styles/DefaultTheme.js +0 -1
- package/lib/commonjs/styles/fonts.js +0 -1
- package/lib/commonjs/styles/overlay.js +0 -1
- package/lib/commonjs/styles/shadow.js +0 -1
- package/lib/commonjs/theming.js +0 -1
- package/lib/typescript/src/styles/DarkTheme.d.ts +0 -3
- package/lib/typescript/src/styles/DarkTheme.js +0 -27
- package/lib/typescript/src/styles/DarkTheme.js.map +0 -1
- package/lib/typescript/src/styles/DefaultTheme.d.ts +0 -4218
- package/lib/typescript/src/styles/DefaultTheme.js +0 -112
- package/lib/typescript/src/styles/DefaultTheme.js.map +0 -1
- package/lib/typescript/src/styles/fonts.d.ts +0 -5
- package/lib/typescript/src/styles/fonts.js +0 -63
- package/lib/typescript/src/styles/fonts.js.map +0 -1
- package/lib/typescript/src/styles/overlay.d.ts +0 -2
- package/lib/typescript/src/styles/overlay.js +0 -61
- package/lib/typescript/src/styles/overlay.js.map +0 -1
- package/lib/typescript/src/styles/shadow.d.ts +0 -23
- package/lib/typescript/src/styles/shadow.js +0 -52
- package/lib/typescript/src/styles/shadow.js.map +0 -1
- package/lib/typescript/src/theming.d.ts +0 -8
- package/lib/typescript/src/theming.js +0 -4
- package/lib/typescript/src/theming.js.map +0 -1
- package/src/styles/DarkTheme.js +0 -27
- package/src/styles/DarkTheme.js.map +0 -1
- package/src/styles/DarkTheme.tsx +0 -30
- package/src/styles/DefaultTheme.js +0 -112
- package/src/styles/DefaultTheme.js.map +0 -1
- package/src/styles/DefaultTheme.tsx +0 -114
- package/src/styles/fonts.js +0 -63
- package/src/styles/fonts.js.map +0 -1
- package/src/styles/fonts.tsx +0 -67
- package/src/styles/overlay.js +0 -61
- package/src/styles/overlay.js.map +0 -1
- package/src/styles/overlay.tsx +0 -69
- package/src/styles/shadow.js +0 -52
- package/src/styles/shadow.js.map +0 -1
- package/src/styles/shadow.tsx +0 -55
- package/src/theming.js +0 -4
- package/src/theming.js.map +0 -1
- package/src/theming.tsx +0 -6
package/src/styles/fonts.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/* https://github.com/callstack/react-native-paper/blob/main/src/styles/fonts.tsx */
|
|
2
|
-
import { Platform } from "react-native";
|
|
3
|
-
const fontConfig = {
|
|
4
|
-
web: {
|
|
5
|
-
regular: {
|
|
6
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
7
|
-
fontWeight: "400",
|
|
8
|
-
},
|
|
9
|
-
medium: {
|
|
10
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
11
|
-
fontWeight: "500",
|
|
12
|
-
},
|
|
13
|
-
light: {
|
|
14
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
15
|
-
fontWeight: "300",
|
|
16
|
-
},
|
|
17
|
-
thin: {
|
|
18
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
19
|
-
fontWeight: "100",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
ios: {
|
|
23
|
-
regular: {
|
|
24
|
-
fontFamily: "System",
|
|
25
|
-
fontWeight: "400",
|
|
26
|
-
},
|
|
27
|
-
medium: {
|
|
28
|
-
fontFamily: "System",
|
|
29
|
-
fontWeight: "500",
|
|
30
|
-
},
|
|
31
|
-
light: {
|
|
32
|
-
fontFamily: "System",
|
|
33
|
-
fontWeight: "300",
|
|
34
|
-
},
|
|
35
|
-
thin: {
|
|
36
|
-
fontFamily: "System",
|
|
37
|
-
fontWeight: "100",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
default: {
|
|
41
|
-
regular: {
|
|
42
|
-
fontFamily: "sans-serif",
|
|
43
|
-
fontWeight: "normal",
|
|
44
|
-
},
|
|
45
|
-
medium: {
|
|
46
|
-
fontFamily: "sans-serif-medium",
|
|
47
|
-
fontWeight: "normal",
|
|
48
|
-
},
|
|
49
|
-
light: {
|
|
50
|
-
fontFamily: "sans-serif-light",
|
|
51
|
-
fontWeight: "normal",
|
|
52
|
-
},
|
|
53
|
-
thin: {
|
|
54
|
-
fontFamily: "sans-serif-thin",
|
|
55
|
-
fontWeight: "normal",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
export default function configureFonts(config) {
|
|
60
|
-
const fonts = Platform.select({ ...fontConfig, ...config });
|
|
61
|
-
return fonts;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=fonts.js.map
|
package/src/styles/fonts.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["fonts.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,OAAO,EAAE,QAAQ,EAAkB,MAAM,cAAc,CAAC;AAGxD,MAAM,UAAU,GAAG;IACjB,GAAG,EAAE;QACH,OAAO,EAAE;YACP,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;QACD,MAAM,EAAE;YACN,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;QACD,KAAK,EAAE;YACL,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE;YACP,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;QACD,MAAM,EAAE;YACN,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;QACD,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,QAAoB;SACjC;QACD,MAAM,EAAE;YACN,UAAU,EAAE,mBAAmB;YAC/B,UAAU,EAAE,QAAoB;SACjC;QACD,KAAK,EAAE;YACL,UAAU,EAAE,kBAAkB;YAC9B,UAAU,EAAE,QAAoB;SACjC;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,iBAAiB;YAC7B,UAAU,EAAE,QAAoB;SACjC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,MAEtC;IACC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,EAAE,CAAU,CAAC;IACrE,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/src/styles/fonts.tsx
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/* https://github.com/callstack/react-native-paper/blob/main/src/styles/fonts.tsx */
|
|
2
|
-
import { Platform, PlatformOSType } from "react-native";
|
|
3
|
-
import type { Fonts } from "@draftbit/types";
|
|
4
|
-
|
|
5
|
-
const fontConfig = {
|
|
6
|
-
web: {
|
|
7
|
-
regular: {
|
|
8
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
9
|
-
fontWeight: "400" as "400",
|
|
10
|
-
},
|
|
11
|
-
medium: {
|
|
12
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
13
|
-
fontWeight: "500" as "500",
|
|
14
|
-
},
|
|
15
|
-
light: {
|
|
16
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
17
|
-
fontWeight: "300" as "300",
|
|
18
|
-
},
|
|
19
|
-
thin: {
|
|
20
|
-
fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
21
|
-
fontWeight: "100" as "100",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
ios: {
|
|
25
|
-
regular: {
|
|
26
|
-
fontFamily: "System",
|
|
27
|
-
fontWeight: "400" as "400",
|
|
28
|
-
},
|
|
29
|
-
medium: {
|
|
30
|
-
fontFamily: "System",
|
|
31
|
-
fontWeight: "500" as "500",
|
|
32
|
-
},
|
|
33
|
-
light: {
|
|
34
|
-
fontFamily: "System",
|
|
35
|
-
fontWeight: "300" as "300",
|
|
36
|
-
},
|
|
37
|
-
thin: {
|
|
38
|
-
fontFamily: "System",
|
|
39
|
-
fontWeight: "100" as "100",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
default: {
|
|
43
|
-
regular: {
|
|
44
|
-
fontFamily: "sans-serif",
|
|
45
|
-
fontWeight: "normal" as "normal",
|
|
46
|
-
},
|
|
47
|
-
medium: {
|
|
48
|
-
fontFamily: "sans-serif-medium",
|
|
49
|
-
fontWeight: "normal" as "normal",
|
|
50
|
-
},
|
|
51
|
-
light: {
|
|
52
|
-
fontFamily: "sans-serif-light",
|
|
53
|
-
fontWeight: "normal" as "normal",
|
|
54
|
-
},
|
|
55
|
-
thin: {
|
|
56
|
-
fontFamily: "sans-serif-thin",
|
|
57
|
-
fontWeight: "normal" as "normal",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export default function configureFonts(config?: {
|
|
63
|
-
[platform in PlatformOSType | "default"]?: Fonts;
|
|
64
|
-
}): Fonts {
|
|
65
|
-
const fonts = Platform.select({ ...fontConfig, ...config }) as Fonts;
|
|
66
|
-
return fonts;
|
|
67
|
-
}
|
package/src/styles/overlay.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* Copied from https://github.com/callstack/react-native-paper/blob/main/src/styles/overlay.tsx */
|
|
2
|
-
import color from "color";
|
|
3
|
-
import { Animated } from "react-native";
|
|
4
|
-
import DarkTheme from "./DarkTheme";
|
|
5
|
-
const isAnimatedValue = (it) => it instanceof Animated.Value;
|
|
6
|
-
export default function overlay(elevation, surfaceColor = DarkTheme.colors.surface) {
|
|
7
|
-
if (isAnimatedValue(elevation)) {
|
|
8
|
-
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
9
|
-
// @ts-expect-error: TS doesn't seem to refine the type correctly
|
|
10
|
-
return elevation.interpolate({
|
|
11
|
-
inputRange,
|
|
12
|
-
outputRange: inputRange.map((e) => {
|
|
13
|
-
return calculateColor(surfaceColor, e);
|
|
14
|
-
}),
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
// @ts-expect-error: TS doesn't seem to refine the type correctly
|
|
18
|
-
return calculateColor(surfaceColor, elevation);
|
|
19
|
-
}
|
|
20
|
-
function calculateColor(surfaceColor, elevation = 1) {
|
|
21
|
-
let overlayTransparency;
|
|
22
|
-
if (elevation >= 1 && elevation <= 24) {
|
|
23
|
-
overlayTransparency = elevationOverlayTransparency[elevation];
|
|
24
|
-
}
|
|
25
|
-
else if (elevation > 24) {
|
|
26
|
-
overlayTransparency = elevationOverlayTransparency[24];
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
overlayTransparency = elevationOverlayTransparency[1];
|
|
30
|
-
}
|
|
31
|
-
return color(surfaceColor)
|
|
32
|
-
.mix(color("white"), overlayTransparency * 0.01)
|
|
33
|
-
.hex();
|
|
34
|
-
}
|
|
35
|
-
const elevationOverlayTransparency = {
|
|
36
|
-
1: 5,
|
|
37
|
-
2: 7,
|
|
38
|
-
3: 8,
|
|
39
|
-
4: 9,
|
|
40
|
-
5: 10,
|
|
41
|
-
6: 11,
|
|
42
|
-
7: 11.5,
|
|
43
|
-
8: 12,
|
|
44
|
-
9: 12.5,
|
|
45
|
-
10: 13,
|
|
46
|
-
11: 13.5,
|
|
47
|
-
12: 14,
|
|
48
|
-
13: 14.25,
|
|
49
|
-
14: 14.5,
|
|
50
|
-
15: 14.75,
|
|
51
|
-
16: 15,
|
|
52
|
-
17: 15.12,
|
|
53
|
-
18: 15.24,
|
|
54
|
-
19: 15.36,
|
|
55
|
-
20: 15.48,
|
|
56
|
-
21: 15.6,
|
|
57
|
-
22: 15.72,
|
|
58
|
-
23: 15.84,
|
|
59
|
-
24: 16,
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=overlay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.js","sourceRoot":"","sources":["overlay.tsx"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,eAAe,GAAG,CACtB,EAA4D,EACtC,EAAE,CAAC,EAAE,YAAY,QAAQ,CAAC,KAAK,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,SAAY,EACZ,eAAuB,SAAS,CAAC,MAAM,CAAC,OAAO;IAE/C,IAAI,eAAe,CAAC,SAAS,CAAC,EAAE;QAC9B,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAEvC,iEAAiE;QACjE,OAAO,SAAS,CAAC,WAAW,CAAC;YAC3B,UAAU;YACV,WAAW,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAChC,OAAO,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;YACzC,CAAC,CAAC;SACH,CAAC,CAAC;KACJ;IAED,iEAAiE;IACjE,OAAO,cAAc,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,cAAc,CAAC,YAAoB,EAAE,YAAoB,CAAC;IACjE,IAAI,mBAA2B,CAAC;IAChC,IAAI,SAAS,IAAI,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE;QACrC,mBAAmB,GAAG,4BAA4B,CAAC,SAAS,CAAC,CAAC;KAC/D;SAAM,IAAI,SAAS,GAAG,EAAE,EAAE;QACzB,mBAAmB,GAAG,4BAA4B,CAAC,EAAE,CAAC,CAAC;KACxD;SAAM;QACL,mBAAmB,GAAG,4BAA4B,CAAC,CAAC,CAAC,CAAC;KACvD;IACD,OAAO,KAAK,CAAC,YAAY,CAAC;SACvB,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;SAC/C,GAAG,EAAE,CAAC;AACX,CAAC;AAED,MAAM,4BAA4B,GAA2B;IAC3D,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,IAAI;IACP,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,EAAE;CACP,CAAC"}
|
package/src/styles/overlay.tsx
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* Copied from https://github.com/callstack/react-native-paper/blob/main/src/styles/overlay.tsx */
|
|
2
|
-
import color from "color";
|
|
3
|
-
import { Animated } from "react-native";
|
|
4
|
-
import DarkTheme from "./DarkTheme";
|
|
5
|
-
|
|
6
|
-
const isAnimatedValue = (
|
|
7
|
-
it: number | Animated.AnimatedInterpolation<string | number>
|
|
8
|
-
): it is Animated.Value => it instanceof Animated.Value;
|
|
9
|
-
|
|
10
|
-
export default function overlay<T extends Animated.Value | number>(
|
|
11
|
-
elevation: T,
|
|
12
|
-
surfaceColor: string = DarkTheme.colors.surface
|
|
13
|
-
): T extends number ? string : Animated.AnimatedInterpolation<string | number> {
|
|
14
|
-
if (isAnimatedValue(elevation)) {
|
|
15
|
-
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
16
|
-
|
|
17
|
-
// @ts-expect-error: TS doesn't seem to refine the type correctly
|
|
18
|
-
return elevation.interpolate({
|
|
19
|
-
inputRange,
|
|
20
|
-
outputRange: inputRange.map((e) => {
|
|
21
|
-
return calculateColor(surfaceColor, e);
|
|
22
|
-
}),
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// @ts-expect-error: TS doesn't seem to refine the type correctly
|
|
27
|
-
return calculateColor(surfaceColor, elevation);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function calculateColor(surfaceColor: string, elevation: number = 1) {
|
|
31
|
-
let overlayTransparency: number;
|
|
32
|
-
if (elevation >= 1 && elevation <= 24) {
|
|
33
|
-
overlayTransparency = elevationOverlayTransparency[elevation];
|
|
34
|
-
} else if (elevation > 24) {
|
|
35
|
-
overlayTransparency = elevationOverlayTransparency[24];
|
|
36
|
-
} else {
|
|
37
|
-
overlayTransparency = elevationOverlayTransparency[1];
|
|
38
|
-
}
|
|
39
|
-
return color(surfaceColor)
|
|
40
|
-
.mix(color("white"), overlayTransparency * 0.01)
|
|
41
|
-
.hex();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const elevationOverlayTransparency: Record<string, number> = {
|
|
45
|
-
1: 5,
|
|
46
|
-
2: 7,
|
|
47
|
-
3: 8,
|
|
48
|
-
4: 9,
|
|
49
|
-
5: 10,
|
|
50
|
-
6: 11,
|
|
51
|
-
7: 11.5,
|
|
52
|
-
8: 12,
|
|
53
|
-
9: 12.5,
|
|
54
|
-
10: 13,
|
|
55
|
-
11: 13.5,
|
|
56
|
-
12: 14,
|
|
57
|
-
13: 14.25,
|
|
58
|
-
14: 14.5,
|
|
59
|
-
15: 14.75,
|
|
60
|
-
16: 15,
|
|
61
|
-
17: 15.12,
|
|
62
|
-
18: 15.24,
|
|
63
|
-
19: 15.36,
|
|
64
|
-
20: 15.48,
|
|
65
|
-
21: 15.6,
|
|
66
|
-
22: 15.72,
|
|
67
|
-
23: 15.84,
|
|
68
|
-
24: 16,
|
|
69
|
-
};
|
package/src/styles/shadow.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Animated } from "react-native";
|
|
2
|
-
const SHADOW_COLOR = "#000";
|
|
3
|
-
const SHADOW_OPACITY = 0.24;
|
|
4
|
-
export default function shadow(elevation = 0) {
|
|
5
|
-
if (elevation instanceof Animated.Value) {
|
|
6
|
-
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
7
|
-
return {
|
|
8
|
-
shadowColor: SHADOW_COLOR,
|
|
9
|
-
shadowOffset: {
|
|
10
|
-
width: new Animated.Value(0),
|
|
11
|
-
height: elevation.interpolate({
|
|
12
|
-
inputRange,
|
|
13
|
-
outputRange: [0, 0.5, 0.75, 2, 7, 23],
|
|
14
|
-
}),
|
|
15
|
-
},
|
|
16
|
-
shadowOpacity: new Animated.Value(SHADOW_OPACITY),
|
|
17
|
-
shadowRadius: elevation.interpolate({
|
|
18
|
-
inputRange,
|
|
19
|
-
outputRange: [0, 0.75, 1.5, 3, 8, 24],
|
|
20
|
-
}),
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
if (elevation === 0) {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
let height, radius;
|
|
28
|
-
switch (elevation) {
|
|
29
|
-
case 1:
|
|
30
|
-
height = 0.5;
|
|
31
|
-
radius = 0.75;
|
|
32
|
-
break;
|
|
33
|
-
case 2:
|
|
34
|
-
height = 0.75;
|
|
35
|
-
radius = 1.5;
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
height = elevation - 1;
|
|
39
|
-
radius = elevation;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
shadowColor: SHADOW_COLOR,
|
|
43
|
-
shadowOffset: {
|
|
44
|
-
width: 0,
|
|
45
|
-
height,
|
|
46
|
-
},
|
|
47
|
-
shadowOpacity: SHADOW_OPACITY,
|
|
48
|
-
shadowRadius: radius,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=shadow.js.map
|
package/src/styles/shadow.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadow.js","sourceRoot":"","sources":["shadow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,YAAY,GAAG,MAAM,CAAC;AAC5B,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,YAAqC,CAAC;IACnE,IAAI,SAAS,YAAY,QAAQ,CAAC,KAAK,EAAE;QACvC,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAEvC,OAAO;YACL,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE;gBACZ,KAAK,EAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5B,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC;oBAC5B,UAAU;oBACV,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;iBACtC,CAAC;aACH;YACD,aAAa,EAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC;YACjD,YAAY,EAAE,SAAS,CAAC,WAAW,CAAC;gBAClC,UAAU;gBACV,WAAW,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;aACtC,CAAC;SACH,CAAC;KACH;SAAM;QACL,IAAI,SAAS,KAAK,CAAC,EAAE;YACnB,OAAO,EAAE,CAAC;SACX;QAED,IAAI,MAAM,EAAE,MAAM,CAAC;QACnB,QAAQ,SAAS,EAAE;YACjB,KAAK,CAAC;gBACJ,MAAM,GAAG,GAAG,CAAC;gBACb,MAAM,GAAG,IAAI,CAAC;gBACd,MAAM;YACR,KAAK,CAAC;gBACJ,MAAM,GAAG,IAAI,CAAC;gBACd,MAAM,GAAG,GAAG,CAAC;gBACb,MAAM;YACR;gBACE,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC;gBACvB,MAAM,GAAG,SAAS,CAAC;SACtB;QAED,OAAO;YACL,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE;gBACZ,KAAK,EAAE,CAAC;gBACR,MAAM;aACP;YACD,aAAa,EAAE,cAAc;YAC7B,YAAY,EAAE,MAAM;SACrB,CAAC;KACH;AACH,CAAC"}
|
package/src/styles/shadow.tsx
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Animated } from "react-native";
|
|
2
|
-
|
|
3
|
-
const SHADOW_COLOR = "#000";
|
|
4
|
-
const SHADOW_OPACITY = 0.24;
|
|
5
|
-
|
|
6
|
-
export default function shadow(elevation: number | Animated.Value = 0) {
|
|
7
|
-
if (elevation instanceof Animated.Value) {
|
|
8
|
-
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
shadowColor: SHADOW_COLOR,
|
|
12
|
-
shadowOffset: {
|
|
13
|
-
width: new Animated.Value(0),
|
|
14
|
-
height: elevation.interpolate({
|
|
15
|
-
inputRange,
|
|
16
|
-
outputRange: [0, 0.5, 0.75, 2, 7, 23],
|
|
17
|
-
}),
|
|
18
|
-
},
|
|
19
|
-
shadowOpacity: new Animated.Value(SHADOW_OPACITY),
|
|
20
|
-
shadowRadius: elevation.interpolate({
|
|
21
|
-
inputRange,
|
|
22
|
-
outputRange: [0, 0.75, 1.5, 3, 8, 24],
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
if (elevation === 0) {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
let height, radius;
|
|
31
|
-
switch (elevation) {
|
|
32
|
-
case 1:
|
|
33
|
-
height = 0.5;
|
|
34
|
-
radius = 0.75;
|
|
35
|
-
break;
|
|
36
|
-
case 2:
|
|
37
|
-
height = 0.75;
|
|
38
|
-
radius = 1.5;
|
|
39
|
-
break;
|
|
40
|
-
default:
|
|
41
|
-
height = elevation - 1;
|
|
42
|
-
radius = elevation;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
shadowColor: SHADOW_COLOR,
|
|
47
|
-
shadowOffset: {
|
|
48
|
-
width: 0,
|
|
49
|
-
height,
|
|
50
|
-
},
|
|
51
|
-
shadowOpacity: SHADOW_OPACITY,
|
|
52
|
-
shadowRadius: radius,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
package/src/theming.js
DELETED
package/src/theming.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theming.js","sourceRoot":"","sources":["theming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAGjD,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,GACjD,aAAa,CAAQ,YAAY,CAAC,CAAC"}
|
package/src/theming.tsx
DELETED