@gympass/yoga 7.70.0 → 7.70.2

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.
@@ -27,7 +27,7 @@ var Title = function Title(_ref) {
27
27
  w: "100%",
28
28
  textAlign: "center"
29
29
  }, /*#__PURE__*/_react["default"].createElement(_Text["default"].Medium, _extends({}, props, {
30
- size: "small",
30
+ fontSize: "small",
31
31
  as: "h1"
32
32
  }), children));
33
33
  };
@@ -1 +1 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Tiny=exports.Text=exports.SmallestException=exports.Small=exports.SectionTitle=exports.Regular=exports.Medium=exports.Light=exports.H5=exports.H4=exports.H3=exports.H2=exports.H1=exports.Bold=exports.Black=void 0;var _taggedTemplateLiteralLoose2=_interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _react=_interopRequireDefault(require("react"));var _styledComponents=_interopRequireDefault(require("styled-components"));var _propTypes=require("prop-types");var _yogaSystem=require("@gympass/yoga-system");var _textStyle=_interopRequireDefault(require("../textStyle"));var _shared=require("../../shared");var _templateObject;var styledText=function styledText(type){return _styledComponents["default"].Text(_templateObject||(_templateObject=(0,_taggedTemplateLiteralLoose2["default"])(["\n ","\n ","\n"])),(0,_textStyle["default"])(type),_yogaSystem.system);};var H1=styledText('h1');exports.H1=H1;H1.displayName='Text.H1';var H2=styledText('h2');exports.H2=H2;H2.displayName='Text.H2';var H3=styledText('h3');exports.H3=H3;H3.displayName='Text.H3';var H4=styledText('h4');exports.H4=H4;H4.displayName='Text.H4';var H5=styledText('h5');exports.H5=H5;H5.displayName='Text.H5';var Small=styledText('small');exports.Small=Small;Small.displayName='Text.Small';var Tiny=styledText('tiny');exports.Tiny=Tiny;Tiny.displayName='Text.Tiny';var Light=styledText('light');exports.Light=Light;Light.displayName='Text.Light';var Regular=styledText('regular');exports.Regular=Regular;Regular.displayName='Text.Regular';var Medium=styledText('medium');exports.Medium=Medium;Medium.displayName='Text.Medium';var Bold=styledText('bold');exports.Bold=Bold;Bold.displayName='Text.Bold';var Black=styledText('black');exports.Black=Black;Black.displayName='Text.Black';var SectionTitle=styledText('sectionTitle');exports.SectionTitle=SectionTitle;SectionTitle.displayName='Text.SectionTitle';var SmallestException=styledText('smallestException');exports.SmallestException=SmallestException;SmallestException.displayName='Text.SmallestException';var TextRenderer=styledText('p');var Text=function Text(props){return _react["default"].createElement(TextRenderer,props);};exports.Text=Text;Text.displayName='Text';Text.propTypes={inverted:_propTypes.bool,variant:(0,_shared.deprecated)((0,_propTypes.oneOf)(['primary','secondary','vibin','hope','energy','relax','peace','verve','uplift','deepPurple','stamina','deep','medium','light','clear','white']),'Use `color` system prop instead'),size:(0,_shared.deprecated)((0,_propTypes.oneOf)(['xxsmall','xsmall','small','medium','large','xlarge','xxlarge','xxxlarge','huge']),'Use `fontSize` system prop instead'),light:_propTypes.bool};Text.defaultProps={inverted:false,variant:undefined,size:'medium',light:false};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Tiny=exports.Text=exports.SmallestException=exports.Small=exports.SectionTitle=exports.Regular=exports.Medium=exports.Light=exports.H5=exports.H4=exports.H3=exports.H2=exports.H1=exports.Bold=exports.Black=void 0;var _taggedTemplateLiteralLoose2=_interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _react=_interopRequireDefault(require("react"));var _styledComponents=_interopRequireDefault(require("styled-components"));var _propTypes=require("prop-types");var _yogaSystem=require("@gympass/yoga-system");var _textStyle=_interopRequireDefault(require("../textStyle"));var _shared=require("../../shared");var _templateObject;var styledText=function styledText(type){return _styledComponents["default"].Text(_templateObject||(_templateObject=(0,_taggedTemplateLiteralLoose2["default"])(["\n ","\n ","\n"])),(0,_textStyle["default"])(type),_yogaSystem.system);};var H1=styledText('h1');exports.H1=H1;H1.displayName='Text.H1';var H2=styledText('h2');exports.H2=H2;H2.displayName='Text.H2';var H3=styledText('h3');exports.H3=H3;H3.displayName='Text.H3';var H4=styledText('h4');exports.H4=H4;H4.displayName='Text.H4';var H5=styledText('h5');exports.H5=H5;H5.displayName='Text.H5';var Small=styledText('small');exports.Small=Small;Small.displayName='Text.Small';var Tiny=styledText('tiny');exports.Tiny=Tiny;Tiny.displayName='Text.Tiny';var Light=styledText('light');exports.Light=Light;Light.displayName='Text.Light';var Regular=styledText('regular');exports.Regular=Regular;Regular.displayName='Text.Regular';var Medium=styledText('medium');exports.Medium=Medium;Medium.displayName='Text.Medium';var Bold=styledText('bold');exports.Bold=Bold;Bold.displayName='Text.Bold';var Black=styledText('black');exports.Black=Black;Black.displayName='Text.Black';var SectionTitle=styledText('sectionTitle');exports.SectionTitle=SectionTitle;SectionTitle.displayName='Text.SectionTitle';var SmallestException=styledText('smallestException');exports.SmallestException=SmallestException;SmallestException.displayName='Text.SmallestException';var TextRenderer=styledText('p');var Text=function Text(props){return _react["default"].createElement(TextRenderer,props);};exports.Text=Text;Text.displayName='Text';var fontSizes=(0,_propTypes.oneOf)(['xxsmall','xsmall','small','medium','large','xlarge','xxlarge','xxxlarge','huge']);Text.propTypes={inverted:_propTypes.bool,variant:(0,_shared.deprecated)((0,_propTypes.oneOf)(['primary','secondary','vibin','hope','energy','relax','peace','verve','uplift','deepPurple','stamina','deep','medium','light','clear','white']),'Use `color` system prop instead'),size:(0,_shared.deprecated)(fontSizes,'Use `fontSize` system prop instead'),light:_propTypes.bool,fontSize:fontSizes};Text.defaultProps={inverted:false,variant:undefined,size:undefined,fontSize:'medium',light:false};
@@ -15,12 +15,14 @@ var textStyle = function textStyle(type) {
15
15
  var light = _ref.light,
16
16
  variant = _ref.variant,
17
17
  inverted = _ref.inverted,
18
+ _ref$fontSize = _ref.fontSize,
19
+ fontSize = _ref$fontSize === void 0 ? 'medium' : _ref$fontSize,
18
20
  _ref$size = _ref.size,
19
21
  size = _ref$size === void 0 ? 'medium' : _ref$size,
20
22
  _ref$theme$yoga = _ref.theme.yoga,
21
23
  baseFont = _ref$theme$yoga.baseFont,
22
24
  fontWeights = _ref$theme$yoga.fontWeights,
23
- pSize = _ref$theme$yoga.fontSizes[size],
25
+ pSize = _ref$theme$yoga.fontSizes[size || fontSize],
24
26
  _ref$theme$yoga$color = _ref$theme$yoga.colors,
25
27
  color = _ref$theme$yoga$color[variant],
26
28
  text = _ref$theme$yoga$color.text,
@@ -80,6 +80,7 @@ var Text = function Text(props) {
80
80
 
81
81
  exports.Text = Text;
82
82
  Text.displayName = 'Text';
83
+ var fontSizes = (0, _propTypes.oneOf)(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge', 'huge']);
83
84
  Text.propTypes = {
84
85
  inverted: _propTypes.bool,
85
86
  numberOfLines: _propTypes.number,
@@ -88,15 +89,17 @@ Text.propTypes = {
88
89
  variant: (0, _shared.deprecated)((0, _propTypes.oneOf)(['primary', 'secondary', 'vibin', 'hope', 'energy', 'relax', 'peace', 'verve', 'uplift', 'deepPurple', 'stamina', 'deep', 'medium', 'light', 'clear', 'white']), 'Use `color` system prop instead'),
89
90
 
90
91
  /** (deprecated: use fontSize instead) style the text following the theme */
91
- size: (0, _shared.deprecated)((0, _propTypes.oneOf)(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge', 'huge']), 'Use `fontSize` system prop instead'),
92
+ size: (0, _shared.deprecated)(fontSizes, 'Use `fontSize` system prop instead'),
92
93
 
93
94
  /** set the font-weight to regular */
94
- light: _propTypes.bool
95
+ light: _propTypes.bool,
96
+ fontSize: fontSizes
95
97
  };
96
98
  Text.defaultProps = {
97
99
  inverted: false,
98
100
  variant: undefined,
99
- size: 'medium',
101
+ size: undefined,
102
+ fontSize: 'medium',
100
103
  numberOfLines: undefined,
101
104
  light: false
102
105
  };
@@ -17,7 +17,7 @@ var Title = function Title(_ref) {
17
17
  w: "100%",
18
18
  textAlign: "center"
19
19
  }, /*#__PURE__*/React.createElement(Text.Medium, _extends({}, props, {
20
- size: "small",
20
+ fontSize: "small",
21
21
  as: "h1"
22
22
  }), children));
23
23
  };
@@ -48,6 +48,7 @@ var Text = function Text(props) {
48
48
  };
49
49
 
50
50
  Text.displayName = 'Text';
51
+ var fontSizes = oneOf(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge', 'huge']);
51
52
  Text.propTypes = {
52
53
  inverted: bool,
53
54
 
@@ -55,15 +56,17 @@ Text.propTypes = {
55
56
  variant: deprecated(oneOf(['primary', 'secondary', 'vibin', 'hope', 'energy', 'relax', 'peace', 'verve', 'uplift', 'deepPurple', 'stamina', 'deep', 'medium', 'light', 'clear', 'white']), 'Use `color` system prop instead'),
56
57
 
57
58
  /** (deprecated: use fontSize instead) style the text following the theme */
58
- size: deprecated(oneOf(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge', 'huge']), 'Use `fontSize` system prop instead'),
59
+ size: deprecated(fontSizes, 'Use `fontSize` system prop instead'),
59
60
 
60
61
  /** set the font-weight to regular */
61
- light: bool
62
+ light: bool,
63
+ fontSize: fontSizes
62
64
  };
63
65
  Text.defaultProps = {
64
66
  inverted: false,
65
67
  variant: undefined,
66
- size: 'medium',
68
+ size: undefined,
69
+ fontSize: 'medium',
67
70
  light: false
68
71
  };
69
72
  export { Text, H1, H2, H3, H4, H5, Small, Tiny, Light, Regular, Medium, Bold, Black, SectionTitle, SmallestException };
@@ -34,8 +34,22 @@ describe('<Text />', function () {
34
34
 
35
35
  expect(toJSON()).toMatchSnapshot();
36
36
  });
37
- it('should match snapshot with Text size', function () {
37
+ it('should match snapshot with Text fontSize', function () {
38
38
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.Small, {
39
+ fontSize: "xsmall"
40
+ }, "Live the small mission"), /*#__PURE__*/React.createElement(Text.Tiny, {
41
+ fontSize: "medium"
42
+ }, "Live the medium mission"), /*#__PURE__*/React.createElement(Text.Regular, {
43
+ fontSize: "xlarge"
44
+ }, "Live the xlarge mission"), /*#__PURE__*/React.createElement(Text.Medium, {
45
+ fontSize: "xxxlarge"
46
+ }, "Live the xxxlarge mission"))),
47
+ toJSON = _render4.toJSON;
48
+
49
+ expect(toJSON()).toMatchSnapshot();
50
+ });
51
+ it('should match snapshot with Text size', function () {
52
+ var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.Small, {
39
53
  size: "xsmall"
40
54
  }, "Live the small mission"), /*#__PURE__*/React.createElement(Text.Tiny, {
41
55
  size: "medium"
@@ -44,104 +58,104 @@ describe('<Text />', function () {
44
58
  }, "Live the xlarge mission"), /*#__PURE__*/React.createElement(Text.Medium, {
45
59
  size: "xxxlarge"
46
60
  }, "Live the xxxlarge mission"))),
47
- toJSON = _render4.toJSON;
61
+ toJSON = _render5.toJSON;
48
62
 
49
63
  expect(toJSON()).toMatchSnapshot();
50
64
  });
51
65
  it('should match snapshot with inverted Text', function () {
52
- var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
66
+ var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
53
67
  inverted: true
54
68
  }, "Live the mission"))),
55
- toJSON = _render5.toJSON;
69
+ toJSON = _render6.toJSON;
56
70
 
57
71
  expect(toJSON()).toMatchSnapshot();
58
72
  });
59
73
  it('should match snapshot with truncated lines Text', function () {
60
- var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
74
+ var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
61
75
  numberOfLines: 1
62
76
  }, "Live the mission", /*#__PURE__*/React.createElement("br", null), "even in one line"))),
