@toptal/picasso-page 1.0.9-alpha-fx-test-types-1d49cb239.2 → 1.0.9

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.
@@ -1,24 +1,31 @@
1
- import { PageTopBarCompound as PageTopBar } from '../PageTopBarCompound';
2
- import { PageTopBarMenu } from '../PageTopBarMenu';
3
- import { PageSidebar } from '../PageSidebar';
4
- import Page from '../Page';
5
- import { PageHelmet } from '../PageHelmet';
6
- import { PageFooter } from '../PageFooter';
7
- import { PageContent } from '../PageContent';
8
- import { PageBanner } from '../PageBanner';
9
- import { PageAutocomplete } from '../PageAutocomplete';
10
- import { PageArticle } from '../PageArticle';
11
- declare type PageCompoundType = typeof Page & {
12
- TopBar: typeof PageTopBar;
13
- TopBarMenu: typeof PageTopBarMenu;
14
- Content: typeof PageContent;
15
- Footer: typeof PageFooter;
16
- Sidebar: typeof PageSidebar;
17
- Banner: typeof PageBanner;
18
- Helmet: typeof PageHelmet;
19
- Autocomplete: typeof PageAutocomplete;
20
- Article: typeof PageArticle;
1
+ /// <reference types="react" />
2
+ export declare const PageCompound: import("react").ForwardRefExoticComponent<import("../Page/Page").Props & import("react").RefAttributes<HTMLDivElement>> & {
3
+ TopBar: import("react").ForwardRefExoticComponent<import("../PageTopBar/PageTopBar").Props & import("react").RefAttributes<HTMLElement>> & {
4
+ Menu: import("react").ForwardRefExoticComponent<import("..").TopBarMenuProps & import("react").RefAttributes<HTMLUListElement>>;
5
+ Item: import("packages/shared/dist-package/src").OverridableComponent<import("../TopBarItem/TopBarItem").Props>;
6
+ };
7
+ TopBarMenu: import("react").ForwardRefExoticComponent<import("../PageTopBarMenu/PageTopBarMenu").Props & import("react").RefAttributes<HTMLDivElement>>;
8
+ Content: import("react").ForwardRefExoticComponent<import("../PageContent/PageContent").Props & import("react").RefAttributes<HTMLDivElement>>;
9
+ Footer: import("react").ForwardRefExoticComponent<import("../PageFooter/PageFooter").Props & import("react").RefAttributes<HTMLElement>>;
10
+ Sidebar: import("react").ForwardRefExoticComponent<import("../PageSidebar/PageSidebar").Props & import("react").RefAttributes<HTMLDivElement>> & {
11
+ Menu: import("react").ForwardRefExoticComponent<import("../SidebarMenu/SidebarMenu").Props & import("react").RefAttributes<HTMLUListElement>>;
12
+ Item: import("packages/shared/dist-package/src").OverridableComponent<import("../SidebarItem/types").Props>;
13
+ Logo: import("react").ForwardRefExoticComponent<import("../SidebarLogo/SidebarLogo").Props & import("react").RefAttributes<HTMLDivElement>>;
14
+ };
15
+ Banner: import("react").ForwardRefExoticComponent<import("../PageBanner/PageBanner").Props & import("react").RefAttributes<HTMLDivElement>> & {
16
+ Actions: import("react").ForwardRefExoticComponent<import("packages/base/Notification/dist-package/src/NotificationActions/NotificationActions").Props & import("react").RefAttributes<HTMLDivElement>>;
17
+ };
18
+ Helmet: {
19
+ (props: import("../PageHelmet").Props): JSX.Element;
20
+ displayName: string;
21
+ };
22
+ Autocomplete: {
23
+ ({ variant, testIds, ...rest }: import("../PageAutocomplete/PageAutocomplete").Props): JSX.Element;
24
+ displayName: string;
25
+ defaultProps: {
26
+ variant: string;
27
+ };
28
+ };
29
+ Article: import("packages/shared/dist-package/src").OverridableComponent<import("../PageArticle/PageArticle").Props>;
21
30
  };
22
- export declare const PageCompound: PageCompoundType;
23
- export {};
24
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PageCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,aAAK,gBAAgB,GAAG,OAAO,IAAI,GAAG;IACpC,MAAM,EAAE,OAAO,UAAU,CAAA;IACzB,UAAU,EAAE,OAAO,cAAc,CAAA;IACjC,OAAO,EAAE,OAAO,WAAW,CAAA;IAC3B,MAAM,EAAE,OAAO,UAAU,CAAA;IACzB,OAAO,EAAE,OAAO,WAAW,CAAA;IAC3B,MAAM,EAAE,OAAO,UAAU,CAAA;IACzB,MAAM,EAAE,OAAO,UAAU,CAAA;IACzB,YAAY,EAAE,OAAO,gBAAgB,CAAA;IACrC,OAAO,EAAE,OAAO,WAAW,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,gBAUzB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PageCompound/index.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/PageCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AA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AAE,WAAW;IACpB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,gBAAgB;IAC9B,OAAO,EAAE,WAAW;CACrB,CAAC,CAAA"}
@@ -1,10 +1,6 @@
1
- import { PageTopBar } from '../PageTopBar';
2
- import { TopBarMenu } from '../TopBarMenu';
3
- import { TopBarItem } from '../TopBarItem';
4
- declare type PageTopBarCompoundType = typeof PageTopBar & {
5
- Menu: typeof TopBarMenu;
6
- Item: typeof TopBarItem;
1
+ /// <reference types="react" />
2
+ export declare const PageTopBarCompound: import("react").ForwardRefExoticComponent<import("../PageTopBar/PageTopBar").Props & import("react").RefAttributes<HTMLElement>> & {
3
+ Menu: import("react").ForwardRefExoticComponent<import("../TopBarMenu").TopBarMenuProps & import("react").RefAttributes<HTMLUListElement>>;
4
+ Item: import("packages/shared/dist-package/src").OverridableComponent<import("../TopBarItem/TopBarItem").Props>;
7
5
  };
8
- export declare const PageTopBarCompound: PageTopBarCompoundType;
9
- export {};
10
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PageTopBarCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,aAAK,sBAAsB,GAAG,OAAO,UAAU,GAAG;IAChD,IAAI,EAAE,OAAO,UAAU,CAAA;IACvB,IAAI,EAAE,OAAO,UAAU,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,sBAMhC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PageTopBarCompound/index.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,kBAAkB;;;CAG7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/PageTopBarCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAO1C,MAAM,CAAC,MAAM,kBAAkB,GAA2B,MAAM,CAAC,MAAM,CACrE,UAAU,EACV;IACE,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;CACjB,CACF,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/PageTopBarCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;IAC1D,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;CACjB,CAAC,CAAA"}
@@ -1,6 +1,7 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ElementType, ReactElement } from 'react';
2
2
  import type React from 'react';
3
3
  import type { BaseProps, TextLabelProps } from '@toptal/picasso-shared';
4
+ import type { MenuItemProps } from '@material-ui/core/MenuItem';
4
5
  import type { MenuItemAttributes } from '@toptal/picasso-menu';
5
6
  import type { VariantType } from '../PageSidebar/types';
6
7
  import type { SidebarTagProps, SidebarBadgeProps } from '../SidebarItemContent/types';
@@ -15,6 +16,8 @@ export interface Props extends BaseProps, TextLabelProps, MenuItemAttributes {
15
16
  collapsible?: boolean;
16
17
  /** Renders nested sidebar menu */
17
18
  menu?: ReactElement;
19
+ /** Component name to render the menu item as */
20
+ as?: ElementType<MenuItemProps>;
18
21
  /** Definition of the embedded badge */
19
22
  badge?: number | SidebarBadgeProps;
20
23
  /** Render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AK,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAClC,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,GAAG,eAAe,CAAA;IAC9B,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IACpE,oCAAoC;IACpC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IACzE,8HAA8H;IAC9H,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF"}
@@ -1,11 +1,14 @@
1
1
  import type { BaseProps, TextLabelProps, OverridableComponent } from '@toptal/picasso-shared';
2
- import type { ReactElement } from 'react';
2
+ import type { ElementType, ReactElement } from 'react';
3
3
  import React from 'react';
4
+ import type { MenuItemProps } from '@material-ui/core/MenuItem';
4
5
  export interface Props extends BaseProps, TextLabelProps {
5
6
  /** Pass icon to be used as part of item */
6
7
  icon?: ReactElement;
7
8
  /** Highlights the item as selected */
8
9
  selected?: boolean;
10
+ /** Component name to render the menu item as */
11
+ as?: ElementType<MenuItemProps>;
9
12
  /** Callback when item is clicked */
10
13
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
11
14
  /** Callback when item is hovered */
@@ -1 +1 @@
1
- {"version":3,"file":"TopBarItem.d.ts","sourceRoot":"","sources":["../../../src/TopBarItem/TopBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAA2B,MAAM,OAAO,CAAA;AAS/C,MAAM,WAAW,KAAM,SAAQ,SAAS,EAAE,cAAc;IACtD,2CAA2C;IAC3C,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IACpE,oCAAoC;IACpC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;CAC1E;AAID,eAAO,MAAM,UAAU,EAAE,oBAAoB,CAAC,KAAK,CAgBlD,CAAA;AASD,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"TopBarItem.d.ts","sourceRoot":"","sources":["../../../src/TopBarItem/TopBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAA2B,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAS/D,MAAM,WAAW,KAAM,SAAQ,SAAS,EAAE,cAAc;IACtD,2CAA2C;IAC3C,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gDAAgD;IAChD,E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AG,EAAE,GAAG,IACR,CACH,CAAA;AACH,CAAC,CAAC,CACH,CAAA;AAED,UAAU,CAAC,YAAY,GAAG;IACxB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,KAAK;CAChB,CAAA;AAED,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA;AAErC,eAAe,UAAU,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-page",
3
- "version": "1.0.9-alpha-fx-test-types-1d49cb239.2+1d49cb239",
3
+ "version": "1.0.9",
4
4
  "description": "Toptal UI components library - Page",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,25 +22,25 @@
22
22
  },
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
- "@toptal/picasso-accordion": "1.0.6-alpha-fx-test-types-1d49cb239.2+1d49cb239",
26
- "@toptal/picasso-autocomplete": "1.0.7-alpha-fx-test-types-1d49cb239.2+1d49cb239",
27
- "@toptal/picasso-avatar": "1.0.4-alpha-fx-test-types-1d49cb239.2+1d49cb239",
28
- "@toptal/picasso-badge": "1.0.3-alpha-fx-test-types-1d49cb239.17+1d49cb239",
29
- "@toptal/picasso-button": "1.0.6-alpha-fx-test-types-1d49cb239.2+1d49cb239",
30
- "@toptal/picasso-container": "1.0.3-alpha-fx-test-types-1d49cb239.17+1d49cb239",
31
- "@toptal/picasso-dropdown": "1.0.4-alpha-fx-test-types-1d49cb239.17+1d49cb239",
32
- "@toptal/picasso-icons": "1.0.3-alpha-fx-test-types-1d49cb239.17+1d49cb239",
33
- "@toptal/picasso-logo": "1.0.3-alpha-fx-test-types-1d49cb239.17+1d49cb239",
34
- "@toptal/picasso-menu": "1.0.6-alpha-fx-test-types-1d49cb239.2+1d49cb239",
35
- "@toptal/picasso-notification": "1.0.6-alpha-fx-test-types-1d49cb239.2+1d49cb239",
36
- "@toptal/picasso-shared": "14.0.2-alpha-fx-test-types-1d49cb239.17+1d49cb239",
37
- "@toptal/picasso-tag": "1.0.4-alpha-fx-test-types-1d49cb239.2+1d49cb239",
38
- "@toptal/picasso-tooltip": "1.1.1-alpha-fx-test-types-1d49cb239.6+1d49cb239",
39
- "@toptal/picasso-typography": "1.0.3-alpha-fx-test-types-1d49cb239.17+1d49cb239",
40
- "@toptal/picasso-user-badge": "1.0.4-alpha-fx-test-types-1d49cb239.2+1d49cb239",
41
- "@toptal/picasso-utils": "1.0.3-alpha-fx-test-types-1d49cb239.17+1d49cb239",
42
- "classnames": "^2.5.1",
43
- "react-dom": "^18.2.0"
25
+ "@toptal/picasso-accordion": "1.0.6",
26
+ "@toptal/picasso-autocomplete": "1.0.7",
27
+ "@toptal/picasso-avatar": "1.0.4",
28
+ "@toptal/picasso-badge": "1.0.2",
29
+ "@toptal/picasso-button": "1.0.6",
30
+ "@toptal/picasso-container": "1.0.2",
31
+ "@toptal/picasso-dropdown": "1.0.3",
32
+ "@toptal/picasso-icons": "1.0.2",
33
+ "@toptal/picasso-logo": "1.0.2",
34
+ "@toptal/picasso-menu": "1.0.6",
35
+ "@toptal/picasso-notification": "1.0.6",
36
+ "@toptal/picasso-shared": "14.0.1",
37
+ "@toptal/picasso-tag": "1.0.4",
38
+ "@toptal/picasso-tooltip": "1.1.0",
39
+ "@toptal/picasso-typography": "1.0.2",
40
+ "@toptal/picasso-user-badge": "1.0.4",
41
+ "@toptal/picasso-utils": "1.0.2",
42
+ "react-dom": "^18.2.0",
43
+ "classnames": "^2.5.1"
44
44
  },
45
45
  "sideEffects": [
46
46
  "**/styles.ts",
@@ -52,8 +52,8 @@
52
52
  "react": ">=16.12.0 < 19.0.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@toptal/picasso-provider": "4.1.1-alpha-fx-test-types-1d49cb239.39+1d49cb239",
56
- "@toptal/picasso-test-utils": "1.1.1-alpha-fx-test-types-1d49cb239.9+1d49cb239",
55
+ "@toptal/picasso-provider": "4.1.0",
56
+ "@toptal/picasso-test-utils": "1.1.0",
57
57
  "styled-components": "^6.1.1"
58
58
  },
59
59
  "exports": {
@@ -63,6 +63,5 @@
63
63
  "dist-package/**",
64
64
  "!dist-package/tsconfig.tsbuildinfo",
65
65
  "src"
66
- ],
67
- "gitHead": "1d49cb23934eaced5cf2e5ec9374dc8eea383a05"
66
+ ]
68
67
  }
