@itcase/ui-react-native 1.10.87 → 1.10.91
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/.storybook-react-native-web/main.ts +53 -38
- package/package.json +3 -3
- package/src/components/Input/Input.interface.ts +4 -9
- package/src/components/InputNumber/InputNumber.interface.ts +3 -3
- package/src/components/InputPassword/InputPassword.interface.ts +3 -3
- package/src/components/Textarea/Textarea.interface.ts +3 -3
|
@@ -21,44 +21,59 @@ const config = {
|
|
|
21
21
|
viteFinal: async (
|
|
22
22
|
viteConfig: Parameters<NonNullable<StorybookConfig['viteFinal']>>[0],
|
|
23
23
|
) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
24
|
+
const vitePolling =
|
|
25
|
+
process.env.CHOKIDAR_USEPOLLING === 'true'
|
|
26
|
+
? {
|
|
27
|
+
server: {
|
|
28
|
+
watch: {
|
|
29
|
+
interval: 1000,
|
|
30
|
+
usePolling: true,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
: {}
|
|
35
|
+
|
|
36
|
+
return mergeConfig(
|
|
37
|
+
await storybookConfigViteFinal(viteConfig),
|
|
38
|
+
mergeConfig(vitePolling, {
|
|
39
|
+
resolve: {
|
|
40
|
+
alias: [
|
|
41
|
+
{
|
|
42
|
+
find: '@itcase/ui-core/context',
|
|
43
|
+
replacement: resolve(coreSrcDir, 'context'),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
find: '@itcase/ui-core/hoc',
|
|
47
|
+
replacement: resolve(coreSrcDir, 'hoc'),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
find: '@itcase/ui-core/hooks',
|
|
51
|
+
replacement: resolve(coreSrcDir, 'hooks'),
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
find: '@itcase/ui-core/types',
|
|
55
|
+
replacement: resolve(coreSrcDir, 'types'),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
find: '@itcase/ui-core/storybook',
|
|
59
|
+
replacement: resolve(coreSrcDir, 'storybook'),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
find: '@itcase/ui-core/utils',
|
|
63
|
+
replacement: resolve(coreSrcDir, 'utils'),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
find: '@itcase/icons-default',
|
|
67
|
+
replacement: iconsDefaultNativeEntry,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
find: 'react-native-linear-gradient',
|
|
71
|
+
replacement: 'react-native-web-linear-gradient',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
}),
|
|
76
|
+
)
|
|
62
77
|
},
|
|
63
78
|
stories: ['../src/components/**/*.stories.?(ts|tsx|js|jsx)'],
|
|
64
79
|
typescript: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui-react-native",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.91",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@itcase/icons-default": "^1.2.39",
|
|
25
25
|
"@itcase/tokens-am": "^1.1.60",
|
|
26
26
|
"@itcase/types-ui": "^1.1.98",
|
|
27
|
-
"@itcase/ui-core": "^1.10.
|
|
27
|
+
"@itcase/ui-core": "^1.10.91",
|
|
28
28
|
"@react-native-community/slider": "^5.2.1",
|
|
29
29
|
"react-native-linear-gradient": "2.8.3",
|
|
30
30
|
"react-native-otp-entry": "^1.8.6",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
61
61
|
"vite": "^8.2.2"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "0c6b63619be073732f645fa1756d30112b29f5d4"
|
|
64
64
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react'
|
|
2
|
-
import type {
|
|
3
|
-
StyleProp,
|
|
4
|
-
TextInputFocusEvent,
|
|
5
|
-
TextInputSubmitEditingEvent,
|
|
6
|
-
ViewStyle,
|
|
7
|
-
} from 'react-native'
|
|
2
|
+
import type { StyleProp, TextInputProps, ViewStyle } from 'react-native'
|
|
8
3
|
|
|
9
4
|
import type {
|
|
10
5
|
AppearanceConfig,
|
|
@@ -50,10 +45,10 @@ interface InputProps extends InputAppearanceProps {
|
|
|
50
45
|
isDisabled?: boolean
|
|
51
46
|
isError?: boolean
|
|
52
47
|
isReadOnly?: boolean
|
|
53
|
-
onBlur?:
|
|
48
|
+
onBlur?: TextInputProps['onBlur']
|
|
54
49
|
onChangeText?: (text: string) => void
|
|
55
|
-
onFocus?:
|
|
56
|
-
onSubmitEditing?:
|
|
50
|
+
onFocus?: TextInputProps['onFocus']
|
|
51
|
+
onSubmitEditing?: TextInputProps['onSubmitEditing']
|
|
57
52
|
after?: ReactNode
|
|
58
53
|
appearance?: CompositeAppearanceStateDefault
|
|
59
54
|
before?: ReactNode
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleProp,
|
|
1
|
+
import type { StyleProp, TextInputProps, ViewStyle } from 'react-native'
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
4
|
AppearanceConfig,
|
|
@@ -43,9 +43,9 @@ interface InputNumberAppearanceProps {
|
|
|
43
43
|
interface InputNumberProps extends InputNumberAppearanceProps {
|
|
44
44
|
isDisabled?: boolean
|
|
45
45
|
isError?: boolean
|
|
46
|
-
onBlur?:
|
|
46
|
+
onBlur?: TextInputProps['onBlur']
|
|
47
47
|
onChange?: (value: number) => void
|
|
48
|
-
onFocus?:
|
|
48
|
+
onFocus?: TextInputProps['onFocus']
|
|
49
49
|
appearance?: CompositeAppearanceStateDefault
|
|
50
50
|
max?: number
|
|
51
51
|
min?: number
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleProp,
|
|
1
|
+
import type { StyleProp, TextInputProps, ViewStyle } from 'react-native'
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
4
|
AppearanceConfig,
|
|
@@ -53,9 +53,9 @@ interface InputPasswordProps extends InputPasswordAppearanceProps {
|
|
|
53
53
|
isError?: boolean
|
|
54
54
|
isReadOnly?: boolean
|
|
55
55
|
isRevealed?: boolean
|
|
56
|
-
onBlur?:
|
|
56
|
+
onBlur?: TextInputProps['onBlur']
|
|
57
57
|
onChangeText?: (text: string) => void
|
|
58
|
-
onFocus?:
|
|
58
|
+
onFocus?: TextInputProps['onFocus']
|
|
59
59
|
appearance?: CompositeAppearanceStateDefault
|
|
60
60
|
maxLength?: number
|
|
61
61
|
placeholder?: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleProp,
|
|
1
|
+
import type { StyleProp, TextInputProps, ViewStyle } from 'react-native'
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
4
|
AppearanceConfig,
|
|
@@ -43,9 +43,9 @@ interface TextareaProps extends TextareaAppearanceProps {
|
|
|
43
43
|
isDisabled?: boolean
|
|
44
44
|
isError?: boolean
|
|
45
45
|
isReadOnly?: boolean
|
|
46
|
-
onBlur?:
|
|
46
|
+
onBlur?: TextInputProps['onBlur']
|
|
47
47
|
onChangeText?: (text: string) => void
|
|
48
|
-
onFocus?:
|
|
48
|
+
onFocus?: TextInputProps['onFocus']
|
|
49
49
|
appearance?: CompositeAppearanceStateDefault
|
|
50
50
|
maxLength?: number
|
|
51
51
|
minHeight?: number
|