@gympass/yoga 7.88.2 → 7.90.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 (53) hide show
  1. package/cjs/NavigationMenu/NavigationMenu.theme.js +80 -0
  2. package/cjs/NavigationMenu/index.js +35 -0
  3. package/cjs/NavigationMenu/web/BottomItems/BottomItem.js +165 -0
  4. package/cjs/NavigationMenu/web/BottomItems/BottomItems.js +66 -0
  5. package/cjs/NavigationMenu/web/BottomItems/index.js +41 -0
  6. package/cjs/NavigationMenu/web/Item/Item.js +55 -0
  7. package/cjs/NavigationMenu/web/Item/Subitem.js +39 -0
  8. package/cjs/NavigationMenu/web/Item/index.js +41 -0
  9. package/cjs/NavigationMenu/web/Item/styles.js +188 -0
  10. package/cjs/NavigationMenu/web/Menu/Menu.js +109 -0
  11. package/cjs/NavigationMenu/web/Menu/index.js +35 -0
  12. package/cjs/NavigationMenu/web/NavigationMenu.js +155 -0
  13. package/cjs/NavigationMenu/web/NavigationMenu.test.js +178 -0
  14. package/cjs/NavigationMenu/web/Switcher/Actions.js +72 -0
  15. package/cjs/NavigationMenu/web/Switcher/Switcher.js +117 -0
  16. package/cjs/NavigationMenu/web/Switcher/index.js +35 -0
  17. package/cjs/NavigationMenu/web/index.js +35 -0
  18. package/cjs/Theme/theme/componentThemes.js +3 -1
  19. package/cjs/index.js +3 -0
  20. package/cjs/yoga.d.js +1 -0
  21. package/esm/NavigationMenu/NavigationMenu.theme.js +60 -0
  22. package/esm/NavigationMenu/index.js +5 -0
  23. package/esm/NavigationMenu/web/BottomItems/BottomItem.js +135 -0
  24. package/esm/NavigationMenu/web/BottomItems/BottomItems.js +36 -0
  25. package/esm/NavigationMenu/web/BottomItems/index.js +6 -0
  26. package/esm/NavigationMenu/web/Item/Item.js +25 -0
  27. package/esm/NavigationMenu/web/Item/Subitem.js +9 -0
  28. package/esm/NavigationMenu/web/Item/index.js +6 -0
  29. package/esm/NavigationMenu/web/Item/styles.js +151 -0
  30. package/esm/NavigationMenu/web/Menu/Menu.js +79 -0
  31. package/esm/NavigationMenu/web/Menu/index.js +5 -0
  32. package/esm/NavigationMenu/web/NavigationMenu.js +125 -0
  33. package/esm/NavigationMenu/web/NavigationMenu.test.js +155 -0
  34. package/esm/NavigationMenu/web/Switcher/Actions.js +42 -0
  35. package/esm/NavigationMenu/web/Switcher/Switcher.js +87 -0
  36. package/esm/NavigationMenu/web/Switcher/index.js +5 -0
  37. package/esm/NavigationMenu/web/index.js +5 -0
  38. package/esm/Theme/theme/componentThemes.js +3 -1
  39. package/esm/index.js +2 -0
  40. package/esm/yoga.d.js +0 -0
  41. package/package.json +2 -2
  42. package/typings/Icon-4557ae6b.d.ts +3 -0
  43. package/typings/NavigationMenu/NavigationMenu.theme.d.ts +73 -0
  44. package/typings/NavigationMenu/index.d.ts +7 -0
  45. package/typings/NavigationMenu/web/BottomItems/index.d.ts +16 -0
  46. package/typings/NavigationMenu/web/Item/index.d.ts +23 -0
  47. package/typings/NavigationMenu/web/Item/styles.d.ts +6 -0
  48. package/typings/NavigationMenu/web/Menu/index.d.ts +11 -0
  49. package/typings/NavigationMenu/web/Switcher/index.d.ts +6 -0
  50. package/typings/NavigationMenu/web/index.d.ts +7 -0
  51. package/typings/NavigationMenu-373d8980.d.ts +56 -0
  52. package/typings/Switcher-a8dff781.d.ts +19 -0
  53. package/typings/index.d.ts +10 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.88.2",
