@toptal/picasso-page 5.1.5 → 5.1.7

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 +1 @@
1
- {"version":3,"file":"PageTopBarMenu.d.ts","sourceRoot":"","sources":["../../../src/PageTopBarMenu/PageTopBarMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAevD,MAAM,WAAW,KAAM,SAAQ,SAAS,EAAE,cAAc,CAAC,cAAc,CAAC;IACtE,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,gBAAgB;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,cAAc,8EA0G1B,CAAA;AAMD,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"PageTopBarMenu.d.ts","sourceRoot":"","sources":["../../../src/PageTopBarMenu/PageTopBarMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAiC,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAavD,MAAM,WAAW,KAAM,SAAQ,SAAS,EAAE,cAAc,CAAC,cAAc,CAAC;IACtE,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,gBAAgB;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,cAAc,8EA8G1B,CAAA;AAMD,eAAe,cAAc,CAAA"}
@@ -10,37 +10,35 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React, { useContext, forwardRef } from 'react';
13
- import cx from 'classnames';
14
- import { makeStyles } from '@material-ui/core/styles';
15
13
  import { useBreakpoint } from '@toptal/picasso-utils';
16
14
  import { UserBadge } from '@toptal/picasso-user-badge';
17
15
  import { Avatar } from '@toptal/picasso-avatar';
18
16
  import { Typography } from '@toptal/picasso-typography';
19
17
  import { DropdownCompound as Dropdown } from '@toptal/picasso-dropdown';
20
18
  import { twJoin } from '@toptal/picasso-tailwind-merge';
21
- import styles from './styles';
22
19
  import { PageTopBarContext } from '../PageTopBar';
23
- const useStyles = makeStyles(styles, {
24
- name: 'PicassoTopBarMenu',
25
- });
20
+ const truncateTextClasses = 'max-w-[11.5rem] whitespace-nowrap overflow-hidden overflow-ellipsis';
26
21
  export const PageTopBarMenu = forwardRef(function PageTopBarMenu(props, ref) {
27
22
  const { name, meta, avatar, className, style, children, 'data-private': dataPrivate } = props, rest = __rest(props, ["name", "meta", "avatar", "className", "style", "children", 'data-private']);
28
- const classes = useStyles();
29
23
  const { variant } = useContext(PageTopBarContext);
30
24
  const invert = variant === 'light';
31
25
  const isCompactLayout = useBreakpoint(['xs', 'sm', 'md']);
32
- const metaContent = typeof meta === 'string' ? (React.createElement(Typography, { className: classes.truncateText, invert: !isCompactLayout && !invert, size: 'xsmall', "data-private": dataPrivate }, meta)) : (meta);
26
+ const metaContent = typeof meta === 'string' ? (React.createElement(Typography, { className: truncateTextClasses, invert: !isCompactLayout && !invert, size: 'xsmall', "data-private": dataPrivate }, meta)) : (meta);
33
27
  const content = isCompactLayout ? (React.createElement(React.Fragment, null,
34
28
  React.createElement(UserBadge, { center: true, size: 'xxsmall', "data-private": dataPrivate, classes: {
35
- root: classes.contentUserBadge,
36
- avatar: classes.avatar,
37
- name: cx('!font-[400]', classes.truncateText),
29
+ root: 'p-2 [z-index:1] bg-white relative',
30
+ avatar: 'text-[0.9rem]',
31
+ name: twJoin('font-[400]', truncateTextClasses),
38
32
  }, name: name, avatar: avatar }, meta && metaContent),
39
33
  children)) : (children);
40
34
  const trigger = isCompactLayout ? (React.createElement(Avatar, { size: 'xxsmall', "data-private": dataPrivate, name: name, src: avatar })) : (React.createElement(UserBadge, { invert: !invert, center: true, size: 'xxsmall', classes: {
41
- name: cx('!font-[400]', classes.truncateText),
35
+ name: twJoin('font-[400]', truncateTextClasses),
42
36
  }, name: name, "data-private": dataPrivate, avatar: avatar }, meta && metaContent));
43
- return (React.createElement(Dropdown, Object.assign({}, rest, { ref: ref, className: cx(classes.root, className), classes: { content: classes.content }, style: style, content: content, offset: { top: isCompactLayout ? 0.8 : 'xsmall' }, popperOptions: {
37
+ return (React.createElement(Dropdown, Object.assign({}, rest, { ref: ref, className: className, classes: {
38
+ content: twJoin(
39
+ // viewport minus header height
40
+ 'max-h-[calc(100vh-var(--header-height,3.5rem))]', 'w-[15em] xs:max-md:w-[100vw]'),
41
+ }, style: style, content: content, offset: { top: isCompactLayout ? 0.8 : 'xsmall' }, popperOptions: {
44
42
  modifiers: {
45
43
  flip: { enabled: false },
46
44
  preventOverflow: {
@@ -1 +1 @@
1
- {"version":3,"file":"PageTopBarMenu.js","sourceRoot":"","sources":["../../../src/PageTopBarMenu/PageTopBarMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAA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IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE;YACP,OAAO,EAAE,MAAM;YACb,+BAA+B;YAC/B,iDAAiD,EACjD,8BAA8B,CAC/B;SACF,EACD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,EAAE,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,EACjD,aAAa,EAAE;YACb,SAAS,EAAE;gBACT,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBACxB,eAAe,EAAE;oBACf,OAAO,EAAE,CAAC;iBACX;aACF;SACF;QAEA,OAAO;QACR,oBAAC,QAAQ,CAAC,KAAK,IACb,SAAS,EAAE,MAAM,CACf,gBAAgB,EAChB,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,CAC5C,GACD,CACO,CACZ,CAAA;AACH,CAAC,CACF,CAAA;AAED,cAAc,CAAC,YAAY,GAAG,EAAE,CAAA;AAEhC,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAA;AAE7C,eAAe,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-page",
3
- "version": "5.1.5",
3
+ "version": "5.1.7",
4
4
  "description": "Toptal UI components library - Page",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,17 +22,17 @@
22
22
  },
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
- "@toptal/picasso-accordion": "3.0.9",
26
- "@toptal/picasso-autocomplete": "5.0.10",
25
+ "@toptal/picasso-accordion": "3.0.10",
26
+ "@toptal/picasso-autocomplete": "5.0.11",
27
27
  "@toptal/picasso-avatar": "6.1.3",
28
28
  "@toptal/picasso-badge": "3.0.2",
29
- "@toptal/picasso-button": "4.0.10",
29
+ "@toptal/picasso-button": "4.0.11",
30
30
  "@toptal/picasso-container": "3.1.0",
31
31
  "@toptal/picasso-dropdown": "4.2.0",
32
32
  "@toptal/picasso-icons": "1.7.0",
33
33
  "@toptal/picasso-logo": "2.0.2",
34
34
  "@toptal/picasso-menu": "3.0.8",
35
- "@toptal/picasso-notification": "4.0.10",
35
+ "@toptal/picasso-notification": "4.0.11",
36
36
  "@toptal/picasso-shared": "15.0.0",
37
37
  "@toptal/picasso-tag": "4.0.3",
38
38
  "@toptal/picasso-tooltip": "2.0.0",
@@ -1,9 +1,6 @@
1
1
  /* eslint-disable complexity */
2
2
  import type { ReactNode, HTMLAttributes } from 'react'
3
3
  import React, { useContext, forwardRef } from 'react'
4
- import cx from 'classnames'
5
- import type { Theme } from '@material-ui/core/styles'
6
- import { makeStyles } from '@material-ui/core/styles'
7
4
  import type { BaseProps } from '@toptal/picasso-shared'
8
5
  import { useBreakpoint } from '@toptal/picasso-utils'
9
6
  import { UserBadge } from '@toptal/picasso-user-badge'
@@ -12,12 +9,10 @@ import { Typography } from '@toptal/picasso-typography'
12
9
  import { DropdownCompound as Dropdown } from '@toptal/picasso-dropdown'
13
10
  import { twJoin } from '@toptal/picasso-tailwind-merge'
14
11
 
15
- import styles from './styles'
16
12
  import { PageTopBarContext } from '../PageTopBar'
17
13
 
18
- const useStyles = makeStyles<Theme>(styles, {
19
- name: 'PicassoTopBarMenu',
20
- })
14
+ const truncateTextClasses =
15
+ 'max-w-[11.5rem] whitespace-nowrap overflow-hidden overflow-ellipsis'
21
16
 
22
17
  export interface Props extends BaseProps, HTMLAttributes<HTMLDivElement> {
23
18
  /** User full name to display */
@@ -42,8 +37,6 @@ export const PageTopBarMenu = forwardRef<HTMLDivElement, Props>(
42
37
  'data-private': dataPrivate,
43
38
  ...rest
44
39
  } = props
45
- const classes = useStyles()
46
-
47
40
  const { variant } = useContext(PageTopBarContext)
48
41
  const invert = variant === 'light'
49
42
 
@@ -52,7 +45,7 @@ export const PageTopBarMenu = forwardRef<HTMLDivElement, Props>(
52
45
  const metaContent =
53
46
  typeof meta === 'string' ? (
54
47
  <Typography
55
- className={classes.truncateText}
48
+ className={truncateTextClasses}
56
49
  invert={!isCompactLayout && !invert}
57
50
  size='xsmall'
58
51
  data-private={dataPrivate}
@@ -70,9 +63,9 @@ export const PageTopBarMenu = forwardRef<HTMLDivElement, Props>(
70
63
  size='xxsmall'
71
64
  data-private={dataPrivate}
72
65
  classes={{
73
- root: classes.contentUserBadge,
74
- avatar: classes.avatar,
75
- name: cx('!font-[400]', classes.truncateText),
66
+ root: 'p-2 [z-index:1] bg-white relative',
67
+ avatar: 'text-[0.9rem]',
68
+ name: twJoin('font-[400]', truncateTextClasses),
76
69
  }}
77
70
  name={name}
78
71
  avatar={avatar}
@@ -98,7 +91,7 @@ export const PageTopBarMenu = forwardRef<HTMLDivElement, Props>(
98
91
  center
99
92
  size='xxsmall'
100
93
  classes={{
101
- name: cx('!font-[400]', classes.truncateText),
94
+ name: twJoin('font-[400]', truncateTextClasses),
102
95
  }}
103
96
  name={name}
104
97
  data-private={dataPrivate}
@@ -112,8 +105,14 @@ export const PageTopBarMenu = forwardRef<HTMLDivElement, Props>(
112
105
  <Dropdown
113
106
  {...rest}
114
107
  ref={ref}
115
- className={cx(classes.root, className)}
116
- classes={{ content: classes.content }}
108
+ className={className}
109
+ classes={{
110
+ content: twJoin(
111
+ // viewport minus header height
112
+ 'max-h-[calc(100vh-var(--header-height,3.5rem))]',
113
+ 'w-[15em] xs:max-md:w-[100vw]'
114
+ ),
115
+ }}
117
116
  style={style}
118
117
  content={content}
119
118
  offset={{ top: isCompactLayout ? 0.8 : 'xsmall' }}
@@ -36,7 +36,7 @@ exports[`PageTopBarMenu renders 1`] = `
36
36
  class="items-center flex"
37
37
  >
38
38
  <h4
39
- class="m-0 text-md text-white font-semibold inline !font-[400] PicassoTopBarMenu-truncateText"
39
+ class="m-0 text-md text-white inline font-[400] max-w whitespace-nowrap overflow-hidden overflow-ellipsis"
40
40
  >
41
41
  Jacqueline Roque
42
42
  </h4>
@@ -1,4 +0,0 @@
1
- import type { Theme } from '@material-ui/core/styles';
2
- declare const _default: ({ screens }: Theme) => import("@material-ui/styles").StyleRules<{}, "content" | "name" | "avatar" | "contentUserBadge" | "truncateText" | "paper">;
3
- export default _default;
4
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/PageTopBarMenu/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;sCAGxB,KAAK;AAAlC,wBAmCI"}
@@ -1,37 +0,0 @@
1
- import { createStyles } from '@material-ui/core/styles';
2
- export default ({ screens }) => createStyles({
3
- avatar: {
4
- fontSize: '0.9rem',
5
- },
6
- contentUserBadge: {
7
- [screens('xs', 'sm', 'md')]: {
8
- padding: '1em',
9
- zIndex: 1,
10
- backgroundColor: 'white',
11
- position: 'relative',
12
- },
13
- },
14
- content: {
15
- maxHeight: `calc(100vh - var(--header-height, 3.5rem))`,
16
- width: '15em',
17
- [screens('xs', 'sm')]: {
18
- width: '100vw',
19
- },
20
- },
21
- name: {
22
- fontWeight: 400,
23
- display: 'block',
24
- },
25
- truncateText: {
26
- maxWidth: '11.5rem',
27
- whiteSpace: 'nowrap',
28
- overflow: 'hidden',
29
- textOverflow: 'ellipsis',
30
- },
31
- paper: {
32
- [screens('xs', 'sm', 'md')]: {
33
- top: '2.5em !important',
34
- },
35
- },
36
- });
37
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/PageTopBarMenu/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,eAAe,CAAC,EAAE,OAAO,EAAS,EAAE,EAAE,CACpC,YAAY,CAAC;IACX,MAAM,EAAE;QACN,QAAQ,EAAE,QAAQ;KACnB;IACD,gBAAgB,EAAE;QAChB,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;YAC3B,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,CAAC;YACT,eAAe,EAAE,OAAO;YACxB,QAAQ,EAAE,UAAU;SACrB;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAE,4CAA4C;QACvD,KAAK,EAAE,MAAM;QACb,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;YACrB,KAAK,EAAE,OAAO;SACf;KACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,GAAG;QACf,OAAO,EAAE,OAAO;KACjB;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,UAAU;KACzB;IACD,KAAK,EAAE;QACL,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;YAC3B,GAAG,EAAE,kBAAkB;SACxB;KACF;CACF,CAAC,CAAA"}
@@ -1,39 +0,0 @@
1
- import type { Theme } from '@material-ui/core/styles'
2
- import { createStyles } from '@material-ui/core/styles'
3
-
4
- export default ({ screens }: Theme) =>
5
- createStyles({
6
- avatar: {
7
- fontSize: '0.9rem',
8
- },
9
- contentUserBadge: {
10
- [screens('xs', 'sm', 'md')]: {
11
- padding: '1em',
12
- zIndex: 1,
13
- backgroundColor: 'white',
14
- position: 'relative',
15
- },
16
- },
17
- content: {
18
- maxHeight: `calc(100vh - var(--header-height, 3.5rem))`, // viewport minus header height
19
- width: '15em',
20
- [screens('xs', 'sm')]: {
21
- width: '100vw',
22
- },
23
- },
24
- name: {
25
- fontWeight: 400,
26
- display: 'block',
27
- },
28
- truncateText: {
29
- maxWidth: '11.5rem',
30
- whiteSpace: 'nowrap',
31
- overflow: 'hidden',
32
- textOverflow: 'ellipsis',
33
- },
34
- paper: {
35
- [screens('xs', 'sm', 'md')]: {
36
- top: '2.5em !important',
37
- },
38
- },
39
- })