react-native-ui-lib 7.39.0 → 7.39.1-snapshot.6736
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 +4 -2
- package/scripts/docs/buildDocsCommon.js +16 -83
- package/src/assets/index.js +2 -5
- package/src/assets/internal/icons/index.js +50 -0
- package/src/assets/internal/icons/index.web.js +50 -0
- package/src/assets/internal/images/index.js +26 -0
- package/src/assets/internal/images/index.web.js +26 -0
- package/src/assets/internal/index.d.ts +4 -0
- package/src/assets/internal/index.js +8 -0
- package/src/commons/Constants.d.ts +1 -0
- package/src/commons/Constants.js +4 -2
- package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.api.json +40 -0
- package/src/components/avatar/index.d.ts +8 -19
- package/src/components/avatar/index.js +4 -2
- package/src/components/button/button.api.json +25 -85
- package/src/components/card/index.js +1 -1
- package/src/components/checkbox/index.d.ts +4 -1
- package/src/components/checkbox/index.js +7 -5
- 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 +2 -3
- package/src/components/dateTimePicker/index.js +2 -2
- package/src/components/hint/hint.api.json +39 -5
- package/src/components/hint/index.js +2 -3
- package/src/components/icon/index.d.ts +12 -3
- package/src/components/icon/index.js +18 -9
- 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/modal/modal.api.json +54 -0
- package/src/components/overlay/index.js +4 -6
- 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 +1 -0
- package/src/components/picker/PickerItem.js +1 -1
- package/src/components/picker/PickerItemsList.js +6 -2
- package/src/components/picker/PickerSelectionStatusBar.d.ts +3 -0
- package/src/components/picker/PickerSelectionStatusBar.js +60 -0
- package/src/components/picker/api/picker.api.json +387 -5
- package/src/components/picker/helpers/useFieldType.js +2 -2
- package/src/components/picker/helpers/usePickerSelection.d.ts +4 -1
- package/src/components/picker/helpers/usePickerSelection.js +19 -3
- package/src/components/picker/index.d.ts +2 -2
- package/src/components/picker/index.js +15 -7
- package/src/components/picker/types.d.ts +48 -1
- package/src/components/scrollBar/index.js +3 -3
- package/src/components/sortableList/SortableList.api.json +7 -7
- package/src/components/stepper/index.js +3 -8
- package/src/components/tabController/apis/pageCarousel.api.json +8 -5
- package/src/components/textField/ClearButton.js +1 -1
- package/src/components/textField/textField.api.json +26 -8
- package/src/components/timeline/timeline.api.json +57 -106
- package/src/components/toast/index.js +1 -1
- package/src/components/wizard/WizardStates.js +3 -4
- package/src/hooks/useScrollTo/index.js +9 -4
- package/src/incubator/dialog/useDialogContent.js +1 -1
- package/src/incubator/expandableOverlay/index.js +1 -0
- package/src/incubator/panView/index.js +1 -1
- package/src/incubator/slider/Thumb.js +8 -1
- package/src/incubator/toast/toast.api.json +57 -7
- package/src/index.d.ts +1 -1
- package/src/index.js +7 -0
- package/src/assets/icons/index.js +0 -26
- package/src/assets/images/index.js +0 -5
- 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/assets/{icons → internal/icons}/check.png +0 -0
- /package/src/assets/{icons → internal/icons}/check@1.5x.png +0 -0
- /package/src/assets/{icons → internal/icons}/check@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/check@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/check@4x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/checkMarkSmall.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/checkMarkSmall@1.5x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/checkMarkSmall@2x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/checkMarkSmall@3x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/checkMarkSmall@4x.png +0 -0
- /package/src/assets/{icons/check-small.png → internal/icons/checkSmall.png} +0 -0
- /package/src/assets/{icons/check-small@1.5x.png → internal/icons/checkSmall@1.5x.png} +0 -0
- /package/src/assets/{icons/check-small@2x.png → internal/icons/checkSmall@2x.png} +0 -0
- /package/src/assets/{icons/check-small@3x.png → internal/icons/checkSmall@3x.png} +0 -0
- /package/src/assets/{icons/check-small@4x.png → internal/icons/checkSmall@4x.png} +0 -0
- /package/src/{components/picker/assets/dropdown.png → assets/internal/icons/chevronDown.png} +0 -0
- /package/src/{components/picker/assets/dropdown@1.5x.png → assets/internal/icons/chevronDown@1.5x.png} +0 -0
- /package/src/{components/picker/assets/dropdown@2x.png → assets/internal/icons/chevronDown@2x.png} +0 -0
- /package/src/{components/picker/assets/dropdown@3x.png → assets/internal/icons/chevronDown@3x.png} +0 -0
- /package/src/{components/picker/assets/dropdown@4x.png → assets/internal/icons/chevronDown@4x.png} +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/exclamationSmall.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/exclamationSmall@1.5x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/exclamationSmall@2x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/exclamationSmall@3x.png +0 -0
- /package/src/{components/wizard/assets → assets/internal/icons}/exclamationSmall@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutline.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutline@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutline@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutline@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutline@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutlineSmall.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutlineSmall@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutlineSmall@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutlineSmall@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/minusOutlineSmall@4x.png +0 -0
- /package/src/assets/{icons → internal/icons}/minusSmall.png +0 -0
- /package/src/assets/{icons → internal/icons}/minusSmall@1.5x.png +0 -0
- /package/src/assets/{icons → internal/icons}/minusSmall@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/minusSmall@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/minusSmall@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutline.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutline@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutline@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutline@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutline@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutlineSmall.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutlineSmall@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutlineSmall@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutlineSmall@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/internal/icons}/plusOutlineSmall@4x.png +0 -0
- /package/src/assets/{icons → internal/icons}/plusSmall.png +0 -0
- /package/src/assets/{icons → internal/icons}/plusSmall@1.5x.png +0 -0
- /package/src/assets/{icons → internal/icons}/plusSmall@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/plusSmall@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/plusSmall@4x.png +0 -0
- /package/src/assets/{icons → internal/icons}/search.png +0 -0
- /package/src/assets/{icons → internal/icons}/search@1.5x.png +0 -0
- /package/src/assets/{icons → internal/icons}/search@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/search@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/search@4x.png +0 -0
- /package/src/assets/{icons → internal/icons}/x.png +0 -0
- /package/src/assets/{icons → internal/icons}/x@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/x@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xFlat.png +0 -0
- /package/src/assets/{icons → internal/icons}/xFlat@1.5x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xFlat@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xFlat@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xFlat@4x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xMedium.png +0 -0
- /package/src/assets/{icons → internal/icons}/xMedium@1.5x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xMedium@2x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xMedium@3x.png +0 -0
- /package/src/assets/{icons → internal/icons}/xMedium@4x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/internal/icons}/xSmall.png +0 -0
- /package/src/{components/chipsInput/assets → assets/internal/icons}/xSmall@1.5x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/internal/icons}/xSmall@2x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/internal/icons}/xSmall@3x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/internal/icons}/xSmall@4x.png +0 -0
- /package/src/assets/{images → internal/images}/gradient.png +0 -0
- /package/src/{components/scrollBar/assets → assets/internal/images}/gradientOverlay.png +0 -0
- /package/src/{components/overlay/assets/GradientOverlayHigh.png → assets/internal/images/gradientOverlayHigh.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayHigh@1.5x.png → assets/internal/images/gradientOverlayHigh@1.5x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayHigh@2x.png → assets/internal/images/gradientOverlayHigh@2x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayHigh@3x.png → assets/internal/images/gradientOverlayHigh@3x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayHigh@4x.png → assets/internal/images/gradientOverlayHigh@4x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayLow.png → assets/internal/images/gradientOverlayLow.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayLow@1.5x.png → assets/internal/images/gradientOverlayLow@1.5x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayLow@2x.png → assets/internal/images/gradientOverlayLow@2x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayLow@3x.png → assets/internal/images/gradientOverlayLow@3x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayLow@4x.png → assets/internal/images/gradientOverlayLow@4x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayMedium.png → assets/internal/images/gradientOverlayMedium.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayMedium@1.5x.png → assets/internal/images/gradientOverlayMedium@1.5x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayMedium@2x.png → assets/internal/images/gradientOverlayMedium@2x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayMedium@3x.png → assets/internal/images/gradientOverlayMedium@3x.png} +0 -0
- /package/src/{components/overlay/assets/GradientOverlayMedium@4x.png → assets/internal/images/gradientOverlayMedium@4x.png} +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipMiddle.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipMiddle@1.5x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipMiddle@2x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipMiddle@3x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipMiddle@4x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipSide.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipSide@1.5x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipSide@2x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipSide@3x.png +0 -0
- /package/src/{components/hint/assets → assets/internal/images}/hintTipSide@4x.png +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch.png → assets/internal/images/transparentSwatch.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@1.5x.png → assets/internal/images/transparentSwatch@1.5x.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@2x.png → assets/internal/images/transparentSwatch@2x.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@3x.png → assets/internal/images/transparentSwatch@3x.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@4x.png → assets/internal/images/transparentSwatch@4x.png} +0 -0
|
@@ -29,30 +29,18 @@
|
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"snippet": [
|
|
32
|
-
"<Timeline
|
|
33
|
-
" topLine={{",
|
|
34
|
-
"
|
|
35
|
-
" }
|
|
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}",
|
|
32
|
+
"<Timeline",
|
|
33
|
+
" topLine={{type: Timeline.lineTypes.DASHED}}",
|
|
34
|
+
" bottomLine={{state: Timeline.states.SUCCESS}}",
|
|
35
|
+
" point={{state: Timeline.states.SUCCESS}}",
|
|
46
36
|
">",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
" </View>",
|
|
55
|
-
"</Timeline>"
|
|
37
|
+
" <View padding-20 bg-grey60 br30>",
|
|
38
|
+
" <Text text70BO>Title</Text>",
|
|
39
|
+
" <View marginT-5 padding-8 bg-white br30>",
|
|
40
|
+
" <Text>Description</Text>",
|
|
41
|
+
" </View>",
|
|
42
|
+
" </View>",
|
|
43
|
+
" </Timeline>"
|
|
56
44
|
],
|
|
57
45
|
"docs": {
|
|
58
46
|
"hero": {
|
|
@@ -138,29 +126,7 @@
|
|
|
138
126
|
"title": "Current",
|
|
139
127
|
"content": [
|
|
140
128
|
{
|
|
141
|
-
"
|
|
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
|
-
}
|
|
129
|
+
"snippet": "<Timeline topLine={{state: Timeline.states.CURRENT}} bottomLine={{state: Timeline.states.CURRENT}} point={{state: Timeline.states.CURRENT}}><View style={{height: 88}}/></Timeline>"
|
|
164
130
|
}
|
|
165
131
|
],
|
|
166
132
|
"description": "state: current"
|
|
@@ -169,19 +135,7 @@
|
|
|
169
135
|
"title": "Next",
|
|
170
136
|
"content": [
|
|
171
137
|
{
|
|
172
|
-
"
|
|
173
|
-
"state": "next",
|
|
174
|
-
"point": {
|
|
175
|
-
"type": {
|
|
176
|
-
"type": "bullet"
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"bottomLine": {
|
|
180
|
-
"type": {
|
|
181
|
-
"type": "solid"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
138
|
+
"snippet": "<Timeline topLine={{state: Timeline.states.NEXT}} bottomLine={{state: Timeline.states.NEXT}} point={{state: Timeline.states.NEXT, type: Timeline.pointTypes.CIRCLE}}><View style={{height: 88}}/></Timeline>"
|
|
185
139
|
}
|
|
186
140
|
],
|
|
187
141
|
"description": "state: next"
|
|
@@ -190,19 +144,7 @@
|
|
|
190
144
|
"title": "Error",
|
|
191
145
|
"content": [
|
|
192
146
|
{
|
|
193
|
-
"
|
|
194
|
-
"state": "error",
|
|
195
|
-
"point": {
|
|
196
|
-
"type": {
|
|
197
|
-
"type": "bullet"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"bottomLine": {
|
|
201
|
-
"type": {
|
|
202
|
-
"type": "solid"
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
147
|
+
"snippet": "<Timeline topLine={{state: Timeline.states.ERROR}} bottomLine={{state: Timeline.states.ERROR}} point={{state: Timeline.states.ERROR}}><View style={{height: 88}}/></Timeline>"
|
|
206
148
|
}
|
|
207
149
|
],
|
|
208
150
|
"description": "state: error"
|
|
@@ -211,19 +153,7 @@
|
|
|
211
153
|
"title": "Success",
|
|
212
154
|
"content": [
|
|
213
155
|
{
|
|
214
|
-
"
|
|
215
|
-
"state": "success",
|
|
216
|
-
"point": {
|
|
217
|
-
"type": {
|
|
218
|
-
"type": "bullet"
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
"bottomLine": {
|
|
222
|
-
"type": {
|
|
223
|
-
"type": "solid"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
156
|
+
"snippet": "<Timeline topLine={{state: Timeline.states.SUCCESS}} bottomLine={{state: Timeline.states.SUCCESS}} point={{state: Timeline.states.SUCCESS}}><View style={{height: 88}}/></Timeline>"
|
|
227
157
|
}
|
|
228
158
|
],
|
|
229
159
|
"description": "state: success"
|
|
@@ -238,15 +168,30 @@
|
|
|
238
168
|
"items": [
|
|
239
169
|
{
|
|
240
170
|
"title": "Bullet",
|
|
241
|
-
"description": "type: bullet"
|
|
171
|
+
"description": "type: bullet",
|
|
172
|
+
"content": [
|
|
173
|
+
{
|
|
174
|
+
"snippet": "<Timeline point={{type: Timeline.pointTypes.BULLET}}><View style={{height: 88}}/></Timeline>"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
242
177
|
},
|
|
243
178
|
{
|
|
244
179
|
"title": "Circle",
|
|
245
|
-
"description": "type: 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
|
+
]
|
|
246
186
|
},
|
|
247
187
|
{
|
|
248
188
|
"title": "Outline",
|
|
249
|
-
"description": "type: outline"
|
|
189
|
+
"description": "type: outline",
|
|
190
|
+
"content": [
|
|
191
|
+
{
|
|
192
|
+
"snippet": "<Timeline point={{type: Timeline.pointTypes.OUTLINE}}><View style={{height: 88}}/></Timeline>"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
250
195
|
}
|
|
251
196
|
],
|
|
252
197
|
"title": "Point",
|
|
@@ -260,14 +205,7 @@
|
|
|
260
205
|
"title": "Text",
|
|
261
206
|
"content": [
|
|
262
207
|
{
|
|
263
|
-
"
|
|
264
|
-
"state": "current",
|
|
265
|
-
"bottomLine": {
|
|
266
|
-
"type": {
|
|
267
|
-
"type": "solid"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
208
|
+
"snippet": "<Timeline point={{label: '1'}}><View style={{height: 88}}/></Timeline>"
|
|
271
209
|
}
|
|
272
210
|
],
|
|
273
211
|
"description": "text: “1”"
|
|
@@ -276,21 +214,19 @@
|
|
|
276
214
|
"title": "Icon",
|
|
277
215
|
"content": [
|
|
278
216
|
{
|
|
279
|
-
"
|
|
280
|
-
"state": "current",
|
|
281
|
-
"bottomLine": {
|
|
282
|
-
"type": {
|
|
283
|
-
"type": "dashed"
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
217
|
+
"snippet": "<Timeline point={{state: Timeline.states.SUCCESS, icon: Assets.internal.icons.checkSmall}}><View style={{height: 88}}/></Timeline>"
|
|
287
218
|
}
|
|
288
219
|
],
|
|
289
|
-
"description": "icon: Assets.icons.general.checkmarkSmall"
|
|
220
|
+
"description": "icon: Assets.internal.icons.general.checkmarkSmall"
|
|
290
221
|
},
|
|
291
222
|
{
|
|
292
223
|
"title": "Icon without background",
|
|
293
|
-
"
|
|
224
|
+
"content": [
|
|
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"
|
|
294
230
|
}
|
|
295
231
|
],
|
|
296
232
|
"name": "Point Accessories"
|
|
@@ -301,10 +237,20 @@
|
|
|
301
237
|
"items": [
|
|
302
238
|
{
|
|
303
239
|
"title": "Solid",
|
|
240
|
+
"content": [
|
|
241
|
+
{
|
|
242
|
+
"snippet": "<Timeline topLine={{state: Timeline.states.CURRENT}} point={{removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
304
245
|
"description": "type: solid"
|
|
305
246
|
},
|
|
306
247
|
{
|
|
307
248
|
"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
|
+
],
|
|
308
254
|
"description": "type: dashed"
|
|
309
255
|
}
|
|
310
256
|
],
|
|
@@ -317,6 +263,11 @@
|
|
|
317
263
|
"items": [
|
|
318
264
|
{
|
|
319
265
|
"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
|
+
],
|
|
320
271
|
"description": "entry: true"
|
|
321
272
|
}
|
|
322
273
|
],
|
|
@@ -239,7 +239,7 @@ export default class Toast extends PureBaseComponent {
|
|
|
239
239
|
<Button
|
|
240
240
|
link
|
|
241
241
|
iconStyle={{tintColor: textColor}}
|
|
242
|
-
iconSource={Assets.icons.x}
|
|
242
|
+
iconSource={Assets.internal.icons.x}
|
|
243
243
|
onPress={this.onDismiss}
|
|
244
244
|
paddingR-20
|
|
245
245
|
accessibilityLabel={'dismiss'}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Colors from "../../style/colors";
|
|
2
|
-
|
|
3
|
-
const exclamationSmall = require("./assets/exclamationSmall.png");
|
|
2
|
+
import Assets from "../../assets";
|
|
4
3
|
export const StatesConfig = {
|
|
5
4
|
enabled: {
|
|
6
5
|
color: Colors.$textNeutralHeavy,
|
|
@@ -14,7 +13,7 @@ export const StatesConfig = {
|
|
|
14
13
|
error: {
|
|
15
14
|
color: Colors.$iconDangerLight,
|
|
16
15
|
circleColor: Colors.$outlineDanger,
|
|
17
|
-
icon: exclamationSmall,
|
|
16
|
+
icon: Assets.internal.icons.exclamationSmall,
|
|
18
17
|
enabled: true,
|
|
19
18
|
accessibilityInfo: 'Validation Error'
|
|
20
19
|
},
|
|
@@ -27,7 +26,7 @@ export const StatesConfig = {
|
|
|
27
26
|
completed: {
|
|
28
27
|
color: Colors.$iconNeutral,
|
|
29
28
|
circleColor: Colors.$outlineDisabled,
|
|
30
|
-
icon: checkMarkSmall,
|
|
29
|
+
icon: Assets.internal.icons.checkMarkSmall,
|
|
31
30
|
enabled: true,
|
|
32
31
|
accessibilityInfo: 'Completed'
|
|
33
32
|
},
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _isFunction from "lodash/isFunction";
|
|
2
|
-
import _isUndefined from "lodash/isUndefined";
|
|
3
2
|
import { useCallback, useRef } from 'react';
|
|
4
|
-
import { Constants } from "../../commons/new";
|
|
5
3
|
const useScrollTo = props => {
|
|
6
4
|
const {
|
|
7
5
|
scrollViewRef: propsScrollViewRef,
|
|
@@ -26,10 +24,17 @@ const useScrollTo = props => {
|
|
|
26
24
|
containerSize.current = horizontal ? width : height;
|
|
27
25
|
}, [horizontal]);
|
|
28
26
|
const scrollTo = useCallback((offset, animated = true) => {
|
|
29
|
-
|
|
27
|
+
// Fix that was for Android RTL. Scrolling is now aligned between IOS and Android and offset is ok.
|
|
28
|
+
/* if (
|
|
29
|
+
horizontal &&
|
|
30
|
+
Constants.isRTL &&
|
|
31
|
+
Constants.isAndroid &&
|
|
32
|
+
!_.isUndefined(contentSize.current) &&
|
|
33
|
+
!_.isUndefined(containerSize.current)
|
|
34
|
+
) {
|
|
30
35
|
const scrollingWidth = Math.max(0, contentSize.current - containerSize.current);
|
|
31
36
|
offset = scrollingWidth - offset;
|
|
32
|
-
}
|
|
37
|
+
} */
|
|
33
38
|
|
|
34
39
|
// @ts-ignore
|
|
35
40
|
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.icons.xMedium} tintColor={Colors.white} {...closeButtonProps?.iconProps} />
|
|
26
|
+
<Icon source={Assets.internal.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,13 +7,20 @@ 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
|
+
};
|
|
10
17
|
const Thumb = props => {
|
|
11
18
|
const {
|
|
12
19
|
disabled,
|
|
13
20
|
disableActiveStyling,
|
|
14
21
|
activeStyle,
|
|
15
22
|
defaultStyle,
|
|
16
|
-
hitSlop,
|
|
23
|
+
hitSlop = DEFAULT_THUMB_HIT_SLOP,
|
|
17
24
|
onSeekStart,
|
|
18
25
|
onSeekEnd,
|
|
19
26
|
start,
|
|
@@ -104,19 +104,47 @@
|
|
|
104
104
|
{
|
|
105
105
|
"props": {
|
|
106
106
|
"visible": true,
|
|
107
|
-
"message": "
|
|
107
|
+
"message": "Mika Or was saved to contacts.",
|
|
108
|
+
"preset": "general"
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
]
|
|
111
112
|
},
|
|
112
113
|
{
|
|
113
|
-
"title": "Success"
|
|
114
|
+
"title": "Success",
|
|
115
|
+
"content": [
|
|
116
|
+
{
|
|
117
|
+
"props": {
|
|
118
|
+
"visible": true,
|
|
119
|
+
"message": "Post published.",
|
|
120
|
+
"preset": "success"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
114
124
|
},
|
|
115
125
|
{
|
|
116
|
-
"title": "Validation"
|
|
126
|
+
"title": "Validation",
|
|
127
|
+
"content": [
|
|
128
|
+
{
|
|
129
|
+
"props": {
|
|
130
|
+
"visible": true,
|
|
131
|
+
"message": "Enter a card number.",
|
|
132
|
+
"preset": "failure"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
]
|
|
117
136
|
},
|
|
118
137
|
{
|
|
119
|
-
"title": "Offline Error"
|
|
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
|
+
]
|
|
120
148
|
}
|
|
121
149
|
],
|
|
122
150
|
"title": "Types"
|
|
@@ -126,13 +154,35 @@
|
|
|
126
154
|
"columns": ["Prop", "Preview"],
|
|
127
155
|
"items": [
|
|
128
156
|
{
|
|
129
|
-
"title": "None"
|
|
157
|
+
"title": "None",
|
|
158
|
+
"content": [
|
|
159
|
+
{
|
|
160
|
+
"props": {
|
|
161
|
+
"visible": true,
|
|
162
|
+
"message": "Action completed."
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
130
166
|
},
|
|
131
167
|
{
|
|
132
|
-
"title": "With action"
|
|
168
|
+
"title": "With action",
|
|
169
|
+
"content": [
|
|
170
|
+
{
|
|
171
|
+
"snippet": "<Incubator.Toast visible message=\"Action completed.\" action={{label: 'Undo', onPress: () => {}}}/>"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
133
174
|
},
|
|
134
175
|
{
|
|
135
|
-
"title": "With loader"
|
|
176
|
+
"title": "With loader",
|
|
177
|
+
"content": [
|
|
178
|
+
{
|
|
179
|
+
"props": {
|
|
180
|
+
"visible": true,
|
|
181
|
+
"message": "Action completed.",
|
|
182
|
+
"showLoader": true
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
136
186
|
}
|
|
137
187
|
],
|
|
138
188
|
"title": "Accessories"
|
package/src/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export { default as PanningContext } from './components/panningViews/panningCont
|
|
|
67
67
|
export { default as PanningProvider, PanningDirections, PanLocationProps, PanAmountsProps, PanDirectionsProps } from './components/panningViews/panningProvider';
|
|
68
68
|
export { default as PanResponderView, PanResponderViewProps } from './components/panningViews/panResponderView';
|
|
69
69
|
export { default as asPanViewConsumer } from './components/panningViews/asPanViewConsumer';
|
|
70
|
-
export { default as Picker, PickerProps, PickerItemProps, PickerValue, PickerModes, PickerFieldTypes, PickerSearchStyle, RenderCustomModalProps, PickerItemsListProps, PickerMethods } from './components/picker';
|
|
70
|
+
export { default as Picker, PickerProps, PickerItemProps, PickerValue, PickerModes, PickerFieldTypes, PickerSearchStyle, RenderCustomModalProps, PickerItemsListProps, PickerMethods, PickerSelectionStatusProps } from './components/picker';
|
|
71
71
|
export { default as PieChart, type PieChartProps, PieChartSegmentProps } from './components/pieChart';
|
|
72
72
|
export { default as ProgressBar, ProgressBarProps } from './components/progressBar';
|
|
73
73
|
export { default as ProgressiveImage, ProgressiveImageProps } from './components/progressiveImage';
|
package/src/index.js
CHANGED
|
@@ -166,6 +166,7 @@ var _exportNames = {
|
|
|
166
166
|
RenderCustomModalProps: true,
|
|
167
167
|
PickerItemsListProps: true,
|
|
168
168
|
PickerMethods: true,
|
|
169
|
+
PickerSelectionStatusProps: true,
|
|
169
170
|
PieChart: true,
|
|
170
171
|
PieChartSegmentProps: true,
|
|
171
172
|
ProgressBar: true,
|
|
@@ -1110,6 +1111,12 @@ Object.defineProperty(exports, "PickerSearchStyle", {
|
|
|
1110
1111
|
return _picker().PickerSearchStyle;
|
|
1111
1112
|
}
|
|
1112
1113
|
});
|
|
1114
|
+
Object.defineProperty(exports, "PickerSelectionStatusProps", {
|
|
1115
|
+
enumerable: true,
|
|
1116
|
+
get: function () {
|
|
1117
|
+
return _picker().PickerSelectionStatusProps;
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1113
1120
|
Object.defineProperty(exports, "PickerValue", {
|
|
1114
1121
|
enumerable: true,
|
|
1115
1122
|
get: function () {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const icons = {
|
|
2
|
-
get check() {
|
|
3
|
-
return require('./check.png');
|
|
4
|
-
},
|
|
5
|
-
get checkSmall() {
|
|
6
|
-
return require('./check-small.png');
|
|
7
|
-
},
|
|
8
|
-
get minusSmall() {
|
|
9
|
-
return require('./minusSmall.png');
|
|
10
|
-
},
|
|
11
|
-
get plusSmall() {
|
|
12
|
-
return require('./plusSmall.png');
|
|
13
|
-
},
|
|
14
|
-
get search() {
|
|
15
|
-
return require('./search.png');
|
|
16
|
-
},
|
|
17
|
-
get x() {
|
|
18
|
-
return require('./x.png');
|
|
19
|
-
},
|
|
20
|
-
get xMedium() {
|
|
21
|
-
return require('./xMedium.png');
|
|
22
|
-
},
|
|
23
|
-
get xFlat() {
|
|
24
|
-
return require('./xFlat.png');
|
|
25
|
-
}
|
|
26
|
-
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{components/picker/assets/dropdown.png → assets/internal/icons/chevronDown.png}
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/{components/picker/assets/dropdown@2x.png → assets/internal/icons/chevronDown@2x.png}
RENAMED
|
File without changes
|
/package/src/{components/picker/assets/dropdown@3x.png → assets/internal/icons/chevronDown@3x.png}
RENAMED
|
File without changes
|
/package/src/{components/picker/assets/dropdown@4x.png → assets/internal/icons/chevronDown@4x.png}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|