forstok-ui-lib 8.1.2 → 8.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "8.1.2",
3
+ "version": "8.2.0",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 451.847 451.847" xml:space="preserve" style="fill: #c7c7cc;">
5
+ <path d="M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751
6
+ c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0
7
+ c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"/>
8
+ </svg>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ viewBox="0 0 700 700" enable-background="new 0 0 700 700" xml:space="preserve">
6
+ <path fill="#fc5c64" d="M488.94,350.667l163.909-163.89c37.043-37.052,37.043-97.118,0-134.16
7
+ c-37.043-37.034-97.107-37.034-134.142,0L354.809,216.517L190.909,52.617c-37.033-37.034-97.117-37.034-134.151,0
8
+ c-37.042,37.042-37.042,97.108,0,134.16l163.9,163.89l-163.9,163.89c-37.042,37.052-37.042,97.118,0,134.161
9
+ c18.526,18.517,42.792,27.774,67.075,27.774c24.275,0,48.559-9.258,67.076-27.774l163.899-163.909l163.899,163.909
10
+ c18.518,18.517,42.782,27.774,67.066,27.774c24.283,0,48.559-9.258,67.075-27.774c37.043-37.043,37.043-97.109,0-134.161
11
+ L488.94,350.667z"/>
12
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM10.25 11C10.25 10.4477 10.6977 10 11.25 10H12.75C13.3023 10 13.75 10.4477 13.75 11V18C13.75 18.5523 13.3023 19 12.75 19H11.25C10.6977 19 10.25 18.5523 10.25 18V11ZM14 7C14 5.89543 13.1046 5 12 5C10.8954 5 10 5.89543 10 7C10 8.10457 10.8954 9 12 9C13.1046 9 14 8.10457 14 7Z" fill="#758CA3"/>
4
+ </svg>
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
2
+
3
+ <!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
4
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#000000">
5
+
6
+ <g id="SVGRepo_bgCarrier" stroke-width="0"/>
7
+
8
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
9
+
10
+ <g id="SVGRepo_iconCarrier"> <path d="M14 10L10 14" stroke="#2DB84C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M16 13L18 11C19.3807 9.61929 19.3807 7.38071 18 6V6C16.6193 4.61929 14.3807 4.61929 13 6L11 8M8 11L6 13C4.61929 14.3807 4.61929 16.6193 6 18V18C7.38071 19.3807 9.61929 19.3807 11 18L13 16" stroke="#2DB84C" stroke-width="2" stroke-linecap="round"/> </g>
11
+
12
+ </svg>
@@ -1,7 +1,7 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import LoadingComponent from '../loading';
3
3
  import { IconContainer } from './styles';
4
- import { IconMode, IconName } from './type';
4
+ import { IconMode, IconName } from './typed';
5
5
 
6
6
  type TIcon = HTMLAttributes<HTMLElement> & {
7
7
  $mode?: IconMode
@@ -98,8 +98,12 @@ import IconPrice from '../../assets/images/icons/price.svg'
98
98
  import IconThumb from '../../assets/images/icons/thumb.svg'
99
99
  import IconClipboard from '../../assets/images/icons/clipboard.svg'
100
100
  import IconReload from '../../assets/images/icons/reload.svg'
101
+ import IconArrowDownGrey from '../../assets/images/icons/arrow-down-grey.svg'
102
+ import IconCross from '../../assets/images/icons/checkmark-x.svg'
103
+ import IconLinkGreen from '../../assets/images/icons/link-green.svg'
104
+ import IconInfo from '../../assets/images/icons/info.svg'
101
105
 
102
- import { IconMode, IconName } from './type'
106
+ import { IconMode, IconName } from './typed'
103
107
 
104
108
  const NotificationStyled = css`
105
109
  width: 44px;
@@ -210,7 +214,11 @@ const iconStyles = {
210
214
  'price': IconPrice,
211
215
  'thumb': IconThumb,
212
216
  'clipboard': IconClipboard,
213
- 'reload': IconReload
217
+ 'reload': IconReload,
218
+ 'arrow-down-grey': IconArrowDownGrey,
219
+ 'cross': IconCross,
220
+ 'link-green': IconLinkGreen,
221
+ 'info': IconInfo
214
222
  } as const
215
223
  const modeStyles = {
216
224
  filter: css`
@@ -236,6 +244,14 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: Icon
236
244
  }
237
245
  `}
238
246
 
247
+ ${$name === 'link-green' && css`
248
+ &:before {
249
+ position: relative;
250
+ top: 3px;
251
+ left: -2px;
252
+ }
253
+ `}
254
+
239
255
  ${($name === 'NotificationDownload' || $name === 'NotificationUpload') && css`
240
256
  ${NotificationStyled}
241
257
  `}
@@ -96,6 +96,10 @@ export type IconName =
96
96
  | 'thumb'
97
97
  | 'clipboard'
98
98
  | 'reload'
99
+ | 'arrow-down-grey'
100
+ | 'cross'
101
+ | 'link-green'
102
+ | 'info'
99
103
 
100
104
  export type IconMode =
101
105
  | 'filter'
@@ -3,7 +3,7 @@ import Image from '.'
3
3
  import { InitialContainer, APILabel } from '../../assets/stylesheets/shares.styles'
4
4
  import LinkComponent from '../link';
5
5
 
6
- import { ImageMode } from './type'
6
+ import { ImageMode } from './typed'
7
7
 
8
8
  type TImage = {
9
9
  data?: any;
@@ -39,6 +39,7 @@ export * from './select/typed';
39
39
  export * from './link/typed';
40
40
  export * from './dropdown/typed';
41
41
  export * from './date/typed';
42
+ export * from './icon/typed';
42
43
 
43
44
  export * from './form/styles';
44
45
  export * from './date/styles';
@@ -2,7 +2,7 @@ import { isValidElement, useEffect } from 'react'
2
2
 
3
3
  import { TableContainer, TableHeadRow, TableHeadColumn, TableBodyRow, TableBodyColumn, TableFootRow, TableFootColumn, TableFinalRow, TableFinalColumn, TableBoldFootRow, TableBoldFootColumn } from './style'
4
4
 
5
- import type { TTable } from './type'
5
+ import type { TTable } from './typed'
6
6
 
7
7
  const nameDefValue = `table_${new Date().getTime()}`
8
8
 
@@ -1,6 +1,6 @@
1
1
  import styled, { css } from 'styled-components'
2
2
 
3
- import type { TableMode, TTable } from './type'
3
+ import type { TableMode, TTable } from './typed'
4
4
 
5
5
  type TTableStyle = Omit<TTable, 'children'>
6
6
 
File without changes
File without changes