aport-tools 4.4.3 → 4.4.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.3 | ISC */
1
+ /*! aport-tools v4.4.4 | ISC */
2
2
  'use strict';
3
3
 
4
4
  var React = require('react');
@@ -269,10 +269,13 @@ var Stepper = function Stepper(_a) {
269
269
  case "number":
270
270
  default:
271
271
  return /*#__PURE__*/React.createElement(Text, {
272
- style: {
273
- fontSize: 16,
274
- fontWeight: "bold"
275
- }
272
+ b: true,
273
+ typeFont: "primary",
274
+ style: [currentStep >= index ? {
275
+ color: colors.textButton.hex
276
+ } : {
277
+ color: colors.text.hex
278
+ }]
276
279
  }, index + 1);
277
280
  }
278
281
  };
@@ -292,10 +295,8 @@ var Stepper = function Stepper(_a) {
292
295
  return _onPress && _onPress(index);
293
296
  }
294
297
  }, /*#__PURE__*/React.createElement(reactNative.View, {
295
- style: [styles$9.step, stepStyle === "square" && styles$9.squareStep, currentStep >= index && {
296
- backgroundColor: colors.primary.hex
297
- }, {
298
- backgroundColor: colors.body.hex
298
+ style: [styles$9.step, stepStyle === "square" && styles$9.squareStep, {
299
+ backgroundColor: currentStep >= index ? colors.primary.hex : colors.body.hex
299
300
  }]
300
301
  }, renderStepContent(index)), steps && /*#__PURE__*/React.createElement(Text, {
301
302
  style: styles$9.stepText
@@ -418,7 +419,7 @@ var Form = function Form(_a) {
418
419
  }
419
420
  }, stepper && (/*#__PURE__*/React.createElement(Stepper, {
420
421
  steps: stepper.steps,
421
- currentStep: stepper.step,
422
+ currentStep: stepper.currentStep,
422
423
  presseable: stepper.presseable,
423
424
  onPress: stepper.onPress,
424
425
  totalSteps: stepper.totalSteps,