forstok-ui-lib 5.2.46 → 5.2.48
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 +2 -1
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/icons/filter.svg +34 -0
- package/src/assets/images/icons/xls.svg +9 -0
- package/src/components/button/styles.ts +14 -1
- package/src/components/link/index.tsx +4 -1
- package/src/components/link/styles.ts +18 -3
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="100%" height="100%" viewBox="0 0 512.000000 512.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M940 4343 c-174 -29 -331 -159 -391 -323 l-20 -55 -194 3 c-217 3
|
|
11
|
+
-257 -3 -300 -48 -25 -26 -30 -40 -30 -80 0 -40 5 -54 30 -80 43 -45 83 -51
|
|
12
|
+
300 -48 l195 3 11 -35 c32 -98 110 -202 193 -259 65 -45 167 -81 248 -87 222
|
|
13
|
+
-19 431 110 515 316 l22 55 1753 5 c1718 5 1754 5 1785 25 34 20 63 68 63 105
|
|
14
|
+
0 37 -29 85 -63 105 -31 20 -67 20 -1785 25 l-1753 5 -22 55 c-89 219 -326
|
|
15
|
+
352 -557 313z m159 -259 c104 -30 181 -135 181 -244 0 -188 -204 -314 -370
|
|
16
|
+
-230 -89 46 -140 128 -140 230 0 76 21 129 71 178 73 74 158 96 258 66z"/>
|
|
17
|
+
<path d="M3991 3060 c-171 -36 -329 -182 -385 -352 -5 -17 -97 -18 -1738 -18
|
|
18
|
+
-1111 0 -1746 -4 -1769 -10 -19 -5 -48 -24 -65 -41 -24 -25 -29 -39 -29 -79 0
|
|
19
|
+
-40 5 -54 29 -79 17 -17 46 -36 65 -41 23 -6 658 -10 1769 -10 1641 0 1733 -1
|
|
20
|
+
1738 -17 74 -227 297 -379 529 -359 210 17 380 153 448 358 5 15 30 17 224 20
|
|
21
|
+
242 3 254 6 293 71 24 39 25 66 4 110 -32 66 -53 72 -297 75 -194 3 -219 5
|
|
22
|
+
-224 20 -52 157 -171 281 -319 333 -68 23 -206 33 -273 19z m218 -269 c90 -47
|
|
23
|
+
141 -129 141 -231 0 -102 -51 -184 -140 -230 -166 -84 -370 42 -370 230 0 187
|
|
24
|
+
205 314 369 231z"/>
|
|
25
|
+
<path d="M2443 1776 c-143 -35 -272 -137 -337 -268 -20 -39 -36 -77 -36 -84 0
|
|
26
|
+
-12 -156 -14 -967 -14 -607 0 -981 -4 -1004 -10 -19 -5 -48 -24 -65 -41 -24
|
|
27
|
+
-25 -29 -39 -29 -79 0 -40 5 -54 29 -79 17 -17 46 -36 65 -41 23 -6 397 -10
|
|
28
|
+
1004 -10 811 0 967 -2 967 -14 0 -7 16 -45 36 -84 84 -169 268 -282 457 -282
|
|
29
|
+
202 1 396 133 468 320 l24 60 985 2 c931 3 987 4 1013 21 34 22 67 74 67 104
|
|
30
|
+
0 37 -30 89 -64 109 -30 18 -69 19 -1016 22 l-985 2 -24 60 c-88 230 -347 364
|
|
31
|
+
-588 306z m196 -252 c99 -29 181 -140 181 -244 0 -133 -127 -260 -260 -260
|
|
32
|
+
-133 0 -260 127 -260 260 0 101 82 215 176 244 64 19 99 19 163 0z"/>
|
|
33
|
+
</g>
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="100%" height="100%" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.32495 2.20001C3.32495 1.66153 3.76148 1.22501 4.29995 1.22501H9.09995C9.13631 1.22501 9.1712 1.23945 9.19691 1.26517L12.4348 4.50305C12.4605 4.52876 12.475 4.56365 12.475 4.60001V11.8C12.475 12.3385 12.0384 12.775 11.5 12.775H4.29995C3.76147 12.775 3.32495 12.3385 3.32495 11.8V2.20001Z" fill="white"/>
|
|
3
|
+
<path d="M3.32495 2.20001C3.32495 1.66153 3.76148 1.22501 4.29995 1.22501H9.09995C9.13631 1.22501 9.1712 1.23945 9.19691 1.26517L12.4348 4.50305C12.4605 4.52876 12.475 4.56365 12.475 4.60001V11.8C12.475 12.3385 12.0384 12.775 11.5 12.775H4.29995C3.76147 12.775 3.32495 12.3385 3.32495 11.8V2.20001Z" stroke="#D0D5DD"/>
|
|
4
|
+
<path d="M3.32495 2.20001C3.32495 1.66153 3.76148 1.22501 4.29995 1.22501H9.09995C9.13631 1.22501 9.1712 1.23945 9.19691 1.26517L12.4348 4.50305C12.4605 4.52876 12.475 4.56365 12.475 4.60001V11.8C12.475 12.3385 12.0384 12.775 11.5 12.775H4.29995C3.76147 12.775 3.32495 12.3385 3.32495 11.8V2.20001Z" stroke="black" stroke-opacity="0.2"/>
|
|
5
|
+
<path d="M9.1001 1.14999V3.39999C9.1001 4.06272 9.63737 4.59999 10.3001 4.59999H12.5501" stroke="#D0D5DD"/>
|
|
6
|
+
<path d="M9.1001 1.14999V3.39999C9.1001 4.06272 9.63737 4.59999 10.3001 4.59999H12.5501" stroke="black" stroke-opacity="0.2"/>
|
|
7
|
+
<path d="M8.50005 6.39999H1.90005C1.56868 6.39999 1.30005 6.66862 1.30005 6.99999V10.6C1.30005 10.9314 1.56868 11.2 1.90005 11.2H8.50005C8.83142 11.2 9.10005 10.9314 9.10005 10.6V6.99999C9.10005 6.66862 8.83142 6.39999 8.50005 6.39999Z" fill="#099250"/>
|
|
8
|
+
<path d="M2.91599 7.8182L3.35598 8.56181H3.37303L3.81514 7.8182H4.33608L3.67026 8.90909L4.35099 10H3.82047L3.37303 9.25535H3.35598L2.90854 10H2.38013L3.06301 8.90909L2.39291 7.8182H2.91599ZM4.62799 10V7.8182H5.08929V9.61967H6.02467V10H4.62799ZM7.51375 8.44568C7.50523 8.35973 7.46863 8.29298 7.40401 8.2454C7.33939 8.19782 7.25167 8.17403 7.14087 8.17403C7.06558 8.17403 7.00204 8.18468 6.95016 8.20598C6.89832 8.22656 6.85855 8.25533 6.83086 8.29226C6.80385 8.32919 6.79039 8.3711 6.79039 8.41799C6.78895 8.45705 6.79711 8.49113 6.81487 8.52026C6.83335 8.54936 6.85855 8.57459 6.89053 8.59589C6.92248 8.6165 6.95941 8.63459 7.00132 8.65022C7.04323 8.66513 7.08795 8.67791 7.13554 8.68859L7.33156 8.73545C7.42675 8.75675 7.51411 8.78515 7.59364 8.82068C7.6732 8.85619 7.74208 8.89988 7.80031 8.95171C7.85857 9.00356 7.90366 9.06464 7.93561 9.13496C7.96828 9.20528 7.98498 9.28589 7.98567 9.37679C7.98498 9.51032 7.95088 9.62609 7.88341 9.72409C7.81666 9.82139 7.72006 9.89702 7.59364 9.95098C7.46794 10.0043 7.31629 10.0309 7.13875 10.0309C6.96262 10.0309 6.8092 10.0039 6.67852 9.94993C6.54856 9.89597 6.44698 9.81605 6.37384 9.71024C6.30139 9.60371 6.26338 9.47195 6.25984 9.31499H6.7062C6.71118 9.38816 6.73213 9.44924 6.76906 9.49823C6.80671 9.54653 6.85678 9.58309 6.91927 9.60796C6.98248 9.63212 7.05388 9.64418 7.13341 9.64418C7.21153 9.64418 7.27936 9.63281 7.33689 9.6101C7.39513 9.58736 7.44025 9.55577 7.4722 9.51526C7.50415 9.47479 7.52013 9.42827 7.52013 9.37571C7.52013 9.32672 7.50559 9.28552 7.47646 9.25214C7.44805 9.21874 7.40614 9.19034 7.35076 9.16691C7.29607 9.14348 7.22893 9.12217 7.14939 9.10298L6.91183 9.04334C6.72786 8.99858 6.58264 8.92862 6.47611 8.83346C6.36958 8.7383 6.31666 8.61011 6.31738 8.44886C6.31666 8.31677 6.35182 8.20136 6.42283 8.10263C6.49455 8.00393 6.59293 7.92686 6.71794 7.87145C6.84292 7.81607 6.98497 7.78835 7.14406 7.78835C7.306 7.78835 7.44733 7.81607 7.56808 7.87145C7.68952 7.92686 7.78399 8.00393 7.85146 8.10263C7.91893 8.20136 7.95373 8.31572 7.95586 8.44568H7.51375Z" fill="white"/>
|
|
9
|
+
</svg>
|
|
@@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
|
|
|
2
2
|
import IconDotted from '../../assets/images/icons/dotted.svg';
|
|
3
3
|
import IconClose from '../../assets/images/icons/close.svg';
|
|
4
4
|
import IconCloseWhite from '../../assets/images/icons/close-white.svg';
|
|
5
|
+
import IconFilter from '../../assets/images/icons/filter.svg';
|
|
5
6
|
import IconCalendar from '../../assets/images/icons/calendar.svg';
|
|
6
7
|
|
|
7
8
|
const IconStyles = css`
|
|
@@ -177,7 +178,19 @@ const getButtonModifiedStyled = ({ $mode, $isIndicatorArrow, $isShown, $isLoadin
|
|
|
177
178
|
}
|
|
178
179
|
if ($iconLeft) {
|
|
179
180
|
style += ` padding-left: 35px; `
|
|
180
|
-
if ($iconLeft === '
|
|
181
|
+
if ($iconLeft === 'filter') {
|
|
182
|
+
style += `
|
|
183
|
+
&:before {
|
|
184
|
+
content: url(${IconFilter});
|
|
185
|
+
position: absolute;
|
|
186
|
+
left: 12px;
|
|
187
|
+
top: 50%;
|
|
188
|
+
margin-top: -8px;
|
|
189
|
+
width: 14px;
|
|
190
|
+
height: 16px;
|
|
191
|
+
}
|
|
192
|
+
`
|
|
193
|
+
} else if ($iconLeft === 'calendar') {
|
|
181
194
|
style += `
|
|
182
195
|
&:before {
|
|
183
196
|
content: url(${IconCalendar});
|
|
@@ -7,6 +7,7 @@ type TLinkBase = {
|
|
|
7
7
|
$activated?: boolean
|
|
8
8
|
$elipsis?: boolean
|
|
9
9
|
$shadow?: boolean
|
|
10
|
+
$iconRight?: string
|
|
10
11
|
disabled?: boolean
|
|
11
12
|
} & (
|
|
12
13
|
(AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -19,7 +20,7 @@ type TLinkBase = {
|
|
|
19
20
|
})
|
|
20
21
|
);
|
|
21
22
|
|
|
22
|
-
const LinkComponent = ({ children, mode, $activated=false, href, $elipsis=false, $shadow=false, disabled=false, ...props }: TLinkBase) => {
|
|
23
|
+
const LinkComponent = ({ children, mode, $activated=false, href, $elipsis=false, $shadow=false, $iconRight ,disabled=false, ...props }: TLinkBase) => {
|
|
23
24
|
const { onClick } = props
|
|
24
25
|
return (
|
|
25
26
|
href ? (
|
|
@@ -29,6 +30,7 @@ const LinkComponent = ({ children, mode, $activated=false, href, $elipsis=false,
|
|
|
29
30
|
$activated={$activated}
|
|
30
31
|
$elipsis={$elipsis}
|
|
31
32
|
$shadow={$shadow}
|
|
33
|
+
$iconRight={$iconRight}
|
|
32
34
|
disabled={disabled}
|
|
33
35
|
href={href}
|
|
34
36
|
{...props}
|
|
@@ -42,6 +44,7 @@ const LinkComponent = ({ children, mode, $activated=false, href, $elipsis=false,
|
|
|
42
44
|
$activated={$activated}
|
|
43
45
|
$elipsis={$elipsis}
|
|
44
46
|
$shadow={$shadow}
|
|
47
|
+
$iconRight={$iconRight}
|
|
45
48
|
disabled={disabled}
|
|
46
49
|
onClick={onClick}
|
|
47
50
|
{...props}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { multiElipsis } from '../../assets/stylesheets/bases.styles';
|
|
3
|
+
import IconXls from '../../assets/images/icons/xls.svg';
|
|
3
4
|
|
|
4
5
|
const ClearStyles = css`
|
|
5
6
|
color: var(--pri-clr-lnk);
|
|
@@ -36,7 +37,7 @@ const ButtonStyles = css`
|
|
|
36
37
|
text-decoration: none;
|
|
37
38
|
}
|
|
38
39
|
`
|
|
39
|
-
const getLinkModifiedStyled = ({ mode, $elipsis, $activated, $shadow, disabled }:{ mode?: string, $elipsis: boolean, $activated: boolean, $shadow: boolean, disabled: boolean }) => {
|
|
40
|
+
const getLinkModifiedStyled = ({ mode, $elipsis, $activated, $shadow, $iconRight, disabled }:{ mode?: string, $elipsis: boolean, $activated: boolean, $shadow: boolean, $iconRight?: string, disabled: boolean }) => {
|
|
40
41
|
let style = ``;
|
|
41
42
|
if (mode === 'clear') {
|
|
42
43
|
style += ClearStyles
|
|
@@ -134,6 +135,20 @@ const getLinkModifiedStyled = ({ mode, $elipsis, $activated, $shadow, disabled }
|
|
|
134
135
|
box-shadow: var(--act-shd-bx);
|
|
135
136
|
`
|
|
136
137
|
}
|
|
138
|
+
if ($iconRight === 'xls') {
|
|
139
|
+
style += `
|
|
140
|
+
position: relative;
|
|
141
|
+
padding-right: 21px;
|
|
142
|
+
&:before {
|
|
143
|
+
content: url(${IconXls});
|
|
144
|
+
position: absolute;
|
|
145
|
+
right: 0px;
|
|
146
|
+
top: -4px;
|
|
147
|
+
width: 18px;
|
|
148
|
+
height: 18px;
|
|
149
|
+
}
|
|
150
|
+
`
|
|
151
|
+
}
|
|
137
152
|
if(disabled) {
|
|
138
153
|
style += `
|
|
139
154
|
color: #A9A9A9;
|
|
@@ -144,10 +159,10 @@ const getLinkModifiedStyled = ({ mode, $elipsis, $activated, $shadow, disabled }
|
|
|
144
159
|
return style;
|
|
145
160
|
}
|
|
146
161
|
|
|
147
|
-
export const AnchorLinkContainer = styled.a<{ mode?: string, $elipsis: boolean, $activated: boolean, $shadow: boolean, disabled: boolean }>`
|
|
162
|
+
export const AnchorLinkContainer = styled.a<{ mode?: string, $elipsis: boolean, $activated: boolean, $shadow: boolean, $iconRight?: string, disabled: boolean }>`
|
|
148
163
|
${getLinkModifiedStyled}
|
|
149
164
|
`
|
|
150
|
-
export const ElLinkContainer = styled.span<{ mode?: string, $elipsis: boolean, $activated: boolean, $shadow: boolean, disabled: boolean }>`
|
|
165
|
+
export const ElLinkContainer = styled.span<{ mode?: string, $elipsis: boolean, $activated: boolean, $shadow: boolean, $iconRight?: string, disabled: boolean }>`
|
|
151
166
|
cursor:pointer;
|
|
152
167
|
${getLinkModifiedStyled}
|
|
153
168
|
`
|