63
- toJSON = _render6.toJSON;
77
+ toJSON = _render7.toJSON;
64
78
 
65
79
  expect(toJSON()).toMatchSnapshot();
66
80
  });
67
81
  it('should match snapshot with border prop system', function () {
68
- var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
82
+ var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
69
83
  border: "small",
70
84
  bRadius: "small"
71
85
  }, "Live the mission"))),
72
- toJSON = _render7.toJSON;
86
+ toJSON = _render8.toJSON;
73
87
 
74
88
  expect(toJSON()).toMatchSnapshot();
75
89
  });
76
90
  it('should match snapshot with background color prop system', function () {
77
- var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
91
+ var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
78
92
  backgroundColor: "vibin"
79
93
  }, "Live the mission"))),
80
- toJSON = _render8.toJSON;
94
+ toJSON = _render9.toJSON;
81
95
 
82
96
  expect(toJSON()).toMatchSnapshot();
83
97
  });
84
98
  it('should match snapshot with elevation prop system', function () {
85
- var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
99
+ var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
86
100
  elevation: "medium"
87
101
  }, "Live the mission"))),
88
- toJSON = _render9.toJSON;
102
+ toJSON = _render10.toJSON;
89
103
 
90
104
  expect(toJSON()).toMatchSnapshot();
