@tradly/asset 1.0.28 → 1.0.29

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.
@@ -419,9 +419,14 @@ var FileUpload = function FileUpload(_ref) {
419
419
  backgroundColor: theme.colors.uploadIconBackground,
420
420
  borderRadius: theme.radius.xl,
421
421
  marginBottom: theme.spacing.sm,
422
- padding: theme.spacing.md
422
+ padding: theme.spacing.md,
423
+ justifyContent: "center",
424
+ alignItems: "center"
423
425
  }, iconContainerStyle],
424
- children: selectedIcon
426
+ children: typeof selectedIcon === "function" ? /*#__PURE__*/React.createElement(selectedIcon, {
427
+ size: 20,
428
+ color: theme.colors.textInverse
429
+ }) : /*#__PURE__*/React.isValidElement(selectedIcon) ? selectedIcon : selectedIcon
425
430
  }) : null, /*#__PURE__*/_jsx(Text, {
426
431
  style: [styles.title, {
427
432
  color: theme.colors.uploadText,
@@ -424,9 +424,14 @@ var FileUpload = function FileUpload(_ref) {
424
424
  backgroundColor: theme.colors.uploadIconBackground,
425
425
  borderRadius: theme.radius.xl,
426
426
  marginBottom: theme.spacing.sm,
427
- padding: theme.spacing.md
427
+ padding: theme.spacing.md,
428
+ justifyContent: "center",
429
+ alignItems: "center"
428
430
  }, iconContainerStyle],
429
- children: selectedIcon
431
+ children: typeof selectedIcon === "function" ? /*#__PURE__*/_react.default.createElement(selectedIcon, {
432
+ size: 20,
433
+ color: theme.colors.textInverse
434
+ }) : /*#__PURE__*/_react.default.isValidElement(selectedIcon) ? selectedIcon : selectedIcon
430
435
  }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
431
436
  style: [styles.title, {
432
437
  color: theme.colors.uploadText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradly/asset",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "A reusable media gallery component for uploading and selecting images, videos, and files with Tradly authentication",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",