3
+ "version": "7.90.0",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "types": "./typings/index.d.ts",
@@ -56,7 +56,7 @@
56
56
  "react-native": "0.72.3",
57
57
  "styled-components": "^4.4.0"
58
58
  },
59
- "gitHead": "f78d1c2f14d0f75d218422dee54d7b4e9c1f93b6",
59
+ "gitHead": "dd4ef572d0fdc61fbc0902e5e24101986ca18e8f",
60
60
  "module": "./esm",
61
61
  "private": false,
62
62
  "react-native": "./cjs/index.native.js"
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+
3
+ export { _default as _ };
@@ -0,0 +1,73 @@
1
+ declare const NavigationMenu: ({ colors, fontWeights, radii, spacing }: {
2
+ colors: any;
3
+ fontWeights: any;
4
+ radii: any;
5
+ spacing: any;
6
+ }) => {
7
+ avatar: {
8
+ height: any;
9
+ width: any;
10
+ };
11
+ backgroundColor: {
12
+ default: any;
13
+ hover: any;
14
+ stamina: any;
15
+ yoga: any;
16
+ white: any;
17
+ };
18
+ border: {
19
+ color: {
20
+ default: any;
21
+ white: any;
22
+ };
23
+ radius: {
24
+ default: any;
25
+ circle: any;
26
+ };
27
+ };
28
+ font: {
29
+ color: {
30
+ default: any;
31
+ active: any;
32
+ hover: any;
33
+ };
34
+ weight: {
35
+ medium: any;
36
+ };
37
+ };
38
+ gap: {
39
+ xxxsmall: any;
40
+ xxsmall: any;
41
+ medium: any;
42
+ };
43
+ height: {
44
+ xxlarge: any;
45
+ xlarge: any;
46
+ };
47
+ icon: {
48
+ height: any;
49
+ width: any;
50
+ fill: {
51
+ default: any;
52
+ active: any;
53
+ hover: any;
54
+ };
55
+ };
56
+ padding: {
57
+ xxxsmall: any;
58
+ xxsmall: any;
59
+ xsmall: any;
60
+ small: any;
61
+ };
62
+ tag: {
63
+ color: {
64
+ default: any;
65
+ };
66
+ };
67
+ width: {
68
+ xxlarge: any;
69
+ xlarge: any;
70
+ };
71
+ };
72
+
73
+ export { NavigationMenu as default };
@@ -0,0 +1,7 @@
1
+ import { N as NavigationMenu } from '../NavigationMenu-373d8980.js';
2
+ import '../Switcher-a8dff781.js';
3
+ import 'react';
4
+
5
+
6
+
7
+ export { NavigationMenu as default };
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+
3
+ declare type BottomItemsProps = {
4
+ children: React.ReactNode;
5
+ };
6
+ declare const BottomItems: ({ children }: BottomItemsProps) => JSX.Element;
7
+
8
+ declare type BottomItemProps = {
9
+ active?: boolean;
10
+ icon?: React.ReactNode;
11
+ label: string;
12
+ wrapper: React.FunctionComponent<any>;
13
+ };
14
+ declare const BottomItem: ({ active, icon, label, wrapper: Wrapper, }: BottomItemProps) => JSX.Element;
15
+
16
+ export { BottomItem, BottomItems };
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { _ as _default } from '../../../Icon-4557ae6b.js';
3
+
4
+ declare type ItemProps = {
5
+ active?: boolean;
6
+ children?: React.ReactNode;
7
+ expanded?: boolean;
8
+ icon?: React.ReactElement<typeof _default>;
9
+ label: string;
10
+ responsive?: boolean;
11
+ tag?: string;
12
+ wrapper: React.FunctionComponent<any>;
13
+ };
14
+ declare const Item: ({ active, children, expanded, icon: Icon, label, responsive, tag, wrapper: Wrapper, }: ItemProps) => JSX.Element;
15
+
16
+ declare type SubitemProps = {
17
+ active?: boolean;
18
+ label: string;
19
+ wrapper: React.FunctionComponent<any>;
20
+ };
21
+ declare const Subitem: ({ active, label, wrapper: Wrapper }: SubitemProps) => JSX.Element;
22
+
23
+ export { Item, Subitem };
@@ -0,0 +1,6 @@
1
+ declare const StyledTextContainer: any;
2
+ declare const StyledTag: any;
3
+ declare const StyledText: any;
4
+ declare const StyledItem: any;
5
+
6
+ export { StyledItem, StyledTag, StyledText, StyledTextContainer };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ declare type MenuProps = {
4
+ avatar: React.ReactElement;
5
+ subtitle?: string;
6
+ title?: string;
7
+ onClick?: () => void;
8
+ };
9
+ declare const Menu: ({ avatar: Avatar, subtitle, title, onClick }: MenuProps) => JSX.Element;
10
+
11
+ export { Menu as default };
@@ -0,0 +1,6 @@
1
+ import { a as Switcher } from '../../../Switcher-a8dff781.js';
2
+ import 'react';
3
+
4
+
5
+
6
+ export { Switcher as default };
@@ -0,0 +1,7 @@
1
+ import { N as NavigationMenu } from '../../NavigationMenu-373d8980.js';
2
+ import '../../Switcher-a8dff781.js';
3
+ import 'react';
4
+
5
+
6
+
7
+ export { NavigationMenu as default };
@@ -0,0 +1,56 @@
1
+ import { S as SwitcherActionsProps } from './Switcher-a8dff781.js';
2
+ import React from 'react';
3
+
4
+ declare type NavigationMenuProps = {
5
+ children: React.ReactNode;
6
+ openOnMobile?: boolean;
7
+ responsive?: boolean;
8
+ };
9
+ declare const NavigationMenu: {
10
+ ({ children, openOnMobile, responsive, }: NavigationMenuProps): JSX.Element;
11
+ Header: any;
12
+ Menu: ({ avatar: Avatar, subtitle, title, onClick }: {
13
+ avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
14
+ subtitle?: string | undefined;
15
+ title?: string | undefined;
16
+ onClick?: (() => void) | undefined;
17
+ }) => JSX.Element;
18
+ Switcher: ({ actions, avatar: Avatar, fill, isLoading, sideOffset, subtitle, title, }: {
19
+ actions?: SwitcherActionsProps[] | undefined;
20
+ avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
21
+ fill?: string | undefined;
22
+ isLoading?: boolean | undefined;
23
+ sideOffset?: number | undefined;
24
+ subtitle?: string | undefined;
25
+ title?: string | undefined;
26
+ }) => JSX.Element;
27
+ Items: any;
28
+ ItemsGroup: any;
29
+ Item: ({ active, children, expanded, icon: Icon, label, responsive, tag, wrapper: Wrapper, }: {
30
+ active?: boolean | undefined;
31
+ children?: React.ReactNode;
32
+ expanded?: boolean | undefined;
33
+ icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
34
+ label: string;
35
+ responsive?: boolean | undefined;
36
+ tag?: string | undefined;
37
+ wrapper: React.FunctionComponent<any>;
38
+ }) => JSX.Element;
39
+ Subitem: ({ active, label, wrapper: Wrapper }: {
40
+ active?: boolean | undefined;
41
+ label: string;
42
+ wrapper: React.FunctionComponent<any>;
43
+ }) => JSX.Element;
44
+ BottomItems: ({ children }: {
45
+ children: React.ReactNode;
46
+ }) => JSX.Element;
47
+ BottomItem: ({ active, icon, label, wrapper: Wrapper, }: {
48
+ active?: boolean | undefined;
49
+ icon?: React.ReactNode;
50
+ label: string;
51
+ wrapper: React.FunctionComponent<any>;
52
+ }) => JSX.Element;
53
+ Footer: any;
54
+ };
55
+
56
+ export { NavigationMenu as N };
@@ -0,0 +1,19 @@
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 };
@@ -1,6 +1,9 @@
1
1
  import * as prop_types from 'prop-types';
