forstok-ui-lib 5.4.7 → 5.4.9
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +256 -246
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +240 -230
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/rollup.config.js +1 -1
- package/src/assets/images/icons/notif-download-white.svg +6 -0
- package/src/assets/images/icons/notif-upload-white.svg +6 -0
- package/src/components/cascader/calendar.tsx +57 -0
- package/src/components/cascader/rc-calendar.css +1119 -0
- package/src/components/cascader/styles.tsx +0 -0
- package/src/components/icon/styles.ts +29 -1
- package/src/components/index.ts +1 -0
- package/src/declarations.d.ts +4 -1
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MouseEvent } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
3
|
import IconArrowLeftBlue from '../../assets/images/icons/arrow-left-blue.svg';
|
|
4
4
|
import IconSearch from '../../assets/images/icons/search.svg';
|
|
5
5
|
import IconCheckGrey from '../../assets/images/icons/checkmark-tick-grey.svg';
|
|
@@ -29,6 +29,20 @@ import IconArrowRightDouble from '../../assets/images/icons/arrow-right-double.s
|
|
|
29
29
|
import IconCalendar from '../../assets/images/icons/calendar.svg'
|
|
30
30
|
import IconQuestion from '../../assets/images/icons/question.svg';
|
|
31
31
|
import IconSortby from '../../assets/images/icons/sortby.svg';
|
|
32
|
+
import IconNotificationDownload from '../../assets/images/icons/notif-download-white.svg';
|
|
33
|
+
import IconNotificationUpload from '../../assets/images/icons/notif-upload-white.svg';
|
|
34
|
+
|
|
35
|
+
const NotificationStyled = css`
|
|
36
|
+
width: 44px;
|
|
37
|
+
height: 44px;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
text-align: center;
|
|
40
|
+
background-color: var(--mt-clr-bg);
|
|
41
|
+
border-radius: 100%;
|
|
42
|
+
display: grid;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
`
|
|
32
46
|
|
|
33
47
|
const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: string, $name: string, $width?: string | number, onClick?: (e: MouseEvent<HTMLElement>) => void }) => {
|
|
34
48
|
let style = ``;
|
|
@@ -237,6 +251,20 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: stri
|
|
|
237
251
|
}
|
|
238
252
|
`
|
|
239
253
|
break;
|
|
254
|
+
case 'NotificationDownload' :
|
|
255
|
+
style += `
|
|
256
|
+
${NotificationStyled}
|
|
257
|
+
&:before {
|
|
258
|
+
content: url(${IconNotificationDownload});
|
|
259
|
+
}`
|
|
260
|
+
break;
|
|
261
|
+
case 'NotificationUpload' :
|
|
262
|
+
style += `
|
|
263
|
+
${NotificationStyled}
|
|
264
|
+
&:before {
|
|
265
|
+
content: url(${IconNotificationUpload});
|
|
266
|
+
}`
|
|
267
|
+
break;
|
|
240
268
|
default:
|
|
241
269
|
break;
|
|
242
270
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { default as RadioComponent } from './radio';
|
|
|
26
26
|
export { default as SwitchComponent } from './switch';
|
|
27
27
|
export { default as MasterTableComponent } from './masterTable';
|
|
28
28
|
export { default as ListComponent } from './list';
|
|
29
|
+
export { default as AntCalendarComponent } from './cascader/calendar';
|
|
29
30
|
|
|
30
31
|
export * from './dropdown/typed';
|
|
31
32
|
export * from './message/typed';
|
package/src/declarations.d.ts
CHANGED