forstok-ui-lib 8.2.2 → 8.2.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +105 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +142 -67
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/stylesheets/shares.styles.ts +60 -2
- package/src/components/radio/styles.ts +23 -1
package/package.json
CHANGED
|
@@ -3678,27 +3678,32 @@ export const DropdownTitle = styled.div`
|
|
|
3678
3678
|
font-style: normal;
|
|
3679
3679
|
}
|
|
3680
3680
|
`
|
|
3681
|
+
|
|
3681
3682
|
export const DropdownList = styled.ul<{ $mode?: 'no-border' }>`
|
|
3682
3683
|
${clearList}
|
|
3683
3684
|
max-height: 44vh;
|
|
3684
3685
|
overflow: auto;
|
|
3685
3686
|
> li {
|
|
3686
|
-
padding: 8px 1em;
|
|
3687
3687
|
border-bottom: ${({ $mode }:{ $mode?: 'no-border' }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
|
|
3688
3688
|
&:last-child {
|
|
3689
3689
|
border-bottom: 0;
|
|
3690
3690
|
}
|
|
3691
3691
|
}
|
|
3692
|
+
@media only screen and (min-width: 768px) {
|
|
3693
|
+
padding: 4px 8px;
|
|
3694
|
+
}
|
|
3692
3695
|
@media only screen and (min-width: 1366px) {
|
|
3693
3696
|
max-height: 50vh;
|
|
3694
3697
|
}
|
|
3695
3698
|
`
|
|
3696
|
-
export const DropdownItem = styled.li<{ $mode?: 'categories' }>`
|
|
3699
|
+
export const DropdownItem = styled.li<{ $mode?: 'common' | 'categories', $isActive?: boolean, $isReply?: boolean }>`
|
|
3697
3700
|
display: inline-grid;
|
|
3698
3701
|
width: 100%;
|
|
3699
3702
|
grid-gap: 10px;
|
|
3700
3703
|
min-height: 48px;
|
|
3701
3704
|
grid-auto-flow: row;
|
|
3705
|
+
cursor: pointer;
|
|
3706
|
+
position: relative;
|
|
3702
3707
|
@media only screen and (min-width: 768px) {
|
|
3703
3708
|
grid-auto-flow: column;
|
|
3704
3709
|
grid-template-columns: 100px auto;
|
|
@@ -3717,6 +3722,59 @@ export const DropdownItem = styled.li<{ $mode?: 'categories' }>`
|
|
|
3717
3722
|
grid-template-columns: 22px auto;
|
|
3718
3723
|
}
|
|
3719
3724
|
`}
|
|
3725
|
+
${({ $mode }) => $mode === 'common' && css`
|
|
3726
|
+
margin-top: .125rem;
|
|
3727
|
+
margin-bottom: .125rem;
|
|
3728
|
+
color: var(--pri-clr);
|
|
3729
|
+
line-height: 20px;
|
|
3730
|
+
align-items: center;
|
|
3731
|
+
padding: .5rem .75rem;
|
|
3732
|
+
display: block;
|
|
3733
|
+
min-height: auto;
|
|
3734
|
+
&:hover {
|
|
3735
|
+
background-color: var(--nav-clr-bg__hvr);
|
|
3736
|
+
border-radius: var(--nav-rd);
|
|
3737
|
+
}
|
|
3738
|
+
> label, > span {
|
|
3739
|
+
cursor: pointer;
|
|
3740
|
+
text-transform: capitalize;
|
|
3741
|
+
width: 100%;
|
|
3742
|
+
max-width: 218px;
|
|
3743
|
+
overflow: hidden;
|
|
3744
|
+
text-overflow: ellipsis;
|
|
3745
|
+
white-space: nowrap;
|
|
3746
|
+
display: block;
|
|
3747
|
+
}
|
|
3748
|
+
`}
|
|
3749
|
+
${({ $mode, $isReply }) => ($mode === 'common' && $isReply) && css`
|
|
3750
|
+
padding-right: 1.825rem !important;
|
|
3751
|
+
._refReplyIcon {
|
|
3752
|
+
right: 12px;
|
|
3753
|
+
top: 50%;
|
|
3754
|
+
transform: translateY(-50%);
|
|
3755
|
+
}
|
|
3756
|
+
`}
|
|
3757
|
+
${({ $mode, $isActive }) => ($mode === 'common' && $isActive) && css`
|
|
3758
|
+
background-color: var(--nav-clr-bg__hvr);
|
|
3759
|
+
border-radius: var(--nav-rd);
|
|
3760
|
+
padding-right: 1.75em;
|
|
3761
|
+
&, > label, > span {
|
|
3762
|
+
font-weight: 500;
|
|
3763
|
+
}
|
|
3764
|
+
&:after {
|
|
3765
|
+
content: '✔';
|
|
3766
|
+
position: absolute;
|
|
3767
|
+
top: 50%;
|
|
3768
|
+
transform: translateY(-50%);
|
|
3769
|
+
right: 7px;
|
|
3770
|
+
bottom: 0;
|
|
3771
|
+
width: 12px;
|
|
3772
|
+
height: 20px;
|
|
3773
|
+
}
|
|
3774
|
+
._refReplyIcon {
|
|
3775
|
+
right: 22px;
|
|
3776
|
+
}
|
|
3777
|
+
`}
|
|
3720
3778
|
`
|
|
3721
3779
|
export const DropdownAction = styled.div`
|
|
3722
3780
|
padding: .8em 1em 1em;
|
|
@@ -45,7 +45,15 @@ export const RadioSpan = styled.span<{ $mode?: string }>`
|
|
|
45
45
|
border: none;
|
|
46
46
|
}
|
|
47
47
|
`
|
|
48
|
-
}
|
|
48
|
+
} else if ($mode === 'sort') {
|
|
49
|
+
return css`
|
|
50
|
+
padding-left: 0;
|
|
51
|
+
&:before,
|
|
52
|
+
&:after {
|
|
53
|
+
border: none;
|
|
54
|
+
}
|
|
55
|
+
`
|
|
56
|
+
}
|
|
49
57
|
}}
|
|
50
58
|
`
|
|
51
59
|
|
|
@@ -80,6 +88,20 @@ export const RadioInput = styled.input<{ $mode?: string }>`
|
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
90
|
`
|
|
91
|
+
} else if ($mode === 'sort') {
|
|
92
|
+
return css`
|
|
93
|
+
&:checked + ${RadioSpan} {
|
|
94
|
+
&:before,
|
|
95
|
+
&:after {
|
|
96
|
+
border: none;
|
|
97
|
+
transform: none;
|
|
98
|
+
background: none;
|
|
99
|
+
}
|
|
100
|
+
&:before {
|
|
101
|
+
width: 14px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`
|
|
83
105
|
}
|
|
84
106
|
}}
|
|
85
107
|
`
|