forstok-ui-lib 5.2.45 → 5.2.46
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 +124 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +124 -124
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/icon/styles.ts +8 -0
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ import IconArrowLeft from '../../assets/images/icons/arrow-left.svg'
|
|
|
26
26
|
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
|
+
import IconCalendar from '../../assets/images/icons/calendar.svg'
|
|
29
30
|
|
|
30
31
|
const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: string, $name: string, $width?: string | number, onClick?: (e: MouseEvent<HTMLElement>) => void }) => {
|
|
31
32
|
let style = ``;
|
|
@@ -212,6 +213,13 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: stri
|
|
|
212
213
|
}
|
|
213
214
|
`
|
|
214
215
|
break
|
|
216
|
+
case 'calendar':
|
|
217
|
+
style += `
|
|
218
|
+
&:before {
|
|
219
|
+
content: url(${IconCalendar});
|
|
220
|
+
}
|
|
221
|
+
`
|
|
222
|
+
break
|
|
215
223
|
default:
|
|
216
224
|
break;
|
|
217
225
|
}
|