@gympass/yoga 7.114.7 → 7.114.8

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.
@@ -72,8 +72,9 @@ const StyledDivider = import_styled_components.default.hr`
72
72
  ${vertical ? "height: auto" : "width: 100%"};
73
73
  border-width: 0px;
74
74
  border-left-width: ${vertical ? borders.small : 0}px;
75
- border-bottom-width: ${vertical ? 0 : borders.small}px;
75
+ border-top-width: ${vertical ? 0 : borders.small}px;
76
76
  border-color: ${colors.text.disabled};
77
+ border-style: solid;
77
78
  `;
78
79
  }}
79
80
  `;
@@ -73,7 +73,7 @@ const StyledTag = (0, import_styled_components.default)(import_Tag.default)`
73
73
  border-radius: ${border.radius.tag}px;
74
74
  `}
75
75
  `;
76
- const StyledText = (0, import_styled_components.default)(import_Text.default)`
76
+ const StyledText = (0, import_styled_components.default)(import_Text.default.Body1)`
77
77
  ${({
78
78
  theme: {
79
79
  yoga: {
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(Menu_exports);
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var import_styled_components = __toESM(require("styled-components"));
36
36
  var import_yoga_icons = require("@gympass/yoga-icons");
37
- var import_yoga = require("@gympass/yoga");
37
+ var import_Text = __toESM(require("../../../Text"));
38
38
  var import_Icon = __toESM(require("../../../Icon"));
39
39
  const StyledMenu = import_styled_components.default.div`
40
40
  ${({
@@ -91,7 +91,7 @@ const StyledTextContainer = import_styled_components.default.div`
91
91
  overflow: hidden;
92
92
  `}
93
93
  `;
94
- const StyledTitle = (0, import_styled_components.default)(import_yoga.Text.H4)`
94
+ const StyledTitle = (0, import_styled_components.default)(import_Text.default.Display4)`
95
95
  ${({
96
96
  theme: {
97
97
  yoga: {
@@ -110,7 +110,7 @@ const StyledTitle = (0, import_styled_components.default)(import_yoga.Text.H4)`
110
110
  overflow: hidden;
111
111
  `}
112
112
  `;
113
- const StyledSubtitle = (0, import_styled_components.default)(import_yoga.Text.Small)`
113
+ const StyledSubtitle = (0, import_styled_components.default)(import_Text.default.Body2)`
114
114
  ${({
115
115
  theme: {
116
116
  yoga: {
@@ -60,6 +60,7 @@ module.exports = __toCommonJS(Switcher_exports);
60
60
  var import_jsx_runtime = require("react/jsx-runtime");
61
61
  var import_styled_components = __toESM(require("styled-components"));
62
62
  var import_yoga = require("@gympass/yoga");
63
+ var import_Text = __toESM(require("../../../Text"));
63
64
  var import_Actions = __toESM(require("./Actions"));
64
65
  var import_Box = __toESM(require("../../../Box"));
65
66
  const StyledSwitcher = (0, import_styled_components.default)(import_Box.default)`
@@ -93,7 +94,7 @@ const StyledTextContainer = import_styled_components.default.div`
93
94
  flex: 1;
94
95
  overflow: hidden;
95
96
  `;
96
- const StyledTitle = (0, import_styled_components.default)(import_yoga.Text.Small)`
97
+ const StyledTitle = (0, import_styled_components.default)(import_Text.default.Body2)`
97
98
  ${({
98
99
  theme: {
99
100
  yoga: {
@@ -110,6 +111,19 @@ const StyledTitle = (0, import_styled_components.default)(import_yoga.Text.Small
110
111
  overflow: hidden;
111
112
  `}
112
113
  `;
114
+ const StyledSubtitle = (0, import_styled_components.default)(import_Text.default.Tiny)`
115
+ ${({
116
+ theme: {
117
+ yoga: {
118
+ components: {
119
+ navigationmenu: { font }
120
+ }
121
+ }
122
+ }
123
+ }) => import_styled_components.css`
124
+ color: ${font.color.default};
125
+ `}
126
+ `;
113
127
  const Switcher = (_a) => {
114
128
  var _b = _a, {
115
129
  actions,
@@ -142,7 +156,7 @@ const Switcher = (_a) => {
142
156
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga.Skeleton, { type: "text", variant: "overline", width: "100%" })
143
157
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
144
158
  title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledTitle, { children: title }),
145
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga.Text.Tiny, { color: "deep", children: subtitle })
159
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSubtitle, { children: subtitle })
146
160
  ] }) }),
147
161
  hasActions && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Actions.default, __spreadValues({ actions }, actionsProps))
148
162
  ] });
@@ -41,8 +41,9 @@ const StyledDivider = styled.hr`
41
41
  ${vertical ? "height: auto" : "width: 100%"};
42
42
  border-width: 0px;
43
43
  border-left-width: ${vertical ? borders.small : 0}px;
44
- border-bottom-width: ${vertical ? 0 : borders.small}px;
44
+ border-top-width: ${vertical ? 0 : borders.small}px;
45
45
  border-color: ${colors.text.disabled};
46
+ border-style: solid;
46
47
  `;
47
48
  }}
48
49
  `;
@@ -37,7 +37,7 @@ const StyledTag = styled(Tag)`
37
37
  border-radius: ${border.radius.tag}px;
38
38
  `}
39
39
  `;
40
- const StyledText = styled(Text)`
40
+ const StyledText = styled(Text.Body1)`
41
41
  ${({
42
42
  theme: {
43
43
  yoga: {
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import styled, { css } from "styled-components";
3
3
  import { ChevronDown } from "@gympass/yoga-icons";
4
- import { Text } from "@gympass/yoga";
4
+ import Text from "../../../Text";
5
5
  import Icon from "../../../Icon";
6
6
  const StyledMenu = styled.div`
7
7
  ${({
@@ -58,7 +58,7 @@ const StyledTextContainer = styled.div`
58
58
  overflow: hidden;
59
59
  `}
60
60
  `;
61
- const StyledTitle = styled(Text.H4)`
61
+ const StyledTitle = styled(Text.Display4)`
62
62
  ${({
63
63
  theme: {
64
64
  yoga: {
@@ -77,7 +77,7 @@ const StyledTitle = styled(Text.H4)`
77
77
  overflow: hidden;
78
78
  `}
79
79
  `;
80
- const StyledSubtitle = styled(Text.Small)`
80
+ const StyledSubtitle = styled(Text.Body2)`
81
81
  ${({
82
82
  theme: {
83
83
  yoga: {
@@ -28,7 +28,8 @@ var __objRest = (source, exclude) => {
28
28
  };
29
29
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
30
30
  import styled, { css } from "styled-components";
31
- import { Text, Skeleton } from "@gympass/yoga";
31
+ import { Skeleton } from "@gympass/yoga";
32
+ import Text from "../../../Text";
32
33
  import Actions from "./Actions";
33
34
  import Box from "../../../Box";
34
35
  const StyledSwitcher = styled(Box)`
@@ -62,7 +63,7 @@ const StyledTextContainer = styled.div`
62
63
  flex: 1;
63
64
  overflow: hidden;
64
65
  `;
65
- const StyledTitle = styled(Text.Small)`
66
+ const StyledTitle = styled(Text.Body2)`
66
67
  ${({
67
68
  theme: {
68
69
  yoga: {
@@ -79,6 +80,19 @@ const StyledTitle = styled(Text.Small)`
79
80
  overflow: hidden;
80
81
  `}
81
82
  `;
83
+ const StyledSubtitle = styled(Text.Tiny)`
84
+ ${({
85
+ theme: {
86
+ yoga: {
87
+ components: {
88
+ navigationmenu: { font }
89
+ }
90
+ }
91
+ }
92
+ }) => css`
93
+ color: ${font.color.default};
94
+ `}
95
+ `;
82
96
  const Switcher = (_a) => {
83
97
  var _b = _a, {
84
98
  actions,
@@ -111,7 +125,7 @@ const Switcher = (_a) => {
111
125
  /* @__PURE__ */ jsx(Skeleton, { type: "text", variant: "overline", width: "100%" })
112
126
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
113
127
  title && /* @__PURE__ */ jsx(StyledTitle, { children: title }),
114
- subtitle && /* @__PURE__ */ jsx(Text.Tiny, { color: "deep", children: subtitle })
128
+ subtitle && /* @__PURE__ */ jsx(StyledSubtitle, { children: subtitle })
115
129
  ] }) }),
116
130
  hasActions && /* @__PURE__ */ jsx(Actions, __spreadValues({ actions }, actionsProps))
117
131
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.114.7",
3
+ "version": "7.114.8",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "types": "./typings/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "@gympass/yoga-helpers": "^1.0.4",
31
31
  "@gympass/yoga-icons": "^1.21.0",
32
32
  "@gympass/yoga-illustrations": "^0.5.2",
33
- "@gympass/yoga-system": "^0.11.1",
33
+ "@gympass/yoga-system": "^0.12.0",
34
34
  "@gympass/yoga-tokens": "^3.5.0",
35
35
  "@ptomasroos/react-native-multi-slider": "^2.1.1",
36
36
  "@radix-ui/react-dropdown-menu": "^2.0.1",
@@ -57,7 +57,7 @@
57
57
  "react-native": "0.72.3",
58
58
  "styled-components": "^4.4.0"
59
59
  },
60
- "gitHead": "3f79de70b5d468af507b099e77fd6b8944fc2e42",
60
+ "gitHead": "d3f2f169c2684aabae3565b6cc7ceb901825696f",
61
61
  "module": "./esm",
62
62
  "private": false,
63
63
  "react-native": "./cjs/index.native.js"
@@ -25,51 +25,7 @@ declare const StyledTag: styled_components.StyledComponent<{
25
25
  ellipsis: boolean;
26
26
  };
27
27
  }, any, {}, never>;
28
- declare const StyledText: styled_components.StyledComponent<{
29
- (props: any): JSX.Element;
30
- displayName: string;
31
- Display1: styled_components.StyledComponent<string, any, {}, never>;
32
- Display2: styled_components.StyledComponent<string, any, {}, never>;
33
- Display3: styled_components.StyledComponent<string, any, {}, never>;
34
- Display4: styled_components.StyledComponent<string, any, {}, never>;
35
- DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
36
- H1: styled_components.StyledComponent<string, any, {}, never>;
37
- H2: styled_components.StyledComponent<string, any, {}, never>;
38
- H3: styled_components.StyledComponent<string, any, {}, never>;
39
- H4: styled_components.StyledComponent<string, any, {}, never>;
40
- H5: styled_components.StyledComponent<string, any, {}, never>;
41
- Body1: styled_components.StyledComponent<string, any, {}, never>;
42
- Body2: styled_components.StyledComponent<string, any, {}, never>;
43
- Caption: styled_components.StyledComponent<string, any, {}, never>;
44
- Overline: styled_components.StyledComponent<string, any, {}, never>;
45
- SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
46
- SmallestException: styled_components.StyledComponent<string, any, {}, never>;
47
- Small: styled_components.StyledComponent<string, any, {}, never>;
48
- Tiny: styled_components.StyledComponent<string, any, {}, never>;
49
- Light: styled_components.StyledComponent<string, any, {}, never>;
50
- Regular: styled_components.StyledComponent<string, any, {}, never>;
51
- Medium: styled_components.StyledComponent<string, any, {}, never>;
52
- Bold: styled_components.StyledComponent<string, any, {}, never>;
53
- Black: styled_components.StyledComponent<string, any, {}, never>;
54
- propTypes: {
55
- inverted: prop_types.Requireable<boolean>;
56
- numberOfLines: prop_types.Requireable<number>;
57
- variant: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
58
- size: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
59
- light: prop_types.Requireable<boolean>;
60
- bold: prop_types.Requireable<boolean>;
61
- fontSize: prop_types.Requireable<string>;
62
- };
63
- defaultProps: {
64
- inverted: boolean;
65
- variant: undefined;
66
- size: undefined;
67
- fontSize: string;
68
- numberOfLines: undefined;
69
- light: boolean;
70
- bold: boolean;
71
- };
72
- }, any, {}, never>;
28
+ declare const StyledText: styled_components.StyledComponent<string, any, {}, never>;
73
29
  declare const StyledItem: styled_components.StyledComponent<string, any, {
74
30
  isActive: boolean;
75
31
  isResponsive?: boolean | undefined;