@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,94 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { withTheme } from "../theming";
|
|
3
|
-
import { colorTypes } from "@draftbit/types";
|
|
4
|
-
import { StyleProp, StyleSheet, ViewStyle } from "react-native";
|
|
5
|
-
import IconButton from "./IconButton";
|
|
6
|
-
import type { Theme } from "../styles/DefaultTheme";
|
|
7
|
-
import type { IconSlot } from "../interfaces/Icon";
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
icon: string;
|
|
11
|
-
toggled?: boolean;
|
|
12
|
-
onPress?: (value: boolean) => void;
|
|
13
|
-
defaultValue?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
color?: colorTypes;
|
|
16
|
-
colorSecondary?: colorTypes;
|
|
17
|
-
borderColor?: colorTypes;
|
|
18
|
-
iconSize?: number;
|
|
19
|
-
width?: number;
|
|
20
|
-
height?: number;
|
|
21
|
-
style?: StyleProp<ViewStyle>;
|
|
22
|
-
theme: Theme;
|
|
23
|
-
} & IconSlot;
|
|
24
|
-
|
|
25
|
-
const ToggleButton: React.FC<React.PropsWithChildren<Props>> = ({
|
|
26
|
-
Icon,
|
|
27
|
-
icon,
|
|
28
|
-
toggled = false,
|
|
29
|
-
onPress = () => {},
|
|
30
|
-
defaultValue,
|
|
31
|
-
disabled = false,
|
|
32
|
-
color = "primary",
|
|
33
|
-
colorSecondary = "surface",
|
|
34
|
-
borderColor = "divider",
|
|
35
|
-
iconSize = 25,
|
|
36
|
-
width = 50,
|
|
37
|
-
height = 50,
|
|
38
|
-
theme: { colors },
|
|
39
|
-
style,
|
|
40
|
-
...rest
|
|
41
|
-
}) => {
|
|
42
|
-
const [internalValue, setInternalValue] = React.useState<boolean>(
|
|
43
|
-
toggled || defaultValue || false
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
React.useEffect(() => {
|
|
47
|
-
if (toggled != null) {
|
|
48
|
-
setInternalValue(toggled);
|
|
49
|
-
}
|
|
50
|
-
}, [toggled]);
|
|
51
|
-
|
|
52
|
-
React.useEffect(() => {
|
|
53
|
-
if (defaultValue != null) {
|
|
54
|
-
setInternalValue(defaultValue);
|
|
55
|
-
}
|
|
56
|
-
}, [defaultValue]);
|
|
57
|
-
|
|
58
|
-
const handlePress = () => {
|
|
59
|
-
setInternalValue(!internalValue);
|
|
60
|
-
onPress(!internalValue);
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<IconButton
|
|
65
|
-
Icon={Icon}
|
|
66
|
-
icon={icon}
|
|
67
|
-
size={iconSize}
|
|
68
|
-
color={internalValue ? colors[color] : colors[colorSecondary]}
|
|
69
|
-
onPress={handlePress}
|
|
70
|
-
disabled={disabled}
|
|
71
|
-
style={[
|
|
72
|
-
styles.mainContainer,
|
|
73
|
-
{
|
|
74
|
-
width,
|
|
75
|
-
height,
|
|
76
|
-
backgroundColor: internalValue
|
|
77
|
-
? colors[colorSecondary]
|
|
78
|
-
: colors[color],
|
|
79
|
-
borderColor: colors[borderColor],
|
|
80
|
-
},
|
|
81
|
-
style,
|
|
82
|
-
]}
|
|
83
|
-
{...rest}
|
|
84
|
-
/>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const styles = StyleSheet.create({
|
|
89
|
-
mainContainer: {
|
|
90
|
-
borderWidth: 1,
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
export default withTheme(ToggleButton);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
|
-
import { withTheme } from "../theming";
|
|
4
|
-
export const Title = withTheme(({ text, theme, style }) => {
|
|
5
|
-
return (React.createElement(Text, { style: [
|
|
6
|
-
{
|
|
7
|
-
fontSize: 20,
|
|
8
|
-
letterSpacing: 0,
|
|
9
|
-
lineHeight: 26,
|
|
10
|
-
color: theme.colors.text,
|
|
11
|
-
},
|
|
12
|
-
style,
|
|
13
|
-
] }, text));
|
|
14
|
-
});
|
|
15
|
-
export const Subtitle = withTheme(({ text, theme, style }) => {
|
|
16
|
-
return (React.createElement(Text, { style: [
|
|
17
|
-
{
|
|
18
|
-
fontSize: 14,
|
|
19
|
-
letterSpacing: 0,
|
|
20
|
-
lineHeight: 16,
|
|
21
|
-
color: theme.colors.medium,
|
|
22
|
-
},
|
|
23
|
-
style,
|
|
24
|
-
] }, text));
|
|
25
|
-
});
|
|
26
|
-
export const Caption = withTheme(({ text, theme, style }) => {
|
|
27
|
-
return (React.createElement(Text, { style: [
|
|
28
|
-
{
|
|
29
|
-
fontSize: 12,
|
|
30
|
-
letterSpacing: 0,
|
|
31
|
-
lineHeight: 14,
|
|
32
|
-
color: theme.colors.light,
|
|
33
|
-
},
|
|
34
|
-
style,
|
|
35
|
-
] }, text));
|
|
36
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Text, TextStyle, StyleProp } from "react-native";
|
|
3
|
-
import { withTheme } from "../theming";
|
|
4
|
-
import Theme from "../styles/DefaultTheme";
|
|
5
|
-
|
|
6
|
-
type Props = {
|
|
7
|
-
text: string;
|
|
8
|
-
style?: StyleProp<TextStyle>;
|
|
9
|
-
/**
|
|
10
|
-
* @optional
|
|
11
|
-
*/
|
|
12
|
-
theme: typeof Theme;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const Title = withTheme(({ text, theme, style }: Props) => {
|
|
16
|
-
return (
|
|
17
|
-
<Text
|
|
18
|
-
style={[
|
|
19
|
-
{
|
|
20
|
-
fontSize: 20,
|
|
21
|
-
letterSpacing: 0,
|
|
22
|
-
lineHeight: 26,
|
|
23
|
-
color: theme.colors.text,
|
|
24
|
-
},
|
|
25
|
-
style,
|
|
26
|
-
]}
|
|
27
|
-
>
|
|
28
|
-
{text}
|
|
29
|
-
</Text>
|
|
30
|
-
);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export const Subtitle = withTheme(({ text, theme, style }: Props) => {
|
|
34
|
-
return (
|
|
35
|
-
<Text
|
|
36
|
-
style={[
|
|
37
|
-
{
|
|
38
|
-
fontSize: 14,
|
|
39
|
-
letterSpacing: 0,
|
|
40
|
-
lineHeight: 16,
|
|
41
|
-
color: theme.colors.medium,
|
|
42
|
-
},
|
|
43
|
-
style,
|
|
44
|
-
]}
|
|
45
|
-
>
|
|
46
|
-
{text}
|
|
47
|
-
</Text>
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export const Caption = withTheme(({ text, theme, style }: Props) => {
|
|
52
|
-
return (
|
|
53
|
-
<Text
|
|
54
|
-
style={[
|
|
55
|
-
{
|
|
56
|
-
fontSize: 12,
|
|
57
|
-
letterSpacing: 0,
|
|
58
|
-
lineHeight: 14,
|
|
59
|
-
color: theme.colors.light,
|
|
60
|
-
},
|
|
61
|
-
style,
|
|
62
|
-
]}
|
|
63
|
-
>
|
|
64
|
-
{text}
|
|
65
|
-
</Text>
|
|
66
|
-
);
|
|
67
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export const useAuthState = (auth) => {
|
|
3
|
-
const [error, setError] = React.useState();
|
|
4
|
-
const [value, setValue] = React.useState(auth.currentUser);
|
|
5
|
-
React.useEffect(() => {
|
|
6
|
-
const list = auth.onAuthStateChanged(setValue, setError);
|
|
7
|
-
return () => {
|
|
8
|
-
list();
|
|
9
|
-
};
|
|
10
|
-
}, [auth]);
|
|
11
|
-
const signInWithEmailAndPassword = (user, password) => {
|
|
12
|
-
auth
|
|
13
|
-
.signInWithEmailAndPassword(user, password)
|
|
14
|
-
.then(setValue)
|
|
15
|
-
.catch(setError);
|
|
16
|
-
};
|
|
17
|
-
const createUserWithEmailAndPassword = (user, password) => {
|
|
18
|
-
auth
|
|
19
|
-
.signInWithEmailAndPassword(user, password)
|
|
20
|
-
.then(setValue)
|
|
21
|
-
.catch(setError);
|
|
22
|
-
};
|
|
23
|
-
const signOut = () => auth.signOut();
|
|
24
|
-
return [
|
|
25
|
-
value,
|
|
26
|
-
error,
|
|
27
|
-
signInWithEmailAndPassword,
|
|
28
|
-
signOut,
|
|
29
|
-
createUserWithEmailAndPassword,
|
|
30
|
-
];
|
|
31
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export const useAuthState = (auth: any) => {
|
|
4
|
-
const [error, setError] = React.useState();
|
|
5
|
-
const [value, setValue] = React.useState(auth.currentUser);
|
|
6
|
-
|
|
7
|
-
React.useEffect(() => {
|
|
8
|
-
const list = auth.onAuthStateChanged(setValue, setError);
|
|
9
|
-
|
|
10
|
-
return () => {
|
|
11
|
-
list();
|
|
12
|
-
};
|
|
13
|
-
}, [auth]);
|
|
14
|
-
|
|
15
|
-
const signInWithEmailAndPassword = (user: string, password: string) => {
|
|
16
|
-
auth
|
|
17
|
-
.signInWithEmailAndPassword(user, password)
|
|
18
|
-
.then(setValue)
|
|
19
|
-
.catch(setError);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const createUserWithEmailAndPassword = (user: string, password: string) => {
|
|
23
|
-
auth
|
|
24
|
-
.signInWithEmailAndPassword(user, password)
|
|
25
|
-
.then(setValue)
|
|
26
|
-
.catch(setError);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const signOut = () => auth.signOut();
|
|
30
|
-
|
|
31
|
-
return [
|
|
32
|
-
value,
|
|
33
|
-
error,
|
|
34
|
-
signInWithEmailAndPassword,
|
|
35
|
-
signOut,
|
|
36
|
-
createUserWithEmailAndPassword,
|
|
37
|
-
];
|
|
38
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Avatar Edit",
|
|
4
|
-
tag: "AvatarEdit",
|
|
5
|
-
description: "An avatar with an edit icon in the top right",
|
|
6
|
-
category: COMPONENT_TYPES.deprecated,
|
|
7
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
|
-
layout: {
|
|
9
|
-
width: 64,
|
|
10
|
-
height: 64,
|
|
11
|
-
},
|
|
12
|
-
props: {
|
|
13
|
-
size: {
|
|
14
|
-
group: GROUPS.basic,
|
|
15
|
-
label: "Size",
|
|
16
|
-
description: "Size of avatar / width, height",
|
|
17
|
-
editable: true,
|
|
18
|
-
required: false,
|
|
19
|
-
formType: FORM_TYPES.number,
|
|
20
|
-
propType: PROP_TYPES.NUMBER,
|
|
21
|
-
min: 0,
|
|
22
|
-
max: 300,
|
|
23
|
-
precision: 0,
|
|
24
|
-
step: 1,
|
|
25
|
-
defaultValue: 80,
|
|
26
|
-
},
|
|
27
|
-
image: {
|
|
28
|
-
group: GROUPS.data,
|
|
29
|
-
label: "Image",
|
|
30
|
-
description: "Name of the image",
|
|
31
|
-
editable: true,
|
|
32
|
-
required: true,
|
|
33
|
-
formType: FORM_TYPES.image,
|
|
34
|
-
propType: PROP_TYPES.ASSET,
|
|
35
|
-
defaultValue: "brightness-5",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GROUPS,
|
|
3
|
-
COMPONENT_TYPES,
|
|
4
|
-
FORM_TYPES,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
BLOCK_STYLES_SECTIONS,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
export const SEED_DATA = {
|
|
10
|
-
name: "Avatar Edit",
|
|
11
|
-
tag: "AvatarEdit",
|
|
12
|
-
description: "An avatar with an edit icon in the top right",
|
|
13
|
-
category: COMPONENT_TYPES.deprecated,
|
|
14
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
15
|
-
layout: {
|
|
16
|
-
width: 64,
|
|
17
|
-
height: 64,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
size: {
|
|
21
|
-
group: GROUPS.basic,
|
|
22
|
-
label: "Size",
|
|
23
|
-
description: "Size of avatar / width, height",
|
|
24
|
-
editable: true,
|
|
25
|
-
required: false,
|
|
26
|
-
formType: FORM_TYPES.number,
|
|
27
|
-
propType: PROP_TYPES.NUMBER,
|
|
28
|
-
min: 0,
|
|
29
|
-
max: 300,
|
|
30
|
-
precision: 0,
|
|
31
|
-
step: 1,
|
|
32
|
-
defaultValue: 80,
|
|
33
|
-
},
|
|
34
|
-
image: {
|
|
35
|
-
group: GROUPS.data,
|
|
36
|
-
label: "Image",
|
|
37
|
-
description: "Name of the image",
|
|
38
|
-
editable: true,
|
|
39
|
-
required: true,
|
|
40
|
-
formType: FORM_TYPES.image,
|
|
41
|
-
propType: PROP_TYPES.ASSET,
|
|
42
|
-
defaultValue: "brightness-5",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
package/src/mappings/Banner.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconProp, createBoolProp, createColorProp, createTextProp, GROUPS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Banner",
|
|
4
|
-
tag: "Banner",
|
|
5
|
-
category: COMPONENT_TYPES.deprecated,
|
|
6
|
-
props: {
|
|
7
|
-
icon: createIconProp({
|
|
8
|
-
defaultValue: null,
|
|
9
|
-
required: false,
|
|
10
|
-
}),
|
|
11
|
-
content: createTextProp({
|
|
12
|
-
label: "Content",
|
|
13
|
-
description: "Banner text content",
|
|
14
|
-
}),
|
|
15
|
-
initiallyVisible: createBoolProp({
|
|
16
|
-
group: GROUPS.basic,
|
|
17
|
-
label: "Initially visible",
|
|
18
|
-
description: "Whether the banner should be visible",
|
|
19
|
-
defaultValue: true,
|
|
20
|
-
}),
|
|
21
|
-
dismissable: createBoolProp({
|
|
22
|
-
group: GROUPS.basic,
|
|
23
|
-
label: "Dismissable",
|
|
24
|
-
description: "Whether the banner should be able to be closed",
|
|
25
|
-
defaultValue: true,
|
|
26
|
-
}),
|
|
27
|
-
buttonColor: createColorProp({
|
|
28
|
-
label: "Button color",
|
|
29
|
-
defaultValue: "primary",
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
};
|
package/src/mappings/Banner.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createIconProp,
|
|
4
|
-
createBoolProp,
|
|
5
|
-
createColorProp,
|
|
6
|
-
createTextProp,
|
|
7
|
-
GROUPS,
|
|
8
|
-
} from "@draftbit/types";
|
|
9
|
-
|
|
10
|
-
export const SEED_DATA = {
|
|
11
|
-
name: "Banner",
|
|
12
|
-
tag: "Banner",
|
|
13
|
-
category: COMPONENT_TYPES.deprecated,
|
|
14
|
-
props: {
|
|
15
|
-
icon: createIconProp({
|
|
16
|
-
defaultValue: null,
|
|
17
|
-
required: false,
|
|
18
|
-
}),
|
|
19
|
-
content: createTextProp({
|
|
20
|
-
label: "Content",
|
|
21
|
-
description: "Banner text content",
|
|
22
|
-
}),
|
|
23
|
-
initiallyVisible: createBoolProp({
|
|
24
|
-
group: GROUPS.basic,
|
|
25
|
-
label: "Initially visible",
|
|
26
|
-
description: "Whether the banner should be visible",
|
|
27
|
-
defaultValue: true,
|
|
28
|
-
}),
|
|
29
|
-
dismissable: createBoolProp({
|
|
30
|
-
group: GROUPS.basic,
|
|
31
|
-
label: "Dismissable",
|
|
32
|
-
description: "Whether the banner should be able to be closed",
|
|
33
|
-
defaultValue: true,
|
|
34
|
-
}),
|
|
35
|
-
buttonColor: createColorProp({
|
|
36
|
-
label: "Button color",
|
|
37
|
-
defaultValue: "primary",
|
|
38
|
-
}),
|
|
39
|
-
},
|
|
40
|
-
};
|
package/src/mappings/Card.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createElevationType, createTextProp, createImageProp, createIconProp, createAspectRatioProp, createStaticBoolProp, createTextStyle, createActionProp, Triggers, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Card",
|
|
4
|
-
tag: "Card",
|
|
5
|
-
description: "A card you can customize however you'd like",
|
|
6
|
-
category: COMPONENT_TYPES.card,
|
|
7
|
-
triggers: [Triggers.OnPress, Triggers.OnPressIcon],
|
|
8
|
-
props: {
|
|
9
|
-
onPress: createActionProp(),
|
|
10
|
-
onPressIcon: createActionProp({
|
|
11
|
-
handlerPropName: "onPressIcon",
|
|
12
|
-
}),
|
|
13
|
-
elevation: createElevationType(3),
|
|
14
|
-
image: createImageProp(),
|
|
15
|
-
title: createTextProp({
|
|
16
|
-
label: "Title",
|
|
17
|
-
description: "Large title text",
|
|
18
|
-
// defaultValue: "Title",
|
|
19
|
-
defaultValue: null,
|
|
20
|
-
}),
|
|
21
|
-
titleStyle: createTextStyle({
|
|
22
|
-
label: "Title Style",
|
|
23
|
-
}),
|
|
24
|
-
subtitle: createTextProp({
|
|
25
|
-
label: "Subtitle",
|
|
26
|
-
description: "Text underneath the title",
|
|
27
|
-
defaultValue: null,
|
|
28
|
-
// defaultValue: "Edit me in the props panel on the right",
|
|
29
|
-
}),
|
|
30
|
-
subtitleStyle: createTextStyle({
|
|
31
|
-
label: "Subtitle Style",
|
|
32
|
-
}),
|
|
33
|
-
description: createTextProp({
|
|
34
|
-
label: "Description",
|
|
35
|
-
description: "Smallest text underneath subtitle",
|
|
36
|
-
// defaultValue:
|
|
37
|
-
// "This bottom text is optional, but shows up to make your life a little easier!",
|
|
38
|
-
defaultValue: null,
|
|
39
|
-
}),
|
|
40
|
-
descriptionStyle: createTextStyle({
|
|
41
|
-
label: "Description Style",
|
|
42
|
-
}),
|
|
43
|
-
icon: createIconProp(),
|
|
44
|
-
aspectRatio: createAspectRatioProp({
|
|
45
|
-
defaultValue: 1.5,
|
|
46
|
-
}),
|
|
47
|
-
textCentered: createStaticBoolProp({
|
|
48
|
-
label: "Centered Text",
|
|
49
|
-
description: "Places your title and subtitle in the center",
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
52
|
-
};
|
package/src/mappings/Card.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createElevationType,
|
|
4
|
-
createTextProp,
|
|
5
|
-
createImageProp,
|
|
6
|
-
createIconProp,
|
|
7
|
-
createAspectRatioProp,
|
|
8
|
-
createStaticBoolProp,
|
|
9
|
-
createTextStyle,
|
|
10
|
-
createActionProp,
|
|
11
|
-
Triggers,
|
|
12
|
-
} from "@draftbit/types";
|
|
13
|
-
|
|
14
|
-
export const SEED_DATA = {
|
|
15
|
-
name: "Card",
|
|
16
|
-
tag: "Card",
|
|
17
|
-
description: "A card you can customize however you'd like",
|
|
18
|
-
category: COMPONENT_TYPES.card,
|
|
19
|
-
triggers: [Triggers.OnPress, Triggers.OnPressIcon],
|
|
20
|
-
props: {
|
|
21
|
-
onPress: createActionProp(),
|
|
22
|
-
onPressIcon: createActionProp({
|
|
23
|
-
handlerPropName: "onPressIcon",
|
|
24
|
-
}),
|
|
25
|
-
elevation: createElevationType(3),
|
|
26
|
-
image: createImageProp(),
|
|
27
|
-
title: createTextProp({
|
|
28
|
-
label: "Title",
|
|
29
|
-
description: "Large title text",
|
|
30
|
-
// defaultValue: "Title",
|
|
31
|
-
defaultValue: null,
|
|
32
|
-
}),
|
|
33
|
-
titleStyle: createTextStyle({
|
|
34
|
-
label: "Title Style",
|
|
35
|
-
}),
|
|
36
|
-
subtitle: createTextProp({
|
|
37
|
-
label: "Subtitle",
|
|
38
|
-
description: "Text underneath the title",
|
|
39
|
-
defaultValue: null,
|
|
40
|
-
// defaultValue: "Edit me in the props panel on the right",
|
|
41
|
-
}),
|
|
42
|
-
subtitleStyle: createTextStyle({
|
|
43
|
-
label: "Subtitle Style",
|
|
44
|
-
}),
|
|
45
|
-
description: createTextProp({
|
|
46
|
-
label: "Description",
|
|
47
|
-
description: "Smallest text underneath subtitle",
|
|
48
|
-
// defaultValue:
|
|
49
|
-
// "This bottom text is optional, but shows up to make your life a little easier!",
|
|
50
|
-
defaultValue: null,
|
|
51
|
-
}),
|
|
52
|
-
descriptionStyle: createTextStyle({
|
|
53
|
-
label: "Description Style",
|
|
54
|
-
}),
|
|
55
|
-
icon: createIconProp(),
|
|
56
|
-
aspectRatio: createAspectRatioProp({
|
|
57
|
-
defaultValue: 1.5,
|
|
58
|
-
}),
|
|
59
|
-
textCentered: createStaticBoolProp({
|
|
60
|
-
label: "Centered Text",
|
|
61
|
-
description: "Places your title and subtitle in the center",
|
|
62
|
-
}),
|
|
63
|
-
},
|
|
64
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createNumColumnsType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
const SEED_DATA_PROPS = {
|
|
3
|
-
image: {
|
|
4
|
-
group: GROUPS.data,
|
|
5
|
-
label: "Image",
|
|
6
|
-
description: "Image",
|
|
7
|
-
formType: FORM_TYPES.image,
|
|
8
|
-
propType: PROP_TYPES.ASSET,
|
|
9
|
-
defaultValue: null,
|
|
10
|
-
editable: true,
|
|
11
|
-
required: false,
|
|
12
|
-
},
|
|
13
|
-
title: {
|
|
14
|
-
group: GROUPS.data,
|
|
15
|
-
label: "Title",
|
|
16
|
-
description: "Text to display",
|
|
17
|
-
formType: FORM_TYPES.string,
|
|
18
|
-
propType: PROP_TYPES.STRING,
|
|
19
|
-
defaultValue: "Beautiful West Coast Villa",
|
|
20
|
-
editable: true,
|
|
21
|
-
required: false,
|
|
22
|
-
},
|
|
23
|
-
leftDescription: {
|
|
24
|
-
group: GROUPS.data,
|
|
25
|
-
label: "Left description",
|
|
26
|
-
description: "Text to display on the left",
|
|
27
|
-
formType: FORM_TYPES.string,
|
|
28
|
-
propType: PROP_TYPES.STRING,
|
|
29
|
-
defaultValue: "San Diego",
|
|
30
|
-
editable: true,
|
|
31
|
-
required: false,
|
|
32
|
-
},
|
|
33
|
-
rightDescription: {
|
|
34
|
-
group: GROUPS.data,
|
|
35
|
-
label: "Right description",
|
|
36
|
-
description: "Text to display on the right",
|
|
37
|
-
formType: FORM_TYPES.string,
|
|
38
|
-
propType: PROP_TYPES.STRING,
|
|
39
|
-
defaultValue: "$100",
|
|
40
|
-
editable: true,
|
|
41
|
-
required: false,
|
|
42
|
-
},
|
|
43
|
-
aspectRatio: {
|
|
44
|
-
group: GROUPS.basic,
|
|
45
|
-
label: "Aspect ratio",
|
|
46
|
-
description: "Aspect ratio of the image",
|
|
47
|
-
formType: FORM_TYPES.aspectRatio,
|
|
48
|
-
propType: PROP_TYPES.NUMBER,
|
|
49
|
-
defaultValue: 1.5,
|
|
50
|
-
editable: true,
|
|
51
|
-
required: false,
|
|
52
|
-
},
|
|
53
|
-
titleCentered: {
|
|
54
|
-
group: GROUPS.basic,
|
|
55
|
-
label: "Title centered",
|
|
56
|
-
description: "Whether to center the title",
|
|
57
|
-
formType: FORM_TYPES.boolean,
|
|
58
|
-
propType: PROP_TYPES.BOOLEAN,
|
|
59
|
-
defaultValue: false,
|
|
60
|
-
editable: true,
|
|
61
|
-
required: false,
|
|
62
|
-
},
|
|
63
|
-
elevation: createElevationType(2),
|
|
64
|
-
};
|
|
65
|
-
export const SEED_DATA = [
|
|
66
|
-
{
|
|
67
|
-
name: "Small Card",
|
|
68
|
-
tag: "CardBlock",
|
|
69
|
-
description: "An elevated card with a title and description, that takes up one third of its container.",
|
|
70
|
-
category: COMPONENT_TYPES.card,
|
|
71
|
-
props: {
|
|
72
|
-
...SEED_DATA_PROPS,
|
|
73
|
-
numColumns: createNumColumnsType({
|
|
74
|
-
defaultValue: 1,
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "Medium Block Card",
|
|
80
|
-
tag: "CardBlock",
|
|
81
|
-
description: "An elevated card with a title and description, that takes up one half of its container.",
|
|
82
|
-
category: COMPONENT_TYPES.card,
|
|
83
|
-
props: {
|
|
84
|
-
...SEED_DATA_PROPS,
|
|
85
|
-
icon: {
|
|
86
|
-
group: GROUPS.basic,
|
|
87
|
-
label: "Icon",
|
|
88
|
-
description: "Icon to display on the top right",
|
|
89
|
-
formType: FORM_TYPES.icon,
|
|
90
|
-
propType: PROP_TYPES.STRING,
|
|
91
|
-
defaultValue: null,
|
|
92
|
-
editable: true,
|
|
93
|
-
required: true,
|
|
94
|
-
},
|
|
95
|
-
numColumns: createNumColumnsType({
|
|
96
|
-
defaultValue: 2,
|
|
97
|
-
}),
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "Large Block Card",
|
|
102
|
-
tag: "CardBlock",
|
|
103
|
-
description: "An elevated card with a title and description, that takes up the full width its container.",
|
|
104
|
-
category: COMPONENT_TYPES.card,
|
|
105
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
106
|
-
props: {
|
|
107
|
-
...SEED_DATA_PROPS,
|
|
108
|
-
icon: {
|
|
109
|
-
group: GROUPS.basic,
|
|
110
|
-
label: "Icon",
|
|
111
|
-
description: "Icon to display on the top right",
|
|
112
|
-
formType: FORM_TYPES.icon,
|
|
113
|
-
propType: PROP_TYPES.STRING,
|
|
114
|
-
defaultValue: null,
|
|
115
|
-
editable: true,
|
|
116
|
-
required: true,
|
|
117
|
-
},
|
|
118
|
-
numColumns: createNumColumnsType({
|
|
119
|
-
defaultValue: 3,
|
|
120
|
-
}),
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
];
|