@npm_leadtech/legal-lib-components 7.12.1 → 7.12.3

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.
Files changed (24) hide show
  1. package/dist/images/svg/business-type.svg +3 -0
  2. package/dist/src/components/atoms/TopBar/TopBar.js +2 -8
  3. package/dist/src/components/atoms/TopBar/TopBar.styled.js +1 -1
  4. package/dist/src/components/atoms/TopBar/TopBar.styled.ts +1 -1
  5. package/dist/src/components/atoms/TopBar/TopBar.tsx +3 -10
  6. package/dist/src/components/atoms/TopBar/TopBarProps.types.d.ts +0 -2
  7. package/dist/src/components/atoms/TopBar/TopBarProps.types.ts +0 -2
  8. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.d.ts +1 -1
  9. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.ts +1 -1
  10. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.js +1 -1
  11. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.tsx +3 -1
  12. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.d.ts +1 -1
  13. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.ts +1 -1
  14. package/dist/src/components/molecules/SearchBar/SearchBarProps.types.d.ts +1 -0
  15. package/dist/src/components/molecules/SearchBar/SearchBarProps.types.ts +1 -0
  16. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.d.ts +1 -2
  17. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.ts +1 -2
  18. package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +13 -11
  19. package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +13 -11
  20. package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +28 -6
  21. package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +28 -6
  22. package/dist/src/components/sections/Header/Header.styled.js +7 -0
  23. package/dist/src/components/sections/Header/Header.styled.ts +7 -0
  24. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18 4H14V2C14 0.89 13.11 0 12 0H8C6.89 0 6 0.89 6 2V4H2C0.89 4 0.01 4.89 0.01 6L0 17C0 18.11 0.89 19 2 19H18C19.11 19 20 18.11 20 17V6C20 4.89 19.11 4 18 4ZM12 4H8V2H12V4Z" fill="#078080"/>
3
+ </svg>
@@ -1,18 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import classNames from 'classnames';
3
3
  import { TopBarStyled } from './TopBar.styled';