91
105
  });
92
106
  it('should match snapshot with spacing prop system', function () {
93
- var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
107
+ var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
94
108
  m: "medium",
95
109
  paddingVertical: "large",
96
110
  paddingHorizontal: "small"
97
111
  }, "Live the mission"))),
98
- toJSON = _render10.toJSON;
112
+ toJSON = _render11.toJSON;
99
113
 
100
114
  expect(toJSON()).toMatchSnapshot();
101
115
  });
102
116
  it('should match snapshot with typography prop system', function () {
103
- var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
117
+ var _render12 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
104
118
  color: "text.primary",
105
119
  fontSize: "small",
106
120
  fontWeight: "medium",
107
121
  lineHeight: "small"
108
122
  }, "Live the mission"))),
109
- toJSON = _render11.toJSON;
123
+ toJSON = _render12.toJSON;
110
124
 
111
125
  expect(toJSON()).toMatchSnapshot();
112
126
  });
113
127
  it('should match snapshot with display prop system', function () {
114
- var _render12 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
128
+ var _render13 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
115
129
  display: "flex"
116
130
  }, "Live the mission"))),
117
- toJSON = _render12.toJSON;
131
+ toJSON = _render13.toJSON;
118
132
 
119
133
  expect(toJSON()).toMatchSnapshot();
