frst-components 0.32.9 → 0.33.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.
package/dist/index.js CHANGED
@@ -13963,6 +13963,66 @@ const TextNotification = styled__default["default"].p `
13963
13963
  :active {
13964
13964
  font-weight: bold;
13965
13965
  }
13966
+ `;
13967
+ const TolltipTopbar = styled__default["default"].div `
13968
+ background: #fff;
13969
+ border-radius: 4px;
13970
+ border: 1px solid #bdbdbd;
13971
+ font-family: 'PT Sans';
13972
+ font-style: normal;
13973
+ font-weight: 400;
13974
+ font-size: 14px;
13975
+ line-height: 18px;
13976
+ color: #757575;
13977
+ box-shadow: 0px 25px 18px -20px rgba(34, 34, 34, 0.2);
13978
+ padding: 6px;
13979
+ position: absolute;
13980
+ width: 205px;
13981
+ height: 54px;
13982
+ right: 145px;
13983
+ text-align: center;
13984
+ top: 24px;
13985
+
13986
+
13987
+ &::before {
13988
+ content: '';
13989
+ position: absolute;
13990
+ top: -15px;
13991
+ right: 10px; /* Ajuste conforme necessário */
13992
+ border-width: 8px;
13993
+ border-style: solid;
13994
+ border-color: transparent transparent #fff transparent;
13995
+ }
13996
+
13997
+
13998
+ @media screen and (max-width: 1199px) {
13999
+ width: 205px;
14000
+ right: 28px;;
14001
+ font-size: 14px;
14002
+
14003
+ &::before {
14004
+ right: 15px;
14005
+ }
14006
+ }
14007
+
14008
+ @media screen and (min-width: 1200px) and (max-width: 1320px) {
14009
+ width: 205px;
14010
+ right: 28px;
14011
+ font-size: 14px;
14012
+
14013
+ &::before {
14014
+ right: 15px;
14015
+ }
14016
+ }
14017
+ @media screen and (min-width: 1321px) {
14018
+ width: 205px;
14019
+ right: 28px;
14020
+ font-size: 14px;
14021
+
14022
+ &::before {
14023
+ right: 15px;
14024
+ }
14025
+ }
13966
14026
  `;
13967
14027
 
