forstok-ui-lib 5.1.6 → 5.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.1.6",
3
+ "version": "5.1.9",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <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"
4
+ viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5
+ <g>
6
+ <g>
7
+ <path d="M472,312.642v139c0,11.028-8.972,20-20,20H60c-11.028,0-20-8.972-20-20v-139H0v139c0,33.084,26.916,60,60,60h392
8
+ c33.084,0,60-26.916,60-60v-139H472z"/>
9
+ </g>
10
+ </g>
11
+ <g>
12
+ <g>
13
+ <polygon points="256,0.358 131.716,124.642 160,152.926 236,76.926 236,388.642 276,388.642 276,76.926 352,152.926
14
+ 380.284,124.642 "/>
15
+ </g>
16
+ </g>
17
+ <g>
18
+ </g>
19
+ <g>
20
+ </g>
21
+ <g>
22
+ </g>
23
+ <g>
24
+ </g>
25
+ <g>
26
+ </g>
27
+ <g>
28
+ </g>
29
+ <g>
30
+ </g>
31
+ <g>
32
+ </g>
33
+ <g>
34
+ </g>
35
+ <g>
36
+ </g>
37
+ <g>
38
+ </g>
39
+ <g>
40
+ </g>
41
+ <g>
42
+ </g>
43
+ <g>
44
+ </g>
45
+ <g>
46
+ </g>
47
+ </svg>
@@ -6,6 +6,7 @@ import IconCheckGrey from '../../assets/images/icons/checkmark-tick-grey.svg';
6
6
  import IconCheck from '../../assets/images/icons/checkmark-tick.svg';
7
7
  import IconEdit from '../../assets/images/icons/edit.svg';
8
8
  import IconArrow from '../../assets/images/icons/arrow.svg';
9
+ import IconArrowUpload from '../../assets/images/icons/arrow-upload.svg'
9
10
  import IconDiscount from '../../assets/images/icons/discount.svg';
10
11
  import IconCash from '../../assets/images/icons/cash.svg';
11
12
  import IconCredit from '../../assets/images/icons/credit.svg';
@@ -156,6 +157,13 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: stri
156
157
  }
157
158
  `
158
159
  break;
160
+ case 'arrow-upload':
161
+ style += `
162
+ &:before {
163
+ content: url(${IconArrowUpload});
164
+ }
165
+ `
166
+ break;
159
167
  default:
160
168
  break;
161
169
  }
@@ -19,7 +19,7 @@ type TSelect = {
19
19
  isCreateable?: boolean
20
20
  isClearable?: boolean
21
21
  selectKey?: string
22
- disabled?: boolean
22
+ disabled ?: boolean
23
23
  width?: string | number
24
24
  reset?: boolean
25
25
  setReset?: TState<boolean>
@@ -185,7 +185,7 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
185
185
  '&:hover': {
186
186
  borderColor: ((state.isFocused && mode !== 'filter') && !isError) ? 'var(--pri-clr-ln__fc)' : (isError ? 'var(--err-clr-ln)' : (mode ==='filter' ? 'var(--ter-clr-ln)' : ' var(--ck-clr-ln)' )),
187
187
  },
188
- color: (disabled? '#ADADAD' :'initial'),
188
+ color: disabled ? '#ADADAD' :'initial',
189
189
  opacity: disabled ? '.7' : 1
190
190
  } as CSSObjectWithLabel),
191
191
  placeholder: (provided: CSSObject) => ({
@@ -237,17 +237,17 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
237
237
  ...provided,
238
238
  minHeight: '1px',
239
239
  paddingBottom: '2px',
240
- color: (disabled? '#ADADAD' : (mode === 'form' ? '#2d3c48' : 'initial')),
240
+ color: (disabled ? '#ADADAD' : (mode === 'form' ? '#2d3c48' : 'initial')),
241
241
  opacity: disabled ? '.7' : 1,
242
242
  } as CSSObjectWithLabel),
243
243
  option: (provided: CSSObject, state: OptionProps<TOption, typeof isMulti>) => ({
244
244
  ...provided,
245
- color: state.isSelected ? '#ffffff' : '#000000',
246
- backgroundColor: state.isSelected || state.isFocused ? '#fc5c64' : 'transparent',
245
+ color: disabled ? '#ADADAD' : (state.isSelected ? '#ffffff' : '#000000'),
246
+ backgroundColor: disabled ? 'transparent' : (state.isSelected || state.isFocused ? '#fc5c64' : 'transparent'),
247
247
  cursor: 'pointer',
248
248
  '&:hover': {
249
- backgroundColor: '#ec5b62',
250
- color: '#ffffff'
249
+ backgroundColor: disabled ? 'transparent' : '#ec5b62',
250
+ color: disabled ? '#ADADAD' : '#ffffff'
251
251
  }
252
252
  } as CSSObjectWithLabel),
253
253
  menu: (provided: CSSObject) => ({