forstok-ui-lib 8.5.19 → 8.5.21
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
|
@@ -477,6 +477,15 @@ const getTabsColumnModFunc = ({
|
|
|
477
477
|
align-items: start;
|
|
478
478
|
gap: 8px;
|
|
479
479
|
`;
|
|
480
|
+
} else if ($mode === "store-chat") {
|
|
481
|
+
style += `
|
|
482
|
+
width: 100%;
|
|
483
|
+
min-width: 0;
|
|
484
|
+
display: grid;
|
|
485
|
+
grid-template-columns: 28px minmax(0, 1fr);
|
|
486
|
+
align-items: center;
|
|
487
|
+
grid-gap: 8px;
|
|
488
|
+
`;
|
|
480
489
|
}
|
|
481
490
|
if ($content === "right") {
|
|
482
491
|
style += `
|
|
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
|
|
2
2
|
import { AsyncPaginate } from "react-select-async-paginate";
|
|
3
3
|
import type { LoadOptions } from "react-select-async-paginate";
|
|
4
4
|
import {
|
|
5
|
+
SingleValueProps,
|
|
5
6
|
ActionMeta,
|
|
6
7
|
ControlProps,
|
|
7
8
|
CSSObjectWithLabel,
|
|
@@ -19,6 +20,7 @@ type TSelect = {
|
|
|
19
20
|
type?: string;
|
|
20
21
|
mode?: string;
|
|
21
22
|
isError?: boolean;
|
|
23
|
+
customLabel?: (arg0: SingleValueProps) => void;
|
|
22
24
|
customOption?: (arg0: OptionProps) => void;
|
|
23
25
|
MenuList?: any;
|
|
24
26
|
reset?: boolean;
|
|
@@ -54,6 +56,7 @@ const SelectAsyncPaginateComponent = ({ loadOptions, ...props }: TSelect) => {
|
|
|
54
56
|
isError = false,
|
|
55
57
|
mode,
|
|
56
58
|
type,
|
|
59
|
+
customLabel,
|
|
57
60
|
customOption,
|
|
58
61
|
MenuList,
|
|
59
62
|
defaultValue,
|
|
@@ -358,7 +361,12 @@ const SelectAsyncPaginateComponent = ({ loadOptions, ...props }: TSelect) => {
|
|
|
358
361
|
onMenuOpen: onMenuOpen,
|
|
359
362
|
onMenuClose: onMenuClose,
|
|
360
363
|
})}
|
|
364
|
+
{...(customLabel && { components: { SingleValue: customLabel } })}
|
|
361
365
|
{...(customOption && { components: { Option: customOption } })}
|
|
366
|
+
{...(customLabel &&
|
|
367
|
+
customOption && {
|
|
368
|
+
components: { SingleValue: customLabel, Option: customOption },
|
|
369
|
+
})}
|
|
362
370
|
{...(MenuList && { components: { MenuList } })}
|
|
363
371
|
{...(isMulti && { isMulti: true })}
|
|
364
372
|
{...rest}
|