@prototyp/skeletor 1.0.19 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -63
- package/lib/commonjs/@types/Font.d.js +2 -0
- package/lib/commonjs/@types/Font.d.js.map +1 -0
- package/lib/commonjs/components/Block/Block.js +117 -0
- package/lib/commonjs/components/Block/Block.js.map +1 -0
- package/lib/commonjs/components/Block/index.js +17 -0
- package/lib/commonjs/components/Block/index.js.map +1 -0
- package/lib/commonjs/components/InputFocusScrollView/InputFocusScrollView.js +111 -0
- package/lib/commonjs/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -0
- package/lib/commonjs/components/InputFocusScrollView/index.js +17 -0
- package/lib/commonjs/components/InputFocusScrollView/index.js.map +1 -0
- package/lib/commonjs/components/Screen/Screen.js +58 -0
- package/lib/commonjs/components/Screen/Screen.js.map +1 -0
- package/lib/commonjs/components/Screen/index.js +17 -0
- package/lib/commonjs/components/Screen/index.js.map +1 -0
- package/lib/commonjs/components/SkeletorProvider/SkeletorContext.js +17 -0
- package/lib/commonjs/components/SkeletorProvider/SkeletorContext.js.map +1 -0
- package/lib/commonjs/components/SkeletorProvider/SkeletorProvider.js +24 -0
- package/lib/commonjs/components/SkeletorProvider/SkeletorProvider.js.map +1 -0
- package/lib/commonjs/components/SkeletorProvider/index.js +28 -0
- package/lib/commonjs/components/SkeletorProvider/index.js.map +1 -0
- package/lib/commonjs/components/Text/Text.js +73 -0
- package/lib/commonjs/components/Text/Text.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +17 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/index.js +61 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/package.json +3 -0
- package/lib/commonjs/hooks/index.js +72 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/package.json +3 -0
- package/lib/commonjs/hooks/skeleform/README.md +100 -0
- package/lib/commonjs/hooks/skeleform/package.json +48 -0
- package/lib/commonjs/hooks/skeleform/src/index.js +209 -0
- package/lib/commonjs/hooks/skeleform/src/index.js.map +1 -0
- package/lib/commonjs/hooks/skeleform/tsconfig.json +14 -0
- package/lib/commonjs/hooks/skeleform/yarn.lock +2215 -0
- package/lib/commonjs/hooks/useAndroidBackHandler.js +30 -0
- package/lib/commonjs/hooks/useAndroidBackHandler.js.map +1 -0
- package/lib/commonjs/hooks/useAnimation.js +39 -0
- package/lib/commonjs/hooks/useAnimation.js.map +1 -0
- package/lib/commonjs/hooks/useAnimationTimeline.js +106 -0
- package/lib/commonjs/hooks/useAnimationTimeline.js.map +1 -0
- package/lib/commonjs/hooks/useAppState.js +26 -0
- package/lib/commonjs/hooks/useAppState.js.map +1 -0
- package/lib/commonjs/hooks/useSkeletor.js +12 -0
- package/lib/commonjs/hooks/useSkeletor.js.map +1 -0
- package/lib/commonjs/index.js +50 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/models/Alignment.js +6 -0
- package/lib/commonjs/models/Alignment.js.map +1 -0
- package/lib/commonjs/models/Animation.js +6 -0
- package/lib/commonjs/models/Animation.js.map +1 -0
- package/lib/commonjs/models/Border.js +6 -0
- package/lib/commonjs/models/Border.js.map +1 -0
- package/lib/commonjs/models/Flex.js +6 -0
- package/lib/commonjs/models/Flex.js.map +1 -0
- package/lib/commonjs/models/NonAnimatedDimensionValue.js +6 -0
- package/lib/commonjs/models/NonAnimatedDimensionValue.js.map +1 -0
- package/lib/commonjs/models/Position.js +6 -0
- package/lib/commonjs/models/Position.js.map +1 -0
- package/lib/commonjs/models/Size.js +6 -0
- package/lib/commonjs/models/Size.js.map +1 -0
- package/lib/commonjs/models/SkeletorConfig.js +6 -0
- package/lib/commonjs/models/SkeletorConfig.js.map +1 -0
- package/lib/commonjs/models/Spacing.js +6 -0
- package/lib/commonjs/models/Spacing.js.map +1 -0
- package/lib/commonjs/models/TupleTypes.js +2 -0
- package/lib/commonjs/models/TupleTypes.js.map +1 -0
- package/lib/commonjs/models/index.js +116 -0
- package/lib/commonjs/models/index.js.map +1 -0
- package/lib/commonjs/models/package.json +3 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/animations.js +224 -0
- package/lib/commonjs/utils/animations.js.map +1 -0
- package/lib/commonjs/utils/extract-alignment-properties.js +15 -0
- package/lib/commonjs/utils/extract-alignment-properties.js.map +1 -0
- package/lib/commonjs/utils/extract-animation-properties.js +52 -0
- package/lib/commonjs/utils/extract-animation-properties.js.map +1 -0
- package/lib/commonjs/utils/extract-flex-properties.js +30 -0
- package/lib/commonjs/utils/extract-flex-properties.js.map +1 -0
- package/lib/commonjs/utils/extract-gap-properties.js +26 -0
- package/lib/commonjs/utils/extract-gap-properties.js.map +1 -0
- package/lib/commonjs/utils/extract-position-properties.js +25 -0
- package/lib/commonjs/utils/extract-position-properties.js.map +1 -0
- package/lib/commonjs/utils/extract-size-properties.js +17 -0
- package/lib/commonjs/utils/extract-size-properties.js.map +1 -0
- package/lib/commonjs/utils/index.js +94 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/normalize-spacing-values.js +104 -0
- package/lib/commonjs/utils/normalize-spacing-values.js.map +1 -0
- package/lib/commonjs/utils/package.json +3 -0
- package/lib/module/@types/Font.d.js +2 -0
- package/lib/module/@types/Font.d.js.map +1 -0
- package/lib/module/components/Block/Block.js +44 -33
- package/lib/module/components/Block/Block.js.map +1 -1
- package/lib/module/components/Block/index.js +3 -1
- package/lib/module/components/Block/index.js.map +1 -1
- package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js +17 -13
- package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
- package/lib/module/components/InputFocusScrollView/index.js +3 -1
- package/lib/module/components/InputFocusScrollView/index.js.map +1 -1
- package/lib/module/components/Screen/Screen.js +39 -32
- package/lib/module/components/Screen/Screen.js.map +1 -1
- package/lib/module/components/Screen/index.js +3 -1
- package/lib/module/components/Screen/index.js.map +1 -1
- package/lib/module/components/SkeletorProvider/SkeletorContext.js +3 -2
- package/lib/module/components/SkeletorProvider/SkeletorContext.js.map +1 -1
- package/lib/module/components/SkeletorProvider/SkeletorProvider.js +8 -5
- package/lib/module/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
- package/lib/module/components/SkeletorProvider/index.js +4 -2
- package/lib/module/components/SkeletorProvider/index.js.map +1 -1
- package/lib/module/components/Text/Text.js +30 -27
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/Text/index.js +3 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/index.js +7 -5
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/package.json +1 -1
- package/lib/module/hooks/index.js +8 -6
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/package.json +1 -1
- package/lib/module/hooks/skeleform/src/index.js +5 -8
- package/lib/module/hooks/skeleform/src/index.js.map +1 -1
- package/lib/module/hooks/useAndroidBackHandler.js +2 -0
- package/lib/module/hooks/useAndroidBackHandler.js.map +1 -1
- package/lib/module/hooks/useAnimation.js +3 -0
- package/lib/module/hooks/useAnimation.js.map +1 -1
- package/lib/module/hooks/useAnimationTimeline.js +11 -5
- package/lib/module/hooks/useAnimationTimeline.js.map +1 -1
- package/lib/module/hooks/useAppState.js +4 -2
- package/lib/module/hooks/useAppState.js.map +1 -1
- package/lib/module/hooks/useSkeletor.js +3 -1
- package/lib/module/hooks/useSkeletor.js.map +1 -1
- package/lib/module/index.js +6 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/Alignment.js +2 -0
- package/lib/module/models/Alignment.js.map +1 -1
- package/lib/module/models/Animation.js +2 -0
- package/lib/module/models/Animation.js.map +1 -1
- package/lib/module/models/Border.js +2 -0
- package/lib/module/models/Border.js.map +1 -1
- package/lib/module/models/Flex.js +2 -0
- package/lib/module/models/Flex.js.map +1 -1
- package/lib/module/models/NonAnimatedDimensionValue.js +4 -0
- package/lib/module/models/NonAnimatedDimensionValue.js.map +1 -0
- package/lib/module/models/Position.js +2 -0
- package/lib/module/models/Position.js.map +1 -1
- package/lib/module/models/Size.js +2 -0
- package/lib/module/models/Size.js.map +1 -1
- package/lib/module/models/SkeletorConfig.js +2 -0
- package/lib/module/models/SkeletorConfig.js.map +1 -1
- package/lib/module/models/Spacing.js +2 -0
- package/lib/module/models/Spacing.js.map +1 -1
- package/lib/module/models/TupleTypes.js +2 -0
- package/lib/module/models/TupleTypes.js.map +1 -0
- package/lib/module/models/index.js +12 -8
- package/lib/module/models/index.js.map +1 -1
- package/lib/module/models/package.json +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/utils/animations.js +22 -12
- package/lib/module/utils/animations.js.map +1 -1
- package/lib/module/utils/{extractAlignmentProperties.js → extract-alignment-properties.js} +3 -1
- package/lib/module/utils/extract-alignment-properties.js.map +1 -0
- package/lib/module/utils/{extractAnimationProperties.js → extract-animation-properties.js} +3 -7
- package/lib/module/utils/extract-animation-properties.js.map +1 -0
- package/lib/module/utils/{extractFlexProperties.js → extract-flex-properties.js} +3 -1
- package/lib/module/utils/extract-flex-properties.js.map +1 -0
- package/lib/module/utils/{extractGapProperties.js → extract-gap-properties.js} +3 -1
- package/lib/module/utils/extract-gap-properties.js.map +1 -0
- package/lib/module/utils/{extractPositionProperties.js → extract-position-properties.js} +4 -3
- package/lib/module/utils/extract-position-properties.js.map +1 -0
- package/lib/module/utils/{extractSizeProperties.js → extract-size-properties.js} +3 -1
- package/lib/module/utils/extract-size-properties.js.map +1 -0
- package/lib/module/utils/index.js +10 -7
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/normalize-spacing-values.js +99 -0
- package/lib/module/utils/normalize-spacing-values.js.map +1 -0
- package/lib/module/utils/package.json +1 -1
- package/lib/typescript/commonjs/components/Block/Block.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Block/index.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/InputFocusScrollView/InputFocusScrollView.d.ts +0 -1
- package/lib/typescript/commonjs/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/InputFocusScrollView/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +19 -0
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Screen/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/SkeletorProvider/SkeletorContext.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/SkeletorProvider/SkeletorProvider.d.ts +1 -1
- package/lib/typescript/commonjs/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/SkeletorProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Text/Text.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/skeleform/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useAndroidBackHandler.d.ts.map +1 -0
- package/lib/typescript/{hooks → commonjs/hooks}/useAnimation.d.ts +1 -0
- package/lib/typescript/commonjs/hooks/useAnimation.d.ts.map +1 -0
- package/lib/typescript/{hooks → commonjs/hooks}/useAnimationTimeline.d.ts +5 -1
- package/lib/typescript/commonjs/hooks/useAnimationTimeline.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useAppState.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useSkeletor.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/Alignment.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/models}/Animation.d.ts +1 -3
- package/lib/typescript/commonjs/models/Animation.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/models}/Border.d.ts +1 -1
- package/lib/typescript/commonjs/models/Border.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/Flex.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/NonAnimatedDimensionValue.d.ts +4 -0
- package/lib/typescript/commonjs/models/NonAnimatedDimensionValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/Position.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/models}/Size.d.ts +1 -1
- package/lib/typescript/commonjs/models/Size.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/SkeletorConfig.d.ts +20 -0
- package/lib/typescript/commonjs/models/SkeletorConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/Spacing.d.ts +25 -0
- package/lib/typescript/commonjs/models/Spacing.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/TupleTypes.d.ts +2 -0
- package/lib/typescript/commonjs/models/TupleTypes.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/models}/index.d.ts +2 -0
- package/lib/typescript/commonjs/models/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/{utils → commonjs/utils}/animations.d.ts +10 -2
- package/lib/typescript/commonjs/utils/animations.d.ts.map +1 -0
- package/lib/typescript/{utils/extractAlignmentProperties.d.ts → commonjs/utils/extract-alignment-properties.d.ts} +1 -1
- package/lib/typescript/commonjs/utils/extract-alignment-properties.d.ts.map +1 -0
- package/lib/typescript/{utils/extractAnimationProperties.d.ts → commonjs/utils/extract-animation-properties.d.ts} +1 -1
- package/lib/typescript/commonjs/utils/extract-animation-properties.d.ts.map +1 -0
- package/lib/typescript/{utils/extractFlexProperties.d.ts → commonjs/utils/extract-flex-properties.d.ts} +1 -1
- package/lib/typescript/commonjs/utils/extract-flex-properties.d.ts.map +1 -0
- package/lib/typescript/{utils/extractGapProperties.d.ts → commonjs/utils/extract-gap-properties.d.ts} +1 -1
- package/lib/typescript/commonjs/utils/extract-gap-properties.d.ts.map +1 -0
- package/lib/typescript/{utils/extractPositionProperties.d.ts → commonjs/utils/extract-position-properties.d.ts} +1 -1
- package/lib/typescript/commonjs/utils/extract-position-properties.d.ts.map +1 -0
- package/lib/typescript/{utils/extractSizeProperties.d.ts → commonjs/utils/extract-size-properties.d.ts} +1 -1
- package/lib/typescript/commonjs/utils/extract-size-properties.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +9 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/normalize-spacing-values.d.ts +5 -0
- package/lib/typescript/commonjs/utils/normalize-spacing-values.d.ts.map +1 -0
- package/lib/typescript/module/components/Block/Block.d.ts +25 -0
- package/lib/typescript/module/components/Block/Block.d.ts.map +1 -0
- package/lib/typescript/module/components/Block/index.d.ts +2 -0
- package/lib/typescript/module/components/Block/index.d.ts.map +1 -0
- package/lib/typescript/module/components/InputFocusScrollView/InputFocusScrollView.d.ts +26 -0
- package/lib/typescript/module/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -0
- package/lib/typescript/module/components/InputFocusScrollView/index.d.ts +2 -0
- package/lib/typescript/module/components/InputFocusScrollView/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Screen/Screen.d.ts +19 -0
- package/lib/typescript/module/components/Screen/Screen.d.ts.map +1 -0
- package/lib/typescript/module/components/Screen/index.d.ts +2 -0
- package/lib/typescript/module/components/Screen/index.d.ts.map +1 -0
- package/lib/typescript/module/components/SkeletorProvider/SkeletorContext.d.ts +5 -0
- package/lib/typescript/module/components/SkeletorProvider/SkeletorContext.d.ts.map +1 -0
- package/lib/typescript/module/components/SkeletorProvider/SkeletorProvider.d.ts +8 -0
- package/lib/typescript/module/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -0
- package/lib/typescript/module/components/SkeletorProvider/index.d.ts +3 -0
- package/lib/typescript/module/components/SkeletorProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Text/Text.d.ts +21 -0
- package/lib/typescript/module/components/Text/Text.d.ts.map +1 -0
- package/lib/typescript/module/components/Text/index.d.ts +2 -0
- package/lib/typescript/module/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +6 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -0
- package/lib/typescript/module/hooks/index.d.ts +7 -0
- package/lib/typescript/module/hooks/index.d.ts.map +1 -0
- package/lib/typescript/module/hooks/skeleform/src/index.d.ts +50 -0
- package/lib/typescript/module/hooks/skeleform/src/index.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useAndroidBackHandler.d.ts +16 -0
- package/lib/typescript/module/hooks/useAndroidBackHandler.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useAnimation.d.ts +21 -0
- package/lib/typescript/module/hooks/useAnimation.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useAnimationTimeline.d.ts +34 -0
- package/lib/typescript/module/hooks/useAnimationTimeline.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useAppState.d.ts +7 -0
- package/lib/typescript/module/hooks/useAppState.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useSkeletor.d.ts +3 -0
- package/lib/typescript/module/hooks/useSkeletor.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +5 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/models/Alignment.d.ts +8 -0
- package/lib/typescript/module/models/Alignment.d.ts.map +1 -0
- package/lib/typescript/module/models/Animation.d.ts +45 -0
- package/lib/typescript/module/models/Animation.d.ts.map +1 -0
- package/lib/typescript/module/models/Border.d.ts +10 -0
- package/lib/typescript/module/models/Border.d.ts.map +1 -0
- package/lib/typescript/module/models/Flex.d.ts +15 -0
- package/lib/typescript/module/models/Flex.d.ts.map +1 -0
- package/lib/typescript/module/models/NonAnimatedDimensionValue.d.ts +4 -0
- package/lib/typescript/module/models/NonAnimatedDimensionValue.d.ts.map +1 -0
- package/lib/typescript/module/models/Position.d.ts +20 -0
- package/lib/typescript/module/models/Position.d.ts.map +1 -0
- package/lib/typescript/module/models/Size.d.ts +10 -0
- package/lib/typescript/module/models/Size.d.ts.map +1 -0
- package/lib/typescript/module/models/SkeletorConfig.d.ts +20 -0
- package/lib/typescript/module/models/SkeletorConfig.d.ts.map +1 -0
- package/lib/typescript/module/models/Spacing.d.ts +25 -0
- package/lib/typescript/module/models/Spacing.d.ts.map +1 -0
- package/lib/typescript/module/models/TupleTypes.d.ts +2 -0
- package/lib/typescript/module/models/TupleTypes.d.ts.map +1 -0
- package/lib/typescript/module/models/index.d.ts +11 -0
- package/lib/typescript/module/models/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/utils/animations.d.ts +29 -0
- package/lib/typescript/module/utils/animations.d.ts.map +1 -0
- package/lib/typescript/module/utils/extract-alignment-properties.d.ts +11 -0
- package/lib/typescript/module/utils/extract-alignment-properties.d.ts.map +1 -0
- package/lib/typescript/module/utils/extract-animation-properties.d.ts +6 -0
- package/lib/typescript/module/utils/extract-animation-properties.d.ts.map +1 -0
- package/lib/typescript/module/utils/extract-flex-properties.d.ts +3 -0
- package/lib/typescript/module/utils/extract-flex-properties.d.ts.map +1 -0
- package/lib/typescript/module/utils/extract-gap-properties.d.ts +8 -0
- package/lib/typescript/module/utils/extract-gap-properties.d.ts.map +1 -0
- package/lib/typescript/module/utils/extract-position-properties.d.ts +13 -0
- package/lib/typescript/module/utils/extract-position-properties.d.ts.map +1 -0
- package/lib/typescript/module/utils/extract-size-properties.d.ts +3 -0
- package/lib/typescript/module/utils/extract-size-properties.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +9 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/utils/normalize-spacing-values.d.ts +5 -0
- package/lib/typescript/module/utils/normalize-spacing-values.d.ts.map +1 -0
- package/package.json +42 -12
- package/lib/module/types/Font.d.js +0 -2
- package/lib/module/types/Font.d.js.map +0 -1
- package/lib/module/utils/extractAlignmentProperties.js.map +0 -1
- package/lib/module/utils/extractAnimationProperties.js.map +0 -1
- package/lib/module/utils/extractFlexProperties.js.map +0 -1
- package/lib/module/utils/extractGapProperties.js.map +0 -1
- package/lib/module/utils/extractPositionProperties.js.map +0 -1
- package/lib/module/utils/extractSizeProperties.js.map +0 -1
- package/lib/typescript/components/Block/Block.d.ts.map +0 -1
- package/lib/typescript/components/Block/index.d.ts.map +0 -1
- package/lib/typescript/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +0 -1
- package/lib/typescript/components/InputFocusScrollView/index.d.ts.map +0 -1
- package/lib/typescript/components/Screen/Screen.d.ts +0 -15
- package/lib/typescript/components/Screen/Screen.d.ts.map +0 -1
- package/lib/typescript/components/Screen/index.d.ts.map +0 -1
- package/lib/typescript/components/SkeletorProvider/SkeletorContext.d.ts.map +0 -1
- package/lib/typescript/components/SkeletorProvider/SkeletorProvider.d.ts.map +0 -1
- package/lib/typescript/components/SkeletorProvider/index.d.ts.map +0 -1
- package/lib/typescript/components/Text/Text.d.ts.map +0 -1
- package/lib/typescript/components/Text/index.d.ts.map +0 -1
- package/lib/typescript/components/index.d.ts.map +0 -1
- package/lib/typescript/hooks/index.d.ts.map +0 -1
- package/lib/typescript/hooks/skeleform/src/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useAndroidBackHandler.d.ts.map +0 -1
- package/lib/typescript/hooks/useAnimation.d.ts.map +0 -1
- package/lib/typescript/hooks/useAnimationTimeline.d.ts.map +0 -1
- package/lib/typescript/hooks/useAppState.d.ts.map +0 -1
- package/lib/typescript/hooks/useSkeletor.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/models/Alignment.d.ts.map +0 -1
- package/lib/typescript/models/Animation.d.ts.map +0 -1
- package/lib/typescript/models/Border.d.ts.map +0 -1
- package/lib/typescript/models/Flex.d.ts.map +0 -1
- package/lib/typescript/models/Position.d.ts.map +0 -1
- package/lib/typescript/models/Size.d.ts.map +0 -1
- package/lib/typescript/models/SkeletorConfig.d.ts +0 -11
- package/lib/typescript/models/SkeletorConfig.d.ts.map +0 -1
- package/lib/typescript/models/Spacing.d.ts +0 -21
- package/lib/typescript/models/Spacing.d.ts.map +0 -1
- package/lib/typescript/models/index.d.ts.map +0 -1
- package/lib/typescript/utils/animations.d.ts.map +0 -1
- package/lib/typescript/utils/extractAlignmentProperties.d.ts.map +0 -1
- package/lib/typescript/utils/extractAnimationProperties.d.ts.map +0 -1
- package/lib/typescript/utils/extractFlexProperties.d.ts.map +0 -1
- package/lib/typescript/utils/extractGapProperties.d.ts.map +0 -1
- package/lib/typescript/utils/extractPositionProperties.d.ts.map +0 -1
- package/lib/typescript/utils/extractSizeProperties.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -8
- package/lib/typescript/utils/index.d.ts.map +0 -1
- /package/lib/typescript/{components → commonjs/components}/Block/Block.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Block/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/InputFocusScrollView/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Screen/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/SkeletorProvider/SkeletorContext.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/SkeletorProvider/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Text/Text.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Text/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/index.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/index.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/skeleform/src/index.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/useAndroidBackHandler.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/useAppState.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/useSkeletor.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → commonjs/index.d.ts} +0 -0
- /package/lib/typescript/{models → commonjs/models}/Alignment.d.ts +0 -0
- /package/lib/typescript/{models → commonjs/models}/Flex.d.ts +0 -0
- /package/lib/typescript/{models → commonjs/models}/Position.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-position-properties.d.ts","sourceRoot":"","sources":["../../../../src/utils/extract-position-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,WAAW,GAAG;IAClB,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACtB,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,QAAQ,EAC/D,KAAK,EAAE,KAAK,GACV,WAAW,CAmBb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-size-properties.d.ts","sourceRoot":"","sources":["../../../../src/utils/extract-size-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAS5E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./animations";
|
|
2
|
+
export * from "./extract-alignment-properties";
|
|
3
|
+
export * from "./extract-animation-properties";
|
|
4
|
+
export * from "./extract-flex-properties";
|
|
5
|
+
export * from "./extract-gap-properties";
|
|
6
|
+
export * from "./extract-position-properties";
|
|
7
|
+
export * from "./extract-size-properties";
|
|
8
|
+
export * from "./normalize-spacing-values";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MarginStyles, MarginStylesBase, PaddingStyles, PaddingStylesBase } from "models";
|
|
2
|
+
import type { ViewStyle } from "react-native";
|
|
3
|
+
export declare function normalizePaddingValues(padding: PaddingStyles): ViewStyle | PaddingStylesBase | undefined;
|
|
4
|
+
export declare function normalizeMarginValues(margin: MarginStyles): ViewStyle | MarginStylesBase | undefined;
|
|
5
|
+
//# sourceMappingURL=normalize-spacing-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-spacing-values.d.ts","sourceRoot":"","sources":["../../../../src/utils/normalize-spacing-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,gBAAgB,EAEhB,aAAa,EACb,iBAAiB,EACjB,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,6CAO5D;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,4CAOzD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
import { type ScrollViewProps, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
import type { Alignment, Animations, Border, Flex, Position, Size, Spacing } from "../../models";
|
|
4
|
+
type SkeletorProps = Alignment & Spacing & Size & Border & Flex & Position & Animations;
|
|
5
|
+
type SharedProps = SkeletorProps & {
|
|
6
|
+
background?: JSX.Element | string;
|
|
7
|
+
opacity?: ViewStyle["opacity"];
|
|
8
|
+
};
|
|
9
|
+
export type BlockScrollViewProps = SharedProps & ViewProps & {
|
|
10
|
+
scrollable: true;
|
|
11
|
+
scrollProps?: ScrollViewProps;
|
|
12
|
+
};
|
|
13
|
+
export type BlockViewProps = SharedProps & ViewProps & {
|
|
14
|
+
scrollable?: false | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type BlockProps = BlockScrollViewProps | BlockViewProps;
|
|
17
|
+
/** Can be switched to a scrollable view by passing in `scrollable`. When scrollable, control ScrollView related parameters through `scrollProps`. Default values for `scrollProps` are:
|
|
18
|
+
* @param keyboardShouldPersistTaps `handled`
|
|
19
|
+
* @param showsVerticalScrollIndicator `false`
|
|
20
|
+
* @param showsHorizontalScrollIndicator `false`
|
|
21
|
+
* @param bounces `false`
|
|
22
|
+
* @param contentContainerStyle `{ flexGrow: 1, backgroundColor: rest.background }` */
|
|
23
|
+
export declare const Block: React.FC<PropsWithChildren<BlockProps>>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=Block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../../src/components/Block/Block.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAC/D,OAAO,EAGN,KAAK,eAAe,EAEpB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,MAAM,cAAc,CAAC;AAYtB,KAAK,aAAa,GAAG,SAAS,GAC7B,OAAO,GACP,IAAI,GACJ,MAAM,GACN,IAAI,GACJ,QAAQ,GACR,UAAU,CAAC;AAEZ,KAAK,WAAW,GAAG,aAAa,GAAG;IAClC,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAC7C,SAAS,GAAG;IACX,UAAU,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC9B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,GACvC,SAAS,GAAG;IACX,UAAU,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,cAAc,CAAC;AAoE/D;;;;;sFAKsF;AACtF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC,CA0DzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Block/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type NativeSyntheticEvent, type ScrollViewProps, type TextInputFocusEventData } from "react-native";
|
|
2
|
+
import type { Spacing } from "../../models";
|
|
3
|
+
export interface InputFocusScrollViewProps extends Omit<ScrollViewProps, "children">, Spacing {
|
|
4
|
+
/** Percentage of screen to add to element position. Values between 0 and 1. Use this if you want to position the input focus somewhere other than the top of the screen. Defaults to 0.3 */
|
|
5
|
+
focusPositionOffset?: number;
|
|
6
|
+
offsetFromKeyboard?: number;
|
|
7
|
+
height?: "full" | "auto";
|
|
8
|
+
children: (onInputFocus: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void) => React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This scroll view will automatically scroll to an active input field rendered within it, provided you attach the `onInputFocus` callback to the input onFocus prop.
|
|
12
|
+
*
|
|
13
|
+
* The return value is a lambda component, returning a callback which you attach to input fields rendered within it.
|
|
14
|
+
* @example <InputFocusScrollView>{(onInputFocus) => <TextInput onFocus={onInputFocus} ... />}</InputFocusScrollView>
|
|
15
|
+
* NOTE: This works on iOS only, Android does this by default with @param android:windowSoftInputMode
|
|
16
|
+
*
|
|
17
|
+
* Default props are:
|
|
18
|
+
* @param height `full`
|
|
19
|
+
* @param focusPositionOffset `0.3`
|
|
20
|
+
* @param showsVerticalScrollIndicator `false`
|
|
21
|
+
* @param showsHorizontalScrollIndicator `false`
|
|
22
|
+
* @param bounces `false`
|
|
23
|
+
* @param contentContainerStyle `{flexGrow: 1, paddingBottom: 30}`
|
|
24
|
+
*/
|
|
25
|
+
export declare const InputFocusScrollView: React.FC<InputFocusScrollViewProps>;
|
|
26
|
+
//# sourceMappingURL=InputFocusScrollView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputFocusScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/InputFocusScrollView/InputFocusScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,oBAAoB,EAGzB,KAAK,eAAe,EAGpB,KAAK,uBAAuB,EAC5B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAO5C,MAAM,WAAW,yBAChB,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,EACxC,OAAO;IACR,4LAA4L;IAC5L,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,EAAE,CACT,YAAY,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,KACpE,KAAK,CAAC,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmGpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/InputFocusScrollView/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import { type ColorValue, type StatusBarProps, type StatusBarStyle } from "react-native";
|
|
3
|
+
import { type BlockProps } from "../Block";
|
|
4
|
+
type OwnProps = {
|
|
5
|
+
/** Pass a specific background view OR just a background color value. Custom components should be 100% height and width. */
|
|
6
|
+
background?: React.ReactNode | ColorValue;
|
|
7
|
+
hideTopSafeArea?: boolean;
|
|
8
|
+
hideBottomSafeArea?: boolean;
|
|
9
|
+
bottomSafeAreaColor?: ColorValue;
|
|
10
|
+
topSafeAreaColor?: ColorValue;
|
|
11
|
+
statusBarType?: StatusBarStyle;
|
|
12
|
+
statusBarBackground?: ColorValue;
|
|
13
|
+
/** When set to true, the application will draw under the status bar. */
|
|
14
|
+
statusBarTranslucent?: StatusBarProps["translucent"];
|
|
15
|
+
};
|
|
16
|
+
export type ScreenProps = OwnProps & Omit<BlockProps, "flex">;
|
|
17
|
+
export declare const Screen: React.FC<PropsWithChildren<ScreenProps>>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=Screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Screen.d.ts","sourceRoot":"","sources":["../../../../../src/components/Screen/Screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EACN,KAAK,UAAU,EAGf,KAAK,cAAc,EACnB,KAAK,cAAc,EAEnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAElD,KAAK,QAAQ,GAAG;IACf,2HAA2H;IAC3H,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,UAAU,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAE9D,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAyD3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Screen/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletorContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkeletorProvider/SkeletorContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,cAM9B,CAAC;AAEF,eAAO,MAAM,eAAe,+BAC0B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import type { SkeletorConfig } from "../../models";
|
|
3
|
+
type Props = Partial<SkeletorConfig>;
|
|
4
|
+
/** Create a Font.d.ts type in your typescript types directory and define fonts as follows:
|
|
5
|
+
* @example type Font = "Helvetica" | "Montserrat" ... */
|
|
6
|
+
export declare const SkeletorProvider: React.FC<PropsWithChildren<Props>>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SkeletorProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletorProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkeletorProvider/SkeletorProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAErC;0DAC0D;AAC1D,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAS/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkeletorProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
import { type TextProps as RNTextProps, type TextStyle } from "react-native";
|
|
3
|
+
import type { Animations, Flex, Position, Size, Spacing } from "../../models";
|
|
4
|
+
interface OwnProps extends RNTextProps {
|
|
5
|
+
/** Create a Font.d.ts type in your typescript types directory and define fonts as follows:
|
|
6
|
+
* @example type Font = "Helvetica" | "Montserrat" ... */
|
|
7
|
+
font?: Font;
|
|
8
|
+
/** Either define [fontSize, lineHeight] or just one size applied to both fontSize and lineHeight */
|
|
9
|
+
size?: [number, number] | number;
|
|
10
|
+
textTransform?: TextStyle["textTransform"];
|
|
11
|
+
letterSpacing?: TextStyle["letterSpacing"];
|
|
12
|
+
color?: string;
|
|
13
|
+
textAlign?: TextStyle["textAlign"];
|
|
14
|
+
opacity?: TextStyle["opacity"];
|
|
15
|
+
}
|
|
16
|
+
export type TextProps = OwnProps & Spacing & Size & Flex & Position & Animations;
|
|
17
|
+
/** Create a Font.d.ts type in your typescript types directory and define fonts as follows:
|
|
18
|
+
* @example type Font = "Helvetica" | "Montserrat" ... */
|
|
19
|
+
export declare const Text: React.FC<PropsWithChildren<TextProps>>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAC/D,OAAO,EAEN,KAAK,SAAS,IAAI,WAAW,EAE7B,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAW9E,UAAU,QAAS,SAAQ,WAAW;IACrC;8DAC0D;IAC1D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,oGAAoG;IACpG,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC/B;AAED,MAAM,MAAM,SAAS,GAAG,QAAQ,GAC/B,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,UAAU,CAAC;AAEZ;0DAC0D;AAC1D,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,CA4EvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type Validation<T> = {
|
|
2
|
+
[K in keyof Partial<T>]?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export type Rules<T> = {
|
|
5
|
+
[K in keyof T]?: (value: T[K], state: T, optional: boolean) => boolean | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type Values<T> = {
|
|
8
|
+
[K in keyof T]: T[K];
|
|
9
|
+
};
|
|
10
|
+
export type FormConfig<R> = {
|
|
11
|
+
/** List of optional properties. Optional properties will be marked as valid if left empty. */
|
|
12
|
+
optional?: Array<keyof R>;
|
|
13
|
+
/** Validation rules by specified property name. If you define a validation rule function here, the field will be validated against it. If no rule is set, a crude value check will be used instead (optional || Boolean(value)). Note: For complex value types (objects, arrays, dates etc) it is best to use a custom validation rule. */
|
|
14
|
+
rules?: Rules<R>;
|
|
15
|
+
};
|
|
16
|
+
/** One-fits-all solution to manage state changes, field validation and optional entries within a form.
|
|
17
|
+
* @example <caption>Simple use case:</caption>
|
|
18
|
+
* const { state, validation, update } = useForm({ email: '', password: '', });
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* @example <caption>For more complex form states (ie one field can be of multiple types), you should pass the form's type:</caption>
|
|
22
|
+
* const { state, validation, update } = useForm<{ numericOrUndefined: number | undefined }>({ numericOrUndefined: undefined }, { rules: { numericOrUndefined: (value: number | undefined): boolean | undefined => ... }});
|
|
23
|
+
*
|
|
24
|
+
* Note: Avoid using class constructors for form state as it will continuously re-render the form. Every class construct is a new object, so the initial values parameter will always be different thus causing an infinite loop of re-renders. Use plain objects instead or memoize classes before passing them into the hook.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useForm<T>(values: Values<T>, config?: FormConfig<T>): {
|
|
27
|
+
state: Values<T>;
|
|
28
|
+
validation: Validation<T>;
|
|
29
|
+
update: <K extends keyof T>(key: K, value: Values<T>[K], shouldValidate?: boolean) => void;
|
|
30
|
+
validate: <K_1 extends keyof T>(key: K_1) => void;
|
|
31
|
+
validateForm: () => boolean;
|
|
32
|
+
isFormValid: () => boolean;
|
|
33
|
+
hasStateChanged: () => boolean;
|
|
34
|
+
clearForm: () => void;
|
|
35
|
+
resetState: () => void;
|
|
36
|
+
resetValidation: () => void;
|
|
37
|
+
resetInitialValues: () => void;
|
|
38
|
+
};
|
|
39
|
+
/** Helper hook to validate form state outside of the scope of useForm. */
|
|
40
|
+
export declare function useFormUtils<T>(config?: FormConfig<T>): {
|
|
41
|
+
doesValueExist: (value: T[keyof T]) => value is Exclude<T[keyof T], null | undefined>;
|
|
42
|
+
validateByRule: <K extends keyof T>(key: K, value: T[K], state: Values<T>) => boolean | undefined;
|
|
43
|
+
isOptional: (key: keyof T) => boolean;
|
|
44
|
+
fieldValidation: (key: keyof T, value: T[keyof T], state: Values<T>) => boolean | undefined;
|
|
45
|
+
stateValidation: (state: Values<T>) => {
|
|
46
|
+
valid: boolean;
|
|
47
|
+
validation: Validation<T>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/hooks/skeleform/src/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC;AAClE,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CACf,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EACX,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,OAAO,KACd,OAAO,GAAG,SAAS;CACzB,CAAC;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1B,2UAA2U;IAC3U,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CAClB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;;;qCA4B3D,CAAC,SACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,mBACF,OAAO;;;;;;;;;EAyF3B;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;4BAE3C,CAAC,CAAC,MAAM,CAAC,CAAC;6CA4BQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC;sBANnD,MAAM,CAAC;2BAiBe,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC;6BAgB1C,OAAO,CAAC,CAAC;;;;EAwB1C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface DefaultProps {
|
|
2
|
+
/** Whether the custom handler is enabled or disabled. */
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface WithCallback extends DefaultProps {
|
|
6
|
+
/** Callback function to execute on back button press. Will disable default behavior. */
|
|
7
|
+
handlePress: () => void;
|
|
8
|
+
}
|
|
9
|
+
interface WithDisable extends DefaultProps {
|
|
10
|
+
/** Whether or not the default android back button behavior will be blocked */
|
|
11
|
+
disableDefault: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type AndroidBackHandlerConfig = WithCallback | WithDisable;
|
|
14
|
+
export declare function useAndroidBackHandler(props: AndroidBackHandlerConfig): void;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=useAndroidBackHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAndroidBackHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAndroidBackHandler.ts"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACrB,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;CACjB;AACD,UAAU,YAAa,SAAQ,YAAY;IAC1C,wFAAwF;IACxF,WAAW,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,UAAU,WAAY,SAAQ,YAAY;IACzC,8EAA8E;IAC9E,cAAc,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,WAAW,CAAC;AAQlE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,wBAAwB,QAmBpE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Animated, type ViewStyle } from "react-native";
|
|
2
|
+
/** Any is a hotfix, requires more investigation */
|
|
3
|
+
export type UseAnimation<Keys extends keyof Partial<ViewStyle>> = Record<Keys, Animated.AnimatedInterpolation<string | number> | any>;
|
|
4
|
+
type UseAnimationDefinition<Keys extends keyof Partial<ViewStyle>> = Record<Keys, number[] | string[]>;
|
|
5
|
+
interface UseAnimationConfiguration {
|
|
6
|
+
/** In miliseconds */
|
|
7
|
+
duration: number;
|
|
8
|
+
/** Loop will disable native driver because it breaks the loop animation (at least it did last time I tested in 2020.) */
|
|
9
|
+
loop?: boolean;
|
|
10
|
+
useNativeDriver?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface UseAnimationSet<Keys extends keyof Partial<ViewStyle>> {
|
|
13
|
+
values: Animated.Value[];
|
|
14
|
+
definitions: UseAnimationDefinition<Keys>;
|
|
15
|
+
animations: UseAnimation<Keys>;
|
|
16
|
+
configuration: UseAnimationConfiguration;
|
|
17
|
+
}
|
|
18
|
+
/** @deprecated Use animateSequence, animateParallel or animateStagger shipped with 1.0.10 instead. */
|
|
19
|
+
export declare function useAnimation<Keys extends keyof Partial<ViewStyle>>(styles: UseAnimationDefinition<Keys>, configuration?: UseAnimationConfiguration): UseAnimationSet<Keys>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=useAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAnimation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAExD,mDAAmD;AACnD,MAAM,MAAM,YAAY,CAAC,IAAI,SAAS,MAAM,OAAO,CAAC,SAAS,CAAC,IAAI,MAAM,CACvE,IAAI,EACJ,QAAQ,CAAC,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,GAAG,CACrD,CAAC;AAEF,KAAK,sBAAsB,CAAC,IAAI,SAAS,MAAM,OAAO,CAAC,SAAS,CAAC,IAAI,MAAM,CAC1E,IAAI,EACJ,MAAM,EAAE,GAAG,MAAM,EAAE,CACnB,CAAC;AAEF,UAAU,yBAAyB;IAClC,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,yHAAyH;IACzH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,eAAe,CAAC,IAAI,SAAS,MAAM,OAAO,CAAC,SAAS,CAAC;IAC9D,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;IACzB,WAAW,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC1C,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IAC/B,aAAa,EAAE,yBAAyB,CAAC;CACzC;AAED,sGAAsG;AACtG,wBAAgB,YAAY,CAAC,IAAI,SAAS,MAAM,OAAO,CAAC,SAAS,CAAC,EACjE,MAAM,EAAE,sBAAsB,CAAC,IAAI,CAAC,EACpC,aAAa,CAAC,EAAE,yBAAyB,GACvC,eAAe,CAAC,IAAI,CAAC,CA8BvB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { UseAnimation } from "./useAnimation";
|
|
2
|
+
interface BaseTimelineType {
|
|
3
|
+
elements: UseAnimation<any>[];
|
|
4
|
+
start: boolean;
|
|
5
|
+
onFinished?: () => void;
|
|
6
|
+
onStarted?: () => void;
|
|
7
|
+
}
|
|
8
|
+
type DelayTimeline = BaseTimelineType & {
|
|
9
|
+
delay: number;
|
|
10
|
+
};
|
|
11
|
+
type StaggerTimeline = BaseTimelineType & {
|
|
12
|
+
stagger: number;
|
|
13
|
+
};
|
|
14
|
+
interface TimelineConfiguration {
|
|
15
|
+
delay?: DelayTimeline;
|
|
16
|
+
parallel?: BaseTimelineType;
|
|
17
|
+
sequence?: BaseTimelineType;
|
|
18
|
+
stagger?: StaggerTimeline;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use createAnimationTimeline instead.
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* Used to layout animated values on a timeline and handle starting/reversing the animations.
|
|
25
|
+
* Supports all Animated types (delay, stagger, parallel, sequence).
|
|
26
|
+
* @example
|
|
27
|
+
* useAnimationTimeline({
|
|
28
|
+
stagger: { elements: [ring1, ring2, ring3], stagger: 900, start: show },
|
|
29
|
+
sequence: { elements: [button], start: Boolean(show && !disabled) },
|
|
30
|
+
});
|
|
31
|
+
*/
|
|
32
|
+
export declare function useAnimationTimeline(config: TimelineConfiguration): void;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=useAnimationTimeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimationTimeline.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAnimationTimeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,UAAU,gBAAgB;IACzB,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,KAAK,aAAa,GAAG,gBAAgB,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AACF,KAAK,eAAe,GAAG,gBAAgB,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,UAAU,qBAAqB;IAC9B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,OAAO,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED;;;;;;;;;;;EAWE;AACF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAyGxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppState.ts"],"names":[],"mappings":"AAGA,UAAU,MAAM;IACf,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,MAAM,QAiBjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSkeletor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSkeletor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,wBAAgB,WAAW,IAAI,cAAc,CAE5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
export interface Alignment {
|
|
3
|
+
align?: ViewStyle["alignItems"];
|
|
4
|
+
alignSelf?: ViewStyle["alignSelf"];
|
|
5
|
+
justify?: ViewStyle["justifyContent"];
|
|
6
|
+
flexDirection?: ViewStyle["flexDirection"];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Alignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alignment.d.ts","sourceRoot":"","sources":["../../../../src/models/Alignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,SAAS;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Animated, EasingFunction, ViewStyle } from "react-native";
|
|
2
|
+
export type AnimationConfiguration = {
|
|
3
|
+
duration?: number;
|
|
4
|
+
/** Enables or disables native driver. Defaults to true. Unexpected lifecycle behavior might be experience when false. If animations behave weirdly, try changing this. */
|
|
5
|
+
native?: boolean;
|
|
6
|
+
/** Defaults to Easing.inOut(Easing.ease) */
|
|
7
|
+
easing?: EasingFunction;
|
|
8
|
+
/** Defaults to false to prevent unintended issues with VirtualizedLists */
|
|
9
|
+
isInteraction?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type StaggerAnimationConfiguration = AnimationConfiguration & {
|
|
12
|
+
stagger?: number;
|
|
13
|
+
};
|
|
14
|
+
type NonAnimatableKeys = "rotation" | "alignItems" | "alignContent" | "alignSelf" | "justifyContent" | "display" | "flexDirection" | "flexWrap" | "overflow" | "position" | "zIndex" | "elevation" | "direction" | "backfaceVisibility" | "borderCurve" | "borderStyle" | "pointerEvents" | "overflow" | "transform";
|
|
15
|
+
export type CleanViewStyle = Omit<ViewStyle, NonAnimatableKeys> & {
|
|
16
|
+
rotation?: `${number}deg` | `${number}rad`;
|
|
17
|
+
};
|
|
18
|
+
export type AnimationViewStyle = {
|
|
19
|
+
[K in keyof CleanViewStyle]: Exclude<CleanViewStyle[K], Animated.AnimatedNode>;
|
|
20
|
+
};
|
|
21
|
+
export type AnimationStyle<Keys extends keyof AnimationViewStyle> = {
|
|
22
|
+
[K in Keys | keyof AnimationViewStyle]?: AnimationViewStyle[K][];
|
|
23
|
+
};
|
|
24
|
+
export type Animation<Keys extends keyof AnimationViewStyle = keyof AnimationViewStyle> = {
|
|
25
|
+
[K in Keys]: Animated.AnimatedInterpolation<string | number>;
|
|
26
|
+
};
|
|
27
|
+
export type ElementAnimation<Keys extends keyof AnimationViewStyle> = {
|
|
28
|
+
animations: Animation<Keys>;
|
|
29
|
+
forward: Animated.CompositeAnimation;
|
|
30
|
+
backward: Animated.CompositeAnimation;
|
|
31
|
+
/** Start animation with onFinished callback. Using forward.start() */
|
|
32
|
+
start(onFinished?: () => void): void;
|
|
33
|
+
/** Reverse all animation values to initial value and reset main trigger. Using backward.start() */
|
|
34
|
+
reverse: (onFinished?: () => void) => void;
|
|
35
|
+
/** Reset animations to initial value. Using forward.reset() */
|
|
36
|
+
reset: Animated.CompositeAnimation["reset"];
|
|
37
|
+
};
|
|
38
|
+
export type ViewAnimation<Keys extends keyof AnimationViewStyle> = {
|
|
39
|
+
[K in Keys | keyof AnimationViewStyle]?: AnimationViewStyle[K] | Animated.AnimatedInterpolation<string | number>;
|
|
40
|
+
};
|
|
41
|
+
export interface Animations {
|
|
42
|
+
animations?: ViewAnimation<keyof AnimationViewStyle>;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=Animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Animation.d.ts","sourceRoot":"","sources":["../../../../src/models/Animation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,MAAM,sBAAsB,GAAG;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0KAA0K;IAC1K,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,sBAAsB,GAAG;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,iBAAiB,GACnB,UAAU,GACV,YAAY,GACZ,cAAc,GACd,WAAW,GACX,gBAAgB,GAChB,SAAS,GACT,eAAe,GACf,UAAU,GACV,UAAU,GACV,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,eAAe,GACf,UAAU,GACV,WAAW,CAAC;AAEf,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG;IACjE,QAAQ,CAAC,EAAE,GAAG,MAAM,KAAK,GAAG,GAAG,MAAM,KAAK,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;KAC/B,CAAC,IAAI,MAAM,cAAc,GAAG,OAAO,CACnC,cAAc,CAAC,CAAC,CAAC,EACjB,QAAQ,CAAC,YAAY,CACrB;CACD,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,IAAI,SAAS,MAAM,kBAAkB,IAAI;KAClE,CAAC,IAAI,IAAI,GAAG,MAAM,kBAAkB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE;CAChE,CAAC;AAEF,MAAM,MAAM,SAAS,CACpB,IAAI,SAAS,MAAM,kBAAkB,GAAG,MAAM,kBAAkB,IAC7D;KACF,CAAC,IAAI,IAAI,GAAG,QAAQ,CAAC,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,IAAI,SAAS,MAAM,kBAAkB,IAAI;IACrE,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC,kBAAkB,CAAC;IACrC,QAAQ,EAAE,QAAQ,CAAC,kBAAkB,CAAC;IACtC,sEAAsE;IACtE,KAAK,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACrC,mGAAmG;IACnG,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC3C,+DAA+D;IAC/D,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,IAAI,SAAS,MAAM,kBAAkB,IAAI;KACjE,CAAC,IAAI,IAAI,GAAG,MAAM,kBAAkB,CAAC,CAAC,EACpC,kBAAkB,CAAC,CAAC,CAAC,GACrB,QAAQ,CAAC,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC;CAClD,CAAC;AAEF,MAAM,WAAW,UAAU;IAC1B,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,kBAAkB,CAAC,CAAC;CACrD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
type BorderKey = Extract<keyof ViewStyle, `border${string}`>;
|
|
3
|
+
type BorderStyles = {
|
|
4
|
+
[K in BorderKey]?: ViewStyle[K];
|
|
5
|
+
};
|
|
6
|
+
export interface Border {
|
|
7
|
+
border?: BorderStyles;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Border.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Border.d.ts","sourceRoot":"","sources":["../../../../src/models/Border.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,SAAS,GAAG,OAAO,CAAC,MAAM,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;AAC7D,KAAK,YAAY,GAAG;KAClB,CAAC,IAAI,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,MAAM;IACtB,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
type FlexKeys = Extract<keyof ViewStyle, `flex${string}`>;
|
|
3
|
+
type FilteredFlexKeys = Exclude<FlexKeys, "flexDirection">;
|
|
4
|
+
export type FlexAttributes = {
|
|
5
|
+
[K in FilteredFlexKeys]?: ViewStyle[K];
|
|
6
|
+
} & {
|
|
7
|
+
gap?: ViewStyle["gap"];
|
|
8
|
+
rowGap?: ViewStyle["rowGap"];
|
|
9
|
+
columnGap?: ViewStyle["columnGap"];
|
|
10
|
+
};
|
|
11
|
+
export interface Flex {
|
|
12
|
+
flex?: ViewStyle["flex"] | FlexAttributes;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../src/models/Flex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,QAAQ,GAAG,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,MAAM,EAAE,CAAC,CAAC;AAC1D,KAAK,gBAAgB,GAAG,OAAO,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;KAAG,CAAC,IAAI,gBAAgB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;CAAE,GAAG;IACzE,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,IAAI;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NonAnimatedDimensionValue.d.ts","sourceRoot":"","sources":["../../../../src/models/NonAnimatedDimensionValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,kFAAkF;AAClF,MAAM,MAAM,yBAAyB,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
type Offsets = [ViewStyle["top"]] | [ViewStyle["top"], ViewStyle["left"]] | [ViewStyle["top"], ViewStyle["left"], ViewStyle["bottom"]] | [
|
|
3
|
+
ViewStyle["top"],
|
|
4
|
+
ViewStyle["left"],
|
|
5
|
+
ViewStyle["bottom"],
|
|
6
|
+
ViewStyle["right"]
|
|
7
|
+
] | {
|
|
8
|
+
top?: ViewStyle["top"];
|
|
9
|
+
bottom?: ViewStyle["bottom"];
|
|
10
|
+
left?: ViewStyle["left"];
|
|
11
|
+
right?: ViewStyle["right"];
|
|
12
|
+
};
|
|
13
|
+
export interface Position {
|
|
14
|
+
absolute?: boolean;
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
offsets?: Offsets;
|
|
17
|
+
overflow?: ViewStyle["overflow"];
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../../src/models/Position.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,OAAO,GACT,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAClB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,GACrC,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,GAC1D;IACA,SAAS,CAAC,KAAK,CAAC;IAChB,SAAS,CAAC,MAAM,CAAC;IACjB,SAAS,CAAC,QAAQ,CAAC;IACnB,SAAS,CAAC,OAAO,CAAC;CACjB,GACD;IACA,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC1B,CAAC;AAEL,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CACjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DimensionValue } from "react-native";
|
|
2
|
+
export interface Size {
|
|
3
|
+
width?: DimensionValue;
|
|
4
|
+
height?: DimensionValue;
|
|
5
|
+
minHeight?: DimensionValue;
|
|
6
|
+
minWidth?: DimensionValue;
|
|
7
|
+
maxHeight?: DimensionValue;
|
|
8
|
+
maxWidth?: DimensionValue;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Size.d.ts","sourceRoot":"","sources":["../../../../src/models/Size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,IAAI;IACpB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ColorValue, StatusBarStyle } from "react-native";
|
|
2
|
+
export interface SkeletorConfig {
|
|
3
|
+
defaultFont: Font | undefined;
|
|
4
|
+
defaultFontSize: [number, number] | number;
|
|
5
|
+
defaultStatusBarType: StatusBarStyle;
|
|
6
|
+
/** Defaults to transparent if not set.
|
|
7
|
+
* Can be overriden via the Screen component per-screen. */
|
|
8
|
+
defaultStatusBarBackground?: ColorValue;
|
|
9
|
+
/** When set to true, the application will draw under the status bar.
|
|
10
|
+
* Defaults to false if not set.
|
|
11
|
+
* Can be overriden via the Screen component per-screen. */
|
|
12
|
+
defaultStatusBarTranslucent?: boolean;
|
|
13
|
+
defaultTextColor: ColorValue;
|
|
14
|
+
/** When set to true, font size will scale based on the user's device settings.
|
|
15
|
+
* Defaults to false */
|
|
16
|
+
allowFontScaling: boolean;
|
|
17
|
+
/** Clamp the maximum font size multiplier that can be applied to the original scale. */
|
|
18
|
+
defaultMaxFontSizeMultiplier?: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SkeletorConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletorConfig.d.ts","sourceRoot":"","sources":["../../../../src/models/SkeletorConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC9B,WAAW,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;IAC3C,oBAAoB,EAAE,cAAc,CAAC;IACrC;+DAC2D;IAC3D,0BAA0B,CAAC,EAAE,UAAU,CAAC;IACxC;;+DAE2D;IAC3D,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,gBAAgB,EAAE,UAAU,CAAC;IAC7B;2BACuB;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,wFAAwF;IACxF,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACtC"}
|