@ledgerhq/lumen-ui-rnative 0.0.74 → 0.0.75

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-rnative",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "react-native",
@@ -82,6 +82,7 @@ const useStyles = ({ hasError, isFocused, isEditable, hasLabel, }) => {
82
82
  overflow: 'hidden',
83
83
  },
84
84
  hasError && {
85
+ borderWidth: 1,
85
86
  borderColor: t.colors.border.error,
86
87
  },
87
88
  !isEditable && {
@@ -99,8 +100,7 @@ const useStyles = ({ hasError, isFocused, isEditable, hasLabel, }) => {
99
100
  width: t.sizes.full,
100
101
  color: t.colors.text.base,
101
102
  backgroundColor: t.colors.bg.muted,
102
- outlineWidth: 0,
103
- outlineColor: 'transparent',
103
+ outline: 'none',
104
104
  },
105
105
  hasLabel && {
106
106
  paddingTop: t.spacings.s16,
@@ -6,11 +6,11 @@ import { Pressable } from '../Utility';
6
6
  const useStyles = ({ appearance, disabled, pressed, }) => {
7
7
  return useStyleSheet((t) => {
8
8
  const bgColors = {
9
- base: t.colors.bg.muted,
9
+ base: t.colors.bg.surface,
10
10
  outline: 'transparent',
11
11
  };
12
12
  const pressedBgColors = {
13
- base: t.colors.bg.mutedPressed,
13
+ base: t.colors.bg.surfacePressed,
14
14
  outline: t.colors.bg.baseTransparentPressed,
15
15
  };
16
16
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-rnative",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "react-native",
@@ -192,6 +192,7 @@ const useStyles = ({
192
192
  overflow: 'hidden',
193
193
  },
194
194
  hasError && {
195
+ borderWidth: 1,
195
196
  borderColor: t.colors.border.error,
196
197
  },
197
198
  !isEditable && {
@@ -209,8 +210,7 @@ const useStyles = ({
209
210
  width: t.sizes.full,
210
211
  color: t.colors.text.base,
211
212
  backgroundColor: t.colors.bg.muted,
212
- outlineWidth: 0,
213
- outlineColor: 'transparent',
213
+ outline: 'none',
214
214
  },
215
215
  hasLabel && {
216
216
  paddingTop: t.spacings.s16,
@@ -19,12 +19,12 @@ const useStyles = ({
19
19
  return useStyleSheet(
20
20
  (t) => {
21
21
  const bgColors: Record<Appearance, string> = {
22
- base: t.colors.bg.muted,
22
+ base: t.colors.bg.surface,
23
23
  outline: 'transparent',
24
24
  };
25
25
 
26
26
  const pressedBgColors: Record<Appearance, string> = {
27
- base: t.colors.bg.mutedPressed,
27
+ base: t.colors.bg.surfacePressed,
28
28
  outline: t.colors.bg.baseTransparentPressed,
29
29
  };
30
30