4
- const TopBar = ({ isMobile, hide, isVisible, children }) => {
4
+ const TopBar = ({ hide, children }) => {
5
5
  if (children === undefined)
6
6
  return null;
7
7
  const classnames = classNames({
8
8
  '--is-hidden': hide
9
9
  });
10
- const topBarContentContainerClass = classNames({
11
- 'top-bar-content': !isMobile,
12
- 'top-bar-mobile': isMobile,
13
- 'fade-In': isMobile && isVisible,
14
- 'fade-Out': isMobile && !isVisible
15
- });
16
- return (_jsx(TopBarStyled, { className: `top-bar-wrapper ${classnames}`, children: _jsx("div", { className: 'top-bar', children: _jsx("div", { className: `${topBarContentContainerClass}`, children: children }) }) }));
10
+ return (_jsx(TopBarStyled, { className: `top-bar-content top-bar-wrapper ${classnames}`, children: _jsx("div", { className: 'top-bar', children: _jsx("div", { children: children }) }) }));
17
11
  };
18
12
  export default TopBar;
@@ -26,7 +26,7 @@ export const TopBarStyled = styled.div `
26
26
  width: 100%;
27
27
  height: 100%;
28
28
  justify-content: center;
29
- align-items: flex-end;
29
+ align-items: center;
30
30
  border: 1px solid var(--neutral-neutral-4);
31
31
 
32
32
  @media ${device.mobile} {
@@ -27,7 +27,7 @@ export const TopBarStyled = styled.div`
27
27
  width: 100%;
28
28
  height: 100%;
29
29
  justify-content: center;
30
- align-items: flex-end;
30
+ align-items: center;
31
31
  border: 1px solid var(--neutral-neutral-4);
32
32
 
33
33
  @media ${device.mobile} {
@@ -4,24 +4,17 @@ import classNames from 'classnames'
4
4
  import { type TopBarProps } from './TopBarProps.types'
5
5
  import { TopBarStyled } from './TopBar.styled'
6
6
 
7
- const TopBar: FC<TopBarProps> = ({ isMobile, hide, isVisible, children }) => {
7
+ const TopBar: FC<TopBarProps> = ({ hide, children }) => {
8
8
  if (children === undefined) return null
9
9
 
10
10
  const classnames = classNames({
11
11
  '--is-hidden': hide
12
12
  })
13
13
 
14
- const topBarContentContainerClass = classNames({
15
- 'top-bar-content': !isMobile,
16
- 'top-bar-mobile': isMobile,
17
- 'fade-In': isMobile && isVisible,
18
- 'fade-Out': isMobile && !isVisible
19
- })
20
-
21
14
  return (
22
- <TopBarStyled className={`top-bar-wrapper ${classnames}`}>
15
+ <TopBarStyled className={`top-bar-content top-bar-wrapper ${classnames}`}>
23
16
  <div className={'top-bar'}>
24
- <div className={`${topBarContentContainerClass}`}>{children}</div>
17
+ <div>{children}</div>
25
18
  </div>
26
19
  </TopBarStyled>
27
20
  )
@@ -1,6 +1,4 @@
1
1
  export interface TopBarProps {
2
- isMobile?: boolean;
3
2
  hide?: boolean;
4
- isVisible?: boolean;
5
3
  children?: React.ReactNode;
6
4
  }
@@ -1,6 +1,4 @@
1
1
  export interface TopBarProps {
2
- isMobile?: boolean
3
2
  hide?: boolean
4
- isVisible?: boolean
5
3
  children?: React.ReactNode
6
4
  }
@@ -5,7 +5,7 @@ export interface ProductListMenuProps {
5
5
  categoryUrl?: string;
6
6
  }
7
7
  export interface DocumentListMenuSectionProps {
8
- icon: React.ReactNode;
8
+ icon: string;
9
9
  type: string;
10
10
  products: ProductListMenuProps[];
11
11
  slug: string;
@@ -7,7 +7,7 @@ export interface ProductListMenuProps {
7
7
  }
8
8
 
9
9
  export interface DocumentListMenuSectionProps {
10
- icon: React.ReactNode
10
+ icon: string
11
11
  type: string
12
12
  products: ProductListMenuProps[]
13
13
  slug: string
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { MenuSectionTitleStyled } from './MenuSectionTitle.styled';
3
3
  export const MenuSectionTitle = ({ icon, title }) => {
4
- return (_jsxs(MenuSectionTitleStyled, { className: 'menu-section-title-container', children: [_jsx("div", { className: 'menu-section-title__icon', children: icon ?? null }), _jsx("div", { className: '', children: _jsx("div", { className: 'jumbotron__title', children: title }) })] }));
4
+ return (_jsxs(MenuSectionTitleStyled, { className: 'menu-section-title-container', children: [_jsx("div", { className: 'menu-section-title__icon', children: _jsx("img", { src: icon, alt: title }) }), _jsx("div", { className: '', children: _jsx("div", { className: 'jumbotron__title', children: title }) })] }));
5
5
  };
@@ -6,7 +6,9 @@ import { MenuSectionTitleStyled } from './MenuSectionTitle.styled'
6
6
  export const MenuSectionTitle: React.FC<MenuSectionTitleProps> = ({ icon, title }) => {
7
7
  return (
8
8
  <MenuSectionTitleStyled className='menu-section-title-container'>
9
- <div className='menu-section-title__icon'>{icon ?? null}</div>
9
+ <div className='menu-section-title__icon'>
10
+ <img src={icon} alt={title} />
11
+ </div>
10
12
  <div className=''>
11
13
  <div className='jumbotron__title'>{title}</div>
12
14
  </div>
@@ -1,4 +1,4 @@
1
1
  export interface MenuSectionTitleProps {
2
- icon: React.ReactNode;
2
+ icon: string;
3
3
  title: string;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  export interface MenuSectionTitleProps {
2
- icon: React.ReactNode
2
+ icon: string
3
3
  title: string
4
4
  }
@@ -27,6 +27,7 @@ export interface Routes {
27
27
  MY_DOCUMENTS: string;
28
28
  REGISTER: string;
29
29
  RATAFIA_LOGIN: string;
30
+ SIGN_EDITOR: string;
30
31
  }
31
32
  export interface SearchBarProps {
32
33
  products: Products[];
@@ -30,6 +30,7 @@ export interface Routes {
30
30
  MY_DOCUMENTS: string
31
31
  REGISTER: string
32
32
  RATAFIA_LOGIN: string
33
+ SIGN_EDITOR: string
33
34
  }
34
35
 
35
36
  export interface SearchBarProps {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Routes } from '../../sections/Header/HeaderProps.types';
3
2
  export interface ProductListMenuProps {
4
3
  slug: string;
@@ -6,7 +5,7 @@ export interface ProductListMenuProps {
6
5
  categoryUrl?: string;
7
6
  }
8
7
  export interface DocumentListMenuSectionProps {
9
- icon: React.ReactNode;
8
+ icon: string;
10
9
  type: string;
11
10
  products: ProductListMenuProps[];
12
11
  slug: string;
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { Routes } from '../../sections/Header/HeaderProps.types'
3
2
 
4
3
  export interface ProductListMenuProps {
@@ -8,7 +7,7 @@ export interface ProductListMenuProps {
8
7
  }
9
8
 
10
9
  export interface DocumentListMenuSectionProps {
11
- icon: React.ReactNode
10
+ icon: string
12
11
  type: string
13
12
  products: ProductListMenuProps[]
14
13
  slug: string
@@ -5,6 +5,7 @@ export const MenuItemsStyled = styled.div `
5
5
  flex-direction: column;
6
6
  justify-content: flex-start;
7
7
  align-items: baseline;
8
+ margin-top: 1rem;
8
9
 
9
10
  &__wrapper {
10
11
  width: 100%;
@@ -140,14 +141,8 @@ export const MenuItemsStyled = styled.div `
140
141
  }
141
142
  @media ${device['mobile']} {
142
143
  position: static;
143
- /* gap: 1rem; */
144
+ margin-bottom: 2rem;
144
145
  }
145
- /* li { */
146
- /* @media ${device['mobile']} {
147
- padding: 0;
148
- margin: 0;
149
- }
150
- } */
151
146
  }
152
147
 
153
148
  .products__list {
@@ -252,14 +247,13 @@ export const MenuItemsStyled = styled.div `
252
247
  @media ${device['mobile']} {
253
248
  font-weight: 700;
254
249
  padding: 1.5rem 0;
255
- border-top: 1px solid var(--neutral-neutral-4);
256
250
  }
257
251
  }
258
252
  }
259
253
 
260
254
  li.menu-items-li {
261
255
  width: 100%;
262
- margin: 0.25rem 0;
256
+ margin: 0.5rem 0;
263
257
  border-radius: var(--s-border-radius);
264
258
  transition: all 0.3s ease;
265
259
  padding: 0.25rem;
@@ -478,9 +472,10 @@ export const MenuItemsStyled = styled.div `
478
472
  display: flex;
479
473
  flex-direction: column;
480
474
  align-items: flex-start;
481
- padding: 1.5rem 0;
482
- margin: 0 1.5rem;
475
+ padding: 1.5rem 0 0 0;
476
+ margin: 0 1.5rem 1.5rem 1.5rem;
483
477
  border-top: 1px solid var(--neutral-neutral-4);
478
+ border-bottom: 1px solid var(--neutral-neutral-4);
484
479
  }
485
480
  }
486
481
 
@@ -589,6 +584,13 @@ export const MenuItemsStyled = styled.div `
589
584
  }
590
585
  .navigation-pane__resources {
591
586
  order: 5;
587
+ display: flex;
588
+ flex-direction: column;
589
+ align-items: flex-start;
590
+ padding: 1.5rem 0 0 0;
591
+ margin: 0 1.5rem 1.5rem 1.5rem;
592
+ border-top: 1px solid var(--neutral-neutral-4);
593
+ border-bottom: 1px solid var(--neutral-neutral-4);
592
594
  }
593
595
  }
594
596
  `;
@@ -6,6 +6,7 @@ export const MenuItemsStyled = styled.div`
6
6
  flex-direction: column;
7
7
  justify-content: flex-start;
8
8
  align-items: baseline;
9
+ margin-top: 1rem;
9
10
 
10
11
  &__wrapper {
11
12
  width: 100%;
@@ -141,14 +142,8 @@ export const MenuItemsStyled = styled.div`
141
142
  }
142
143
  @media ${device['mobile']} {
143
144
  position: static;
144
- /* gap: 1rem; */
145
+ margin-bottom: 2rem;
145
146
  }
146
- /* li { */
147
- /* @media ${device['mobile']} {
148
- padding: 0;
149
- margin: 0;
150
- }
151
- } */
152
147
  }
153
148
 
154
149
  .products__list {
@@ -253,14 +248,13 @@ export const MenuItemsStyled = styled.div`
253
248
  @media ${device['mobile']} {
254
249
  font-weight: 700;
255
250
  padding: 1.5rem 0;
256
- border-top: 1px solid var(--neutral-neutral-4);
257
251
  }
258
252
  }
259
253
  }
260
254
 
261
255
  li.menu-items-li {
262
256
  width: 100%;
263
- margin: 0.25rem 0;
257
+ margin: 0.5rem 0;
264
258
  border-radius: var(--s-border-radius);
265
259
  transition: all 0.3s ease;
266
260
  padding: 0.25rem;
@@ -479,9 +473,10 @@ export const MenuItemsStyled = styled.div`
479
473
  display: flex;
480
474
  flex-direction: column;
481
475
  align-items: flex-start;
482
- padding: 1.5rem 0;
483
- margin: 0 1.5rem;
476
+ padding: 1.5rem 0 0 0;
477
+ margin: 0 1.5rem 1.5rem 1.5rem;
484
478
  border-top: 1px solid var(--neutral-neutral-4);
479
+ border-bottom: 1px solid var(--neutral-neutral-4);
485
480
  }
486
481
  }
487
482
 
@@ -593,6 +588,13 @@ export const MenuItemsStyled = styled.div`
593
588
  }
594
589
  .navigation-pane__resources {
595
590
  order: 5;
591
+ display: flex;
592
+ flex-direction: column;
593
+ align-items: flex-start;
594
+ padding: 1.5rem 0 0 0;
595
+ margin: 0 1.5rem 1.5rem 1.5rem;
596
+ border-top: 1px solid var(--neutral-neutral-4);
597
+ border-bottom: 1px solid var(--neutral-neutral-4);
596
598
  }
597
599
  }
598
600
  `
@@ -114,6 +114,11 @@ export const NavMenuStyled = styled.div `
114
114
  left: 0;
115
115
  }
116
116
 
117
+ @media ${device['mobile']} {
118
+ position: static;
119
+ margin-bottom: 2rem;
120
+ }
121
+
117
122
  .products__list {
118
123
  top: 2.2rem;
119
124
  right: 0;
@@ -196,20 +201,28 @@ export const NavMenuStyled = styled.div `
196
201
 
197
202
  .navigation-pane__resources {
198
203
  margin-right: 1rem;
199
- display: none;
200
-
204
+ @media ${device['mobile']} {
205
+ width: 100%;
206
+ }
201
207
  & > ul {
202
208
  width: 150px;
203
209
  }
204
210
 
205
- @media ${device['laptop']} {
211
+ @media ${device['landscape-tablets']} {
206
212
  display: block;
207
213
  }
214
+
215
+ &__title {
216
+ @media ${device['mobile']} {
217
+ font-weight: 700;
218
+ padding: 1.5rem 0;
219
+ }
220
+ }
208
221
  }
209
222
 
210
223
  li.menu-items-li {
211
224
  width: 100%;
212
- margin: 0.25rem 0;
225
+ margin: 0.5rem 0;
213
226
  border-radius: var(--s-border-radius);
214
227
  transition: all 0.3s ease;
215
228
  padding: 0.25rem;
@@ -335,6 +348,7 @@ export const NavMenuStyled = styled.div `
335
348
  .trigger-menu-open,
336
349
  .trigger-menu-close {
337
350
  display: flex;
351
+ align-items: center;
338
352
  }
339
353
  }
340
354
 
@@ -439,9 +453,10 @@ export const NavMenuStyled = styled.div `
439
453
  display: flex;
440
454
  flex-direction: column;
441
455
  align-items: flex-start;
442
- padding: 1.5rem 0;
443
- margin: 0 1.5rem;
456
+ padding: 1.5rem 0 0 0;
457
+ margin: 0 1.5rem 1.5rem 1.5rem;
444
458
  border-top: 1px solid var(--neutral-neutral-4);
459
+ border-bottom: 1px solid var(--neutral-neutral-4);
445
460
  }
446
461
  }
447
462
 
@@ -545,6 +560,13 @@ export const NavMenuStyled = styled.div `
545
560
 
546
561
  .navigation-pane__resources {
547
562
  order: 5;
563
+ display: flex;
564
+ flex-direction: column;
565
+ align-items: flex-start;
566
+ padding: 1.5rem 0 0 0;
567
+ margin: 0 1.5rem 1.5rem 1.5rem;
568
+ border-top: 1px solid var(--neutral-neutral-4);
569
+ border-bottom: 1px solid var(--neutral-neutral-4);
548
570
  }
549
571
  }
550
572
  `;
@@ -115,6 +115,11 @@ export const NavMenuStyled = styled.div`
115
115
  left: 0;
116
116
  }
117
117
 
118
+ @media ${device['mobile']} {
119
+ position: static;
120
+ margin-bottom: 2rem;
121
+ }
122
+
118
123
  .products__list {
119
124
  top: 2.2rem;
120
125
  right: 0;
@@ -197,20 +202,28 @@ export const NavMenuStyled = styled.div`
197
202
 
198
203
  .navigation-pane__resources {
199
204
  margin-right: 1rem;
200
- display: none;
201
-
205
+ @media ${device['mobile']} {
206
+ width: 100%;
207
+ }
202
208
  & > ul {
203
209
  width: 150px;
204
210
  }
205
211
 
206
- @media ${device['laptop']} {
212
+ @media ${device['landscape-tablets']} {
207
213
  display: block;
208
214
  }
215
+
216
+ &__title {
217
+ @media ${device['mobile']} {
218
+ font-weight: 700;
219
+ padding: 1.5rem 0;
220
+ }
221
+ }
209
222
  }
210
223
 
211
224
  li.menu-items-li {
212
225
  width: 100%;
213
- margin: 0.25rem 0;
226
+ margin: 0.5rem 0;
214
227
  border-radius: var(--s-border-radius);
215
228
  transition: all 0.3s ease;
216
229
  padding: 0.25rem;
@@ -336,6 +349,7 @@ export const NavMenuStyled = styled.div`
336
349
  .trigger-menu-open,
337
350
  .trigger-menu-close {
338
351
  display: flex;
352
+ align-items: center;
339
353
  }
340
354
  }
341
355
 
@@ -440,9 +454,10 @@ export const NavMenuStyled = styled.div`
440
454
  display: flex;
441
455
  flex-direction: column;
442
456
  align-items: flex-start;
443
- padding: 1.5rem 0;
444
- margin: 0 1.5rem;
457
+ padding: 1.5rem 0 0 0;
458
+ margin: 0 1.5rem 1.5rem 1.5rem;
445
459
  border-top: 1px solid var(--neutral-neutral-4);
460
+ border-bottom: 1px solid var(--neutral-neutral-4);
446
461
  }
447
462
  }
448
463
 
@@ -549,6 +564,13 @@ export const NavMenuStyled = styled.div`
549
564
 
550
565
  .navigation-pane__resources {
551
566
  order: 5;
567
+ display: flex;
568
+ flex-direction: column;
569
+ align-items: flex-start;
570
+ padding: 1.5rem 0 0 0;
571
+ margin: 0 1.5rem 1.5rem 1.5rem;
572
+ border-top: 1px solid var(--neutral-neutral-4);
573
+ border-bottom: 1px solid var(--neutral-neutral-4);
552
574
  }
553
575
  }
554
576
  `
@@ -1,6 +1,13 @@
1
1
  import { device, size } from '../../../globalStyles/breakpoints';
2
2
  import styled from 'styled-components';
3
3
  export const HeaderStyled = styled.header `
4
+ @media (max-width: ${size.sm}) {
5
+ position: fixed;
6
+ top: 0;
7
+ background-color: white;
8
+ width: 100%;
9
+ z-index: 11111111111111;
10
+ }
4
11
  html[data-theme='lawdistrict'] {
5
12
  .header {
6
13
  &.product-header-background {
@@ -2,6 +2,13 @@ import { device, size } from '../../../globalStyles/breakpoints'
2
2
  import styled from 'styled-components'
3
3
 
4
4
  export const HeaderStyled = styled.header`
5
+ @media (max-width: ${size.sm}) {
6
+ position: fixed;
7
+ top: 0;
8
+ background-color: white;
9
+ width: 100%;
10
+ z-index: 11111111111111;
11
+ }
5
12
  html[data-theme='lawdistrict'] {
6
13
  .header {
7
14
  &.product-header-background {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.12.1",
3
+ "version": "7.12.3",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",