@gympass/yoga 7.112.0 → 7.113.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/Dialog/web/Content.js +2 -11
- package/cjs/Dialog/web/Header.js +2 -12
- package/cjs/Dropdown/Dropdown.theme.js +1 -1
- package/cjs/Dropdown/native/Dropdown.js +1 -1
- package/cjs/Dropdown/native/Options.android.js +2 -2
- package/cjs/Theme/theme/v3theme.js +33 -0
- package/esm/Dialog/web/Content.js +2 -11
- package/esm/Dialog/web/Header.js +2 -12
- package/esm/Dropdown/Dropdown.theme.js +1 -1
- package/esm/Dropdown/native/Dropdown.js +1 -1
- package/esm/Dropdown/native/Options.android.js +2 -2
- package/esm/Theme/theme/v3theme.js +33 -0
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -104,7 +104,7 @@ const Selector = import_styled_components.default.View`
|
|
|
104
104
|
${selected ? `border-color: ${dropdown.selected.selector.border.color};` : ""};
|
|
105
105
|
`}
|
|
106
106
|
`;
|
|
107
|
-
const Label = (0, import_styled_components.default)(import_Text.default)`
|
|
107
|
+
const Label = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
108
108
|
${({
|
|
109
109
|
disabled,
|
|
110
110
|
selected,
|
|
@@ -57,7 +57,7 @@ const Option = (0, import_styled_components.default)(import_List.default.Item)`
|
|
|
57
57
|
background-color: ${isSelected ? `${dropdown.hover.option.backgroundColor}` : "transparent"};
|
|
58
58
|
`}
|
|
59
59
|
`;
|
|
60
|
-
const OptionText = import_styled_components.default.
|
|
60
|
+
const OptionText = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
61
61
|
${({
|
|
62
62
|
isSelected,
|
|
63
63
|
theme: {
|
|
@@ -85,7 +85,7 @@ const Options = ({ options, selectedOption, onSelect }) => /* @__PURE__ */ (0, i
|
|
|
85
85
|
OptionText,
|
|
86
86
|
{
|
|
87
87
|
isSelected: selectedOption && selectedOption.value === item.value,
|
|
88
|
-
|
|
88
|
+
bold: selectedOption && selectedOption.value === item.value,
|
|
89
89
|
children: item.label
|
|
90
90
|
}
|
|
91
91
|
)
|
|
@@ -261,6 +261,39 @@ const v3theme = (0, import_themeGenerator.default)((tokens) => ({
|
|
|
261
261
|
weight: tokens.fontWeights.medium
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
+
},
|
|
265
|
+
dropdown: {
|
|
266
|
+
input: {
|
|
267
|
+
font: {
|
|
268
|
+
size: tokens.fontSizes.small,
|
|
269
|
+
lineHeight: tokens.lineHeights.small
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
option: {
|
|
273
|
+
font: {
|
|
274
|
+
size: tokens.fontSizes.small,
|
|
275
|
+
lineHeight: tokens.lineHeights.small,
|
|
276
|
+
weight: tokens.fontWeights.medium
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
backdrop: {
|
|
280
|
+
content: {
|
|
281
|
+
title: {
|
|
282
|
+
font: {
|
|
283
|
+
weight: tokens.fontWeights.bold,
|
|
284
|
+
size: tokens.fontSizes.medium
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
selected: {
|
|
290
|
+
option: {
|
|
291
|
+
font: {
|
|
292
|
+
weight: tokens.fontWeights.bold,
|
|
293
|
+
size: tokens.fontSizes.small
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
264
297
|
}
|
|
265
298
|
}
|
|
266
299
|
}));
|
|
@@ -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 {
|
|
@@ -24,7 +24,7 @@ const Option = styled(List.Item)`
|
|
|
24
24
|
background-color: ${isSelected ? `${dropdown.hover.option.backgroundColor}` : "transparent"};
|
|
25
25
|
`}
|
|
26
26
|
`;
|
|
27
|
-
const OptionText = styled.
|
|
27
|
+
const OptionText = styled(Text.Body2)`
|
|
28
28
|
${({
|
|
29
29
|
isSelected,
|
|
30
30
|
theme: {
|
|
@@ -52,7 +52,7 @@ const Options = ({ options, selectedOption, onSelect }) => /* @__PURE__ */ jsx(
|
|
|
52
52
|
OptionText,
|
|
53
53
|
{
|
|
54
54
|
isSelected: selectedOption && selectedOption.value === item.value,
|
|
55
|
-
|
|
55
|
+
bold: selectedOption && selectedOption.value === item.value,
|
|
56
56
|
children: item.label
|
|
57
57
|
}
|
|
58
58
|
)
|
|
@@ -228,6 +228,39 @@ const v3theme = createTheme((tokens) => ({
|
|
|
228
228
|
weight: tokens.fontWeights.medium
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
+
},
|
|
232
|
+
dropdown: {
|
|
233
|
+
input: {
|
|
234
|
+
font: {
|
|
235
|
+
size: tokens.fontSizes.small,
|
|
236
|
+
lineHeight: tokens.lineHeights.small
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
option: {
|
|
240
|
+
font: {
|
|
241
|
+
size: tokens.fontSizes.small,
|
|
242
|
+
lineHeight: tokens.lineHeights.small,
|
|
243
|
+
weight: tokens.fontWeights.medium
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
backdrop: {
|
|
247
|
+
content: {
|
|
248
|
+
title: {
|
|
249
|
+
font: {
|
|
250
|
+
weight: tokens.fontWeights.bold,
|
|
251
|
+
size: tokens.fontSizes.medium
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
selected: {
|
|
257
|
+
option: {
|
|
258
|
+
font: {
|
|
259
|
+
weight: tokens.fontWeights.bold,
|
|
260
|
+
size: tokens.fontSizes.small
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
231
264
|
}
|
|
232
265
|
}
|
|
233
266
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.113.1",
|
|
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": "930e83248e5569a6815e0b2859789413b2eed4fe",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|