@gympass/yoga 7.104.0 → 7.105.0

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.
Files changed (33) hide show
  1. package/cjs/BottomSheet/web/BottomSheet.js +2 -2
  2. package/cjs/Checkbox/web/Checkbox.js +2 -2
  3. package/cjs/Drawer/web/Drawer.js +2 -2
  4. package/cjs/NavigationMenu/NavigationMenu.theme.js +124 -41
  5. package/cjs/NavigationMenu/web/BottomItems/BottomItem.js +7 -2
  6. package/cjs/NavigationMenu/web/BottomItems/BottomItems.js +5 -4
  7. package/cjs/NavigationMenu/web/Item/styles.js +6 -16
  8. package/cjs/NavigationMenu/web/Menu/Menu.js +91 -26
  9. package/cjs/NavigationMenu/web/NavigationMenu.js +7 -5
  10. package/cjs/NavigationMenu/web/Switcher/Actions.js +9 -5
  11. package/cjs/NavigationMenu/web/Switcher/Switcher.js +3 -3
  12. package/esm/BottomSheet/web/BottomSheet.js +2 -2
  13. package/esm/Checkbox/web/Checkbox.js +2 -2
  14. package/esm/Drawer/web/Drawer.js +2 -2
  15. package/esm/NavigationMenu/NavigationMenu.theme.js +124 -41
  16. package/esm/NavigationMenu/web/BottomItems/BottomItem.js +7 -2
  17. package/esm/NavigationMenu/web/BottomItems/BottomItems.js +5 -4
  18. package/esm/NavigationMenu/web/Item/styles.js +6 -16
  19. package/esm/NavigationMenu/web/Menu/Menu.js +92 -27
  20. package/esm/NavigationMenu/web/NavigationMenu.js +7 -5
  21. package/esm/NavigationMenu/web/Switcher/Actions.js +9 -5
  22. package/esm/NavigationMenu/web/Switcher/Switcher.js +3 -3
  23. package/package.json +2 -2
  24. package/typings/{Actions-cd7fac99.d.ts → Actions-752d7514.d.ts} +2 -2
  25. package/typings/NavigationMenu/NavigationMenu.theme.d.ts +1 -71
  26. package/typings/NavigationMenu/index.d.ts +2 -2
  27. package/typings/NavigationMenu/web/BottomItems/index.d.ts +2 -1
  28. package/typings/NavigationMenu/web/Menu/index.d.ts +3 -1
  29. package/typings/NavigationMenu/web/Switcher/index.d.ts +1 -1
  30. package/typings/NavigationMenu/web/index.d.ts +2 -2
  31. package/typings/{NavigationMenu-57b14b2b.d.ts → NavigationMenu-8c022497.d.ts} +9 -11
  32. package/typings/Theme/theme/v3theme.d.ts +37 -37
  33. package/typings/index.d.ts +2 -2