2
2
  import prop_types__default, { string, bool, func, node, number, elementType } from 'prop-types';
3
3
  import React from 'react';
4
+ export { _ as Icon } from './Icon-4557ae6b.js';
5
+ export { N as NavigationMenu } from './NavigationMenu-373d8980.js';
6
+ import './Switcher-a8dff781.js';
4
7
 
5
8
  /** This component provides a theme to all React components underneath itself via the context API. */
6
9
  declare function ThemeProvider({ children, ...rest }: {
@@ -13,11 +16,11 @@ declare namespace ThemeProvider {
13
16
  }
14
17
  }
15
18
 
16
- declare const _default$a: any;
19
+ declare const _default$9: any;
17
20
 
18
21
  declare function composeTheme(tokens: any, customTheming?: {}): any;
19
22
 
20
- declare function _default$9(props: any): any;
23
+ declare function _default$8(props: any): any;
21
24
 
22
25
  /**
23
26
  * This callback is displayed as part of the Requester class.
@@ -70,10 +73,10 @@ containing primary and supplemental actions, which are represented by icons and
70
73
  text. */
71
74
  declare const List: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
72
75
 
73
- declare const _default$8: any;
74
-
75
76
  declare const _default$7: any;
76
77
 
78
+ declare const _default$6: any;
79
+
77
80
  declare function RadioGroup({ name, onChange, selectedValue, small, full, children, style, ...rest }: {
78
81
  [x: string]: any;
79
82
  name: any;
@@ -130,7 +133,7 @@ declare namespace PlanCard {
130
133
  const displayName: string;
131
134
  }
132
135
 
133
- declare const _default$6: any;
136
+ declare const _default$5: any;
134
137
 
135
138
  declare function limitChildren(props: any, propName: any, componentName: any): Error | null;
136
139
 
@@ -189,7 +192,7 @@ declare namespace Text {
189
192
  }
190
193
  declare const fontSizes: prop_types.Requireable<string>;
191
194
 
192
- declare const _default$5: any;
195
+ declare const _default$4: any;
193
196
 
194
197
  /** Tags should be keywords to categorize or organize an item. */
195
198
  declare function Tag(props: any): JSX.Element;
@@ -229,8 +232,6 @@ declare const TextArea: React.ForwardRefExoticComponent<React.RefAttributes<any>
229
232
  /** The autocomplete is a normal input field enhanced by a panel of suggested options. */
230
233
  declare const AutoComplete: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
231
234
 
232
- declare const _default$4: any;
233
-
234
235
  declare const _default$3: any;
235
236
 
236
237
  declare const Box: any;
@@ -431,4 +432,4 @@ declare const Popover: React.ForwardRefExoticComponent<React.RefAttributes<any>>
431
432
 
432
433
  declare const _default: any;
433
434
 
434
- export { Accordion, ActionRequirement, AutoComplete, Avatar, Banner, BottomSheet, Box, Button, Card, _default$8 as Checkbox, _default$3 as Chips, Col, Container, Datepicker, Dialog, _default$1 as Divider, Drawer, Dropdown, _default$6 as EventCard, Feedback, _default$a as FontLoader, Header, Heading, Hide, _default$4 as Icon, Input, List, Menu, PlanCard, Popover, Progress, RadioGroup, _default$5 as Rating, Row, Skeleton, _default$7 as Slider, _default$2 as Snackbar, _default as Spinner, Stepper, Tag, Text, TextArea, ThemeProvider, createTheme, _default$9 as theme, composeTheme as yogaTheme };
435
+ export { Accordion, ActionRequirement, AutoComplete, Avatar, Banner, BottomSheet, Box, Button, Card, _default$7 as Checkbox, _default$3 as Chips, Col, Container, Datepicker, Dialog, _default$1 as Divider, Drawer, Dropdown, _default$5 as EventCard, Feedback, _default$9 as FontLoader, Header, Heading, Hide, Input, List, Menu, PlanCard, Popover, Progress, RadioGroup, _default$4 as Rating, Row, Skeleton, _default$6 as Slider, _default$2 as Snackbar, _default as Spinner, Stepper, Tag, Text, TextArea, ThemeProvider, createTheme, _default$8 as theme, composeTheme as yogaTheme };