@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
package/src/index.js
CHANGED
|
@@ -2,52 +2,32 @@ export { injectIcon } from "./interfaces/Icon";
|
|
|
2
2
|
export { withTheme, ThemeProvider } from "./theming";
|
|
3
3
|
export { default as Provider } from "./Provider";
|
|
4
4
|
export { default as DefaultTheme } from "./styles/DefaultTheme";
|
|
5
|
+
// BASIC
|
|
6
|
+
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
7
|
+
// BUTTONS
|
|
8
|
+
export { Button } from "./components/Button";
|
|
5
9
|
export { Link } from "./components/Text";
|
|
6
|
-
export { default as Banner } from "./components/Banner";
|
|
7
|
-
export { Button, ButtonSolid, ButtonOutline } from "./components/Button";
|
|
8
|
-
export { default as Avatar } from "./components/CircleImage";
|
|
9
|
-
export { default as AvatarEdit } from "./components/AvatarEdit";
|
|
10
|
-
export { default as Card } from "./components/Card";
|
|
11
|
-
export { default as Carousel } from "./components/Carousel";
|
|
12
|
-
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
13
|
-
export { default as CircleImage } from "./components/CircleImage";
|
|
14
|
-
export { default as Container } from "./components/Container";
|
|
15
|
-
export { default as Divider } from "./components/Divider";
|
|
16
|
-
export { default as FAB } from "./components/FAB";
|
|
17
|
-
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
18
10
|
export { default as IconButton } from "./components/IconButton";
|
|
19
|
-
export { default as Image } from "./components/Image";
|
|
20
|
-
export { default as SVG } from "./components/SVG";
|
|
21
|
-
export { default as NumberInput } from "./components/NumberInput";
|
|
22
|
-
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
23
|
-
export { default as StarRating } from "./components/StarRating";
|
|
24
|
-
export { default as Surface } from "./components/Surface";
|
|
25
|
-
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
26
|
-
export { default as TextField } from "./components/TextField";
|
|
27
|
-
export { default as ToggleButton } from "./components/ToggleButton";
|
|
28
11
|
export { default as Touchable } from "./components/Touchable";
|
|
29
|
-
|
|
30
|
-
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
|
31
|
-
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
32
|
-
export { TabView, TabViewItem } from "./components/TabView";
|
|
33
|
-
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
|
34
|
-
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
35
|
-
/* Deprecated: Fix or Delete! */
|
|
36
|
-
export { default as CardBlock } from "./components/CardBlock";
|
|
37
|
-
export { default as CardContainer } from "./components/CardContainer";
|
|
38
|
-
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
39
|
-
export { default as CardInline } from "./components/CardInline";
|
|
12
|
+
// INPUTS
|
|
40
13
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
41
|
-
export { default as
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as HeaderOverline } from "./components/HeaderOverline";
|
|
14
|
+
export { default as NumberInput } from "./components/NumberInput";
|
|
15
|
+
export { default as TextField } from "./components/TextField";
|
|
44
16
|
export { default as Picker } from "./components/Picker/Picker";
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
|
|
49
|
-
export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
|
|
17
|
+
// CONTROLS
|
|
18
|
+
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
19
|
+
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
50
20
|
export { default as Slider } from "./components/Slider";
|
|
51
21
|
export { default as Stepper } from "./components/Stepper";
|
|
52
|
-
export {
|
|
53
|
-
|
|
22
|
+
export { default as StarRating } from "./components/StarRating";
|
|
23
|
+
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
24
|
+
// MEDIA
|
|
25
|
+
export { default as SVG } from "./components/SVG";
|
|
26
|
+
// FLEX LAYOUT
|
|
27
|
+
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
|
28
|
+
// SWIPER
|
|
29
|
+
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
30
|
+
// CONTAINERS
|
|
31
|
+
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
32
|
+
// ACTIONSHEET
|
|
33
|
+
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
package/src/index.tsx
CHANGED
|
@@ -3,39 +3,38 @@ export { withTheme, ThemeProvider } from "./theming";
|
|
|
3
3
|
export { default as Provider } from "./Provider";
|
|
4
4
|
export { default as DefaultTheme } from "./styles/DefaultTheme";
|
|
5
5
|
|
|
6
|
+
// BASIC
|
|
7
|
+
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
8
|
+
|
|
9
|
+
// BUTTONS
|
|
10
|
+
export { Button } from "./components/Button";
|
|
6
11
|
export { Link } from "./components/Text";
|
|
7
|
-
export { default as Banner } from "./components/Banner";
|
|
8
|
-
export { Button, ButtonSolid, ButtonOutline } from "./components/Button";
|
|
9
|
-
export { default as Avatar } from "./components/CircleImage";
|
|
10
|
-
export { default as AvatarEdit } from "./components/AvatarEdit";
|
|
11
|
-
export { default as Card } from "./components/Card";
|
|
12
|
-
export { default as Carousel } from "./components/Carousel";
|
|
13
|
-
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
14
|
-
export { default as CircleImage } from "./components/CircleImage";
|
|
15
|
-
export { default as Container } from "./components/Container";
|
|
16
|
-
export { default as Divider } from "./components/Divider";
|
|
17
|
-
export { default as FAB } from "./components/FAB";
|
|
18
|
-
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
19
12
|
export { default as IconButton } from "./components/IconButton";
|
|
20
|
-
export { default as
|
|
21
|
-
|
|
13
|
+
export { default as Touchable } from "./components/Touchable";
|
|
14
|
+
|
|
15
|
+
// INPUTS
|
|
16
|
+
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
22
17
|
export { default as NumberInput } from "./components/NumberInput";
|
|
23
|
-
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
24
|
-
export { default as StarRating } from "./components/StarRating";
|
|
25
|
-
export { default as Surface } from "./components/Surface";
|
|
26
|
-
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
27
18
|
export { default as TextField } from "./components/TextField";
|
|
28
|
-
export { default as
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
export { default as Picker } from "./components/Picker/Picker";
|
|
20
|
+
|
|
21
|
+
// CONTROLS
|
|
22
|
+
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
31
23
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export {
|
|
24
|
+
RadioButton,
|
|
25
|
+
RadioButtonGroup,
|
|
26
|
+
RadioButtonRow,
|
|
27
|
+
RadioButtonFieldGroup,
|
|
28
|
+
} from "./components/RadioButton/index";
|
|
29
|
+
export { default as Slider } from "./components/Slider";
|
|
30
|
+
export { default as Stepper } from "./components/Stepper";
|
|
31
|
+
export { default as StarRating } from "./components/StarRating";
|
|
32
|
+
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
33
|
+
|
|
34
|
+
// MEDIA
|
|
35
|
+
export { default as SVG } from "./components/SVG";
|
|
38
36
|
|
|
37
|
+
// FLEX LAYOUT
|
|
39
38
|
export {
|
|
40
39
|
Center,
|
|
41
40
|
Circle,
|
|
@@ -45,30 +44,15 @@ export {
|
|
|
45
44
|
Spacer,
|
|
46
45
|
} from "./components/Layout";
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
RadioButtonGroup,
|
|
51
|
-
RadioButtonRow,
|
|
52
|
-
RadioButtonFieldGroup,
|
|
53
|
-
} from "./components/RadioButton/index";
|
|
47
|
+
// SWIPER
|
|
48
|
+
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
54
49
|
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
export { default as CardContainer } from "./components/CardContainer";
|
|
58
|
-
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
59
|
-
export { default as CardInline } from "./components/CardInline";
|
|
60
|
-
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
61
|
-
export { default as HeaderLarge } from "./components/HeaderLarge";
|
|
62
|
-
export { default as HeaderMedium } from "./components/HeaderMedium";
|
|
63
|
-
export { default as HeaderOverline } from "./components/HeaderOverline";
|
|
64
|
-
export { default as Picker } from "./components/Picker/Picker";
|
|
65
|
-
export { default as ProgressBar } from "./components/ProgressBar";
|
|
66
|
-
export { default as ProgressCircle } from "./components/ProgressCircle";
|
|
67
|
-
export { default as RowBodyIcon } from "./components/RowBodyIcon";
|
|
68
|
-
export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
|
|
69
|
-
export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
|
|
70
|
-
export { default as Slider } from "./components/Slider";
|
|
71
|
-
export { default as Stepper } from "./components/Stepper";
|
|
72
|
-
export { useAuthState } from "./components/useAuthState";
|
|
50
|
+
// CONTAINERS
|
|
51
|
+
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
73
52
|
|
|
74
|
-
//
|
|
53
|
+
// ACTIONSHEET
|
|
54
|
+
export {
|
|
55
|
+
ActionSheet,
|
|
56
|
+
ActionSheetItem,
|
|
57
|
+
ActionSheetCancel,
|
|
58
|
+
} from "./components/ActionSheet";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_TYPES, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
|
-
name: "
|
|
3
|
+
name: "Pressable",
|
|
4
4
|
tag: "Touchable",
|
|
5
5
|
description: "Simple button with no styles",
|
|
6
6
|
category: COMPONENT_TYPES.button,
|
|
@@ -1,67 +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 _CircularProgress = _interopRequireDefault(require("./CircularProgress"));
|
|
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 AnimatedProgress = _reactNative.Animated.createAnimatedComponent(_CircularProgress.default);
|
|
15
|
-
const AnimatedCircularProgress = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
duration = 500,
|
|
18
|
-
easing = _reactNative.Easing.out(_reactNative.Easing.ease),
|
|
19
|
-
fill,
|
|
20
|
-
prefill = 0,
|
|
21
|
-
useNativeDriver = false,
|
|
22
|
-
tintColorSecondary,
|
|
23
|
-
onAnimationComplete,
|
|
24
|
-
tintColor = "black",
|
|
25
|
-
...other
|
|
26
|
-
} = _ref;
|
|
27
|
-
const [fillAnimation] = React.useState(new _reactNative.Animated.Value(prefill));
|
|
28
|
-
const animate = React.useCallback(function () {
|
|
29
|
-
let toVal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
30
|
-
let dur = arguments.length > 1 ? arguments[1] : undefined;
|
|
31
|
-
let ease = arguments.length > 2 ? arguments[2] : undefined;
|
|
32
|
-
const toValue = toVal >= 0 ? toVal : fill;
|
|
33
|
-
const dura = dur || duration;
|
|
34
|
-
const eas = ease || easing;
|
|
35
|
-
const useNative = useNativeDriver;
|
|
36
|
-
const anim = _reactNative.Animated.timing(fillAnimation, {
|
|
37
|
-
useNativeDriver: useNative,
|
|
38
|
-
toValue,
|
|
39
|
-
easing: eas,
|
|
40
|
-
duration: dura
|
|
41
|
-
});
|
|
42
|
-
anim.start(onAnimationComplete);
|
|
43
|
-
return anim;
|
|
44
|
-
}, [duration, easing, fill, useNativeDriver, fillAnimation, onAnimationComplete]);
|
|
45
|
-
const animateColor = () => {
|
|
46
|
-
if (!tintColorSecondary) {
|
|
47
|
-
return tintColor;
|
|
48
|
-
}
|
|
49
|
-
const tintAnimation = fillAnimation.interpolate({
|
|
50
|
-
inputRange: [0, 100],
|
|
51
|
-
outputRange: [tintColor, tintColorSecondary]
|
|
52
|
-
});
|
|
53
|
-
return tintAnimation;
|
|
54
|
-
};
|
|
55
|
-
React.useEffect(() => {
|
|
56
|
-
animate();
|
|
57
|
-
}, [fill, animate]);
|
|
58
|
-
return /*#__PURE__*/React.createElement(AnimatedProgress, _extends({}, other, {
|
|
59
|
-
style: other.style,
|
|
60
|
-
childrenContainerStyle: other.childrenContainerStyle,
|
|
61
|
-
fill: fillAnimation,
|
|
62
|
-
tintColor: animateColor()
|
|
63
|
-
}));
|
|
64
|
-
};
|
|
65
|
-
var _default = AnimatedCircularProgress;
|
|
66
|
-
exports.default = _default;
|
|
67
|
-
//# sourceMappingURL=AnimatedCircularProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AnimatedProgress","Animated","createAnimatedComponent","CircularProgress","AnimatedCircularProgress","duration","easing","Easing","out","ease","fill","prefill","useNativeDriver","tintColorSecondary","onAnimationComplete","tintColor","other","fillAnimation","React","useState","Value","animate","useCallback","toVal","dur","toValue","dura","eas","useNative","anim","timing","start","animateColor","tintAnimation","interpolate","inputRange","outputRange","useEffect","style","childrenContainerStyle"],"sourceRoot":"../../src","sources":["AnimatedCircularProgress.tsx"],"mappings":";;;;;;AAAA;AACA;AAOA;AAE4B;AAAA;AAAA;AAAA;AAC5B,MAAMA,gBAAgB,GAAGC,qBAAQ,CAACC,uBAAuB,CAACC,yBAAgB,CAAC;AAW3E,MAAMC,wBAAkE,GAAG,QAUrE;EAAA,IAVsE;IAC1EC,QAAQ,GAAG,GAAG;IACdC,MA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B,SAAS,EAAEF,kBAAkB;IAC7C,CAAC,CAAC;IAEF,OAAOoB,aAAa;EACtB,CAAC;EAEDf,KAAK,CAACmB,SAAS,CAAC,MAAM;IACpBhB,OAAO,EAAE;EACX,CAAC,EAAE,CAACX,IAAI,EAAEW,OAAO,CAAC,CAAC;EAEnB,oBACE,oBAAC,gBAAgB,eACXL,KAAK;IACT,KAAK,EAAEA,KAAK,CAACsB,KAA0D;IACvE,sBAAsB,EACpBtB,KAAK,CAACuB,sBAGP;IACD,IAAI,EAAEtB,aAAc;IACpB,SAAS,EAAEe,YAAY;EAAG,GAC1B;AAEN,CAAC;AAAC,eAEa5B,wBAAwB;AAAA"}
|
|
@@ -1,51 +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
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
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); }
|
|
11
|
-
const AspectRatio = props => {
|
|
12
|
-
const [layout, setLayout] = _react.default.useState(null);
|
|
13
|
-
const {
|
|
14
|
-
aspectRatio = 1,
|
|
15
|
-
...inputStyle
|
|
16
|
-
} = _reactNative.StyleSheet.flatten(props.style) || {};
|
|
17
|
-
const style = [inputStyle, {
|
|
18
|
-
aspectRatio
|
|
19
|
-
}];
|
|
20
|
-
if (layout) {
|
|
21
|
-
const {
|
|
22
|
-
width = 0,
|
|
23
|
-
height = 0
|
|
24
|
-
} = layout;
|
|
25
|
-
if (width === 0) {
|
|
26
|
-
style.push({
|
|
27
|
-
width: height * (1 / aspectRatio),
|
|
28
|
-
height
|
|
29
|
-
});
|
|
30
|
-
} else {
|
|
31
|
-
style.push({
|
|
32
|
-
width,
|
|
33
|
-
height: width * (1 / aspectRatio)
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({}, props, {
|
|
38
|
-
style: style,
|
|
39
|
-
onLayout: _ref => {
|
|
40
|
-
let {
|
|
41
|
-
nativeEvent: {
|
|
42
|
-
layout: l
|
|
43
|
-
}
|
|
44
|
-
} = _ref;
|
|
45
|
-
return setLayout(l);
|
|
46
|
-
}
|
|
47
|
-
}), props.children);
|
|
48
|
-
};
|
|
49
|
-
var _default = AspectRatio;
|
|
50
|
-
exports.default = _default;
|
|
51
|
-
//# sourceMappingURL=AspectRatio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AspectRatio","props","layout","setLayout","React","useState","aspectRatio","inputStyle","StyleSheet","flatten","style","width","height","push","nativeEvent","l","children"],"sourceRoot":"../../src","sources":["AspectRatio.tsx"],"mappings":";;;;;;AAAA;AACA;AAMsB;AAAA;AAOtB,MAAMA,WAAqD,GAAIC,KAAK,IAAK;EACvE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAyB,IAAI,CAAC;EACxE,MAAM;IAAEC,WAAW,GAAG,CAAC;IAAE,GAAGC;EAAW,CAAC,GACtCC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAACS,KAAK,CAAC,IAAI,CAAC,CAAC;EACvC,MAAMA,KAAK,GAAG,CAACH,UAAU,EAAE;IAAED;EAAY,CAAC,CAAC;EAE3C,IAAIJ,MAAM,EAAE;IACV,MAAM;MAAES,KAAK,GAAG,CAAC;MAAEC,MAAM,GAAG;IAAE,CAAC,GAAGV,MAAM;IACxC,IAAIS,KAAK,KAAK,CAAC,EAAE;MACfD,KAAK,CAACG,IAAI,CAAC;QAAEF,KAAK,EAAEC,MAAM,IAAI,CAAC,GAAGN,WAAW,CAAC;QAAEM;MAAO,CAAC,CAAC;IAC3D,CAAC,MAAM;MACLF,KAAK,CAACG,IAAI,CAAC;QAAEF,KAAK;QAAEC,MAAM,EAAED,KAAK,IAAI,CAAC,GAAGL,WAAW;MAAE,CAAC,CAAC;IAC1D;EACF;EACA,oBACE,6BAAC,iBAAI,eACCL,KAAK;IACT,KAAK,EAAES,KAAM;IACb,QAAQ,EAAE;MAAA,IAAC;QAAEI,WAAW,EAAE;UAAEZ,MAAM,EAAEa;QAAE;MAAE,CAAC;MAAA,OAAKZ,SAAS,CAACY,CAAC,CAAC;IAAA;EAAC,IAE1Dd,KAAK,CAACe,QAAQ,CACV;AAEX,CAAC;AAAC,eAEahB,WAAW;AAAA"}
|
|
@@ -1,60 +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 _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
10
|
-
var _CircleImage = _interopRequireDefault(require("./CircleImage"));
|
|
11
|
-
var _theming = require("../theming");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
15
|
-
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); }
|
|
16
|
-
const AvatarEdit = _ref => {
|
|
17
|
-
let {
|
|
18
|
-
Icon,
|
|
19
|
-
image,
|
|
20
|
-
size = 80,
|
|
21
|
-
onPress = () => {},
|
|
22
|
-
style,
|
|
23
|
-
theme,
|
|
24
|
-
...rest
|
|
25
|
-
} = _ref;
|
|
26
|
-
const colorStyles = {
|
|
27
|
-
editBackgroundColor: theme.colors.primary,
|
|
28
|
-
editIconColor: theme.colors.surface,
|
|
29
|
-
editBorderColor: theme.colors.surface
|
|
30
|
-
};
|
|
31
|
-
const dimensions = {
|
|
32
|
-
width: size,
|
|
33
|
-
height: size
|
|
34
|
-
};
|
|
35
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
36
|
-
style: [style, dimensions]
|
|
37
|
-
}, rest), /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
38
|
-
onPress: onPress
|
|
39
|
-
}, /*#__PURE__*/React.createElement(_CircleImage.default, {
|
|
40
|
-
source: image,
|
|
41
|
-
size: size
|
|
42
|
-
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
43
|
-
style: {
|
|
44
|
-
position: "absolute",
|
|
45
|
-
top: -3,
|
|
46
|
-
right: -3,
|
|
47
|
-
borderColor: colorStyles.editBorderColor,
|
|
48
|
-
backgroundColor: colorStyles.editBackgroundColor,
|
|
49
|
-
borderRadius: size * (3 / 16),
|
|
50
|
-
padding: size * (3 / 32)
|
|
51
|
-
}
|
|
52
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
53
|
-
name: "MaterialIcons/edit",
|
|
54
|
-
color: colorStyles.editIconColor,
|
|
55
|
-
size: size * (3 / 16)
|
|
56
|
-
}))));
|
|
57
|
-
};
|
|
58
|
-
var _default = (0, _theming.withTheme)(AvatarEdit);
|
|
59
|
-
exports.default = _default;
|
|
60
|
-
//# sourceMappingURL=AvatarEdit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AvatarEdit","Icon","image","size","onPress","style","theme","rest","colorStyles","editBackgroundColor","colors","primary","editIconColor","surface","editBorderColor","dimensions","width","height","position","top","right","borderColor","backgroundColor","borderRadius","padding","withTheme"],"sourceRoot":"../../src","sources":["AvatarEdit.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAavC,MAAMA,UAAoD,GAAG,QAQvD;EAAA,IARwD;IAC5DC,IAAI;IACJC,KAAK;IACLC,IAAI,GAAG,EAAE;IACTC,OAAO,GAAG,MAAM,CAAC,CAAC;IAClBC,KAAK;IACLC,KAAK;IACL,GAAGC;EACL,CAAC;EACC,MAAMC,WAAW,GAAG;IAClBC,mBAAmB,EAAEH,KAAK,CAACI,MAAM,CAACC,OAAO;IACzCC,aAAa,EAAEN,KAAK,CAACI,MAAM,CAACG,OAAO;IACnCC,eAAe,EAAER,KAAK,CAACI,MAAM,CAACG;EAChC,CAAC;EAED,MAAME,UAAU,GAAG;IACjBC,KAAK,EAAEb,IAAI;IACXc,MAAM,EAAEd;EACV,CAAC;EAED,oBACE,oBAAC,iBAAI;IAAC,KAAK,EAAE,CAACE,KAAK,EAAEU,UAAU;EAAE,GAAKR,IAAI,gBACxC,oBAAC,kBAAS;IAAC,OAAO,EAAEH;EAAQ,gBAC1B,oBAAC,oBAAW;IAAC,MAAM,EAAEF,KAAM;IAAC,IAAI,EAAEC;EAAK,EAAG,eAC1C,oBAAC,iBAAI;IACH,KAAK,EAAE;MACLe,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,CAAC,CAAC;MACPC,KAAK,EAAE,CAAC,CAAC;MACTC,WAAW,EAAEb,WAAW,CAACM,eAAe;MACxCQ,eAAe,EAAEd,WAAW,CAACC,mBAAmB;MAChDc,YAAY,EAAEpB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;MAC7BqB,OAAO,EAAErB,IAAI,IAAI,CAAC,GAAG,EAAE;IACzB;EAAE,gBAEF,oBAAC,IAAI;IACH,IAAI,EAAC,oBAAoB;IACzB,KAAK,EAAEK,WAAW,CAACI,aAAc;IACjC,IAAI,EAAET,IAAI,IAAI,CAAC,GAAG,EAAE;EAAE,EACtB,CACG,CACG,CACP;AAEX,CAAC;AAAC,eAEa,IAAAsB,kBAAS,EAACzB,UAAU,CAAC;AAAA"}
|
|
@@ -1,168 +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 _Surface = _interopRequireDefault(require("./Surface"));
|
|
10
|
-
var _shadow = _interopRequireDefault(require("../styles/shadow"));
|
|
11
|
-
var _theming = require("../theming");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
15
|
-
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); }
|
|
16
|
-
const ELEVATION = 1;
|
|
17
|
-
const DEFAULT_MAX_WIDTH = 960;
|
|
18
|
-
const Banner = _ref => {
|
|
19
|
-
let {
|
|
20
|
-
initiallyVisible = true,
|
|
21
|
-
dismissable = true,
|
|
22
|
-
icon,
|
|
23
|
-
buttonColor,
|
|
24
|
-
content,
|
|
25
|
-
contentStyle,
|
|
26
|
-
style,
|
|
27
|
-
theme,
|
|
28
|
-
Icon,
|
|
29
|
-
...rest
|
|
30
|
-
} = _ref;
|
|
31
|
-
const [visible, setVisible] = React.useState(initiallyVisible);
|
|
32
|
-
React.useEffect(() => {
|
|
33
|
-
if (initiallyVisible) {
|
|
34
|
-
setVisible(true);
|
|
35
|
-
}
|
|
36
|
-
}, [initiallyVisible]);
|
|
37
|
-
const {
|
|
38
|
-
current: position
|
|
39
|
-
} = React.useRef(new _reactNative.Animated.Value(visible ? 1 : 0));
|
|
40
|
-
const [layout, setLayout] = React.useState({
|
|
41
|
-
height: 0,
|
|
42
|
-
measured: false
|
|
43
|
-
});
|
|
44
|
-
React.useEffect(() => {
|
|
45
|
-
if (visible) {
|
|
46
|
-
// show
|
|
47
|
-
_reactNative.Animated.timing(position, {
|
|
48
|
-
duration: 250,
|
|
49
|
-
toValue: 1,
|
|
50
|
-
useNativeDriver: false
|
|
51
|
-
}).start();
|
|
52
|
-
} else {
|
|
53
|
-
// hide
|
|
54
|
-
_reactNative.Animated.timing(position, {
|
|
55
|
-
duration: 200,
|
|
56
|
-
toValue: 0,
|
|
57
|
-
useNativeDriver: false
|
|
58
|
-
}).start();
|
|
59
|
-
}
|
|
60
|
-
}, [visible, position]);
|
|
61
|
-
const handleLayout = _ref2 => {
|
|
62
|
-
let {
|
|
63
|
-
nativeEvent
|
|
64
|
-
} = _ref2;
|
|
65
|
-
const {
|
|
66
|
-
height
|
|
67
|
-
} = nativeEvent.layout;
|
|
68
|
-
setLayout({
|
|
69
|
-
height,
|
|
70
|
-
measured: true
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
// The banner animation has 2 parts:
|
|
75
|
-
// 1. Blank spacer element which animates its height to move the content
|
|
76
|
-
// 2. Actual banner which animates its translateY
|
|
77
|
-
// In initial render, we position everything normally and measure the height of the banner
|
|
78
|
-
// Once we have the height, we apply the height to the spacer and switch the banner to position: absolute
|
|
79
|
-
// We need this because we need to move the content below as if banner's height was being animated
|
|
80
|
-
// However we can't animated banner's height directly as it'll also resize the content inside
|
|
81
|
-
const height = _reactNative.Animated.multiply(position, layout.height);
|
|
82
|
-
const translateY = _reactNative.Animated.multiply(_reactNative.Animated.add(position, -1), layout.height);
|
|
83
|
-
return /*#__PURE__*/React.createElement(_Surface.default, _extends({}, rest, {
|
|
84
|
-
style: [styles.container, (0, _shadow.default)(ELEVATION), style]
|
|
85
|
-
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
86
|
-
style: [styles.wrapper, contentStyle]
|
|
87
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
88
|
-
style: {
|
|
89
|
-
height
|
|
90
|
-
}
|
|
91
|
-
}), /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
92
|
-
onLayout: handleLayout,
|
|
93
|
-
style: [layout.measured || !visible ?
|
|
94
|
-
// If we have measured banner's height or it's invisible,
|
|
95
|
-
// Position it absolutely, the layout will be taken care of the spacer
|
|
96
|
-
[styles.absolute, {
|
|
97
|
-
transform: [{
|
|
98
|
-
translateY
|
|
99
|
-
}]
|
|
100
|
-
}] :
|
|
101
|
-
// Otherwise position it normally
|
|
102
|
-
null, !layout.measured && !visible ?
|
|
103
|
-
// If we haven't measured banner's height yet and it's invisible,
|
|
104
|
-
// hide it with opacity: 0 so user doesn't see it
|
|
105
|
-
{
|
|
106
|
-
opacity: 0
|
|
107
|
-
} : null]
|
|
108
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
109
|
-
style: [styles.content, {
|
|
110
|
-
marginBottom: dismissable ? 0 : 16
|
|
111
|
-
}]
|
|
112
|
-
}, icon ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
113
|
-
style: styles.icon
|
|
114
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
115
|
-
name: icon,
|
|
116
|
-
size: 40
|
|
117
|
-
})) : null, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
118
|
-
style: [styles.message, {
|
|
119
|
-
color: theme.colors.text
|
|
120
|
-
}],
|
|
121
|
-
accessibilityLiveRegion: visible ? "polite" : "none",
|
|
122
|
-
accessibilityRole: "alert"
|
|
123
|
-
}, content)), dismissable ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
124
|
-
style: styles.actions
|
|
125
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Button, {
|
|
126
|
-
color: buttonColor || theme.colors.primary,
|
|
127
|
-
title: "Close",
|
|
128
|
-
onPress: () => setVisible(false)
|
|
129
|
-
})) : null)));
|
|
130
|
-
};
|
|
131
|
-
const styles = _reactNative.StyleSheet.create({
|
|
132
|
-
container: {
|
|
133
|
-
elevation: ELEVATION
|
|
134
|
-
},
|
|
135
|
-
wrapper: {
|
|
136
|
-
overflow: "hidden",
|
|
137
|
-
alignSelf: "center",
|
|
138
|
-
width: "100%",
|
|
139
|
-
maxWidth: DEFAULT_MAX_WIDTH
|
|
140
|
-
},
|
|
141
|
-
absolute: {
|
|
142
|
-
position: "absolute",
|
|
143
|
-
top: 0,
|
|
144
|
-
width: "100%"
|
|
145
|
-
},
|
|
146
|
-
content: {
|
|
147
|
-
flexDirection: "row",
|
|
148
|
-
justifyContent: "flex-start",
|
|
149
|
-
marginHorizontal: 8,
|
|
150
|
-
marginTop: 16,
|
|
151
|
-
marginBottom: 0
|
|
152
|
-
},
|
|
153
|
-
icon: {
|
|
154
|
-
margin: 8
|
|
155
|
-
},
|
|
156
|
-
message: {
|
|
157
|
-
flex: 1,
|
|
158
|
-
margin: 8
|
|
159
|
-
},
|
|
160
|
-
actions: {
|
|
161
|
-
flexDirection: "row",
|
|
162
|
-
justifyContent: "flex-end",
|
|
163
|
-
margin: 8
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
var _default = (0, _theming.withTheme)(Banner);
|
|
167
|
-
exports.default = _default;
|
|
168
|
-
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ELEVATION","DEFAULT_MAX_WIDTH","Banner","initiallyVisible","dismissable","icon","buttonColor","content","contentStyle","style","theme","Icon","rest","visible","setVisible","React","useState","useEffect","current","position","useRef","Animated","Value","layout","setLayout","height","measured","timing","duration","toValue","useNativeDriver","start","handleLayout","nativeEvent","multiply","translateY","add","styles","container","shadow","wrapper","absolute","transform","opacity","marginBottom","message","color","colors","text","actions","primary","StyleSheet","create","elevation","overflow","alignSelf","width","maxWidth","top","flexDirection","justifyContent","marginHorizontal","marginTop","margin","flex","withTheme"],"sourceRoot":"../../src","sources":["Banner.tsx"],"mappings":";;;;;;AAAA;AACA;AASA;AAEA;AACA;AAAuC;A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