@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,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Typography = require("./Typography");
|
|
10
|
-
var _Image = _interopRequireDefault(require("./Image"));
|
|
11
|
-
var _Surface = _interopRequireDefault(require("./Surface"));
|
|
12
|
-
var _Config = _interopRequireDefault(require("./Config"));
|
|
13
|
-
var _theming = require("../theming");
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
// @ts-nocheck
|
|
16
|
-
|
|
17
|
-
const CardInline = _ref => {
|
|
18
|
-
let {
|
|
19
|
-
image = _Config.default.cardImageUrl,
|
|
20
|
-
title,
|
|
21
|
-
subtitle,
|
|
22
|
-
aspectRatio = 1.5,
|
|
23
|
-
elevation = 2,
|
|
24
|
-
style,
|
|
25
|
-
titleStyle,
|
|
26
|
-
subtitleStyle,
|
|
27
|
-
onPress
|
|
28
|
-
} = _ref;
|
|
29
|
-
const {
|
|
30
|
-
alignItems,
|
|
31
|
-
justifyContent,
|
|
32
|
-
width,
|
|
33
|
-
height
|
|
34
|
-
} = _reactNative.StyleSheet.flatten(style || {});
|
|
35
|
-
const imageStyles = width && height ? {
|
|
36
|
-
width,
|
|
37
|
-
height
|
|
38
|
-
} : {
|
|
39
|
-
aspectRatio
|
|
40
|
-
};
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(_Surface.default, {
|
|
42
|
-
style: [{
|
|
43
|
-
elevation
|
|
44
|
-
}, style]
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
46
|
-
disabled: !onPress,
|
|
47
|
-
onPress: onPress,
|
|
48
|
-
style: _ref2 => {
|
|
49
|
-
let {
|
|
50
|
-
pressed
|
|
51
|
-
} = _ref2;
|
|
52
|
-
return [{
|
|
53
|
-
opacity: pressed ? 0.8 : 1
|
|
54
|
-
}];
|
|
55
|
-
}
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_Image.default, {
|
|
57
|
-
style: imageStyles,
|
|
58
|
-
source: typeof image === "string" ? {
|
|
59
|
-
uri: image
|
|
60
|
-
} : image,
|
|
61
|
-
resizeMode: "cover"
|
|
62
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
63
|
-
style: [styles.overlay, {
|
|
64
|
-
justifyContent,
|
|
65
|
-
alignItems
|
|
66
|
-
}]
|
|
67
|
-
}, title ? /*#__PURE__*/_react.default.createElement(_Typography.Title, {
|
|
68
|
-
style: [{
|
|
69
|
-
color: "white"
|
|
70
|
-
}, titleStyle],
|
|
71
|
-
text: title
|
|
72
|
-
}) : null, subtitle ? /*#__PURE__*/_react.default.createElement(_Typography.Subtitle, {
|
|
73
|
-
style: [{
|
|
74
|
-
color: "rgba(255, 255, 255, 0.7)"
|
|
75
|
-
}, subtitleStyle],
|
|
76
|
-
text: subtitle
|
|
77
|
-
}) : null)));
|
|
78
|
-
};
|
|
79
|
-
const styles = _reactNative.StyleSheet.create({
|
|
80
|
-
overlay: {
|
|
81
|
-
position: "absolute",
|
|
82
|
-
top: 0,
|
|
83
|
-
bottom: 0,
|
|
84
|
-
left: 0,
|
|
85
|
-
right: 0,
|
|
86
|
-
padding: 16,
|
|
87
|
-
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var _default = (0, _theming.withTheme)(CardInline);
|
|
91
|
-
exports.default = _default;
|
|
92
|
-
//# sourceMappingURL=CardInline.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CardInline","image","Config","cardImageUrl","title","subtitle","aspectRatio","elevation","style","titleStyle","subtitleStyle","onPress","alignItems","justifyContent","width","height","StyleSheet","flatten","imageStyles","pressed","opacity","uri","styles","overlay","color","create","position","top","bottom","left","right","padding","backgroundColor","withTheme"],"sourceRoot":"../../src","sources":["CardInline.tsx"],"mappings":";;;;;;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AAAuC;AAfvC;;AA+BA,MAAMA,UAAoD,GAAG,QAUvD;EAAA,IAVwD;IAC5DC,KAAK,GAAGC,eAAM,CAACC,YAAY;IAC3BC,KAAK;IACLC,QAAQ;IACRC,WAAW,GAAG,GAAG;IACjBC,SAAS,GAAG,CAAC;IACbC,KAAK;IACLC,UAAU;IACVC,aAAa;IACbC;EACF,CAAC;EACC,MAAM;IAAEC,UAAU;IAAEC,cAAc;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGC,uBAAU,CAACC,OAAO,CACtET,KAAK,IAAI,CAAC,CAAC,CACZ;EACD,MAAMU,WAAW,GAAGJ,KAAK,IAAIC,MAAM,GAAG;IAAED,KAAK;IAAEC;EAAO,CAAC,GAAG;IAAET;EAAY,CAAC;EACzE,oBACE,6BAAC,gBAAO;IAAC,KAAK,EAAE,CAAC;MAAEC;IAAU,CAAC,EAAEC,KAAK;EAAE,gBACrC,6BAAC,sBAAS;IACR,QAAQ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-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _theming = require("../theming");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _Image = _interopRequireDefault(require("./Image"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
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); }
|
|
15
|
-
const screenWidth = _reactNative.Dimensions.get("window").width;
|
|
16
|
-
function Pager(_ref) {
|
|
17
|
-
let {
|
|
18
|
-
color,
|
|
19
|
-
index,
|
|
20
|
-
length
|
|
21
|
-
} = _ref;
|
|
22
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
23
|
-
style: styles.pager
|
|
24
|
-
}, Array.from({
|
|
25
|
-
length
|
|
26
|
-
}).map((_, i) => {
|
|
27
|
-
const current = index === i;
|
|
28
|
-
const opacity = current ? 1 : 0.5;
|
|
29
|
-
const size = current ? 10 : 8;
|
|
30
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
31
|
-
key: i,
|
|
32
|
-
style: [styles.bullet, {
|
|
33
|
-
backgroundColor: color,
|
|
34
|
-
opacity,
|
|
35
|
-
width: size,
|
|
36
|
-
height: size
|
|
37
|
-
}]
|
|
38
|
-
});
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
function Carousel(_ref2) {
|
|
42
|
-
let {
|
|
43
|
-
data,
|
|
44
|
-
children,
|
|
45
|
-
dotColor = "strong",
|
|
46
|
-
style,
|
|
47
|
-
...rest
|
|
48
|
-
} = _ref2;
|
|
49
|
-
const [index, setIndex] = React.useState(0);
|
|
50
|
-
const length = React.Children.count(children);
|
|
51
|
-
const itemsLength = ((data === null || data === void 0 ? void 0 : data.length) ?? 0) + length;
|
|
52
|
-
const slides = Array.isArray(data) ? data : [];
|
|
53
|
-
const {
|
|
54
|
-
width,
|
|
55
|
-
height
|
|
56
|
-
} = _reactNative.StyleSheet.flatten(style || {});
|
|
57
|
-
const slideWidth = width || screenWidth;
|
|
58
|
-
const slideHeight = height || 250;
|
|
59
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
60
|
-
style: [styles.container, style]
|
|
61
|
-
}, rest), /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
|
|
62
|
-
pagingEnabled: true,
|
|
63
|
-
horizontal: true,
|
|
64
|
-
decelerationRate: "fast",
|
|
65
|
-
scrollEventThrottle: 200,
|
|
66
|
-
showsHorizontalScrollIndicator: false,
|
|
67
|
-
onScroll: _ref3 => {
|
|
68
|
-
let {
|
|
69
|
-
nativeEvent
|
|
70
|
-
} = _ref3;
|
|
71
|
-
const layoutWidth = nativeEvent.layoutMeasurement.width;
|
|
72
|
-
const offset = nativeEvent.contentOffset.x;
|
|
73
|
-
const currentIndex = Math.ceil(offset / layoutWidth);
|
|
74
|
-
setIndex(currentIndex);
|
|
75
|
-
}
|
|
76
|
-
}, slides.length > 0 ? slides.map((item, i) => {
|
|
77
|
-
return /*#__PURE__*/React.createElement(_Image.default, {
|
|
78
|
-
key: i,
|
|
79
|
-
resizeMode: "cover",
|
|
80
|
-
source: typeof item === "string" ? {
|
|
81
|
-
uri: item
|
|
82
|
-
} : item,
|
|
83
|
-
style: [{
|
|
84
|
-
width: slideWidth,
|
|
85
|
-
height: slideHeight
|
|
86
|
-
}]
|
|
87
|
-
});
|
|
88
|
-
}) : null, React.Children.map(children, child => {
|
|
89
|
-
var _child$props;
|
|
90
|
-
const s = (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.style) || {};
|
|
91
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
92
|
-
style: {
|
|
93
|
-
width: slideWidth
|
|
94
|
-
}
|
|
95
|
-
}, /*#__PURE__*/React.cloneElement(child, {
|
|
96
|
-
style: {
|
|
97
|
-
...s,
|
|
98
|
-
width: slideWidth
|
|
99
|
-
}
|
|
100
|
-
}));
|
|
101
|
-
})), /*#__PURE__*/React.createElement(Pager, {
|
|
102
|
-
color: dotColor,
|
|
103
|
-
index: index,
|
|
104
|
-
length: itemsLength
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
const styles = _reactNative.StyleSheet.create({
|
|
108
|
-
container: {
|
|
109
|
-
backgroundColor: "#eee"
|
|
110
|
-
},
|
|
111
|
-
pager: {
|
|
112
|
-
position: "absolute",
|
|
113
|
-
bottom: 12,
|
|
114
|
-
left: 0,
|
|
115
|
-
right: 0,
|
|
116
|
-
flexDirection: "row",
|
|
117
|
-
justifyContent: "center",
|
|
118
|
-
alignItems: "center"
|
|
119
|
-
},
|
|
120
|
-
bullet: {
|
|
121
|
-
marginHorizontal: 2,
|
|
122
|
-
width: 10,
|
|
123
|
-
height: 10,
|
|
124
|
-
borderRadius: 20,
|
|
125
|
-
backgroundColor: "#000"
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
var _default = (0, _theming.withTheme)(Carousel);
|
|
129
|
-
exports.default = _default;
|
|
130
|
-
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["screenWidth","Dimensions","get","width","Pager","color","index","length","styles","pager","Array","from","map","_","i","current","opacity","size","bullet","backgroundColor","height","Carousel","data","children","dotColor","style","rest","setIndex","React","useState","Children","count","itemsLength","slides","isArray","StyleSheet","flatten","slideWidth","slideHeight","container","nativeEvent","layoutWidth","layoutMeasurement","offset","contentOffset","x","currentIndex","Math","ceil","item","uri","child","s","props","cloneElement","create","position","bottom","left","right","flexDirection","justifyContent","alignItems","marginHorizontal","borderRadius","withTheme"],"sourceRoot":"../../src","sources":["Carousel.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAQA;AAA4B;AAAA;AAAA;AAAA;AAE5B,MAAMA,WAAW,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;AAUlD,SAASC,KAAK,OAQX;EAAA,IARY;IACbC,KAAK;IACLC,KAAK;IACLC;EAKF,CAAC;EACC,oBACE,oBAAC,iBAAI;IAAC,KAAK,EAAEC,MAAM,CAACC;EAAM,GACvBC,KAAK,CAACC,IAAI,CAAC;IAAEJ;EAAO,CAAC,CAAC,CAACK,GAAG,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK;IACpC,MAAMC,OAAO,GAAGT,KAAK,KAAKQ,CAAC;IAC3B,MAAME,OAAO,GAAGD,OAAO,GAAG,CAAC,GAAG,GAAG;IACjC,MAAME,IAAI,GAAGF,OAAO,GAAG,EAAE,GAAG,CAAC;IAC7B,oBACE,oBAAC,iBAAI;MACH,GAAG,EAAED,CAAE;MACP,KAAK,EAAE,CACLN,MAAM,CAACU,MAAM,EAC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IACL+C,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACD5C,MAAM,EAAE;IACN6C,gBAAgB,EAAE,CAAC;IACnB5D,KAAK,EAAE,EAAE;IACTiB,MAAM,EAAE,EAAE;IACV4C,YAAY,EAAE,EAAE;IAChB7C,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAAC,eAEY,IAAA8C,kBAAS,EAAC5C,QAAQ,CAAC;AAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Config = _interopRequireDefault(require("./Config"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
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); }
|
|
14
|
-
const CircleImage = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
source = _Config.default.placeholderImageURL,
|
|
17
|
-
size = 60,
|
|
18
|
-
style,
|
|
19
|
-
...props
|
|
20
|
-
} = _ref;
|
|
21
|
-
const borderRadius = size / 2;
|
|
22
|
-
return /*#__PURE__*/React.createElement(_reactNative.Image, _extends({
|
|
23
|
-
style: [{
|
|
24
|
-
width: size,
|
|
25
|
-
height: size,
|
|
26
|
-
borderRadius
|
|
27
|
-
}, style],
|
|
28
|
-
source: typeof source === "string" ? {
|
|
29
|
-
uri: source
|
|
30
|
-
} : source,
|
|
31
|
-
resizeMode: "cover"
|
|
32
|
-
}, props));
|
|
33
|
-
};
|
|
34
|
-
var _default = CircleImage;
|
|
35
|
-
exports.default = _default;
|
|
36
|
-
//# sourceMappingURL=CircleImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CircleImage","source","Config","placeholderImageURL","size","style","props","borderRadius","width","height","uri"],"sourceRoot":"../../src","sources":["CircleImage.tsx"],"mappings":";;;;;;AAAA;AACA;AAMA;AAA8B;AAAA;AAAA;AAAA;AAO9B,MAAMA,WAAqD,GAAG,QAKxD;EAAA,IALyD;IAC7DC,MAAM,GAAGC,eAAM,CAACC,mBAAmB;IACnCC,IAAI,GAAG,EAAE;IACTC,KAAK;IACL,GAAGC;EACL,CAAC;EACC,MAAMC,YAAY,GAAGH,IAAI,GAAG,CAAC;EAE7B,oBACE,oBAAC,kBAAK;IACJ,KAAK,EAAE,CAAC;MAAEI,KAAK,EAAEJ,IAAI;MAAEK,MAAM,EAAEL,IAAI;MAAEG;IAAa,CAAC,EAAEF,KAAK,CAAE;IAC5D,MAAM,EAAE,OAAOJ,MAAM,KAAK,QAAQ,GAAG;MAAES,GAAG,EAAET;IAAO,CAAC,GAAGA,MAAO;IAC9D,UAAU,EAAC;EAAO,GACdK,KAAK,EACT;AAEN,CAAC;AAAC,eAEaN,WAAW;AAAA"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeSvg = require("react-native-svg");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
13
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
14
|
-
class CircularProgress extends _react.default.Component {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
_defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
|
|
18
|
-
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
19
|
-
return {
|
|
20
|
-
x: centerX + radius * Math.cos(angleInRadians),
|
|
21
|
-
y: centerY + radius * Math.sin(angleInRadians)
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
_defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
|
|
25
|
-
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
26
|
-
var end = this.polarToCartesian(x, y, radius, startAngle);
|
|
27
|
-
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
|
|
28
|
-
var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
|
|
29
|
-
return d.join(" ");
|
|
30
|
-
});
|
|
31
|
-
_defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const {
|
|
35
|
-
size,
|
|
36
|
-
width,
|
|
37
|
-
backgroundWidth,
|
|
38
|
-
tintColor = "black",
|
|
39
|
-
tintTransparency = true,
|
|
40
|
-
backgroundColor,
|
|
41
|
-
style,
|
|
42
|
-
rotation = 90,
|
|
43
|
-
lineCap = "butt",
|
|
44
|
-
arcSweepAngle = 360,
|
|
45
|
-
fill,
|
|
46
|
-
children,
|
|
47
|
-
childrenContainerStyle,
|
|
48
|
-
padding = 0,
|
|
49
|
-
renderCap,
|
|
50
|
-
dashedBackground = {
|
|
51
|
-
width: 0,
|
|
52
|
-
gap: 0
|
|
53
|
-
},
|
|
54
|
-
dashedTint = {
|
|
55
|
-
width: 0,
|
|
56
|
-
gap: 0
|
|
57
|
-
}
|
|
58
|
-
} = this.props;
|
|
59
|
-
const maxWidthCircle = backgroundWidth ? Math.max(width, backgroundWidth) : width;
|
|
60
|
-
const sizeWithPadding = size / 2 + padding / 2;
|
|
61
|
-
const radius = size / 2 - maxWidthCircle / 2 - padding / 2;
|
|
62
|
-
const currentFillAngle = arcSweepAngle * this.clampFill(fill) / 100;
|
|
63
|
-
const backgroundPath = this.circlePath(sizeWithPadding, sizeWithPadding, radius, tintTransparency ? 0 : currentFillAngle, arcSweepAngle);
|
|
64
|
-
const circlePathItem = this.circlePath(sizeWithPadding, sizeWithPadding, radius, 0, currentFillAngle);
|
|
65
|
-
const coordinate = this.polarToCartesian(sizeWithPadding, sizeWithPadding, radius, currentFillAngle);
|
|
66
|
-
const cap = renderCap ? renderCap({
|
|
67
|
-
center: coordinate
|
|
68
|
-
}) : null;
|
|
69
|
-
const offset = size - maxWidthCircle * 2;
|
|
70
|
-
const localChildrenContainerStyle = [{
|
|
71
|
-
position: "absolute",
|
|
72
|
-
left: maxWidthCircle + padding / 2,
|
|
73
|
-
top: maxWidthCircle + padding / 2,
|
|
74
|
-
width: offset,
|
|
75
|
-
height: offset,
|
|
76
|
-
borderRadius: offset / 2,
|
|
77
|
-
alignItems: "center",
|
|
78
|
-
justifyContent: "center",
|
|
79
|
-
overflow: "hidden"
|
|
80
|
-
}, childrenContainerStyle];
|
|
81
|
-
const strokeDasharrayTint = dashedTint.gap > 0 ? Object.values(dashedTint).map(value => value.toString()).join(" ") : "";
|
|
82
|
-
const strokeDasharrayBackground = dashedBackground.gap > 0 ? Object.values(dashedBackground).map(value => value.toString()).join(" ") : "";
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
84
|
-
style: style
|
|
85
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Svg, {
|
|
86
|
-
width: size + padding,
|
|
87
|
-
height: size + padding
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.G, {
|
|
89
|
-
rotation: rotation,
|
|
90
|
-
originX: (size + padding) / 2,
|
|
91
|
-
originY: (size + padding) / 2
|
|
92
|
-
}, backgroundColor && /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Path, {
|
|
93
|
-
d: backgroundPath,
|
|
94
|
-
stroke: backgroundColor,
|
|
95
|
-
strokeWidth: backgroundWidth || width,
|
|
96
|
-
strokeLinecap: lineCap,
|
|
97
|
-
strokeDasharray: strokeDasharrayBackground,
|
|
98
|
-
fill: "transparent"
|
|
99
|
-
}), fill > 0 && /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Path, {
|
|
100
|
-
d: circlePathItem,
|
|
101
|
-
stroke: tintColor,
|
|
102
|
-
strokeWidth: width,
|
|
103
|
-
strokeLinecap: lineCap,
|
|
104
|
-
strokeDasharray: strokeDasharrayTint,
|
|
105
|
-
fill: "transparent"
|
|
106
|
-
}), cap)), children && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
107
|
-
style: localChildrenContainerStyle
|
|
108
|
-
}, children(fill)));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
var _default = CircularProgress;
|
|
112
|
-
exports.default = _default;
|
|
113
|
-
//# sourceMappingURL=CircularProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CircularProgress","React","Component","centerX","centerY","radius","angleInDegrees","angleInRadians","Math","PI","x","cos","y","sin","startAngle","endAngle","start","polarToCartesian","end","largeArcFlag","d","join","fill","min","max","render","size","width","backgroundWidth","tintColor","tintTransparency","backgroundColor","style","rotation","lineCap","arcSweepAngle","children","childrenContainerStyle","padding","renderCap","dashedBackground","gap","dashedTint","props","maxWidthCircle","sizeWithPadding","currentFillAngle","clampFill","backgroundPath","circlePath","circlePathItem","coordinate","cap","center","offset","localChildrenContainerStyle","position","left","top","height","borderRadius","alignItems","justifyContent","overflow","strokeDasharrayTint","Object","values","map","value","toString","strokeDasharrayBackground"],"sourceRoot":"../../src","sources":["CircularProgress.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAAgD;AAAA;AAAA;AAAA;AAsBhD,MAAMA,gBAAgB,SAASC,cAAK,CAACC,SAAS,CAAQ;EAAA;IAAA;IAAA,0CACjC,CACjBC,OAAe,EACfC,OAAe,EACfC,MAAc,EACdC,cAAsB,KACO;MAC7B,IAAIC,cAAc,GAAI,CAACD,cAAc,GAAG,EAAE,IAAIE,IAAI,CAACC,EAAE,GAAI,KAAK;MAC9D,OAAO;QACLC,CAAC,EAAEP,OAAO,GAAGE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C,EAAE4B,cAAe;MAClB,MAAM,EAAErB,SAAU;MAClB,WAAW,EAAEF,KAAM;MACnB,aAAa,EAAEO,OAAQ;MACvB,eAAe,EAAE8B,mBAAoB;MACrC,IAAI,EAAC;IAAa,EAErB,EACAZ,GAAG,CACF,CACA,EACLhB,QAAQ,iBACP,6BAAC,iBAAI;MAAC,KAAK,EAAEmB;IAA4B,GAAEnB,QAAQ,CAACd,IAAI,CAAC,CAC1D,CACI;EAEX;AACF;AAAC,eAEctB,gBAAgB;AAAA"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _theming = require("../theming");
|
|
10
|
-
var _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
const Container = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
useThemeGutterPadding,
|
|
17
|
-
borderColor,
|
|
18
|
-
borderWidth,
|
|
19
|
-
backgroundColor,
|
|
20
|
-
backgroundImage,
|
|
21
|
-
backgroundImageResizeMode,
|
|
22
|
-
elevation,
|
|
23
|
-
style,
|
|
24
|
-
children,
|
|
25
|
-
theme,
|
|
26
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
27
|
-
...rest
|
|
28
|
-
} = _ref;
|
|
29
|
-
const {
|
|
30
|
-
flex,
|
|
31
|
-
flexGrow,
|
|
32
|
-
flexWrap,
|
|
33
|
-
flexBasis,
|
|
34
|
-
flexShrink,
|
|
35
|
-
flexDirection,
|
|
36
|
-
alignContent,
|
|
37
|
-
justifyContent,
|
|
38
|
-
alignItems,
|
|
39
|
-
padding,
|
|
40
|
-
paddingTop,
|
|
41
|
-
paddingBottom,
|
|
42
|
-
paddingLeft,
|
|
43
|
-
paddingRight,
|
|
44
|
-
paddingVertical,
|
|
45
|
-
paddingHorizontal,
|
|
46
|
-
...styleProp
|
|
47
|
-
} = _reactNative.StyleSheet.flatten(style) || {};
|
|
48
|
-
const containerStyle = {
|
|
49
|
-
backgroundColor,
|
|
50
|
-
borderColor,
|
|
51
|
-
borderWidth,
|
|
52
|
-
width: "100%",
|
|
53
|
-
...styleProp
|
|
54
|
-
};
|
|
55
|
-
const innerStyle = {
|
|
56
|
-
flex,
|
|
57
|
-
flexGrow,
|
|
58
|
-
flexWrap,
|
|
59
|
-
flexBasis,
|
|
60
|
-
flexShrink,
|
|
61
|
-
flexDirection,
|
|
62
|
-
alignContent,
|
|
63
|
-
justifyContent,
|
|
64
|
-
alignItems,
|
|
65
|
-
padding,
|
|
66
|
-
paddingTop,
|
|
67
|
-
paddingBottom,
|
|
68
|
-
paddingLeft,
|
|
69
|
-
paddingRight,
|
|
70
|
-
paddingVertical,
|
|
71
|
-
paddingHorizontal: paddingHorizontal || useThemeGutterPadding ? 16 : 0
|
|
72
|
-
};
|
|
73
|
-
const Wrap = elevation ? _Elevation.default : _reactNative.View;
|
|
74
|
-
if (elevation) containerStyle.elevation = elevation;
|
|
75
|
-
return /*#__PURE__*/React.createElement(Wrap, {
|
|
76
|
-
style: [containerStyle, style],
|
|
77
|
-
...rest
|
|
78
|
-
}, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
79
|
-
source: typeof backgroundImage === "string" ? {
|
|
80
|
-
uri: backgroundImage
|
|
81
|
-
} : backgroundImage,
|
|
82
|
-
resizeMode: backgroundImageResizeMode,
|
|
83
|
-
style: {
|
|
84
|
-
flex: 1
|
|
85
|
-
}
|
|
86
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
87
|
-
style: innerStyle
|
|
88
|
-
}, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
89
|
-
style: innerStyle
|
|
90
|
-
}, children));
|
|
91
|
-
};
|
|
92
|
-
var _default = (0, _theming.withTheme)(Container);
|
|
93
|
-
exports.default = _default;
|
|
94
|
-
//# sourceMappingURL=Container.js.map style: {
|
|
95
|
-
flex: 1
|
|
96
|
-
}
|
|
97
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
98
|
-
style: innerStyle
|
|
99
|
-
}, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
100
|
-
style: innerStyle
|
|
101
|
-
}, children));
|
|
102
|
-
};
|
|
103
|
-
var _default = (0, _theming.withTheme)(Container);
|
|
104
|
-
exports.default = _default;
|
|
105
|
-
//# sourceMappingURL=Container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Container","useThemeGutterPadding","borderColor","borderWidth","backgroundColor","backgroundImage","backgroundImageResizeMode","elevation","style","children","theme","rest","flex","flexGrow","flexWrap","flexBasis","flexShrink","flexDirection","alignContent","justifyContent","alignItems","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","paddingVertical","paddingHorizontal","styleProp","StyleSheet","flatten","containerStyle","width","innerStyle","Wrap","Elevation","View","React","createElement","ImageBackground","source","uri","resizeMode","withTheme"],"sourceRoot":"../../src","sources":["Container.js"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAAoC;AAAA;AAAA;AACpC,MAAMA,SAAS,GAAG,QACJ;EAAA,IADK;IAAEC,qBAAqB;IAAEC,WAAW;IAAEC,WAAW;IAAEC,eAAe;IAAEC,eAAe;IAAEC,yBAAyB;IAAEC,SAAS;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,KAAK;IAAE;IACtK,GAAGC;EAAK,CAAC;EACL,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,UAAU;IAAEC,aAAa;IAAEC,YAAY;IAAEC,cAAc;IAAEC,UAAU;IAAEC,OAAO;IAAEC,UAAU;IAAEC,aAAa;IAAEC,WAAW;IAAEC,YAAY;IAAEC,eAAe;IAAEC,iBAAiB;IAAE,GAAGC;EAAU,CAAC,GAAGC,uBAAU,CAACC,OAAO,CAACtB,KAAK,CAAC,IAAI,CAAC,CAAC;EACrQ,MAAMuB,cAAc,GAAG;IACnB3B,eAAe;IACfF,WAAW;IACXC,WAAW;IACX6B,KAAK,EAAE,MAAM;IACb,GAAGJ;EACP,CAAC;EACD,MAAMK,UAAU,GAAG;IACfrB,IAAI;IACJC,QAAQ;IACRC,QAAQ;IACRC,SAAS;IACTC,UAAU;IACVC,aAAa;IACbC,YAAY;IACZC,cAAc;IACdC,UAAU;IACVC,OAAO;IACPC,UAAU;IACVC,aAAa;IACbC,WAAW;IACXC,YAAY;IACZC,eAAe;IACfC,iBAAiB,EAAEA,iBAAiB,IAAI1B,qBAAqB,GAAG,EAAE,GAAG;EACzE,CAAC;EACD,MAAMiC,IAAI,GAAG3B,SAAS,GAAG4B,kBAAS,GAAGC,iBAAI;EACzC,IAAI7B,SAAS,EACTwB,cAAc,CAACxB,SAAS,GAAGA,SAAS;EACxC,oBAAQ8B,KAAK,CAACC,aAAa,CAACJ,IAAI,EAAE;IAAE1B,KAAK,EAAE,CAACuB,cAAc,EAAEvB,KAAK,CAAC;IAAE,GAAGG;EAAK,CAAC,EAAEN,eAAe,gBAAIgC,KAAK,CAACC,aAAa,CAACC,4BAAe,EAAE;IAAEC,MAAM,EAAE,OAAOnC,eAAe,KAAK,QAAQ,GAC1K;MAAEoC,GAAG,EAAEpC;IAAgB,CAAC,GACxBA,eAAe;IAAEqC,UAAU,EAAEpC,yBAAyB;IAAEE,KAAK,EAAE;MACjEI,IAAI,EAAE;IACV;EAAE,CAAC,eACHyB,KAAK,CAACC,aAAa,CAACF,iBAAI,EAAE;IAAE5B,KAAK,EAAEyB;EAAW,CAAC,EAAExB,QAAQ,CAAC,CAAC,gBAAK4B,KAAK,CAACC,aAAa,CAACF,iBAAI,EAAE;IAAE5B,KAAK,EAAEyB;EAAW,CAAC,EAAExB,QAAQ,CAAE,CAAC;AACpI,CAAC;AAAC,eACa,IAAAkC,kBAAS,EAAC3C,SAAS,CAAC;AAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _theming = require("../theming");
|
|
9
|
-
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
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); }
|
|
12
|
-
const getWidth = numColumns => {
|
|
13
|
-
switch (numColumns) {
|
|
14
|
-
case 1:
|
|
15
|
-
return "33%";
|
|
16
|
-
case 2:
|
|
17
|
-
return "50%";
|
|
18
|
-
default:
|
|
19
|
-
return "100%";
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
const Card = _ref => {
|
|
23
|
-
let {
|
|
24
|
-
numColumns = 3,
|
|
25
|
-
children,
|
|
26
|
-
onPress,
|
|
27
|
-
style,
|
|
28
|
-
...rest
|
|
29
|
-
} = _ref;
|
|
30
|
-
const width = getWidth(numColumns);
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
|
|
32
|
-
disabled: !onPress,
|
|
33
|
-
onPress: onPress,
|
|
34
|
-
style: [style, {
|
|
35
|
-
width
|
|
36
|
-
}]
|
|
37
|
-
}, rest), children);
|
|
38
|
-
};
|
|
39
|
-
var _default = (0, _theming.withTheme)(Card);
|
|
40
|
-
exports.default = _default;
|
|
41
|
-
//# sourceMappingURL=DeprecatedCardWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getWidth","numColumns","Card","children","onPress","style","rest","width","withTheme"],"sourceRoot":"../../src","sources":["DeprecatedCardWrapper.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAAoC;AAAA;AAYpC,MAAMA,QAAQ,GAAIC,UAAkB,IAAK;EACvC,QAAQA,UAAU;IAChB,KAAK,CAAC;MACJ,OAAO,KAAK;IACd,KAAK,CAAC;MACJ,OAAO,KAAK;IACd;MACE,OAAO,MAAM;EAAC;AAEpB,CAAC;AAED,MAAMC,IAA8C,GAAG,QAMjD;EAAA,IANkD;IACtDD,UAAU,GAAG,CAAC;IACdE,QAAQ;IACRC,OAAO;IACPC,KAAK;IACL,GAAGC;EACL,CAAC;EACC,MAAMC,KAAK,GAAGP,QAAQ,CAACC,UAAU,CAAC;EAClC,oBACE,6BAAC,kBAAS;IACR,QAAQ,EAAE,CAACG,OAAQ;IACnB,OAAO,EAAEA,OAAQ;IACjB,KAAK,EAAE,CAACC,KAAK,EAAE;MAAEE;IAAM,CAAC;EAAE,GACtBD,IAAI,GAEPH,QAAQ,CACC;AAEhB,CAAC;AAAC,eAEa,IAAAK,kBAAS,EAACN,IAAI,CAAC;AAAA"}
|