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.
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
  }
@@ -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';
@@ -53,4 +53,7 @@ declare module '*.module.sass' {
53
53
  export default classes;
54
54
  }
55
55
 
56
- declare module 'approvejs';
56
+ declare module 'approvejs';
57
+
58
+ declare module 'rc-calendar/src/Picker';
59
+ declare module 'rc-calendar/src/RangeCalendar';