@draftbit/core 54.0.7 → 54.0.8-6e4257.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 +6 -6
- package/lib/commonjs/Provider.js +0 -1
- package/lib/commonjs/components/AccordionGroup.js +0 -1
- package/lib/commonjs/components/ActionSheet/ActionSheet.js +0 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +0 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +0 -1
- package/lib/commonjs/components/ActionSheet/index.js +0 -1
- package/lib/commonjs/components/AspectRatio.js +0 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +0 -1
- package/lib/commonjs/components/BottomSheet/index.js +0 -1
- package/lib/commonjs/components/Button.js +0 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +0 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +0 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +0 -1
- package/lib/commonjs/components/Checkbox/context.js +0 -1
- package/lib/commonjs/components/Checkbox/index.js +0 -1
- package/lib/commonjs/components/Config.js +0 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +0 -1
- package/lib/commonjs/components/DatePicker/parseDate.js +0 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +0 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +0 -1
- package/lib/commonjs/components/DeckSwiper/index.js +0 -1
- package/lib/commonjs/components/Divider.js +0 -1
- package/lib/commonjs/components/Elevation.js +0 -1
- package/lib/commonjs/components/ExpoImage.js +0 -1
- package/lib/commonjs/components/FlatList.js +0 -1
- package/lib/commonjs/components/FormRow.js +0 -1
- package/lib/commonjs/components/IconButton.js +0 -1
- package/lib/commonjs/components/Image.js +0 -1
- package/lib/commonjs/components/KeyboardAvoidingView.js +0 -1
- package/lib/commonjs/components/Layout/AspectRatio.js +0 -1
- package/lib/commonjs/components/Layout/Center.js +0 -1
- package/lib/commonjs/components/Layout/Circle.js +0 -1
- package/lib/commonjs/components/Layout/HStack.js +0 -1
- package/lib/commonjs/components/Layout/LayoutCommon.js +0 -1
- package/lib/commonjs/components/Layout/Spacer.js +0 -1
- package/lib/commonjs/components/Layout/Square.js +0 -1
- package/lib/commonjs/components/Layout/VStack.js +0 -1
- package/lib/commonjs/components/Layout/ZStack.js +0 -1
- package/lib/commonjs/components/Layout/index.js +0 -1
- package/lib/commonjs/components/LoadingIndicator.js +0 -1
- package/lib/commonjs/components/LottieAnimation.js +0 -1
- package/lib/commonjs/components/Markdown.js +0 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/index.js +0 -1
- package/lib/commonjs/components/MediaPlayer/MediaPlaybackWrapper.js +0 -1
- package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +0 -1
- package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -1
- package/lib/commonjs/components/MediaPlayer/VideoPlayer/index.js +0 -1
- package/lib/commonjs/components/NumberInput.js +0 -1
- package/lib/commonjs/components/Picker/NativePicker.ios.js +0 -1
- package/lib/commonjs/components/Picker/NativePicker.js +0 -1
- package/lib/commonjs/components/Picker/PickerCommon.js +0 -1
- package/lib/commonjs/components/Picker/PickerInputContainer.js +0 -1
- package/lib/commonjs/components/Picker/dropdown/DropDownModalPicker.js +0 -1
- package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +0 -1
- package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +0 -1
- package/lib/commonjs/components/Picker/dropdown/PickerItem.js +0 -1
- package/lib/commonjs/components/Picker/index.js +0 -1
- package/lib/commonjs/components/PinInput/CustomPinInputCell.js +0 -1
- package/lib/commonjs/components/PinInput/PinInput.js +0 -1
- package/lib/commonjs/components/PinInput/PinInputText.js +0 -1
- package/lib/commonjs/components/PinInput/index.js +0 -1
- package/lib/commonjs/components/Portal/Portal.js +0 -1
- package/lib/commonjs/components/Portal/PortalConsumer.js +0 -1
- package/lib/commonjs/components/Portal/PortalHost.js +0 -1
- package/lib/commonjs/components/Portal/PortalManager.js +0 -1
- package/lib/commonjs/components/Pressable.js +0 -1
- package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +0 -1
- package/lib/commonjs/components/Progress/CircularProgress/index.js +0 -1
- package/lib/commonjs/components/Progress/IndeterminateProgress.js +0 -1
- package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +0 -1
- package/lib/commonjs/components/Progress/LinearProgress/index.js +0 -1
- package/lib/commonjs/components/Progress/ProgressCommon.js +0 -1
- package/lib/commonjs/components/ProgressIndicator.js +0 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js +0 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +0 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +0 -1
- package/lib/commonjs/components/RadioButton/context.js +0 -1
- package/lib/commonjs/components/RadioButton/index.js +0 -1
- package/lib/commonjs/components/Row.js +0 -1
- package/lib/commonjs/components/SVG.js +0 -1
- package/lib/commonjs/components/SVG.native.js +0 -1
- package/lib/commonjs/components/ScreenContainer.js +0 -1
- package/lib/commonjs/components/SectionList/SectionHeader.js +0 -1
- package/lib/commonjs/components/SectionList/SectionList.js +0 -1
- package/lib/commonjs/components/SectionList/index.js +0 -1
- package/lib/commonjs/components/Shadow.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -1
- package/lib/commonjs/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -1
- package/lib/commonjs/components/Slider.js +0 -1
- package/lib/commonjs/components/StarRating.js +0 -1
- package/lib/commonjs/components/StepIndicator.js +0 -1
- package/lib/commonjs/components/Stepper.js +0 -1
- package/lib/commonjs/components/Surface.js +0 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +0 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableItemButton.js +0 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableItemCommon.js +0 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableList.js +0 -1
- package/lib/commonjs/components/SwipeableItem/index.js +0 -1
- package/lib/commonjs/components/Swiper/Swiper.js +0 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js +0 -1
- package/lib/commonjs/components/Swiper/index.js +0 -1
- package/lib/commonjs/components/Switch.js +0 -1
- package/lib/commonjs/components/TabView/TabView.js +0 -1
- package/lib/commonjs/components/TabView/TabViewItem.js +0 -1
- package/lib/commonjs/components/TabView/index.js +0 -1
- package/lib/commonjs/components/Table/Table.js +0 -1
- package/lib/commonjs/components/Table/TableCell.js +0 -1
- package/lib/commonjs/components/Table/TableCommon.js +0 -1
- package/lib/commonjs/components/Table/TableRow.js +0 -1
- package/lib/commonjs/components/Table/index.js +0 -1
- package/lib/commonjs/components/Text.js +0 -1
- package/lib/commonjs/components/TextField.js +0 -1
- package/lib/commonjs/components/TextInput.js +0 -1
- package/lib/commonjs/components/Timer.js +0 -1
- package/lib/commonjs/components/Touchable.js +0 -1
- package/lib/commonjs/components/Touchable.web.js +0 -1
- package/lib/commonjs/components/Typography.js +0 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +0 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js +0 -5
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js +0 -1
- package/lib/commonjs/components/YoutubePlayer/index.js +0 -1
- package/lib/commonjs/components/useAuthState.js +0 -1
- package/lib/commonjs/constants.js +0 -1
- package/lib/commonjs/deprecated-components/AccordionItem.js +0 -1
- package/lib/commonjs/deprecated-components/AnimatedCircularProgress.js +0 -1
- package/lib/commonjs/deprecated-components/AvatarEdit.js +0 -1
- package/lib/commonjs/deprecated-components/AvoidKeyboardView.js +0 -1
- package/lib/commonjs/deprecated-components/Banner.js +0 -1
- package/lib/commonjs/deprecated-components/Card.js +0 -1
- package/lib/commonjs/deprecated-components/CheckboxGroup.js +0 -1
- package/lib/commonjs/deprecated-components/CircleImage.js +0 -1
- package/lib/commonjs/deprecated-components/CircularProgress.js +0 -1
- package/lib/commonjs/deprecated-components/Container.js +0 -1
- package/lib/commonjs/deprecated-components/DeprecatedButton.js +0 -1
- package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +0 -1
- package/lib/commonjs/deprecated-components/DeprecatedFAB.js +0 -1
- package/lib/commonjs/deprecated-components/FAB.js +0 -1
- package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +0 -1
- package/lib/commonjs/deprecated-components/Layout.js +0 -1
- package/lib/commonjs/deprecated-components/ProgressBar.js +0 -1
- package/lib/commonjs/deprecated-components/ProgressCircle.js +0 -1
- package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +0 -1
- package/lib/commonjs/deprecated-components/RowBodyIcon.js +0 -1
- package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +0 -1
- package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +0 -1
- package/lib/commonjs/deprecated-components/ToggleButton.js +0 -1
- package/lib/commonjs/hooks.js +0 -1
- package/lib/commonjs/index.js +0 -1
- package/lib/commonjs/interfaces/Icon.js +0 -1
- package/lib/commonjs/utilities.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.injectIcon=void 0;var _react=_interopRequireDefault(require("react"));var injectIcon=exports.injectIcon=function injectIcon(Component,Icon){return _react.default.forwardRef(function(props,ref){return _react.default.createElement(Component,Object.assign({},props,{Icon:Icon,ref:ref}));});};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.applyStyles=applyStyles;exports.effectsStyleNames=exports.borderStyleNames=void 0;exports.extractBorderAndMarginStyles=extractBorderAndMarginStyles;exports.extractEffectStyles=extractEffectStyles;exports.extractFlexItemStyles=extractFlexItemStyles;exports.extractPercentNumber=extractPercentNumber;exports.extractPositionStyles=extractPositionStyles;exports.extractSizeStyles=extractSizeStyles;exports.extractStyles=extractStyles;exports.flattenReactFragments=flattenReactFragments;exports.flexItemStyleNames=void 0;exports.getValueForRadioButton=getValueForRadioButton;exports.sizeStyleNames=exports.positionStyleNames=exports.paddingStyleNames=exports.marginStyleNames=void 0;exports.useDeepCompareEffect=useDeepCompareEffect;exports.useDeepCompareMemo=useDeepCompareMemo;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _lodash=require("lodash");var _excluded=["color","fontFamily","fontWeight","fontSize","lineHeight","letterSpacing","textTransform","textAlign","textDecorationLine","textDecorationColor","textDecorationStyle"];function extractStyles(style){var _StyleSheet$flatten=_reactNative.StyleSheet.flatten(style||{}),color=_StyleSheet$flatten.color,fontFamily=_StyleSheet$flatten.fontFamily,fontWeight=_StyleSheet$flatten.fontWeight,fontSize=_StyleSheet$flatten.fontSize,lineHeight=_StyleSheet$flatten.lineHeight,letterSpacing=_StyleSheet$flatten.letterSpacing,textTransform=_StyleSheet$flatten.textTransform,textAlign=_StyleSheet$flatten.textAlign,textDecorationLine=_StyleSheet$flatten.textDecorationLine,textDecorationColor=_StyleSheet$flatten.textDecorationColor,textDecorationStyle=_StyleSheet$flatten.textDecorationStyle,viewStyles=(0,_objectWithoutProperties2.default)(_StyleSheet$flatten,_excluded);var textStyles={color:color,fontFamily:fontFamily,fontWeight:fontWeight,fontSize:fontSize,lineHeight:lineHeight,letterSpacing:letterSpacing,textTransform:textTransform,textAlign:textAlign,textDecorationLine:textDecorationLine,textDecorationColor:textDecorationColor,textDecorationStyle:textDecorationStyle};for(var key in textStyles){var styleKey=key;if(textStyles[styleKey]===undefined){delete textStyles[styleKey];}}return{viewStyles:viewStyles,textStyles:textStyles};}var borderStyleNames=exports.borderStyleNames=["borderRadius","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderEndColor","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth"];var marginStyleNames=exports.marginStyleNames=["margin","marginBottom","marginEnd","marginHorizontal","marginLeft","marginRight","marginStart","marginTop","marginVertical"];var paddingStyleNames=exports.paddingStyleNames=["padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical"];function extractBorderAndMarginStyles(style,additionalBorderStyles,additionalMarginStyles){var flatStyle=_reactNative.StyleSheet.flatten(style||{});var borderStyles=(0,_lodash.pickBy)((0,_lodash.pick)(flatStyle,[].concat(borderStyleNames,(0,_toConsumableArray2.default)(additionalBorderStyles?additionalBorderStyles:[]))),_lodash.identity);var marginStyles=(0,_lodash.pickBy)((0,_lodash.pick)(flatStyle,[].concat(marginStyleNames,(0,_toConsumableArray2.default)(additionalMarginStyles?additionalMarginStyles:[]))),_lodash.identity);return{borderStyles:borderStyles,marginStyles:marginStyles};}var flexItemStyleNames=exports.flexItemStyleNames=["alignSelf","flexBasis","flexShrink","flexGrow","flex"];function extractFlexItemStyles(style,additionalFlexItemStyles){var flatStyle=_reactNative.StyleSheet.flatten(style||{});var flexItemStyles=(0,_lodash.pickBy)((0,_lodash.pick)(flatStyle,[].concat(flexItemStyleNames,(0,_toConsumableArray2.default)(additionalFlexItemStyles?additionalFlexItemStyles:[]))),_lodash.identity);return flexItemStyles;}var positionStyleNames=exports.positionStyleNames=["position","left","right","top","bottom","zIndex","overflow"];function extractPositionStyles(style,additionalPositionStyles){var flatStyle=_reactNative.StyleSheet.flatten(style||{});var positionStyles=(0,_lodash.pickBy)((0,_lodash.pick)(flatStyle,[].concat(positionStyleNames,(0,_toConsumableArray2.default)(additionalPositionStyles?additionalPositionStyles:[]))),_lodash.identity);return positionStyles;}var effectsStyleNames=exports.effectsStyleNames=["opacity","elevation"];function extractEffectStyles(style,additionalEffectStyles){var flatStyle=_reactNative.StyleSheet.flatten(style||{});var effectStyles=(0,_lodash.pickBy)((0,_lodash.pick)(flatStyle,[].concat(effectsStyleNames,(0,_toConsumableArray2.default)(additionalEffectStyles?additionalEffectStyles:[]))),_lodash.identity);return effectStyles;}var sizeStyleNames=exports.sizeStyleNames=["width","height","minWidth","minHeight"];function extractSizeStyles(style,additionalSizeStyles){var flatStyle=_reactNative.StyleSheet.flatten(style||{});var sizeStyles=(0,_lodash.pickBy)((0,_lodash.pick)(flatStyle,[].concat(sizeStyleNames,(0,_toConsumableArray2.default)(additionalSizeStyles?additionalSizeStyles:[]))),_lodash.identity);return sizeStyles;}function applyStyles(baseStyles,stylesToApply){if(!stylesToApply){return;}var flattenedStyles=_reactNative.StyleSheet.flatten(baseStyles);for(var _ref of Object.entries(stylesToApply)){var _ref2=(0,_slicedToArray2.default)(_ref,2);var key=_ref2[0];var value=_ref2[1];if(value!=null){flattenedStyles[key]=value;}}return flattenedStyles;}function getValueForRadioButton(value){if((0,_lodash.isString)(value)){return value;}else if((0,_lodash.isNumber)(value)){return String(value);}else{throw new Error(`Invalid value: ${value}`);}}function flattenReactFragments(components){var flattened=[];for(var component of components){if(component.type===_react.default.Fragment){var _props;var children=_react.default.Children.toArray((_props=component.props)==null?void 0:_props.children);for(var child of children){flattened.push.apply(flattened,(0,_toConsumableArray2.default)(flattenReactFragments([child])));}}else{flattened.push(component);}}return flattened;}function useDeepCompareMemoize(value){var ref=_react.default.useRef(undefined);if(!(0,_lodash.isEqual)(value,ref.current)){ref.current=value;}return ref.current;}function useDeepCompareMemo(factory,deps){return _react.default.useMemo(factory,deps==null?void 0:deps.map(useDeepCompareMemoize));}function useDeepCompareEffect(effect,deps){return _react.default.useEffect(effect,deps==null?void 0:deps.map(useDeepCompareMemoize));}function extractPercentNumber(percentString){var percentRegex=/(\d+)?%/;var matches=percentString.match(percentRegex);if(matches!=null&&matches.length){var percentNumber=Number(matches[1]);if(!isNaN(percentNumber)){return percentNumber;}}return undefined;}
|