@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
@@ -1,73 +1,3 @@
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
- };
1
+ declare const NavigationMenu: (theme: any) => any;
72
2
 
73
3
  export { NavigationMenu as default };
@@ -1,5 +1,5 @@
1
- import { N as NavigationMenu } from '../NavigationMenu-57b14b2b.js';
2
- import '../Actions-cd7fac99.js';
1
+ import { N as NavigationMenu } from '../NavigationMenu-8c022497.js';
2
+ import '../Actions-752d7514.js';
3
3
  import 'styled-components';
4
4
  import 'react';
5
5
 
@@ -3,8 +3,9 @@ import React from 'react';
3
3
  declare type BottomItemsStyledProps = React.HTMLAttributes<HTMLUListElement> & {
4
4
  $zIndex?: number;
5
5
  };
6
- declare type BottomItemsProps = BottomItemsStyledProps & {
6
+ declare type BottomItemsProps = Omit<BottomItemsStyledProps, '$zIndex'> & {
7
7
  children: React.ReactNode;
8
+ zIndex: number;
8
9
  };
9
10
  declare const BottomItems: ({ children, ...containerProps }: BottomItemsProps) => JSX.Element;
10
11
 
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
+ import { _ as _default } from '../../../Icon-19f6da82.js';
2
3
 
3
4
  declare type MenuProps = {
4
5
  avatar: React.ReactElement;
5
6
  subtitle?: string;
6
7
  title?: string;
7
8
  onClick?: () => void;
9
+ icon?: React.ComponentProps<typeof _default>['as'];
8
10
  };
9
- declare const Menu: ({ avatar: Avatar, subtitle, title, onClick }: MenuProps) => JSX.Element;
11
+ declare const Menu: ({ avatar: Avatar, icon, subtitle, title, onClick, }: MenuProps) => JSX.Element;
10
12
 
11
13
  export { Menu as default };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { a as Actions } from '../../../Actions-cd7fac99.js';
2
+ import { a as Actions } from '../../../Actions-752d7514.js';
3
3
 
4
4
  declare type SwitcherProps = React.ComponentProps<typeof Actions> & {
5
5
  avatar: React.ReactElement;
@@ -1,5 +1,5 @@
1
- import { N as NavigationMenu } from '../../NavigationMenu-57b14b2b.js';
2
- import '../../Actions-cd7fac99.js';
1
+ import { N as NavigationMenu } from '../../NavigationMenu-8c022497.js';
2
+ import '../../Actions-752d7514.js';
3
3
  import 'styled-components';
4
4
  import 'react';
5
5
 
@@ -1,25 +1,22 @@
1
- import { A as ActionsProps } from './Actions-cd7fac99.js';
1
+ import { A as ActionsProps } from './Actions-752d7514.js';
2
2
  import * as styled_components from 'styled-components';
3
3
  import React from 'react';
4
4
 
5
- declare type NavigationMenuStyledProps = React.HTMLAttributes<HTMLDivElement> & {
6
- isOpenOnMobile: boolean;
7
- isResponsive: boolean;
8
- $zIndex?: number;
9
- };
10
- declare type NavigationMenuProps = Pick<NavigationMenuStyledProps, '$zIndex'> & {
5
+ declare type NavigationMenuProps = {
11
6
  children: React.ReactNode;
12
7
  openOnMobile?: boolean;
13
8
  responsive?: boolean;
9
+ zIndex: number;
14
10
  };
15
11
  declare const NavigationMenu: {
16
- ({ children, openOnMobile, responsive, ...htmlAttributes }: NavigationMenuProps): JSX.Element;
12
+ ({ children, openOnMobile, responsive, zIndex, ...htmlAttributes }: NavigationMenuProps): JSX.Element;
17
13
  Header: styled_components.StyledComponent<string, any, {}, never>;
18
- Menu: ({ avatar: Avatar, subtitle, title, onClick }: {
14
+ Menu: ({ avatar: Avatar, icon, subtitle, title, onClick, }: {
19
15
  avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
20
16
  subtitle?: string | undefined;
21
17
  title?: string | undefined;
22
18
  onClick?: (() => void) | undefined;
19
+ icon?: any;
23
20
  }) => JSX.Element;
24
21
  Switcher: ({ actions, avatar: Avatar, fill, isLoading, subtitle, title, ...actionsProps }: ActionsProps & {
25
22
  avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -53,10 +50,11 @@ declare const NavigationMenu: {
53
50
  label: string;
54
51
  wrapper: React.FunctionComponent<any>;
55
52
  }) => JSX.Element;
56
- BottomItems: ({ children, ...containerProps }: React.HTMLAttributes<HTMLUListElement> & {
53
+ BottomItems: ({ children, ...containerProps }: Omit<React.HTMLAttributes<HTMLUListElement> & {
57
54
  $zIndex?: number | undefined;
58
- } & {
55
+ }, "$zIndex"> & {
59
56
  children: React.ReactNode;
57
+ zIndex: number;
60
58
  }) => JSX.Element;
61
59
  BottomItem: ({ active, icon, label, wrapper: Wrapper, }: {
62
60
  active?: boolean | undefined;
@@ -10,46 +10,46 @@ declare const v3theme: {
10
10
  length: number;
11
11
  toString(): string;
12
12
  toLocaleString(): string;
13
- pop(): 0 | 1 | 2 | undefined;
14
- push(...items: (0 | 1 | 2)[]): number;
15
- concat(...items: ConcatArray<0 | 1 | 2>[]): (0 | 1 | 2)[];
16
- concat(...items: (0 | 1 | 2 | ConcatArray<0 | 1 | 2>)[]): (0 | 1 | 2)[];
13
+ pop(): 0 | 2 | 1 | undefined;
14
+ push(...items: (0 | 2 | 1)[]): number;
15
+ concat(...items: ConcatArray<0 | 2 | 1>[]): (0 | 2 | 1)[];
16
+ concat(...items: (0 | 2 | 1 | ConcatArray<0 | 2 | 1>)[]): (0 | 2 | 1)[];
17
17
  join(separator?: string | undefined): string;
18
- reverse(): (0 | 1 | 2)[];
19
- shift(): 0 | 1 | 2 | undefined;
20
- slice(start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
21
- sort(compareFn?: ((a: 0 | 1 | 2, b: 0 | 1 | 2) => number) | undefined): (0 | 1 | 2)[];
22
- splice(start: number, deleteCount?: number | undefined): (0 | 1 | 2)[];
23
- splice(start: number, deleteCount: number, ...items: (0 | 1 | 2)[]): (0 | 1 | 2)[];
24
- unshift(...items: (0 | 1 | 2)[]): number;
25
- indexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
26
- lastIndexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
27
- every<S extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S, thisArg?: any): this is S[];
28
- every(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
29
- some(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
30
- forEach(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => void, thisArg?: any): void;
31
- map<U>(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U, thisArg?: any): U[];
32
- filter<S_1 extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S_1, thisArg?: any): S_1[];
33
- filter(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): (0 | 1 | 2)[];
34
- reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
35
- reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
36
- reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_1, initialValue: U_1): U_1;
37
- reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
38
- reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
39
- reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_2, initialValue: U_2): U_2;
40
- find<S_2 extends 0 | 1 | 2>(predicate: (this: void, value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => value is S_2, thisArg?: any): S_2 | undefined;
41
- find(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): 0 | 1 | 2 | undefined;
42
- findIndex(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): number;
43
- fill(value: 0 | 1 | 2, start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
44
- copyWithin(target: number, start: number, end?: number | undefined): (0 | 1 | 2)[];
45
- entries(): IterableIterator<[number, 0 | 1 | 2]>;
18
+ reverse(): (0 | 2 | 1)[];
19
+ shift(): 0 | 2 | 1 | undefined;
20
+ slice(start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
21
+ sort(compareFn?: ((a: 0 | 2 | 1, b: 0 | 2 | 1) => number) | undefined): (0 | 2 | 1)[];
22
+ splice(start: number, deleteCount?: number | undefined): (0 | 2 | 1)[];
23
+ splice(start: number, deleteCount: number, ...items: (0 | 2 | 1)[]): (0 | 2 | 1)[];
24
+ unshift(...items: (0 | 2 | 1)[]): number;
25
+ indexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
26
+ lastIndexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
27
+ every<S extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S, thisArg?: any): this is S[];
28
+ every(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
29
+ some(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
30
+ forEach(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => void, thisArg?: any): void;
31
+ map<U>(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U, thisArg?: any): U[];
32
+ filter<S_1 extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S_1, thisArg?: any): S_1[];
33
+ filter(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): (0 | 2 | 1)[];
34
+ reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
35
+ reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
36
+ reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_1, initialValue: U_1): U_1;
37
+ reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
38
+ reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
39
+ reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_2, initialValue: U_2): U_2;
40
+ find<S_2 extends 0 | 2 | 1>(predicate: (this: void, value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => value is S_2, thisArg?: any): S_2 | undefined;
41
+ find(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): 0 | 2 | 1 | undefined;
42
+ findIndex(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): number;
43
+ fill(value: 0 | 2 | 1, start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
44
+ copyWithin(target: number, start: number, end?: number | undefined): (0 | 2 | 1)[];
45
+ entries(): IterableIterator<[number, 0 | 2 | 1]>;
46
46
  keys(): IterableIterator<number>;
47
- values(): IterableIterator<0 | 1 | 2>;
48
- includes(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): boolean;
49
- flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
47
+ values(): IterableIterator<0 | 2 | 1>;
48
+ includes(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): boolean;
49
+ flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
50
50
  flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
51
- at(index: number): 0 | 1 | 2 | undefined;
52
- [Symbol.iterator](): IterableIterator<0 | 1 | 2>;
51
+ at(index: number): 0 | 2 | 1 | undefined;
52
+ [Symbol.iterator](): IterableIterator<0 | 2 | 1>;
53
53
  [Symbol.unscopables](): {
54
54
  copyWithin: boolean;
55
55
  entries: boolean;
@@ -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-57b14b2b.js';
8
+ export { N as NavigationMenu } from './NavigationMenu-8c022497.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 './Actions-cd7fac99.js';
12
+ import './Actions-752d7514.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 }: {