@bosonprotocol/react-kit 0.33.0 → 0.33.1-alpha.1

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.
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { CSSObjectWithLabel, SingleValue } from "react-select";
2
+ import { CSSObjectWithLabel, MultiValue, SingleValue } from "react-select";
3
3
  import { CSSProperties } from "styled-components";
4
4
  import { ImageEditorModalProps } from "./Upload/ImageEditorModal/ImageEditorModal";
5
5
  import type { CheckboxTheme, FileUploadWrapperTheme, TextAreaTheme } from "./Field.styles";
@@ -65,14 +65,14 @@ export interface BaseSelectProps {
65
65
  defaultValue?: SelectDataProps | null;
66
66
  onChange?: OnChange;
67
67
  }
68
- export interface SelectProps extends BaseProps {
69
- isMulti?: boolean;
68
+ export interface SelectProps<M extends boolean | undefined = false> extends BaseProps {
69
+ isMulti?: M;
70
70
  disabled?: boolean;
71
71
  isClearable?: boolean;
72
72
  isSearchable?: boolean;
73
73
  options: Array<SelectDataProps> | Readonly<Array<SelectDataProps>>;
74
74
  errorMessage?: string;
75
- onChange?: (option: SelectDataProps<string>) => void;
75
+ onChange?: (option: M extends true ? MultiValue<SelectDataProps<string>> : SingleValue<SelectDataProps<string>>) => void;
76
76
  label?: string;
77
77
  theme?: Partial<{
78
78
  control: Partial<CSSProperties> & Partial<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/form/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,KAAK,EACV,aAAa,EACb,sBAAsB,EACtB,aAAa,EACd,MAAM,gBAAgB,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CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,IAAI,GAAG,GAAG,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;QAAE,YAAY,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;CAC3D,GAAG,CACE;IACE,UAAU,EAAE,IAAI,CAAC;IACjB,eAAe,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;CAC3D,GACD;IAAE,UAAU,EAAE,KAAK,CAAC;IAAC,eAAe,EAAE,SAAS,CAAA;CAAE,CACpD,CAAC;AAEJ,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC"}
@@ -20,7 +20,7 @@ export declare function useRemovePendingTransactionWithContext(): import("zustan
20
20
  offerId?: string | undefined;
21
21
  newHash?: string | undefined;
22
22
  }) => void;
23
- removePendingTransaction: (key: "id" | "executedBy" | "dispute" | "offerId" | "exchange" | "offer" | "type" | "timestamp" | "hash" | "accountType" | "isMetaTx" | "newHash", value: string) => void;
23
+ removePendingTransaction: (key: "type" | "id" | "executedBy" | "dispute" | "offerId" | "exchange" | "offer" | "timestamp" | "hash" | "accountType" | "isMetaTx" | "newHash", value: string) => void;
24
24
  reconcilePendingTransactions: (coreSDK: import("@bosonprotocol/core-sdk").CoreSDK) => Promise<void>;
25
25
  }>> | null;
26
26
  //# sourceMappingURL=usePendingTransactionsWithContext.d.ts.map
@@ -1,91 +1,92 @@
1
- export { AuthTokenType } from "@bosonprotocol/common";
2
- export * from "@bosonprotocol/core-sdk";
3
- export * from "@bosonprotocol/ethers-sdk";
4
- export * from "@bosonprotocol/ipfs-storage";
5
- export { default as ThemedButton, IButton, bosonButtonThemes } from "./components/ui/ThemedButton";
6
- export * from "./components/ui/zIndex";
7
- export * from "./components/ui/buttonSize";
8
- export * from "./components/scroll/ScrollToID";
9
- export * from "./components/scroll/ScrollToTop";
10
- export * from "./components/buttons/Button";
11
1
  export * from "./components/buttons/BaseButton";
12
- export * from "./components/buttons/CommitButtonView";
13
2
  export * from "./components/buttons/BurgerButton";
3
+ export * from "./components/buttons/Button";
4
+ export * from "./components/buttons/CommitButtonView";
14
5
  export * from "./components/config/ConfigProvider";
6
+ export * from "./components/cta/dispute/DecideDisputeButton";
7
+ export * from "./components/cta/dispute/EscalateDisputeButton";
8
+ export * from "./components/cta/dispute/ExpireDisputeButton";
9
+ export * from "./components/cta/dispute/ExpireEscalationDisputeButton";
10
+ export * from "./components/cta/dispute/ExtendDisputeTimeoutButton";
11
+ export * from "./components/cta/dispute/RaiseDisputeButton";
12
+ export * from "./components/cta/dispute/RefuseDisputeButton";
13
+ export * from "./components/cta/dispute/ResolveDisputeButton";
14
+ export * from "./components/cta/dispute/RetractDisputeButton";
15
15
  export * from "./components/cta/exchange/BatchCompleteButton";
16
16
  export * from "./components/cta/exchange/CancelButton";
17
17
  export * from "./components/cta/exchange/CompleteButton";
18
18
  export * from "./components/cta/exchange/ExpireButton";
19
19
  export * from "./components/cta/exchange/RedeemButton";
20
20
  export * from "./components/cta/exchange/RevokeButton";
21
- export * from "./components/cta/offer/CommitButton";
22
- export * from "./components/cta/offer/VoidButton";
23
- export * from "./components/cta/offer/BatchVoidButton";
24
- export * from "./components/cta/offer/CreateOfferButton";
25
21
  export * from "./components/cta/funds/DepositFundsButton";
26
- export * from "./components/cta/funds/WithdrawFundsButton";
27
22
  export * from "./components/cta/funds/WithdrawAllFundsButton";
23
+ export * from "./components/cta/funds/WithdrawFundsButton";
24
+ export * from "./components/cta/offer/BatchVoidButton";
25
+ export * from "./components/cta/offer/CommitButton";
26
+ export * from "./components/cta/offer/CreateOfferButton";
27
+ export * from "./components/cta/offer/VoidButton";
28
28
  export * from "./components/currencyDisplay/CurrencyDisplay";
29
+ export * from "./components/error/ErrorMessage";
30
+ export * from "./components/error/SimpleError";
29
31
  export * from "./components/exchangeCard/ExchangeCard";
32
+ export * from "./components/form";
30
33
  export * from "./components/image/Image";
31
- export * from "./components/ui/IpfsImage";
32
- export { Video, VideoProps } from "./components/ui/Video";
33
- export * from "./components/ui/loading/Loading";
34
- export * from "./components/productCard/ProductCard";
35
- export * from "./components/productCard/const";
36
- export * from "./components/skeleton/ProductCardSkeleton";
37
- export * from "./components/skeleton/CollectionsCardSkeleton";
38
- export { LoadingBubble } from "./components/skeleton/common";
39
- export * from "./components/searchBar/SearchBar";
40
- export * from "./components/tooltip/Tooltip";
41
- export * from "./components/cta/dispute/RaiseDisputeButton";
42
- export * from "./components/cta/dispute/ResolveDisputeButton";
43
- export * from "./components/cta/dispute/RetractDisputeButton";
44
- export * from "./components/cta/dispute/ExtendDisputeTimeoutButton";
45
- export * from "./components/cta/dispute/ExpireDisputeButton";
46
- export * from "./components/cta/dispute/EscalateDisputeButton";
47
- export * from "./components/cta/dispute/RefuseDisputeButton";
48
- export * from "./components/cta/dispute/DecideDisputeButton";
49
- export * from "./components/cta/dispute/ExpireEscalationDisputeButton";
50
- export { default as ConnectButton } from "./components/wallet/ConnectButton";
51
- export * from "./components/widgets/index";
52
- export * as hooks from "./hooks";
53
- export * from "./theme";
34
+ export * from "./components/ipfs/IpfsProvider";
54
35
  export * from "./components/magicLink/Login";
55
36
  export * from "./components/magicLink/MagicContext";
56
37
  export * from "./components/magicLink/MagicProvider";
57
38
  export * from "./components/magicLink/UserContext";
58
- export * from "./components/modal/components/common/OfferFullDescription/ExternalOfferFullDescription";
39
+ export * from "./components/modal/components/Commit/DetailView/ExternalCommitDetailView";
59
40
  export * from "./components/modal/components/common/detail/useGetOfferDetailData";
60
- export * from "./components/modal/components/PurchaseOverview/PurchaseOverview";
41
+ export * from "./components/modal/components/common/OfferFullDescription/ExternalOfferFullDescription";
61
42
  export * from "./components/modal/components/common/StepsOverview/PurchaseOverview";
62
- export * from "./components/modal/components/Commit/DetailView/ExternalCommitDetailView";
43
+ export * from "./components/modal/components/PurchaseOverview/PurchaseOverview";
63
44
  export * from "./components/modal/components/Redeem/DetailView/ExternalExchangeDetailView";
45
+ export * from "./components/portal/Portal";
46
+ export * from "./components/productCard/const";
47
+ export * from "./components/productCard/ProductCard";
48
+ export * from "./components/scroll/ScrollToID";
49
+ export * from "./components/scroll/ScrollToTop";
50
+ export * from "./components/searchBar/SearchBar";
51
+ export * from "./components/skeleton/CollectionsCardSkeleton";
52
+ export { LoadingBubble } from "./components/skeleton/common";
53
+ export * from "./components/skeleton/ProductCardSkeleton";
54
+ export * from "./components/step/MultiSteps";
55
+ export * from "./components/tooltip/Tooltip";
56
+ export * from "./components/ui/buttonSize";
57
+ export * from "./components/ui/CardCTA";
64
58
  export * from "./components/ui/Grid";
65
59
  export * from "./components/ui/GridContainer";
66
- export * from "./components/ui/Typography";
60
+ export * from "./components/ui/IpfsImage";
61
+ export * from "./components/ui/loading/Loading";
67
62
  export * from "./components/ui/MuteButton";
68
- export * from "./components/ui/CardCTA";
69
- export * from "./components/form";
70
- export * from "./lib/magicLink/logout";
63
+ export { bosonButtonThemes, IButton, default as ThemedButton } from "./components/ui/ThemedButton";
64
+ export * from "./components/ui/Typography";
65
+ export { Video, VideoProps } from "./components/ui/Video";
66
+ export * from "./components/ui/zIndex";
67
+ export { default as ConnectButton } from "./components/wallet/ConnectButton";
68
+ export * from "./components/wallet2/accountDrawer/index";
69
+ export * from "./components/wallet2/selector/ChainSelector";
70
+ export * from "./components/wallet2/web3Provider/index";
71
+ export * from "./components/wallet2/web3Status/index";
72
+ export * from "./components/widgets/index";
73
+ export * as hooks from "./hooks";
74
+ export * from "./lib/bundle/const";
75
+ export * from "./lib/bundle/filter";
71
76
  export * from "./lib/bytes/bytesToSize";
72
- export * from "./lib/magicLink/provider";
73
77
  export * from "./lib/const/networks";
74
78
  export * from "./lib/errors/transactions";
75
- export * from "./lib/offer/getIsOfferExpired";
76
- export * from "./lib/bundle/filter";
77
- export * from "./lib/bundle/const";
79
+ export * from "./lib/ipfs/ipfs";
80
+ export * from "./lib/magicLink/logout";
81
+ export * from "./lib/magicLink/provider";
78
82
  export * from "./lib/offer/filter";
79
- export * from "./components/wallet2/selector/ChainSelector";
80
- export * from "./components/wallet2/web3Status/index";
81
- export * from "./components/wallet2/web3Provider/index";
82
- export * from "./components/wallet2/accountDrawer/index";
83
- export * from "./components/portal/Portal";
84
- export * from "./components/error/ErrorMessage";
85
- export * from "./components/error/SimpleError";
86
- export * from "./components/step/MultiSteps";
87
- export * from "./components/ipfs/IpfsProvider";
88
- export * from "./types/helpers";
89
- export * from "./lib/url/url";
83
+ export * from "./lib/offer/getIsOfferExpired";
90
84
  export * from "./lib/promises/promises";
85
+ export * from "./lib/url/url";
86
+ export * from "./theme";
87
+ export * from "./types/helpers";
88
+ export { AuthTokenType } from "@bosonprotocol/common";
89
+ export * from "@bosonprotocol/core-sdk";
90
+ export * from "@bosonprotocol/ethers-sdk";
91
+ export * from "@bosonprotocol/ipfs-storage";
91
92
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2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ACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,91 +1,92 @@
1
- export { AuthTokenType } from "@bosonprotocol/common";
2
- export * from "@bosonprotocol/core-sdk";
3
- export * from "@bosonprotocol/ethers-sdk";
4
- export * from "@bosonprotocol/ipfs-storage";
5
- export { default as ThemedButton, bosonButtonThemes } from "./components/ui/ThemedButton";
6
- export * from "./components/ui/zIndex";
7
- export * from "./components/ui/buttonSize";
8
- export * from "./components/scroll/ScrollToID";
9
- export * from "./components/scroll/ScrollToTop";
10
- export * from "./components/buttons/Button";
11
1
  export * from "./components/buttons/BaseButton";
12
- export * from "./components/buttons/CommitButtonView";
13
2
  export * from "./components/buttons/BurgerButton";
3
+ export * from "./components/buttons/Button";
4
+ export * from "./components/buttons/CommitButtonView";
14
5
  export * from "./components/config/ConfigProvider";
6
+ export * from "./components/cta/dispute/DecideDisputeButton";
7
+ export * from "./components/cta/dispute/EscalateDisputeButton";
8
+ export * from "./components/cta/dispute/ExpireDisputeButton";
9
+ export * from "./components/cta/dispute/ExpireEscalationDisputeButton";
10
+ export * from "./components/cta/dispute/ExtendDisputeTimeoutButton";
11
+ export * from "./components/cta/dispute/RaiseDisputeButton";
12
+ export * from "./components/cta/dispute/RefuseDisputeButton";
13
+ export * from "./components/cta/dispute/ResolveDisputeButton";
14
+ export * from "./components/cta/dispute/RetractDisputeButton";
15
15
  export * from "./components/cta/exchange/BatchCompleteButton";
16
16
  export * from "./components/cta/exchange/CancelButton";
17
17
  export * from "./components/cta/exchange/CompleteButton";
18
18
  export * from "./components/cta/exchange/ExpireButton";
19
19
  export * from "./components/cta/exchange/RedeemButton";
20
20
  export * from "./components/cta/exchange/RevokeButton";
21
- export * from "./components/cta/offer/CommitButton";
22
- export * from "./components/cta/offer/VoidButton";
23
- export * from "./components/cta/offer/BatchVoidButton";
24
- export * from "./components/cta/offer/CreateOfferButton";
25
21
  export * from "./components/cta/funds/DepositFundsButton";
26
- export * from "./components/cta/funds/WithdrawFundsButton";
27
22
  export * from "./components/cta/funds/WithdrawAllFundsButton";
23
+ export * from "./components/cta/funds/WithdrawFundsButton";
24
+ export * from "./components/cta/offer/BatchVoidButton";
25
+ export * from "./components/cta/offer/CommitButton";
26
+ export * from "./components/cta/offer/CreateOfferButton";
27
+ export * from "./components/cta/offer/VoidButton";
28
28
  export * from "./components/currencyDisplay/CurrencyDisplay";
29
+ export * from "./components/error/ErrorMessage";
30
+ export * from "./components/error/SimpleError";
29
31
  export * from "./components/exchangeCard/ExchangeCard";
32
+ export * from "./components/form";
30
33
  export * from "./components/image/Image";
31
- export * from "./components/ui/IpfsImage";
32
- export { Video } from "./components/ui/Video";
33
- export * from "./components/ui/loading/Loading";
34
- export * from "./components/productCard/ProductCard";
35
- export * from "./components/productCard/const";
36
- export * from "./components/skeleton/ProductCardSkeleton";
37
- export * from "./components/skeleton/CollectionsCardSkeleton";
38
- export { LoadingBubble } from "./components/skeleton/common";
39
- export * from "./components/searchBar/SearchBar";
40
- export * from "./components/tooltip/Tooltip";
41
- export * from "./components/cta/dispute/RaiseDisputeButton";
42
- export * from "./components/cta/dispute/ResolveDisputeButton";
43
- export * from "./components/cta/dispute/RetractDisputeButton";
44
- export * from "./components/cta/dispute/ExtendDisputeTimeoutButton";
45
- export * from "./components/cta/dispute/ExpireDisputeButton";
46
- export * from "./components/cta/dispute/EscalateDisputeButton";
47
- export * from "./components/cta/dispute/RefuseDisputeButton";
48
- export * from "./components/cta/dispute/DecideDisputeButton";
49
- export * from "./components/cta/dispute/ExpireEscalationDisputeButton";
50
- export { default as ConnectButton } from "./components/wallet/ConnectButton";
51
- export * from "./components/widgets/index";
52
- export * as hooks from "./hooks";
53
- export * from "./theme";
34
+ export * from "./components/ipfs/IpfsProvider";
54
35
  export * from "./components/magicLink/Login";
55
36
  export * from "./components/magicLink/MagicContext";
56
37
  export * from "./components/magicLink/MagicProvider";
57
38
  export * from "./components/magicLink/UserContext";
58
- export * from "./components/modal/components/common/OfferFullDescription/ExternalOfferFullDescription";
39
+ export * from "./components/modal/components/Commit/DetailView/ExternalCommitDetailView";
59
40
  export * from "./components/modal/components/common/detail/useGetOfferDetailData";
60
- export * from "./components/modal/components/PurchaseOverview/PurchaseOverview";
41
+ export * from "./components/modal/components/common/OfferFullDescription/ExternalOfferFullDescription";
61
42
  export * from "./components/modal/components/common/StepsOverview/PurchaseOverview";
62
- export * from "./components/modal/components/Commit/DetailView/ExternalCommitDetailView";
43
+ export * from "./components/modal/components/PurchaseOverview/PurchaseOverview";
63
44
  export * from "./components/modal/components/Redeem/DetailView/ExternalExchangeDetailView";
45
+ export * from "./components/portal/Portal";
46
+ export * from "./components/productCard/const";
47
+ export * from "./components/productCard/ProductCard";
48
+ export * from "./components/scroll/ScrollToID";
49
+ export * from "./components/scroll/ScrollToTop";
50
+ export * from "./components/searchBar/SearchBar";
51
+ export * from "./components/skeleton/CollectionsCardSkeleton";
52
+ export { LoadingBubble } from "./components/skeleton/common";
53
+ export * from "./components/skeleton/ProductCardSkeleton";
54
+ export * from "./components/step/MultiSteps";
55
+ export * from "./components/tooltip/Tooltip";
56
+ export * from "./components/ui/buttonSize";
57
+ export * from "./components/ui/CardCTA";
64
58
  export * from "./components/ui/Grid";
65
59
  export * from "./components/ui/GridContainer";
66
- export * from "./components/ui/Typography";
60
+ export * from "./components/ui/IpfsImage";
61
+ export * from "./components/ui/loading/Loading";
67
62
  export * from "./components/ui/MuteButton";
68
- export * from "./components/ui/CardCTA";
69
- export * from "./components/form";
70
- export * from "./lib/magicLink/logout";
63
+ export { bosonButtonThemes, default as ThemedButton } from "./components/ui/ThemedButton";
64
+ export * from "./components/ui/Typography";
65
+ export { Video } from "./components/ui/Video";
66
+ export * from "./components/ui/zIndex";
67
+ export { default as ConnectButton } from "./components/wallet/ConnectButton";
68
+ export * from "./components/wallet2/accountDrawer/index";
69
+ export * from "./components/wallet2/selector/ChainSelector";
70
+ export * from "./components/wallet2/web3Provider/index";
71
+ export * from "./components/wallet2/web3Status/index";
72
+ export * from "./components/widgets/index";
73
+ export * as hooks from "./hooks";
74
+ export * from "./lib/bundle/const";
75
+ export * from "./lib/bundle/filter";
71
76
  export * from "./lib/bytes/bytesToSize";
72
- export * from "./lib/magicLink/provider";
73
77
  export * from "./lib/const/networks";
74
78
  export * from "./lib/errors/transactions";
75
- export * from "./lib/offer/getIsOfferExpired";
76
- export * from "./lib/bundle/filter";
77
- export * from "./lib/bundle/const";
79
+ export * from "./lib/ipfs/ipfs";
80
+ export * from "./lib/magicLink/logout";
81
+ export * from "./lib/magicLink/provider";
78
82
  export * from "./lib/offer/filter";
79
- export * from "./components/wallet2/selector/ChainSelector";
80
- export * from "./components/wallet2/web3Status/index";
81
- export * from "./components/wallet2/web3Provider/index";
82
- export * from "./components/wallet2/accountDrawer/index";
83
- export * from "./components/portal/Portal";
84
- export * from "./components/error/ErrorMessage";
85
- export * from "./components/error/SimpleError";
86
- export * from "./components/step/MultiSteps";
87
- export * from "./components/ipfs/IpfsProvider";
88
- export * from "./types/helpers";
89
- export * from "./lib/url/url";
83
+ export * from "./lib/offer/getIsOfferExpired";
90
84
  export * from "./lib/promises/promises";
85
+ export * from "./lib/url/url";
86
+ export * from "./theme";
87
+ export * from "./types/helpers";
88
+ export { AuthTokenType } from "@bosonprotocol/common";
89
+ export * from "@bosonprotocol/core-sdk";
90
+ export * from "@bosonprotocol/ethers-sdk";
91
+ export * from "@bosonprotocol/ipfs-storage";
91
92
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"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ACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bosonprotocol/react-kit",
3
3
  "description": "React toolkit with smart components and hooks for building on top of the Boson Protocol.",
4
- "version": "0.33.0",
4
+ "version": "0.33.1-alpha.1",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
7
7
  "types": "./dist/cjs/index.d.ts",
@@ -188,5 +188,5 @@
188
188
  "overrides": {
189
189
  "typescript": "^5.1.6"
190
190
  },
191
- "gitHead": "ee03409b93c98d332ef20b275cd19ecba5518364"
191
+ "gitHead": "222b91c5da88e352ab2ecd7788aa7f000dadba91"
192
192
  }
