react-native-ui-lib 7.39.0-snapshot.6594 → 7.39.0-snapshot.6596
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 +1 -1
- package/src/assets/index.js +2 -5
- package/src/assets/internal/icons/index.js +50 -0
- package/src/assets/internal/images/index.js +26 -0
- package/src/assets/internal/index.d.ts +4 -0
- package/src/assets/internal/index.js +8 -0
- package/src/components/card/index.js +1 -1
- package/src/components/checkbox/index.js +1 -1
- package/src/components/chip/index.js +1 -1
- package/src/components/chipsInput/index.js +2 -2
- package/src/components/colorPicker/ColorPickerDialogHeader.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/index.js +2 -3
- package/src/components/modal/TopBar.js +1 -1
- package/src/components/modal/api/modalTopBar.api.json +1 -1
- package/src/components/overlay/index.js +4 -6
- package/src/components/picker/PickerItem.js +1 -1
- package/src/components/picker/PickerItemsList.js +1 -1
- package/src/components/picker/helpers/useFieldType.js +2 -2
- package/src/components/scrollBar/index.js +2 -2
- package/src/components/stepper/index.js +3 -8
- package/src/components/textField/ClearButton.js +1 -1
- package/src/components/timeline/timeline.api.json +4 -4
- package/src/components/toast/index.js +1 -1
- package/src/components/wizard/WizardStates.js +3 -4
- package/src/incubator/dialog/useDialogContent.js +1 -1
- 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
package/package.json
CHANGED
package/src/assets/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Assets } from "./Assets";
|
|
2
2
|
export default new Assets().loadAssetsGroup('', {
|
|
3
|
-
get icons() {
|
|
4
|
-
return require("./icons").icons;
|
|
5
|
-
},
|
|
6
3
|
get emojis() {
|
|
7
4
|
return require("./emojis").emojis;
|
|
8
5
|
},
|
|
9
|
-
get
|
|
10
|
-
return require("./
|
|
6
|
+
get internal() {
|
|
7
|
+
return require("./internal").internal;
|
|
11
8
|
}
|
|
12
9
|
});
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
@@ -22,7 +22,7 @@ const DEFAULT_SELECTION_PROPS = {
|
|
|
22
22
|
borderWidth: 2,
|
|
23
23
|
color: Colors.$backgroundPrimaryHeavy,
|
|
24
24
|
indicatorSize: 20,
|
|
25
|
-
icon: Assets.icons.checkSmall,
|
|
25
|
+
icon: Assets.internal.icons.checkSmall,
|
|
26
26
|
iconColor: Colors.$iconDefaultLight,
|
|
27
27
|
hideIndicator: false
|
|
28
28
|
};
|
|
@@ -167,7 +167,7 @@ class Checkbox extends Component {
|
|
|
167
167
|
}]}>
|
|
168
168
|
<AnimatedIcon style={[this.styles.selectedIcon, {
|
|
169
169
|
transform: this.animationStyle.transform
|
|
170
|
-
}]} source={indeterminate ? Assets.icons.minusSmall : selectedIcon || Assets.icons.checkSmall} testID={`${testID}.selected`} tintColor={this.getTintColor()} />
|
|
170
|
+
}]} source={indeterminate ? Assets.internal.icons.minusSmall : selectedIcon || Assets.internal.icons.checkSmall} testID={`${testID}.selected`} tintColor={this.getTintColor()} />
|
|
171
171
|
</Animated.View>}
|
|
172
172
|
</TouchableOpacity>
|
|
173
173
|
);
|
|
@@ -5,8 +5,8 @@ import { StyleSheet } from 'react-native';
|
|
|
5
5
|
import { Constants } from "../../commons/new";
|
|
6
6
|
import { useCombinedRefs, useDidUpdate } from "../../hooks";
|
|
7
7
|
import TextField from "../textField";
|
|
8
|
+
import Assets from "../../assets";
|
|
8
9
|
import Chip from "../chip";
|
|
9
|
-
const removeIcon = require("./assets/xSmall.png");
|
|
10
10
|
export let ChipsInputChangeReason = /*#__PURE__*/function (ChipsInputChangeReason) {
|
|
11
11
|
ChipsInputChangeReason["Added"] = "added";
|
|
12
12
|
ChipsInputChangeReason["Removed"] = "removed";
|
|
@@ -85,7 +85,7 @@ const ChipsInput = forwardRef((props, refToForward) => {
|
|
|
85
85
|
return <Chip key={index} customValue={index}
|
|
86
86
|
// resetSpacings
|
|
87
87
|
// paddingH-s2
|
|
88
|
-
marginR-s2 marginB-s2 dismissIcon={
|
|
88
|
+
marginR-s2 marginB-s2 dismissIcon={Assets.internal.icons.xSmall} recorderTag={'mask'} {...defaultChipProps} {...chip.invalid ? invalidChipProps : undefined} {...chip} onPress={onChipPress} onDismiss={isMarkedForRemoval ? removeMarkedChip : undefined} />;
|
|
89
89
|
};
|
|
90
90
|
const chipList = useMemo(() => {
|
|
91
91
|
return <>
|
|
@@ -16,10 +16,10 @@ const ColorPickerDialogHeader = props => {
|
|
|
16
16
|
onDonePressed
|
|
17
17
|
} = props;
|
|
18
18
|
return <View row spread bg-$backgroundDefault paddingH-20 style={styles.header}>
|
|
19
|
-
<Button link iconSource={Assets.icons.x} iconStyle={{
|
|
19
|
+
<Button link iconSource={Assets.internal.icons.x} iconStyle={{
|
|
20
20
|
tintColor: Colors.$iconDefault
|
|
21
21
|
}} onPress={onDismiss} accessibilityLabel={_get(accessibilityLabels, 'dismissButton')} testID={`${testID}.dialog.cancel`} />
|
|
22
|
-
<Button color={doneButtonColor} disabled={!valid} link iconSource={Assets.icons.check} onPress={onDonePressed} accessibilityLabel={_get(accessibilityLabels, 'doneButton')} testID={`${testID}.dialog.done`} />
|
|
22
|
+
<Button color={doneButtonColor} disabled={!valid} link iconSource={Assets.internal.icons.check} onPress={onDonePressed} accessibilityLabel={_get(accessibilityLabels, 'doneButton')} testID={`${testID}.dialog.done`} />
|
|
23
23
|
</View>;
|
|
24
24
|
};
|
|
25
25
|
export default ColorPickerDialogHeader;
|
|
@@ -42,7 +42,7 @@ const ColorPicker = props => {
|
|
|
42
42
|
<View style={[styles.buttonContainer, {
|
|
43
43
|
backgroundColor
|
|
44
44
|
}]}>
|
|
45
|
-
<Button color={Colors.$textDefault} outlineColor={Colors.$textDefault} style={styles.button} round outline iconSource={Assets.icons.plusSmall} onPress={showDialog} testID={`${testID}-button`} accessibilityLabel={accessibilityLabels?.addButton} />
|
|
45
|
+
<Button color={Colors.$textDefault} outlineColor={Colors.$textDefault} style={styles.button} round outline iconSource={Assets.internal.icons.plusSmall} onPress={showDialog} testID={`${testID}-button`} accessibilityLabel={accessibilityLabels?.addButton} />
|
|
46
46
|
</View>
|
|
47
47
|
<ColorPickerDialog {...props} key={initialColor} visible={show} onDismiss={hideDialog} accessibilityLabels={{
|
|
48
48
|
dismissButton: accessibilityLabels?.dismissButton,
|
|
@@ -6,7 +6,6 @@ import { asBaseComponent, Constants } from "../../commons/new";
|
|
|
6
6
|
import View from "../view";
|
|
7
7
|
import TouchableOpacity from "../touchableOpacity";
|
|
8
8
|
import Image from "../image";
|
|
9
|
-
const transparentImage = require("./assets/transparentSwatch/TransparentSwatch.png");
|
|
10
9
|
const DEFAULT_SIZE = Constants.isTablet ? 44 : 36;
|
|
11
10
|
export const SWATCH_MARGIN = 12;
|
|
12
11
|
export const SWATCH_SIZE = DEFAULT_SIZE;
|
|
@@ -141,10 +140,10 @@ class ColorSwatch extends PureComponent {
|
|
|
141
140
|
height: size,
|
|
142
141
|
borderRadius: size / 2
|
|
143
142
|
}, style]} onLayout={this.onLayout} {...this.getAccessibilityInfo()}>
|
|
144
|
-
{Colors.isTransparent(this.color) && <Image source={
|
|
143
|
+
{Colors.isTransparent(this.color) && <Image source={Assets.internal.images.transparentSwatch} style={this.styles.transparentImage} resizeMode={'cover'} />}
|
|
145
144
|
{unavailable ? <View style={[this.styles.unavailable, {
|
|
146
145
|
backgroundColor: tintColor
|
|
147
|
-
}]} /> : <Animated.Image source={Assets.icons.check} style={{
|
|
146
|
+
}]} /> : <Animated.Image source={Assets.internal.icons.check} style={{
|
|
148
147
|
tintColor,
|
|
149
148
|
opacity: isSelected,
|
|
150
149
|
transform: [{
|
|
@@ -137,10 +137,10 @@ const DateTimePicker = forwardRef((props, ref) => {
|
|
|
137
137
|
}, [onDonePressed, toggleExpandableOverlay]);
|
|
138
138
|
const renderHeader = () => {
|
|
139
139
|
return <View row spread bg-$backgroundDefault backgroundColor={backgroundColor} paddingH-20 style={[styles.header, headerStyle]} testID={`${testID}.header`}>
|
|
140
|
-
<Button link iconSource={Assets.icons.x} iconStyle={{
|
|
140
|
+
<Button link iconSource={Assets.internal.icons.x} iconStyle={{
|
|
141
141
|
tintColor: Colors.$iconDefault
|
|
142
142
|
}} testID={`${testID}.cancel`} {...cancelButtonProps} onPress={toggleExpandableOverlay} />
|
|
143
|
-
<Button link iconSource={Assets.icons.check} testID={`${testID}.done`} {...confirmButtonProps} onPress={onDonePressed} />
|
|
143
|
+
<Button link iconSource={Assets.internal.icons.check} testID={`${testID}.done`} {...confirmButtonProps} onPress={onDonePressed} />
|
|
144
144
|
</View>;
|
|
145
145
|
};
|
|
146
146
|
const renderDateTimePicker = useCallback(() => {
|
|
@@ -6,6 +6,7 @@ import View from "../view";
|
|
|
6
6
|
import Image from "../image";
|
|
7
7
|
import Modal from "../modal";
|
|
8
8
|
import TouchableOpacity from "../touchableOpacity";
|
|
9
|
+
import Assets from "../../assets";
|
|
9
10
|
import { HintPositions, HintProps, TargetAlignments } from "./types";
|
|
10
11
|
import useHintVisibility from "./hooks/useHintVisibility";
|
|
11
12
|
import useHintLayout from "./hooks/useHintLayout";
|
|
@@ -14,8 +15,6 @@ import useHintPosition from "./hooks/useHintPosition";
|
|
|
14
15
|
import HintMockChildren from "./HintMockChildren";
|
|
15
16
|
import HintAnchor from "./HintAnchor";
|
|
16
17
|
import HintBubble from "./HintBubble";
|
|
17
|
-
const sideTip = require("./assets/hintTipSide.png");
|
|
18
|
-
const middleTip = require("./assets/hintTipMiddle.png");
|
|
19
18
|
const DEFAULT_COLOR = Colors.$backgroundPrimaryHeavy;
|
|
20
19
|
const DEFAULT_HINT_OFFSET = Spacings.s4;
|
|
21
20
|
const DEFAULT_EDGE_MARGINS = Spacings.s5;
|
|
@@ -125,7 +124,7 @@ const Hint = props => {
|
|
|
125
124
|
}
|
|
126
125
|
};
|
|
127
126
|
const renderHintTip = () => {
|
|
128
|
-
const source = useSideTip ?
|
|
127
|
+
const source = useSideTip ? Assets.internal.images.hintTipSide : Assets.internal.images.hintTipMiddle;
|
|
129
128
|
const flipVertically = position === HintPositions.TOP;
|
|
130
129
|
const flipHorizontally = targetAlignmentOnScreen === TargetAlignments.RIGHT;
|
|
131
130
|
const flipStyle = {
|
|
@@ -21,7 +21,7 @@ class TopBar extends Component {
|
|
|
21
21
|
static displayName = 'Modal.TopBar';
|
|
22
22
|
static defaultProps = {
|
|
23
23
|
doneLabel: 'Save',
|
|
24
|
-
cancelIcon: Assets.icons.x,
|
|
24
|
+
cancelIcon: Assets.internal.icons.x,
|
|
25
25
|
doneButtonProps: {},
|
|
26
26
|
cancelButtonProps: {},
|
|
27
27
|
includeStatusBar: Constants.isIOS
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"name": "cancelIcon",
|
|
30
30
|
"type": "ImageSource",
|
|
31
31
|
"description": "Cancel action icon",
|
|
32
|
-
"default": "Assets.icons.x"
|
|
32
|
+
"default": "Assets.internal.icons.x"
|
|
33
33
|
},
|
|
34
34
|
{"name": "onCancel", "type": "(props?: any) => void", "description": "Cancel action callback"},
|
|
35
35
|
{
|
|
@@ -3,9 +3,7 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { StyleSheet, Image } from 'react-native';
|
|
4
4
|
import { Colors } from "../../style";
|
|
5
5
|
import View from "../view";
|
|
6
|
-
|
|
7
|
-
const gradientImageMed = require("./assets/GradientOverlayMedium.png");
|
|
8
|
-
const gradientImageHigh = require("./assets/GradientOverlayHigh.png");
|
|
6
|
+
import Assets from "../../assets";
|
|
9
7
|
const OVERLY_TYPES = {
|
|
10
8
|
VERTICAL: 'vertical',
|
|
11
9
|
TOP: 'top',
|
|
@@ -77,11 +75,11 @@ class Overlay extends PureComponent {
|
|
|
77
75
|
getImageSource = (type, intensity) => {
|
|
78
76
|
if (type !== OVERLY_TYPES.SOLID) {
|
|
79
77
|
if (intensity === OverlayIntensityType.MEDIUM) {
|
|
80
|
-
return
|
|
78
|
+
return Assets.internal.images.gradientOverlayMedium;
|
|
81
79
|
} else if (intensity === OverlayIntensityType.HIGH) {
|
|
82
|
-
return
|
|
80
|
+
return Assets.internal.images.gradientOverlayHigh;
|
|
83
81
|
} else {
|
|
84
|
-
return
|
|
82
|
+
return Assets.internal.images.gradientOverlayLow;
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
};
|
|
@@ -45,7 +45,7 @@ const PickerItemsList = props => {
|
|
|
45
45
|
return renderCustomSearch(props);
|
|
46
46
|
}
|
|
47
47
|
return <View style={styles.searchInputContainer}>
|
|
48
|
-
<Icon style={styles.searchIcon} tintColor={Colors.$iconDefault} source={searchStyle.icon || Assets.icons.search} />
|
|
48
|
+
<Icon style={styles.searchIcon} tintColor={Colors.$iconDefault} source={searchStyle.icon || Assets.internal.icons.search} />
|
|
49
49
|
<TextInput testID={testID}
|
|
50
50
|
// ref={r => (this.search = r)}
|
|
51
51
|
style={[styles.searchInput, {
|
|
@@ -4,8 +4,8 @@ import { Typography, Colors } from "../../../style";
|
|
|
4
4
|
import View from "../../view";
|
|
5
5
|
import Text from "../../text";
|
|
6
6
|
import Icon from "../../icon";
|
|
7
|
+
import Assets from "../../../assets";
|
|
7
8
|
import { PickerFieldTypes } from "../types";
|
|
8
|
-
const dropdown = require("../assets/dropdown.png");
|
|
9
9
|
const useFieldType = props => {
|
|
10
10
|
const {
|
|
11
11
|
fieldType,
|
|
@@ -30,7 +30,7 @@ const useFieldType = props => {
|
|
|
30
30
|
...Typography.text70,
|
|
31
31
|
color: Colors.$textNeutral
|
|
32
32
|
},
|
|
33
|
-
trailingAccessory: trailingAccessory ?? <Icon marginL-s1 source={
|
|
33
|
+
trailingAccessory: trailingAccessory ?? <Icon marginL-s1 source={Assets.internal.icons.chevronDown} />
|
|
34
34
|
};
|
|
35
35
|
} else if (fieldType === PickerFieldTypes.settings) {
|
|
36
36
|
return {
|
|
@@ -8,8 +8,8 @@ import { Colors } from "../../style";
|
|
|
8
8
|
import { Constants, asBaseComponent, forwardRef } from "../../commons/new";
|
|
9
9
|
import View from "../view";
|
|
10
10
|
import Image from "../image";
|
|
11
|
+
import Assets from "../../assets";
|
|
11
12
|
const GRADIENT_WIDTH = 76;
|
|
12
|
-
const defaultImage = () => require("./assets/gradientOverlay.png");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @description: Scrollable container with animated gradient overlay for horizontal scroll
|
|
@@ -175,7 +175,7 @@ class ScrollBar extends Component {
|
|
|
175
175
|
right: !left ? gradientMargins : undefined,
|
|
176
176
|
left: left ? gradientMargins : undefined
|
|
177
177
|
}}>
|
|
178
|
-
<Image source={gradientImage ||
|
|
178
|
+
<Image source={gradientImage || Assets.internal.images.gradientOverlay} style={{
|
|
179
179
|
width: gradientWidth,
|
|
180
180
|
height: heightToUse,
|
|
181
181
|
tintColor: gradientColor,
|
|
@@ -6,17 +6,12 @@ import { asBaseComponent } from "../../commons/new";
|
|
|
6
6
|
import View from "../view";
|
|
7
7
|
import Text from "../text";
|
|
8
8
|
import Button from "../button";
|
|
9
|
+
import Assets from "../../assets";
|
|
9
10
|
var ActionType = /*#__PURE__*/function (ActionType) {
|
|
10
11
|
ActionType["MINUS"] = "minus";
|
|
11
12
|
ActionType["PLUS"] = "plus";
|
|
12
13
|
return ActionType;
|
|
13
14
|
}(ActionType || {});
|
|
14
|
-
const minusOutline = require("./assets/minusOutline.png");
|
|
15
|
-
const minusOutlineSmall = require("./assets/minusOutlineSmall.png");
|
|
16
|
-
const plusOutline = require("./assets/plusOutline.png");
|
|
17
|
-
const plusOutlineSmall = require("./assets/plusOutlineSmall.png");
|
|
18
|
-
const plusSmall = require("./assets/plusSmall.png");
|
|
19
|
-
const minusSmall = require("./assets/minusSmall.png");
|
|
20
15
|
const DEFAULT_STEP = 1;
|
|
21
16
|
/**
|
|
22
17
|
* @description: A stepper component
|
|
@@ -150,8 +145,8 @@ class Stepper extends PureComponent {
|
|
|
150
145
|
} = this.props;
|
|
151
146
|
const allowStepChange = this.allowStepChange(actionType);
|
|
152
147
|
const isFloatingStepper = type === 'floating';
|
|
153
|
-
const minusButton = isFloatingStepper ? minusSmall : small ? minusOutlineSmall : minusOutline;
|
|
154
|
-
const plusButton = isFloatingStepper ? plusSmall : small ? plusOutlineSmall : plusOutline;
|
|
148
|
+
const minusButton = isFloatingStepper ? Assets.internal.icons.minusSmall : small ? Assets.internal.icons.minusOutlineSmall : Assets.internal.icons.minusOutline;
|
|
149
|
+
const plusButton = isFloatingStepper ? Assets.internal.icons.plusSmall : small ? Assets.internal.icons.plusOutlineSmall : Assets.internal.icons.plusOutline;
|
|
155
150
|
return <Button link color={isFloatingStepper ? Colors.$iconDefault : undefined} iconSource={actionType === ActionType.MINUS ? minusButton : plusButton} disabled={disabled || !allowStepChange} onPress={() => this.handleStepChange(actionType)} testID={actionType === ActionType.MINUS ? `${testID}.minusStep` : `${testID}.plusStep`} />;
|
|
156
151
|
}
|
|
157
152
|
render() {
|
|
@@ -54,7 +54,7 @@ const ClearButton = ({
|
|
|
54
54
|
onClear?.();
|
|
55
55
|
};
|
|
56
56
|
return <View reanimated style={style} testID={`${testID}.container`}>
|
|
57
|
-
<Button link iconSource={Assets.icons.xFlat} iconStyle={styles.clearIcon} onPress={clear} hitSlop={hitSlop} accessible={hasValue} accessibilityLabel={'clear'} testID={testID} />
|
|
57
|
+
<Button link iconSource={Assets.internal.icons.xFlat} iconStyle={styles.clearIcon} onPress={clear} hitSlop={hitSlop} accessible={hasValue} accessibilityLabel={'clear'} testID={testID} />
|
|
58
58
|
</View>;
|
|
59
59
|
};
|
|
60
60
|
const styles = StyleSheet.create({
|
|
@@ -214,19 +214,19 @@
|
|
|
214
214
|
"title": "Icon",
|
|
215
215
|
"content": [
|
|
216
216
|
{
|
|
217
|
-
"snippet": "<Timeline point={{state: Timeline.states.SUCCESS, icon: Assets.icons.checkSmall}}><View style={{height: 88}}/></Timeline>"
|
|
217
|
+
"snippet": "<Timeline point={{state: Timeline.states.SUCCESS, icon: Assets.internal.icons.checkSmall}}><View style={{height: 88}}/></Timeline>"
|
|
218
218
|
}
|
|
219
219
|
],
|
|
220
|
-
"description": "icon: Assets.icons.general.checkmarkSmall"
|
|
220
|
+
"description": "icon: Assets.internal.icons.general.checkmarkSmall"
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"title": "Icon without background",
|
|
224
224
|
"content": [
|
|
225
225
|
{
|
|
226
|
-
"snippet": "<Timeline point={{state: Timeline.states.SUCCESS, icon: Assets.icons.search, removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
226
|
+
"snippet": "<Timeline point={{state: Timeline.states.SUCCESS, icon: Assets.internal.icons.search, removeIconBackground: true}}><View style={{height: 88}}/></Timeline>"
|
|
227
227
|
}
|
|
228
228
|
],
|
|
229
|
-
"description": "icon: Assets.icons.general.favorite, removeIconBackground: true"
|
|
229
|
+
"description": "icon: Assets.internal.icons.general.favorite, removeIconBackground: true"
|
|
230
230
|
}
|
|
231
231
|
],
|
|
232
232
|
"name": "Point Accessories"
|
|
@@ -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
|
},
|
|
@@ -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>
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|