react-native-ui-lib 7.39.0-snapshot.6728 → 7.39.1
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/package.json +2 -4
- package/scripts/docs/buildDocsCommon.js +83 -16
- package/src/assets/icons/index.js +26 -0
- package/src/assets/images/index.js +5 -0
- package/src/assets/index.js +5 -2
- package/src/commons/Constants.d.ts +0 -1
- package/src/commons/Constants.js +2 -4
- package/src/components/avatar/index.d.ts +19 -8
- package/src/components/avatar/index.js +2 -4
- package/src/components/button/button.api.json +85 -25
- package/src/components/card/index.js +1 -1
- package/src/components/checkbox/index.d.ts +1 -4
- package/src/components/checkbox/index.js +5 -7
- package/src/components/chip/index.js +1 -1
- package/src/components/chipsInput/index.js +2 -2
- package/src/components/colorPicker/ColorPickerDialog.js +1 -1
- package/src/components/colorPicker/ColorPickerDialogHeader.js +2 -2
- package/src/components/colorPicker/ColorPickerPreview.js +2 -2
- package/src/components/colorPicker/index.js +1 -1
- package/src/components/colorSwatch/index.js +3 -2
- package/src/components/dateTimePicker/index.js +2 -2
- package/src/components/hint/hint.api.json +5 -39
- package/src/components/hint/index.js +3 -2
- package/src/components/icon/index.d.ts +3 -12
- package/src/components/icon/index.js +9 -18
- package/src/components/image/index.d.ts +1 -1
- package/src/components/modal/TopBar.js +1 -1
- package/src/components/modal/api/modalTopBar.api.json +1 -1
- package/src/components/overlay/index.js +6 -4
- package/src/components/panningViews/panDismissibleView.js +1 -1
- package/src/components/panningViews/panGestureView.js +1 -1
- package/src/components/panningViews/panListenerView.js +1 -1
- package/src/components/panningViews/panResponderView.js +1 -1
- package/src/components/panningViews/panningContext.js +0 -1
- package/src/components/picker/PickerItem.js +1 -1
- package/src/components/picker/PickerItemsList.js +1 -1
- package/src/components/picker/api/picker.api.json +5 -387
- package/src/components/picker/helpers/useFieldType.js +2 -2
- package/src/components/scrollBar/index.js +3 -3
- package/src/components/sortableList/SortableList.api.json +7 -7
- package/src/components/stepper/assets/minusSmall.png +0 -0
- package/src/components/stepper/assets/minusSmall@1.5x.png +0 -0
- package/src/components/stepper/assets/minusSmall@2x.png +0 -0
- package/src/components/stepper/assets/minusSmall@3x.png +0 -0
- package/src/components/stepper/assets/minusSmall@4x.png +0 -0
- package/src/components/stepper/assets/plusSmall.png +0 -0
- package/src/components/stepper/assets/plusSmall@1.5x.png +0 -0
- package/src/components/stepper/assets/plusSmall@2x.png +0 -0
- package/src/components/stepper/assets/plusSmall@3x.png +0 -0
- package/src/components/stepper/assets/plusSmall@4x.png +0 -0
- package/src/components/stepper/index.js +8 -3
- package/src/components/tabController/apis/pageCarousel.api.json +5 -8
- package/src/components/textField/ClearButton.js +1 -1
- package/src/components/timeline/timeline.api.json +106 -57
- package/src/components/toast/index.js +1 -1
- package/src/components/wizard/WizardStates.js +4 -3
- package/src/hooks/useScrollTo/index.js +4 -9
- package/src/incubator/dialog/useDialogContent.js +1 -1
- package/src/incubator/expandableOverlay/index.js +0 -1
- package/src/incubator/panView/index.js +1 -1
- package/src/incubator/slider/Thumb.js +1 -8
- package/src/incubator/toast/toast.api.json +7 -57
- package/src/assets/internal/icons/index.js +0 -50
- package/src/assets/internal/icons/index.web.js +0 -50
- package/src/assets/internal/images/index.js +0 -26
- package/src/assets/internal/images/index.web.js +0 -26
- package/src/assets/internal/index.d.ts +0 -4
- package/src/assets/internal/index.js +0 -8
- package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.api.json +0 -40
- package/src/components/modal/modal.api.json +0 -54
- /package/src/assets/{internal/icons/checkSmall.png → icons/check-small.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@1.5x.png → icons/check-small@1.5x.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@2x.png → icons/check-small@2x.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@3x.png → icons/check-small@3x.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@4x.png → icons/check-small@4x.png} +0 -0
- /package/src/assets/{internal/icons → icons}/check.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/x.png +0 -0
- /package/src/assets/{internal/icons → icons}/x@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/x@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@4x.png +0 -0
- /package/src/assets/{internal/images → images}/gradient.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@4x.png +0 -0
- /package/src/{assets/internal/images/transparentSwatch.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@1.5x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@1.5x.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@2x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@2x.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@3x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@3x.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@4x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@4x.png} +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@1.5x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@2x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@3x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@4x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@1.5x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@2x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@3x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@4x.png +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh.png → components/overlay/assets/GradientOverlayHigh.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@1.5x.png → components/overlay/assets/GradientOverlayHigh@1.5x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@2x.png → components/overlay/assets/GradientOverlayHigh@2x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@3x.png → components/overlay/assets/GradientOverlayHigh@3x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@4x.png → components/overlay/assets/GradientOverlayHigh@4x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow.png → components/overlay/assets/GradientOverlayLow.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@1.5x.png → components/overlay/assets/GradientOverlayLow@1.5x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@2x.png → components/overlay/assets/GradientOverlayLow@2x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@3x.png → components/overlay/assets/GradientOverlayLow@3x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@4x.png → components/overlay/assets/GradientOverlayLow@4x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium.png → components/overlay/assets/GradientOverlayMedium.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@1.5x.png → components/overlay/assets/GradientOverlayMedium@1.5x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@2x.png → components/overlay/assets/GradientOverlayMedium@2x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@3x.png → components/overlay/assets/GradientOverlayMedium@3x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@4x.png → components/overlay/assets/GradientOverlayMedium@4x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown.png → components/picker/assets/dropdown.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@1.5x.png → components/picker/assets/dropdown@1.5x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@2x.png → components/picker/assets/dropdown@2x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@3x.png → components/picker/assets/dropdown@3x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@4x.png → components/picker/assets/dropdown@4x.png} +0 -0
- /package/src/{assets/internal/images → components/scrollBar/assets}/gradientOverlay.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@4x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@4x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@4x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@4x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@4x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@4x.png +0 -0
|
@@ -29,18 +29,30 @@
|
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"snippet": [
|
|
32
|
-
"<Timeline",
|
|
33
|
-
" topLine={{
|
|
34
|
-
"
|
|
35
|
-
"
|
|
32
|
+
"<Timeline ",
|
|
33
|
+
" topLine={{",
|
|
34
|
+
" state: Timeline.states.ERROR",
|
|
35
|
+
" }$1}",
|
|
36
|
+
" bottomLine={{",
|
|
37
|
+
" type: Timeline.lineTypes.DASHED,",
|
|
38
|
+
" color: Colors.orange40",
|
|
39
|
+
" }$2}",
|
|
40
|
+
" point={{",
|
|
41
|
+
" type: Timeline.pointTypes.OUTLINE,",
|
|
42
|
+
" color: Colors.orange40,",
|
|
43
|
+
" icon: Assets.icons.demo.camera,",
|
|
44
|
+
" anchorRef: alignToTitle ? titleRef : undefined",
|
|
45
|
+
" }$3}",
|
|
36
46
|
">",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
47
|
+
" <View flex centerH paddingH-20>",
|
|
48
|
+
" <Text text70 dark10 ref={titleRef}>",
|
|
49
|
+
" {title}",
|
|
50
|
+
" </Text>",
|
|
51
|
+
" <Text dark40>",
|
|
52
|
+
" {description}",
|
|
53
|
+
" </Text>",
|
|
54
|
+
" </View>",
|
|
55
|
+
"</Timeline>"
|
|
44
56
|
],
|
|
45
57
|
"docs": {
|
|
46
58
|
"hero": {
|
|
@@ -126,7 +138,29 @@
|
|
|
126
138
|
"title": "Current",
|
|
127
139
|
"content": [
|
|
128
140
|
{
|
|
129
|
-
"
|
|
141
|
+
"props": {
|
|
142
|
+
"state": "current",
|
|
143
|
+
"point": {
|
|
144
|
+
"type": {
|
|
145
|
+
"type": "bullet"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"bottomLine": {
|
|
149
|
+
"type": {
|
|
150
|
+
"type": "solid"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"props": {
|
|
157
|
+
"point": {
|
|
158
|
+
"type": {
|
|
159
|
+
"type": "bullet",
|
|
160
|
+
"color": "#116DFF"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
130
164
|
}
|
|
131
165
|
],
|
|
132
166
|
"description": "state: current"
|
|
@@ -135,7 +169,19 @@
|
|
|
135
169
|
"title": "Next",
|
|
136
170
|
"content": [
|
|
137
171
|
{
|
|
138
|
-
"
|
|
172
|
+
"props": {
|
|
173
|
+
"state": "next",
|
|
174
|
+
"point": {
|
|
175
|
+
"type": {
|
|
176
|
+
"type": "bullet"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"bottomLine": {
|
|
180
|
+
"type": {
|
|
181
|
+
"type": "solid"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
139
185
|
}
|
|
140
186
|
],
|
|
141
187
|
"description": "state: next"
|
|
@@ -144,7 +190,19 @@
|
|
|
144
190
|
"title": "Error",
|
|
145
191
|
"content": [
|
|
146
192
|
{
|
|
147
|
-
"
|
|
193
|
+
"props": {
|
|
194
|
+
"state": "error",
|
|
195
|
+
"point": {
|
|
196
|
+
"type": {
|
|
197
|
+
"type": "bullet"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"bottomLine": {
|
|
201
|
+
"type": {
|
|
202
|
+
"type": "solid"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
148
206
|
}
|
|
149
207
|
],
|
|
150
208
|
"description": "state: error"
|
|
@@ -153,7 +211,19 @@
|
|
|
153
211
|
"title": "Success",
|
|
154
212
|
"content": [
|
|
155
213
|
{
|
|
156
|
-
"
|
|
214
|
+
"props": {
|
|
215
|
+
"state": "success",
|
|
216
|
+
"point": {
|
|
217
|
+
"type": {
|
|
218
|
+
"type": "bullet"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"bottomLine": {
|
|
222
|
+
"type": {
|
|
223
|
+
"type": "solid"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
157
227
|
}
|
|
158
228
|
],
|
|
159
229
|
"description": "state: success"
|
|
@@ -168,30 +238,15 @@
|
|
|
168
238
|
"items": [
|
|
169
239
|
{
|
|
170
240
|
"title": "Bullet",
|
|
171
|
-
"description": "type: bullet"
|
|
172
|
-
"content": [
|
|
173
|
-
{
|
|
174
|
-
"snippet": "<Timeline point={{type: Timeline.pointTypes.BULLET}}><View style={{height: 88}}/></Timeline>"
|
|
175
|
-
}
|
|
176
|
-
]
|
|
241
|
+
"description": "type: bullet"
|
|
177
242
|
},
|
|
178
243
|
{
|
|
179
244
|
"title": "Circle",
|
|
180
|
-
"description": "type: circle"
|
|
181
|
-
"content": [
|
|
182
|
-
{
|
|
183
|
-
"snippet": "<Timeline point={{state: Timeline.states.NEXT, type: Timeline.pointTypes.CIRCLE}}><View style={{height: 88}}/></Timeline>"
|
|
184
|
-
}
|
|
185
|
-
]
|
|
245
|
+
"description": "type: circle"
|
|
186
246
|
},
|
|
187
247
|
{
|
|
188
248
|
"title": "Outline",
|
|
189
|
-
"description": "type: outline"
|
|
190
|
-
"content": [
|
|
191
|
-
{
|
|
192
|
-
"snippet": "<Timeline point={{type: Timeline.pointTypes.OUTLINE}}><View style={{height: 88}}/></Timeline>"
|
|
193
|
-
}
|
|
194
|
-
]
|
|
249
|
+
"description": "type: outline"
|
|
195
250
|
}
|
|
196
251
|
],
|
|
197
252
|
"title": "Point",
|
|
@@ -205,7 +260,14 @@
|
|
|
205
260
|
"title": "Text",
|
|
206
261
|
"content": [
|
|
207
262
|
{
|
|
208
|
-
"
|
|
263
|
+
"props": {
|
|
264
|
+
"state": "current",
|
|
265
|
+
"bottomLine": {
|
|
266
|
+
"type": {
|
|
267
|
+
"type": "solid"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
209
271
|
}
|
|
210
272
|
],
|
|
211
273
|
"description": "text: “1”"
|
|
@@ -214,19 +276,21 @@
|
|
|
214
276
|
"title": "Icon",
|
|
215
277
|
"content": [
|
|
216
278
|
{
|
|
217
|
-
"
|
|
279
|
+
"props": {
|
|
280
|
+
"state": "current",
|
|
281
|
+
"bottomLine": {
|
|
282
|
+
"type": {
|
|
283
|
+
"type": "dashed"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
218
287
|
}
|
|
219
288
|
],
|
|
220
|
-
"description": "icon: Assets.
|
|
289
|
+
"description": "icon: Assets.icons.general.checkmarkSmall"
|
|
221
290
|
},
|
|
222
291
|
{
|
|
223
292
|
"title": "Icon without background",
|
|
224
|
-
"
|
|
225
|
-
{
|
|
226
|
-
"snippet": "<Timeline point={{state: Timeline.states.SUCCESS, icon: Assets.internal.icons.search, removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
"description": "icon: Assets.internal.icons.general.favorite, removeIconBackground: true"
|
|
293
|
+
"description": "icon: Assets.icons.general.favorite, removeIconBackground: true"
|
|
230
294
|
}
|
|
231
295
|
],
|
|
232
296
|
"name": "Point Accessories"
|
|
@@ -237,20 +301,10 @@
|
|
|
237
301
|
"items": [
|
|
238
302
|
{
|
|
239
303
|
"title": "Solid",
|
|
240
|
-
"content": [
|
|
241
|
-
{
|
|
242
|
-
"snippet": "<Timeline topLine={{state: Timeline.states.CURRENT}} point={{removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
304
|
"description": "type: solid"
|
|
246
305
|
},
|
|
247
306
|
{
|
|
248
307
|
"title": "Dashed",
|
|
249
|
-
"content": [
|
|
250
|
-
{
|
|
251
|
-
"snippet": "<Timeline topLine={{state: Timeline.states.CURRENT, type: Timeline.lineTypes.DASHED}} point={{removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
252
|
-
}
|
|
253
|
-
],
|
|
254
308
|
"description": "type: dashed"
|
|
255
309
|
}
|
|
256
310
|
],
|
|
@@ -263,11 +317,6 @@
|
|
|
263
317
|
"items": [
|
|
264
318
|
{
|
|
265
319
|
"title": "Entry",
|
|
266
|
-
"content": [
|
|
267
|
-
{
|
|
268
|
-
"snippet": "<Timeline topLine={{state: Timeline.states.NEXT, entry: true}} bottomLine={{state: Timeline.states.NEXT, entry: true}} point={{removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
320
|
"description": "entry: true"
|
|
272
321
|
}
|
|
273
322
|
],
|
|
@@ -239,7 +239,7 @@ export default class Toast extends PureBaseComponent {
|
|
|
239
239
|
<Button
|
|
240
240
|
link
|
|
241
241
|
iconStyle={{tintColor: textColor}}
|
|
242
|
-
iconSource={Assets.
|
|
242
|
+
iconSource={Assets.icons.x}
|
|
243
243
|
onPress={this.onDismiss}
|
|
244
244
|
paddingR-20
|
|
245
245
|
accessibilityLabel={'dismiss'}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Colors from "../../style/colors";
|
|
2
|
-
|
|
2
|
+
const checkMarkSmall = require("./assets/checkMarkSmall.png");
|
|
3
|
+
const exclamationSmall = require("./assets/exclamationSmall.png");
|
|
3
4
|
export const StatesConfig = {
|
|
4
5
|
enabled: {
|
|
5
6
|
color: Colors.$textNeutralHeavy,
|
|
@@ -13,7 +14,7 @@ export const StatesConfig = {
|
|
|
13
14
|
error: {
|
|
14
15
|
color: Colors.$iconDangerLight,
|
|
15
16
|
circleColor: Colors.$outlineDanger,
|
|
16
|
-
icon:
|
|
17
|
+
icon: exclamationSmall,
|
|
17
18
|
enabled: true,
|
|
18
19
|
accessibilityInfo: 'Validation Error'
|
|
19
20
|
},
|
|
@@ -26,7 +27,7 @@ export const StatesConfig = {
|
|
|
26
27
|
completed: {
|
|
27
28
|
color: Colors.$iconNeutral,
|
|
28
29
|
circleColor: Colors.$outlineDisabled,
|
|
29
|
-
icon:
|
|
30
|
+
icon: checkMarkSmall,
|
|
30
31
|
enabled: true,
|
|
31
32
|
accessibilityInfo: 'Completed'
|
|
32
33
|
},
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _isFunction from "lodash/isFunction";
|
|
2
|
+
import _isUndefined from "lodash/isUndefined";
|
|
2
3
|
import { useCallback, useRef } from 'react';
|
|
4
|
+
import { Constants } from "../../commons/new";
|
|
3
5
|
const useScrollTo = props => {
|
|
4
6
|
const {
|
|
5
7
|
scrollViewRef: propsScrollViewRef,
|
|
@@ -24,17 +26,10 @@ const useScrollTo = props => {
|
|
|
24
26
|
containerSize.current = horizontal ? width : height;
|
|
25
27
|
}, [horizontal]);
|
|
26
28
|
const scrollTo = useCallback((offset, animated = true) => {
|
|
27
|
-
|
|
28
|
-
/* if (
|
|
29
|
-
horizontal &&
|
|
30
|
-
Constants.isRTL &&
|
|
31
|
-
Constants.isAndroid &&
|
|
32
|
-
!_.isUndefined(contentSize.current) &&
|
|
33
|
-
!_.isUndefined(containerSize.current)
|
|
34
|
-
) {
|
|
29
|
+
if (horizontal && Constants.isRTL && Constants.isAndroid && !_isUndefined(contentSize.current) && !_isUndefined(containerSize.current)) {
|
|
35
30
|
const scrollingWidth = Math.max(0, contentSize.current - containerSize.current);
|
|
36
31
|
offset = scrollingWidth - offset;
|
|
37
|
-
}
|
|
32
|
+
}
|
|
38
33
|
|
|
39
34
|
// @ts-ignore
|
|
40
35
|
if (_isFunction(scrollViewRef.current?.scrollToOffset)) {
|
|
@@ -23,7 +23,7 @@ const useDialogContent = props => {
|
|
|
23
23
|
}
|
|
24
24
|
return <View left centerV pointerEvents={'box-none'}>
|
|
25
25
|
<TouchableOpacity paddingB-s2 row onPress={close}>
|
|
26
|
-
<Icon source={Assets.
|
|
26
|
+
<Icon source={Assets.icons.xMedium} tintColor={Colors.white} {...closeButtonProps?.iconProps} />
|
|
27
27
|
<Text recorderTag={'unmask'} text70BO white {...closeButtonProps?.labelProps}>
|
|
28
28
|
{closeButtonProps?.label || 'Close'}
|
|
29
29
|
</Text>
|
|
@@ -7,20 +7,13 @@ import View from "../../components/view";
|
|
|
7
7
|
import { Constants } from "../../commons/new";
|
|
8
8
|
const SHADOW_RADIUS = 4;
|
|
9
9
|
const THUMB_SIZE = 24;
|
|
10
|
-
const THUMB_ACCESSIBLE_HITSLOP = Math.max(0, 48 - THUMB_SIZE) / 2;
|
|
11
|
-
const DEFAULT_THUMB_HIT_SLOP = {
|
|
12
|
-
top: THUMB_ACCESSIBLE_HITSLOP,
|
|
13
|
-
bottom: THUMB_ACCESSIBLE_HITSLOP,
|
|
14
|
-
left: THUMB_ACCESSIBLE_HITSLOP,
|
|
15
|
-
right: THUMB_ACCESSIBLE_HITSLOP
|
|
16
|
-
};
|
|
17
10
|
const Thumb = props => {
|
|
18
11
|
const {
|
|
19
12
|
disabled,
|
|
20
13
|
disableActiveStyling,
|
|
21
14
|
activeStyle,
|
|
22
15
|
defaultStyle,
|
|
23
|
-
hitSlop
|
|
16
|
+
hitSlop,
|
|
24
17
|
onSeekStart,
|
|
25
18
|
onSeekEnd,
|
|
26
19
|
start,
|
|
@@ -104,47 +104,19 @@
|
|
|
104
104
|
{
|
|
105
105
|
"props": {
|
|
106
106
|
"visible": true,
|
|
107
|
-
"message": "Mika Or was saved to contacts."
|
|
108
|
-
"preset": "general"
|
|
107
|
+
"message": "\"Mika Or\" was saved to contacts."
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
110
|
]
|
|
112
111
|
},
|
|
113
112
|
{
|
|
114
|
-
"title": "Success"
|
|
115
|
-
"content": [
|
|
116
|
-
{
|
|
117
|
-
"props": {
|
|
118
|
-
"visible": true,
|
|
119
|
-
"message": "Post published.",
|
|
120
|
-
"preset": "success"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
]
|
|
113
|
+
"title": "Success"
|
|
124
114
|
},
|
|
125
115
|
{
|
|
126
|
-
"title": "Validation"
|
|
127
|
-
"content": [
|
|
128
|
-
{
|
|
129
|
-
"props": {
|
|
130
|
-
"visible": true,
|
|
131
|
-
"message": "Enter a card number.",
|
|
132
|
-
"preset": "failure"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]
|
|
116
|
+
"title": "Validation"
|
|
136
117
|
},
|
|
137
118
|
{
|
|
138
|
-
"title": "Offline Error"
|
|
139
|
-
"content": [
|
|
140
|
-
{
|
|
141
|
-
"props": {
|
|
142
|
-
"visible": true,
|
|
143
|
-
"message": "This action is not available offline.",
|
|
144
|
-
"preset": "offline"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
]
|
|
119
|
+
"title": "Offline Error"
|
|
148
120
|
}
|
|
149
121
|
],
|
|
150
122
|
"title": "Types"
|
|
@@ -154,35 +126,13 @@
|
|
|
154
126
|
"columns": ["Prop", "Preview"],
|
|
155
127
|
"items": [
|
|
156
128
|
{
|
|
157
|
-
"title": "None"
|
|
158
|
-
"content": [
|
|
159
|
-
{
|
|
160
|
-
"props": {
|
|
161
|
-
"visible": true,
|
|
162
|
-
"message": "Action completed."
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
]
|
|
129
|
+
"title": "None"
|
|
166
130
|
},
|
|
167
131
|
{
|
|
168
|
-
"title": "With action"
|
|
169
|
-
"content": [
|
|
170
|
-
{
|
|
171
|
-
"snippet": "<Incubator.Toast visible message=\"Action completed.\" action={{label: 'Undo', onPress: () => {}}}/>"
|
|
172
|
-
}
|
|
173
|
-
]
|
|
132
|
+
"title": "With action"
|
|
174
133
|
},
|
|
175
134
|
{
|
|
176
|
-
"title": "With loader"
|
|
177
|
-
"content": [
|
|
178
|
-
{
|
|
179
|
-
"props": {
|
|
180
|
-
"visible": true,
|
|
181
|
-
"message": "Action completed.",
|
|
182
|
-
"showLoader": true
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
]
|
|
135
|
+
"title": "With loader"
|
|
186
136
|
}
|
|
187
137
|
],
|
|
188
138
|
"title": "Accessories"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export const icons = {
|
|
2
|
-
get check() {
|
|
3
|
-
return require('./check.png');
|
|
4
|
-
},
|
|
5
|
-
get checkMarkSmall() {
|
|
6
|
-
return require('./checkMarkSmall.png');
|
|
7
|
-
},
|
|
8
|
-
get checkSmall() {
|
|
9
|
-
return require('./checkSmall.png');
|
|
10
|
-
},
|
|
11
|
-
get chevronDown() {
|
|
12
|
-
return require('./chevronDown.png');
|
|
13
|
-
},
|
|
14
|
-
get exclamationSmall() {
|
|
15
|
-
return require('./exclamationSmall.png');
|
|
16
|
-
},
|
|
17
|
-
get minusOutline() {
|
|
18
|
-
return require('./minusOutline.png');
|
|
19
|
-
},
|
|
20
|
-
get minusOutlineSmall() {
|
|
21
|
-
return require('./minusOutlineSmall.png');
|
|
22
|
-
},
|
|
23
|
-
get minusSmall() {
|
|
24
|
-
return require('./minusSmall.png');
|
|
25
|
-
},
|
|
26
|
-
get plusOutline() {
|
|
27
|
-
return require('./plusOutline.png');
|
|
28
|
-
},
|
|
29
|
-
get plusOutlineSmall() {
|
|
30
|
-
return require('./plusOutlineSmall.png');
|
|
31
|
-
},
|
|
32
|
-
get plusSmall() {
|
|
33
|
-
return require('./plusSmall.png');
|
|
34
|
-
},
|
|
35
|
-
get search() {
|
|
36
|
-
return require('./search.png');
|
|
37
|
-
},
|
|
38
|
-
get x() {
|
|
39
|
-
return require('./x.png');
|
|
40
|
-
},
|
|
41
|
-
get xFlat() {
|
|
42
|
-
return require('./xFlat.png');
|
|
43
|
-
},
|
|
44
|
-
get xMedium() {
|
|
45
|
-
return require('./xMedium.png');
|
|
46
|
-
},
|
|
47
|
-
get xSmall() {
|
|
48
|
-
return require('./xSmall.png');
|
|
49
|
-
}
|
|
50
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export const icons = {
|
|
2
|
-
get check() {
|
|
3
|
-
return {uri: require('./check.png'), width: 21, height: 15};
|
|
4
|
-
},
|
|
5
|
-
get checkMarkSmall() {
|
|
6
|
-
return {uri: require('./checkMarkSmall.png'), width: 16, height: 16};
|
|
7
|
-
},
|
|
8
|
-
get checkSmall() {
|
|
9
|
-
return {uri: require('./checkSmall.png'), width: 24, height: 24};
|
|
10
|
-
},
|
|
11
|
-
get chevronDown() {
|
|
12
|
-
return {uri: require('./chevronDown.png'), width: 16, height: 16};
|
|
13
|
-
},
|
|
14
|
-
get exclamationSmall() {
|
|
15
|
-
return {uri: require('./exclamationSmall.png'), width: 16, height: 16};
|
|
16
|
-
},
|
|
17
|
-
get minusOutline() {
|
|
18
|
-
return {uri: require('./minusOutline.png'), width: 32, height: 32};
|
|
19
|
-
},
|
|
20
|
-
get minusOutlineSmall() {
|
|
21
|
-
return {uri: require('./minusOutlineSmall.png'), width: 24, height: 24};
|
|
22
|
-
},
|
|
23
|
-
get minusSmall() {
|
|
24
|
-
return {uri: require('./minusSmall.png'), width: 16, height: 16};
|
|
25
|
-
},
|
|
26
|
-
get plusOutline() {
|
|
27
|
-
return {uri: require('./plusOutline.png'), width: 32, height: 32};
|
|
28
|
-
},
|
|
29
|
-
get plusOutlineSmall() {
|
|
30
|
-
return {uri: require('./plusOutlineSmall.png'), width: 24, height: 24};
|
|
31
|
-
},
|
|
32
|
-
get plusSmall() {
|
|
33
|
-
return {uri: require('./plusSmall.png'), width: 16, height: 16};
|
|
34
|
-
},
|
|
35
|
-
get search() {
|
|
36
|
-
return {uri: require('./search.png'), width: 24, height: 24};
|
|
37
|
-
},
|
|
38
|
-
get x() {
|
|
39
|
-
return {uri: require('./x.png'), width: 17, height: 16};
|
|
40
|
-
},
|
|
41
|
-
get xFlat() {
|
|
42
|
-
return {uri: require('./xFlat.png'), width: 16, height: 16};
|
|
43
|
-
},
|
|
44
|
-
get xMedium() {
|
|
45
|
-
return {uri: require('./xMedium.png'), width: 24, height: 24};
|
|
46
|
-
},
|
|
47
|
-
get xSmall() {
|
|
48
|
-
return {uri: require('./xSmall.png'), width: 16, height: 16};
|
|
49
|
-
}
|
|
50
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const images = {
|
|
2
|
-
get gradient() {
|
|
3
|
-
return require('./gradient.png');
|
|
4
|
-
},
|
|
5
|
-
get gradientOverlay() {
|
|
6
|
-
return require('./gradientOverlay.png');
|
|
7
|
-
},
|
|
8
|
-
get gradientOverlayHigh() {
|
|
9
|
-
return require('./gradientOverlayHigh.png');
|
|
10
|
-
},
|
|
11
|
-
get gradientOverlayLow() {
|
|
12
|
-
return require('./gradientOverlayLow.png');
|
|
13
|
-
},
|
|
14
|
-
get gradientOverlayMedium() {
|
|
15
|
-
return require('./gradientOverlayMedium.png');
|
|
16
|
-
},
|
|
17
|
-
get hintTipMiddle() {
|
|
18
|
-
return require('./hintTipMiddle.png');
|
|
19
|
-
},
|
|
20
|
-
get hintTipSide() {
|
|
21
|
-
return require('./hintTipSide.png');
|
|
22
|
-
},
|
|
23
|
-
get transparentSwatch() {
|
|
24
|
-
return require('./transparentSwatch.png');
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const images = {
|
|
2
|
-
get gradient() {
|
|
3
|
-
return {uri: require('./gradient.png'), width: 56, height: 2};
|
|
4
|
-
},
|
|
5
|
-
get gradientOverlay() {
|
|
6
|
-
return {uri: require('./gradientOverlay.png'), width: 76, height: 48};
|
|
7
|
-
},
|
|
8
|
-
get gradientOverlayHigh() {
|
|
9
|
-
return {uri: require('./gradientOverlayHigh.png'), width: 1, height: 297};
|
|
10
|
-
},
|
|
11
|
-
get gradientOverlayLow() {
|
|
12
|
-
return {uri: require('./gradientOverlayLow.png'), width: 1, height: 297};
|
|
13
|
-
},
|
|
14
|
-
get gradientOverlayMedium() {
|
|
15
|
-
return {uri: require('./gradientOverlayMedium.png'), width: 1, height: 297};
|
|
16
|
-
},
|
|
17
|
-
get hintTipMiddle() {
|
|
18
|
-
return {uri: require('./hintTipMiddle.png'), width: 20, height: 7};
|
|
19
|
-
},
|
|
20
|
-
get hintTipSide() {
|
|
21
|
-
return {uri: require('./hintTipSide.png'), width: 20, height: 24};
|
|
22
|
-
},
|
|
23
|
-
get transparentSwatch() {
|
|
24
|
-
return {uri: require('./transparentSwatch.png'), width: 100, height: 100};
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "KeyboardAwareScrollView",
|
|
3
|
-
"category": "form",
|
|
4
|
-
"description": "A wrapper component which handles the ScrollView insets properly when the keyboard is shown and hides the content, scrolling content above the keybaord.",
|
|
5
|
-
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/KeyboardAwareScrollViewScreen.js",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "getTextInputRefs",
|
|
9
|
-
"type": "function",
|
|
10
|
-
"description": "Function that returns an array of TextInput refs"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "onScroll",
|
|
14
|
-
"type": "function",
|
|
15
|
-
"description": "Callback for scroll events"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "startScrolledToBottom",
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "Whether to start scrolled to bottom"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "scrollToBottomOnKBShow",
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"description": "Whether to scroll to bottom when keyboard shows"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "scrollToInputAdditionalOffset",
|
|
29
|
-
"type": "number",
|
|
30
|
-
"description": "Additional offset when scrolling to input"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"snippet": [
|
|
34
|
-
"<KeyboardAwareScrollView>",
|
|
35
|
-
" <View>",
|
|
36
|
-
" <TextField placeholder=\"Input with scrolling\" />",
|
|
37
|
-
" </View>",
|
|
38
|
-
"</KeyboardAwareScrollView>"
|
|
39
|
-
]
|
|
40
|
-
}
|