@xaui/native 0.2.8 → 0.9.1-alpha.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/chunk-JDS6KGCM.cjs +791 -0
- package/dist/chunk-T3ZI2PZ6.js +791 -0
- package/dist/index.cjs +32 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -0
- package/dist/theme/index.cjs +32 -0
- package/dist/theme/index.d.cts +669 -0
- package/dist/theme/index.d.ts +669 -0
- package/dist/theme/index.js +32 -0
- package/package.json +26 -249
- package/README.md +0 -178
- package/dist/alert/index.cjs +0 -340
- package/dist/alert/index.d.cts +0 -46
- package/dist/alert/index.d.ts +0 -46
- package/dist/alert/index.js +0 -340
- package/dist/app-bar/index.cjs +0 -148
- package/dist/app-bar/index.d.cts +0 -59
- package/dist/app-bar/index.d.ts +0 -59
- package/dist/app-bar/index.js +0 -148
- package/dist/autocomplete/index.cjs +0 -1122
- package/dist/autocomplete/index.d.cts +0 -88
- package/dist/autocomplete/index.d.ts +0 -88
- package/dist/autocomplete/index.js +0 -1122
- package/dist/avatar/index.cjs +0 -281
- package/dist/avatar/index.d.cts +0 -123
- package/dist/avatar/index.d.ts +0 -123
- package/dist/avatar/index.js +0 -281
- package/dist/badge/index.cjs +0 -197
- package/dist/badge/index.d.cts +0 -94
- package/dist/badge/index.d.ts +0 -94
- package/dist/badge/index.js +0 -197
- package/dist/bottom-sheet/index.cjs +0 -9
- package/dist/bottom-sheet/index.d.cts +0 -84
- package/dist/bottom-sheet/index.d.ts +0 -84
- package/dist/bottom-sheet/index.js +0 -9
- package/dist/bottom-tab-bar/index.cjs +0 -497
- package/dist/bottom-tab-bar/index.d.cts +0 -211
- package/dist/bottom-tab-bar/index.d.ts +0 -211
- package/dist/bottom-tab-bar/index.js +0 -497
- package/dist/button/index.cjs +0 -392
- package/dist/button/index.d.cts +0 -174
- package/dist/button/index.d.ts +0 -174
- package/dist/button/index.js +0 -392
- package/dist/button.type-j1ZdkkSl.d.cts +0 -4
- package/dist/button.type-j1ZdkkSl.d.ts +0 -4
- package/dist/card/index.cjs +0 -338
- package/dist/card/index.d.cts +0 -191
- package/dist/card/index.d.ts +0 -191
- package/dist/card/index.js +0 -338
- package/dist/carousel/index.cjs +0 -381
- package/dist/carousel/index.d.cts +0 -147
- package/dist/carousel/index.d.ts +0 -147
- package/dist/carousel/index.js +0 -381
- package/dist/chart/index.cjs +0 -1026
- package/dist/chart/index.d.cts +0 -218
- package/dist/chart/index.d.ts +0 -218
- package/dist/chart/index.js +0 -1026
- package/dist/checkbox/index.cjs +0 -443
- package/dist/checkbox/index.d.cts +0 -73
- package/dist/checkbox/index.d.ts +0 -73
- package/dist/checkbox/index.js +0 -443
- package/dist/chip/index.cjs +0 -503
- package/dist/chip/index.d.cts +0 -195
- package/dist/chip/index.d.ts +0 -195
- package/dist/chip/index.js +0 -503
- package/dist/chunk-4JFWQ5XT.js +0 -368
- package/dist/chunk-56RPWZD2.cjs +0 -9
- package/dist/chunk-7UFBLUMV.cjs +0 -136
- package/dist/chunk-A45TVXU5.js +0 -337
- package/dist/chunk-BYWUAPC4.cjs +0 -368
- package/dist/chunk-DECMUMCI.js +0 -0
- package/dist/chunk-DHSTKO3K.cjs +0 -19
- package/dist/chunk-DJ4Q37UT.cjs +0 -75
- package/dist/chunk-EUQDGTST.cjs +0 -1
- package/dist/chunk-GBHQCAKW.js +0 -19
- package/dist/chunk-RBSA4NH4.js +0 -136
- package/dist/chunk-SHBDANQN.js +0 -9
- package/dist/chunk-UGEINZM7.cjs +0 -290
- package/dist/chunk-UU4HHBDN.js +0 -290
- package/dist/chunk-VSZEXOUN.js +0 -384
- package/dist/chunk-YIEUN3G5.cjs +0 -384
- package/dist/chunk-ZH6ZSV2Q.cjs +0 -337
- package/dist/chunk-ZY7IUTAT.js +0 -75
- package/dist/color-picker/index.cjs +0 -457
- package/dist/color-picker/index.d.cts +0 -124
- package/dist/color-picker/index.d.ts +0 -124
- package/dist/color-picker/index.js +0 -457
- package/dist/core/index.cjs +0 -24
- package/dist/core/index.d.cts +0 -28
- package/dist/core/index.d.ts +0 -28
- package/dist/core/index.js +0 -24
- package/dist/datepicker/index.cjs +0 -1625
- package/dist/datepicker/index.d.cts +0 -45
- package/dist/datepicker/index.d.ts +0 -45
- package/dist/datepicker/index.js +0 -1625
- package/dist/dialog/index.cjs +0 -372
- package/dist/dialog/index.d.cts +0 -151
- package/dist/dialog/index.d.ts +0 -151
- package/dist/dialog/index.js +0 -372
- package/dist/divider/index.cjs +0 -8
- package/dist/divider/index.d.cts +0 -30
- package/dist/divider/index.d.ts +0 -30
- package/dist/divider/index.js +0 -8
- package/dist/drawer/index.cjs +0 -237
- package/dist/drawer/index.d.cts +0 -58
- package/dist/drawer/index.d.ts +0 -58
- package/dist/drawer/index.js +0 -237
- package/dist/expansion-panel/index.cjs +0 -441
- package/dist/expansion-panel/index.d.cts +0 -153
- package/dist/expansion-panel/index.d.ts +0 -153
- package/dist/expansion-panel/index.js +0 -441
- package/dist/fab/index.cjs +0 -9
- package/dist/fab/index.d.cts +0 -10
- package/dist/fab/index.d.ts +0 -10
- package/dist/fab/index.js +0 -9
- package/dist/fab-menu/index.cjs +0 -330
- package/dist/fab-menu/index.d.cts +0 -125
- package/dist/fab-menu/index.d.ts +0 -125
- package/dist/fab-menu/index.js +0 -330
- package/dist/fab.type-CkUHmXU_.d.ts +0 -86
- package/dist/fab.type-DN0vtAh6.d.cts +0 -86
- package/dist/feature-discovery/index.cjs +0 -464
- package/dist/feature-discovery/index.d.cts +0 -82
- package/dist/feature-discovery/index.d.ts +0 -82
- package/dist/feature-discovery/index.js +0 -464
- package/dist/indicator/index.cjs +0 -8
- package/dist/indicator/index.d.cts +0 -47
- package/dist/indicator/index.d.ts +0 -47
- package/dist/indicator/index.js +0 -8
- package/dist/input/index.cjs +0 -1462
- package/dist/input/index.d.cts +0 -522
- package/dist/input/index.d.ts +0 -522
- package/dist/input/index.js +0 -1462
- package/dist/input-trigger/index.cjs +0 -197
- package/dist/input-trigger/index.d.cts +0 -11
- package/dist/input-trigger/index.d.ts +0 -11
- package/dist/input-trigger/index.js +0 -197
- package/dist/input-trigger.type-Ba4bM3Qp.d.cts +0 -180
- package/dist/input-trigger.type-Ba4bM3Qp.d.ts +0 -180
- package/dist/list/index.cjs +0 -395
- package/dist/list/index.d.cts +0 -188
- package/dist/list/index.d.ts +0 -188
- package/dist/list/index.js +0 -395
- package/dist/menu/index.cjs +0 -316
- package/dist/menu/index.d.cts +0 -115
- package/dist/menu/index.d.ts +0 -115
- package/dist/menu/index.js +0 -316
- package/dist/menubox/index.cjs +0 -297
- package/dist/menubox/index.d.cts +0 -98
- package/dist/menubox/index.d.ts +0 -98
- package/dist/menubox/index.js +0 -297
- package/dist/pager/index.cjs +0 -205
- package/dist/pager/index.d.cts +0 -93
- package/dist/pager/index.d.ts +0 -93
- package/dist/pager/index.js +0 -205
- package/dist/picker/index.cjs +0 -244
- package/dist/picker/index.d.cts +0 -121
- package/dist/picker/index.d.ts +0 -121
- package/dist/picker/index.js +0 -244
- package/dist/progress/index.cjs +0 -219
- package/dist/progress/index.d.cts +0 -47
- package/dist/progress/index.d.ts +0 -47
- package/dist/progress/index.js +0 -219
- package/dist/radio/index.cjs +0 -465
- package/dist/radio/index.d.cts +0 -145
- package/dist/radio/index.d.ts +0 -145
- package/dist/radio/index.js +0 -465
- package/dist/refresh-control/index.cjs +0 -45
- package/dist/refresh-control/index.d.cts +0 -55
- package/dist/refresh-control/index.d.ts +0 -55
- package/dist/refresh-control/index.js +0 -45
- package/dist/segment-button/index.cjs +0 -405
- package/dist/segment-button/index.d.cts +0 -141
- package/dist/segment-button/index.d.ts +0 -141
- package/dist/segment-button/index.js +0 -405
- package/dist/select/index.cjs +0 -878
- package/dist/select/index.d.cts +0 -192
- package/dist/select/index.d.ts +0 -192
- package/dist/select/index.js +0 -878
- package/dist/skeleton/index.cjs +0 -89
- package/dist/skeleton/index.d.cts +0 -45
- package/dist/skeleton/index.d.ts +0 -45
- package/dist/skeleton/index.js +0 -89
- package/dist/slider/index.cjs +0 -576
- package/dist/slider/index.d.cts +0 -171
- package/dist/slider/index.d.ts +0 -171
- package/dist/slider/index.js +0 -576
- package/dist/snackbar/index.cjs +0 -436
- package/dist/snackbar/index.d.cts +0 -174
- package/dist/snackbar/index.d.ts +0 -174
- package/dist/snackbar/index.js +0 -436
- package/dist/snippet/index.cjs +0 -314
- package/dist/snippet/index.d.cts +0 -95
- package/dist/snippet/index.d.ts +0 -95
- package/dist/snippet/index.js +0 -314
- package/dist/stepper/index.cjs +0 -550
- package/dist/stepper/index.d.cts +0 -137
- package/dist/stepper/index.d.ts +0 -137
- package/dist/stepper/index.js +0 -550
- package/dist/switch/index.cjs +0 -358
- package/dist/switch/index.d.cts +0 -28
- package/dist/switch/index.d.ts +0 -28
- package/dist/switch/index.js +0 -358
- package/dist/tabs/index.cjs +0 -440
- package/dist/tabs/index.d.cts +0 -180
- package/dist/tabs/index.d.ts +0 -180
- package/dist/tabs/index.js +0 -440
- package/dist/timepicker/index.cjs +0 -823
- package/dist/timepicker/index.d.cts +0 -215
- package/dist/timepicker/index.d.ts +0 -215
- package/dist/timepicker/index.js +0 -823
- package/dist/toolbar/index.cjs +0 -333
- package/dist/toolbar/index.d.cts +0 -100
- package/dist/toolbar/index.d.ts +0 -100
- package/dist/toolbar/index.js +0 -333
- package/dist/typography/index.cjs +0 -238
- package/dist/typography/index.d.cts +0 -113
- package/dist/typography/index.d.ts +0 -113
- package/dist/typography/index.js +0 -238
- package/dist/view/index.cjs +0 -1361
- package/dist/view/index.d.cts +0 -833
- package/dist/view/index.d.ts +0 -833
- package/dist/view/index.js +0 -1361
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaui/native",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.9.1-alpha.0",
|
|
4
|
+
"description": "Composition-first React Native UI components with native animations powered by Reanimated",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"mobile",
|
|
8
8
|
"native",
|
|
9
9
|
"ui",
|
|
10
10
|
"components",
|
|
11
|
-
"flutter",
|
|
12
11
|
"reanimated",
|
|
13
12
|
"animations",
|
|
14
13
|
"xaui"
|
|
15
14
|
],
|
|
15
|
+
"license": "MIT",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"main": "./dist/index.js",
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
@@ -22,240 +22,10 @@
|
|
|
22
22
|
"import": "./dist/index.js",
|
|
23
23
|
"require": "./dist/index.js"
|
|
24
24
|
},
|
|
25
|
-
"./
|
|
26
|
-
"types": "./dist/
|
|
27
|
-
"import": "./dist/
|
|
28
|
-
"require": "./dist/
|
|
29
|
-
},
|
|
30
|
-
"./button": {
|
|
31
|
-
"types": "./dist/button/index.d.ts",
|
|
32
|
-
"import": "./dist/button/index.js",
|
|
33
|
-
"require": "./dist/button/index.js"
|
|
34
|
-
},
|
|
35
|
-
"./checkbox": {
|
|
36
|
-
"types": "./dist/checkbox/index.d.ts",
|
|
37
|
-
"import": "./dist/checkbox/index.js",
|
|
38
|
-
"require": "./dist/checkbox/index.js"
|
|
39
|
-
},
|
|
40
|
-
"./expansion-panel": {
|
|
41
|
-
"types": "./dist/expansion-panel/index.d.ts",
|
|
42
|
-
"import": "./dist/expansion-panel/index.js",
|
|
43
|
-
"require": "./dist/expansion-panel/index.js"
|
|
44
|
-
},
|
|
45
|
-
"./progress": {
|
|
46
|
-
"types": "./dist/progress/index.d.ts",
|
|
47
|
-
"import": "./dist/progress/index.js",
|
|
48
|
-
"require": "./dist/progress/index.js"
|
|
49
|
-
},
|
|
50
|
-
"./indicator": {
|
|
51
|
-
"types": "./dist/indicator/index.d.ts",
|
|
52
|
-
"import": "./dist/indicator/index.js",
|
|
53
|
-
"require": "./dist/indicator/index.js"
|
|
54
|
-
},
|
|
55
|
-
"./switch": {
|
|
56
|
-
"types": "./dist/switch/index.d.ts",
|
|
57
|
-
"import": "./dist/switch/index.js",
|
|
58
|
-
"require": "./dist/switch/index.js"
|
|
59
|
-
},
|
|
60
|
-
"./slider": {
|
|
61
|
-
"types": "./dist/slider/index.d.ts",
|
|
62
|
-
"import": "./dist/slider/index.js",
|
|
63
|
-
"require": "./dist/slider/index.js"
|
|
64
|
-
},
|
|
65
|
-
"./select": {
|
|
66
|
-
"types": "./dist/select/index.d.ts",
|
|
67
|
-
"import": "./dist/select/index.js",
|
|
68
|
-
"require": "./dist/select/index.js"
|
|
69
|
-
},
|
|
70
|
-
"./dialog": {
|
|
71
|
-
"types": "./dist/dialog/index.d.ts",
|
|
72
|
-
"import": "./dist/dialog/index.js",
|
|
73
|
-
"require": "./dist/dialog/index.js"
|
|
74
|
-
},
|
|
75
|
-
"./divider": {
|
|
76
|
-
"types": "./dist/divider/index.d.ts",
|
|
77
|
-
"import": "./dist/divider/index.js",
|
|
78
|
-
"require": "./dist/divider/index.js"
|
|
79
|
-
},
|
|
80
|
-
"./drawer": {
|
|
81
|
-
"types": "./dist/drawer/index.d.ts",
|
|
82
|
-
"import": "./dist/drawer/index.js",
|
|
83
|
-
"require": "./dist/drawer/index.js"
|
|
84
|
-
},
|
|
85
|
-
"./skeleton": {
|
|
86
|
-
"types": "./dist/skeleton/index.d.ts",
|
|
87
|
-
"import": "./dist/skeleton/index.js",
|
|
88
|
-
"require": "./dist/skeleton/index.js"
|
|
89
|
-
},
|
|
90
|
-
"./avatar": {
|
|
91
|
-
"types": "./dist/avatar/index.d.ts",
|
|
92
|
-
"import": "./dist/avatar/index.js",
|
|
93
|
-
"require": "./dist/avatar/index.js"
|
|
94
|
-
},
|
|
95
|
-
"./badge": {
|
|
96
|
-
"types": "./dist/badge/index.d.ts",
|
|
97
|
-
"import": "./dist/badge/index.js",
|
|
98
|
-
"require": "./dist/badge/index.js"
|
|
99
|
-
},
|
|
100
|
-
"./alert": {
|
|
101
|
-
"types": "./dist/alert/index.d.ts",
|
|
102
|
-
"import": "./dist/alert/index.js",
|
|
103
|
-
"require": "./dist/alert/index.js"
|
|
104
|
-
},
|
|
105
|
-
"./autocomplete": {
|
|
106
|
-
"types": "./dist/autocomplete/index.d.ts",
|
|
107
|
-
"import": "./dist/autocomplete/index.js",
|
|
108
|
-
"require": "./dist/autocomplete/index.js"
|
|
109
|
-
},
|
|
110
|
-
"./datepicker": {
|
|
111
|
-
"types": "./dist/datepicker/index.d.ts",
|
|
112
|
-
"import": "./dist/datepicker/index.js",
|
|
113
|
-
"require": "./dist/datepicker/index.js"
|
|
114
|
-
},
|
|
115
|
-
"./typography": {
|
|
116
|
-
"types": "./dist/typography/index.d.ts",
|
|
117
|
-
"import": "./dist/typography/index.js",
|
|
118
|
-
"require": "./dist/typography/index.js"
|
|
119
|
-
},
|
|
120
|
-
"./view": {
|
|
121
|
-
"types": "./dist/view/index.d.ts",
|
|
122
|
-
"import": "./dist/view/index.js",
|
|
123
|
-
"require": "./dist/view/index.js"
|
|
124
|
-
},
|
|
125
|
-
"./carousel": {
|
|
126
|
-
"types": "./dist/carousel/index.d.ts",
|
|
127
|
-
"import": "./dist/carousel/index.js",
|
|
128
|
-
"require": "./dist/carousel/index.js"
|
|
129
|
-
},
|
|
130
|
-
"./segment-button": {
|
|
131
|
-
"types": "./dist/segment-button/index.d.ts",
|
|
132
|
-
"import": "./dist/segment-button/index.js",
|
|
133
|
-
"require": "./dist/segment-button/index.js"
|
|
134
|
-
},
|
|
135
|
-
"./tabs": {
|
|
136
|
-
"types": "./dist/tabs/index.d.ts",
|
|
137
|
-
"import": "./dist/tabs/index.js",
|
|
138
|
-
"require": "./dist/tabs/index.js"
|
|
139
|
-
},
|
|
140
|
-
"./pager": {
|
|
141
|
-
"types": "./dist/pager/index.d.ts",
|
|
142
|
-
"import": "./dist/pager/index.js",
|
|
143
|
-
"require": "./dist/pager/index.js"
|
|
144
|
-
},
|
|
145
|
-
"./chip": {
|
|
146
|
-
"types": "./dist/chip/index.d.ts",
|
|
147
|
-
"import": "./dist/chip/index.js",
|
|
148
|
-
"require": "./dist/chip/index.js"
|
|
149
|
-
},
|
|
150
|
-
"./bottom-sheet": {
|
|
151
|
-
"types": "./dist/bottom-sheet/index.d.ts",
|
|
152
|
-
"import": "./dist/bottom-sheet/index.js",
|
|
153
|
-
"require": "./dist/bottom-sheet/index.js"
|
|
154
|
-
},
|
|
155
|
-
"./bottom-tab-bar": {
|
|
156
|
-
"types": "./dist/bottom-tab-bar/index.d.ts",
|
|
157
|
-
"import": "./dist/bottom-tab-bar/index.js",
|
|
158
|
-
"require": "./dist/bottom-tab-bar/index.js"
|
|
159
|
-
},
|
|
160
|
-
"./menu": {
|
|
161
|
-
"types": "./dist/menu/index.d.ts",
|
|
162
|
-
"import": "./dist/menu/index.js",
|
|
163
|
-
"require": "./dist/menu/index.js"
|
|
164
|
-
},
|
|
165
|
-
"./fab": {
|
|
166
|
-
"types": "./dist/fab/index.d.ts",
|
|
167
|
-
"import": "./dist/fab/index.js",
|
|
168
|
-
"require": "./dist/fab/index.js"
|
|
169
|
-
},
|
|
170
|
-
"./fab-menu": {
|
|
171
|
-
"types": "./dist/fab-menu/index.d.ts",
|
|
172
|
-
"import": "./dist/fab-menu/index.js",
|
|
173
|
-
"require": "./dist/fab-menu/index.js"
|
|
174
|
-
},
|
|
175
|
-
"./feature-discovery": {
|
|
176
|
-
"types": "./dist/feature-discovery/index.d.ts",
|
|
177
|
-
"import": "./dist/feature-discovery/index.js",
|
|
178
|
-
"require": "./dist/feature-discovery/index.js"
|
|
179
|
-
},
|
|
180
|
-
"./card": {
|
|
181
|
-
"types": "./dist/card/index.d.ts",
|
|
182
|
-
"import": "./dist/card/index.js",
|
|
183
|
-
"require": "./dist/card/index.js"
|
|
184
|
-
},
|
|
185
|
-
"./input": {
|
|
186
|
-
"types": "./dist/input/index.d.ts",
|
|
187
|
-
"import": "./dist/input/index.js",
|
|
188
|
-
"require": "./dist/input/index.js"
|
|
189
|
-
},
|
|
190
|
-
"./list": {
|
|
191
|
-
"types": "./dist/list/index.d.ts",
|
|
192
|
-
"import": "./dist/list/index.js",
|
|
193
|
-
"require": "./dist/list/index.js"
|
|
194
|
-
},
|
|
195
|
-
"./radio": {
|
|
196
|
-
"types": "./dist/radio/index.d.ts",
|
|
197
|
-
"import": "./dist/radio/index.js",
|
|
198
|
-
"require": "./dist/radio/index.js"
|
|
199
|
-
},
|
|
200
|
-
"./toolbar": {
|
|
201
|
-
"types": "./dist/toolbar/index.d.ts",
|
|
202
|
-
"import": "./dist/toolbar/index.js",
|
|
203
|
-
"require": "./dist/toolbar/index.js"
|
|
204
|
-
},
|
|
205
|
-
"./app-bar": {
|
|
206
|
-
"types": "./dist/app-bar/index.d.ts",
|
|
207
|
-
"import": "./dist/app-bar/index.js",
|
|
208
|
-
"require": "./dist/app-bar/index.js"
|
|
209
|
-
},
|
|
210
|
-
"./timepicker": {
|
|
211
|
-
"types": "./dist/timepicker/index.d.ts",
|
|
212
|
-
"import": "./dist/timepicker/index.js",
|
|
213
|
-
"require": "./dist/timepicker/index.js"
|
|
214
|
-
},
|
|
215
|
-
"./stepper": {
|
|
216
|
-
"types": "./dist/stepper/index.d.ts",
|
|
217
|
-
"import": "./dist/stepper/index.js",
|
|
218
|
-
"require": "./dist/stepper/index.js"
|
|
219
|
-
},
|
|
220
|
-
"./menubox": {
|
|
221
|
-
"types": "./dist/menubox/index.d.ts",
|
|
222
|
-
"import": "./dist/menubox/index.js",
|
|
223
|
-
"require": "./dist/menubox/index.js"
|
|
224
|
-
},
|
|
225
|
-
"./chart": {
|
|
226
|
-
"types": "./dist/chart/index.d.ts",
|
|
227
|
-
"import": "./dist/chart/index.js",
|
|
228
|
-
"require": "./dist/chart/index.js"
|
|
229
|
-
},
|
|
230
|
-
"./snackbar": {
|
|
231
|
-
"types": "./dist/snackbar/index.d.ts",
|
|
232
|
-
"import": "./dist/snackbar/index.js",
|
|
233
|
-
"require": "./dist/snackbar/index.js"
|
|
234
|
-
},
|
|
235
|
-
"./input-trigger": {
|
|
236
|
-
"types": "./dist/input-trigger/index.d.ts",
|
|
237
|
-
"import": "./dist/input-trigger/index.js",
|
|
238
|
-
"require": "./dist/input-trigger/index.js"
|
|
239
|
-
},
|
|
240
|
-
"./picker": {
|
|
241
|
-
"types": "./dist/picker/index.d.ts",
|
|
242
|
-
"import": "./dist/picker/index.js",
|
|
243
|
-
"require": "./dist/picker/index.js"
|
|
244
|
-
},
|
|
245
|
-
"./color-picker": {
|
|
246
|
-
"types": "./dist/color-picker/index.d.ts",
|
|
247
|
-
"import": "./dist/color-picker/index.js",
|
|
248
|
-
"require": "./dist/color-picker/index.js"
|
|
249
|
-
},
|
|
250
|
-
"./snippet": {
|
|
251
|
-
"types": "./dist/snippet/index.d.ts",
|
|
252
|
-
"import": "./dist/snippet/index.js",
|
|
253
|
-
"require": "./dist/snippet/index.js"
|
|
254
|
-
},
|
|
255
|
-
"./refresh-control": {
|
|
256
|
-
"types": "./dist/refresh-control/index.d.ts",
|
|
257
|
-
"import": "./dist/refresh-control/index.js",
|
|
258
|
-
"require": "./dist/refresh-control/index.js"
|
|
25
|
+
"./theme": {
|
|
26
|
+
"types": "./dist/theme/index.d.ts",
|
|
27
|
+
"import": "./dist/theme/index.js",
|
|
28
|
+
"require": "./dist/theme/index.js"
|
|
259
29
|
}
|
|
260
30
|
},
|
|
261
31
|
"files": [
|
|
@@ -267,9 +37,9 @@
|
|
|
267
37
|
"url": "git+https://github.com/rygrams/xaui.git",
|
|
268
38
|
"directory": "packages/native"
|
|
269
39
|
},
|
|
270
|
-
"
|
|
271
|
-
|
|
272
|
-
"
|
|
40
|
+
"homepage": "https://ui.xtartapp.com/docs/introduction",
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
273
43
|
},
|
|
274
44
|
"peerDependencies": {
|
|
275
45
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -277,8 +47,19 @@
|
|
|
277
47
|
"react-native-gesture-handler": ">=2.0.0",
|
|
278
48
|
"react-native-reanimated": ">=4.0.0",
|
|
279
49
|
"react-native-safe-area-context": ">=4.0.0",
|
|
280
|
-
"react-native-
|
|
281
|
-
"react-native-
|
|
50
|
+
"react-native-svg": ">=15.0.0",
|
|
51
|
+
"react-native-worklets": ">=0.5.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"react-native-gesture-handler": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"react-native-safe-area-context": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"react-native-svg": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
282
63
|
},
|
|
283
64
|
"devDependencies": {
|
|
284
65
|
"@types/react": "^19.1.0",
|
|
@@ -287,18 +68,14 @@
|
|
|
287
68
|
"react-native-gesture-handler": "^2.28.0",
|
|
288
69
|
"react-native-reanimated": "^4.0.0",
|
|
289
70
|
"react-native-safe-area-context": "^5.6.0",
|
|
290
|
-
"react-native-worklets": "^0.5.1",
|
|
291
71
|
"react-native-svg": "^15.8.0",
|
|
72
|
+
"react-native-worklets": "^0.5.1",
|
|
292
73
|
"tsup": "^8.5.1",
|
|
293
74
|
"typescript": "^5.9.3"
|
|
294
75
|
},
|
|
295
|
-
"homepage": "https://ui.xtartapp.com/docs/introduction",
|
|
296
|
-
"publishConfig": {
|
|
297
|
-
"access": "public"
|
|
298
|
-
},
|
|
299
76
|
"scripts": {
|
|
300
|
-
"build": "rm -rf dist &&
|
|
301
|
-
"dev": "
|
|
77
|
+
"build": "rm -rf dist && tsup --config tsup.config.ts",
|
|
78
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
302
79
|
"test": "vitest",
|
|
303
80
|
"lint": "eslint src/",
|
|
304
81
|
"type-check": "tsc --noEmit"
|
package/README.md
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# @xaui/native
|
|
2
|
-
|
|
3
|
-
React Native components and hooks that extend the core `@xaui/core` theme system. This mobile layer ships animated primitives (buttons, indicators, hooks) ready to use with `XUIProvider`.
|
|
4
|
-
|
|
5
|
-
**[Full documentation → ui.xtartapp.com](https://ui.xtartapp.com)**
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pnpm add @xaui/native
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Peer dependencies
|
|
14
|
-
|
|
15
|
-
- `react` ^18 || ^19
|
|
16
|
-
- `react-native` >=0.70.0
|
|
17
|
-
- `react-native-reanimated` >=4.0.0
|
|
18
|
-
- `react-native-svg` >=13.0.0
|
|
19
|
-
|
|
20
|
-
The package also relies on `@xaui/core/theme` for the shared tokens.
|
|
21
|
-
|
|
22
|
-
## Quick start
|
|
23
|
-
|
|
24
|
-
1. Wrap your tree with `XUIProvider` to expose the tokens and follow the system color scheme:
|
|
25
|
-
|
|
26
|
-
```tsx
|
|
27
|
-
import { XUIProvider } from '@xaui/native/core'
|
|
28
|
-
import { theme } from '@xaui/core/theme'
|
|
29
|
-
|
|
30
|
-
export default function App() {
|
|
31
|
-
return <XUIProvider theme={theme}>{/* your screens */}</XUIProvider>
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
2. Consume the theme inside your components via `useXUITheme` or `useColorMode`:
|
|
36
|
-
|
|
37
|
-
```tsx
|
|
38
|
-
import { Text, View } from 'react-native'
|
|
39
|
-
import { useXUITheme, useColorMode } from '@xaui/native/core'
|
|
40
|
-
|
|
41
|
-
function Banner() {
|
|
42
|
-
const theme = useXUITheme()
|
|
43
|
-
const mode = useColorMode()
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<View style={{ backgroundColor: theme.colors.primary.container }}>
|
|
47
|
-
<Text style={{ color: theme.colors.primary.onContainer }}>
|
|
48
|
-
Current mode: {mode}
|
|
49
|
-
</Text>
|
|
50
|
-
</View>
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Components (exhaustive)
|
|
56
|
-
|
|
57
|
-
This table lists all public components exported by `@xaui/native` and their import path.
|
|
58
|
-
|
|
59
|
-
| Name | Description | Usage |
|
|
60
|
-
| ---------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
61
|
-
| `XUIProvider` | Theme provider for all XAUI native components. | `import { XUIProvider } from '@xaui/native/core'` |
|
|
62
|
-
| `Portal` | Renders content in a portal host layer. | `import { Portal } from '@xaui/native/core'` |
|
|
63
|
-
| `PortalHost` | Host container for portal content. | `import { PortalHost } from '@xaui/native/core'` |
|
|
64
|
-
| `Button` | Pressable button with variants, sizes, and loading state. | `import { Button } from '@xaui/native/button'` |
|
|
65
|
-
| `IconButton` | Compact icon-only button variant. | `import { IconButton } from '@xaui/native/button'` |
|
|
66
|
-
| `Checkbox` | Selection control with checked/indeterminate states. | `import { Checkbox } from '@xaui/native/checkbox'` |
|
|
67
|
-
| `ExpansionPanel` | Accordion container for expandable sections. | `import { ExpansionPanel } from '@xaui/native/expansion-panel'` |
|
|
68
|
-
| `ExpansionPanelItem` | Expandable item inside `ExpansionPanel`. | `import { ExpansionPanelItem } from '@xaui/native/expansion-panel'` |
|
|
69
|
-
| `Progress` | Progress indicator with linear/circular rendering. | `import { Progress } from '@xaui/native/progress'` |
|
|
70
|
-
| `ActivityIndicator` | Animated loading indicator component. | `import { ActivityIndicator } from '@xaui/native/indicator'` |
|
|
71
|
-
| `Switch` | Toggle switch control. | `import { Switch } from '@xaui/native/switch'` |
|
|
72
|
-
| `Slider` | Draggable value selector slider. | `import { Slider } from '@xaui/native/slider'` |
|
|
73
|
-
| `Select` | Select input with trigger and list behavior. | `import { Select } from '@xaui/native/select'` |
|
|
74
|
-
| `SelectItem` | Select option item for `Select`. | `import { SelectItem } from '@xaui/native/select'` |
|
|
75
|
-
| `Dialog` | Modal dialog container component. | `import { Dialog } from '@xaui/native/dialog'` |
|
|
76
|
-
| `DialogHeader` | Header section for `Dialog`. | `import { DialogHeader } from '@xaui/native/dialog'` |
|
|
77
|
-
| `DialogBody` | Body/content section for `Dialog`. | `import { DialogBody } from '@xaui/native/dialog'` |
|
|
78
|
-
| `DialogFooter` | Footer/actions section for `Dialog`. | `import { DialogFooter } from '@xaui/native/dialog'` |
|
|
79
|
-
| `Divider` | Horizontal or vertical separator line. | `import { Divider } from '@xaui/native/divider'` |
|
|
80
|
-
| `Drawer` | Side sheet / drawer container. | `import { Drawer } from '@xaui/native/drawer'` |
|
|
81
|
-
| `Skeleton` | Placeholder loading block. | `import { Skeleton } from '@xaui/native/skeleton'` |
|
|
82
|
-
| `Avatar` | User avatar (image, initials, icon). | `import { Avatar } from '@xaui/native/avatar'` |
|
|
83
|
-
| `AvatarGroup` | Grouped avatars with overlap/stacking. | `import { AvatarGroup } from '@xaui/native/avatar'` |
|
|
84
|
-
| `Badge` | Status/count badge component. | `import { Badge } from '@xaui/native/badge'` |
|
|
85
|
-
| `Alert` | Contextual alert/message banner. | `import { Alert } from '@xaui/native/alert'` |
|
|
86
|
-
| `Autocomplete` | Input with dynamic suggestions. | `import { Autocomplete } from '@xaui/native/autocomplete'` |
|
|
87
|
-
| `AutocompleteItem` | Suggestion item for `Autocomplete`. | `import { AutocompleteItem } from '@xaui/native/autocomplete'` |
|
|
88
|
-
| `DatePicker` | Date selection input/picker. | `import { DatePicker } from '@xaui/native/datepicker'` |
|
|
89
|
-
| `Typography` | Themed text component with variants. | `import { Typography } from '@xaui/native/typography'` |
|
|
90
|
-
| `TextSpan` | Text group primitive that shares inherited styles across nested typography. | `import { TextSpan } from '@xaui/native/typography'` |
|
|
91
|
-
| `Column` | Vertical flex layout helper. | `import { Column } from '@xaui/native/view'` |
|
|
92
|
-
| `Row` | Horizontal flex layout helper. | `import { Row } from '@xaui/native/view'` |
|
|
93
|
-
| `Spacer` | Flexible space element in layouts. | `import { Spacer } from '@xaui/native/view'` |
|
|
94
|
-
| `Padding` | Wrapper applying padding shortcuts. | `import { Padding } from '@xaui/native/view'` |
|
|
95
|
-
| `Margin` | Wrapper applying margin shortcuts. | `import { Margin } from '@xaui/native/view'` |
|
|
96
|
-
| `SizedBox` | Fixed width/height spacing box. | `import { SizedBox } from '@xaui/native/view'` |
|
|
97
|
-
| `PositionedView` | Absolute/fixed positioning helper view. | `import { PositionedView } from '@xaui/native/view'` |
|
|
98
|
-
| `BlurView` | Blurred background container. | `import { BlurView } from '@xaui/native/view'` |
|
|
99
|
-
| `RoundedView` | View with configurable rounded corners. | `import { RoundedView } from '@xaui/native/view'` |
|
|
100
|
-
| `AspectRatio` | Maintains a fixed aspect ratio for content. | `import { AspectRatio } from '@xaui/native/view'` |
|
|
101
|
-
| `Grid` | Grid layout container. | `import { Grid } from '@xaui/native/view'` |
|
|
102
|
-
| `GridItem` | Item element for `Grid`. | `import { GridItem } from '@xaui/native/view'` |
|
|
103
|
-
| `GridBuilder` | Builder-based grid rendering helper. | `import { GridBuilder } from '@xaui/native/view'` |
|
|
104
|
-
| `ConditionalView` | Conditionally renders with optional animation. | `import { ConditionalView } from '@xaui/native/view'` |
|
|
105
|
-
| `MasonryGrid` | Masonry-style responsive grid container. | `import { MasonryGrid } from '@xaui/native/view'` |
|
|
106
|
-
| `MasonryGridItem` | Item element for `MasonryGrid`. | `import { MasonryGridItem } from '@xaui/native/view'` |
|
|
107
|
-
| `MasonryGridBuilder` | Builder-based masonry rendering helper. | `import { MasonryGridBuilder } from '@xaui/native/view'` |
|
|
108
|
-
| `Carousel` | Swipeable carousel for paged content. | `import { Carousel } from '@xaui/native/carousel'` |
|
|
109
|
-
| `SegmentButton` | Segmented control container. | `import { SegmentButton } from '@xaui/native/segment-button'` |
|
|
110
|
-
| `SegmentButtonItem` | Segment item for `SegmentButton`. | `import { SegmentButtonItem } from '@xaui/native/segment-button'` |
|
|
111
|
-
| `Tabs` | Tabs container with active tab state. | `import { Tabs } from '@xaui/native/tabs'` |
|
|
112
|
-
| `Tab` | Individual tab item for `Tabs`. | `import { Tab } from '@xaui/native/tabs'` |
|
|
113
|
-
| `Pager` | Paged container with swipe navigation. | `import { Pager } from '@xaui/native/pager'` |
|
|
114
|
-
| `PagerItem` | Page item for `Pager`. | `import { PagerItem } from '@xaui/native/pager'` |
|
|
115
|
-
| `Chip` | Compact labeled action/filter chip. | `import { Chip } from '@xaui/native/chip'` |
|
|
116
|
-
| `ChipGroup` | Group manager for chip selection. | `import { ChipGroup } from '@xaui/native/chip'` |
|
|
117
|
-
| `ChipItem` | Item variant used inside `ChipGroup`. | `import { ChipItem } from '@xaui/native/chip'` |
|
|
118
|
-
| `BottomSheet` | Bottom sheet modal/panel. | `import { BottomSheet } from '@xaui/native/bottom-sheet'` |
|
|
119
|
-
| `BottomTabBar` | Bottom navigation tab bar container. | `import { BottomTabBar } from '@xaui/native/bottom-tab-bar'` |
|
|
120
|
-
| `BottomTabBarItem` | Tab item for `BottomTabBar`. | `import { BottomTabBarItem } from '@xaui/native/bottom-tab-bar'` |
|
|
121
|
-
| `Menu` | Anchored contextual menu. | `import { Menu } from '@xaui/native/menu'` |
|
|
122
|
-
| `MenuItem` | Action item for `Menu`. | `import { MenuItem } from '@xaui/native/menu'` |
|
|
123
|
-
| `Fab` | Floating action button. | `import { Fab } from '@xaui/native/fab'` |
|
|
124
|
-
| `FabMenu` | Expandable floating action menu. | `import { FabMenu } from '@xaui/native/fab-menu'` |
|
|
125
|
-
| `FabMenuItem` | Action item for `FabMenu`. | `import { FabMenuItem } from '@xaui/native/fab-menu'` |
|
|
126
|
-
| `FeatureDiscovery` | Spotlight/coach-mark discovery overlay. | `import { FeatureDiscovery } from '@xaui/native/feature-discovery'` |
|
|
127
|
-
| `Card` | Card container surface. | `import { Card } from '@xaui/native/card'` |
|
|
128
|
-
| `CardHeader` | Header section for `Card`. | `import { CardHeader } from '@xaui/native/card'` |
|
|
129
|
-
| `CardBody` | Body/content section for `Card`. | `import { CardBody } from '@xaui/native/card'` |
|
|
130
|
-
| `CardFooter` | Footer/actions section for `Card`. | `import { CardFooter } from '@xaui/native/card'` |
|
|
131
|
-
| `CardTitle` | Title text slot for `Card`. | `import { CardTitle } from '@xaui/native/card'` |
|
|
132
|
-
| `CardDescription` | Description text slot for `Card`. | `import { CardDescription } from '@xaui/native/card'` |
|
|
133
|
-
| `TextInput` | Standard text input field. | `import { TextInput } from '@xaui/native/input'` |
|
|
134
|
-
| `TextArea` | Multiline text input field. | `import { TextArea } from '@xaui/native/input'` |
|
|
135
|
-
| `DateInput` | Date-only formatted input. | `import { DateInput } from '@xaui/native/input'` |
|
|
136
|
-
| `TimeInput` | Time-only formatted input. | `import { TimeInput } from '@xaui/native/input'` |
|
|
137
|
-
| `DateTimeInput` | Combined date-time formatted input. | `import { DateTimeInput } from '@xaui/native/input'` |
|
|
138
|
-
| `OTPInput` | One-time password segmented input. | `import { OTPInput } from '@xaui/native/input'` |
|
|
139
|
-
| `NumberInput` | Numeric input with controls/formatting. | `import { NumberInput } from '@xaui/native/input'` |
|
|
140
|
-
| `List` | List container with selection options. | `import { List } from '@xaui/native/list'` |
|
|
141
|
-
| `ListItem` | Item row for `List`. | `import { ListItem } from '@xaui/native/list'` |
|
|
142
|
-
| `ListBuilder` | Builder-based dynamic list helper. | `import { ListBuilder } from '@xaui/native/list'` |
|
|
143
|
-
| `Radio` | Single radio option control. | `import { Radio } from '@xaui/native/radio'` |
|
|
144
|
-
| `RadioGroup` | Group controller for radio options. | `import { RadioGroup } from '@xaui/native/radio'` |
|
|
145
|
-
| `Toolbar` | App toolbar/action bar container. | `import { Toolbar } from '@xaui/native/toolbar'` |
|
|
146
|
-
| `ToolbarAction` | Action button/item for `Toolbar`. | `import { ToolbarAction } from '@xaui/native/toolbar'` |
|
|
147
|
-
| `AppBar` | Top app bar container. | `import { AppBar } from '@xaui/native/app-bar'` |
|
|
148
|
-
| `AppBarStartContent` | Leading slot for `AppBar`. | `import { AppBarStartContent } from '@xaui/native/app-bar'` |
|
|
149
|
-
| `AppBarContent` | Main content slot for `AppBar`. | `import { AppBarContent } from '@xaui/native/app-bar'` |
|
|
150
|
-
| `AppBarEndContent` | Trailing slot for `AppBar`. | `import { AppBarEndContent } from '@xaui/native/app-bar'` |
|
|
151
|
-
| `TimePicker` | Time picker main component. | `import { TimePicker } from '@xaui/native/timepicker'` |
|
|
152
|
-
| `TimePickerDialog` | Dialog variant for time selection. | `import { TimePickerDialog } from '@xaui/native/timepicker'` |
|
|
153
|
-
| `TimePickerTrigger` | Trigger component for opening time picker UI. | `import { TimePickerTrigger } from '@xaui/native/timepicker'` |
|
|
154
|
-
| `Stepper` | Multi-step progress/navigation component. | `import { Stepper } from '@xaui/native/stepper'` |
|
|
155
|
-
| `StepperItem` | Individual step for `Stepper`. | `import { StepperItem } from '@xaui/native/stepper'` |
|
|
156
|
-
| `MenuBox` | Menu box container with animated items. | `import { MenuBox } from '@xaui/native/menubox'` |
|
|
157
|
-
| `MenuBoxItem` | Action item for `MenuBox`. | `import { MenuBoxItem } from '@xaui/native/menubox'` |
|
|
158
|
-
| `DonutChartCard` | Card component rendering a donut chart. | `import { DonutChartCard } from '@xaui/native/chart'` |
|
|
159
|
-
| `VerticalBarChartCard` | Card component rendering vertical bars. | `import { VerticalBarChartCard } from '@xaui/native/chart'` |
|
|
160
|
-
| `PieChartCard` | Card component rendering a pie chart. | `import { PieChartCard } from '@xaui/native/chart'` |
|
|
161
|
-
| `LineChartCard` | Card component rendering a line chart. | `import { LineChartCard } from '@xaui/native/chart'` |
|
|
162
|
-
| `HeatmapChartCard` | Card component rendering a heatmap chart. | `import { HeatmapChartCard } from '@xaui/native/chart'` |
|
|
163
|
-
|
|
164
|
-
## Theme hooks & utilities
|
|
165
|
-
|
|
166
|
-
- `useXUITheme()` must be used within `XUIProvider`; it throws if the provider is missing.
|
|
167
|
-
- `useXUIColors()` is a shortcut for reading just the color tokens.
|
|
168
|
-
- `useColorMode()` returns `light` or `dark` based on React Native's `useColorScheme()`.
|
|
169
|
-
- `XUIProvider` accepts a single `theme` object (`DeepPartial<XUITheme>`) for partial token overrides.
|
|
170
|
-
|
|
171
|
-
## Testing & build
|
|
172
|
-
|
|
173
|
-
- Bundles are produced with `tsup` (ESM + CJS outputs under `dist`).
|
|
174
|
-
- Tests live under `packages/native/__tests__` and run with `vitest`.
|
|
175
|
-
|
|
176
|
-
## License
|
|
177
|
-
|
|
178
|
-
MIT
|