120
134
  });
121
135
  it('should match snapshot with position prop system', function () {
122
- var _render13 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
136
+ var _render14 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
123
137
  position: "absolute",
124
138
  top: "small",
125
139
  left: "small"
126
140
  }, "Live the mission"))),
127
- toJSON = _render13.toJSON;
141
+ toJSON = _render14.toJSON;
128
142
 
129
143
  expect(toJSON()).toMatchSnapshot();
130
144
  });
131
145
  it('should match snapshot with flexes prop system', function () {
132
- var _render14 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
146
+ var _render15 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
133
147
  display: "flex",
134
148
  flexGrow: 1
135
149
  }, "Live the mission"))),
136
- toJSON = _render14.toJSON;
150
+ toJSON = _render15.toJSON;
137
151
 
138
152
  expect(toJSON()).toMatchSnapshot();
139
153
  });
140
154
  it('should match snapshot with overflows prop system', function () {
141
- var _render15 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
155
+ var _render16 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
142
156
  overflow: "scroll"
143
157
  }, "Live the mission"))),
144
- toJSON = _render15.toJSON;
158
+ toJSON = _render16.toJSON;
145
159
 
146
160
  expect(toJSON()).toMatchSnapshot();
147
161
  });
@@ -10,12 +10,14 @@ var textStyle = function textStyle(type) {
10
10
  var light = _ref.light,
11
11
  variant = _ref.variant,
12
12
  inverted = _ref.inverted,
13
+ _ref$fontSize = _ref.fontSize,
14
+ fontSize = _ref$fontSize === void 0 ? 'medium' : _ref$fontSize,
13
15
  _ref$size = _ref.size,
14
16
  size = _ref$size === void 0 ? 'medium' : _ref$size,
15
17
  _ref$theme$yoga = _ref.theme.yoga,
16
18
  baseFont = _ref$theme$yoga.baseFont,
17
19
  fontWeights = _ref$theme$yoga.fontWeights,
18
- pSize = _ref$theme$yoga.fontSizes[size],
20
+ pSize = _ref$theme$yoga.fontSizes[size || fontSize],
19
21
  _ref$theme$yoga$color = _ref$theme$yoga.colors,
20
22
  color = _ref$theme$yoga$color[variant],
21
23
  text = _ref$theme$yoga$color.text,
@@ -52,6 +52,7 @@ var Text = function Text(props) {
52
52
  };
53
53
 
54
54
  Text.displayName = 'Text';
55
+ var fontSizes = oneOf(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge', 'huge']);
55
56
  Text.propTypes = {
56
57
  inverted: bool,
57
58
  numberOfLines: number,
@@ -60,15 +61,17 @@ Text.propTypes = {
60
61
  variant: deprecated(oneOf(['primary', 'secondary', 'vibin', 'hope', 'energy', 'relax', 'peace', 'verve', 'uplift', 'deepPurple', 'stamina', 'deep', 'medium', 'light', 'clear', 'white']), 'Use `color` system prop instead'),
61
62
 
62
63
  /** (deprecated: use fontSize instead) style the text following the theme */
63
- size: deprecated(oneOf(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge', 'huge']), 'Use `fontSize` system prop instead'),
64
+ size: deprecated(fontSizes, 'Use `fontSize` system prop instead'),
64
65
 
65
66
  /** set the font-weight to regular */
66
- light: bool
67
+ light: bool,
68
+ fontSize: fontSizes
67
69
  };
68
70
  Text.defaultProps = {
69
71
  inverted: false,
70
72
  variant: undefined,
71
- size: 'medium',
73
+ size: undefined,
74
+ fontSize: 'medium',
72
75
  numberOfLines: undefined,
73
76
  light: false
74
77
  };
@@ -34,8 +34,22 @@ describe('<Text />', function () {
34
34
 
35
35
  expect(container).toMatchSnapshot();
36
36
  });
37
- it('should match snapshot with Text size', function () {
37
+ it('should match snapshot with Text fontSize', function () {
38
38
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.Small, {
39
+ fontSize: "xsmall"
40
+ }, "Live the small mission"), /*#__PURE__*/React.createElement(Text.Tiny, {
41
+ fontSize: "medium"
42
+ }, "Live the medium mission"), /*#__PURE__*/React.createElement(Text.Regular, {
43
+ fontSize: "xlarge"
44
+ }, "Live the xlarge mission"), /*#__PURE__*/React.createElement(Text.Medium, {
45
+ fontSize: "xxxlarge"
46
+ }, "Live the xxxlarge mission"))),
47
+ container = _render4.container;
48
+
49
+ expect(container).toMatchSnapshot();
50
+ });
51
+ it('should match snapshot with Text size', function () {
52
+ var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.Small, {
39
53
  size: "xsmall"
40
54
  }, "Live the small mission"), /*#__PURE__*/React.createElement(Text.Tiny, {
41
55
  size: "medium"
@@ -44,104 +58,104 @@ describe('<Text />', function () {
44
58
  }, "Live the xlarge mission"), /*#__PURE__*/React.createElement(Text.Medium, {
45
59
  size: "xxxlarge"
46
60
  }, "Live the xxxlarge mission"))),
47
- container = _render4.container;
61
+ container = _render5.container;
48
62
 
49
63
  expect(container).toMatchSnapshot();
50
64
  });
51
65
  it('should match snapshot with inverted Text', function () {
52
- var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
66
+ var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
53
67
  inverted: true
54
68
  }, "Live the mission"))),
55
- container = _render5.container;
69
+ container = _render6.container;
56
70
 
57
71
  expect(container).toMatchSnapshot();
58
72
  });
