forstok-ui-lib 6.0.3 → 6.1.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.d.ts +7 -3
- package/dist/index.js +297 -196
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +286 -185
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/stylesheets/shares.styles.ts +138 -36
package/package.json
CHANGED
|
@@ -3460,9 +3460,9 @@ export const NavList = styled.ul`
|
|
|
3460
3460
|
${clearList}
|
|
3461
3461
|
position: fixed;
|
|
3462
3462
|
overflow: auto;
|
|
3463
|
-
height: calc(100vh -
|
|
3464
|
-
width:
|
|
3465
|
-
padding:
|
|
3463
|
+
height: calc(100vh - 48px);
|
|
3464
|
+
width: 187px;
|
|
3465
|
+
padding: .5rem .5rem 0;
|
|
3466
3466
|
@media only screen and (min-width: 1366px) {
|
|
3467
3467
|
width: 220px;
|
|
3468
3468
|
}
|
|
@@ -3470,68 +3470,170 @@ export const NavList = styled.ul`
|
|
|
3470
3470
|
width: 80%;
|
|
3471
3471
|
}
|
|
3472
3472
|
`
|
|
3473
|
+
export const NavMobileHeaderWrapper = styled.div`
|
|
3474
|
+
display: none;
|
|
3475
|
+
grid-template-columns: auto 15px;
|
|
3476
|
+
margin-bottom: 15px;
|
|
3477
|
+
@media (min-width: 1280px) {
|
|
3478
|
+
margin-bottom: 25px;
|
|
3479
|
+
}
|
|
3480
|
+
`
|
|
3481
|
+
export const NavContainerStyles = css`
|
|
3482
|
+
display: none;
|
|
3483
|
+
background-color: var(--pri-clr-bg);
|
|
3484
|
+
@keyframes navleftslide {
|
|
3485
|
+
0% {
|
|
3486
|
+
left: -150px;
|
|
3487
|
+
}
|
|
3488
|
+
100% {
|
|
3489
|
+
left: 0px;
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
@media only screen and (min-width: 1280px) {
|
|
3493
|
+
position: relative;
|
|
3494
|
+
display: inline-grid;
|
|
3495
|
+
border-right: 1px solid var(--lay-clr-ln);
|
|
3496
|
+
min-height: calc(100vh - 48px);
|
|
3497
|
+
}
|
|
3498
|
+
@media only screen and (max-width: 1279px) {
|
|
3499
|
+
&.mobile-shown {
|
|
3500
|
+
top: 0px;
|
|
3501
|
+
display: block;
|
|
3502
|
+
position: fixed;
|
|
3503
|
+
z-index: 11;
|
|
3504
|
+
${NavMobileOverlay} {
|
|
3505
|
+
display: block;
|
|
3506
|
+
}
|
|
3507
|
+
${NavMobileHeaderWrapper} {
|
|
3508
|
+
display: grid;
|
|
3509
|
+
}
|
|
3510
|
+
${NavList} {
|
|
3511
|
+
animation: navleftslide .15s ease;
|
|
3512
|
+
background: var(--pri-clr-bg);
|
|
3513
|
+
height: 100%;
|
|
3514
|
+
z-index: 102;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
`
|
|
3519
|
+
|
|
3520
|
+
export const NavContainer = styled.nav`
|
|
3521
|
+
${NavContainerStyles}
|
|
3522
|
+
`
|
|
3473
3523
|
export const NavMainItem = styled.li<{ $activated?: boolean }>`
|
|
3524
|
+
line-height: 1.25rem;
|
|
3525
|
+
font-style: normal;
|
|
3526
|
+
font-weight: 400;
|
|
3527
|
+
color: var(--nav-clr);
|
|
3474
3528
|
position: relative;
|
|
3475
|
-
margin-bottom:
|
|
3529
|
+
margin-bottom: .35rem;
|
|
3476
3530
|
._refCollapseNav {
|
|
3477
3531
|
cursor: pointer;
|
|
3478
3532
|
&.is-active {
|
|
3479
|
-
font-weight:
|
|
3533
|
+
font-weight: 500;
|
|
3534
|
+
color: rgba(28, 32, 36, 1)
|
|
3480
3535
|
}
|
|
3481
3536
|
&::after {
|
|
3482
3537
|
position: absolute;
|
|
3483
3538
|
content: '';
|
|
3484
|
-
right:
|
|
3485
|
-
top:
|
|
3539
|
+
right: 10px;
|
|
3540
|
+
top: 14px;
|
|
3486
3541
|
padding: 2px;
|
|
3487
3542
|
border-style: solid;
|
|
3488
|
-
border-width: 0
|
|
3543
|
+
border-width: 0 1px 1px 0;
|
|
3489
3544
|
transform: rotate(-45deg);
|
|
3490
3545
|
margin-bottom: 2px;
|
|
3546
|
+
border-color: var(--nav-clr);
|
|
3491
3547
|
}
|
|
3492
|
-
&:hover {
|
|
3493
|
-
color: var(--sec-clr-lnk__hvr);
|
|
3494
|
-
}
|
|
3495
|
-
}
|
|
3496
|
-
@media only screen and (max-width: 767.9px) {
|
|
3497
|
-
margin-bottom: 20px;
|
|
3498
3548
|
}
|
|
3499
|
-
${({ $activated }
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
font-weight: 600;
|
|
3504
|
-
font-size: 14px;
|
|
3505
|
-
}
|
|
3506
|
-
`
|
|
3549
|
+
${({ $activated }) => $activated && css`
|
|
3550
|
+
> div {
|
|
3551
|
+
background-color: var(--nav-clr-bg__hvr);
|
|
3552
|
+
border-radius: var(--nav-rd);
|
|
3507
3553
|
}
|
|
3508
|
-
|
|
3554
|
+
> div > a {
|
|
3555
|
+
&, &:hover {
|
|
3556
|
+
color: var(--pri-clr-lnk__hvr) !important;
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
`}
|
|
3509
3560
|
`
|
|
3510
|
-
export const
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3561
|
+
export const NavChildLine = styled.hr`
|
|
3562
|
+
border-top: 1px solid var(--sec-clr-ln);
|
|
3563
|
+
margin: 0;
|
|
3564
|
+
height: 0px;
|
|
3565
|
+
border-bottom: 0;
|
|
3515
3566
|
`
|
|
3516
|
-
export const NavChildItem = styled.div<{ $activated?: boolean, $mode?:
|
|
3567
|
+
export const NavChildItem = styled.div<{ $activated?: boolean, $mode?: 'counter' }>`
|
|
3517
3568
|
display: grid;
|
|
3518
3569
|
position: relative;
|
|
3519
3570
|
grid-gap: 6px;
|
|
3520
|
-
margin-
|
|
3521
|
-
|
|
3571
|
+
margin-left: 1.5rem;
|
|
3572
|
+
margin-top: .125rem;
|
|
3573
|
+
margin-bottom: .125rem;
|
|
3574
|
+
padding-top: .25rem;
|
|
3575
|
+
padding-bottom: .25rem;
|
|
3576
|
+
padding-left: .5rem;
|
|
3577
|
+
padding-right: .5rem;
|
|
3578
|
+
font-weight: 400;
|
|
3579
|
+
align-items: center;
|
|
3580
|
+
height: auto;
|
|
3581
|
+
min-height: 32px;
|
|
3582
|
+
> a, > span {
|
|
3583
|
+
color: var(--nav-clr);
|
|
3584
|
+
}
|
|
3585
|
+
&:hover {
|
|
3586
|
+
background-color: var(--nav-clr-bg__hvr);
|
|
3587
|
+
border-radius: var(--nav-rd);
|
|
3588
|
+
> a, > span {
|
|
3589
|
+
&, &:hover {
|
|
3590
|
+
color: var(--nav-clr);
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3522
3594
|
.counter > span {
|
|
3523
3595
|
font-size: 11px;
|
|
3524
3596
|
padding: 2px 4px;
|
|
3525
3597
|
position: absolute;
|
|
3526
3598
|
background-color: var(--mt-clr-bg__fc);
|
|
3527
3599
|
border-radius: var(--ter-rd);
|
|
3528
|
-
top:
|
|
3529
|
-
right:
|
|
3600
|
+
top: 50%;
|
|
3601
|
+
right: 8px;
|
|
3602
|
+
line-height: 11px;
|
|
3603
|
+
transform: translateY(-50%);
|
|
3530
3604
|
}
|
|
3531
|
-
|
|
3532
|
-
|
|
3605
|
+
${({ $activated }) => $activated && css`
|
|
3606
|
+
background-color: var(--nav-clr-bg__hvr);
|
|
3607
|
+
border-radius: var(--nav-rd);
|
|
3608
|
+
> a, > span {
|
|
3609
|
+
&, &:hover {
|
|
3610
|
+
color: var(--pri-clr-lnk__hvr) !important;
|
|
3611
|
+
}
|
|
3612
|
+
}
|
|
3613
|
+
`}
|
|
3614
|
+
${({ $mode }) => $mode === 'counter' && css`
|
|
3615
|
+
grid-template-columns: auto 20px;
|
|
3616
|
+
`}
|
|
3617
|
+
`
|
|
3618
|
+
export const NavMainItemWrapper = styled.div`
|
|
3619
|
+
display: grid;
|
|
3620
|
+
grid-template-columns: 15px auto;
|
|
3621
|
+
grid-gap: .5rem;
|
|
3622
|
+
align-items: center;
|
|
3623
|
+
padding-top: .375rem;
|
|
3624
|
+
padding-bottom: .375rem;
|
|
3625
|
+
padding-left: .5rem;
|
|
3626
|
+
padding-right: .5rem;
|
|
3627
|
+
&:hover {
|
|
3628
|
+
background-color: var(--nav-clr-bg__hvr);
|
|
3629
|
+
border-radius: var(--nav-rd);
|
|
3630
|
+
> a {
|
|
3631
|
+
&,
|
|
3632
|
+
&:hover {
|
|
3633
|
+
color: var(--nav-clr);
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3533
3636
|
}
|
|
3534
|
-
${getNavChildItemModFunc}
|
|
3535
3637
|
`
|
|
3536
3638
|
export const TotalLabel = styled.span`
|
|
3537
3639
|
letter-spacing: 1.25px;
|