related-ui-components 1.3.0 → 1.3.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/app.js +19 -27
- package/lib/commonjs/app.js.map +1 -1
- package/lib/commonjs/components/Banner/README.md +3 -3
- package/lib/commonjs/components/Card/templates/README.md +3 -3
- package/lib/commonjs/components/Filters/Filters.js +13 -26
- package/lib/commonjs/components/Filters/Filters.js.map +1 -1
- package/lib/commonjs/components/Filters/README.md +1 -1
- package/lib/commonjs/components/ScratchCard/README.md +2 -2
- package/lib/commonjs/constants/BRANDS.js +2 -1
- package/lib/commonjs/constants/BRANDS.js.map +1 -1
- package/lib/module/app.js +21 -30
- package/lib/module/app.js.map +1 -1
- package/lib/module/components/Banner/README.md +3 -3
- package/lib/module/components/Card/templates/README.md +3 -3
- package/lib/module/components/Filters/Filters.js +13 -26
- package/lib/module/components/Filters/Filters.js.map +1 -1
- package/lib/module/components/Filters/README.md +1 -1
- package/lib/module/components/ScratchCard/README.md +2 -2
- package/lib/module/constants/BRANDS.js +2 -1
- package/lib/module/constants/BRANDS.js.map +1 -1
- package/lib/typescript/commonjs/app.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +2 -2
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Banner/BannerWithDetails.d.ts +3 -3
- package/lib/typescript/commonjs/components/Banner/BannerWithDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts +2 -2
- package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts +2 -2
- package/lib/typescript/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Card/templates/SimpleTrendingCard.d.ts +2 -2
- package/lib/typescript/commonjs/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Card/types.d.ts +2 -2
- package/lib/typescript/commonjs/components/Card/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Filters/Filters.d.ts +5 -3
- package/lib/typescript/commonjs/components/Filters/Filters.d.ts.map +1 -1
- package/lib/typescript/commonjs/constants/BRANDS.d.ts +8 -2
- package/lib/typescript/commonjs/constants/BRANDS.d.ts.map +1 -1
- package/lib/typescript/module/app.d.ts.map +1 -1
- package/lib/typescript/module/components/Banner/Banner.d.ts +2 -2
- package/lib/typescript/module/components/Banner/Banner.d.ts.map +1 -1
- package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts +3 -3
- package/lib/typescript/module/components/Banner/BannerWithDetails.d.ts.map +1 -1
- package/lib/typescript/module/components/Card/templates/DealCard.d.ts +2 -2
- package/lib/typescript/module/components/Card/templates/DealCard.d.ts.map +1 -1
- package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts +2 -2
- package/lib/typescript/module/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -1
- package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts +2 -2
- package/lib/typescript/module/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -1
- package/lib/typescript/module/components/Card/types.d.ts +2 -2
- package/lib/typescript/module/components/Card/types.d.ts.map +1 -1
- package/lib/typescript/module/components/Filters/Filters.d.ts +5 -3
- package/lib/typescript/module/components/Filters/Filters.d.ts.map +1 -1
- package/lib/typescript/module/constants/BRANDS.d.ts +8 -2
- package/lib/typescript/module/constants/BRANDS.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app.tsx +10 -18
- package/src/components/Banner/Banner.tsx +2 -2
- package/src/components/Banner/BannerWithDetails.tsx +3 -3
- package/src/components/Banner/README.md +3 -3
- package/src/components/Card/templates/DealCard.tsx +2 -2
- package/src/components/Card/templates/DealCardWithBackgroundImage.tsx +2 -2
- package/src/components/Card/templates/README.md +3 -3
- package/src/components/Card/templates/SimpleTrendingCard.tsx +2 -2
- package/src/components/Card/types.ts +2 -2
- package/src/components/Filters/Filters.tsx +454 -463
- package/src/components/Filters/README.md +1 -1
- package/src/components/ScratchCard/README.md +2 -2
- package/src/constants/BRANDS.ts +1 -0
|
@@ -68,7 +68,7 @@ export default MyComponent;
|
|
|
68
68
|
|------|------|---------|-------------|
|
|
69
69
|
| `style` | `StyleProp<ViewStyle>` | `undefined` | Additional styles for the container |
|
|
70
70
|
| `children` | `React.ReactNode` | Required | Content to reveal underneath the scratch layer |
|
|
71
|
-
| `image` | `
|
|
71
|
+
| `image` | `ImageSourcePropType` | `null` | Image to use as the scratch layer |
|
|
72
72
|
| `width` | `number` | `300` | Width of the scratch card |
|
|
73
73
|
| `height` | `number` | `300` | Height of the scratch card |
|
|
74
74
|
| `onScratched` | `() => void` | `undefined` | Function to call when scratch threshold is reached |
|
|
@@ -86,7 +86,7 @@ export default MyComponent;
|
|
|
86
86
|
|------|------|---------|-------------|
|
|
87
87
|
| `backgroundColor` | `string` | `"#CCCCCC"` | Background color of the scratch layer (used if no image is provided) |
|
|
88
88
|
| `text` | `string` | `""` | Optional text to display on the scratch layer |
|
|
89
|
-
| `textFont` | `
|
|
89
|
+
| `textFont` | `ImageSourcePropType` | `undefined` (required if text is present) | Font for the scratch layer text |
|
|
90
90
|
| `textFontColor` | `string` | `"#CCCCCC"` | Color for the scratch layer text |
|
|
91
91
|
| `textFontSize` | `number` | `16` | Font size for the scratch layer text |
|
|
92
92
|
|