@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,158 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Button, Text, View, StyleSheet, Animated } from "react-native";
|
|
4
|
-
import Surface from "./Surface";
|
|
5
|
-
import shadow from "../styles/shadow";
|
|
6
|
-
import { withTheme } from "../theming";
|
|
7
|
-
const ELEVATION = 1;
|
|
8
|
-
const DEFAULT_MAX_WIDTH = 960;
|
|
9
|
-
const Banner = _ref => {
|
|
10
|
-
let {
|
|
11
|
-
initiallyVisible = true,
|
|
12
|
-
dismissable = true,
|
|
13
|
-
icon,
|
|
14
|
-
buttonColor,
|
|
15
|
-
content,
|
|
16
|
-
contentStyle,
|
|
17
|
-
style,
|
|
18
|
-
theme,
|
|
19
|
-
Icon,
|
|
20
|
-
...rest
|
|
21
|
-
} = _ref;
|
|
22
|
-
const [visible, setVisible] = React.useState(initiallyVisible);
|
|
23
|
-
React.useEffect(() => {
|
|
24
|
-
if (initiallyVisible) {
|
|
25
|
-
setVisible(true);
|
|
26
|
-
}
|
|
27
|
-
}, [initiallyVisible]);
|
|
28
|
-
const {
|
|
29
|
-
current: position
|
|
30
|
-
} = React.useRef(new Animated.Value(visible ? 1 : 0));
|
|
31
|
-
const [layout, setLayout] = React.useState({
|
|
32
|
-
height: 0,
|
|
33
|
-
measured: false
|
|
34
|
-
});
|
|
35
|
-
React.useEffect(() => {
|
|
36
|
-
if (visible) {
|
|
37
|
-
// show
|
|
38
|
-
Animated.timing(position, {
|
|
39
|
-
duration: 250,
|
|
40
|
-
toValue: 1,
|
|
41
|
-
useNativeDriver: false
|
|
42
|
-
}).start();
|
|
43
|
-
} else {
|
|
44
|
-
// hide
|
|
45
|
-
Animated.timing(position, {
|
|
46
|
-
duration: 200,
|
|
47
|
-
toValue: 0,
|
|
48
|
-
useNativeDriver: false
|
|
49
|
-
}).start();
|
|
50
|
-
}
|
|
51
|
-
}, [visible, position]);
|
|
52
|
-
const handleLayout = _ref2 => {
|
|
53
|
-
let {
|
|
54
|
-
nativeEvent
|
|
55
|
-
} = _ref2;
|
|
56
|
-
const {
|
|
57
|
-
height
|
|
58
|
-
} = nativeEvent.layout;
|
|
59
|
-
setLayout({
|
|
60
|
-
height,
|
|
61
|
-
measured: true
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// The banner animation has 2 parts:
|
|
66
|
-
// 1. Blank spacer element which animates its height to move the content
|
|
67
|
-
// 2. Actual banner which animates its translateY
|
|
68
|
-
// In initial render, we position everything normally and measure the height of the banner
|
|
69
|
-
// Once we have the height, we apply the height to the spacer and switch the banner to position: absolute
|
|
70
|
-
// We need this because we need to move the content below as if banner's height was being animated
|
|
71
|
-
// However we can't animated banner's height directly as it'll also resize the content inside
|
|
72
|
-
const height = Animated.multiply(position, layout.height);
|
|
73
|
-
const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
|
|
74
|
-
return /*#__PURE__*/React.createElement(Surface, _extends({}, rest, {
|
|
75
|
-
style: [styles.container, shadow(ELEVATION), style]
|
|
76
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
77
|
-
style: [styles.wrapper, contentStyle]
|
|
78
|
-
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
79
|
-
style: {
|
|
80
|
-
height
|
|
81
|
-
}
|
|
82
|
-
}), /*#__PURE__*/React.createElement(Animated.View, {
|
|
83
|
-
onLayout: handleLayout,
|
|
84
|
-
style: [layout.measured || !visible ?
|
|
85
|
-
// If we have measured banner's height or it's invisible,
|
|
86
|
-
// Position it absolutely, the layout will be taken care of the spacer
|
|
87
|
-
[styles.absolute, {
|
|
88
|
-
transform: [{
|
|
89
|
-
translateY
|
|
90
|
-
}]
|
|
91
|
-
}] :
|
|
92
|
-
// Otherwise position it normally
|
|
93
|
-
null, !layout.measured && !visible ?
|
|
94
|
-
// If we haven't measured banner's height yet and it's invisible,
|
|
95
|
-
// hide it with opacity: 0 so user doesn't see it
|
|
96
|
-
{
|
|
97
|
-
opacity: 0
|
|
98
|
-
} : null]
|
|
99
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
100
|
-
style: [styles.content, {
|
|
101
|
-
marginBottom: dismissable ? 0 : 16
|
|
102
|
-
}]
|
|
103
|
-
}, icon ? /*#__PURE__*/React.createElement(View, {
|
|
104
|
-
style: styles.icon
|
|
105
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
106
|
-
name: icon,
|
|
107
|
-
size: 40
|
|
108
|
-
})) : null, /*#__PURE__*/React.createElement(Text, {
|
|
109
|
-
style: [styles.message, {
|
|
110
|
-
color: theme.colors.text
|
|
111
|
-
}],
|
|
112
|
-
accessibilityLiveRegion: visible ? "polite" : "none",
|
|
113
|
-
accessibilityRole: "alert"
|
|
114
|
-
}, content)), dismissable ? /*#__PURE__*/React.createElement(View, {
|
|
115
|
-
style: styles.actions
|
|
116
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
117
|
-
color: buttonColor || theme.colors.primary,
|
|
118
|
-
title: "Close",
|
|
119
|
-
onPress: () => setVisible(false)
|
|
120
|
-
})) : null)));
|
|
121
|
-
};
|
|
122
|
-
const styles = StyleSheet.create({
|
|
123
|
-
container: {
|
|
124
|
-
elevation: ELEVATION
|
|
125
|
-
},
|
|
126
|
-
wrapper: {
|
|
127
|
-
overflow: "hidden",
|
|
128
|
-
alignSelf: "center",
|
|
129
|
-
width: "100%",
|
|
130
|
-
maxWidth: DEFAULT_MAX_WIDTH
|
|
131
|
-
},
|
|
132
|
-
absolute: {
|
|
133
|
-
position: "absolute",
|
|
134
|
-
top: 0,
|
|
135
|
-
width: "100%"
|
|
136
|
-
},
|
|
137
|
-
content: {
|
|
138
|
-
flexDirection: "row",
|
|
139
|
-
justifyContent: "flex-start",
|
|
140
|
-
marginHorizontal: 8,
|
|
141
|
-
marginTop: 16,
|
|
142
|
-
marginBottom: 0
|
|
143
|
-
},
|
|
144
|
-
icon: {
|
|
145
|
-
margin: 8
|
|
146
|
-
},
|
|
147
|
-
message: {
|
|
148
|
-
flex: 1,
|
|
149
|
-
margin: 8
|
|
150
|
-
},
|
|
151
|
-
actions: {
|
|
152
|
-
flexDirection: "row",
|
|
153
|
-
justifyContent: "flex-end",
|
|
154
|
-
margin: 8
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
export default withTheme(Banner);
|
|
158
|
-
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Button","Text","View","StyleSheet","Animated","Surface","shadow","withTheme","ELEVATION","DEFAULT_MAX_WIDTH","Banner","initiallyVisible","dismissable","icon","buttonColor","content","contentStyle","style","theme","Icon","rest","visible","setVisible","useState","useEffect","current","position","useRef","Value","layout","setLayout","height","measured","timing","duration","toValue","useNativeDriver","start","handleLayout","nativeEvent","multiply","translateY","add","styles","container","wrapper","absolute","transform","opacity","marginBottom","message","color","colors","text","actions","primary","create","elevation","overflow","alignSelf","width","maxWidth","top","flexDirection","justifyContent","marginHorizontal","marginTop","margin","flex"],"sourceRoot":"../../src","sources":["Banner.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,MAAM,EACNC,IAAI,EACJC,IAAI,EAEJC,UAAU,EAEVC,QAAQ,QACH,cAAc;AACrB,OAAOC,OAAO,MAAM,WAAW;AAE/B,OAAOC,MAAM,MAAM,kBAAkB;AACrC,SAASC,SAAS,QAAQ,YAAY;AAGtC,MAAMC,SAAS,GAAG,CAAC;AACnB,MAAMC,iBAAiB,GAAG,GAAG;AA4B7B,MAAMC,MAAgD,GAAG,QAWnD;EAAA,IAXoD;IACxDC,gBAAgB,GAAG,IAAI;IACvBC,WAAW,GAAG,IAAI;IAClBC,IAAI;IACJC,WAAW;IACXC,OAAO;IACPC,YAAY;IACZC,KAAK;IACLC,KAAK;IACLC,IAAI;IACJ,GAAGC;EACL,CAAC;EACC,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGvB,KAAK,CAACwB,QAAQ,CAACZ,gBAAgB,CAAC;EAE9DZ,KAAK,CAACyB,SAAS,CAAC,MAAM;IACpB,IAAIb,gBAAgB,EAAE;MACpBW,UAAU,CAAC,IAAI,CAAC;IAClB;EACF,CAAC,EAAE,CAACX,gBAAgB,CAAC,CAAC;EAEtB,MAAM;IAAEc,OAAO,EAAEC;EAAS,CAAC,GAAG3B,KAAK,CAAC4B,MAAM,CACxC,IAAIvB,QAAQ,CAACwB,KAAK,CAACP,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CACpC;EACD,MAAM,CAACQ,MAAM,EAAEC,SAAS,CAAC,GAAG/B,KAAK,CAACwB,QAAQ,CAGvC;IACDQ,MAAM,EAAE,CAAC;IACTC,QAAQ,EAAE;EACZ,CAAC,CAAC;EAEFjC,KAAK,CAACyB,SAAS,CAAC,MAAM;IACpB,IAAIH,OAAO,EAAE;MACX;MACAjB,QAAQ,CAAC6B,MAAM,CAACP,QAAQ,EAAE;QACxB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,QAAQ;IACnBC,KAAK,EAAE,MAAM;IACbC,QAAQ,EAAEpD;EACZ,CAAC;EACDqC,QAAQ,EAAE;IACRpB,QAAQ,EAAE,UAAU;IACpBoC,GAAG,EAAE,CAAC;IACNF,KAAK,EAAE;EACT,CAAC;EACD7C,OAAO,EAAE;IACPgD,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,gBAAgB,EAAE,CAAC;IACnBC,SAAS,EAAE,EAAE;IACbjB,YAAY,EAAE;EAChB,CAAC;EACDpC,IAAI,EAAE;IACJsD,MAAM,EAAE;EACV,CAAC;EACDjB,OAAO,EAAE;IACPkB,IAAI,EAAE,CAAC;IACPD,MAAM,EAAE;EACV,CAAC;EACDb,OAAO,EAAE;IACPS,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,UAAU;IAC1BG,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAe5D,SAAS,CAACG,MAAM,CAAC"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet, View, Pressable } from "react-native";
|
|
3
|
-
import Image from "./Image";
|
|
4
|
-
import Surface from "./Surface";
|
|
5
|
-
import { Title, Subtitle, Caption } from "./Typography";
|
|
6
|
-
import { withTheme } from "../theming";
|
|
7
|
-
import Config from "./Config";
|
|
8
|
-
const ICON_SIZE = Config.cardIconSize;
|
|
9
|
-
const ICON_CONTAINER_SIZE = Config.cardIconSize * 2;
|
|
10
|
-
const ICON_CONTAINER_PADDING = Config.cardIconSize / 2 - 1;
|
|
11
|
-
const ICON_ELEVATION = Config.cardIconElevation;
|
|
12
|
-
export const TopRightCircleIcon = withTheme(_ref => {
|
|
13
|
-
let {
|
|
14
|
-
Icon,
|
|
15
|
-
icon,
|
|
16
|
-
theme,
|
|
17
|
-
onPress
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement(Surface, {
|
|
20
|
-
style: {
|
|
21
|
-
justifyContent: "center",
|
|
22
|
-
alignItems: "center",
|
|
23
|
-
elevation: ICON_ELEVATION,
|
|
24
|
-
position: "absolute",
|
|
25
|
-
top: 12,
|
|
26
|
-
right: 12,
|
|
27
|
-
width: ICON_CONTAINER_SIZE,
|
|
28
|
-
height: ICON_CONTAINER_SIZE,
|
|
29
|
-
padding: ICON_CONTAINER_PADDING,
|
|
30
|
-
borderRadius: ICON_CONTAINER_SIZE,
|
|
31
|
-
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
32
|
-
}
|
|
33
|
-
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
34
|
-
disabled: !onPress,
|
|
35
|
-
onPress: onPress,
|
|
36
|
-
style: _ref2 => {
|
|
37
|
-
let {
|
|
38
|
-
pressed
|
|
39
|
-
} = _ref2;
|
|
40
|
-
return [{
|
|
41
|
-
opacity: pressed ? 0.8 : 1
|
|
42
|
-
}];
|
|
43
|
-
}
|
|
44
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
45
|
-
name: icon,
|
|
46
|
-
size: ICON_SIZE,
|
|
47
|
-
color: theme.colors.surface
|
|
48
|
-
})));
|
|
49
|
-
});
|
|
50
|
-
const Card = _ref3 => {
|
|
51
|
-
let {
|
|
52
|
-
Icon,
|
|
53
|
-
image = Config.cardImageUrl,
|
|
54
|
-
title,
|
|
55
|
-
subtitle,
|
|
56
|
-
description,
|
|
57
|
-
textCentered,
|
|
58
|
-
icon,
|
|
59
|
-
aspectRatio = 1.5,
|
|
60
|
-
elevation = 2,
|
|
61
|
-
style,
|
|
62
|
-
onPress,
|
|
63
|
-
onPressIcon,
|
|
64
|
-
titleStyle,
|
|
65
|
-
subtitleStyle,
|
|
66
|
-
descriptionStyle,
|
|
67
|
-
theme,
|
|
68
|
-
children
|
|
69
|
-
} = _ref3;
|
|
70
|
-
const {
|
|
71
|
-
backgroundColor: bgColor,
|
|
72
|
-
padding,
|
|
73
|
-
...styles
|
|
74
|
-
} = StyleSheet.flatten(style || {});
|
|
75
|
-
const backgroundColor = bgColor ? bgColor : theme.colors.surface;
|
|
76
|
-
const innerPadding = padding ? padding : 12;
|
|
77
|
-
return /*#__PURE__*/React.createElement(Surface, {
|
|
78
|
-
style: [{
|
|
79
|
-
elevation,
|
|
80
|
-
backgroundColor
|
|
81
|
-
}, styles]
|
|
82
|
-
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
83
|
-
disabled: !onPress,
|
|
84
|
-
onPress: onPress,
|
|
85
|
-
style: _ref4 => {
|
|
86
|
-
let {
|
|
87
|
-
pressed
|
|
88
|
-
} = _ref4;
|
|
89
|
-
return [{
|
|
90
|
-
opacity: pressed ? 0.8 : 1
|
|
91
|
-
}];
|
|
92
|
-
}
|
|
93
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
94
|
-
style: {
|
|
95
|
-
aspectRatio
|
|
96
|
-
},
|
|
97
|
-
source: typeof image === "string" ? {
|
|
98
|
-
uri: image
|
|
99
|
-
} : image,
|
|
100
|
-
resizeMode: "cover"
|
|
101
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
102
|
-
style: {
|
|
103
|
-
padding: innerPadding
|
|
104
|
-
}
|
|
105
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
106
|
-
style: {
|
|
107
|
-
alignItems: textCentered ? "center" : "flex-start"
|
|
108
|
-
}
|
|
109
|
-
}, title || title && title !== "" ? /*#__PURE__*/React.createElement(Title, {
|
|
110
|
-
text: title,
|
|
111
|
-
style: titleStyle
|
|
112
|
-
}) : null, subtitle || subtitle && subtitle !== "" ? /*#__PURE__*/React.createElement(Subtitle, {
|
|
113
|
-
text: subtitle,
|
|
114
|
-
style: subtitleStyle
|
|
115
|
-
}) : null, description || description && description !== "" ? /*#__PURE__*/React.createElement(View, {
|
|
116
|
-
style: {
|
|
117
|
-
marginTop: 4
|
|
118
|
-
}
|
|
119
|
-
}, /*#__PURE__*/React.createElement(Caption, {
|
|
120
|
-
text: description,
|
|
121
|
-
style: descriptionStyle
|
|
122
|
-
})) : null, children)), icon ? /*#__PURE__*/React.createElement(TopRightCircleIcon, {
|
|
123
|
-
Icon: Icon,
|
|
124
|
-
icon: icon,
|
|
125
|
-
onPress: onPressIcon
|
|
126
|
-
}) : null));
|
|
127
|
-
};
|
|
128
|
-
export default withTheme(Card);
|
|
129
|
-
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Pressable","Image","Surface","Title","Subtitle","Caption","withTheme","Config","ICON_SIZE","cardIconSize","ICON_CONTAINER_SIZE","ICON_CONTAINER_PADDING","ICON_ELEVATION","cardIconElevation","TopRightCircleIcon","Icon","icon","theme","onPress","justifyContent","alignItems","elevation","position","top","right","width","height","padding","borderRadius","backgroundColor","pressed","opacity","colors","surface","Card","image","cardImageUrl","title","subtitle","description","textCentered","aspectRatio","style","onPressIcon","titleStyle","subtitleStyle","descriptionStyle","children","bgColor","styles","flatten","innerPadding","uri","marginTop"],"sourceRoot":"../../src","sources":["Card.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,UAAU,EACVC,IAAI,EAKJC,SAAS,QACJ,cAAc;AACrB,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,KAAK,EAAEC,QAAQ,EAAEC,OAAO,QAAQ,cAAc;AAEvD,SAASC,SAAS,QAAQ,YAAY;AACtC,OAAOC,MAAM,MAAM,UAAU;AAK7B,MAAMC,SAAS,GAAGD,MAAM,CAACE,YAAY;AACrC,MAAMC,mBAAmB,GAAGH,MAAM,CAACE,YAAY,GAAG,CAAC;AACnD,MAAME,sBAAsB,GAAGJ,MAAM,CAACE,YAAY,GAAG,CAAC,GAAG,CAAC;AAC1D,MAAMG,cAAc,GAAGL,MAAM,CAACM,iBAAiB;AAE/C,OAAO,MAAMC,kBAAkB,GAAGR,SAAS,CACzC,QASiB;EAAA,IAThB;IACCS,IAAI;IACJC,IAAI;IACJC,K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AE,gBAC5B,oBAAC,OAAO;IAAC,IAAI,EAAEd,WAAY;IAAC,KAAK,EAAEO;EAAiB,EAAG,CAClD,GACL,IAAI,EACPC,QAAQ,CACJ,CACF,EACN/B,IAAI,gBACH,oBAAC,kBAAkB;IAAC,IAAI,EAAED,IAAK;IAAC,IAAI,EAAEC,IAAK;IAAC,OAAO,EAAE2B;EAAY,EAAG,GAClE,IAAI,CACE,CACJ;AAEd,CAAC;AAED,eAAerC,SAAS,CAAC4B,IAAI,CAAC"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { View, Text } from "react-native";
|
|
4
|
-
import Image from "./Image";
|
|
5
|
-
import Card from "./DeprecatedCardWrapper";
|
|
6
|
-
import Elevation from "./Elevation";
|
|
7
|
-
import { withTheme } from "../theming";
|
|
8
|
-
import Config from "./Config";
|
|
9
|
-
const CardBlock = _ref => {
|
|
10
|
-
let {
|
|
11
|
-
image = Config.cardImageUrl,
|
|
12
|
-
title,
|
|
13
|
-
leftDescription,
|
|
14
|
-
rightDescription,
|
|
15
|
-
titleCentered,
|
|
16
|
-
aspectRatio = 1.5,
|
|
17
|
-
elevation = 2,
|
|
18
|
-
numColumns = 3,
|
|
19
|
-
theme: {
|
|
20
|
-
colors,
|
|
21
|
-
roundness,
|
|
22
|
-
typography
|
|
23
|
-
},
|
|
24
|
-
style,
|
|
25
|
-
onPress,
|
|
26
|
-
...rest
|
|
27
|
-
} = _ref;
|
|
28
|
-
let titleJustification;
|
|
29
|
-
let titleStyle;
|
|
30
|
-
if (titleCentered && !leftDescription && !rightDescription) {
|
|
31
|
-
titleJustification = "center";
|
|
32
|
-
} else {
|
|
33
|
-
titleJustification = "space-between";
|
|
34
|
-
}
|
|
35
|
-
if (numColumns === 1) {
|
|
36
|
-
titleStyle = typography.button;
|
|
37
|
-
} else if (numColumns === 2) {
|
|
38
|
-
titleStyle = typography.headline6;
|
|
39
|
-
} else {
|
|
40
|
-
titleStyle = typography.headline5;
|
|
41
|
-
}
|
|
42
|
-
const rightDescriptionStyles = [typography.subtitle2, {
|
|
43
|
-
color: colors.light
|
|
44
|
-
}];
|
|
45
|
-
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
46
|
-
style: style,
|
|
47
|
-
onPress: onPress,
|
|
48
|
-
numColumns: numColumns
|
|
49
|
-
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
50
|
-
style: {
|
|
51
|
-
backgroundColor: colors.background
|
|
52
|
-
}
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Elevation, {
|
|
54
|
-
style: {
|
|
55
|
-
elevation,
|
|
56
|
-
borderRadius: roundness
|
|
57
|
-
}
|
|
58
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
59
|
-
style: {
|
|
60
|
-
borderRadius: roundness,
|
|
61
|
-
aspectRatio
|
|
62
|
-
},
|
|
63
|
-
source: typeof image === "string" ? {
|
|
64
|
-
uri: image
|
|
65
|
-
} : image,
|
|
66
|
-
resizeMode: "cover"
|
|
67
|
-
})), title ? /*#__PURE__*/React.createElement(View, {
|
|
68
|
-
style: {
|
|
69
|
-
flexDirection: "row",
|
|
70
|
-
alignItems: "center",
|
|
71
|
-
justifyContent: titleJustification,
|
|
72
|
-
marginTop: numColumns === 3 ? 16 : 12
|
|
73
|
-
}
|
|
74
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
75
|
-
numberOfLines: 1,
|
|
76
|
-
style: [titleStyle, {
|
|
77
|
-
color: colors.strong
|
|
78
|
-
}]
|
|
79
|
-
}, title), !leftDescription && rightDescription ? /*#__PURE__*/React.createElement(Text, {
|
|
80
|
-
style: rightDescriptionStyles
|
|
81
|
-
}, rightDescription) : null) : null, leftDescription ? /*#__PURE__*/React.createElement(View, {
|
|
82
|
-
style: {
|
|
83
|
-
flexDirection: "row",
|
|
84
|
-
justifyContent: "space-between",
|
|
85
|
-
alignItems: "center",
|
|
86
|
-
marginTop: numColumns === 3 ? 4 : 4 / 2
|
|
87
|
-
}
|
|
88
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
89
|
-
numberOfLines: 1,
|
|
90
|
-
style: [typography.body2, {
|
|
91
|
-
color: colors.medium
|
|
92
|
-
}]
|
|
93
|
-
}, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
|
|
94
|
-
numberOfLines: 1,
|
|
95
|
-
style: rightDescriptionStyles
|
|
96
|
-
}, rightDescription) : null) : null));
|
|
97
|
-
};
|
|
98
|
-
export default withTheme(CardBlock);
|
|
99
|
-
//# sourceMappingURL=CardBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","Image","Card","Elevation","withTheme","Config","CardBlock","image","cardImageUrl","title","leftDescription","rightDescription","titleCentered","aspectRatio","elevation","numColumns","theme","colors","roundness","typography","style","onPress","rest","titleJustification","titleStyle","button","headline6","headline5","rightDescriptionStyles","subtitle2","color","light","backgroundColor","background","borderRadius","uri","flexDirection","alignItems","justifyContent","marginTop","strong","body2","medium"],"sourceRoot":"../../src","sources":["CardBlock.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,IAAI,EACJC,IAAI,QAGC,cAAc;AACrB,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,IAAI,MAAM,yBAAyB;AAC1C,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,SAAS,QAAQ,YAAY;AACtC,OAAOC,MAAM,MAAM,UAAU;AAkB7B,MAAMC,SAAmD,GAAG,QAatD;EAAA,IAbuD;IAC3DC,KAAK,GAAGF,MAAM,CAACG,YAAY;IAC3BC,KAAK;IACLC,eAAe;IACfC,gBAAgB;IAChBC,aAAa;IACbC,WAAW,GAAG,G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KAAK,EAAE;MACL2B,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAEf,kBAAkB;MAClCgB,SAAS,EAAExB,UAAU,KAAK,CAAC,GAAG,EAAE,GAAG;IACrC;EAAE,gBAEF,oBAAC,IAAI;IACH,aAAa,EAAE,CAAE;IACjB,KAAK,EAAE,CAACS,UAAU,EAAE;MAAEM,KAAK,EAAEb,MAAM,CAACuB;IAAO,CAAC;EAAE,GAE7C/B,KAAK,CACD,EACN,CAACC,eAAe,IAAIC,gBAAgB,gBACnC,oBAAC,IAAI;IAAC,KAAK,EAAEiB;EAAuB,GAAEjB,gBAAgB,CAAQ,GAC5D,IAAI,CACH,GACL,IAAI,EACPD,eAAe,gBACd,oBAAC,IAAI;IACH,KAAK,EAAE;MACL0B,aAAa,EAAE,KAAK;MACpBE,cAAc,EAAE,eAAe;MAC/BD,UAAU,EAAE,QAAQ;MACpBE,SAAS,EAAExB,UAAU,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG;IACxC;EAAE,gBAEF,oBAAC,IAAI;IACH,aAAa,EAAE,CAAE;IACjB,KAAK,EAAE,CAACI,UAAU,CAACsB,KAAK,EAAE;MAAEX,KAAK,EAAEb,MAAM,CAACyB;IAAO,CAAC;EAAE,GAEnDhC,eAAe,CACX,EACNC,gBAAgB,gBACf,oBAAC,IAAI;IAAC,aAAa,EAAE,CAAE;IAAC,KAAK,EAAEiB;EAAuB,GACnDjB,gBAAgB,CACZ,GACL,IAAI,CACH,GACL,IAAI,CACH,CACF;AAEX,CAAC;AAED,eAAeP,SAAS,CAACE,SAAS,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { View, Text } from "react-native";
|
|
4
|
-
import color from "color";
|
|
5
|
-
import Image from "./Image";
|
|
6
|
-
import Card from "./DeprecatedCardWrapper";
|
|
7
|
-
import Elevation from "./Elevation";
|
|
8
|
-
import { withTheme } from "../theming";
|
|
9
|
-
import Config from "./Config";
|
|
10
|
-
const ICON_CONTAINER_SIZE = Config.cardIconSize * 2;
|
|
11
|
-
const ICON_CONTAINER_PADDING = Config.cardIconSize / 2 - 1;
|
|
12
|
-
const CardContainer = _ref => {
|
|
13
|
-
let {
|
|
14
|
-
Icon,
|
|
15
|
-
icon,
|
|
16
|
-
image = Config.cardImageUrl,
|
|
17
|
-
title,
|
|
18
|
-
leftDescription,
|
|
19
|
-
rightDescription,
|
|
20
|
-
textCentered,
|
|
21
|
-
aspectRatio = 1.5,
|
|
22
|
-
elevation = 2,
|
|
23
|
-
numColumns = 3,
|
|
24
|
-
theme: {
|
|
25
|
-
colors,
|
|
26
|
-
roundness,
|
|
27
|
-
typography
|
|
28
|
-
},
|
|
29
|
-
style,
|
|
30
|
-
onPress,
|
|
31
|
-
...rest
|
|
32
|
-
} = _ref;
|
|
33
|
-
let textJustification;
|
|
34
|
-
let titleStyle;
|
|
35
|
-
if (textCentered && !rightDescription) {
|
|
36
|
-
textJustification = "center";
|
|
37
|
-
} else {
|
|
38
|
-
textJustification = "space-between";
|
|
39
|
-
}
|
|
40
|
-
switch (numColumns) {
|
|
41
|
-
case 2:
|
|
42
|
-
titleStyle = typography.headline6;
|
|
43
|
-
break;
|
|
44
|
-
case 3:
|
|
45
|
-
titleStyle = typography.headline5;
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
49
|
-
style: style,
|
|
50
|
-
onPress: onPress,
|
|
51
|
-
numColumns: numColumns
|
|
52
|
-
}, rest), /*#__PURE__*/React.createElement(Elevation, {
|
|
53
|
-
style: {
|
|
54
|
-
elevation,
|
|
55
|
-
borderRadius: roundness
|
|
56
|
-
}
|
|
57
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
58
|
-
style: {
|
|
59
|
-
borderRadius: roundness,
|
|
60
|
-
overflow: "hidden",
|
|
61
|
-
backgroundColor: colors.surface
|
|
62
|
-
}
|
|
63
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
64
|
-
style: {
|
|
65
|
-
aspectRatio
|
|
66
|
-
},
|
|
67
|
-
source: typeof image === "string" ? {
|
|
68
|
-
uri: image
|
|
69
|
-
} : image,
|
|
70
|
-
resizeMode: "cover"
|
|
71
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
72
|
-
style: {
|
|
73
|
-
padding: numColumns === 1 ? 8 : 16
|
|
74
|
-
}
|
|
75
|
-
}, title ? /*#__PURE__*/React.createElement(View, {
|
|
76
|
-
style: {
|
|
77
|
-
flexDirection: "row",
|
|
78
|
-
alignItems: "center",
|
|
79
|
-
justifyContent: textJustification
|
|
80
|
-
}
|
|
81
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
82
|
-
numberOfLines: 1,
|
|
83
|
-
style: [titleStyle, {
|
|
84
|
-
color: colors.strong
|
|
85
|
-
}]
|
|
86
|
-
}, title)) : null, leftDescription ? /*#__PURE__*/React.createElement(View, {
|
|
87
|
-
style: {
|
|
88
|
-
flexDirection: "row",
|
|
89
|
-
justifyContent: textJustification,
|
|
90
|
-
alignItems: "center",
|
|
91
|
-
marginTop: numColumns === 3 ? 4 : 4 / 2
|
|
92
|
-
}
|
|
93
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
94
|
-
numberOfLines: 1,
|
|
95
|
-
style: [typography.body2, {
|
|
96
|
-
color: colors.medium
|
|
97
|
-
}]
|
|
98
|
-
}, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
|
|
99
|
-
numberOfLines: 1,
|
|
100
|
-
style: [typography.subtitle2, {
|
|
101
|
-
color: colors.light
|
|
102
|
-
}]
|
|
103
|
-
}, rightDescription) : null) : null), icon ? /*#__PURE__*/React.createElement(Elevation, {
|
|
104
|
-
style: {
|
|
105
|
-
elevation: Config.cardIconElevation,
|
|
106
|
-
position: "absolute",
|
|
107
|
-
top: 12,
|
|
108
|
-
right: 12,
|
|
109
|
-
width: ICON_CONTAINER_SIZE,
|
|
110
|
-
height: ICON_CONTAINER_SIZE,
|
|
111
|
-
padding: ICON_CONTAINER_PADDING,
|
|
112
|
-
borderRadius: ICON_CONTAINER_SIZE,
|
|
113
|
-
backgroundColor: color(colors.strong).alpha(Config.cardIconBackgroundOpacity).rgb().string()
|
|
114
|
-
}
|
|
115
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
116
|
-
name: icon,
|
|
117
|
-
size: Config.cardIconSize,
|
|
118
|
-
color: colors.surface
|
|
119
|
-
})) : null)));
|
|
120
|
-
};
|
|
121
|
-
export default withTheme(CardContainer);
|
|
122
|
-
//# sourceMappingURL=CardContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","color","Image","Card","Elevation","withTheme","Config","ICON_CONTAINER_SIZE","cardIconSize","ICON_CONTAINER_PADDING","CardContainer","Icon","icon","image","cardImageUrl","title","leftDescription","rightDescription","textCentered","aspectRatio","elevation","numColumns","theme","colors","roundness","typography","style","onPress","rest","textJustification","titleStyle","headline6","headline5","borderRadius","overflow","backgroundColor","surface","uri","padding","flexDirection","alignItems","justifyContent","strong","marginTop","body2","medium","subtitle2","light","cardIconElevation","position","top","right","width","height","alpha","cardIconBackgroundOpacity","rgb","string"],"sourceRoot":"../../src","sources":["CardContainer.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EAEJC,IAAI,QAGC,cAAc;AACrB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,IAAI,MAAM,yBAAyB;AAC1C,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,SAAS,QAAQ,YAAY;AAItC,OAAO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pBC,GAAG,EAAE,EAAE;MACPC,KAAK,EAAE,EAAE;MACTC,KAAK,EAAE7C,mBAAmB;MAC1B8C,MAAM,EAAE9C,mBAAmB;MAC3B+B,OAAO,EAAE7B,sBAAsB;MAC/BwB,YAAY,EAAE1B,mBAAmB;MACjC4B,eAAe,EAAElC,KAAK,CAACsB,MAAM,CAACmB,MAAM,CAAC,CAClCY,KAAK,CAAChD,MAAM,CAACiD,yBAAyB,CAAC,CACvCC,GAAG,EAAE,CACLC,MAAM;IACX;EAAE,gBAEF,oBAAC,IAAI;IACH,IAAI,EAAE7C,IAAK;IACX,IAAI,EAAEN,MAAM,CAACE,YAAa;IAC1B,KAAK,EAAEe,MAAM,CAACa;EAAQ,EACtB,CACQ,GACV,IAAI,CACH,CACG,CACP;AAEX,CAAC;AAED,eAAe/B,SAAS,CAACK,aAAa,CAAC"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { View, Text } from "react-native";
|
|
4
|
-
import color from "color";
|
|
5
|
-
import Image from "./Image";
|
|
6
|
-
import Card from "./DeprecatedCardWrapper";
|
|
7
|
-
import Elevation from "./Elevation";
|
|
8
|
-
import StarRating from "./StarRating";
|
|
9
|
-
import { withTheme } from "../theming";
|
|
10
|
-
import Config from "./Config";
|
|
11
|
-
const ICON_CONTAINER_SIZE = Config.cardIconSize * 2;
|
|
12
|
-
const ICON_CONTAINER_PADDING = Config.cardIconSize / 2 - 1;
|
|
13
|
-
const CardContainerRating = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
Icon,
|
|
16
|
-
icon,
|
|
17
|
-
image = Config.cardImageUrl,
|
|
18
|
-
title,
|
|
19
|
-
leftDescription,
|
|
20
|
-
rightDescription,
|
|
21
|
-
rating,
|
|
22
|
-
aspectRatio = 1.5,
|
|
23
|
-
elevation = 2,
|
|
24
|
-
numColumns = 3,
|
|
25
|
-
theme: {
|
|
26
|
-
colors,
|
|
27
|
-
roundness,
|
|
28
|
-
typography
|
|
29
|
-
},
|
|
30
|
-
style,
|
|
31
|
-
onPress,
|
|
32
|
-
...rest
|
|
33
|
-
} = _ref;
|
|
34
|
-
let titleStyle, rightDescriptionStyle;
|
|
35
|
-
switch (numColumns) {
|
|
36
|
-
case 2:
|
|
37
|
-
titleStyle = typography.headline6;
|
|
38
|
-
rightDescriptionStyle = typography.body2;
|
|
39
|
-
break;
|
|
40
|
-
case 3:
|
|
41
|
-
titleStyle = typography.headline5;
|
|
42
|
-
rightDescriptionStyle = typography.caption;
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
46
|
-
style: style,
|
|
47
|
-
onPress: onPress,
|
|
48
|
-
numColumns: numColumns
|
|
49
|
-
}, rest), /*#__PURE__*/React.createElement(Elevation, {
|
|
50
|
-
style: {
|
|
51
|
-
elevation,
|
|
52
|
-
borderRadius: roundness
|
|
53
|
-
}
|
|
54
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
55
|
-
style: {
|
|
56
|
-
borderRadius: roundness,
|
|
57
|
-
overflow: "hidden",
|
|
58
|
-
backgroundColor: colors.background
|
|
59
|
-
//background color is needed for bug on android 9 - https://github.com/facebook/react-native/issues/25093
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
62
|
-
style: {
|
|
63
|
-
aspectRatio
|
|
64
|
-
},
|
|
65
|
-
source: typeof image === "string" ? {
|
|
66
|
-
uri: image
|
|
67
|
-
} : image,
|
|
68
|
-
resizeMode: "cover"
|
|
69
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
70
|
-
style: {
|
|
71
|
-
padding: numColumns === 1 ? 8 : 16
|
|
72
|
-
}
|
|
73
|
-
}, title ? /*#__PURE__*/React.createElement(View, {
|
|
74
|
-
style: {
|
|
75
|
-
flexDirection: "row",
|
|
76
|
-
alignItems: "center",
|
|
77
|
-
justifyContent: "space-between"
|
|
78
|
-
}
|
|
79
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
80
|
-
numberOfLines: 1,
|
|
81
|
-
style: [titleStyle, {
|
|
82
|
-
color: colors.strong
|
|
83
|
-
}]
|
|
84
|
-
}, title)) : null, leftDescription ? /*#__PURE__*/React.createElement(Text, {
|
|
85
|
-
numberOfLines: 1,
|
|
86
|
-
style: [typography.body2, {
|
|
87
|
-
color: colors.medium,
|
|
88
|
-
marginTop: numColumns === 3 ? 4 : 4 / 2
|
|
89
|
-
}]
|
|
90
|
-
}, leftDescription) : null, /*#__PURE__*/React.createElement(View, {
|
|
91
|
-
style: {
|
|
92
|
-
flexDirection: "row",
|
|
93
|
-
justifyContent: "space-between",
|
|
94
|
-
alignItems: "center",
|
|
95
|
-
marginTop: numColumns === 3 ? 16 : 12
|
|
96
|
-
}
|
|
97
|
-
}, /*#__PURE__*/React.createElement(StarRating, {
|
|
98
|
-
Icon: Icon,
|
|
99
|
-
starSize: numColumns === 1 ? 10 : 16,
|
|
100
|
-
rating: rating
|
|
101
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
102
|
-
style: [rightDescriptionStyle, {
|
|
103
|
-
color: colors.medium,
|
|
104
|
-
marginLeft: 8
|
|
105
|
-
}],
|
|
106
|
-
numberOfLines: 1
|
|
107
|
-
}, rightDescription))), icon ? /*#__PURE__*/React.createElement(Elevation, {
|
|
108
|
-
style: {
|
|
109
|
-
elevation: Config.cardIconElevation,
|
|
110
|
-
position: "absolute",
|
|
111
|
-
top: 12,
|
|
112
|
-
right: 12,
|
|
113
|
-
width: ICON_CONTAINER_SIZE,
|
|
114
|
-
height: ICON_CONTAINER_SIZE,
|
|
115
|
-
padding: ICON_CONTAINER_PADDING,
|
|
116
|
-
borderRadius: ICON_CONTAINER_SIZE,
|
|
117
|
-
backgroundColor: color(colors.strong).alpha(Config.cardIconBackgroundOpacity).rgb().string()
|
|
118
|
-
}
|
|
119
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
120
|
-
name: icon,
|
|
121
|
-
size: Config.cardIconSize,
|
|
122
|
-
color: colors.surface
|
|
123
|
-
})) : null)));
|
|
124
|
-
};
|
|
125
|
-
export default withTheme(CardContainerRating);
|
|
126
|
-
//# sourceMappingURL=CardContainerRating.js.map
|