@gympass/yoga 7.113.0 → 7.113.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.
|
@@ -71,7 +71,7 @@ var import_Card = __toESM(require("../Card"));
|
|
|
71
71
|
var import_Text = __toESM(require("../../../Text"));
|
|
72
72
|
var import_Box = __toESM(require("../../../Box"));
|
|
73
73
|
var import_Button = __toESM(require("../../../Button"));
|
|
74
|
-
const { spacing, radii,
|
|
74
|
+
const { spacing, radii, colors, borders } = import_themeReader.default;
|
|
75
75
|
const Event = (0, import_styled_components.default)(import_Card.default).attrs({ hasShadow: false })`
|
|
76
76
|
flex-direction: row;
|
|
77
77
|
height: 104px;
|
|
@@ -110,15 +110,14 @@ const Top = (0, import_styled_components.default)(import_Box.default)`
|
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: ${spacing.small}px;
|
|
112
112
|
`;
|
|
113
|
-
const Name = (0, import_styled_components.default)(import_Text.default.
|
|
113
|
+
const Name = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
114
114
|
margin-bottom: ${spacing.xxxsmall}px;
|
|
115
|
-
line-height: ${lineHeights.small}px;
|
|
116
115
|
`;
|
|
117
|
-
const Place = (0, import_styled_components.default)(import_Text.default.
|
|
116
|
+
const Place = (0, import_styled_components.default)(import_Text.default.Caption)`
|
|
118
117
|
width: 180px;
|
|
119
118
|
margin-bottom: ${spacing.xsmall}px;
|
|
120
119
|
`;
|
|
121
|
-
const Day = (0, import_styled_components.default)(import_Text.default.H5)`
|
|
120
|
+
const Day = (0, import_styled_components.default)(import_Text.default.H5).attrs({ bold: true })`
|
|
122
121
|
margin-top: ${spacing.xxxsmall}px;
|
|
123
122
|
margin-bottom: ${spacing.xxxsmall}px;
|
|
124
123
|
`;
|
|
@@ -155,9 +154,9 @@ const SmallCard = ({
|
|
|
155
154
|
borderRadius: "small",
|
|
156
155
|
bgColor: getIndicatorColor(active, Boolean(event))
|
|
157
156
|
}
|
|
158
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.
|
|
157
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Caption, { variant: active ? "white" : "deep", children: month }) }),
|
|
159
158
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Day, { variant: active ? "white" : "secondary", children: day }),
|
|
160
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Caption, { variant: active ? "white" : "deep", children: String(dayOfWeek).toUpperCase() })
|
|
161
160
|
] });
|
|
162
161
|
const FullCard = (0, import_styled_components.withTheme)(
|
|
163
162
|
({
|
|
@@ -176,9 +175,9 @@ const FullCard = (0, import_styled_components.withTheme)(
|
|
|
176
175
|
}
|
|
177
176
|
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
178
177
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DateInfo, { bg: "primary", children: [
|
|
179
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Top, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.
|
|
178
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Top, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Caption, { inverted: true, children: month }) }),
|
|
180
179
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Day, { inverted: true, children: day }),
|
|
181
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.
|
|
180
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Caption, { inverted: true, children: String(dayOfWeek).toUpperCase() })
|
|
182
181
|
] }),
|
|
183
182
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EventInfo, { p: "small", pl: "xsmall", children: [
|
|
184
183
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Name, { numberOfLines: 1, size: "small", children: event.name }),
|
|
@@ -186,7 +185,7 @@ const FullCard = (0, import_styled_components.withTheme)(
|
|
|
186
185
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Row, { children: [
|
|
187
186
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EventTime, { children: [
|
|
188
187
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga_icons.Time, { fill: icon.fill, style: { marginRight: 5 } }),
|
|
189
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Caption, { children: event.time })
|
|
190
189
|
] }),
|
|
191
190
|
!!link && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonLink, { onPress: onLinkPress, small: true, secondary: true, children: link })
|
|
192
191
|
] })
|
|
@@ -47,16 +47,7 @@ __export(Content_exports, {
|
|
|
47
47
|
module.exports = __toCommonJS(Content_exports);
|
|
48
48
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
49
|
var import_react = __toESM(require("react"));
|
|
50
|
-
var
|
|
51
|
-
const Content = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
-
import_Box.default,
|
|
53
|
-
__spreadValues({
|
|
54
|
-
ta: "center",
|
|
55
|
-
color: "text.secondary",
|
|
56
|
-
fw: "regular",
|
|
57
|
-
fs: "medium",
|
|
58
|
-
mb: "xlarge"
|
|
59
|
-
}, props)
|
|
60
|
-
);
|
|
50
|
+
var import_Text = __toESM(require("../../Text"));
|
|
51
|
+
const Content = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body1, __spreadValues({ ta: "center", mb: "xlarge" }, props));
|
|
61
52
|
Content.displayName = "Dialog.Content";
|
|
62
53
|
var Content_default = Content;
|
package/cjs/Dialog/web/Header.js
CHANGED
|
@@ -47,17 +47,7 @@ __export(Header_exports, {
|
|
|
47
47
|
module.exports = __toCommonJS(Header_exports);
|
|
48
48
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
49
|
var import_react = __toESM(require("react"));
|
|
50
|
-
var
|
|
51
|
-
const Header = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
-
import_Box.default,
|
|
53
|
-
__spreadValues({
|
|
54
|
-
as: "header",
|
|
55
|
-
ta: "center",
|
|
56
|
-
color: "text.primary",
|
|
57
|
-
fw: "medium",
|
|
58
|
-
fs: "xlarge",
|
|
59
|
-
mb: "large"
|
|
60
|
-
}, props)
|
|
61
|
-
);
|
|
50
|
+
var import_Text = __toESM(require("../../Text"));
|
|
51
|
+
const Header = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.H4, __spreadValues({ bold: true, as: "header", ta: "center", mb: "large" }, props));
|
|
62
52
|
Header.displayName = "Dialog.Header";
|
|
63
53
|
var Header_default = Header;
|
|
@@ -40,7 +40,7 @@ import Card from "../Card";
|
|
|
40
40
|
import Text from "../../../Text";
|
|
41
41
|
import Box from "../../../Box";
|
|
42
42
|
import Button from "../../../Button";
|
|
43
|
-
const { spacing, radii,
|
|
43
|
+
const { spacing, radii, colors, borders } = theme;
|
|
44
44
|
const Event = styled(Card).attrs({ hasShadow: false })`
|
|
45
45
|
flex-direction: row;
|
|
46
46
|
height: 104px;
|
|
@@ -79,15 +79,14 @@ const Top = styled(Box)`
|
|
|
79
79
|
align-items: center;
|
|
80
80
|
height: ${spacing.small}px;
|
|
81
81
|
`;
|
|
82
|
-
const Name = styled(Text.
|
|
82
|
+
const Name = styled(Text.Body2)`
|
|
83
83
|
margin-bottom: ${spacing.xxxsmall}px;
|
|
84
|
-
line-height: ${lineHeights.small}px;
|
|
85
84
|
`;
|
|
86
|
-
const Place = styled(Text.
|
|
85
|
+
const Place = styled(Text.Caption)`
|
|
87
86
|
width: 180px;
|
|
88
87
|
margin-bottom: ${spacing.xsmall}px;
|
|
89
88
|
`;
|
|
90
|
-
const Day = styled(Text.H5)`
|
|
89
|
+
const Day = styled(Text.H5).attrs({ bold: true })`
|
|
91
90
|
margin-top: ${spacing.xxxsmall}px;
|
|
92
91
|
margin-bottom: ${spacing.xxxsmall}px;
|
|
93
92
|
`;
|
|
@@ -124,9 +123,9 @@ const SmallCard = ({
|
|
|
124
123
|
borderRadius: "small",
|
|
125
124
|
bgColor: getIndicatorColor(active, Boolean(event))
|
|
126
125
|
}
|
|
127
|
-
) : /* @__PURE__ */ jsx(Text.
|
|
126
|
+
) : /* @__PURE__ */ jsx(Text.Caption, { variant: active ? "white" : "deep", children: month }) }),
|
|
128
127
|
/* @__PURE__ */ jsx(Day, { variant: active ? "white" : "secondary", children: day }),
|
|
129
|
-
/* @__PURE__ */ jsx(Text.
|
|
128
|
+
/* @__PURE__ */ jsx(Text.Caption, { variant: active ? "white" : "deep", children: String(dayOfWeek).toUpperCase() })
|
|
130
129
|
] });
|
|
131
130
|
const FullCard = withTheme(
|
|
132
131
|
({
|
|
@@ -145,9 +144,9 @@ const FullCard = withTheme(
|
|
|
145
144
|
}
|
|
146
145
|
}) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
147
146
|
/* @__PURE__ */ jsxs(DateInfo, { bg: "primary", children: [
|
|
148
|
-
/* @__PURE__ */ jsx(Top, { children: /* @__PURE__ */ jsx(Text.
|
|
147
|
+
/* @__PURE__ */ jsx(Top, { children: /* @__PURE__ */ jsx(Text.Caption, { inverted: true, children: month }) }),
|
|
149
148
|
/* @__PURE__ */ jsx(Day, { inverted: true, children: day }),
|
|
150
|
-
/* @__PURE__ */ jsx(Text.
|
|
149
|
+
/* @__PURE__ */ jsx(Text.Caption, { inverted: true, children: String(dayOfWeek).toUpperCase() })
|
|
151
150
|
] }),
|
|
152
151
|
/* @__PURE__ */ jsxs(EventInfo, { p: "small", pl: "xsmall", children: [
|
|
153
152
|
/* @__PURE__ */ jsx(Name, { numberOfLines: 1, size: "small", children: event.name }),
|
|
@@ -155,7 +154,7 @@ const FullCard = withTheme(
|
|
|
155
154
|
/* @__PURE__ */ jsxs(Row, { children: [
|
|
156
155
|
/* @__PURE__ */ jsxs(EventTime, { children: [
|
|
157
156
|
/* @__PURE__ */ jsx(Time, { fill: icon.fill, style: { marginRight: 5 } }),
|
|
158
|
-
/* @__PURE__ */ jsx(Text.
|
|
157
|
+
/* @__PURE__ */ jsx(Text.Caption, { children: event.time })
|
|
159
158
|
] }),
|
|
160
159
|
!!link && /* @__PURE__ */ jsx(ButtonLink, { onPress: onLinkPress, small: true, secondary: true, children: link })
|
|
161
160
|
] })
|
|
@@ -16,17 +16,8 @@ var __spreadValues = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
import React from "react";
|
|
19
|
-
import
|
|
20
|
-
const Content = (props) => /* @__PURE__ */ jsx(
|
|
21
|
-
Box,
|
|
22
|
-
__spreadValues({
|
|
23
|
-
ta: "center",
|
|
24
|
-
color: "text.secondary",
|
|
25
|
-
fw: "regular",
|
|
26
|
-
fs: "medium",
|
|
27
|
-
mb: "xlarge"
|
|
28
|
-
}, props)
|
|
29
|
-
);
|
|
19
|
+
import Text from "../../Text";
|
|
20
|
+
const Content = (props) => /* @__PURE__ */ jsx(Text.Body1, __spreadValues({ ta: "center", mb: "xlarge" }, props));
|
|
30
21
|
Content.displayName = "Dialog.Content";
|
|
31
22
|
var Content_default = Content;
|
|
32
23
|
export {
|
package/esm/Dialog/web/Header.js
CHANGED
|
@@ -16,18 +16,8 @@ var __spreadValues = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
import React from "react";
|
|
19
|
-
import
|
|
20
|
-
const Header = (props) => /* @__PURE__ */ jsx(
|
|
21
|
-
Box,
|
|
22
|
-
__spreadValues({
|
|
23
|
-
as: "header",
|
|
24
|
-
ta: "center",
|
|
25
|
-
color: "text.primary",
|
|
26
|
-
fw: "medium",
|
|
27
|
-
fs: "xlarge",
|
|
28
|
-
mb: "large"
|
|
29
|
-
}, props)
|
|
30
|
-
);
|
|
19
|
+
import Text from "../../Text";
|
|
20
|
+
const Header = (props) => /* @__PURE__ */ jsx(Text.H4, __spreadValues({ bold: true, as: "header", ta: "center", mb: "large" }, props));
|
|
31
21
|
Header.displayName = "Dialog.Header";
|
|
32
22
|
var Header_default = Header;
|
|
33
23
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.113.
|
|
3
|
+
"version": "7.113.2",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-native": "0.72.3",
|
|
58
58
|
"styled-components": "^4.4.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "66091324d6eaf72a82b372186981b081d009f51d",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|