react-native-ui-lib 7.38.1-snapshot.6442 → 7.38.1-snapshot.6449
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/scripts/docs/buildDocsCommon.js +8 -17
- package/src/assets/components/index.d.ts +17 -0
- package/src/assets/components/index.js +32 -0
- package/src/assets/components/index.web.js +36 -0
- package/src/assets/components/outline/index.d.ts +7 -0
- package/src/assets/components/outline/index.js +14 -0
- package/src/assets/components/outline/index.web.js +14 -0
- package/src/assets/icons/index.js +3 -0
- package/src/assets/icons/index.web.js +31 -0
- package/src/assets/index.js +3 -0
- package/src/components/chipsInput/index.js +2 -2
- package/src/components/colorSwatch/index.js +1 -2
- package/src/components/hint/index.js +2 -3
- package/src/components/image/index.js +1 -1
- package/src/components/picker/helpers/useFieldType.js +2 -2
- package/src/components/stackAggregator/index.js +2 -2
- package/src/components/stepper/index.js +3 -8
- package/src/components/wizard/WizardStates.js +3 -4
- /package/src/{components/stackAggregator/assets/arrow-down.png → assets/components/arrowDown.png} +0 -0
- /package/src/{components/stackAggregator/assets/arrow-down@2x.png → assets/components/arrowDown@2x.png} +0 -0
- /package/src/{components/stackAggregator/assets/arrow-down@3x.png → assets/components/arrowDown@3x.png} +0 -0
- /package/src/{components/wizard/assets → assets/components}/checkMarkSmall.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/checkMarkSmall@1.5x.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/checkMarkSmall@2x.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/checkMarkSmall@3x.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/checkMarkSmall@4x.png +0 -0
- /package/src/{components/picker/assets/dropdown.png → assets/components/dropDown.png} +0 -0
- /package/src/{components/picker/assets/dropdown@1.5x.png → assets/components/dropDown@1.5x.png} +0 -0
- /package/src/{components/picker/assets/dropdown@2x.png → assets/components/dropDown@2x.png} +0 -0
- /package/src/{components/picker/assets/dropdown@3x.png → assets/components/dropDown@3x.png} +0 -0
- /package/src/{components/picker/assets/dropdown@4x.png → assets/components/dropDown@4x.png} +0 -0
- /package/src/{components/wizard/assets → assets/components}/exclamationSmall.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/exclamationSmall@1.5x.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/exclamationSmall@2x.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/exclamationSmall@3x.png +0 -0
- /package/src/{components/wizard/assets → assets/components}/exclamationSmall@4x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipMiddle.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipMiddle@1.5x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipMiddle@2x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipMiddle@3x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipMiddle@4x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipSide.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipSide@1.5x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipSide@2x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipSide@3x.png +0 -0
- /package/src/{components/hint/assets → assets/components}/hintTipSide@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/minusSmall.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/minusSmall@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/minusSmall@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/minusSmall@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/minusSmall@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutline.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutline@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutline@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutline@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutline@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutline.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutline@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutline@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutline@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutline@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@4x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/plusSmall.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/plusSmall@1.5x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/plusSmall@2x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/plusSmall@3x.png +0 -0
- /package/src/{components/stepper/assets → assets/components}/plusSmall@4x.png +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch.png → assets/components/transparentSwatch.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@1.5x.png → assets/components/transparentSwatch@1.5x.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@2x.png → assets/components/transparentSwatch@2x.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@3x.png → assets/components/transparentSwatch@3x.png} +0 -0
- /package/src/{components/colorSwatch/assets/transparentSwatch/TransparentSwatch@4x.png → assets/components/transparentSwatch@4x.png} +0 -0
- /package/src/{components/chipsInput/assets → assets/icons}/xSmall.png +0 -0
- /package/src/{components/chipsInput/assets → assets/icons}/xSmall@1.5x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/icons}/xSmall@2x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/icons}/xSmall@3x.png +0 -0
- /package/src/{components/chipsInput/assets → assets/icons}/xSmall@4x.png +0 -0
package/package.json
CHANGED
|
@@ -7,7 +7,6 @@ const fs = require('fs');
|
|
|
7
7
|
|
|
8
8
|
const COMPONENTS_DOCS_DIR = './docs/components';
|
|
9
9
|
const SERVICES_DOCS_DIR = './docs/services';
|
|
10
|
-
const FOUNDATION_DOCS_DIR = './docs/foundation';
|
|
11
10
|
|
|
12
11
|
const VALID_COMPONENTS_CATEGORIES = [
|
|
13
12
|
'foundation',
|
|
@@ -93,22 +92,14 @@ function processComponents(components) {
|
|
|
93
92
|
content += `${buildOldDocs(component)}\n`;
|
|
94
93
|
}
|
|
95
94
|
|
|
95
|
+
|
|
96
96
|
let dirPath;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
dirPath = `${FOUNDATION_DOCS_DIR}`;
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
default: {
|
|
107
|
-
const componentParentDir =
|
|
108
|
-
componentParentName || isParentComponent ? `/${componentParentName || componentName}` : '';
|
|
109
|
-
dirPath = `${COMPONENTS_DOCS_DIR}/${component.category}${componentParentDir}`;
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
97
|
+
if (component.category === 'services') {
|
|
98
|
+
dirPath = `${SERVICES_DOCS_DIR}`;
|
|
99
|
+
} else {
|
|
100
|
+
const componentParentDir =
|
|
101
|
+
componentParentName || isParentComponent ? `/${componentParentName || componentName}` : '';
|
|
102
|
+
dirPath = `${COMPONENTS_DOCS_DIR}/${component.category}${componentParentDir}`;
|
|
112
103
|
}
|
|
113
104
|
|
|
114
105
|
if (!fs.existsSync(dirPath)) {
|
|
@@ -193,7 +184,7 @@ function buildOldDocs(component) {
|
|
|
193
184
|
/* Snippet */
|
|
194
185
|
if (component.snippet) {
|
|
195
186
|
content += `### Usage\n`;
|
|
196
|
-
content += `<UILivePreview
|
|
187
|
+
content += `<UILivePreview code={\`${component.snippet
|
|
197
188
|
?.map(item => _.replace(item, new RegExp(/\$[1-9]/, 'g'), ''))
|
|
198
189
|
.join('\n')
|
|
199
190
|
.toString()}\`}/>\n\n`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const components: {
|
|
2
|
+
readonly outline: {
|
|
3
|
+
readonly minus: any;
|
|
4
|
+
readonly minusSmall: any;
|
|
5
|
+
readonly plus: any;
|
|
6
|
+
readonly plusSmall: any;
|
|
7
|
+
};
|
|
8
|
+
readonly arrowDown: any;
|
|
9
|
+
readonly checkMarkSmall: any;
|
|
10
|
+
readonly dropdown: any;
|
|
11
|
+
readonly exclamationSmall: any;
|
|
12
|
+
readonly hintTipMiddle: any;
|
|
13
|
+
readonly hintTipSide: any;
|
|
14
|
+
readonly minusSmall: any;
|
|
15
|
+
readonly plusSmall: any;
|
|
16
|
+
readonly transparentSwatch: any;
|
|
17
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const components = {
|
|
2
|
+
get outline() {
|
|
3
|
+
return require("./outline").default;
|
|
4
|
+
},
|
|
5
|
+
get arrowDown() {
|
|
6
|
+
return require("./arrowDown.png");
|
|
7
|
+
},
|
|
8
|
+
get checkMarkSmall() {
|
|
9
|
+
return require("./checkMarkSmall.png");
|
|
10
|
+
},
|
|
11
|
+
get dropdown() {
|
|
12
|
+
return require("./dropdown.png");
|
|
13
|
+
},
|
|
14
|
+
get exclamationSmall() {
|
|
15
|
+
return require("./exclamationSmall.png");
|
|
16
|
+
},
|
|
17
|
+
get hintTipMiddle() {
|
|
18
|
+
return require("./hintTipMiddle.png");
|
|
19
|
+
},
|
|
20
|
+
get hintTipSide() {
|
|
21
|
+
return require("./hintTipSide.png");
|
|
22
|
+
},
|
|
23
|
+
get minusSmall() {
|
|
24
|
+
return require("./minusSmall.png");
|
|
25
|
+
},
|
|
26
|
+
get plusSmall() {
|
|
27
|
+
return require("./plusSmall.png");
|
|
28
|
+
},
|
|
29
|
+
get transparentSwatch() {
|
|
30
|
+
return require("./TransparentSwatch.png");
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const outline = require('./outline').default;
|
|
2
|
+
|
|
3
|
+
const components = {
|
|
4
|
+
get outline() {
|
|
5
|
+
return outline;
|
|
6
|
+
},
|
|
7
|
+
get arrowDown() {
|
|
8
|
+
return {uri: require('./arrowDown.png'), dimensions: {width: 16, height: 16}};
|
|
9
|
+
},
|
|
10
|
+
get checkMarkSmall() {
|
|
11
|
+
return {uri: require('./checkMarkSmall.png'), dimensions: {width: 16, height: 16}};
|
|
12
|
+
},
|
|
13
|
+
get dropdown() {
|
|
14
|
+
return {uri: require('./dropdown.png'), dimensions: {width: 16, height: 16}};
|
|
15
|
+
},
|
|
16
|
+
get exclamationSmall() {
|
|
17
|
+
return {uri: require('./exclamationSmall.png'), dimensions: {width: 16, height: 16}};
|
|
18
|
+
},
|
|
19
|
+
get hintTipMiddle() {
|
|
20
|
+
return {uri: require('./hintTipMiddle.png'), dimensions: {width: 20, height: 7}};
|
|
21
|
+
},
|
|
22
|
+
get hintTipSide() {
|
|
23
|
+
return {uri: require('./hintTipSide.png'), dimensions: {width: 20, height: 24}};
|
|
24
|
+
},
|
|
25
|
+
get minusSmall() {
|
|
26
|
+
return {uri: require('./minusSmall.png'), dimensions: {width: 16, height: 16}};
|
|
27
|
+
},
|
|
28
|
+
get plusSmall() {
|
|
29
|
+
return {uri: require('./plusSmall.png'), dimensions: {width: 16, height: 16}};
|
|
30
|
+
},
|
|
31
|
+
get transparentSwatch() {
|
|
32
|
+
return {uri: require('./TransparentSwatch.png'), dimensions: {width: 100, height: 100}};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
module.exports = components;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
get minus() {
|
|
3
|
+
return require("./minusOutline.png");
|
|
4
|
+
},
|
|
5
|
+
get minusSmall() {
|
|
6
|
+
return require("./minusOutlineSmall.png");
|
|
7
|
+
},
|
|
8
|
+
get plus() {
|
|
9
|
+
return require("./plusOutline.png");
|
|
10
|
+
},
|
|
11
|
+
get plusSmall() {
|
|
12
|
+
return require("./plusOutlineSmall.png");
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
get minus() {
|
|
3
|
+
return {uri: require('./minusOutline.png'), dimensions: {width: 32, height: 32}};
|
|
4
|
+
},
|
|
5
|
+
get minusSmall() {
|
|
6
|
+
return {uri: require('./minusOutlineSmall.png'), dimensions: {width: 24, height: 24}};
|
|
7
|
+
},
|
|
8
|
+
get plus() {
|
|
9
|
+
return {uri: require('./plusOutline.png'), dimensions: {width: 32, height: 32}};
|
|
10
|
+
},
|
|
11
|
+
get plusSmall() {
|
|
12
|
+
return {uri: require('./plusOutlineSmall.png'), dimensions: {width: 24, height: 24}};
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const icons = {
|
|
2
|
+
get check() {
|
|
3
|
+
return {uri: require('./check.png'), dimensions: {width: 21, height: 15}};
|
|
4
|
+
},
|
|
5
|
+
get checkSmall() {
|
|
6
|
+
return {uri: require('./check-small.png'), dimensions: {width: 24, height: 24}};
|
|
7
|
+
},
|
|
8
|
+
get minusSmall() {
|
|
9
|
+
return {uri: require('./minusSmall.png'), dimensions: {width: 16, height: 16}};
|
|
10
|
+
},
|
|
11
|
+
get plusSmall() {
|
|
12
|
+
return {uri: require('./plusSmall.png'), dimensions: {width: 16, height: 16}};
|
|
13
|
+
},
|
|
14
|
+
get search() {
|
|
15
|
+
return {uri: require('./search.png'), dimensions: {width: 24, height: 24}};
|
|
16
|
+
},
|
|
17
|
+
get x() {
|
|
18
|
+
return {uri: require('./x.png'), dimensions: {width: 17, height: 16}};
|
|
19
|
+
},
|
|
20
|
+
get xSmall() {
|
|
21
|
+
return {uri: require('./xSmall.png'), dimensions: {width: 16, height: 16}};
|
|
22
|
+
},
|
|
23
|
+
get xMedium() {
|
|
24
|
+
return {uri: require('./xMedium.png'), dimensions: {width: 24, height: 24}};
|
|
25
|
+
},
|
|
26
|
+
get xFlat() {
|
|
27
|
+
return {uri: require('./xFlat.png'), dimensions: {width: 16, height: 16}};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
module.exports = icons;
|
package/src/assets/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Constants } from "../../commons/new";
|
|
|
6
6
|
import { useCombinedRefs, useDidUpdate } from "../../hooks";
|
|
7
7
|
import TextField from "../textField";
|
|
8
8
|
import Chip from "../chip";
|
|
9
|
-
|
|
9
|
+
import Assets from "../../assets";
|
|
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.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 <>
|
|
@@ -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,7 +140,7 @@ 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.components.transparentSwatch} style={this.styles.transparentImage} resizeMode={'cover'} />}
|
|
145
144
|
{unavailable ? <View style={[this.styles.unavailable, {
|
|
146
145
|
backgroundColor: tintColor
|
|
147
146
|
}]} /> : <Animated.Image source={Assets.icons.check} style={{
|
|
@@ -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.components.hintTipSide : Assets.components.hintTipMiddle;
|
|
129
128
|
const flipVertically = position === HintPositions.TOP;
|
|
130
129
|
const flipHorizontally = targetAlignmentOnScreen === TargetAlignments.RIGHT;
|
|
131
130
|
const flipStyle = {
|
|
@@ -156,7 +156,7 @@ class Image extends PureComponent {
|
|
|
156
156
|
} = modifiers;
|
|
157
157
|
return (
|
|
158
158
|
// @ts-ignore
|
|
159
|
-
<ImageView style={[tintColor && {
|
|
159
|
+
<ImageView style={[Constants.isWeb && source?.dimensions, tintColor && {
|
|
160
160
|
tintColor
|
|
161
161
|
}, shouldFlipRTL && styles.rtlFlipped, width && {
|
|
162
162
|
width
|
|
@@ -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.components.dropDown} />
|
|
34
34
|
};
|
|
35
35
|
} else if (fieldType === PickerFieldTypes.settings) {
|
|
36
36
|
return {
|
|
@@ -7,11 +7,11 @@ import Button, { ButtonSize } from "../button";
|
|
|
7
7
|
import Card from "../card";
|
|
8
8
|
import { Constants, asBaseComponent } from "../../commons/new";
|
|
9
9
|
import { useDidUpdate } from "../../hooks";
|
|
10
|
+
import Assets from "../../assets";
|
|
10
11
|
const PEEP = 8;
|
|
11
12
|
const DURATION = 300;
|
|
12
13
|
const MARGIN_BOTTOM = 24;
|
|
13
14
|
const buttonStartValue = 0.8;
|
|
14
|
-
const icon = require("./assets/arrow-down.png");
|
|
15
15
|
/**
|
|
16
16
|
* @description: Stack aggregator component
|
|
17
17
|
* @modifiers: margin, padding
|
|
@@ -198,7 +198,7 @@ const StackAggregator = props => {
|
|
|
198
198
|
scale: animatedScale
|
|
199
199
|
}]
|
|
200
200
|
}}>
|
|
201
|
-
<Button label={'Show less'} iconSource={
|
|
201
|
+
<Button label={'Show less'} iconSource={Assets.components.arrowDown} link size={ButtonSize.small} {...buttonProps} marginH-24 marginB-20 onPress={close} style={styles.button} />
|
|
202
202
|
</Animated.View>
|
|
203
203
|
|
|
204
204
|
{React.Children.map(children, (item, index) => {
|
|
@@ -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 ?
|
|
154
|
-
const plusButton = isFloatingStepper ? plusSmall : small ?
|
|
148
|
+
const minusButton = isFloatingStepper ? Assets.components.minusSmall : small ? Assets.components.outline.minusSmall : Assets.components.outline.minus;
|
|
149
|
+
const plusButton = isFloatingStepper ? Assets.components.plusSmall : small ? Assets.components.outline.plusSmall : Assets.components.outline.plus;
|
|
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() {
|
|
@@ -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.components.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.components.checkMarkSmall,
|
|
31
30
|
enabled: true,
|
|
32
31
|
accessibilityInfo: 'Completed'
|
|
33
32
|
},
|
/package/src/{components/stackAggregator/assets/arrow-down.png → assets/components/arrowDown.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
|
/package/src/{components/picker/assets/dropdown@1.5x.png → assets/components/dropDown@1.5x.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
|
/package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@1.5x.png
RENAMED
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@2x.png
RENAMED
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@3x.png
RENAMED
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/minusOutlineSmall@4x.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@1.5x.png
RENAMED
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@2x.png
RENAMED
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@3x.png
RENAMED
|
File without changes
|
/package/src/{components/stepper/assets → assets/components/outline}/plusOutlineSmall@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
|