@@ -9,19 +9,7 @@ import { PageBanner } from '../PageBanner'
9
9
  import { PageAutocomplete } from '../PageAutocomplete'
10
10
  import { PageArticle } from '../PageArticle'
11
11
 
12
- type PageCompoundType = typeof Page & {
13
- TopBar: typeof PageTopBar
14
- TopBarMenu: typeof PageTopBarMenu
15
- Content: typeof PageContent
16
- Footer: typeof PageFooter
17
- Sidebar: typeof PageSidebar
18
- Banner: typeof PageBanner
19
- Helmet: typeof PageHelmet
20
- Autocomplete: typeof PageAutocomplete
21
- Article: typeof PageArticle
22
- }
23
-
24
- export const PageCompound: PageCompoundType = Object.assign(Page, {
12
+ export const PageCompound = Object.assign(Page, {
25
13
  TopBar: PageTopBar,
26
14
  TopBarMenu: PageTopBarMenu,
27
15
  Content: PageContent,
@@ -2,15 +2,7 @@ import { PageTopBar } from '../PageTopBar'
2
2
  import { TopBarMenu } from '../TopBarMenu'
3
3
  import { TopBarItem } from '../TopBarItem'
4
4
 
5
- type PageTopBarCompoundType = typeof PageTopBar & {
6
- Menu: typeof TopBarMenu
7
- Item: typeof TopBarItem
8
- }
9
-
10
- export const PageTopBarCompound: PageTopBarCompoundType = Object.assign(
11
- PageTopBar,
12
- {
13
- Menu: TopBarMenu,
14
- Item: TopBarItem,
15
- }
16
- )
5
+ export const PageTopBarCompound = Object.assign(PageTopBar, {
6
+ Menu: TopBarMenu,
7
+ Item: TopBarItem,
8
+ })
@@ -1,6 +1,7 @@
1
- import type { ReactElement } from 'react'
1
+ import type { ElementType, ReactElement } from 'react'
2
2
  import type React from 'react'
3
3
  import type { BaseProps, TextLabelProps } from '@toptal/picasso-shared'
4
+ import type { MenuItemProps } from '@material-ui/core/MenuItem'
4
5
  import type { MenuItemAttributes } from '@toptal/picasso-menu'
5
6
 
6
7
  import type { VariantType } from '../PageSidebar/types'
@@ -20,6 +21,8 @@ export interface Props extends BaseProps, TextLabelProps, MenuItemAttributes {
20
21
  collapsible?: boolean
21
22
  /** Renders nested sidebar menu */
22
23
  menu?: ReactElement
24
+ /** Component name to render the menu item as */
25
+ as?: ElementType<MenuItemProps>
23
26
  /** Definition of the embedded badge */
24
27
  badge?: number | SidebarBadgeProps
25
28
  /** Render Tag.Rectangular */
@@ -3,8 +3,9 @@ import type {
3
3
  TextLabelProps,
4
4
  OverridableComponent,
5
5
  } from '@toptal/picasso-shared'
6
- import type { ReactElement } from 'react'
6
+ import type { ElementType, ReactElement } from 'react'
7
7
  import React, { forwardRef, memo } from 'react'
8
+ import type { MenuItemProps } from '@material-ui/core/MenuItem'
8
9
  import type { Theme } from '@material-ui/core/styles'
9
10
  import { makeStyles } from '@material-ui/core/styles'
10
11
  import cx from 'classnames'
@@ -18,6 +19,8 @@ export interface Props extends BaseProps, TextLabelProps {
18
19
  icon?: ReactElement
19
20
  /** Highlights the item as selected */
20
21
  selected?: boolean
22
+ /** Component name to render the menu item as */
23
+ as?: ElementType<MenuItemProps>
21
24
  /** Callback when item is clicked */
22
25
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void
23
26
  /** Callback when item is hovered */
package/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021-2022 Toptal, LLC
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the “Software”), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.