@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.
- package/dist/components/dropdown/Dropdown.d.ts +4 -0
- package/dist/components/dropdown/Dropdown.js +313 -0
- package/dist/components/dropdown/DropdownStyle.d.ts +151 -0
- package/dist/components/dropdown/DropdownStyle.js +148 -0
- package/dist/components/dropdown/components/chip/Chip.d.ts +3 -0
- package/dist/components/dropdown/components/chip/Chip.js +22 -0
- package/dist/components/dropdown/components/chip/ChipStyle.d.ts +84 -0
- package/dist/components/dropdown/components/chip/ChipStyle.js +63 -0
- package/dist/components/dropdown/components/input/TextInput.d.ts +3 -0
- package/dist/components/dropdown/components/input/TextInput.js +60 -0
- package/dist/components/dropdown/components/input/TextInputStyle.d.ts +32 -0
- package/dist/components/dropdown/components/input/TextInputStyle.js +33 -0
- package/dist/components/dropdown/hooks/useDetectDevice.d.ts +3 -0
- package/dist/components/dropdown/hooks/useDetectDevice.js +22 -0
- package/dist/components/dropdown/hooks/useDropdown.d.ts +26 -0
- package/dist/components/dropdown/hooks/useDropdown.js +263 -0
- package/dist/components/dropdown/hooks/useOrientation.d.ts +1 -0
- package/dist/components/dropdown/hooks/useOrientation.js +30 -0
- package/dist/components/dropdown/interface/ChipInterface.d.ts +8 -0
- package/dist/components/dropdown/interface/ChipInterface.js +2 -0
- package/dist/components/dropdown/interface/DropdownInterface.d.ts +71 -0
- package/dist/components/dropdown/interface/DropdownInterface.js +2 -0
- package/dist/components/dropdown/interface/InputProps.d.ts +8 -0
- package/dist/components/dropdown/interface/InputProps.js +2 -0
- package/dist/components/svgButton/SvgButton.d.ts +11 -0
- package/dist/components/svgButton/SvgButton.js +16 -0
- package/dist/components/svgButton/SvgButtonStyle.d.ts +28 -0
- package/dist/components/svgButton/SvgButtonStyle.js +29 -0
- package/dist/components/text/AppText.d.ts +12 -0
- package/dist/components/text/AppText.js +24 -0
- package/dist/components/text/AppTextStyle.d.ts +171 -0
- package/dist/components/text/AppTextStyle.js +27 -0
- package/dist/components/textInput/AppTextInput.d.ts +20 -0
- package/dist/components/textInput/AppTextInput.js +89 -0
- package/dist/components/textInput/AppTextInputStyle.d.ts +79 -0
- package/dist/components/textInput/AppTextInputStyle.js +61 -0
- package/dist/controller/dropDownController/DropdownController.d.ts +10 -0
- package/dist/controller/dropDownController/DropdownController.js +25 -0
- package/dist/controller/dropDownController/DropdownControllerStyle.d.ts +50 -0
- package/dist/controller/dropDownController/DropdownControllerStyle.js +48 -0
- package/dist/controller/textInputController/AppTextInputController.d.ts +13 -0
- package/dist/controller/textInputController/AppTextInputController.js +14 -0
- package/dist/controller/textInputController/InputControllerStyle.d.ts +31 -0
- package/dist/controller/textInputController/InputControllerStyle.js +29 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +16 -0
- package/dist/interface/colors.interface.d.ts +20 -0
- package/dist/interface/colors.interface.js +2 -0
- package/dist/style/colors.d.ts +33 -0
- package/dist/style/colors.js +44 -0
- package/dist/style/index.d.ts +7 -0
- package/dist/style/index.js +29 -0
- package/dist/style/shadow.d.ts +161 -0
- package/dist/style/shadow.js +158 -0
- package/dist/style/spacing.d.ts +23 -0
- package/dist/style/spacing.js +26 -0
- package/package.json +33 -0
- package/src/components/dropdown/Dropdown.tsx +512 -0
- package/src/components/dropdown/DropdownStyle.ts +154 -0
- package/src/components/dropdown/components/chip/Chip.tsx +31 -0
- package/src/components/dropdown/components/chip/ChipStyle.ts +64 -0
- package/src/components/dropdown/components/input/TextInput.tsx +46 -0
- package/src/components/dropdown/components/input/TextInputStyle.ts +32 -0
- package/src/components/dropdown/hooks/useDetectDevice.ts +25 -0
- package/src/components/dropdown/hooks/useDropdown.ts +356 -0
- package/src/components/dropdown/hooks/useOrientation.ts +36 -0
- package/src/components/dropdown/interface/ChipInterface.ts +9 -0
- package/src/components/dropdown/interface/DropdownInterface.ts +90 -0
- package/src/components/dropdown/interface/InputProps.ts +9 -0
- package/src/components/svgButton/SvgButton.tsx +37 -0
- package/src/components/svgButton/SvgButtonStyle.ts +27 -0
- package/src/components/text/AppText.tsx +41 -0
- package/src/components/text/AppTextStyle.ts +40 -0
- package/src/components/textInput/AppTextInput.tsx +148 -0
- package/src/components/textInput/AppTextInputStyle.ts +72 -0
- package/src/controller/dropDownController/DropdownController.tsx +81 -0
- package/src/controller/dropDownController/DropdownControllerStyle.ts +47 -0
- package/src/controller/textInputController/AppTextInputController.tsx +50 -0
- package/src/controller/textInputController/InputControllerStyle.ts +28 -0
- package/src/index.ts +5 -0
- package/src/interface/colors.interface.ts +22 -0
- package/src/style/colors.ts +46 -0
- package/src/style/index.ts +14 -0
- package/src/style/shadow.ts +155 -0
- package/src/style/spacing.ts +23 -0
- 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