@toptal/picasso-page 1.0.8 → 1.0.9-alpha-fx-test-types-1d49cb239.2
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.
- package/LICENSE +20 -0
- package/dist-package/src/SidebarItem/types.d.ts +1 -4
- package/dist-package/src/SidebarItem/types.d.ts.map +1 -1
- package/dist-package/src/TopBarItem/TopBarItem.d.ts +1 -4
- package/dist-package/src/TopBarItem/TopBarItem.d.ts.map +1 -1
- package/dist-package/src/TopBarItem/TopBarItem.js.map +1 -1
- package/package.json +24 -23
- package/src/SidebarItem/types.ts +1 -4
- package/src/TopBarItem/TopBarItem.tsx +1 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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';
|
|
5
4
|
import type { MenuItemAttributes } from '@toptal/picasso-menu';
|
|
6
5
|
import type { VariantType } from '../PageSidebar/types';
|
|
7
6
|
import type { SidebarTagProps, SidebarBadgeProps } from '../SidebarItemContent/types';
|
|
@@ -16,8 +15,6 @@ export interface Props extends BaseProps, TextLabelProps, MenuItemAttributes {
|
|
|
16
15
|
collapsible?: boolean;
|
|
17
16
|
/** Renders nested sidebar menu */
|
|
18
17
|
menu?: ReactElement;
|
|
19
|
-
/** Component name to render the menu item as */
|
|
20
|
-
as?: ElementType<MenuItemProps>;
|
|
21
18
|
/** Definition of the embedded badge */
|
|
22
19
|
badge?: number | SidebarBadgeProps;
|
|
23
20
|
/** Render Tag.Rectangular */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/SidebarItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/SidebarItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,K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asso-shared';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import type { MenuItemProps } from '@material-ui/core/MenuItem';
|
|
5
4
|
export interface Props extends BaseProps, TextLabelProps {
|
|
6
5
|
/** Pass icon to be used as part of item */
|
|
7
6
|
icon?: ReactElement;
|
|
8
7
|
/** Highlights the item as selected */
|
|
9
8
|
selected?: boolean;
|
|
10
|
-
/** Component name to render the menu item as */
|
|
11
|
-
as?: ElementType<MenuItemProps>;
|
|
12
9
|
/** Callback when item is clicked */
|
|
13
10
|
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
14
11
|
/** 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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBarItem.js","sourceRoot":"","sources":["../../../src/TopBarItem/TopBarItem.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TopBarItem.js","sourceRoot":"","sources":["../../../src/TopBarItem/TopBarItem.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,MAAM,MAAM,UAAU,CAAA;AAa7B,MAAM,SAAS,GAAG,UAAU,CAAQ,MAAM,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAA;AAE9E,MAAM,CAAC,MAAM,UAAU,GAAgC,IAAI,CACzD,UAAU,CAAqB,SAAS,UAAU,CAAC,KAAK,EAAE,GAAG;IAC3D,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;IACjC,MAAM,OAAO,GAAG,SAAS,EAAE,CAAA;IAE3B,OAAO,CACL,oBAAC,WAAW,oBACN,KAAK,IACT,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE;YACrC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ;YAClC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI;SACrB,CAAC,EACF,GAAG,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.
|
|
3
|
+
"version": "1.0.9-alpha-fx-test-types-1d49cb239.2+1d49cb239",
|
|
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.
|
|
26
|
-
"@toptal/picasso-autocomplete": "1.0.
|
|
27
|
-
"@toptal/picasso-avatar": "1.0.
|
|
28
|
-
"@toptal/picasso-badge": "1.0.
|
|
29
|
-
"@toptal/picasso-button": "1.0.
|
|
30
|
-
"@toptal/picasso-container": "1.0.
|
|
31
|
-
"@toptal/picasso-dropdown": "1.0.
|
|
32
|
-
"@toptal/picasso-icons": "1.0.
|
|
33
|
-
"@toptal/picasso-logo": "1.0.
|
|
34
|
-
"@toptal/picasso-menu": "1.0.
|
|
35
|
-
"@toptal/picasso-notification": "1.0.
|
|
36
|
-
"@toptal/picasso-shared": "14.0.
|
|
37
|
-
"@toptal/picasso-tag": "1.0.
|
|
38
|
-
"@toptal/picasso-tooltip": "1.1.
|
|
39
|
-
"@toptal/picasso-typography": "1.0.
|
|
40
|
-
"@toptal/picasso-user-badge": "1.0.
|
|
41
|
-
"@toptal/picasso-utils": "1.0.
|
|
42
|
-
"
|
|
43
|
-
"
|
|
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"
|
|
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.
|
|
56
|
-
"@toptal/picasso-test-utils": "1.1.
|
|
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",
|
|
57
57
|
"styled-components": "^6.1.1"
|
|
58
58
|
},
|
|
59
59
|
"exports": {
|
|
@@ -63,5 +63,6 @@
|
|
|
63
63
|
"dist-package/**",
|
|
64
64
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
65
65
|
"src"
|
|
66
|
-
]
|
|
66
|
+
],
|
|
67
|
+
"gitHead": "1d49cb23934eaced5cf2e5ec9374dc8eea383a05"
|
|
67
68
|
}
|
package/src/SidebarItem/types.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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'
|
|
5
4
|
import type { MenuItemAttributes } from '@toptal/picasso-menu'
|
|
6
5
|
|
|
7
6
|
import type { VariantType } from '../PageSidebar/types'
|
|
@@ -21,8 +20,6 @@ export interface Props extends BaseProps, TextLabelProps, MenuItemAttributes {
|
|
|
21
20
|
collapsible?: boolean
|
|
22
21
|
/** Renders nested sidebar menu */
|
|
23
22
|
menu?: ReactElement
|
|
24
|
-
/** Component name to render the menu item as */
|
|
25
|
-
as?: ElementType<MenuItemProps>
|
|
26
23
|
/** Definition of the embedded badge */
|
|
27
24
|
badge?: number | SidebarBadgeProps
|
|
28
25
|
/** Render Tag.Rectangular */
|
|
@@ -3,9 +3,8 @@ import type {
|
|
|
3
3
|
TextLabelProps,
|
|
4
4
|
OverridableComponent,
|
|
5
5
|
} from '@toptal/picasso-shared'
|
|
6
|
-
import type {
|
|
6
|
+
import type { ReactElement } from 'react'
|
|
7
7
|
import React, { forwardRef, memo } from 'react'
|
|
8
|
-
import type { MenuItemProps } from '@material-ui/core/MenuItem'
|
|
9
8
|
import type { Theme } from '@material-ui/core/styles'
|
|
10
9
|
import { makeStyles } from '@material-ui/core/styles'
|
|
11
10
|
import cx from 'classnames'
|
|
@@ -19,8 +18,6 @@ export interface Props extends BaseProps, TextLabelProps {
|
|
|
19
18
|
icon?: ReactElement
|
|
20
19
|
/** Highlights the item as selected */
|
|
21
20
|
selected?: boolean
|
|
22
|
-
/** Component name to render the menu item as */
|
|
23
|
-
as?: ElementType<MenuItemProps>
|
|
24
21
|
/** Callback when item is clicked */
|
|
25
22
|
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void
|
|
26
23
|
/** Callback when item is hovered */
|