@gympass/yoga 7.102.4 → 7.104.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 (42) hide show
  1. package/cjs/NavigationMenu/web/BottomItems/BottomItems.js +34 -4
  2. package/cjs/NavigationMenu/web/NavigationMenu.js +44 -10
  3. package/cjs/NavigationMenu/web/Switcher/Actions.js +17 -7
  4. package/cjs/NavigationMenu/web/Switcher/Switcher.js +43 -10
  5. package/cjs/Text/Text.theme.js +33 -12
  6. package/cjs/Text/native/Text.js +44 -22
  7. package/cjs/Text/native/Text.test.js +17 -3
  8. package/cjs/Text/native/index.js +8 -0
  9. package/cjs/Text/textStyle.android.js +2 -0
  10. package/cjs/Text/textStyle.ios.js +2 -0
  11. package/cjs/Text/textStyle.web.js +2 -0
  12. package/cjs/Text/web/Text.js +44 -22
  13. package/cjs/Text/web/Text.test.js +13 -3
  14. package/cjs/Text/web/index.js +8 -0
  15. package/cjs/Theme/theme/theme.js +3 -2
  16. package/cjs/Theme/theme/v3theme.js +1 -0
  17. package/esm/NavigationMenu/web/BottomItems/BottomItems.js +36 -4
  18. package/esm/NavigationMenu/web/NavigationMenu.js +46 -10
  19. package/esm/NavigationMenu/web/Switcher/Actions.js +17 -7
  20. package/esm/NavigationMenu/web/Switcher/Switcher.js +45 -10
  21. package/esm/Text/Text.theme.js +33 -12
  22. package/esm/Text/native/Text.js +40 -22
  23. package/esm/Text/native/Text.test.js +17 -3
  24. package/esm/Text/native/index.js +17 -9
  25. package/esm/Text/textStyle.android.js +2 -0
  26. package/esm/Text/textStyle.ios.js +2 -0
  27. package/esm/Text/textStyle.web.js +2 -0
  28. package/esm/Text/web/Text.js +40 -22
  29. package/esm/Text/web/Text.test.js +13 -3
  30. package/esm/Text/web/index.js +17 -9
  31. package/esm/Theme/theme/theme.js +3 -2
  32. package/esm/Theme/theme/v3theme.js +1 -0
  33. package/package.json +2 -2
  34. package/typings/Actions-cd7fac99.d.ts +13 -0
  35. package/typings/NavigationMenu/index.d.ts +3 -3
  36. package/typings/NavigationMenu/web/BottomItems/index.d.ts +5 -2
  37. package/typings/NavigationMenu/web/Item/styles.d.ts +13 -7
  38. package/typings/NavigationMenu/web/Switcher/index.d.ts +10 -3
  39. package/typings/NavigationMenu/web/index.d.ts +3 -3
  40. package/typings/{NavigationMenu-4912428a.d.ts → NavigationMenu-57b14b2b.d.ts} +15 -8
  41. package/typings/index.d.ts +31 -21
  42. package/typings/Switcher-a8dff781.d.ts +0 -19
@@ -5,11 +5,11 @@ export { v3theme } from './Theme/theme/v3theme.js';
5
5
  export { default as createTheme } from './Theme/helpers/themeGenerator/themeGenerator.js';
6
6
  import * as styled_components from 'styled-components';
7
7
  export { _ as Icon } from './Icon-19f6da82.js';
8
- export { N as NavigationMenu } from './NavigationMenu-4912428a.js';
8
+ export { N as NavigationMenu } from './NavigationMenu-57b14b2b.js';
9
9
  import '@gympass/yoga-tokens/global/transition';
10
10
  import '@gympass/yoga-tokens/global/breakpoints';
11
11
  import '@gympass/yoga-tokens';
12
- import './Switcher-a8dff781.js';
12
+ import './Actions-cd7fac99.js';
13
13
 
14
14
  /** This component provides a theme to all React components underneath itself via the context API. */
