forstok-ui-lib 5.6.0 → 5.6.2
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.d.ts +2 -1
- package/dist/index.js +39 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/icons/arrow-download.svg +40 -0
- package/src/assets/images/icons/arrow-white-upload.svg +10 -0
- package/src/components/button/styles.ts +26 -1
- package/src/components/select/index.tsx +1 -0
- package/src/components/select/typed.ts +4 -2
package/package.json
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.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 41.712 41.712" style="enable-background:new 0 0 41.712 41.712;" xml:space="preserve">
|
|
5
|
+
<path style="fill:#000000;" d="M31.586,21.8c0.444-0.444,0.444-1.143,0-1.587c-0.429-0.444-1.143-0.444-1.571,0l-8.047,8.032V1.706
|
|
6
|
+
c0-0.619-0.492-1.127-1.111-1.127c-0.619,0-1.127,0.508-1.127,1.127v26.539l-8.031-8.032c-0.444-0.444-1.159-0.444-1.587,0
|
|
7
|
+
c-0.444,0.444-0.444,1.143,0,1.587l9.952,9.952c0.429,0.429,1.143,0.429,1.587,0L31.586,21.8z M39.474,29.086
|
|
8
|
+
c0-0.619,0.492-1.111,1.111-1.111c0.619,0,1.127,0.492,1.127,1.111v10.92c0,0.619-0.508,1.127-1.127,1.127H1.111
|
|
9
|
+
C0.492,41.133,0,40.625,0,40.006v-10.92c0-0.619,0.492-1.111,1.111-1.111s1.127,0.492,1.127,1.111v9.809h37.236V29.086z"/>
|
|
10
|
+
<g>
|
|
11
|
+
</g>
|
|
12
|
+
<g>
|
|
13
|
+
</g>
|
|
14
|
+
<g>
|
|
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
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 64 64" enable-background="new 0 0 64 64">
|
|
4
|
+
<g>
|
|
5
|
+
<g fill="#1D1D1B">
|
|
6
|
+
<path d="m63.824,41.771c0-1.341-1.086-2.428-2.427-2.428-1.342,0-2.428,1.087-2.428,2.428v14.07h-54.014v-14.07c1.77636e-15-1.341-1.085-2.428-2.428-2.428-1.341,0-2.427,1.087-2.427,2.428v15.486c0,0.179 0.065,0.337 0.103,0.505-0.037,0.168-0.103,0.326-0.103,0.506 0,1.34 1.086,2.427 2.427,2.427h58.87c1.341,0 2.427-1.087 2.427-2.427 0-0.18-0.063-0.338-0.103-0.506 0.039-0.168 0.103-0.327 0.103-0.505v-15.486z" fill="#FFFFFF"/>
|
|
7
|
+
<path d="m32.114,49.306c1.341,0 2.428-1.087 2.428-2.427v-35.464l10.573,10.573c0.474,0.474 1.096,0.712 1.717,0.712 0.62,0 1.242-0.238 1.715-0.712 0.95-0.948 0.95-2.484 0-3.432l-14.717-14.717c-0.947-0.95-2.483-0.95-3.432-4.44089e-16l-14.717,14.717c-0.947,0.948-0.947,2.484 0,3.432 0.474,0.474 1.096,0.712 1.717,0.712s1.242-0.238 1.716-0.712l10.573-10.573v35.464c0,1.34 1.085,2.427 2.427,2.427z" fill="#FFFFFF"/>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
+
import IconArrowDownload from '../../assets/images/icons/arrow-download.svg';
|
|
3
|
+
import IconArrowUpload from '../../assets/images/icons/arrow-white-upload.svg';
|
|
2
4
|
import IconDotted from '../../assets/images/icons/dotted.svg';
|
|
3
5
|
import IconClose from '../../assets/images/icons/close.svg';
|
|
4
6
|
import IconCloseWhite from '../../assets/images/icons/close-white.svg';
|
|
@@ -178,7 +180,30 @@ const getButtonModifiedStyled = ({ $mode, $isIndicatorArrow, $isShown, $isLoadin
|
|
|
178
180
|
}
|
|
179
181
|
if ($iconLeft) {
|
|
180
182
|
style += ` padding-left: 35px; `
|
|
181
|
-
if ($iconLeft === '
|
|
183
|
+
if ($iconLeft === 'export') {
|
|
184
|
+
style += `
|
|
185
|
+
&:before {
|
|
186
|
+
content: url(${IconArrowDownload});
|
|
187
|
+
position: absolute;
|
|
188
|
+
left: 12px;
|
|
189
|
+
top: 7px;
|
|
190
|
+
width: 14px;
|
|
191
|
+
${IconStyles}
|
|
192
|
+
}
|
|
193
|
+
`
|
|
194
|
+
} else if ($iconLeft === 'import') {
|
|
195
|
+
style += `
|
|
196
|
+
&:before {
|
|
197
|
+
content: url(${IconArrowUpload});
|
|
198
|
+
position: absolute;
|
|
199
|
+
left: 50%;
|
|
200
|
+
top: 8px;
|
|
201
|
+
width: 1rem;
|
|
202
|
+
margin-left: -8px;
|
|
203
|
+
${IconStyles}
|
|
204
|
+
}
|
|
205
|
+
`
|
|
206
|
+
} else if ($iconLeft === 'filter') {
|
|
182
207
|
style += `
|
|
183
208
|
&:before {
|
|
184
209
|
content: url(${IconFilter});
|
|
@@ -320,6 +320,7 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
|
|
|
320
320
|
{...isMulti && { isMulti: true }}
|
|
321
321
|
{...customOption && { components: { Option: customOption } }}
|
|
322
322
|
{...mode === 'paymentReceiveStore' && { components: { Option: customOption, SingleValue: customLabel } }}
|
|
323
|
+
{...customLabel && { components: { SingleValue: customLabel } }}
|
|
323
324
|
{...MenuList && { components: { MenuList, Option: customOption } }}
|
|
324
325
|
{...selectKey && { key: selectKey }}
|
|
325
326
|
{...disabled && { isDisabled: disabled }}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionMeta, OnChangeValue } from 'react-select';
|
|
1
|
+
import type { ActionMeta, OnChangeValue, SingleValueProps } from 'react-select';
|
|
2
2
|
import type { OptionProps, GroupBase, StylesConfig, CSSObjectWithLabel, ControlProps } from 'react-select';
|
|
3
3
|
import { CSSObject } from '@emotion/serialize'
|
|
4
4
|
import type { TChannel } from '../../typeds/shares.typed';
|
|
@@ -69,4 +69,6 @@ export type TControlProps = ControlProps<TOption, boolean>
|
|
|
69
69
|
|
|
70
70
|
export type TOptionProps = OptionProps<TOption, boolean>
|
|
71
71
|
|
|
72
|
-
export type TGroupBase = GroupBase<TOption>
|
|
72
|
+
export type TGroupBase = GroupBase<TOption>
|
|
73
|
+
|
|
74
|
+
export type TSingleValueProps = SingleValueProps<TOption, boolean>
|