@draftbit/core 46.4.4-6da88d.2 → 46.4.4-7001c8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +13 -219
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappings/Touchable.js +1 -1
- package/lib/commonjs/mappings/View.js.map +1 -1
- package/lib/commonjs/mappings/WebView.js.map +1 -1
- package/lib/module/index.js +29 -42
- package/lib/module/index.js.map +1 -1
- package/lib/module/mappings/Touchable.js +1 -1
- package/lib/typescript/src/index.d.ts +13 -40
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -6
- package/src/index.js +22 -42
- package/src/index.tsx +36 -52
- package/src/mappings/Touchable.js +1 -1
- package/src/mappings/Touchable.ts +1 -1
- package/lib/commonjs/components/AnimatedCircularProgress.js +0 -67
- package/lib/commonjs/components/AnimatedCircularProgress.js.map +0 -1
- package/lib/commonjs/components/AspectRatio.js +0 -51
- package/lib/commonjs/components/AspectRatio.js.map +0 -1
- package/lib/commonjs/components/AvatarEdit.js +0 -60
- package/lib/commonjs/components/AvatarEdit.js.map +0 -1
- package/lib/commonjs/components/Banner.js +0 -168
- package/lib/commonjs/components/Banner.js.map +0 -1
- package/lib/commonjs/components/Card.js +0 -138
- package/lib/commonjs/components/Card.js.map +0 -1
- package/lib/commonjs/components/CardBlock.js +0 -107
- package/lib/commonjs/components/CardBlock.js.map +0 -1
- package/lib/commonjs/components/CardContainer.js +0 -130
- package/lib/commonjs/components/CardContainer.js.map +0 -1
- package/lib/commonjs/components/CardContainerRating.js +0 -134
- package/lib/commonjs/components/CardContainerRating.js.map +0 -1
- package/lib/commonjs/components/CardContainerShortImage.js +0 -85
- package/lib/commonjs/components/CardContainerShortImage.js.map +0 -1
- package/lib/commonjs/components/CardInline.js +0 -92
- package/lib/commonjs/components/CardInline.js.map +0 -1
- package/lib/commonjs/components/Carousel.js +0 -130
- package/lib/commonjs/components/Carousel.js.map +0 -1
- package/lib/commonjs/components/CircleImage.js +0 -36
- package/lib/commonjs/components/CircleImage.js.map +0 -1
- package/lib/commonjs/components/CircularProgress.js +0 -113
- package/lib/commonjs/components/CircularProgress.js.map +0 -1
- package/lib/commonjs/components/Container.js +0 -105
- package/lib/commonjs/components/Container.js.map +0 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js +0 -41
- package/lib/commonjs/components/DeprecatedCardWrapper.js.map +0 -1
- package/lib/commonjs/components/DeprecatedFAB.js +0 -159
- package/lib/commonjs/components/DeprecatedFAB.js.map +0 -1
- package/lib/commonjs/components/Divider.js +0 -31
- package/lib/commonjs/components/Divider.js.map +0 -1
- package/lib/commonjs/components/FAB.js +0 -83
- package/lib/commonjs/components/FAB.js.map +0 -1
- package/lib/commonjs/components/FieldSearchBarFull.js +0 -98
- package/lib/commonjs/components/FieldSearchBarFull.js.map +0 -1
- package/lib/commonjs/components/Header.js +0 -83
- package/lib/commonjs/components/Header.js.map +0 -1
- package/lib/commonjs/components/HeaderLarge.js +0 -39
- package/lib/commonjs/components/HeaderLarge.js.map +0 -1
- package/lib/commonjs/components/HeaderMedium.js +0 -39
- package/lib/commonjs/components/HeaderMedium.js.map +0 -1
- package/lib/commonjs/components/HeaderOverline.js +0 -40
- package/lib/commonjs/components/HeaderOverline.js.map +0 -1
- package/lib/commonjs/components/Image.js +0 -82
- package/lib/commonjs/components/Image.js.map +0 -1
- package/lib/commonjs/components/Justification.js +0 -5
- package/lib/commonjs/components/Justification.js.map +0 -1
- package/lib/commonjs/components/ProgressBar.js +0 -159
- package/lib/commonjs/components/ProgressBar.js.map +0 -1
- package/lib/commonjs/components/ProgressCircle.js +0 -49
- package/lib/commonjs/components/ProgressCircle.js.map +0 -1
- package/lib/commonjs/components/ProgressIndicator.js +0 -56
- package/lib/commonjs/components/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/components/ResizeMode.js +0 -5
- package/lib/commonjs/components/ResizeMode.js.map +0 -1
- package/lib/commonjs/components/Row.js +0 -74
- package/lib/commonjs/components/Row.js.map +0 -1
- package/lib/commonjs/components/RowBodyIcon.js +0 -46
- package/lib/commonjs/components/RowBodyIcon.js.map +0 -1
- package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -46
- package/lib/commonjs/components/RowHeadlineImageCaption.js.map +0 -1
- package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -52
- package/lib/commonjs/components/RowHeadlineImageIcon.js.map +0 -1
- package/lib/commonjs/components/StepIndicator.js +0 -386
- package/lib/commonjs/components/StepIndicator.js.map +0 -1
- package/lib/commonjs/components/TabView/TabView.js +0 -88
- package/lib/commonjs/components/TabView/TabView.js.map +0 -1
- package/lib/commonjs/components/TabView/TabViewItem.js +0 -25
- package/lib/commonjs/components/TabView/TabViewItem.js.map +0 -1
- package/lib/commonjs/components/TabView/index.js +0 -21
- package/lib/commonjs/components/TabView/index.js.map +0 -1
- package/lib/commonjs/components/ToggleButton.js +0 -72
- package/lib/commonjs/components/ToggleButton.js.map +0 -1
- package/lib/commonjs/components/Typography.js +0 -59
- package/lib/commonjs/components/Typography.js.map +0 -1
- package/lib/commonjs/components/useAuthState.js +0 -29
- package/lib/commonjs/components/useAuthState.js.map +0 -1
- package/lib/commonjs/mappings/AvatarEdit.js +0 -46
- package/lib/commonjs/mappings/AvatarEdit.js.map +0 -1
- package/lib/commonjs/mappings/Banner.js +0 -40
- package/lib/commonjs/mappings/Banner.js.map +0 -1
- package/lib/commonjs/mappings/Card.js +0 -61
- package/lib/commonjs/mappings/Card.js.map +0 -1
- package/lib/commonjs/mappings/CardBlock.js +0 -127
- package/lib/commonjs/mappings/CardBlock.js.map +0 -1
- package/lib/commonjs/mappings/CardContainer.js +0 -109
- package/lib/commonjs/mappings/CardContainer.js.map +0 -1
- package/lib/commonjs/mappings/CardContainerRating.js +0 -131
- package/lib/commonjs/mappings/CardContainerRating.js.map +0 -1
- package/lib/commonjs/mappings/CardContainerShortImage.js +0 -125
- package/lib/commonjs/mappings/CardContainerShortImage.js.map +0 -1
- package/lib/commonjs/mappings/CardInline.js +0 -60
- package/lib/commonjs/mappings/CardInline.js.map +0 -1
- package/lib/commonjs/mappings/Carousel.js +0 -25
- package/lib/commonjs/mappings/Carousel.js.map +0 -1
- package/lib/commonjs/mappings/CircleImage.js +0 -33
- package/lib/commonjs/mappings/CircleImage.js.map +0 -1
- package/lib/commonjs/mappings/Container.js +0 -38
- package/lib/commonjs/mappings/Container.js.map +0 -1
- package/lib/commonjs/mappings/Divider.js +0 -33
- package/lib/commonjs/mappings/Divider.js.map +0 -1
- package/lib/commonjs/mappings/FAB.js +0 -45
- package/lib/commonjs/mappings/FAB.js.map +0 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js +0 -57
- package/lib/commonjs/mappings/FieldSearchBarFull.js.map +0 -1
- package/lib/commonjs/mappings/HeaderLarge.js +0 -35
- package/lib/commonjs/mappings/HeaderLarge.js.map +0 -1
- package/lib/commonjs/mappings/HeaderMedium.js +0 -61
- package/lib/commonjs/mappings/HeaderMedium.js.map +0 -1
- package/lib/commonjs/mappings/HeaderOverline.js +0 -61
- package/lib/commonjs/mappings/HeaderOverline.js.map +0 -1
- package/lib/commonjs/mappings/ProgressBar.js +0 -107
- package/lib/commonjs/mappings/ProgressBar.js.map +0 -1
- package/lib/commonjs/mappings/ProgressCircle.js +0 -117
- package/lib/commonjs/mappings/ProgressCircle.js.map +0 -1
- package/lib/commonjs/mappings/ProgressIndicator.js +0 -189
- package/lib/commonjs/mappings/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/mappings/RowBodyIcon.js +0 -80
- package/lib/commonjs/mappings/RowBodyIcon.js.map +0 -1
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +0 -170
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +0 -1
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +0 -100
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +0 -1
- package/lib/commonjs/mappings/TabView.js +0 -78
- package/lib/commonjs/mappings/TabView.js.map +0 -1
- package/lib/commonjs/mappings/ToggleButton.js +0 -54
- package/lib/commonjs/mappings/ToggleButton.js.map +0 -1
- package/lib/module/components/AnimatedCircularProgress.js +0 -57
- package/lib/module/components/AnimatedCircularProgress.js.map +0 -1
- package/lib/module/components/AspectRatio.js +0 -43
- package/lib/module/components/AspectRatio.js.map +0 -1
- package/lib/module/components/AvatarEdit.js +0 -50
- package/lib/module/components/AvatarEdit.js.map +0 -1
- package/lib/module/components/Banner.js +0 -158
- package/lib/module/components/Banner.js.map +0 -1
- package/lib/module/components/Card.js +0 -129
- package/lib/module/components/Card.js.map +0 -1
- package/lib/module/components/CardBlock.js +0 -99
- package/lib/module/components/CardBlock.js.map +0 -1
- package/lib/module/components/CardContainer.js +0 -122
- package/lib/module/components/CardContainer.js.map +0 -1
- package/lib/module/components/CardContainerRating.js +0 -126
- package/lib/module/components/CardContainerRating.js.map +0 -1
- package/lib/module/components/CardContainerShortImage.js +0 -77
- package/lib/module/components/CardContainerShortImage.js.map +0 -1
- package/lib/module/components/CardInline.js +0 -83
- package/lib/module/components/CardInline.js.map +0 -1
- package/lib/module/components/Carousel.js +0 -120
- package/lib/module/components/Carousel.js.map +0 -1
- package/lib/module/components/CircleImage.js +0 -26
- package/lib/module/components/CircleImage.js.map +0 -1
- package/lib/module/components/CircularProgress.js +0 -105
- package/lib/module/components/CircularProgress.js.map +0 -1
- package/lib/module/components/Container.js +0 -84
- package/lib/module/components/Container.js.map +0 -1
- package/lib/module/components/DeprecatedCardWrapper.js +0 -33
- package/lib/module/components/DeprecatedCardWrapper.js.map +0 -1
- package/lib/module/components/DeprecatedFAB.js +0 -149
- package/lib/module/components/DeprecatedFAB.js.map +0 -1
- package/lib/module/components/Divider.js +0 -22
- package/lib/module/components/Divider.js.map +0 -1
- package/lib/module/components/FAB.js +0 -74
- package/lib/module/components/FAB.js.map +0 -1
- package/lib/module/components/FieldSearchBarFull.js +0 -88
- package/lib/module/components/FieldSearchBarFull.js.map +0 -1
- package/lib/module/components/Header.js +0 -73
- package/lib/module/components/Header.js.map +0 -1
- package/lib/module/components/HeaderLarge.js +0 -29
- package/lib/module/components/HeaderLarge.js.map +0 -1
- package/lib/module/components/HeaderMedium.js +0 -29
- package/lib/module/components/HeaderMedium.js.map +0 -1
- package/lib/module/components/HeaderOverline.js +0 -30
- package/lib/module/components/HeaderOverline.js.map +0 -1
- package/lib/module/components/Image.js +0 -75
- package/lib/module/components/Image.js.map +0 -1
- package/lib/module/components/Justification.js +0 -2
- package/lib/module/components/Justification.js.map +0 -1
- package/lib/module/components/ProgressBar.js +0 -150
- package/lib/module/components/ProgressBar.js.map +0 -1
- package/lib/module/components/ProgressCircle.js +0 -39
- package/lib/module/components/ProgressCircle.js.map +0 -1
- package/lib/module/components/ProgressIndicator.js +0 -46
- package/lib/module/components/ProgressIndicator.js.map +0 -1
- package/lib/module/components/ResizeMode.js +0 -2
- package/lib/module/components/ResizeMode.js.map +0 -1
- package/lib/module/components/Row.js +0 -64
- package/lib/module/components/Row.js.map +0 -1
- package/lib/module/components/RowBodyIcon.js +0 -36
- package/lib/module/components/RowBodyIcon.js.map +0 -1
- package/lib/module/components/RowHeadlineImageCaption.js +0 -36
- package/lib/module/components/RowHeadlineImageCaption.js.map +0 -1
- package/lib/module/components/RowHeadlineImageIcon.js +0 -42
- package/lib/module/components/RowHeadlineImageIcon.js.map +0 -1
- package/lib/module/components/StepIndicator.js +0 -378
- package/lib/module/components/StepIndicator.js.map +0 -1
- package/lib/module/components/TabView/TabView.js +0 -80
- package/lib/module/components/TabView/TabView.js.map +0 -1
- package/lib/module/components/TabView/TabViewItem.js +0 -18
- package/lib/module/components/TabView/TabViewItem.js.map +0 -1
- package/lib/module/components/TabView/index.js +0 -3
- package/lib/module/components/TabView/index.js.map +0 -1
- package/lib/module/components/ToggleButton.js +0 -62
- package/lib/module/components/ToggleButton.js.map +0 -1
- package/lib/module/components/Typography.js +0 -49
- package/lib/module/components/Typography.js.map +0 -1
- package/lib/module/components/useAuthState.js +0 -20
- package/lib/module/components/useAuthState.js.map +0 -1
- package/lib/module/mappings/AvatarEdit.js +0 -39
- package/lib/module/mappings/AvatarEdit.js.map +0 -1
- package/lib/module/mappings/Banner.js +0 -33
- package/lib/module/mappings/Banner.js.map +0 -1
- package/lib/module/mappings/Card.js +0 -54
- package/lib/module/mappings/Card.js.map +0 -1
- package/lib/module/mappings/CardBlock.js +0 -120
- package/lib/module/mappings/CardBlock.js.map +0 -1
- package/lib/module/mappings/CardContainer.js +0 -102
- package/lib/module/mappings/CardContainer.js.map +0 -1
- package/lib/module/mappings/CardContainerRating.js +0 -124
- package/lib/module/mappings/CardContainerRating.js.map +0 -1
- package/lib/module/mappings/CardContainerShortImage.js +0 -118
- package/lib/module/mappings/CardContainerShortImage.js.map +0 -1
- package/lib/module/mappings/CardInline.js +0 -53
- package/lib/module/mappings/CardInline.js.map +0 -1
- package/lib/module/mappings/Carousel.js +0 -18
- package/lib/module/mappings/Carousel.js.map +0 -1
- package/lib/module/mappings/CircleImage.js +0 -26
- package/lib/module/mappings/CircleImage.js.map +0 -1
- package/lib/module/mappings/Container.js +0 -31
- package/lib/module/mappings/Container.js.map +0 -1
- package/lib/module/mappings/Divider.js +0 -26
- package/lib/module/mappings/Divider.js.map +0 -1
- package/lib/module/mappings/FAB.js +0 -38
- package/lib/module/mappings/FAB.js.map +0 -1
- package/lib/module/mappings/FieldSearchBarFull.js +0 -50
- package/lib/module/mappings/FieldSearchBarFull.js.map +0 -1
- package/lib/module/mappings/HeaderLarge.js +0 -28
- package/lib/module/mappings/HeaderLarge.js.map +0 -1
- package/lib/module/mappings/HeaderMedium.js +0 -54
- package/lib/module/mappings/HeaderMedium.js.map +0 -1
- package/lib/module/mappings/HeaderOverline.js +0 -54
- package/lib/module/mappings/HeaderOverline.js.map +0 -1
- package/lib/module/mappings/ProgressBar.js +0 -100
- package/lib/module/mappings/ProgressBar.js.map +0 -1
- package/lib/module/mappings/ProgressCircle.js +0 -110
- package/lib/module/mappings/ProgressCircle.js.map +0 -1
- package/lib/module/mappings/ProgressIndicator.js +0 -182
- package/lib/module/mappings/ProgressIndicator.js.map +0 -1
- package/lib/module/mappings/RowBodyIcon.js +0 -73
- package/lib/module/mappings/RowBodyIcon.js.map +0 -1
- package/lib/module/mappings/RowHeadlineImageCaption.js +0 -163
- package/lib/module/mappings/RowHeadlineImageCaption.js.map +0 -1
- package/lib/module/mappings/RowHeadlineImageIcon.js +0 -93
- package/lib/module/mappings/RowHeadlineImageIcon.js.map +0 -1
- package/lib/module/mappings/TabView.js +0 -71
- package/lib/module/mappings/TabView.js.map +0 -1
- package/lib/module/mappings/ToggleButton.js +0 -47
- package/lib/module/mappings/ToggleButton.js.map +0 -1
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +0 -14
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +0 -1
- package/lib/typescript/src/components/AspectRatio.d.ts +0 -9
- package/lib/typescript/src/components/AspectRatio.d.ts.map +0 -1
- package/lib/typescript/src/components/AvatarEdit.d.ts +0 -16
- package/lib/typescript/src/components/AvatarEdit.d.ts.map +0 -1
- package/lib/typescript/src/components/Banner.d.ts +0 -23
- package/lib/typescript/src/components/Banner.d.ts.map +0 -1
- package/lib/typescript/src/components/Card.d.ts +0 -43
- package/lib/typescript/src/components/Card.d.ts.map +0 -1
- package/lib/typescript/src/components/CardBlock.d.ts +0 -21
- package/lib/typescript/src/components/CardBlock.d.ts.map +0 -1
- package/lib/typescript/src/components/CardContainer.d.ts +0 -23
- package/lib/typescript/src/components/CardContainer.d.ts.map +0 -1
- package/lib/typescript/src/components/CardContainerRating.d.ts +0 -24
- package/lib/typescript/src/components/CardContainerRating.d.ts.map +0 -1
- package/lib/typescript/src/components/CardContainerShortImage.d.ts +0 -19
- package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +0 -1
- package/lib/typescript/src/components/CardInline.d.ts +0 -20
- package/lib/typescript/src/components/CardInline.d.ts.map +0 -1
- package/lib/typescript/src/components/Carousel.d.ts +0 -15
- package/lib/typescript/src/components/Carousel.d.ts.map +0 -1
- package/lib/typescript/src/components/CircleImage.d.ts +0 -10
- package/lib/typescript/src/components/CircleImage.d.ts.map +0 -1
- package/lib/typescript/src/components/CircularProgress.d.ts +0 -43
- package/lib/typescript/src/components/CircularProgress.d.ts.map +0 -1
- package/lib/typescript/src/components/Container.d.ts +0 -21
- package/lib/typescript/src/components/Container.d.ts.map +0 -1
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +0 -15
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +0 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +0 -56
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +0 -1
- package/lib/typescript/src/components/Divider.d.ts +0 -13
- package/lib/typescript/src/components/Divider.d.ts.map +0 -1
- package/lib/typescript/src/components/FAB.d.ts +0 -20
- package/lib/typescript/src/components/FAB.d.ts.map +0 -1
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts +0 -20
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +0 -1
- package/lib/typescript/src/components/Header.d.ts +0 -20
- package/lib/typescript/src/components/Header.d.ts.map +0 -1
- package/lib/typescript/src/components/HeaderLarge.d.ts +0 -17
- package/lib/typescript/src/components/HeaderLarge.d.ts.map +0 -1
- package/lib/typescript/src/components/HeaderMedium.d.ts +0 -17
- package/lib/typescript/src/components/HeaderMedium.d.ts.map +0 -1
- package/lib/typescript/src/components/HeaderOverline.d.ts +0 -17
- package/lib/typescript/src/components/HeaderOverline.d.ts.map +0 -1
- package/lib/typescript/src/components/Image.d.ts +0 -5
- package/lib/typescript/src/components/Image.d.ts.map +0 -1
- package/lib/typescript/src/components/Justification.d.ts +0 -2
- package/lib/typescript/src/components/Justification.d.ts.map +0 -1
- package/lib/typescript/src/components/ProgressBar.d.ts +0 -35
- package/lib/typescript/src/components/ProgressBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ProgressCircle.d.ts +0 -21
- package/lib/typescript/src/components/ProgressCircle.d.ts.map +0 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts +0 -24
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/src/components/ResizeMode.d.ts +0 -2
- package/lib/typescript/src/components/ResizeMode.d.ts.map +0 -1
- package/lib/typescript/src/components/Row.d.ts +0 -21
- package/lib/typescript/src/components/Row.d.ts.map +0 -1
- package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/StepIndicator.d.ts +0 -54
- package/lib/typescript/src/components/StepIndicator.d.ts.map +0 -1
- package/lib/typescript/src/components/TabView/TabView.d.ts +0 -20
- package/lib/typescript/src/components/TabView/TabView.d.ts.map +0 -1
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -11
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +0 -1
- package/lib/typescript/src/components/TabView/index.d.ts +0 -3
- package/lib/typescript/src/components/TabView/index.d.ts.map +0 -1
- package/lib/typescript/src/components/ToggleButton.d.ts +0 -25
- package/lib/typescript/src/components/ToggleButton.d.ts.map +0 -1
- package/lib/typescript/src/components/Typography.d.ts +0 -22
- package/lib/typescript/src/components/Typography.d.ts.map +0 -1
- package/lib/typescript/src/components/useAuthState.d.ts +0 -2
- package/lib/typescript/src/components/useAuthState.d.ts.map +0 -1
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +0 -38
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Banner.d.ts +0 -49
- package/lib/typescript/src/mappings/Banner.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Card.d.ts +0 -114
- package/lib/typescript/src/mappings/Card.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardBlock.d.ts +0 -289
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainer.d.ts +0 -102
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +0 -108
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +0 -139
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardInline.d.ts +0 -62
- package/lib/typescript/src/mappings/CardInline.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Carousel.d.ts +0 -34
- package/lib/typescript/src/mappings/Carousel.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CircleImage.d.ts +0 -34
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Container.d.ts +0 -55
- package/lib/typescript/src/mappings/Container.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Divider.d.ts +0 -25
- package/lib/typescript/src/mappings/Divider.d.ts.map +0 -1
- package/lib/typescript/src/mappings/FAB.d.ts +0 -83
- package/lib/typescript/src/mappings/FAB.d.ts.map +0 -1
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +0 -56
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +0 -34
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +0 -53
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +0 -53
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressBar.d.ts +0 -99
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +0 -109
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +0 -181
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +0 -73
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +0 -166
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +0 -170
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +0 -1
- package/lib/typescript/src/mappings/TabView.d.ts +0 -112
- package/lib/typescript/src/mappings/TabView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ToggleButton.d.ts +0 -116
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +0 -1
- package/src/components/AnimatedCircularProgress.js +0 -43
- package/src/components/AnimatedCircularProgress.tsx +0 -101
- package/src/components/AspectRatio.js +0 -18
- package/src/components/AspectRatio.tsx +0 -40
- package/src/components/AvatarEdit.js +0 -30
- package/src/components/AvatarEdit.tsx +0 -64
- package/src/components/Banner.js +0 -109
- package/src/components/Banner.tsx +0 -204
- package/src/components/Card.js +0 -57
- package/src/components/Card.tsx +0 -161
- package/src/components/CardBlock.js +0 -54
- package/src/components/CardBlock.tsx +0 -127
- package/src/components/CardContainer.js +0 -69
- package/src/components/CardContainer.tsx +0 -165
- package/src/components/CardContainerRating.js +0 -79
- package/src/components/CardContainerRating.tsx +0 -175
- package/src/components/CardContainerShortImage.js +0 -33
- package/src/components/CardContainerShortImage.tsx +0 -101
- package/src/components/CardInline.js +0 -36
- package/src/components/CardInline.tsx +0 -93
- package/src/components/Carousel.js +0 -68
- package/src/components/Carousel.tsx +0 -134
- package/src/components/CircleImage.js +0 -8
- package/src/components/CircleImage.tsx +0 -33
- package/src/components/CircularProgress.js +0 -81
- package/src/components/CircularProgress.tsx +0 -188
- package/src/components/Container.js +0 -43
- package/src/components/Container.tsx +0 -116
- package/src/components/DeprecatedCardWrapper.js +0 -18
- package/src/components/DeprecatedCardWrapper.tsx +0 -46
- package/src/components/DeprecatedFAB.js +0 -115
- package/src/components/DeprecatedFAB.tsx +0 -231
- package/src/components/Divider.js +0 -13
- package/src/components/Divider.tsx +0 -32
- package/src/components/FAB.js +0 -46
- package/src/components/FAB.tsx +0 -108
- package/src/components/FieldSearchBarFull.js +0 -53
- package/src/components/FieldSearchBarFull.tsx +0 -126
- package/src/components/Header.js +0 -44
- package/src/components/Header.tsx +0 -105
- package/src/components/HeaderLarge.js +0 -7
- package/src/components/HeaderLarge.tsx +0 -40
- package/src/components/HeaderMedium.js +0 -7
- package/src/components/HeaderMedium.tsx +0 -41
- package/src/components/HeaderOverline.js +0 -7
- package/src/components/HeaderOverline.tsx +0 -42
- package/src/components/Image.js +0 -47
- package/src/components/Image.tsx +0 -91
- package/src/components/Justification.js +0 -1
- package/src/components/Justification.ts +0 -8
- package/src/components/ProgressBar.js +0 -118
- package/src/components/ProgressBar.tsx +0 -191
- package/src/components/ProgressCircle.js +0 -13
- package/src/components/ProgressCircle.tsx +0 -64
- package/src/components/ProgressIndicator.js +0 -27
- package/src/components/ProgressIndicator.tsx +0 -71
- package/src/components/ResizeMode.js +0 -1
- package/src/components/ResizeMode.ts +0 -7
- package/src/components/Row.js +0 -48
- package/src/components/Row.tsx +0 -108
- package/src/components/RowBodyIcon.js +0 -8
- package/src/components/RowBodyIcon.tsx +0 -47
- package/src/components/RowHeadlineImageCaption.js +0 -12
- package/src/components/RowHeadlineImageCaption.tsx +0 -49
- package/src/components/RowHeadlineImageIcon.js +0 -14
- package/src/components/RowHeadlineImageIcon.tsx +0 -61
- package/src/components/StepIndicator.js +0 -346
- package/src/components/StepIndicator.tsx +0 -494
- package/src/components/TabView/TabView.js +0 -34
- package/src/components/TabView/TabView.tsx +0 -97
- package/src/components/TabView/TabViewItem.js +0 -5
- package/src/components/TabView/TabViewItem.tsx +0 -21
- package/src/components/TabView/index.js +0 -2
- package/src/components/TabView/index.tsx +0 -2
- package/src/components/ToggleButton.js +0 -39
- package/src/components/ToggleButton.tsx +0 -94
- package/src/components/Typography.js +0 -36
- package/src/components/Typography.tsx +0 -67
- package/src/components/useAuthState.js +0 -31
- package/src/components/useAuthState.tsx +0 -38
- package/src/mappings/AvatarEdit.js +0 -38
- package/src/mappings/AvatarEdit.ts +0 -45
- package/src/mappings/Banner.js +0 -32
- package/src/mappings/Banner.ts +0 -40
- package/src/mappings/Card.js +0 -52
- package/src/mappings/Card.ts +0 -64
- package/src/mappings/CardBlock.js +0 -123
- package/src/mappings/CardBlock.ts +0 -136
- package/src/mappings/CardContainer.js +0 -104
- package/src/mappings/CardContainer.ts +0 -116
- package/src/mappings/CardContainerRating.js +0 -126
- package/src/mappings/CardContainerRating.ts +0 -137
- package/src/mappings/CardContainerShortImage.js +0 -120
- package/src/mappings/CardContainerShortImage.ts +0 -130
- package/src/mappings/CardInline.js +0 -52
- package/src/mappings/CardInline.ts +0 -61
- package/src/mappings/Carousel.js +0 -19
- package/src/mappings/Carousel.ts +0 -25
- package/src/mappings/CircleImage.js +0 -25
- package/src/mappings/CircleImage.ts +0 -33
- package/src/mappings/Container.js +0 -30
- package/src/mappings/Container.ts +0 -41
- package/src/mappings/Divider.js +0 -27
- package/src/mappings/Divider.ts +0 -34
- package/src/mappings/FAB.js +0 -37
- package/src/mappings/FAB.ts +0 -48
- package/src/mappings/FieldSearchBarFull.js +0 -50
- package/src/mappings/FieldSearchBarFull.ts +0 -59
- package/src/mappings/HeaderLarge.js +0 -29
- package/src/mappings/HeaderLarge.ts +0 -38
- package/src/mappings/HeaderMedium.js +0 -55
- package/src/mappings/HeaderMedium.ts +0 -63
- package/src/mappings/HeaderOverline.js +0 -55
- package/src/mappings/HeaderOverline.ts +0 -63
- package/src/mappings/ProgressBar.js +0 -101
- package/src/mappings/ProgressBar.ts +0 -110
- package/src/mappings/ProgressCircle.js +0 -109
- package/src/mappings/ProgressCircle.ts +0 -117
- package/src/mappings/ProgressIndicator.js +0 -181
- package/src/mappings/ProgressIndicator.ts +0 -190
- package/src/mappings/RowBodyIcon.js +0 -75
- package/src/mappings/RowBodyIcon.ts +0 -82
- package/src/mappings/RowHeadlineImageCaption.js +0 -167
- package/src/mappings/RowHeadlineImageCaption.ts +0 -178
- package/src/mappings/RowHeadlineImageIcon.js +0 -99
- package/src/mappings/RowHeadlineImageIcon.ts +0 -116
- package/src/mappings/TabView.js +0 -73
- package/src/mappings/TabView.ts +0 -80
- package/src/mappings/ToggleButton.js +0 -50
- package/src/mappings/ToggleButton.ts +0 -63
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
View,
|
|
4
|
-
Text,
|
|
5
|
-
ImageSourcePropType,
|
|
6
|
-
StyleProp,
|
|
7
|
-
ViewStyle,
|
|
8
|
-
} from "react-native";
|
|
9
|
-
import Image from "./Image";
|
|
10
|
-
import Card from "./DeprecatedCardWrapper";
|
|
11
|
-
import Elevation from "./Elevation";
|
|
12
|
-
import { withTheme } from "../theming";
|
|
13
|
-
import Config from "./Config";
|
|
14
|
-
import theme from "../styles/DefaultTheme";
|
|
15
|
-
|
|
16
|
-
type Props = {
|
|
17
|
-
image?: string | ImageSourcePropType;
|
|
18
|
-
title?: string;
|
|
19
|
-
subtitle?: string;
|
|
20
|
-
mode?: "right" | "left";
|
|
21
|
-
aspectRatio?: number;
|
|
22
|
-
elevation?: number;
|
|
23
|
-
theme: typeof theme;
|
|
24
|
-
style?: StyleProp<ViewStyle>;
|
|
25
|
-
onPress: () => void;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const CardContainerShortImage: React.FC<React.PropsWithChildren<Props>> = ({
|
|
29
|
-
image = Config.squareImageUrl,
|
|
30
|
-
title,
|
|
31
|
-
subtitle,
|
|
32
|
-
mode = "left",
|
|
33
|
-
aspectRatio = 1,
|
|
34
|
-
elevation = 2,
|
|
35
|
-
theme: { colors, roundness, typography },
|
|
36
|
-
style,
|
|
37
|
-
onPress,
|
|
38
|
-
...rest
|
|
39
|
-
}) => {
|
|
40
|
-
return (
|
|
41
|
-
<Card style={style} onPress={onPress} {...rest}>
|
|
42
|
-
<Elevation
|
|
43
|
-
style={{
|
|
44
|
-
elevation,
|
|
45
|
-
borderRadius: roundness,
|
|
46
|
-
}}
|
|
47
|
-
>
|
|
48
|
-
<View
|
|
49
|
-
style={{
|
|
50
|
-
overflow: "hidden",
|
|
51
|
-
flexDirection: "row",
|
|
52
|
-
justifyContent: mode === "right" ? "space-between" : "flex-start",
|
|
53
|
-
borderRadius: roundness,
|
|
54
|
-
}}
|
|
55
|
-
>
|
|
56
|
-
{mode === "left" && (
|
|
57
|
-
<Image
|
|
58
|
-
style={{ aspectRatio }}
|
|
59
|
-
source={typeof image === "string" ? { uri: image } : image}
|
|
60
|
-
resizeMode="cover"
|
|
61
|
-
/>
|
|
62
|
-
)}
|
|
63
|
-
<View
|
|
64
|
-
style={{
|
|
65
|
-
padding: 16,
|
|
66
|
-
backgroundColor: colors.surface,
|
|
67
|
-
flex: 1,
|
|
68
|
-
}}
|
|
69
|
-
>
|
|
70
|
-
<Text
|
|
71
|
-
numberOfLines={1}
|
|
72
|
-
style={[typography.headline5, { color: colors.strong }]}
|
|
73
|
-
>
|
|
74
|
-
{title}
|
|
75
|
-
</Text>
|
|
76
|
-
{subtitle ? (
|
|
77
|
-
<Text
|
|
78
|
-
numberOfLines={1}
|
|
79
|
-
style={[
|
|
80
|
-
typography.body2,
|
|
81
|
-
{ color: colors.medium, marginTop: 4 },
|
|
82
|
-
]}
|
|
83
|
-
>
|
|
84
|
-
{subtitle}
|
|
85
|
-
</Text>
|
|
86
|
-
) : null}
|
|
87
|
-
</View>
|
|
88
|
-
{mode === "right" && (
|
|
89
|
-
<Image
|
|
90
|
-
style={{ aspectRatio }}
|
|
91
|
-
source={typeof image === "string" ? { uri: image } : image}
|
|
92
|
-
resizeMode="cover"
|
|
93
|
-
/>
|
|
94
|
-
)}
|
|
95
|
-
</View>
|
|
96
|
-
</Elevation>
|
|
97
|
-
</Card>
|
|
98
|
-
);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export default withTheme(CardContainerShortImage);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Pressable, View, StyleSheet, } from "react-native";
|
|
4
|
-
import { Title, Subtitle } from "./Typography";
|
|
5
|
-
import Image from "./Image";
|
|
6
|
-
import Surface from "./Surface";
|
|
7
|
-
import Config from "./Config";
|
|
8
|
-
import { withTheme } from "../theming";
|
|
9
|
-
const CardInline = ({ image = Config.cardImageUrl, title, subtitle, aspectRatio = 1.5, elevation = 2, style, titleStyle, subtitleStyle, onPress, }) => {
|
|
10
|
-
const { alignItems, justifyContent, width, height } = StyleSheet.flatten(style || {});
|
|
11
|
-
const imageStyles = width && height ? { width, height } : { aspectRatio };
|
|
12
|
-
return (React.createElement(Surface, { style: [{ elevation }, style] },
|
|
13
|
-
React.createElement(Pressable, { disabled: !onPress, onPress: onPress, style: ({ pressed }) => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
opacity: pressed ? 0.8 : 1,
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
} },
|
|
20
|
-
React.createElement(Image, { style: imageStyles, source: typeof image === "string" ? { uri: image } : image, resizeMode: "cover" }),
|
|
21
|
-
React.createElement(View, { style: [styles.overlay, { justifyContent, alignItems }] },
|
|
22
|
-
title ? (React.createElement(Title, { style: [{ color: "white" }, titleStyle], text: title })) : null,
|
|
23
|
-
subtitle ? (React.createElement(Subtitle, { style: [{ color: "rgba(255, 255, 255, 0.7)" }, subtitleStyle], text: subtitle })) : null))));
|
|
24
|
-
};
|
|
25
|
-
const styles = StyleSheet.create({
|
|
26
|
-
overlay: {
|
|
27
|
-
position: "absolute",
|
|
28
|
-
top: 0,
|
|
29
|
-
bottom: 0,
|
|
30
|
-
left: 0,
|
|
31
|
-
right: 0,
|
|
32
|
-
padding: 16,
|
|
33
|
-
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
export default withTheme(CardInline);
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
Pressable,
|
|
5
|
-
View,
|
|
6
|
-
ImageSourcePropType,
|
|
7
|
-
StyleProp,
|
|
8
|
-
ViewStyle,
|
|
9
|
-
TextStyle,
|
|
10
|
-
StyleSheet,
|
|
11
|
-
} from "react-native";
|
|
12
|
-
import { Title, Subtitle } from "./Typography";
|
|
13
|
-
import Image from "./Image";
|
|
14
|
-
import Surface from "./Surface";
|
|
15
|
-
import Config from "./Config";
|
|
16
|
-
import { withTheme } from "../theming";
|
|
17
|
-
import theme from "../styles/DefaultTheme";
|
|
18
|
-
|
|
19
|
-
type Props = {
|
|
20
|
-
image?: string | ImageSourcePropType;
|
|
21
|
-
title?: string;
|
|
22
|
-
subtitle?: string;
|
|
23
|
-
aspectRatio?: number;
|
|
24
|
-
elevation?: number;
|
|
25
|
-
theme: typeof theme;
|
|
26
|
-
style?: StyleProp<ViewStyle>;
|
|
27
|
-
titleStyle?: StyleProp<TextStyle>;
|
|
28
|
-
subtitleStyle?: StyleProp<TextStyle>;
|
|
29
|
-
onPress: () => void;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const CardInline: React.FC<React.PropsWithChildren<Props>> = ({
|
|
33
|
-
image = Config.cardImageUrl,
|
|
34
|
-
title,
|
|
35
|
-
subtitle,
|
|
36
|
-
aspectRatio = 1.5,
|
|
37
|
-
elevation = 2,
|
|
38
|
-
style,
|
|
39
|
-
titleStyle,
|
|
40
|
-
subtitleStyle,
|
|
41
|
-
onPress,
|
|
42
|
-
}) => {
|
|
43
|
-
const { alignItems, justifyContent, width, height } = StyleSheet.flatten(
|
|
44
|
-
style || {}
|
|
45
|
-
);
|
|
46
|
-
const imageStyles = width && height ? { width, height } : { aspectRatio };
|
|
47
|
-
return (
|
|
48
|
-
<Surface style={[{ elevation }, style]}>
|
|
49
|
-
<Pressable
|
|
50
|
-
disabled={!onPress}
|
|
51
|
-
onPress={onPress}
|
|
52
|
-
style={({ pressed }) => {
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
opacity: pressed ? 0.8 : 1,
|
|
56
|
-
},
|
|
57
|
-
];
|
|
58
|
-
}}
|
|
59
|
-
>
|
|
60
|
-
<Image
|
|
61
|
-
style={imageStyles}
|
|
62
|
-
source={typeof image === "string" ? { uri: image } : image}
|
|
63
|
-
resizeMode="cover"
|
|
64
|
-
/>
|
|
65
|
-
<View style={[styles.overlay, { justifyContent, alignItems }]}>
|
|
66
|
-
{title ? (
|
|
67
|
-
<Title style={[{ color: "white" }, titleStyle]} text={title} />
|
|
68
|
-
) : null}
|
|
69
|
-
{subtitle ? (
|
|
70
|
-
<Subtitle
|
|
71
|
-
style={[{ color: "rgba(255, 255, 255, 0.7)" }, subtitleStyle]}
|
|
72
|
-
text={subtitle}
|
|
73
|
-
/>
|
|
74
|
-
) : null}
|
|
75
|
-
</View>
|
|
76
|
-
</Pressable>
|
|
77
|
-
</Surface>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const styles = StyleSheet.create({
|
|
82
|
-
overlay: {
|
|
83
|
-
position: "absolute",
|
|
84
|
-
top: 0,
|
|
85
|
-
bottom: 0,
|
|
86
|
-
left: 0,
|
|
87
|
-
right: 0,
|
|
88
|
-
padding: 16,
|
|
89
|
-
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
90
|
-
},
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
export default withTheme(CardInline);
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { withTheme } from "../theming";
|
|
3
|
-
import { ScrollView, View, StyleSheet, Dimensions, } from "react-native";
|
|
4
|
-
import Image from "./Image";
|
|
5
|
-
const screenWidth = Dimensions.get("window").width;
|
|
6
|
-
function Pager({ color, index, length, }) {
|
|
7
|
-
return (React.createElement(View, { style: styles.pager }, Array.from({ length }).map((_, i) => {
|
|
8
|
-
const current = index === i;
|
|
9
|
-
const opacity = current ? 1 : 0.5;
|
|
10
|
-
const size = current ? 10 : 8;
|
|
11
|
-
return (React.createElement(View, { key: i, style: [
|
|
12
|
-
styles.bullet,
|
|
13
|
-
{ backgroundColor: color, opacity, width: size, height: size },
|
|
14
|
-
] }));
|
|
15
|
-
})));
|
|
16
|
-
}
|
|
17
|
-
function Carousel({ data, children, dotColor = "strong", style, ...rest }) {
|
|
18
|
-
var _a;
|
|
19
|
-
const [index, setIndex] = React.useState(0);
|
|
20
|
-
const length = React.Children.count(children);
|
|
21
|
-
const itemsLength = ((_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0) + length;
|
|
22
|
-
const slides = Array.isArray(data) ? data : [];
|
|
23
|
-
const { width, height } = StyleSheet.flatten(style || {});
|
|
24
|
-
const slideWidth = width || screenWidth;
|
|
25
|
-
const slideHeight = height || 250;
|
|
26
|
-
return (React.createElement(View, { style: [styles.container, style], ...rest },
|
|
27
|
-
React.createElement(ScrollView, { pagingEnabled: true, horizontal: true, decelerationRate: "fast", scrollEventThrottle: 200, showsHorizontalScrollIndicator: false, onScroll: ({ nativeEvent }) => {
|
|
28
|
-
const layoutWidth = nativeEvent.layoutMeasurement.width;
|
|
29
|
-
const offset = nativeEvent.contentOffset.x;
|
|
30
|
-
const currentIndex = Math.ceil(offset / layoutWidth);
|
|
31
|
-
setIndex(currentIndex);
|
|
32
|
-
} },
|
|
33
|
-
slides.length > 0
|
|
34
|
-
? slides.map((item, i) => {
|
|
35
|
-
return (React.createElement(Image, { key: i, resizeMode: "cover", source: typeof item === "string" ? { uri: item } : item, style: [{ width: slideWidth, height: slideHeight }] }));
|
|
36
|
-
})
|
|
37
|
-
: null,
|
|
38
|
-
React.Children.map(children, (child) => {
|
|
39
|
-
var _a;
|
|
40
|
-
const s = ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
41
|
-
return (React.createElement(View, { style: { width: slideWidth } }, React.cloneElement(child, {
|
|
42
|
-
style: { ...s, width: slideWidth },
|
|
43
|
-
})));
|
|
44
|
-
})),
|
|
45
|
-
React.createElement(Pager, { color: dotColor, index: index, length: itemsLength })));
|
|
46
|
-
}
|
|
47
|
-
const styles = StyleSheet.create({
|
|
48
|
-
container: {
|
|
49
|
-
backgroundColor: "#eee",
|
|
50
|
-
},
|
|
51
|
-
pager: {
|
|
52
|
-
position: "absolute",
|
|
53
|
-
bottom: 12,
|
|
54
|
-
left: 0,
|
|
55
|
-
right: 0,
|
|
56
|
-
flexDirection: "row",
|
|
57
|
-
justifyContent: "center",
|
|
58
|
-
alignItems: "center",
|
|
59
|
-
},
|
|
60
|
-
bullet: {
|
|
61
|
-
marginHorizontal: 2,
|
|
62
|
-
width: 10,
|
|
63
|
-
height: 10,
|
|
64
|
-
borderRadius: 20,
|
|
65
|
-
backgroundColor: "#000",
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
export default withTheme(Carousel);
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { withTheme } from "../theming";
|
|
3
|
-
import {
|
|
4
|
-
ScrollView,
|
|
5
|
-
View,
|
|
6
|
-
StyleSheet,
|
|
7
|
-
Dimensions,
|
|
8
|
-
StyleProp,
|
|
9
|
-
ViewStyle,
|
|
10
|
-
} from "react-native";
|
|
11
|
-
import Image from "./Image";
|
|
12
|
-
|
|
13
|
-
const screenWidth = Dimensions.get("window").width;
|
|
14
|
-
|
|
15
|
-
type Props = {
|
|
16
|
-
data?: any[];
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
style?: StyleProp<ViewStyle>;
|
|
19
|
-
dotColor?: string;
|
|
20
|
-
theme: any;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
function Pager({
|
|
24
|
-
color,
|
|
25
|
-
index,
|
|
26
|
-
length,
|
|
27
|
-
}: {
|
|
28
|
-
color: string;
|
|
29
|
-
index: number;
|
|
30
|
-
length: number;
|
|
31
|
-
}) {
|
|
32
|
-
return (
|
|
33
|
-
<View style={styles.pager}>
|
|
34
|
-
{Array.from({ length }).map((_, i) => {
|
|
35
|
-
const current = index === i;
|
|
36
|
-
const opacity = current ? 1 : 0.5;
|
|
37
|
-
const size = current ? 10 : 8;
|
|
38
|
-
return (
|
|
39
|
-
<View
|
|
40
|
-
key={i}
|
|
41
|
-
style={[
|
|
42
|
-
styles.bullet,
|
|
43
|
-
{ backgroundColor: color, opacity, width: size, height: size },
|
|
44
|
-
]}
|
|
45
|
-
/>
|
|
46
|
-
);
|
|
47
|
-
})}
|
|
48
|
-
</View>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function Carousel({
|
|
53
|
-
data,
|
|
54
|
-
children,
|
|
55
|
-
dotColor = "strong",
|
|
56
|
-
style,
|
|
57
|
-
...rest
|
|
58
|
-
}: React.PropsWithChildren<Props>) {
|
|
59
|
-
const [index, setIndex] = React.useState(0);
|
|
60
|
-
|
|
61
|
-
const length = React.Children.count(children);
|
|
62
|
-
const itemsLength = (data?.length ?? 0) + length;
|
|
63
|
-
const slides = Array.isArray(data) ? data : [];
|
|
64
|
-
|
|
65
|
-
const { width, height } = StyleSheet.flatten(style || {});
|
|
66
|
-
const slideWidth = width || screenWidth;
|
|
67
|
-
const slideHeight = height || 250;
|
|
68
|
-
|
|
69
|
-
return (
|
|
70
|
-
<View style={[styles.container, style]} {...rest}>
|
|
71
|
-
<ScrollView
|
|
72
|
-
pagingEnabled
|
|
73
|
-
horizontal
|
|
74
|
-
decelerationRate="fast"
|
|
75
|
-
scrollEventThrottle={200}
|
|
76
|
-
showsHorizontalScrollIndicator={false}
|
|
77
|
-
onScroll={({ nativeEvent }) => {
|
|
78
|
-
const layoutWidth = nativeEvent.layoutMeasurement.width;
|
|
79
|
-
const offset = nativeEvent.contentOffset.x;
|
|
80
|
-
const currentIndex = Math.ceil(offset / layoutWidth);
|
|
81
|
-
setIndex(currentIndex);
|
|
82
|
-
}}
|
|
83
|
-
>
|
|
84
|
-
{slides.length > 0
|
|
85
|
-
? slides.map((item, i) => {
|
|
86
|
-
return (
|
|
87
|
-
<Image
|
|
88
|
-
key={i}
|
|
89
|
-
resizeMode="cover"
|
|
90
|
-
source={typeof item === "string" ? { uri: item } : item}
|
|
91
|
-
style={[{ width: slideWidth, height: slideHeight }]}
|
|
92
|
-
/>
|
|
93
|
-
);
|
|
94
|
-
})
|
|
95
|
-
: null}
|
|
96
|
-
{React.Children.map(children, (child: any) => {
|
|
97
|
-
const s = child?.props?.style || {};
|
|
98
|
-
return (
|
|
99
|
-
<View style={{ width: slideWidth }}>
|
|
100
|
-
{React.cloneElement(child, {
|
|
101
|
-
style: { ...s, width: slideWidth },
|
|
102
|
-
})}
|
|
103
|
-
</View>
|
|
104
|
-
);
|
|
105
|
-
})}
|
|
106
|
-
</ScrollView>
|
|
107
|
-
<Pager color={dotColor} index={index} length={itemsLength} />
|
|
108
|
-
</View>
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const styles = StyleSheet.create({
|
|
113
|
-
container: {
|
|
114
|
-
backgroundColor: "#eee",
|
|
115
|
-
},
|
|
116
|
-
pager: {
|
|
117
|
-
position: "absolute",
|
|
118
|
-
bottom: 12,
|
|
119
|
-
left: 0,
|
|
120
|
-
right: 0,
|
|
121
|
-
flexDirection: "row",
|
|
122
|
-
justifyContent: "center",
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
},
|
|
125
|
-
bullet: {
|
|
126
|
-
marginHorizontal: 2,
|
|
127
|
-
width: 10,
|
|
128
|
-
height: 10,
|
|
129
|
-
borderRadius: 20,
|
|
130
|
-
backgroundColor: "#000",
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
export default withTheme(Carousel);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Image, } from "react-native";
|
|
3
|
-
import Config from "./Config";
|
|
4
|
-
const CircleImage = ({ source = Config.placeholderImageURL, size = 60, style, ...props }) => {
|
|
5
|
-
const borderRadius = size / 2;
|
|
6
|
-
return (React.createElement(Image, { style: [{ width: size, height: size, borderRadius }, style], source: typeof source === "string" ? { uri: source } : source, resizeMode: "cover", ...props }));
|
|
7
|
-
};
|
|
8
|
-
export default CircleImage;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
Image,
|
|
4
|
-
ImageSourcePropType,
|
|
5
|
-
StyleProp,
|
|
6
|
-
ImageStyle,
|
|
7
|
-
} from "react-native";
|
|
8
|
-
import Config from "./Config";
|
|
9
|
-
interface Props {
|
|
10
|
-
source?: string | ImageSourcePropType;
|
|
11
|
-
size?: number;
|
|
12
|
-
style?: StyleProp<ImageStyle>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const CircleImage: React.FC<React.PropsWithChildren<Props>> = ({
|
|
16
|
-
source = Config.placeholderImageURL,
|
|
17
|
-
size = 60,
|
|
18
|
-
style,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
const borderRadius = size / 2;
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<Image
|
|
25
|
-
style={[{ width: size, height: size, borderRadius }, style]}
|
|
26
|
-
source={typeof source === "string" ? { uri: source } : source}
|
|
27
|
-
resizeMode="cover"
|
|
28
|
-
{...props}
|
|
29
|
-
/>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default CircleImage;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import { Svg, Path, G } from "react-native-svg";
|
|
4
|
-
class CircularProgress extends React.Component {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {
|
|
8
|
-
var angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0;
|
|
9
|
-
return {
|
|
10
|
-
x: centerX + radius * Math.cos(angleInRadians),
|
|
11
|
-
y: centerY + radius * Math.sin(angleInRadians),
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
this.circlePath = (x, y, radius, startAngle, endAngle) => {
|
|
15
|
-
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
16
|
-
var end = this.polarToCartesian(x, y, radius, startAngle);
|
|
17
|
-
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
|
|
18
|
-
var d = [
|
|
19
|
-
"M",
|
|
20
|
-
start.x,
|
|
21
|
-
start.y,
|
|
22
|
-
"A",
|
|
23
|
-
radius,
|
|
24
|
-
radius,
|
|
25
|
-
0,
|
|
26
|
-
largeArcFlag,
|
|
27
|
-
0,
|
|
28
|
-
end.x,
|
|
29
|
-
end.y,
|
|
30
|
-
];
|
|
31
|
-
return d.join(" ");
|
|
32
|
-
};
|
|
33
|
-
this.clampFill = (fill) => Math.min(100, Math.max(0, fill));
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
const { size, width, backgroundWidth, tintColor = "black", tintTransparency = true, backgroundColor, style, rotation = 90, lineCap = "butt", arcSweepAngle = 360, fill, children, childrenContainerStyle, padding = 0, renderCap, dashedBackground = { width: 0, gap: 0 }, dashedTint = { width: 0, gap: 0 }, } = this.props;
|
|
37
|
-
const maxWidthCircle = backgroundWidth
|
|
38
|
-
? Math.max(width, backgroundWidth)
|
|
39
|
-
: width;
|
|
40
|
-
const sizeWithPadding = size / 2 + padding / 2;
|
|
41
|
-
const radius = size / 2 - maxWidthCircle / 2 - padding / 2;
|
|
42
|
-
const currentFillAngle = (arcSweepAngle * this.clampFill(fill)) / 100;
|
|
43
|
-
const backgroundPath = this.circlePath(sizeWithPadding, sizeWithPadding, radius, tintTransparency ? 0 : currentFillAngle, arcSweepAngle);
|
|
44
|
-
const circlePathItem = this.circlePath(sizeWithPadding, sizeWithPadding, radius, 0, currentFillAngle);
|
|
45
|
-
const coordinate = this.polarToCartesian(sizeWithPadding, sizeWithPadding, radius, currentFillAngle);
|
|
46
|
-
const cap = renderCap ? renderCap({ center: coordinate }) : null;
|
|
47
|
-
const offset = size - maxWidthCircle * 2;
|
|
48
|
-
const localChildrenContainerStyle = [
|
|
49
|
-
{
|
|
50
|
-
position: "absolute",
|
|
51
|
-
left: maxWidthCircle + padding / 2,
|
|
52
|
-
top: maxWidthCircle + padding / 2,
|
|
53
|
-
width: offset,
|
|
54
|
-
height: offset,
|
|
55
|
-
borderRadius: offset / 2,
|
|
56
|
-
alignItems: "center",
|
|
57
|
-
justifyContent: "center",
|
|
58
|
-
overflow: "hidden",
|
|
59
|
-
},
|
|
60
|
-
childrenContainerStyle,
|
|
61
|
-
];
|
|
62
|
-
const strokeDasharrayTint = dashedTint.gap > 0
|
|
63
|
-
? Object.values(dashedTint)
|
|
64
|
-
.map((value) => value.toString())
|
|
65
|
-
.join(" ")
|
|
66
|
-
: "";
|
|
67
|
-
const strokeDasharrayBackground = dashedBackground.gap > 0
|
|
68
|
-
? Object.values(dashedBackground)
|
|
69
|
-
.map((value) => value.toString())
|
|
70
|
-
.join(" ")
|
|
71
|
-
: "";
|
|
72
|
-
return (React.createElement(View, { style: style },
|
|
73
|
-
React.createElement(Svg, { width: size + padding, height: size + padding },
|
|
74
|
-
React.createElement(G, { rotation: rotation, originX: (size + padding) / 2, originY: (size + padding) / 2 },
|
|
75
|
-
backgroundColor && (React.createElement(Path, { d: backgroundPath, stroke: backgroundColor, strokeWidth: backgroundWidth || width, strokeLinecap: lineCap, strokeDasharray: strokeDasharrayBackground, fill: "transparent" })),
|
|
76
|
-
fill > 0 && (React.createElement(Path, { d: circlePathItem, stroke: tintColor, strokeWidth: width, strokeLinecap: lineCap, strokeDasharray: strokeDasharrayTint, fill: "transparent" })),
|
|
77
|
-
cap)),
|
|
78
|
-
children && (React.createElement(View, { style: localChildrenContainerStyle }, children(fill)))));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export default CircularProgress;
|