@rn-components-dropdown/dropdown 1.0.27 → 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.
Files changed (49) hide show
  1. package/dist/components/dropdown/Dropdown.js +113 -148
  2. package/dist/components/dropdown/DropdownStyle.d.ts +11 -11
  3. package/dist/components/dropdown/DropdownStyle.js +20 -24
  4. package/dist/components/dropdown/component/chip/Chip.js +14 -19
  5. package/dist/components/dropdown/component/chip/ChipStyle.d.ts +8 -18
  6. package/dist/components/dropdown/component/chip/ChipStyle.js +8 -10
  7. package/dist/components/dropdown/component/input/TextInput.js +12 -50
  8. package/dist/components/dropdown/component/input/TextInputStyle.d.ts +4 -4
  9. package/dist/components/dropdown/component/input/TextInputStyle.js +7 -11
  10. package/dist/components/dropdown/hooks/useDetectDevice.js +6 -9
  11. package/dist/components/dropdown/hooks/useDropdown.d.ts +8 -4
  12. package/dist/components/dropdown/hooks/useDropdown.js +48 -53
  13. package/dist/components/dropdown/hooks/useOrientation.js +7 -10
  14. package/dist/components/dropdown/interface/ChipInterface.js +1 -2
  15. package/dist/components/dropdown/interface/DropdownInterface.d.ts +4 -4
  16. package/dist/components/dropdown/interface/DropdownInterface.js +1 -2
  17. package/dist/components/dropdown/interface/InputProps.js +1 -2
  18. package/dist/components/svgButton/SvgButton.js +8 -13
  19. package/dist/components/svgButton/SvgButtonStyle.d.ts +2 -2
  20. package/dist/components/svgButton/SvgButtonStyle.js +7 -11
  21. package/dist/components/text/AppText.js +8 -16
  22. package/dist/components/text/AppTextStyle.d.ts +3 -156
  23. package/dist/components/text/AppTextStyle.js +8 -13
  24. package/dist/components/textInput/AppTextInput.js +19 -57
  25. package/dist/components/textInput/AppTextInputStyle.d.ts +4 -4
  26. package/dist/components/textInput/AppTextInputStyle.js +16 -20
  27. package/dist/controller/dropDownController/DropdownController.d.ts +4 -5
  28. package/dist/controller/dropDownController/DropdownController.js +13 -18
  29. package/dist/controller/dropDownController/DropdownControllerStyle.d.ts +3 -3
  30. package/dist/controller/dropDownController/DropdownControllerStyle.js +10 -14
  31. package/dist/index.js +2 -10
  32. package/dist/interface/colors.interface.js +1 -2
  33. package/dist/interface/svg.interface.js +1 -2
  34. package/dist/style/colors.js +6 -9
  35. package/dist/style/index.js +6 -23
  36. package/dist/style/shadow.d.ts +0 -149
  37. package/dist/style/shadow.js +1 -147
  38. package/dist/style/spacing.d.ts +0 -12
  39. package/dist/style/spacing.js +2 -17
  40. package/package.json +1 -1
  41. package/src/components/dropdown/Dropdown.tsx +28 -26
  42. package/src/components/dropdown/hooks/useDropdown.ts +14 -3
  43. package/src/components/dropdown/interface/DropdownInterface.ts +4 -4
  44. package/src/components/text/AppText.tsx +0 -3
  45. package/src/components/text/AppTextStyle.ts +1 -3
  46. package/src/controller/dropDownController/DropdownController.tsx +18 -17
  47. package/src/style/shadow.ts +0 -143
  48. package/src/style/spacing.ts +1 -13
  49. package/tsconfig.json +8 -4
