forstok-ui-lib 5.2.56 → 5.3.2
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/postcss.config.js +3 -0
- package/rollup.config.js +3 -0
- package/src/assets/images/icons/sortby.svg +11 -0
- package/src/components/icon/styles.ts +10 -2
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
|
|
5
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
|
|
6
|
+
|
|
7
|
+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
|
|
9
|
+
<g id="SVGRepo_iconCarrier"> <path d="M10 7L2 7" stroke="#000000" stroke-width="1.5" stroke-linecap="round"/> <path d="M8 12H2" stroke="#000000" stroke-width="1.5" stroke-linecap="round"/> <path d="M10 17H2" stroke="#000000" stroke-width="1.5" stroke-linecap="round"/> <circle cx="17" cy="12" r="5" stroke="#000000" stroke-width="1.5"/> <path d="M17 10V11.8462L18 13" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> </g>
|
|
10
|
+
|
|
11
|
+
</svg>
|
|
@@ -27,7 +27,8 @@ import IconArrowLeftDouble from '../../assets/images/icons/arrow-left-double.svg
|
|
|
27
27
|
import IconArrowRight from '../../assets/images/icons/arrow-right.svg'
|
|
28
28
|
import IconArrowRightDouble from '../../assets/images/icons/arrow-right-double.svg'
|
|
29
29
|
import IconCalendar from '../../assets/images/icons/calendar.svg'
|
|
30
|
-
import IconQuestion from '../../assets/images/icons/question.svg'
|
|
30
|
+
import IconQuestion from '../../assets/images/icons/question.svg';
|
|
31
|
+
import IconSortby from '../../assets/images/icons/sortby.svg';
|
|
31
32
|
|
|
32
33
|
const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: string, $name: string, $width?: string | number, onClick?: (e: MouseEvent<HTMLElement>) => void }) => {
|
|
33
34
|
let style = ``;
|
|
@@ -228,7 +229,14 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: stri
|
|
|
228
229
|
filter: grayscale(100%);
|
|
229
230
|
}
|
|
230
231
|
`
|
|
231
|
-
break
|
|
232
|
+
break;
|
|
233
|
+
case 'sortby':
|
|
234
|
+
style += `
|
|
235
|
+
&:before {
|
|
236
|
+
content: url(${IconSortby});
|
|
237
|
+
}
|
|
238
|
+
`
|
|
239
|
+
break;
|
|
232
240
|
default:
|
|
233
241
|
break;
|
|
234
242
|
}
|