59
73
  it('should match snapshot with truncated lines Text', function () {
60
- var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
74
+ var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
61
75
  numberOfLines: 1
62
76
  }, "Live the mission", /*#__PURE__*/React.createElement("br", null), "even in one line"))),
63
- container = _render6.container;
77
+ container = _render7.container;
64
78
 
65
79
  expect(container).toMatchSnapshot();
66
80
  });
67
81
  it('should match snapshot with border prop system', function () {
68
- var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
82
+ var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
69
83
  border: "small",
70
84
  bRadius: "small"
71
85
  }, "Live the mission"))),
72
- container = _render7.container;
86
+ container = _render8.container;
73
87
 
74
88
  expect(container).toMatchSnapshot();
75
89
  });
76
90
  it('should match snapshot with background color prop system', function () {
77
- var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
91
+ var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
78
92
  backgroundColor: "vibin"
79
93
  }, "Live the mission"))),
80
- container = _render8.container;
94
+ container = _render9.container;
81
95
 
82
96
  expect(container).toMatchSnapshot();
83
97
  });
84
98
  it('should match snapshot with elevation prop system', function () {
85
- var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
99
+ var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
86
100
  elevation: "medium"
87
101
  }, "Live the mission"))),
88
- container = _render9.container;
102
+ container = _render10.container;
89
103
 