@@ -66,10 +66,10 @@ const StyledBottomSheet = (0, import_styled_components.default)(import_Dialog.de
66
66
  border-radius: ${bottomsheet.border.radius}px ${bottomsheet.border.radius}px 0 0;
67
67
  `}
68
68
  align-self: flex-end;
69
- animation: content;
69
+ animation: bottomsheet-slide-up;
70
70
  animation-duration: 400ms;
71
71
  animation-fill-mode: forwards;
72
- @keyframes content {
72
+ @keyframes bottomsheet-slide-up {
73
73
  0% {
74
74
  transform: translateY(100vh);
75
75
  }
@@ -343,12 +343,12 @@ const Checkbox = (_a) => {
343
343
  ),
344
344
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
345
345
  import_shared.HiddenInput,
346
- __spreadProps(__spreadValues({
346
+ __spreadProps(__spreadValues(__spreadValues({
347
347
  type: "checkbox",
348
348
  ref: inputRef,
349
349
  checked,
350
350
  disabled
351
- }, value ? { value } : {}), {
351
+ }, value ? { value } : {}), restWithoutEvents), {
352
352
  onChange,
353
353
  onClick
354
354
  })
@@ -69,11 +69,11 @@ const StyledDrawer = (0, import_styled_components.default)(import_Dialog.default
69
69
  align-self: flex-end;
70
70
  position: absolute;
71
71
  right: 0;
72
- animation: content;
72
+ animation: drawer-slide-left;
73
73
  animation-duration: 400ms;
74
74
  animation-fill-mode: forwards;
75
75
  transition: 0.25s ease-in-out;
76
- @keyframes content {
76
+ @keyframes drawer-slide-left {
77
77
  0% {
78
78
  transform: translate3d(100%, 0, 0);
79
79
  }
@@ -21,60 +21,143 @@ __export(NavigationMenu_theme_exports, {
21
21
  default: () => NavigationMenu_theme_default
22
22
  });
23
23
  module.exports = __toCommonJS(NavigationMenu_theme_exports);
24
- const NavigationMenu = ({ colors, fontWeights, radii, spacing }) => ({
25
- avatar: {
26
- height: spacing.xlarge,
27
- width: spacing.xlarge
28
- },
24
+ var import_styled_components = require("styled-components");
25
+ var import_yoga_common = require("@gympass/yoga-common");
26
+ const sandy = "#F6EDDF";
27
+ const navigationMenuV3 = ({ colors, fontWeights, fontSizes, radii }) => ({
29
28
  backgroundColor: {
30
- default: colors.clear,
31
- hover: colors.light,
32
- stamina: colors.stamina,
33
- yoga: colors.yoga,
34
- white: colors.white
29
+ contextMenu: colors.sand,
30
+ default: colors.sand,
31
+ hover: sandy,
32
+ active: sandy
35
33
  },
36
34
  border: {
37
- color: {
38
- default: colors.light,
39
- white: colors.white
40
- },
41
35
  radius: {
42
- default: radii.small,
43
- circle: radii.circle
36
+ tag: radii.small,
37
+ contextMenu: radii.small
44
38
  }
45
39
  },
46
40
  font: {
47
41
  color: {
48
- default: colors.deep,
49
- active: colors.vibin,
50
- hover: colors.stamina
42
+ default: colors.text.secondary,
43
+ active: colors.text.primary,
44
+ hover: colors.text.secondary
51
45
  },
52
- weight: { medium: fontWeights.medium }
46
+ weight: {
47
+ bold: fontWeights.bold,
48
+ medium: fontWeights.regular
49
+ },
50
+ size: {
51
+ contextMenu: {
52
+ title: fontSizes.xlarge
53
+ }
54
+ }
53
55
  },
54
- gap: {
55
- xxxsmall: spacing.xxxsmall,
56
- xxsmall: spacing.xxsmall,
57
- medium: spacing.medium
56
+ hover: {
57
+ contextMenu: import_styled_components.css`
58
+ background-color: ${sandy};
59
+ `
58
60
  },
59
- height: { xxlarge: spacing.xxlarge, xlarge: spacing.xlarge },
60
61
  icon: {
61
- height: spacing.medium,
62
- width: spacing.medium,
63
62
  fill: {
64
- default: colors.deep,
65
- active: colors.vibin,
66
- hover: colors.stamina
63
+ default: colors.text.secondary,
64
+ actions: colors.text.secondary,
65
+ active: colors.text.primary,
66
+ hover: colors.text.secondary
67
67
  }
68
- },
69
- padding: {
70
- xxxsmall: spacing.xxxsmall,
71
- xxsmall: spacing.xxsmall,
72
- xsmall: spacing.xsmall,
73
- small: spacing.small
74
- },
75
- tag: {
76
- color: { default: colors.white }
77
- },
78
- width: { xxlarge: spacing.xxlarge, xlarge: spacing.xlarge }
68
+ }
79
69
  });
70
+ const NavigationMenu = (theme) => {
71
+ const {
72
+ colors,
73
+ elevations,
74
+ fontWeights,
75
+ fontSizes,
76
+ radii,
77
+ spacing,
78
+ v3theme
79
+ } = theme;
80
+ const baseTheme = {
81
+ avatar: {
82
+ height: spacing.xlarge,
83
+ width: spacing.xlarge
84
+ },
85
+ backgroundColor: {
86
+ contextMenu: colors.white,
87
+ default: colors.clear,
88
+ hover: colors.light,
89
+ active: colors.yoga,
90
+ tag: colors.stamina,
91
+ bottomMenu: colors.white
92
+ },
93
+ border: {
94
+ color: {
95
+ default: colors.light
96
+ },
97
+ radius: {
98
+ default: radii.small,
99
+ circle: radii.circle,
100
+ tag: v3theme ? radii.small : radii.circle,
101
+ action: radii.circle,
102
+ contextMenu: v3theme ? radii.small : radii.circle
103
+ }
104
+ },
105
+ font: {
106
+ color: {
107
+ default: colors.deep,
108
+ active: colors.vibin,
109
+ hover: colors.stamina
110
+ },
111
+ weight: {
112
+ bold: fontWeights.medium,
113
+ medium: fontWeights.regular
114
+ },
115
+ size: {
116
+ contextMenu: {
117
+ title: fontSizes.small
118
+ }
119
+ }
120
+ },
121
+ gap: {
122
+ xxxsmall: spacing.xxxsmall,
123
+ xxsmall: spacing.xxsmall,
124
+ medium: spacing.medium
125
+ },
126
+ height: {
127
+ xxlarge: spacing.xxlarge,
128
+ xlarge: spacing.xlarge,
129
+ contextMenu: spacing.xlarge * 2,
130
+ bottomMenu: spacing.xxxlarge
131
+ },
132
+ hover: {
133
+ contextMenu: import_styled_components.css`
134
+ box-shadow: ${elevations.small};
135
+ `
136
+ },
137
+ icon: {
138
+ height: spacing.medium,
139
+ width: spacing.medium,
140
+ fill: {
141
+ default: colors.deep,
142
+ actions: colors.primary,
143
+ active: colors.vibin,
144
+ hover: colors.stamina
145
+ }
146
+ },
147
+ padding: {
148
+ xxxsmall: spacing.xxxsmall,
149
+ xxsmall: spacing.xxsmall,
150
+ xsmall: spacing.xsmall,
151
+ small: spacing.small
152
+ },
153
+ tag: {
154
+ color: { default: colors.white }
155
+ },
156
+ width: { xxlarge: spacing.xxlarge, xlarge: spacing.xlarge }
157
+ };
158
+ if (!v3theme) {
159
+ return baseTheme;
160
+ }
161
+ return (0, import_yoga_common.merge)(baseTheme, navigationMenuV3(theme));
162
+ };
80
163
  var NavigationMenu_theme_default = NavigationMenu;
@@ -58,11 +58,13 @@ const Active = import_styled_components.css`
58
58
  theme: {
59
59
  yoga: {
60
60
  components: {
61
- navigationmenu: { icon, font }
61
+ navigationmenu: { backgroundColor, icon, font }
62
62
  }
63
63
  }
64
64
  }
65
65
  }) => import_styled_components.css`
66
+ background-color: ${backgroundColor.active};
67
+
66
68
  :not(:last-child) {
67
69
  pointer-events: none;
68
70
  }
@@ -70,6 +72,7 @@ const Active = import_styled_components.css`
70
72
  div {
71
73
  ${StyledText} {
72
74
  color: ${font.color.active};
75
+ font-weight: ${font.weight.bold};
73
76
  }
74
77
 
75
78
  svg {
@@ -84,7 +87,7 @@ const StyledItem = import_styled_components.default.li`
84
87
  theme: {
85
88
  yoga: {
86
89
  components: {
87
- navigationmenu: { border, icon, font }
90
+ navigationmenu: { backgroundColor, border, icon, font }
88
91
  }
89
92
  }
90
93
  }
@@ -104,6 +107,8 @@ const StyledItem = import_styled_components.default.li`
104
107
  &:hover,
105
108
  &:focus {
106
109
  ${!isActive && import_styled_components.css`
110
+ background-color: ${backgroundColor.hover};
111
+
107
112
  ${StyledText} {
108
113
  color: ${font.color.hover};
109
114
  }
@@ -66,13 +66,15 @@ var import_yoga_helpers = require("@gympass/yoga-helpers");
66
66
  const StyledItemsContainer = import_styled_components.default.nav`
67
67
  position: relative;
68
68
  ${import_yoga_helpers.media.lg`display: none`}
69
+
70
+ z-index: ${({ $zIndex }) => $zIndex != null ? $zIndex : 2};
69
71
  `;
70
72
  const StyledItems = import_styled_components.default.ul`
71
73
  ${({
72
74
  theme: {
73
75
  yoga: {
74
76
  components: {
75
- navigationmenu: { backgroundColor, border, gap }
77
+ navigationmenu: { backgroundColor, border, gap, height }
76
78
  }
77
79
  }
78
80
  }
@@ -84,13 +86,12 @@ const StyledItems = import_styled_components.default.ul`
84
86
  grid-auto-flow: column;
85
87
  align-items: center;
86
88
  width: 100%;
87
- height: 56px;
88
- background-color: ${backgroundColor.white};
89
+ height: ${height.bottomMenu}px;
90
+ background-color: ${backgroundColor.bottomMenu};
89
91
  margin: 0;
90
92
  padding: 0;
91
93
  border: 1px solid ${border.color.default};
92
94
  gap: ${gap.xxxsmall}px;
93
- z-index: ${({ $zIndex }) => $zIndex != null ? $zIndex : 2};
94
95
  `}
95
96
  `;
96
97
  const BottomItems = (_a) => {
@@ -35,11 +35,9 @@ __export(styles_exports, {
35
35
  });
36
36
  module.exports = __toCommonJS(styles_exports);
37
37
  var import_styled_components = __toESM(require("styled-components"));
38
- var import_yoga_helpers = require("@gympass/yoga-helpers");
39
- var import_Box = __toESM(require("../../../Box"));
40
38
  var import_Tag = __toESM(require("../../../Tag"));
41
39
  var import_Text = __toESM(require("../../../Text"));
42
- const StyledTextContainer = (0, import_styled_components.default)(import_Box.default)`
40
+ const StyledTextContainer = import_styled_components.default.div`
43
41
  ${({
44
42
  isSubItem,
45
43
  theme: {
@@ -70,9 +68,9 @@ const StyledTag = (0, import_styled_components.default)(import_Tag.default)`
70
68
  }
71
69
  }) => import_styled_components.css`
72
70
  text-transform: uppercase;
73
- background-color: ${backgroundColor.stamina};
71
+ background-color: ${backgroundColor.tag};
74
72
  color: ${tag.color.default};
75
- border-radius: ${border.radius.circle}px;
73
+ border-radius: ${border.radius.tag}px;
76
74
  `}
77
75
  `;
78
76
  const StyledText = (0, import_styled_components.default)(import_Text.default)`
@@ -94,7 +92,6 @@ const StyledText = (0, import_styled_components.default)(import_Text.default)`
94
92
  `;
95
93
  const Active = import_styled_components.css`
96
94
  ${({
97
- isResponsive,
98
95
  theme: {
99
96
  yoga: {
100
97
  components: {
@@ -106,18 +103,11 @@ const Active = import_styled_components.css`
106
103
  cursor: auto;
107
104
 
108
105
  > ${StyledTextContainer} {
109
- background-color: ${backgroundColor.default};
110
-
111
- ${isResponsive ? import_yoga_helpers.media.lg`background-color: ${backgroundColor.yoga}` : import_styled_components.css`
112
- background-color: ${backgroundColor.yoga};
113
- `}
106
+ background-color: ${backgroundColor.active};
114
107
 
115
108
  ${StyledText} {
116
109
  color: ${font.color.active};
117
-
118
- ${isResponsive ? import_yoga_helpers.media.lg`font-weight: ${font.weight.medium}` : import_styled_components.css`
119
- font-weight: ${font.weight.medium};
120
- `}
110
+ font-weight: ${font.weight.bold};
121
111
  }
122
112
 
123
113
  svg {
@@ -125,7 +115,7 @@ const Active = import_styled_components.css`
125
115
  }
126
116
 
127
117
  > ${StyledTag} {
128
- background-color: ${backgroundColor.stamina};
118
+ background-color: ${backgroundColor.tag};
129
119
  }
130
120
  }
131
121
  `}
@@ -35,50 +35,63 @@ 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
37
  var import_yoga = require("@gympass/yoga");
38
- var import_Box = __toESM(require("../../../Box"));
39
38
  var import_Icon = __toESM(require("../../../Icon"));
40
- const StyledMenu = (0, import_styled_components.default)(import_Box.default)`
39
+ const StyledMenu = import_styled_components.default.div`
41
40
  ${({
42
41
  hasAction,
43
42
  theme: {
44
43
  yoga: {
45
44
  components: {
46
- navigationmenu: { avatar, backgroundColor, border, gap, padding }
45
+ navigationmenu: {
46
+ backgroundColor,
47
+ border,
48
+ gap,
49
+ padding,
50
+ height,
51
+ hover
52
+ }
47
53
  }
48
54
  }
49
55
  }
50
56
  }) => import_styled_components.css`
51
57
  transition: background-color 300ms ease-in-out;
52
58
 
53
- display: flex;
59
+ display: grid;
54
60
  align-items: center;
55
- justify-content: space-between;
56
61
  width: 100%;
62
+ grid-template-columns: max-content 1fr max-content;
57
63
  gap: ${gap.xxsmall}px;
58
64
  padding: ${padding.xsmall}px;
59
- background-color: ${backgroundColor.white};
60
- border-radius: ${border.radius.circle}px;
61
- border: 1px solid ${border.color.white};
62
-
63
- > div:first-child {
64
- height: ${avatar.height}px;
65
- width: ${avatar.width}px;
66
- }
65
+ background-color: ${backgroundColor.contextMenu};
66
+ border-radius: ${border.radius.contextMenu}px;
67
+ min-height: ${height.contextMenu}px;
67
68
 
68
69
  ${hasAction && import_styled_components.css`
69
- :hover,
70
+ cursor: pointer;
71
+ &:hover,
70
72
  &:focus {
71
- cursor: pointer;
72
- border: 1px solid ${border.color.default};
73
+ ${hover.contextMenu}
73
74
  }
74
75
  `}
75
76
  `}
76
77
  `;
77
- const StyledTextContainer = (0, import_styled_components.default)(import_Box.default)`
78
- flex: 1;
79
- overflow: hidden;
78
+ const StyledTextContainer = import_styled_components.default.div`
79
+ ${({
80
+ theme: {
81
+ yoga: {
82
+ components: {
83
+ navigationmenu: { gap }
84
+ }
85
+ }
86
+ }
87
+ }) => import_styled_components.css`
88
+ display: flex;
89
+ flex-direction: column;
90
+ gap: ${gap.xxxsmall}px;
91
+ overflow: hidden;
92
+ `}
80
93
  `;
81
- const StyledText = (0, import_styled_components.default)(import_yoga.Text.Small)`
94
+ const StyledTitle = (0, import_styled_components.default)(import_yoga.Text.H4)`
82
95
  ${({
83
96
  theme: {
84
97
  yoga: {
@@ -88,22 +101,74 @@ const StyledText = (0, import_styled_components.default)(import_yoga.Text.Small)
88
101
  }
89
102
  }
90
103
  }) => import_styled_components.css`
91
- font-weight: ${font.weight.medium};
104
+ font-size: ${font.size.contextMenu.title}px;
105
+ line-height: ${font.size.contextMenu.title}px;
106
+ font-weight: ${font.weight.bold};
92
107
  flex: 1;
93
108
  white-space: nowrap;
94
109
  text-overflow: ellipsis;
95
110
  overflow: hidden;
96
111
  `}
97
112
  `;
98
- const Menu = ({ avatar: Avatar, subtitle, title, onClick }) => {
113
+ const StyledSubtitle = (0, import_styled_components.default)(import_yoga.Text.Small)`
114
+ ${({
115
+ theme: {
116
+ yoga: {
117
+ components: {
118
+ navigationmenu: { font }
119
+ }
120
+ }
121
+ }
122
+ }) => import_styled_components.css`
123
+ color: ${font.color.default};
124
+ `}
125
+ `;
126
+ const StyledActionIconContainer = import_styled_components.default.div`
127
+ ${({
128
+ theme: {
129
+ yoga: {
130
+ components: {
131
+ navigationmenu: { icon }
132
+ }
133
+ }
134
+ }
135
+ }) => import_styled_components.css`
136
+ svg {
137
+ fill: ${icon.fill.actions};
138
+ }
139
+ `}
140
+ `;
141
+ const StyledAvatarContainer = import_styled_components.default.div`
142
+ ${({
143
+ theme: {
144
+ yoga: {
145
+ components: {
146
+ navigationmenu: { avatar }
147
+ }
148
+ }
149
+ }
150
+ }) => import_styled_components.css`
151
+ > div:first-child {
152
+ height: ${avatar.height}px;
153
+ width: ${avatar.width}px;
154
+ }
155
+ `}
156
+ `;
157
+ const Menu = ({
158
+ avatar: Avatar,
159
+ icon,
160
+ subtitle,
161
+ title,
162
+ onClick
163
+ }) => {
99
164
  const hasAction = Boolean(onClick);
100
165
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledMenu, { hasAction, onClick, children: [
101
- Avatar,
166
+ !!Avatar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledAvatarContainer, { children: Avatar }),
102
167
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledTextContainer, { children: [
103
- title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledText, { children: title }),
104
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga.Text.Small, { color: "deep", children: subtitle })
168
+ title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledTitle, { children: title }),
169
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSubtitle, { children: subtitle })
105
170
  ] }),
106
- hasAction && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: import_yoga_icons.ArrowRight, size: "large", fill: "vibin" })
171
+ hasAction && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledActionIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: icon != null ? icon : import_yoga_icons.ChevronDown, size: "large" }) })
107
172
  ] });
108
173
  };
109
174
  var Menu_default = Menu;
@@ -67,7 +67,6 @@ var import_Menu = __toESM(require("./Menu"));
67
67
  var import_Switcher = __toESM(require("./Switcher"));
68
68
  var import_Item = require("./Item");
69
69
  var import_BottomItems = require("./BottomItems");
70
- var import_Box = __toESM(require("../../Box"));
71
70
  const DeskTopContainer = import_styled_components.css`
72
71
  ${({
73
72
  theme: {
@@ -111,7 +110,7 @@ const StyledNavigationMenu = import_styled_components.default.div`
111
110
  `}
112
111
  `}
113
112
  `;
114
- const StyledHeader = (0, import_styled_components.default)(import_Box.default)`
113
+ const StyledHeader = import_styled_components.default.header`
115
114
  ${({
116
115
  theme: {
117
116
  yoga: {
@@ -149,7 +148,7 @@ const StyledItemsGroup = import_styled_components.default.ul`
149
148
  gap: ${gap.xxxsmall}px;
150
149
  `}
151
150
  `;
152
- const StyledFooter = (0, import_styled_components.default)(import_Box.default)`
151
+ const StyledFooter = import_styled_components.default.footer`
153
152
  ${({
154
153
  theme: {
155
154
  yoga: {
@@ -168,17 +167,20 @@ const NavigationMenu = (_a) => {
168
167
  var _b = _a, {
169
168
  children,
170
169
  openOnMobile = false,
171
- responsive = true
170
+ responsive = true,
171
+ zIndex
172
172
  } = _b, htmlAttributes = __objRest(_b, [
173
173
  "children",
174
174
  "openOnMobile",
175
- "responsive"
175
+ "responsive",
176
+ "zIndex"
176
177
  ]);
177
178
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
178
179
  StyledNavigationMenu,
179
180
  __spreadProps(__spreadValues({}, htmlAttributes), {
180
181
  isOpenOnMobile: openOnMobile,
181
182
  isResponsive: responsive,
183
+ $zIndex: zIndex,
182
184
  children
183
185
  })
184
186
  );
@@ -41,7 +41,7 @@ const StyledAction = import_styled_components.default.div`
41
41
  theme: {
42
42
  yoga: {
43
43
  components: {
44
- navigationmenu: { backgroundColor, border, height, width }
44
+ navigationmenu: { backgroundColor, border, height, width, icon }
45
45
  }
46
46
  }
47
47
  }
@@ -53,7 +53,11 @@ const StyledAction = import_styled_components.default.div`
53
53
  justify-content: center;
54
54
  width: ${width.xxlarge}px;
55
55
  height: ${height.xxlarge}px;
56
- border-radius: ${border.radius.circle}px;
56
+ border-radius: ${border.radius.action}px;
57
+
58
+ svg {
59
+ fill: ${icon.fill.actions};
60
+ }
57
61
 
58
62
  :hover,
59
63
  &:focus {
@@ -62,18 +66,18 @@ const StyledAction = import_styled_components.default.div`
62
66
  }
63
67
  `}
64
68
  `;
65
- function Actions({ actions, sideOffset, $zIndex }) {
69
+ function Actions({ actions, sideOffset, zIndex }) {
66
70
  if (!(actions == null ? void 0 : actions.length)) {
67
71
  return null;
68
72
  }
69
73
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_yoga.Menu, { onMouseHover: false, children: [
70
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: import_yoga_icons.MenuMore, size: "medium", fill: "vibin" }) }) }),
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: import_yoga_icons.MenuMore, size: "medium" }) }) }),
71
75
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
76
  import_yoga.Menu.List,
73
77
  {
74
78
  side: "right",
75
79
  sideOffset,
76
- zIndex: `${$zIndex != null ? $zIndex : 2}`,
80
+ zIndex: `${zIndex != null ? zIndex : 2}`,
77
81
  children: actions.map(({ id, label, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga.Menu.Item, { onClick, children: label }, id))
78
82
  }
79
83
  )
@@ -89,7 +89,7 @@ const StyledSwitcher = (0, import_styled_components.default)(import_Box.default)
89
89
  }