@@ -101,7 +101,7 @@ const customStyles = (
101
101
  }
102
102
  });
103
103
 
104
- export default function SelectComponent({
104
+ export default function SelectComponent<M extends boolean>({
105
105
  name,
106
106
  options,
107
107
  placeholder = "Choose...",
@@ -111,8 +111,9 @@ export default function SelectComponent({
111
111
  errorMessage,
112
112
  onChange,
113
113
  theme,
114
+ isMulti,
114
115
  ...props
115
- }: SelectProps) {
116
+ }: SelectProps<M>) {
116
117
  const [field, meta, helpers] = useField(name);
117
118
  const displayErrorMessage =
118
119
  meta.error && meta.touched && !errorMessage
@@ -124,7 +125,9 @@ export default function SelectComponent({
124
125
  const displayError =
125
126
  typeof displayErrorMessage === "string" && displayErrorMessage !== "";
126
127
 
127
- const handleChange = (option: SelectDataProps<string>) => {
128
+ const handleChange = (
129
+ option: Parameters<NonNullable<typeof onChange>>[0]
130
+ ) => {
128
131
  if (!meta.touched) {
129
132
  helpers.setTouched(true);
130
133
  }
@@ -143,6 +146,7 @@ export default function SelectComponent({
143
146
  styles={customStyles(displayErrorMessage, theme)}
144
147
  {...field}
145
148
  {...props}
149
+ isMulti={isMulti}
146
150
  placeholder={placeholder}
147
151
  options={options}
148
152
  value={field.value}
@@ -151,7 +155,7 @@ export default function SelectComponent({
151
155
  isSearchable={isSearchable}
152
156
  isClearable={isClearable}
153
157
  isDisabled={disabled}
154
- isOptionDisabled={(option) => option.disabled}
158
+ isOptionDisabled={(option) => !!option.disabled}
155
159
  />
156
160
  <Error display={displayError} message={displayErrorMessage} />{" "}
157
161
  </>
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { CSSObjectWithLabel, SingleValue } from "react-select";
2
+ import { CSSObjectWithLabel, MultiValue, SingleValue } from "react-select";
3
3
  import { CSSProperties } from "styled-components";
4
4
  import { ImageEditorModalProps } from "./Upload/ImageEditorModal/ImageEditorModal";
5
5
  import type {
@@ -86,14 +86,19 @@ export interface BaseSelectProps {
86
86
  onChange?: OnChange;
87
87
  }
88
88
 
89
- export interface SelectProps extends BaseProps {
90
- isMulti?: boolean;
89
+ export interface SelectProps<M extends boolean | undefined = false>
90
+ extends BaseProps {
91
+ isMulti?: M;
91
92
  disabled?: boolean;
92
93
  isClearable?: boolean;
93
94
  isSearchable?: boolean;
94
95
  options: Array<SelectDataProps> | Readonly<Array<SelectDataProps>>;
95
96
  errorMessage?: string;
96
- onChange?: (option: SelectDataProps<string>) => void;
97
+ onChange?: (
98
+ option: M extends true
99
+ ? MultiValue<SelectDataProps<string>>
100
+ : SingleValue<SelectDataProps<string>>
101
+ ) => void;
97
102
  label?: string;
98
103
  theme?: Partial<{
99
104
  control: Partial<CSSProperties> &