90
104
  expect(container).toMatchSnapshot();
91
105
  });
92
106
  it('should match snapshot with spacing prop system', function () {
93
- var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
107
+ var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
94
108
  m: "medium",
95
109
  paddingVertical: "large",
96
110
  paddingHorizontal: "small"
97
111
  }, "Live the mission"))),
98
- container = _render10.container;
112
+ container = _render11.container;
99
113
 
100
114
  expect(container).toMatchSnapshot();
101
115
  });
102
116
  it('should match snapshot with typography prop system', function () {
103
- var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
117
+ var _render12 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
104
118
  color: "text.primary",
105
119
  fontSize: "small",
106
120
  fontWeight: "medium",
107
121
  lineHeight: "small"
108
122
  }, "Live the mission"))),
109
- container = _render11.container;
123
+ container = _render12.container;
110
124
 
111
125
  expect(container).toMatchSnapshot();
112
126
  });
113
127
  it('should match snapshot with display prop system', function () {
114
- var _render12 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
128
+ var _render13 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
115
129
  display: "inline-flex"
116
130
  }, "Live the mission"))),
117
- container = _render12.container;
131
+ container = _render13.container;
118
132
 
119
133
  expect(container).toMatchSnapshot();
120
134
  });
121
135
  it('should match snapshot with position prop system', function () {
122
- var _render13 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
136
+ var _render14 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
123
137
  position: "fixed",
124
138
  top: "small",
125
139
  left: "small"
126
140
  }, "Live the mission"))),
127
- container = _render13.container;
141
+ container = _render14.container;
128
142
 
129
143
  expect(container).toMatchSnapshot();
130
144
  });
131
145
  it('should match snapshot with flexes prop system', function () {
132
- var _render14 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
146
+ var _render15 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
133
147
  display: "flex",
134
148
  flexGrow: 1
135
149
  }, "Live the mission"))),
136
- container = _render14.container;
150
+ container = _render15.container;
137
151
 
138
152
  expect(container).toMatchSnapshot();
139
153
  });
140
154
  it('should match snapshot with overflows prop system', function () {
141
- var _render15 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
155
+ var _render16 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
142
156
  overflow: "scroll"
143
157
  }, "Live the mission"))),
144
- container = _render15.container;
158
+ container = _render16.container;
145
159
 
146
160
  expect(container).toMatchSnapshot();
147
161
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.70.0",
3
+ "version": "7.70.2",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "sideEffects": false,
@@ -29,7 +29,7 @@
29
29
  "@gympass/yoga-helpers": "^1.0.3",
30
30
  "@gympass/yoga-icons": "^1.9.1",
31
31
  "@gympass/yoga-illustrations": "^0.5.1",
32
- "@gympass/yoga-system": "^0.10.3",
32
+ "@gympass/yoga-system": "^0.11.0",
33
33
  "@gympass/yoga-tokens": "^3.1.5",
34
34
  "@ptomasroos/react-native-multi-slider": "^1.0.0",
35
35
  "@radix-ui/react-dropdown-menu": "^2.0.1",
@@ -53,7 +53,7 @@
53
53
  "react": ">=16",
54
54
  "styled-components": "^4.4.0"
55
55
  },
56
- "gitHead": "d89f7691d7465a308a6fd5192ee5544f0d738942",
56
+ "gitHead": "3fd071545c51cdd16c351f4b680ce495191e61d2",
57
57
  "module": "./esm",
58
58
  "private": false,
59
59
  "react-native": "./cjs/index.native.js"