@gympass/yoga 7.37.2 → 7.39.1
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/AutoComplete/AutoComplete.theme.js +1 -1
- package/cjs/AutoComplete/web/AutoComplete.js +1 -1
- package/cjs/Avatar/native/Avatar.js +1 -1
- package/cjs/Avatar/native/Avatar.test.js +1 -1
- package/cjs/Avatar/web/Avatar.js +1 -1
- package/cjs/Avatar/web/AvatarCircle.js +1 -1
- package/cjs/Banner/native/Banner.test.js +1 -1
- package/cjs/Banner/web/Banner.js +1 -1
- package/cjs/Box/native/Box.test.js +1 -1
- package/cjs/Button/native/Button.test.js +1 -1
- package/cjs/Button/web/Button.js +1 -1
- package/cjs/Button/web/Icon.js +1 -1
- package/cjs/Card/Card.native.theme.js +9 -7
- package/cjs/Card/Card.theme.js +1 -1
- package/cjs/Card/Card.web.theme.js +8 -6
- package/cjs/Card/native/Card/Card.test.js +1 -1
- package/cjs/Card/native/EventCard/EventCard.test.js +1 -1
- package/cjs/Card/native/GymCard/CheckIn/CheckIn.test.js +1 -1
- package/cjs/Card/native/PlanCard/Actions.js +1 -1
- package/cjs/Card/native/PlanCard/Content.js +1 -1
- package/cjs/Card/native/PlanCard/PlanCard.js +1 -1
- package/cjs/Card/native/PlanCard/PlanCard.test.js +1 -1
- package/cjs/Card/web/Card/Card.js +1 -1
- package/cjs/Card/web/PlanCard/Actions.js +1 -1
- package/cjs/Card/web/PlanCard/Content.js +28 -32
- package/cjs/Card/web/PlanCard/PlanCard.js +1 -1
- package/cjs/Checkbox/native/Checkbox.test.js +1 -1
- package/cjs/Checkbox/native/Switch.test.js +1 -1
- package/cjs/Checkbox/web/Checkbox.js +1 -1
- package/cjs/Checkbox/web/Checkbox.test.js +1 -1
- package/cjs/Checkbox/web/Switch.js +1 -1
- package/cjs/Chips/native/Chips.test.js +1 -1
- package/cjs/Chips/web/Chips.js +1 -1
- package/cjs/Dialog/web/Content.js +1 -1
- package/cjs/Dialog/web/Dialog.js +1 -1
- package/cjs/Dialog/web/Footer.js +1 -1
- package/cjs/Dialog/web/Header.js +1 -1
- package/cjs/Divider/native/Divider.test.js +1 -1
- package/cjs/Dropdown/native/Backdrop.test.js +1 -1
- package/cjs/Dropdown/native/Dropdown.test.js +1 -1
- package/cjs/Dropdown/web/Dropdown.js +1 -1
- package/cjs/Dropdown/web/Dropdown.test.js +1 -1
- package/cjs/Feedback/web/Feedback.js +1 -1
- package/cjs/Heading/web/BackButton.js +1 -1
- package/cjs/Heading/web/RightButton.js +2 -2
- package/cjs/Heading/web/Title.js +1 -1
- package/cjs/Icon/Icon.js +1 -1
- package/cjs/Icon/native/Icon.test.js +1 -1
- package/cjs/Input/native/Email.test.js +1 -1
- package/cjs/Input/native/Input.test.js +1 -1
- package/cjs/Input/native/Number.test.js +1 -1
- package/cjs/Input/native/Password.test.js +1 -1
- package/cjs/Input/native/Tel.test.js +1 -1
- package/cjs/Input/web/Email.js +1 -1
- package/cjs/Input/web/Input.js +1 -1
- package/cjs/Input/web/Legend.js +1 -1
- package/cjs/Input/web/Number.js +1 -1
- package/cjs/Input/web/Password.js +1 -1
- package/cjs/Input/web/Tel.js +1 -1
- package/cjs/List/native/List.test.js +1 -1
- package/cjs/List/web/LinkItem.js +1 -1
- package/cjs/List/web/List.js +1 -1
- package/cjs/List/web/ListItem.js +1 -1
- package/cjs/Progress/native/Progress.test.js +1 -1
- package/cjs/Progress/web/Progress.js +1 -1
- package/cjs/RadioGroup/native/Button/RadioButton.test.js +1 -1
- package/cjs/RadioGroup/native/Radio/Radio.test.js +1 -1
- package/cjs/RadioGroup/native/RadioGroup.js +1 -1
- package/cjs/RadioGroup/native/RadioGroup.test.js +1 -1
- package/cjs/RadioGroup/web/Button/RadioButton.js +1 -1
- package/cjs/RadioGroup/web/Radio/Radio.js +1 -1
- package/cjs/RadioGroup/web/RadioGroup.js +1 -1
- package/cjs/Rating/native/Rating.test.js +1 -1
- package/cjs/Rating/web/Rating.js +1 -1
- package/cjs/Result/native/Result.test.js +1 -1
- package/cjs/Slider/native/Slider.test.js +1 -1
- package/cjs/Slider/web/Marker.js +1 -1
- package/cjs/Slider/web/Slider.js +1 -1
- package/cjs/Slider/web/Tooltip.js +1 -1
- package/cjs/Snackbar/native/Snackbar.test.js +1 -1
- package/cjs/Snackbar/web/Snackbar.js +1 -1
- package/cjs/Snackbar/web/Snackbar.test.js +6 -4
- package/cjs/Stepper/native/Stepper.test.js +1 -1
- package/cjs/Tag/native/Tag.test.js +1 -1
- package/cjs/Tag/web/Informative.js +1 -1
- package/cjs/Text/native/Text.test.js +1 -1
- package/cjs/TextArea/native/TextArea.test.js +1 -1
- package/cjs/TextArea/web/TextArea.js +1 -1
- package/cjs/Theme/Provider/Provider.js +1 -1
- package/cjs/Theme/helpers/themeReader/native/native.test.js +1 -1
- package/cjs/Theme/theme/theme.js +1 -1
- package/esm/AutoComplete/AutoComplete.theme.js +1 -1
- package/esm/AutoComplete/web/AutoComplete.js +1 -1
- package/esm/Avatar/native/Avatar.js +1 -1
- package/esm/Avatar/native/Avatar.test.js +10 -10
- package/esm/Avatar/native/AvatarCircle.js +1 -1
- package/esm/Avatar/web/Avatar.js +1 -1
- package/esm/Avatar/web/AvatarCircle.js +1 -1
- package/esm/Banner/native/Banner.js +1 -1
- package/esm/Banner/native/Banner.test.js +10 -10
- package/esm/Banner/web/Banner.js +1 -1
- package/esm/Box/native/Box.test.js +2 -2
- package/esm/Button/native/Button.js +1 -1
- package/esm/Button/native/Button.test.js +91 -91
- package/esm/Button/native/Icon.js +1 -1
- package/esm/Button/native/Link.js +1 -1
- package/esm/Button/native/Text.js +1 -1
- package/esm/Button/native/withTouchable.js +1 -1
- package/esm/Button/web/Button.js +1 -1
- package/esm/Button/web/Icon.js +1 -1
- package/esm/Card/Card.native.theme.js +9 -7
- package/esm/Card/Card.theme.js +1 -1
- package/esm/Card/Card.web.theme.js +8 -6
- package/esm/Card/native/Card/Card.js +1 -1
- package/esm/Card/native/Card/Card.test.js +2 -2
- package/esm/Card/native/EventCard/EventCard.js +1 -1
- package/esm/Card/native/EventCard/EventCard.test.js +11 -11
- package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +5 -5
- package/esm/Card/native/PlanCard/Actions.js +1 -1
- package/esm/Card/native/PlanCard/Content.js +16 -23
- package/esm/Card/native/PlanCard/PlanCard.js +1 -1
- package/esm/Card/native/PlanCard/PlanCard.test.js +6 -6
- package/esm/Card/web/Card/Card.js +1 -1
- package/esm/Card/web/PlanCard/Actions.js +1 -1
- package/esm/Card/web/PlanCard/Content.js +25 -30
- package/esm/Card/web/PlanCard/PlanCard.js +1 -1
- package/esm/Checkbox/native/Checkbox.js +1 -1
- package/esm/Checkbox/native/Checkbox.test.js +24 -24
- package/esm/Checkbox/native/Switch.test.js +9 -9
- package/esm/Checkbox/web/Checkbox.js +1 -1
- package/esm/Checkbox/web/Checkbox.test.js +1 -1
- package/esm/Checkbox/web/Switch.js +1 -1
- package/esm/Chips/native/Chips.js +1 -1
- package/esm/Chips/native/Chips.test.js +19 -10
- package/esm/Chips/web/Chips.js +1 -1
- package/esm/Dialog/web/Content.js +1 -1
- package/esm/Dialog/web/Dialog.js +1 -1
- package/esm/Dialog/web/Footer.js +1 -1
- package/esm/Dialog/web/Header.js +1 -1
- package/esm/Divider/native/Divider.test.js +4 -4
- package/esm/Dropdown/native/Backdrop.js +1 -1
- package/esm/Dropdown/native/Backdrop.test.js +4 -4
- package/esm/Dropdown/native/Dropdown.js +1 -1
- package/esm/Dropdown/native/Dropdown.test.js +11 -11
- package/esm/Dropdown/native/Options.ios.js +1 -1
- package/esm/Dropdown/web/Dropdown.js +1 -1
- package/esm/Dropdown/web/Dropdown.test.js +1 -1
- package/esm/Feedback/web/Feedback.js +1 -1
- package/esm/Heading/web/BackButton.js +1 -1
- package/esm/Heading/web/RightButton.js +2 -2
- package/esm/Heading/web/Title.js +1 -1
- package/esm/Icon/Icon.js +1 -1
- package/esm/Icon/native/Icon.test.js +6 -6
- package/esm/Input/native/Email.js +1 -1
- package/esm/Input/native/Email.test.js +2 -2
- package/esm/Input/native/Input.js +1 -1
- package/esm/Input/native/Input.test.js +23 -23
- package/esm/Input/native/Number.js +1 -1
- package/esm/Input/native/Number.test.js +2 -2
- package/esm/Input/native/Password.js +1 -1
- package/esm/Input/native/Password.test.js +14 -14
- package/esm/Input/native/Tel.js +1 -1
- package/esm/Input/native/Tel.test.js +2 -2
- package/esm/Input/web/Email.js +1 -1
- package/esm/Input/web/Input.js +1 -1
- package/esm/Input/web/Legend.js +1 -1
- package/esm/Input/web/Number.js +1 -1
- package/esm/Input/web/Password.js +1 -1
- package/esm/Input/web/Tel.js +1 -1
- package/esm/List/native/List.js +1 -1
- package/esm/List/native/List.test.js +8 -8
- package/esm/List/native/ListItem.js +1 -1
- package/esm/List/web/LinkItem.js +1 -1
- package/esm/List/web/List.js +1 -1
- package/esm/List/web/ListItem.js +1 -1
- package/esm/Progress/native/Progress.js +1 -1
- package/esm/Progress/native/Progress.test.js +18 -18
- package/esm/Progress/web/Progress.js +1 -1
- package/esm/RadioGroup/native/Button/RadioButton.js +1 -1
- package/esm/RadioGroup/native/Button/RadioButton.test.js +5 -3
- package/esm/RadioGroup/native/Radio/Radio.js +1 -1
- package/esm/RadioGroup/native/Radio/Radio.test.js +18 -8
- package/esm/RadioGroup/native/RadioGroup.js +1 -1
- package/esm/RadioGroup/native/RadioGroup.test.js +7 -5
- package/esm/RadioGroup/web/Button/RadioButton.js +1 -1
- package/esm/RadioGroup/web/Radio/Radio.js +1 -1
- package/esm/RadioGroup/web/RadioGroup.js +1 -1
- package/esm/Rating/native/Rating.js +1 -1
- package/esm/Rating/native/Rating.test.js +10 -10
- package/esm/Rating/web/Rating.js +1 -1
- package/esm/Result/native/Details.js +1 -1
- package/esm/Result/native/Result.test.js +6 -6
- package/esm/Result/native/Tags.js +1 -1
- package/esm/Result/native/TinyTextIcon.js +1 -1
- package/esm/Slider/native/Slider.js +1 -1
- package/esm/Slider/native/Slider.test.js +17 -10
- package/esm/Slider/web/Marker.js +1 -1
- package/esm/Slider/web/Slider.js +1 -1
- package/esm/Slider/web/Tooltip.js +1 -1
- package/esm/Snackbar/native/Snackbar.js +1 -1
- package/esm/Snackbar/native/Snackbar.test.js +13 -11
- package/esm/Snackbar/web/Snackbar.js +1 -1
- package/esm/Snackbar/web/Snackbar.test.js +6 -4
- package/esm/Stepper/native/Stepper.test.js +5 -3
- package/esm/Tag/native/Informative.js +1 -1
- package/esm/Tag/native/Tag.js +1 -1
- package/esm/Tag/native/Tag.test.js +14 -14
- package/esm/Tag/web/Informative.js +1 -1
- package/esm/Text/native/Text.test.js +30 -30
- package/esm/TextArea/native/TextArea.js +1 -1
- package/esm/TextArea/native/TextArea.test.js +2 -2
- package/esm/TextArea/web/TextArea.js +1 -1
- package/esm/Theme/Provider/Provider.js +1 -1
- package/esm/Theme/helpers/themeReader/native/native.test.js +5 -5
- package/esm/Theme/theme/theme.js +1 -1
- package/package.json +4 -4
|
@@ -6,9 +6,9 @@ describe('<Text />', function () {
|
|
|
6
6
|
describe('Snapshots', function () {
|
|
7
7
|
it('should match snapshot with Text', function () {
|
|
8
8
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.H1, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.H2, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.H3, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.H4, null, "Live the mission"), /*#__PURE__*/React.createElement(Text, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Small, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Tiny, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Regular, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Medium, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Bold, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Black, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.SectionTitle, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.SmallestException, null, "Live the mission"))),
|
|
9
|
-
|
|
9
|
+
toJSON = _render.toJSON;
|
|
10
10
|
|
|
11
|
-
expect(
|
|
11
|
+
expect(toJSON()).toMatchSnapshot();
|
|
12
12
|
});
|
|
13
13
|
it('should match snapshot with Text variant', function () {
|
|
14
14
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.H1, {
|
|
@@ -18,9 +18,9 @@ describe('<Text />', function () {
|
|
|
18
18
|
}, "Live the mission"), /*#__PURE__*/React.createElement(Text.H3, {
|
|
19
19
|
variant: "tertiary"
|
|
20
20
|
}, "Live the mission"))),
|
|
21
|
-
|
|
21
|
+
toJSON = _render2.toJSON;
|
|
22
22
|
|
|
23
|
-
expect(
|
|
23
|
+
expect(toJSON()).toMatchSnapshot();
|
|
24
24
|
});
|
|
25
25
|
it('should match snapshot with Text light', function () {
|
|
26
26
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.H1, {
|
|
@@ -30,9 +30,9 @@ describe('<Text />', function () {
|
|
|
30
30
|
}, "Live the mission"), /*#__PURE__*/React.createElement(Text.H3, {
|
|
31
31
|
light: true
|
|
32
32
|
}, "Live the mission"))),
|
|
33
|
-
|
|
33
|
+
toJSON = _render3.toJSON;
|
|
34
34
|
|
|
35
|
-
expect(
|
|
35
|
+
expect(toJSON()).toMatchSnapshot();
|
|
36
36
|
});
|
|
37
37
|
it('should match snapshot with Text size', function () {
|
|
38
38
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.Small, {
|
|
@@ -44,50 +44,50 @@ describe('<Text />', function () {
|
|
|
44
44
|
}, "Live the xlarge mission"), /*#__PURE__*/React.createElement(Text.Medium, {
|
|
45
45
|
size: "xxxlarge"
|
|
46
46
|
}, "Live the xxxlarge mission"))),
|
|
47
|
-
|
|
47
|
+
toJSON = _render4.toJSON;
|
|
48
48
|
|
|
49
|
-
expect(
|
|
49
|
+
expect(toJSON()).toMatchSnapshot();
|
|
50
50
|
});
|
|
51
51
|
it('should match snapshot with inverted Text', function () {
|
|
52
52
|
var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
53
53
|
inverted: true
|
|
54
54
|
}, "Live the mission"))),
|
|
55
|
-
|
|
55
|
+
toJSON = _render5.toJSON;
|
|
56
56
|
|
|
57
|
-
expect(
|
|
57
|
+
expect(toJSON()).toMatchSnapshot();
|
|
58
58
|
});
|
|
59
59
|
it('should match snapshot with truncated lines Text', function () {
|
|
60
60
|
var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
61
61
|
numberOfLines: 1
|
|
62
62
|
}, "Live the mission", /*#__PURE__*/React.createElement("br", null), "even in one line"))),
|
|
63
|
-
|
|
63
|
+
toJSON = _render6.toJSON;
|
|
64
64
|
|
|
65
|
-
expect(
|
|
65
|
+
expect(toJSON()).toMatchSnapshot();
|
|
66
66
|
});
|
|
67
67
|
it('should match snapshot with border prop system', function () {
|
|
68
68
|
var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
69
69
|
border: "small",
|
|
70
70
|
bRadius: "small"
|
|
71
71
|
}, "Live the mission"))),
|
|
72
|
-
|
|
72
|
+
toJSON = _render7.toJSON;
|
|
73
73
|
|
|
74
|
-
expect(
|
|
74
|
+
expect(toJSON()).toMatchSnapshot();
|
|
75
75
|
});
|
|
76
76
|
it('should match snapshot with background color prop system', function () {
|
|
77
77
|
var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
78
78
|
backgroundColor: "vibin"
|
|
79
79
|
}, "Live the mission"))),
|
|
80
|
-
|
|
80
|
+
toJSON = _render8.toJSON;
|
|
81
81
|
|
|
82
|
-
expect(
|
|
82
|
+
expect(toJSON()).toMatchSnapshot();
|
|
83
83
|
});
|
|
84
84
|
it('should match snapshot with elevation prop system', function () {
|
|
85
85
|
var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
86
86
|
elevation: "medium"
|
|
87
87
|
}, "Live the mission"))),
|
|
88
|
-
|
|
88
|
+
toJSON = _render9.toJSON;
|
|
89
89
|
|
|
90
|
-
expect(
|
|
90
|
+
expect(toJSON()).toMatchSnapshot();
|
|
91
91
|
});
|
|
92
92
|
it('should match snapshot with spacing prop system', function () {
|
|
93
93
|
var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -95,9 +95,9 @@ describe('<Text />', function () {
|
|
|
95
95
|
paddingVertical: "large",
|
|
96
96
|
paddingHorizontal: "small"
|
|
97
97
|
}, "Live the mission"))),
|
|
98
|
-
|
|
98
|
+
toJSON = _render10.toJSON;
|
|
99
99
|
|
|
100
|
-
expect(
|
|
100
|
+
expect(toJSON()).toMatchSnapshot();
|
|
101
101
|
});
|
|
102
102
|
it('should match snapshot with typography prop system', function () {
|
|
103
103
|
var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -106,17 +106,17 @@ describe('<Text />', function () {
|
|
|
106
106
|
fontWeight: "medium",
|
|
107
107
|
lineHeight: "small"
|
|
108
108
|
}, "Live the mission"))),
|
|
109
|
-
|
|
109
|
+
toJSON = _render11.toJSON;
|
|
110
110
|
|
|
111
|
-
expect(
|
|
111
|
+
expect(toJSON()).toMatchSnapshot();
|
|
112
112
|
});
|
|
113
113
|
it('should match snapshot with display prop system', function () {
|
|
114
114
|
var _render12 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
115
115
|
display: "flex"
|
|
116
116
|
}, "Live the mission"))),
|
|
117
|
-
|
|
117
|
+
toJSON = _render12.toJSON;
|
|
118
118
|
|
|
119
|
-
expect(
|
|
119
|
+
expect(toJSON()).toMatchSnapshot();
|
|
120
120
|
});
|
|
121
121
|
it('should match snapshot with position prop system', function () {
|
|
122
122
|
var _render13 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -124,26 +124,26 @@ describe('<Text />', function () {
|
|
|
124
124
|
top: "small",
|
|
125
125
|
left: "small"
|
|
126
126
|
}, "Live the mission"))),
|
|
127
|
-
|
|
127
|
+
toJSON = _render13.toJSON;
|
|
128
128
|
|
|
129
|
-
expect(
|
|
129
|
+
expect(toJSON()).toMatchSnapshot();
|
|
130
130
|
});
|
|
131
131
|
it('should match snapshot with flexes prop system', function () {
|
|
132
132
|
var _render14 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
133
133
|
display: "flex",
|
|
134
134
|
flexGrow: 1
|
|
135
135
|
}, "Live the mission"))),
|
|
136
|
-
|
|
136
|
+
toJSON = _render14.toJSON;
|
|
137
137
|
|
|
138
|
-
expect(
|
|
138
|
+
expect(toJSON()).toMatchSnapshot();
|
|
139
139
|
});
|
|
140
140
|
it('should match snapshot with overflows prop system', function () {
|
|
141
141
|
var _render15 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
|
|
142
142
|
overflow: "scroll"
|
|
143
143
|
}, "Live the mission"))),
|
|
144
|
-
|
|
144
|
+
toJSON = _render15.toJSON;
|
|
145
145
|
|
|
146
|
-
expect(
|
|
146
|
+
expect(toJSON()).toMatchSnapshot();
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
6
6
|
|
|
@@ -4,8 +4,8 @@ import { ThemeProvider, TextArea } from '../..';
|
|
|
4
4
|
describe('<TextArea />', function () {
|
|
5
5
|
it('should match snapshot', function () {
|
|
6
6
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(TextArea, null))),
|
|
7
|
-
|
|
7
|
+
toJSON = _render.toJSON;
|
|
8
8
|
|
|
9
|
-
expect(
|
|
9
|
+
expect(toJSON()).toMatchSnapshot();
|
|
10
10
|
});
|
|
11
11
|
});
|
|
@@ -2,7 +2,7 @@ var _excluded = ["disabled", "error", "full", "helper", "label", "maxLength", "c
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["locale", "theme"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
@@ -14,9 +14,9 @@ describe('themeReader - web specs', function () {
|
|
|
14
14
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Component, {
|
|
15
15
|
testID: "component"
|
|
16
16
|
}, "Teste"))),
|
|
17
|
-
|
|
17
|
+
toJSON = _render.toJSON;
|
|
18
18
|
|
|
19
|
-
expect(
|
|
19
|
+
expect(toJSON().props.style).toEqual([{
|
|
20
20
|
borderWidth: 1,
|
|
21
21
|
borderColor: 'black',
|
|
22
22
|
borderStyle: 'solid'
|
|
@@ -32,10 +32,10 @@ describe('themeReader - web specs', function () {
|
|
|
32
32
|
borders: false,
|
|
33
33
|
testID: "component"
|
|
34
34
|
}, "Teste"))),
|
|
35
|
-
|
|
35
|
+
toJSON = _render2.toJSON,
|
|
36
36
|
rerender = _render2.rerender;
|
|
37
37
|
|
|
38
|
-
expect(
|
|
38
|
+
expect(toJSON().props.style).toEqual([{
|
|
39
39
|
borderWidth: 0,
|
|
40
40
|
borderColor: 'black',
|
|
41
41
|
borderStyle: 'solid'
|
|
@@ -44,7 +44,7 @@ describe('themeReader - web specs', function () {
|
|
|
44
44
|
borders: true,
|
|
45
45
|
"data-testid": "component"
|
|
46
46
|
})));
|
|
47
|
-
expect(
|
|
47
|
+
expect(toJSON().props.style).toEqual([{
|
|
48
48
|
borderWidth: 1,
|
|
49
49
|
borderColor: 'black',
|
|
50
50
|
borderStyle: 'solid'
|
package/esm/Theme/theme/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
/* eslint-disable prefer-destructuring */
|
|
4
4
|
import { merge } from '@gympass/yoga-common';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.39.1",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-google-font-loader": "^1.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@testing-library/react": "^
|
|
43
|
-
"@testing-library/react-native": "^
|
|
42
|
+
"@testing-library/react": "^12.0.4",
|
|
43
|
+
"@testing-library/react-native": "^9.1.0",
|
|
44
44
|
"babel-plugin-inline-react-svg": "^1.1.1",
|
|
45
45
|
"styled-components": "^4.4.0"
|
|
46
46
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": ">=16",
|
|
50
50
|
"styled-components": "^4.4.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "84a01da02b7439263605f78f49aed277161a2c4c",
|
|
53
53
|
"module": "./esm",
|
|
54
54
|
"private": false,
|
|
55
55
|
"react-native": "./cjs/index.native.js"
|