@draftbit/core 48.4.8-d976c5.2 → 48.4.8-f6d6b8.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/package.json +3 -3
- 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 -384
- 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 -20
- 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/Picker.js +0 -288
- package/src/components/Picker/Picker.js.map +0 -1
- package/src/components/Picker/PickerComponent.android.js +0 -70
- package/src/components/Picker/PickerComponent.android.js.map +0 -1
- package/src/components/Picker/PickerComponent.ios.js +0 -80
- package/src/components/Picker/PickerComponent.ios.js.map +0 -1
- package/src/components/Picker/PickerComponent.web.js +0 -71
- package/src/components/Picker/PickerComponent.web.js.map +0 -1
- package/src/components/Picker/PickerTypes.js +0 -2
- package/src/components/Picker/PickerTypes.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 -70
- 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 -101
- 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 -430
- 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 -180
- package/src/utilities.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleButton.js","sourceRoot":"","sources":["ToggleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAa,UAAU,EAAa,MAAM,cAAc,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAoBlD;;GAEG;AACH,MAAM,YAAY,GAA6C,CAAC,EAC9D,IAAI,EACJ,IAAI,EACJ,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,SAAS,EACjB,cAAc,GAAG,SAAS,EAC1B,WAAW,GAAG,SAAS,EACvB,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,EAAE,EACV,MAAM,GAA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C,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,WAAW,EAAE,CAAC;KACf;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,YAAY,CAAC,CAAC"}
|
package/src/hooks.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export function usePrevious(value) {
|
|
3
|
-
// The ref object is a generic container whose current property is mutable
|
|
4
|
-
// and can hold any value, similar to an instance property on a class
|
|
5
|
-
const ref = React.useRef();
|
|
6
|
-
// Store current value in ref
|
|
7
|
-
React.useEffect(() => {
|
|
8
|
-
ref.current = value;
|
|
9
|
-
}, [value]);
|
|
10
|
-
// Return previous value (happens before update in useEffect above)
|
|
11
|
-
return ref.current;
|
|
12
|
-
}
|
|
13
|
-
export const useDebounce = (value, delay) => {
|
|
14
|
-
const [debouncedValue, setDebouncedValue] = React.useState(value);
|
|
15
|
-
React.useEffect(() => {
|
|
16
|
-
const hanlder = setTimeout(() => {
|
|
17
|
-
setDebouncedValue(value);
|
|
18
|
-
}, delay);
|
|
19
|
-
return () => {
|
|
20
|
-
clearTimeout(hanlder);
|
|
21
|
-
};
|
|
22
|
-
}, [value, delay]);
|
|
23
|
-
return debouncedValue;
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=hooks.js.map
|
package/src/hooks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,UAAU,WAAW,CAAC,KAAU;IACpC,0EAA0E;IAC1E,qEAAqE;IACrE,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;IAE3B,6BAA6B;IAC7B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,mEAAmE;IACnE,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,KAAa,EAAK,EAAE;IAC3D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IAEnB,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
package/src/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export { flattenReactFragments } from "./utilities";
|
|
2
|
-
export { injectIcon } from "./interfaces/Icon";
|
|
3
|
-
export { withTheme, ThemeProvider } from "./theming";
|
|
4
|
-
export { default as Provider } from "./Provider";
|
|
5
|
-
export { default as DefaultTheme } from "./styles/DefaultTheme";
|
|
6
|
-
export { Link } from "./components/Text";
|
|
7
|
-
export { Button } from "./components/Button";
|
|
8
|
-
export { Checkbox, CheckboxRow } from "./components/Checkbox";
|
|
9
|
-
export { default as Divider } from "./components/Divider";
|
|
10
|
-
export { default as IconButton } from "./components/IconButton";
|
|
11
|
-
export { default as Image } from "./components/Image";
|
|
12
|
-
export { default as SVG } from "./components/SVG";
|
|
13
|
-
export { default as NumberInput } from "./components/NumberInput";
|
|
14
|
-
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
15
|
-
export { default as StarRating } from "./components/StarRating";
|
|
16
|
-
export { default as Surface } from "./components/Surface";
|
|
17
|
-
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
18
|
-
export { default as TextField } from "./components/TextField";
|
|
19
|
-
export { default as Touchable } from "./components/Touchable";
|
|
20
|
-
export { default as Pressable } from "./components/Pressable";
|
|
21
|
-
export { default as AccordionGroup } from "./components/AccordionGroup";
|
|
22
|
-
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
|
23
|
-
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
24
|
-
export { RadioButton, RadioButtonGroup, RadioButtonRow, } from "./components/RadioButton/index";
|
|
25
|
-
export { default as Shadow } from "./components/Shadow";
|
|
26
|
-
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
27
|
-
export { TabView, TabViewItem } from "./components/TabView";
|
|
28
|
-
export { default as Markdown } from "./components/Markdown";
|
|
29
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
30
|
-
export { YoutubePlayer } from "./components/YoutubePlayer";
|
|
31
|
-
export { Table, TableRow, TableCell } from "./components/Table";
|
|
32
|
-
export { SwipeableItem, SwipeableItemButton, SwipeableList, } from "./components/SwipeableItem";
|
|
33
|
-
export { default as AudioPlayer, } from "./components/MediaPlayer/AudioPlayer";
|
|
34
|
-
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
35
|
-
export { default as Picker } from "./components/Picker/Picker";
|
|
36
|
-
export { default as Slider } from "./components/Slider";
|
|
37
|
-
export { default as Stepper } from "./components/Stepper";
|
|
38
|
-
export { SectionList, SectionHeader } from "./components/SectionList";
|
|
39
|
-
export { default as LinearProgress } from "./components/Progress/LinearProgress";
|
|
40
|
-
export { default as CircularProgress } from "./components/Progress/CircularProgress";
|
|
41
|
-
export { default as TextInput } from "./components/TextInput";
|
|
42
|
-
export { default as VideoPlayer, } from "./components/MediaPlayer/VideoPlayer";
|
|
43
|
-
export { PinInput, CustomPinInputCell, PinInputText as CustomPinInputText, } from "./components/PinInput";
|
|
44
|
-
export { AspectRatio, Circle, Center, HStack, VStack, ZStack, Spacer, Square, } from "./components/Layout";
|
|
45
|
-
/* Deprecated: Fix or Delete! */
|
|
46
|
-
export { default as AccordionItem } from "./deprecated-components/AccordionItem";
|
|
47
|
-
export { default as AvatarEdit } from "./deprecated-components/AvatarEdit";
|
|
48
|
-
export { default as Avatar } from "./deprecated-components/CircleImage";
|
|
49
|
-
export { default as Banner } from "./deprecated-components/Banner";
|
|
50
|
-
export { ButtonSolid, ButtonOutline } from "./components/Button";
|
|
51
|
-
export { default as Card } from "./deprecated-components/Card";
|
|
52
|
-
export { default as CheckboxGroup } from "./deprecated-components/CheckboxGroup";
|
|
53
|
-
export { default as CircleImage } from "./deprecated-components/CircleImage";
|
|
54
|
-
export { default as Container } from "./deprecated-components/Container";
|
|
55
|
-
export { default as FAB } from "./deprecated-components/FAB";
|
|
56
|
-
export { default as FieldSearchBarFull } from "./deprecated-components/FieldSearchBarFull";
|
|
57
|
-
export { Center as DeprecatedCenter, Circle as DeprecatedCircle, Square as DeprecatedSquare, Row, Stack, } from "./deprecated-components/Layout";
|
|
58
|
-
export { default as ToggleButton } from "./deprecated-components/ToggleButton";
|
|
59
|
-
export { default as ProgressBar } from "./deprecated-components/ProgressBar";
|
|
60
|
-
export { default as ProgressCircle } from "./deprecated-components/ProgressCircle";
|
|
61
|
-
export { default as RadioButtonFieldGroup } from "./deprecated-components/RadioButtonFieldGroup";
|
|
62
|
-
export { default as RowBodyIcon } from "./deprecated-components/RowBodyIcon";
|
|
63
|
-
export { default as RowHeadlineImageCaption } from "./deprecated-components/RowHeadlineImageCaption";
|
|
64
|
-
export { default as RowHeadlineImageIcon } from "./deprecated-components/RowHeadlineImageIcon";
|
|
65
|
-
export { useAuthState } from "./components/useAuthState";
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EA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,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
package/src/interfaces/Icon.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is an interface for a hybrid component.
|
|
3
|
-
*
|
|
4
|
-
* Its public implementation is `@draftbit/native`, and it is injected inside
|
|
5
|
-
* `@draftbit/ui`.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export const injectIcon = (Component, Icon) => React.forwardRef((props, ref) => React.createElement(Component, { ...props, Icon, ref }));
|
|
9
|
-
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["Icon.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,SAAiC,EACjC,IAAW,EACX,EAAE,CACF,KAAK,CAAC,UAAU,CAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CACxD,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,GAAI,KAAW,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAC/D,CAAC"}
|
package/src/styles/DarkTheme.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import color from "color";
|
|
3
|
-
import DefaultTheme from "./DefaultTheme";
|
|
4
|
-
const white = "#FFF";
|
|
5
|
-
const black = "#000";
|
|
6
|
-
const pinkA100 = "#ff80ab";
|
|
7
|
-
const DarkTheme = {
|
|
8
|
-
...DefaultTheme,
|
|
9
|
-
dark: true,
|
|
10
|
-
mode: "adaptive",
|
|
11
|
-
colors: {
|
|
12
|
-
...DefaultTheme.colors,
|
|
13
|
-
primary: "#BB86FC",
|
|
14
|
-
background: "#121212",
|
|
15
|
-
surface: "#121212",
|
|
16
|
-
error: "#CF6679",
|
|
17
|
-
onBackground: "#FFFFFF",
|
|
18
|
-
onSurface: "#FFFFFF",
|
|
19
|
-
text: white,
|
|
20
|
-
disabled: color(white).alpha(0.38).rgb().string(),
|
|
21
|
-
placeholder: color(white).alpha(0.54).rgb().string(),
|
|
22
|
-
backdrop: color(black).alpha(0.5).rgb().string(),
|
|
23
|
-
notification: pinkA100,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
export default DarkTheme;
|
|
27
|
-
//# sourceMappingURL=DarkTheme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DarkTheme.js","sourceRoot":"","sources":["DarkTheme.tsx"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,KAAK,GAAG,MAAM,CAAC;AACrB,MAAM,KAAK,GAAG,MAAM,CAAC;AACrB,MAAM,QAAQ,GAAG,SAAS,CAAC;AAE3B,MAAM,SAAS,GAAU;IACvB,GAAG,YAAY;IACf,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;QACN,GAAG,YAAY,CAAC,MAAM;QACtB,OAAO,EAAE,SAAS;QAClB,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACjD,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACpD,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QAChD,YAAY,EAAE,QAAQ;KACvB;CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { systemWeights } from "react-native-typography";
|
|
2
|
-
import configureFonts from "./fonts";
|
|
3
|
-
const DefaultTheme = {
|
|
4
|
-
disabledOpacity: 0.5,
|
|
5
|
-
roundness: 8,
|
|
6
|
-
dark: false,
|
|
7
|
-
mode: "exact",
|
|
8
|
-
borderRadius: {
|
|
9
|
-
global: 6,
|
|
10
|
-
button: 24,
|
|
11
|
-
},
|
|
12
|
-
colors: {
|
|
13
|
-
primary: "rgba(90, 69, 255, 1)",
|
|
14
|
-
secondary: "rgba(59, 201, 234, 1)",
|
|
15
|
-
surface: "rgba(255, 255, 255, 1)",
|
|
16
|
-
background: "rgba(251, 252, 253, 1)",
|
|
17
|
-
error: "rgba(255, 69, 100, 1)",
|
|
18
|
-
divider: "rgba(200, 200, 200, 1)",
|
|
19
|
-
strong: "rgba(18, 20, 44, 1)",
|
|
20
|
-
medium: "rgba(70, 78, 88, 1)",
|
|
21
|
-
strongInverse: "rgba(255, 255, 255, 1)",
|
|
22
|
-
mediumInverse: "rgba(255, 255, 255, 0.87)",
|
|
23
|
-
lightInverse: "rgba(255, 255, 255, 0.68)",
|
|
24
|
-
light: "rgba(165, 173, 183, 1)",
|
|
25
|
-
text: "#000",
|
|
26
|
-
placeholder: "#333",
|
|
27
|
-
disabled: "rgba(0, 0, 0, 0.25)",
|
|
28
|
-
},
|
|
29
|
-
fonts: configureFonts(),
|
|
30
|
-
typography: {
|
|
31
|
-
headline1: {
|
|
32
|
-
...systemWeights.regular,
|
|
33
|
-
fontSize: 60,
|
|
34
|
-
letterSpacing: 0,
|
|
35
|
-
lineHeight: 71,
|
|
36
|
-
},
|
|
37
|
-
headline2: {
|
|
38
|
-
...systemWeights.regular,
|
|
39
|
-
fontSize: 48,
|
|
40
|
-
letterSpacing: 0,
|
|
41
|
-
lineHeight: 58,
|
|
42
|
-
},
|
|
43
|
-
headline3: {
|
|
44
|
-
...systemWeights.regular,
|
|
45
|
-
fontSize: 34,
|
|
46
|
-
letterSpacing: 0,
|
|
47
|
-
lineHeight: 40,
|
|
48
|
-
},
|
|
49
|
-
headline4: {
|
|
50
|
-
...systemWeights.regular,
|
|
51
|
-
fontSize: 24,
|
|
52
|
-
letterSpacing: 0,
|
|
53
|
-
lineHeight: 34,
|
|
54
|
-
},
|
|
55
|
-
headline5: {
|
|
56
|
-
...systemWeights.regular,
|
|
57
|
-
fontSize: 20,
|
|
58
|
-
letterSpacing: 0,
|
|
59
|
-
lineHeight: 26,
|
|
60
|
-
},
|
|
61
|
-
subtitle1: {
|
|
62
|
-
...systemWeights.regular,
|
|
63
|
-
fontSize: 16,
|
|
64
|
-
letterSpacing: 0,
|
|
65
|
-
lineHeight: 26,
|
|
66
|
-
},
|
|
67
|
-
subtitle2: {
|
|
68
|
-
...systemWeights.regular,
|
|
69
|
-
fontSize: 14,
|
|
70
|
-
letterSpacing: 0,
|
|
71
|
-
lineHeight: 22,
|
|
72
|
-
},
|
|
73
|
-
body1: {
|
|
74
|
-
...systemWeights.regular,
|
|
75
|
-
fontSize: 16,
|
|
76
|
-
letterSpacing: 0,
|
|
77
|
-
lineHeight: 26,
|
|
78
|
-
},
|
|
79
|
-
body2: {
|
|
80
|
-
...systemWeights.regular,
|
|
81
|
-
fontSize: 14,
|
|
82
|
-
letterSpacing: 0,
|
|
83
|
-
lineHeight: 22,
|
|
84
|
-
},
|
|
85
|
-
button: {
|
|
86
|
-
...systemWeights.regular,
|
|
87
|
-
fontSize: 14,
|
|
88
|
-
letterSpacing: 0,
|
|
89
|
-
lineHeight: 16,
|
|
90
|
-
},
|
|
91
|
-
caption: {
|
|
92
|
-
...systemWeights.regular,
|
|
93
|
-
fontSize: 12,
|
|
94
|
-
letterSpacing: 0,
|
|
95
|
-
lineHeight: 16,
|
|
96
|
-
},
|
|
97
|
-
overline: {
|
|
98
|
-
...systemWeights.regular,
|
|
99
|
-
fontSize: 12,
|
|
100
|
-
letterSpacing: 2,
|
|
101
|
-
lineHeight: 16,
|
|
102
|
-
},
|
|
103
|
-
headline6: {
|
|
104
|
-
...systemWeights.regular,
|
|
105
|
-
fontSize: 16,
|
|
106
|
-
letterSpacing: 0,
|
|
107
|
-
lineHeight: 24,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
export default DefaultTheme;
|
|
112
|
-
//# sourceMappingURL=DefaultTheme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultTheme.js","sourceRoot":"","sources":["DefaultTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,MAAM,YAAY,GAAG;IACnB,eAAe,EAAE,GAAG;IACpB,SAAS,EAAE,CAAC;IACZ,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,OAAO;IACb,YAAY,EAAE;QACZ,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,EAAE;KACX;IACD,MAAM,EAAE;QACN,OAAO,EAAE,sBAAsB;QAC/B,SAAS,EAAE,uBAAuB;QAClC,OAAO,EAAE,wBAAw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EAAE;SACf;QACD,KAAK,EAAE;YACL,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,KAAK,EAAE;YACL,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,MAAM,EAAE;YACN,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,OAAO,EAAE;YACP,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,QAAQ,EAAE;YACR,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;KACF;CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
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":"A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"}
|
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,cA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
-
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 @@
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,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/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/utilities.js
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet } from "react-native";
|
|
3
|
-
import { isString, isNumber, pick, pickBy, identity } from "lodash";
|
|
4
|
-
export function extractStyles(style) {
|
|
5
|
-
const { color, fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, textTransform, textAlign, textDecorationLine, textDecorationColor, textDecorationStyle, ...viewStyles } = StyleSheet.flatten(style || {});
|
|
6
|
-
const textStyles = {
|
|
7
|
-
color,
|
|
8
|
-
fontFamily,
|
|
9
|
-
fontWeight,
|
|
10
|
-
fontSize,
|
|
11
|
-
lineHeight,
|
|
12
|
-
letterSpacing,
|
|
13
|
-
textTransform,
|
|
14
|
-
textAlign,
|
|
15
|
-
textDecorationLine,
|
|
16
|
-
textDecorationColor,
|
|
17
|
-
textDecorationStyle,
|
|
18
|
-
};
|
|
19
|
-
for (let key in textStyles) {
|
|
20
|
-
const styleKey = key;
|
|
21
|
-
if (textStyles[styleKey] === undefined) {
|
|
22
|
-
delete textStyles[styleKey];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return { viewStyles, textStyles };
|
|
26
|
-
}
|
|
27
|
-
export const borderStyleNames = [
|
|
28
|
-
"borderRadius",
|
|
29
|
-
"borderBottomColor",
|
|
30
|
-
"borderBottomEndRadius",
|
|
31
|
-
"borderBottomLeftRadius",
|
|
32
|
-
"borderBottomRightRadius",
|
|
33
|
-
"borderBottomStartRadius",
|
|
34
|
-
"borderBottomWidth",
|
|
35
|
-
"borderColor",
|
|
36
|
-
"borderEndColor",
|
|
37
|
-
"borderLeftColor",
|
|
38
|
-
"borderLeftWidth",
|
|
39
|
-
"borderRadius",
|
|
40
|
-
"borderRightColor",
|
|
41
|
-
"borderRightWidth",
|
|
42
|
-
"borderStartColor",
|
|
43
|
-
"borderStyle",
|
|
44
|
-
"borderTopColor",
|
|
45
|
-
"borderTopEndRadius",
|
|
46
|
-
"borderTopLeftRadius",
|
|
47
|
-
"borderTopRightRadius",
|
|
48
|
-
"borderTopStartRadius",
|
|
49
|
-
"borderTopWidth",
|
|
50
|
-
"borderWidth",
|
|
51
|
-
];
|
|
52
|
-
export const marginStyleNames = [
|
|
53
|
-
"margin",
|
|
54
|
-
"marginBottom",
|
|
55
|
-
"marginEnd",
|
|
56
|
-
"marginHorizontal",
|
|
57
|
-
"marginLeft",
|
|
58
|
-
"marginRight",
|
|
59
|
-
"marginStart",
|
|
60
|
-
"marginTop",
|
|
61
|
-
"marginVertical",
|
|
62
|
-
];
|
|
63
|
-
export function extractBorderAndMarginStyles(style, additionalBorderStyles, additionalMarginStyles) {
|
|
64
|
-
const flatStyle = StyleSheet.flatten(style || {});
|
|
65
|
-
const borderStyles = pickBy(pick(flatStyle, [
|
|
66
|
-
...borderStyleNames,
|
|
67
|
-
...(additionalBorderStyles ? additionalBorderStyles : []),
|
|
68
|
-
]), identity);
|
|
69
|
-
const marginStyles = pickBy(pick(flatStyle, [
|
|
70
|
-
...marginStyleNames,
|
|
71
|
-
...(additionalMarginStyles ? additionalMarginStyles : []),
|
|
72
|
-
]), identity);
|
|
73
|
-
return { borderStyles, marginStyles };
|
|
74
|
-
}
|
|
75
|
-
export const flexItemStyleNames = [
|
|
76
|
-
"alignSelf",
|
|
77
|
-
"flexBasis",
|
|
78
|
-
"flexShrink",
|
|
79
|
-
"flexGrow",
|
|
80
|
-
"flex",
|
|
81
|
-
];
|
|
82
|
-
export function extractFlexItemStyles(style, additionalFlexItemStyles) {
|
|
83
|
-
const flatStyle = StyleSheet.flatten(style || {});
|
|
84
|
-
const flexItemStyles = pickBy(pick(flatStyle, [
|
|
85
|
-
...flexItemStyleNames,
|
|
86
|
-
...(additionalFlexItemStyles ? additionalFlexItemStyles : []),
|
|
87
|
-
]), identity);
|
|
88
|
-
return flexItemStyles;
|
|
89
|
-
}
|
|
90
|
-
export const positionStyleNames = [
|
|
91
|
-
"position",
|
|
92
|
-
"left",
|
|
93
|
-
"right",
|
|
94
|
-
"top",
|
|
95
|
-
"bottom",
|
|
96
|
-
"zIndex",
|
|
97
|
-
"overflow",
|
|
98
|
-
];
|
|
99
|
-
export function extractPositionStyles(style, additionalPositionStyles) {
|
|
100
|
-
const flatStyle = StyleSheet.flatten(style || {});
|
|
101
|
-
const positionStyles = pickBy(pick(flatStyle, [
|
|
102
|
-
...positionStyleNames,
|
|
103
|
-
...(additionalPositionStyles ? additionalPositionStyles : []),
|
|
104
|
-
]), identity);
|
|
105
|
-
return positionStyles;
|
|
106
|
-
}
|
|
107
|
-
export const effectsStyleNames = ["opacity", "elevation"];
|
|
108
|
-
export function extractEffectStyles(style, additionalEffectStyles) {
|
|
109
|
-
const flatStyle = StyleSheet.flatten(style || {});
|
|
110
|
-
const effectStyles = pickBy(pick(flatStyle, [
|
|
111
|
-
...effectsStyleNames,
|
|
112
|
-
...(additionalEffectStyles ? additionalEffectStyles : []),
|
|
113
|
-
]), identity);
|
|
114
|
-
return effectStyles;
|
|
115
|
-
}
|
|
116
|
-
export const sizeStyleNames = ["width", "height", "minWidth", "minHeight"];
|
|
117
|
-
export function extractSizeStyles(style, additionalSizeStyles) {
|
|
118
|
-
const flatStyle = StyleSheet.flatten(style || {});
|
|
119
|
-
const sizeStyles = pickBy(pick(flatStyle, [
|
|
120
|
-
...sizeStyleNames,
|
|
121
|
-
...(additionalSizeStyles ? additionalSizeStyles : []),
|
|
122
|
-
]), identity);
|
|
123
|
-
return sizeStyles;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Merges a style object on top of another style object. In React Native,
|
|
127
|
-
* keys with undefined values in a style object will still override styles
|
|
128
|
-
* that appear earlier in a sequence. This avoids that problem.
|
|
129
|
-
*
|
|
130
|
-
* This lets us avoid the `...(something ? { something } : {})` pattern.
|
|
131
|
-
* There doesn't seem to be a better way to do this. These all seem to not
|
|
132
|
-
* work (i.e. they all result in `{ color: undefined }`:
|
|
133
|
-
* `const mergedStyles = [{ color: "red" }, { color: undefined }]`
|
|
134
|
-
* `const mergedStyles = StyleSheet.compose({ color: "red" }, { color: undefined })`
|
|
135
|
-
* `const mergedStyles = StyleSheet.flatten([{ color: "red" }, { color: undefined }])`
|
|
136
|
-
*/
|
|
137
|
-
export function applyStyles(baseStyles, stylesToApply) {
|
|
138
|
-
if (!stylesToApply) {
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
const flattenedStyles = StyleSheet.flatten(baseStyles);
|
|
142
|
-
for (const [key, value] of Object.entries(stylesToApply)) {
|
|
143
|
-
if (value != null) {
|
|
144
|
-
flattenedStyles[key] = value;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return flattenedStyles;
|
|
148
|
-
}
|
|
149
|
-
export function getValueForRadioButton(value) {
|
|
150
|
-
if (isString(value)) {
|
|
151
|
-
return value;
|
|
152
|
-
}
|
|
153
|
-
else if (isNumber(value)) {
|
|
154
|
-
return String(value);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
throw new Error(`Invalid value: ${value}`);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Flattens array of components to remove any React.Fragment's (<> </>) and returns the fragment's children in its place
|
|
162
|
-
* This is useful for operations that depend on a particular child type that would otherwise not match when wrapped in a fragment
|
|
163
|
-
*/
|
|
164
|
-
export function flattenReactFragments(components) {
|
|
165
|
-
var _a;
|
|
166
|
-
const flattened = [];
|
|
167
|
-
for (const component of components) {
|
|
168
|
-
if (component.type === React.Fragment) {
|
|
169
|
-
const children = React.Children.toArray((_a = component.props) === null || _a === void 0 ? void 0 : _a.children);
|
|
170
|
-
for (const child of children) {
|
|
171
|
-
flattened.push(...flattenReactFragments([child]));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
flattened.push(component);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
return flattened;
|
|
179
|
-
}
|
|
180
|
-
//# sourceMappingURL=utilities.js.map
|