react-native-ui-lib 7.39.0-snapshot.6573 → 7.39.0-snapshot.6578
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/internal/icons/index.js +12 -0
- package/src/assets/internal/icons/index.web.js +12 -0
- package/src/components/stepper/index.js +3 -8
- package/src/components/stepper/assets/minusSmall.png +0 -0
- package/src/components/stepper/assets/minusSmall@1.5x.png +0 -0
- package/src/components/stepper/assets/minusSmall@2x.png +0 -0
- package/src/components/stepper/assets/minusSmall@3x.png +0 -0
- package/src/components/stepper/assets/minusSmall@4x.png +0 -0
- package/src/components/stepper/assets/plusSmall.png +0 -0
- package/src/components/stepper/assets/plusSmall@1.5x.png +0 -0
- package/src/components/stepper/assets/plusSmall@2x.png +0 -0
- package/src/components/stepper/assets/plusSmall@3x.png +0 -0
- package/src/components/stepper/assets/plusSmall@4x.png +0 -0
- /package/src/{components/stepper/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/{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/package.json
CHANGED
|
@@ -14,9 +14,21 @@ export const icons = {
|
|
|
14
14
|
get exclamationSmall() {
|
|
15
15
|
return require('./exclamationSmall.png');
|
|
16
16
|
},
|
|
17
|
+
get minusOutline() {
|
|
18
|
+
return require('./minusOutline.png');
|
|
19
|
+
},
|
|
20
|
+
get minusOutlineSmall() {
|
|
21
|
+
return require('./minusOutlineSmall.png');
|
|
22
|
+
},
|
|
17
23
|
get minusSmall() {
|
|
18
24
|
return require('./minusSmall.png');
|
|
19
25
|
},
|
|
26
|
+
get plusOutline() {
|
|
27
|
+
return require('./plusOutline.png');
|
|
28
|
+
},
|
|
29
|
+
get plusOutlineSmall() {
|
|
30
|
+
return require('./plusOutlineSmall.png');
|
|
31
|
+
},
|
|
20
32
|
get plusSmall() {
|
|
21
33
|
return require('./plusSmall.png');
|
|
22
34
|
},
|
|
@@ -14,9 +14,21 @@ export const icons = {
|
|
|
14
14
|
get exclamationSmall() {
|
|
15
15
|
return {uri: require('./exclamationSmall.png'), width: 16, height: 16};
|
|
16
16
|
},
|
|
17
|
+
get minusOutline() {
|
|
18
|
+
return {uri: require('./minusOutline.png'), width: 32, height: 32};
|
|
19
|
+
},
|
|
20
|
+
get minusOutlineSmall() {
|
|
21
|
+
return {uri: require('./minusOutlineSmall.png'), width: 24, height: 24};
|
|
22
|
+
},
|
|
17
23
|
get minusSmall() {
|
|
18
24
|
return {uri: require('./minusSmall.png'), width: 16, height: 16};
|
|
19
25
|
},
|
|
26
|
+
get plusOutline() {
|
|
27
|
+
return {uri: require('./plusOutline.png'), width: 32, height: 32};
|
|
28
|
+
},
|
|
29
|
+
get plusOutlineSmall() {
|
|
30
|
+
return {uri: require('./plusOutlineSmall.png'), width: 24, height: 24};
|
|
31
|
+
},
|
|
20
32
|
get plusSmall() {
|
|
21
33
|
return {uri: require('./plusSmall.png'), width: 16, height: 16};
|
|
22
34
|
},
|
|
@@ -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() {
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|