@rn-components-dropdown/dropdown 1.0.0

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 (86) hide show
  1. package/dist/components/dropdown/Dropdown.d.ts +4 -0
  2. package/dist/components/dropdown/Dropdown.js +313 -0
  3. package/dist/components/dropdown/DropdownStyle.d.ts +151 -0
  4. package/dist/components/dropdown/DropdownStyle.js +148 -0
  5. package/dist/components/dropdown/components/chip/Chip.d.ts +3 -0
  6. package/dist/components/dropdown/components/chip/Chip.js +22 -0
  7. package/dist/components/dropdown/components/chip/ChipStyle.d.ts +84 -0
  8. package/dist/components/dropdown/components/chip/ChipStyle.js +63 -0
  9. package/dist/components/dropdown/components/input/TextInput.d.ts +3 -0
  10. package/dist/components/dropdown/components/input/TextInput.js +60 -0
  11. package/dist/components/dropdown/components/input/TextInputStyle.d.ts +32 -0
  12. package/dist/components/dropdown/components/input/TextInputStyle.js +33 -0
  13. package/dist/components/dropdown/hooks/useDetectDevice.d.ts +3 -0
  14. package/dist/components/dropdown/hooks/useDetectDevice.js +22 -0
  15. package/dist/components/dropdown/hooks/useDropdown.d.ts +26 -0
  16. package/dist/components/dropdown/hooks/useDropdown.js +263 -0
  17. package/dist/components/dropdown/hooks/useOrientation.d.ts +1 -0
  18. package/dist/components/dropdown/hooks/useOrientation.js +30 -0
  19. package/dist/components/dropdown/interface/ChipInterface.d.ts +8 -0
  20. package/dist/components/dropdown/interface/ChipInterface.js +2 -0
  21. package/dist/components/dropdown/interface/DropdownInterface.d.ts +71 -0
  22. package/dist/components/dropdown/interface/DropdownInterface.js +2 -0
  23. package/dist/components/dropdown/interface/InputProps.d.ts +8 -0
  24. package/dist/components/dropdown/interface/InputProps.js +2 -0
  25. package/dist/components/svgButton/SvgButton.d.ts +11 -0
  26. package/dist/components/svgButton/SvgButton.js +16 -0
  27. package/dist/components/svgButton/SvgButtonStyle.d.ts +28 -0
  28. package/dist/components/svgButton/SvgButtonStyle.js +29 -0
  29. package/dist/components/text/AppText.d.ts +12 -0
  30. package/dist/components/text/AppText.js +24 -0
  31. package/dist/components/text/AppTextStyle.d.ts +171 -0
  32. package/dist/components/text/AppTextStyle.js +27 -0
  33. package/dist/components/textInput/AppTextInput.d.ts +20 -0
  34. package/dist/components/textInput/AppTextInput.js +89 -0
  35. package/dist/components/textInput/AppTextInputStyle.d.ts +79 -0
  36. package/dist/components/textInput/AppTextInputStyle.js +61 -0
  37. package/dist/controller/dropDownController/DropdownController.d.ts +10 -0
  38. package/dist/controller/dropDownController/DropdownController.js +25 -0
  39. package/dist/controller/dropDownController/DropdownControllerStyle.d.ts +50 -0
  40. package/dist/controller/dropDownController/DropdownControllerStyle.js +48 -0
  41. package/dist/controller/textInputController/AppTextInputController.d.ts +13 -0
  42. package/dist/controller/textInputController/AppTextInputController.js +14 -0
  43. package/dist/controller/textInputController/InputControllerStyle.d.ts +31 -0
  44. package/dist/controller/textInputController/InputControllerStyle.js +29 -0
  45. package/dist/index.d.ts +5 -0
  46. package/dist/index.js +16 -0
  47. package/dist/interface/colors.interface.d.ts +20 -0
  48. package/dist/interface/colors.interface.js +2 -0
  49. package/dist/style/colors.d.ts +33 -0
  50. package/dist/style/colors.js +44 -0
  51. package/dist/style/index.d.ts +7 -0
  52. package/dist/style/index.js +29 -0
  53. package/dist/style/shadow.d.ts +161 -0
  54. package/dist/style/shadow.js +158 -0
  55. package/dist/style/spacing.d.ts +23 -0
  56. package/dist/style/spacing.js +26 -0
  57. package/package.json +33 -0
  58. package/src/components/dropdown/Dropdown.tsx +512 -0
  59. package/src/components/dropdown/DropdownStyle.ts +154 -0
  60. package/src/components/dropdown/components/chip/Chip.tsx +31 -0
  61. package/src/components/dropdown/components/chip/ChipStyle.ts +64 -0
  62. package/src/components/dropdown/components/input/TextInput.tsx +46 -0
  63. package/src/components/dropdown/components/input/TextInputStyle.ts +32 -0
  64. package/src/components/dropdown/hooks/useDetectDevice.ts +25 -0
  65. package/src/components/dropdown/hooks/useDropdown.ts +356 -0
  66. package/src/components/dropdown/hooks/useOrientation.ts +36 -0
  67. package/src/components/dropdown/interface/ChipInterface.ts +9 -0
  68. package/src/components/dropdown/interface/DropdownInterface.ts +90 -0
  69. package/src/components/dropdown/interface/InputProps.ts +9 -0
  70. package/src/components/svgButton/SvgButton.tsx +37 -0
  71. package/src/components/svgButton/SvgButtonStyle.ts +27 -0
  72. package/src/components/text/AppText.tsx +41 -0
  73. package/src/components/text/AppTextStyle.ts +40 -0
  74. package/src/components/textInput/AppTextInput.tsx +148 -0
  75. package/src/components/textInput/AppTextInputStyle.ts +72 -0
  76. package/src/controller/dropDownController/DropdownController.tsx +81 -0
  77. package/src/controller/dropDownController/DropdownControllerStyle.ts +47 -0
  78. package/src/controller/textInputController/AppTextInputController.tsx +50 -0
  79. package/src/controller/textInputController/InputControllerStyle.ts +28 -0
  80. package/src/index.ts +5 -0
  81. package/src/interface/colors.interface.ts +22 -0
  82. package/src/style/colors.ts +46 -0
  83. package/src/style/index.ts +14 -0
  84. package/src/style/shadow.ts +155 -0
  85. package/src/style/spacing.ts +23 -0
  86. package/tsconfig.json +13 -0
@@ -0,0 +1,155 @@
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
+ shadow1: {
23
+ shadowColor: '#000',
24
+ shadowOffset: {
25
+ width: 0,
26
+ height: 1,
27
+ },
28
+ shadowOpacity: 0.2,
29
+ shadowRadius: 1.41,
30
+ elevation: 2,
31
+ },
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
+ };
@@ -0,0 +1,23 @@
1
+ export const SPACING = {
2
+ none: 0,
3
+ s1: 1,
4
+ s2: 2,
5
+ s3: 3,
6
+ s4: 4,
7
+ s6: 6,
8
+ s8: 8,
9
+ s10: 10,
10
+ s12: 12,
11
+ s14: 14,
12
+ s16: 16,
13
+ s18: 18,
14
+ 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,
23
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext",
4
+ "module": "commonjs",
5
+ "jsx": "react-native",
6
+ "declaration": true,
7
+ "outDir": "dist",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true
11
+ },
12
+ "include": ["src"]
13
+ }