90
90
  `}
91
91
  `;
92
- const StyledTextContainer = (0, import_styled_components.default)(import_Box.default)`
92
+ const StyledTextContainer = import_styled_components.default.div`
93
93
  flex: 1;
94
94
  overflow: hidden;
95
95
  `;
@@ -103,7 +103,7 @@ const StyledTitle = (0, import_styled_components.default)(import_yoga.Text.Small
103
103
  }
104
104
  }
105
105
  }) => import_styled_components.css`
106
- font-weight: ${font.weight.medium};
106
+ font-weight: ${font.weight.bold};
107
107
  flex: 1;
108
108
  white-space: nowrap;
109
109
  text-overflow: ellipsis;
@@ -126,7 +126,7 @@ const Switcher = (_a) => {
126
126
  "subtitle",
127
127
  "title"
128
128
  ]);
129
- const hasActions = actions == null ? void 0 : actions.length;
129
+ const hasActions = !!(actions == null ? void 0 : actions.length);
130
130
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledSwitcher, { fill, children: [
131
131
  Avatar,
132
132
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledTextContainer, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
@@ -35,10 +35,10 @@ const StyledBottomSheet = styled(Dialog)`
35
35
  border-radius: ${bottomsheet.border.radius}px ${bottomsheet.border.radius}px 0 0;
36
36
  `}
37
37
  align-self: flex-end;
38
- animation: content;
38
+ animation: bottomsheet-slide-up;
39
39
  animation-duration: 400ms;
40
40
  animation-fill-mode: forwards;
41
- @keyframes content {
41
+ @keyframes bottomsheet-slide-up {
42
42
  0% {
43
43
  transform: translateY(100vh);
44
44
  }
@@ -312,12 +312,12 @@ const Checkbox = (_a) => {
312
312
  ),
313
313
  /* @__PURE__ */ jsx(
314
314
  HiddenInput,
315
- __spreadProps(__spreadValues({
315
+ __spreadProps(__spreadValues(__spreadValues({
316
316
  type: "checkbox",
317
317
  ref: inputRef,
318
318
  checked,
319
319
  disabled
320
- }, value ? { value } : {}), {
320
+ }, value ? { value } : {}), restWithoutEvents), {
321
321
  onChange,
322
322
  onClick
323
323
  })