13968
14028
  const Container$c = styled__default["default"].div `
@@ -14789,6 +14849,7 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
14789
14849
  const [SelectedItem, setSelectedItem] = React.useState();
14790
14850
  const [isTabletVersion, setIsTabletVersion] = React.useState(false);
14791
14851
  const [HideHambMenu, setHideHambMenu] = React.useState(false);
14852
+ const [showTooltipHelp, setShowTooltipHelp] = React.useState(false);
14792
14853
  const [hasNewNotification, setHasNewNotification] = React.useState(false);
14793
14854
  const [updatedNotificationList, setUpdatedNotificationList] = React.useState([]);
14794
14855
  React.useEffect(() => {
@@ -15005,7 +15066,7 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
15005
15066
  }, children: [jsxRuntime.jsx(IconNotification, { fill: FRSTTheme['colors'].shadeWhite }), ' ', hasNewNotification ? (jsxRuntime.jsxs("div", { style: { marginLeft: '-12px' }, children: [' ', jsxRuntime.jsx(HasNotificationIcon, {}), ' '] })) : null] }), windowSize[0] > 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: false, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })), jsxRuntime.jsx(DropdownProfileMenu, { variant: "LXP", user: user, profileMenuText: profileMenuText, handleProfileMenuClick: onClickProfileMenuText, menuItems: user && user.menuItems, isMobileVersion: isMobileVersion, hiddenProfileMenu: hiddenProfileMenu, showProfile: showProfile, style: {
15006
15067
  marginLeft: isMobileVersion ? '0px' : '5px',
15007
15068
  marginRight: isMobileVersion ? '0px' : '5px'
15008
- } }), showNavigation && (jsxRuntime.jsxs(Navigation, { onClick: onClickNavigation, children: [jsxRuntime.jsx(HandWave, {}), jsxRuntime.jsx(TextNotification, { children: "Ajuda" })] })), showHelp && (jsxRuntime.jsxs(Help, { onClick: onClickHelp, children: [jsxRuntime.jsx(HelpIcon, {}), jsxRuntime.jsx(TextNotification, { children: "Suporte" })] }))] })] }) }), openNotificationMobile && windowSize[0] <= 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })) : (jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'column', ...style }, children: jsxRuntime.jsxs(MenuContainer, { variant: variant, style: { ...style, display: 'none' }, children: [jsxRuntime.jsx(WrapperLogo, { onClick: () => onClickLogo(), children: jsxRuntime.jsx(FRSTLogo, { height: "28" }) }), jsxRuntime.jsx(WrapperMenu, { children: menu &&
15069
+ } }), showNavigation && (jsxRuntime.jsxs(Navigation, { onClick: onClickNavigation, children: [jsxRuntime.jsx(HandWave, {}), jsxRuntime.jsx(TextNotification, { children: "Ajuda" })] })), showHelp && (jsxRuntime.jsxs(Help, { onClick: onClickHelp, onMouseEnter: () => setShowTooltipHelp(true), onMouseLeave: () => setShowTooltipHelp(false), children: [jsxRuntime.jsx(HelpIcon, {}), jsxRuntime.jsx(TextNotification, { children: "Suporte" })] })), showTooltipHelp && (jsxRuntime.jsx("div", { id: "cardAjuda", style: { position: 'relative' }, children: jsxRuntime.jsx(TolltipTopbar, { children: "Clique aqui para tirar suas d\u00FAvidas com o nosso suporte." }) }))] })] }) }), openNotificationMobile && windowSize[0] <= 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })) : (jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'column', ...style }, children: jsxRuntime.jsxs(MenuContainer, { variant: variant, style: { ...style, display: 'none' }, children: [jsxRuntime.jsx(WrapperLogo, { onClick: () => onClickLogo(), children: jsxRuntime.jsx(FRSTLogo, { height: "28" }) }), jsxRuntime.jsx(WrapperMenu, { children: menu &&
15009
15070
  menu.length > 0 &&
15010
15071
  menu.map((item, index) => {
15011
15072
  return (jsxRuntime.jsx(ItemGlobalMenu, { label: item.label, variant: "default", type: "menu", handleOnClick: () => item.onClick('tes'), style: { paddingRight: '10px', paddingLeft: '10px' } }, item.id ? item.id : index));
@@ -27,5 +27,6 @@ export declare const itemFrstSocials: import("styled-components").StyledComponen
27
27
  export declare const Help: import("styled-components").StyledComponent<"div", any, {}, never>;
28
28
  export declare const Navigation: import("styled-components").StyledComponent<"div", any, {}, never>;
29
29
  export declare const TextNotification: import("styled-components").StyledComponent<"p", any, {}, never>;
30
+ export declare const TolltipTopbar: import("styled-components").StyledComponent<"div", any, {}, never>;
30
31
  export {};
31
32
  //# sourceMappingURL=globalMenuStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"globalMenuStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/global-menu/globalMenuStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,UAAU,cAAc;IACpB,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,aAAa,gFAYzB,CAAA;AAED,eAAO,MAAM,WAAW,oEAKvB,CAAA;AACD,eAAO,MAAM,eAAe,oEAO3B,CAAA;AACD,eAAO,MAAM,WAAW,oEAOvB,CAAA;AACD,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,gBAAgB,oEAO5B,CAAA;AAED,eAAO,MAAM,uBAAuB,oEAkBnC,CAAA;AACD,eAAO,MAAM,2BAA2B,kEASvC,CAAA;AAED,eAAO,MAAM,6BAA6B,oEAWzC,CAAA;AAED,eAAO,MAAM,gBAAgB,gFAgB5B,CAAA;AAED,eAAO,MAAM,UAAU;;SAWtB,CAAA;AAED,eAAO,MAAM,QAAQ;;SAWpB,CAAA;AAED,eAAO,MAAM,YAAY,oEAqBxB,CAAA;AAED,eAAO,MAAM,cAAc,oEAqB1B,CAAA;AAED,eAAO,MAAM,gBAAgB,oEAU5B,CAAA;AAED,eAAO,MAAM,WAAW,oEAOvB,CAAA;AAED,eAAO,MAAM,eAAe,uEAI3B,CAAA;AAED,eAAO,MAAM,IAAI,oEAchB,CAAA;AAED,eAAO,MAAM,UAAU,oEActB,CAAA;AAED,eAAO,MAAM,gBAAgB,kEAY5B,CAAA"}
1
+ {"version":3,"file":"globalMenuStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/global-menu/globalMenuStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,UAAU,cAAc;IACpB,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,aAAa,gFAYzB,CAAA;AAED,eAAO,MAAM,WAAW,oEAKvB,CAAA;AACD,eAAO,MAAM,eAAe,oEAO3B,CAAA;AACD,eAAO,MAAM,WAAW,oEAOvB,CAAA;AACD,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,gBAAgB,oEAO5B,CAAA;AAED,eAAO,MAAM,uBAAuB,oEAkBnC,CAAA;AACD,eAAO,MAAM,2BAA2B,kEASvC,CAAA;AAED,eAAO,MAAM,6BAA6B,oEAWzC,CAAA;AAED,eAAO,MAAM,gBAAgB,gFAgB5B,CAAA;AAED,eAAO,MAAM,UAAU;;SAWtB,CAAA;AAED,eAAO,MAAM,QAAQ;;SAWpB,CAAA;AAED,eAAO,MAAM,YAAY,oEAqBxB,CAAA;AAED,eAAO,MAAM,cAAc,oEAqB1B,CAAA;AAED,eAAO,MAAM,gBAAgB,oEAU5B,CAAA;AAED,eAAO,MAAM,WAAW,oEAOvB,CAAA;AAED,eAAO,MAAM,eAAe,uEAI3B,CAAA;AAED,eAAO,MAAM,IAAI,oEAchB,CAAA;AAED,eAAO,MAAM,UAAU,oEActB,CAAA;AAED,eAAO,MAAM,gBAAgB,kEAY5B,CAAA;AAGD,eAAO,MAAM,aAAa,oEA2DzB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/global-menu/index.tsx"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAA;AAIhC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AA2B1C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,WAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,cAAc,EACjB,EAAE,WAAW,2CAo4Bb;AAED,wBAAgB,UAAU,CAAC,EACvB,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACb;;;;;;;;;;;;;;CAAA,2CA0LA;AAED,wBAAgB,aAAa,CAAC,EAC1B,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACb;;;;;;;;;;;;;;CAAA,2CA4GA;AAED,wBAAgB,QAAQ,CAAC,EACrB,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACb;;;;;;;;;;;;;;CAAA,2CA2KA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/global-menu/index.tsx"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAA;AAIhC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AA2B1C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,WAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,cAAc,EACjB,EAAE,WAAW,2CAi5Bb;AAED,wBAAgB,UAAU,CAAC,EACvB,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACb;;;;;;;;;;;;;;CAAA,2CA0LA;AAED,wBAAgB,aAAa,CAAC,EAC1B,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACb;;;;;;;;;;;;;;CAAA,2CA4GA;AAED,wBAAgB,QAAQ,CAAC,EACrB,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACb;;;;;;;;;;;;;;CAAA,2CA2KA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.32.9",
4
+ "version": "0.33.0",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",