@npm_leadtech/legal-lib-components 2.6.8 → 2.6.10

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.
@@ -2390,6 +2390,9 @@
2390
2390
  @media (min-width: 720px) {
2391
2391
  .top-bar-wrapper {
2392
2392
  display: block; } }
2393
+ @media (max-width: 575px) {
2394
+ .top-bar-wrapper {
2395
+ display: block; } }
2393
2396
  .top-bar-wrapper .top-bar {
2394
2397
  display: flex;
2395
2398
  background-color: #F8F9FA;
@@ -2400,10 +2403,19 @@
2400
2403
  justify-content: center;
2401
2404
  align-items: flex-end;
2402
2405
  border: 1px solid #DBE1E5; }
2406
+ @media (max-width: 575px) {
2407
+ .top-bar-wrapper .top-bar {
2408
+ align-items: center; } }
2403
2409
  .top-bar-wrapper .top-bar-content {
2404
2410
  margin: 0 1rem 5px; }
2405
- .top-bar-wrapper .top-bar-content svg {
2411
+ @media (max-width: 575px) {
2412
+ .top-bar-wrapper .top-bar-content {
2413
+ margin: 0; } }
2414
+ .top-bar-wrapper .top-bar-content svg, .top-bar-wrapper .top-bar-content img {
2406
2415
  vertical-align: middle; }
2416
+ .top-bar-wrapper .top-bar-content img {
2417
+ margin-right: 8px;
2418
+ display: inherit; }
2407
2419
 
2408
2420
  .bottom-overlay-menu {
2409
2421
  display: flex;
@@ -2426,6 +2438,38 @@
2426
2438
  .bottom-overlay-menu ul li {
2427
2439
  margin-bottom: 0; }
2428
2440
 
2441
+ .top-bar-mobile {
2442
+ background-color: #F3F7FA;
2443
+ display: flex;
2444
+ padding: 8px 16px;
2445
+ justify-content: space-between;
2446
+ align-items: center;
2447
+ border-radius: 4px;
2448
+ box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
2449
+ font-size: 14px;
2450
+ line-height: 18px;
2451
+ letter-spacing: -0.3px;
2452
+ position: fixed;
2453
+ top: 8px;
2454
+ left: 8px;
2455
+ right: 8px; }
2456
+ .top-bar-mobile.fade-In {
2457
+ visibility: visible;
2458
+ opacity: 1;
2459
+ transition: visibility 0s linear 0s, opacity 300ms; }
2460
+ .top-bar-mobile.fade-Out {
2461
+ visibility: hidden;
2462
+ opacity: 0;
2463
+ transition: visibility 0s linear 300ms, opacity 300ms; }
2464
+ .top-bar-mobile > b {
2465
+ display: flex;
2466
+ justify-content: center;
2467
+ align-items: center; }
2468
+ .top-bar-mobile > b a {
2469
+ display: contents; }
2470
+ .top-bar-mobile > b img {
2471
+ margin-right: 8px; }
2472
+
2429
2473
  .article {
2430
2474
  display: flex;
2431
2475
  flex-flow: row wrap;
@@ -3635,4 +3679,4 @@
3635
3679
  font-weight: 400;
3636
3680
  line-height: 42px;
3637
3681
  letter-spacing: -0.3px;
3638
- margin-bottom: 1rem; }
3682
+ margin: 1rem 0; }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './TopBarMobile.scss';
3
+ interface TopBarMobileProps {
4
+ children: React.ReactNode;
5
+ isVisible: boolean;
6
+ }
7
+ export declare const TopBarMobile: React.FC<TopBarMobileProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { TopBarMobile } from '../TopBarMobile';
3
+ declare const meta: Meta<typeof TopBarMobile>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TopBarMobile>;
6
+ export declare const Default: Story;
7
+ export declare const Big: Story;
@@ -0,0 +1 @@
1
+ export { TopBarMobile } from './TopBarMobile';
@@ -31,3 +31,4 @@ export * from './Toggle';
31
31
  export * from './Tooltip';
32
32
  export * from './TopBar';
33
33
  export * from './BottomOverlayMenu';
34
+ export * from './TopBarMobile';
@@ -0,0 +1 @@
1
+ export { useIntersectionObserver } from './useIntersectionObserver';
@@ -1,2 +1,5 @@
1
1
  import { type RefObject } from 'react';
2
- export declare function useIntersectionObserver(options?: {}): [RefObject<HTMLDivElement>, boolean];
2
+ export declare function useIntersectionObserver({ options, defaultIntersecting }: {
3
+ options?: {} | undefined;
4
+ defaultIntersecting?: boolean | undefined;
5
+ }): [RefObject<HTMLDivElement | HTMLHeadElement>, boolean];
@@ -2,3 +2,4 @@ export * from './components/atoms';
2
2
  export * from './components/molecules';
3
3
  export * from './components/organisms';
4
4
  export * from './components/sections';
5
+ export * from './hooks';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React$1, { FC, Component, ReactNode, MouseEventHandler } from 'react';
2
+ import React$1, { FC, Component, ReactNode, MouseEventHandler, RefObject } from 'react';
3
3
  import { IGatsbyImageData } from 'gatsby-plugin-image';
4
4
 
5
5
  interface AddButtonProps {
@@ -388,6 +388,12 @@ interface BottomOverlayMenuProps {
388
388
 
389
389
  declare const BottomOverlayMenu: FC<BottomOverlayMenuProps>;
390
390
 
391
+ interface TopBarMobileProps {
392
+ children: React$1.ReactNode;
393
+ isVisible: boolean;
394
+ }
395
+ declare const TopBarMobile: React$1.FC<TopBarMobileProps>;
396
+
391
397
  interface ArticleProps {
392
398
  imageUrl: string;
393
399
  title: string;
@@ -708,4 +714,9 @@ interface AsSeeInSectionProps {
708
714
 
709
715
  declare const AsSeeInSection: FC<AsSeeInSectionProps>;
710
716
 
711
- export { AboutUsContent, AboutUsContentProps, AboutUsSection, AboutUsSectionProps, AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, AsSeeInContent, AsSeeInContentProps, AsSeeInSection, AsSeeInSectionProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayMenu, BottomOverlayMenuProps, BottomOverlayProps, BoxForm, BoxFormProps, BreadcrumItem, BreadcrumItemProps, Breadcrumb, BreadcrumbProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, CardPane, CardPaneInfoProps, CardPaneProps, Checkbox, CheckboxProps, ContactBox, ContactBoxProps, DatePickerCustom, DatePickerCustomProps, DialogMenuIcon, DialogMenuIconProps, Disclaimer, DisclaimerProps, Divider, DividerProps, DocumentStatus, DocumentStatusProps, Feedback, FeedbackProps, FormFaq, FormFaqProps, GoogleButton, GoogleButtonProps, GuidelinesContent, GuidelinesContentProps, GuidelinesSection, GuidelinesSectionProps, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, ImageStructure, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, NavBarDropDown, NavBarDropDownProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarProps, TrustworthyWebsites, TrustworthyWebsitesProps, TryOurFreeLegalBlogsContent, TryOurFreeLegalBlogsContentProps, TryOurFreeLegalBlogsSection, TryOurFreeLegalBlogsSectionProps };
717
+ declare function useIntersectionObserver({ options, defaultIntersecting }: {
718
+ options?: {} | undefined;
719
+ defaultIntersecting?: boolean | undefined;
720
+ }): [RefObject<HTMLDivElement | HTMLHeadElement>, boolean];
721
+
722
+ export { AboutUsContent, AboutUsContentProps, AboutUsSection, AboutUsSectionProps, AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, AsSeeInContent, AsSeeInContentProps, AsSeeInSection, AsSeeInSectionProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayMenu, BottomOverlayMenuProps, BottomOverlayProps, BoxForm, BoxFormProps, BreadcrumItem, BreadcrumItemProps, Breadcrumb, BreadcrumbProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, CardPane, CardPaneInfoProps, CardPaneProps, Checkbox, CheckboxProps, ContactBox, ContactBoxProps, DatePickerCustom, DatePickerCustomProps, DialogMenuIcon, DialogMenuIconProps, Disclaimer, DisclaimerProps, Divider, DividerProps, DocumentStatus, DocumentStatusProps, Feedback, FeedbackProps, FormFaq, FormFaqProps, GoogleButton, GoogleButtonProps, GuidelinesContent, GuidelinesContentProps, GuidelinesSection, GuidelinesSectionProps, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, ImageStructure, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, NavBarDropDown, NavBarDropDownProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarMobile, TopBarProps, TrustworthyWebsites, TrustworthyWebsitesProps, TryOurFreeLegalBlogsContent, TryOurFreeLegalBlogsContentProps, TryOurFreeLegalBlogsSection, TryOurFreeLegalBlogsSectionProps, useIntersectionObserver };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.6.8",
3
+ "version": "2.6.10",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",