@gympass/yoga 7.78.1 → 7.79.0
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/cjs/Banner/web/Banner.js
CHANGED
|
@@ -121,7 +121,7 @@ Banner.propTypes = {
|
|
|
121
121
|
variant: (0, _propTypes.oneOf)(['success', 'informative', 'attention']),
|
|
122
122
|
|
|
123
123
|
/** the message to display */
|
|
124
|
-
message: _propTypes.string.isRequired,
|
|
124
|
+
message: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.element]).isRequired,
|
|
125
125
|
|
|
126
126
|
/** the label and action fuction are required for banner action buttons */
|
|
127
127
|
primaryButton: BannerActionButtonType,
|
package/esm/Banner/web/Banner.js
CHANGED
|
@@ -12,7 +12,7 @@ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.s
|
|
|
12
12
|
import React, { forwardRef } from 'react';
|
|
13
13
|
import styled from 'styled-components';
|
|
14
14
|
import { borders, margins, paddings } from '@gympass/yoga-system';
|
|
15
|
-
import { checkPropTypes, elementType, func, oneOf, shape, string } from 'prop-types';
|
|
15
|
+
import { checkPropTypes, elementType, element, func, oneOf, oneOfType, shape, string } from 'prop-types';
|
|
16
16
|
import Box from '../../Box';
|
|
17
17
|
import Button from '../../Button';
|
|
18
18
|
import Icon from '../../Icon';
|
|
@@ -100,7 +100,7 @@ Banner.propTypes = {
|
|
|
100
100
|
variant: oneOf(['success', 'informative', 'attention']),
|
|
101
101
|
|
|
102
102
|
/** the message to display */
|
|
103
|
-
message: string.isRequired,
|
|
103
|
+
message: oneOfType([string, element]).isRequired,
|
|
104
104
|
|
|
105
105
|
/** the label and action fuction are required for banner action buttons */
|
|
106
106
|
primaryButton: BannerActionButtonType,
|
|
@@ -15,10 +15,9 @@ describe('<Stepper />', function () {
|
|
|
15
15
|
}, /*#__PURE__*/React.createElement(Text, null, "step two content")), /*#__PURE__*/React.createElement(Stepper.Step, {
|
|
16
16
|
label: "step three"
|
|
17
17
|
}, /*#__PURE__*/React.createElement(Text, null, "step three content"))))),
|
|
18
|
-
root = _render.root,
|
|
19
18
|
toJSON = _render.toJSON;
|
|
20
19
|
|
|
21
|
-
expect(toJSON(
|
|
20
|
+
expect(toJSON()).toMatchSnapshot();
|
|
22
21
|
});
|
|
23
22
|
it('should match snapshot with first step active and secondary color', function () {
|
|
24
23
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Stepper, {
|
|
@@ -31,10 +30,9 @@ describe('<Stepper />', function () {
|
|
|
31
30
|
}, /*#__PURE__*/React.createElement(Text, null, "step two content")), /*#__PURE__*/React.createElement(Stepper.Step, {
|
|
32
31
|
label: "step three"
|
|
33
32
|
}, /*#__PURE__*/React.createElement(Text, null, "step three content"))))),
|
|
34
|
-
container = _render2.container,
|
|
35
33
|
toJSON = _render2.toJSON;
|
|
36
34
|
|
|
37
|
-
expect(toJSON(
|
|
35
|
+
expect(toJSON()).toMatchSnapshot();
|
|
38
36
|
});
|
|
39
37
|
it('should match snapshot with second step active', function () {
|
|
40
38
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Stepper, {
|
|
@@ -46,10 +44,9 @@ describe('<Stepper />', function () {
|
|
|
46
44
|
}, /*#__PURE__*/React.createElement(Text, null, "step two content")), /*#__PURE__*/React.createElement(Stepper.Step, {
|
|
47
45
|
label: "step three"
|
|
48
46
|
}, /*#__PURE__*/React.createElement(Text, null, "step three content"))))),
|
|
49
|
-
root = _render3.root,
|
|
50
47
|
toJSON = _render3.toJSON;
|
|
51
48
|
|
|
52
|
-
expect(toJSON(
|
|
49
|
+
expect(toJSON()).toMatchSnapshot();
|
|
53
50
|
});
|
|
54
51
|
});
|
|
55
52
|
describe('Steps', function () {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.79.0",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
|
-
"main": "./cjs
|
|
5
|
+
"main": "./cjs",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"keywords": [
|
|
8
8
|
"Gympass",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"react-native": "0.72.3",
|
|
56
56
|
"styled-components": "^4.4.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
-
"module": "./esm
|
|
58
|
+
"gitHead": "37d07a5f38b80bc2623d8a50af6ad59a6e070dce",
|
|
59
|
+
"module": "./esm",
|
|
60
60
|
"types": "./typings/index.d.ts",
|
|
61
61
|
"private": false,
|
|
62
62
|
"exports": {
|
|
63
63
|
".": {
|
|
64
|
-
"require": "./cjs
|
|
65
|
-
"import": "./esm
|
|
64
|
+
"require": "./cjs",
|
|
65
|
+
"import": "./esm"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"react-native": "./cjs/index.native.js"
|