15
15
  declare function ThemeProvider({ children, ...rest }: {
@@ -184,14 +184,41 @@ declare const Col: styled_components.StyledComponent<string, any, {}, never>;
184
184
 
185
185
  declare const Hide: styled_components.StyledComponent<string, any, {}, never>;
186
186
 
187
+ declare const Display1: styled_components.StyledComponent<string, any, {}, never>;
188
+ declare const Display2: styled_components.StyledComponent<string, any, {}, never>;
189
+ declare const Display3: styled_components.StyledComponent<string, any, {}, never>;
190
+ declare const Display4: styled_components.StyledComponent<string, any, {}, never>;
191
+ declare const DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
192
+ declare const H1: styled_components.StyledComponent<string, any, {}, never>;
193
+ declare const H2: styled_components.StyledComponent<string, any, {}, never>;
194
+ declare const H3: styled_components.StyledComponent<string, any, {}, never>;
195
+ declare const H4: styled_components.StyledComponent<string, any, {}, never>;
196
+ declare const H5: styled_components.StyledComponent<string, any, {}, never>;
197
+ declare const Body1: styled_components.StyledComponent<string, any, {}, never>;
198
+ declare const Body2: styled_components.StyledComponent<string, any, {}, never>;
199
+ declare const Caption: styled_components.StyledComponent<string, any, {}, never>;
200
+ declare const Overline: styled_components.StyledComponent<string, any, {}, never>;
201
+ declare const SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
202
+ declare const SmallestException: styled_components.StyledComponent<string, any, {}, never>;
187
203
  declare function Text(props: any): JSX.Element;
188
204
  declare namespace Text {
189
205
  export const displayName: string;
206
+ export { Display1 };
207
+ export { Display2 };
208
+ export { Display3 };
209
+ export { Display4 };
210
+ export { DisplayNumber };
190
211
  export { H1 };
191
212
  export { H2 };
192
213
  export { H3 };
193
214
  export { H4 };
194
215
  export { H5 };
216
+ export { Body1 };
217
+ export { Body2 };
218
+ export { Caption };
219
+ export { Overline };
220
+ export { SectionTitle };
221
+ export { SmallestException };
195
222
  export { Small };
196
223
  export { Tiny };
197
224
  export { Light };
@@ -199,19 +226,13 @@ declare namespace Text {
199
226
  export { Medium };
200
227
  export { Bold };
201
228
  export { Black };
202
- export { SectionTitle };
203
- export { SmallestException };
204
- export { Display1 };
205
- export { Display2 };
206
- export { Display3 };
207
- export { Display4 };
208
- export { DisplayNumber };
209
229
  export namespace propTypes {
210
230
  export { bool as inverted };
211
231
  export { number as numberOfLines };
212
232
  export const variant: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
213
233
  export const size: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
214
234
  export { bool as light };
235
+ export { bool as bold };
215
236
  export { fontSizes as fontSize };
216
237
  }
217
238
  export namespace defaultProps {
@@ -223,13 +244,9 @@ declare namespace Text {
223
244
  export const fontSize: string;
224
245
  export const numberOfLines: undefined;
225
246
  export const light: boolean;
247
+ export const bold: boolean;
226
248
  }
227
249
  }
228
- declare const H1: styled_components.StyledComponent<string, any, {}, never>;
229
- declare const H2: styled_components.StyledComponent<string, any, {}, never>;
230
- declare const H3: styled_components.StyledComponent<string, any, {}, never>;
231
- declare const H4: styled_components.StyledComponent<string, any, {}, never>;
232
- declare const H5: styled_components.StyledComponent<string, any, {}, never>;
233
250
  declare const Small: styled_components.StyledComponent<string, any, {}, never>;
234
251
  declare const Tiny: styled_components.StyledComponent<string, any, {}, never>;
235
252
  declare const Light: styled_components.StyledComponent<string, any, {}, never>;
@@ -237,13 +254,6 @@ declare const Regular: styled_components.StyledComponent<string, any, {}, never>
237
254
  declare const Medium: styled_components.StyledComponent<string, any, {}, never>;
238
255
  declare const Bold: styled_components.StyledComponent<string, any, {}, never>;
239
256
  declare const Black: styled_components.StyledComponent<string, any, {}, never>;
240
- declare const SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
241
- declare const SmallestException: styled_components.StyledComponent<string, any, {}, never>;
242
- declare const Display1: styled_components.StyledComponent<string, any, {}, never>;
243
- declare const Display2: styled_components.StyledComponent<string, any, {}, never>;
244
- declare const Display3: styled_components.StyledComponent<string, any, {}, never>;
245
- declare const Display4: styled_components.StyledComponent<string, any, {}, never>;
246
- declare const DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
247
257
 
248
258
  declare const fontSizes: prop_types.Requireable<string>;
249
259
 
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
-
3
- declare type SwitcherActionsProps = {
4
- id: string;
5
- label: string;
6
- onClick: () => void;
7
- };
8
- declare type SwitcherProps = {
9
- actions?: SwitcherActionsProps[];
10
- avatar: React.ReactElement;
11
- fill?: string;
12
- isLoading?: boolean;
13
- sideOffset?: number;
14
- subtitle?: string;
15
- title?: string;
16
- };
17
- declare const Switcher: ({ actions, avatar: Avatar, fill, isLoading, sideOffset, subtitle, title, }: SwitcherProps) => JSX.Element;
18
-
19
- export { SwitcherActionsProps as S, Switcher as a };