@@ -1,24 +1,4 @@
1
1
  export const SHADOW = {
2
- noShadow: {
3
- shadowColor: 'transparent',
4
- shadowOffset: {
5
- width: 0,
6
- height: 0,
7
- },
8
- shadowOpacity: 0,
9
- shadowRadius: 0,
10
- elevation: 0,
11
- },
12
- shadow0: {
13
- shadowColor: '#000',
14
- shadowOffset: {
15
- width: 0,
16
- height: 1,
17
- },
18
- shadowOpacity: 0.18,
19
- shadowRadius: 1.0,
20
- elevation: 1,
21
- },
22
2
  shadow1: {
23
3
  shadowColor: '#000',
24
4
  shadowOffset: {
@@ -29,127 +9,4 @@ export const SHADOW = {
29
9
  shadowRadius: 1.41,
30
10
  elevation: 2,
31
11
  },
32
- shadow2: {
33
- shadowColor: '#000',
34
- shadowOffset: {
35
- width: 0,
36
- height: 1,
37
- },
38
- shadowOpacity: 0.22,
39
- shadowRadius: 0.8,
40
- elevation: 3,
41
- },
42
- shadow3: {
43
- shadowColor: '#000',
44
- shadowOffset: {
45
- width: 0,
46
- height: 2,
47
- },
48
- shadowOpacity: 0.23,
49
- shadowRadius: 2.62,
50
- elevation: 4,
51
- },
52
- shadow4: {
53
- shadowColor: '#000',
54
- shadowOffset: {
55
- width: 0,
56
- height: 2,
57
- },
58
- shadowOpacity: 0.25,
59
- shadowRadius: 3.84,
60
- elevation: 5,
61
- },
62
- shadow5: {
63
- shadowColor: '#000',
64
- shadowOffset: {
65
- width: 0,
66
- height: 3,
67
- },
68
- shadowOpacity: 0.27,
69
- shadowRadius: 4.65,
70
- elevation: 6,
71
- },
72
- shadow6: {
73
- shadowColor: '#000',
74
- shadowOffset: {
75
- width: 0,
76
- height: 3,
77
- },
78
- shadowOpacity: 0.29,
79
- shadowRadius: 4.65,
80
- elevation: 7,
81
- },
82
- shadow7: {
83
- shadowColor: '#000',
84
- shadowOffset: {
85
- width: 0,
86
- height: 4,
87
- },
88
- shadowOpacity: 0.3,
89
- shadowRadius: 4.65,
90
- elevation: 8,
91
- },
92
- shadow8: {
93
- shadowColor: '#000',
94
- shadowOffset: {
95
- width: 0,
96
- height: 4,
97
- },
98
- shadowOpacity: 0.32,
99
- shadowRadius: 5.46,
100
- elevation: 9,
101
- },
102
- shadow9: {
103
- shadowColor: '#000',
104
- shadowOffset: {
105
- width: 0,
106
- height: 5,
107
- },
108
- shadowOpacity: 0.34,
109
- shadowRadius: 6.27,
110
- elevation: 10,
111
- },
112
- shadow10: {
113
- shadowColor: '#C3C3C3',
114
- shadowOffset: { width: 0, height: 0 },
115
- shadowOpacity: 0.3,
116
- shadowRadius: 5,
117
- elevation: 5,
118
- },
119
- shadow11: {
120
- shadowColor: '#3683BC',
121
- shadowOffset: {
122
- width: 1,
123
- height: 1,
124
- },
125
- shadowOpacity: 0.3,
126
- shadowRadius: 1,
127
- elevation: 1,
128
- },
129
- shadow12: {
130
- shadowColor: '#000',
131
- shadowOffset: {
132
- width: 1,
133
- height: 1,
134
- },
135
- shadowOpacity: 0.1,
136
- shadowRadius: 3,
137
- elevation: 5,
138
- },
139
- containerShadow: {
140
- shadowOffset: { width: 2, height: 1 },
141
- shadowOpacity: 0.5,
142
- shadowRadius: 6,
143
- elevation: 5,
144
- },
145
- shadow13: {
146
- shadowColor: '#3683BC',
147
- shadowOffset: {
148
- width: 1,
149
- height: 1,
150
- },
151
- shadowOpacity: 0.005,
152
- shadowRadius: 3,
153
- elevation: 1,
154
- },
155
12
  };
@@ -1,8 +1,4 @@
1
1
  export const SPACING = {
2
- none: 0,
3
- s1: 1,
4
- s2: 2,
5
- s3: 3,
6
2
  s4: 4,
7
3
  s6: 6,
8
4
  s8: 8,
@@ -10,14 +6,6 @@ export const SPACING = {
10
6
  s12: 12,
11
7
  s14: 14,
12
8
  s16: 16,
13
- s18: 18,
14
9
  s20: 20,
15
- s22: 22,
16
- s24: 24,
17
- s30: 30,
18
- s36: 36,
19
- s40: 40,
20
- s45: 45,
21
- s48: 48,
22
- s50: 50,
10
+ s45: 45
23
11
  };
package/tsconfig.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "esnext",
4
- "module": "commonjs",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
5
6
  "jsx": "react-native",
7
+ "rootDir": "./src",
8
+ "outDir": "./dist",
6
9
  "declaration": true,
7
- "outDir": "dist",
8
10
  "strict": true,
9
11
  "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
10
13
  "skipLibCheck": true
11
14
  },
12
- "include": ["src"]
13
- }
15
+ "include": ["src/**/*"],
16
+ "exclude": ["node_modules", "dist"]
17
+ }