@loafmarkets/ui 0.0.5 → 0.0.7
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.mts +22 -17
- package/dist/index.d.ts +22 -17
- package/dist/index.js +544 -319
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +545 -320
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -67,6 +67,7 @@ type OrderbookTrade = {
|
|
|
67
67
|
price: number;
|
|
68
68
|
amount: number;
|
|
69
69
|
time?: string;
|
|
70
|
+
tradeId?: number;
|
|
70
71
|
};
|
|
71
72
|
interface OrderbookProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
72
73
|
asks: OrderbookLevel[];
|
|
@@ -116,9 +117,10 @@ interface HousePositionSliderProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
116
117
|
pendingOrders?: HousePositionPendingOrder[];
|
|
117
118
|
defaultOrderType?: "market" | "limit";
|
|
118
119
|
orderbook?: HousePositionOrderbook;
|
|
120
|
+
ownershipPercentOverride?: number;
|
|
119
121
|
onConfirmOrder?: (payload: HousePositionSliderOrderPayload) => void;
|
|
120
122
|
}
|
|
121
|
-
declare function HousePositionSlider({ tokenId, tokenSymbol, totalTokens, currentPrice, availableCash, tokensHeld, pendingOrders, defaultOrderType, orderbook, onConfirmOrder, className, ...props }: HousePositionSliderProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function HousePositionSlider({ tokenId, tokenSymbol, totalTokens, currentPrice, availableCash, tokensHeld, pendingOrders, defaultOrderType, orderbook, ownershipPercentOverride, onConfirmOrder, className, ...props }: HousePositionSliderProps): react_jsx_runtime.JSX.Element;
|
|
122
124
|
|
|
123
125
|
type PropertyTourProps = Omit<React.ComponentPropsWithoutRef<typeof Card>, "title"> & {
|
|
124
126
|
title: string;
|
|
@@ -141,22 +143,21 @@ declare const PropertyTour: React.ForwardRefExoticComponent<Omit<Omit<CardProps
|
|
|
141
143
|
playsInline?: boolean;
|
|
142
144
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
143
145
|
|
|
144
|
-
type PropertyNewsType = "property" | "market" |
|
|
146
|
+
type PropertyNewsType = "property" | "market" | (string & {});
|
|
145
147
|
type PropertyNewsItem = {
|
|
146
148
|
id?: string;
|
|
147
149
|
title: string;
|
|
148
150
|
date: string | Date;
|
|
149
151
|
type?: PropertyNewsType;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
href?: string;
|
|
153
|
-
onAction?: (item: PropertyNewsItem) => void;
|
|
152
|
+
displayId?: string;
|
|
153
|
+
isNew?: boolean;
|
|
154
154
|
};
|
|
155
155
|
interface PropertyNewsUpdatesProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
156
156
|
items: PropertyNewsItem[];
|
|
157
157
|
heading?: string;
|
|
158
158
|
subheading?: string;
|
|
159
159
|
emptyState?: React.ReactNode;
|
|
160
|
+
highlightFirst?: boolean;
|
|
160
161
|
}
|
|
161
162
|
declare const PropertyNewsUpdates: React.ForwardRefExoticComponent<PropertyNewsUpdatesProps & React.RefAttributes<HTMLDivElement>>;
|
|
162
163
|
|
|
@@ -185,27 +186,31 @@ type YourOrderSide = "buy" | "sell";
|
|
|
185
186
|
type YourOrder = {
|
|
186
187
|
id: string;
|
|
187
188
|
asset: string;
|
|
188
|
-
side
|
|
189
|
-
date
|
|
189
|
+
side?: YourOrderSide;
|
|
190
|
+
date?: string;
|
|
190
191
|
price: number;
|
|
191
192
|
amount: number;
|
|
192
193
|
total: number;
|
|
193
|
-
filledPercent
|
|
194
|
+
filledPercent?: number;
|
|
194
195
|
status?: string;
|
|
196
|
+
propertyPercent?: number;
|
|
197
|
+
portfolioSharePercent?: number;
|
|
198
|
+
avgEntryPrice?: number;
|
|
199
|
+
pnlValue?: number;
|
|
200
|
+
pnlPercent?: number;
|
|
201
|
+
holdingLabel?: string;
|
|
202
|
+
value?: number;
|
|
203
|
+
currentPrice?: number;
|
|
204
|
+
priceChangePercent?: number;
|
|
205
|
+
priceChangePositive?: boolean;
|
|
195
206
|
};
|
|
196
|
-
type YourOrdersProps =
|
|
207
|
+
type YourOrdersProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
197
208
|
title?: string;
|
|
198
209
|
orders: YourOrder[];
|
|
199
|
-
onEditPrice?: (order: YourOrder) => void;
|
|
200
|
-
onEditAmount?: (order: YourOrder) => void;
|
|
201
|
-
onCancel?: (order: YourOrder) => void;
|
|
202
210
|
};
|
|
203
|
-
declare const YourOrders: React.ForwardRefExoticComponent<
|
|
211
|
+
declare const YourOrders: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
204
212
|
title?: string;
|
|
205
213
|
orders: YourOrder[];
|
|
206
|
-
onEditPrice?: (order: YourOrder) => void;
|
|
207
|
-
onEditAmount?: (order: YourOrder) => void;
|
|
208
|
-
onCancel?: (order: YourOrder) => void;
|
|
209
214
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
210
215
|
|
|
211
216
|
type PriceChartRange = "1D" | "1W" | "1M" | "3M" | "1Y";
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ type OrderbookTrade = {
|
|
|
67
67
|
price: number;
|
|
68
68
|
amount: number;
|
|
69
69
|
time?: string;
|
|
70
|
+
tradeId?: number;
|
|
70
71
|
};
|
|
71
72
|
interface OrderbookProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
72
73
|
asks: OrderbookLevel[];
|
|
@@ -116,9 +117,10 @@ interface HousePositionSliderProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
116
117
|
pendingOrders?: HousePositionPendingOrder[];
|
|
117
118
|
defaultOrderType?: "market" | "limit";
|
|
118
119
|
orderbook?: HousePositionOrderbook;
|
|
120
|
+
ownershipPercentOverride?: number;
|
|
119
121
|
onConfirmOrder?: (payload: HousePositionSliderOrderPayload) => void;
|
|
120
122
|
}
|
|
121
|
-
declare function HousePositionSlider({ tokenId, tokenSymbol, totalTokens, currentPrice, availableCash, tokensHeld, pendingOrders, defaultOrderType, orderbook, onConfirmOrder, className, ...props }: HousePositionSliderProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function HousePositionSlider({ tokenId, tokenSymbol, totalTokens, currentPrice, availableCash, tokensHeld, pendingOrders, defaultOrderType, orderbook, ownershipPercentOverride, onConfirmOrder, className, ...props }: HousePositionSliderProps): react_jsx_runtime.JSX.Element;
|
|
122
124
|
|
|
123
125
|
type PropertyTourProps = Omit<React.ComponentPropsWithoutRef<typeof Card>, "title"> & {
|
|
124
126
|
title: string;
|
|
@@ -141,22 +143,21 @@ declare const PropertyTour: React.ForwardRefExoticComponent<Omit<Omit<CardProps
|
|
|
141
143
|
playsInline?: boolean;
|
|
142
144
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
143
145
|
|
|
144
|
-
type PropertyNewsType = "property" | "market" |
|
|
146
|
+
type PropertyNewsType = "property" | "market" | (string & {});
|
|
145
147
|
type PropertyNewsItem = {
|
|
146
148
|
id?: string;
|
|
147
149
|
title: string;
|
|
148
150
|
date: string | Date;
|
|
149
151
|
type?: PropertyNewsType;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
href?: string;
|
|
153
|
-
onAction?: (item: PropertyNewsItem) => void;
|
|
152
|
+
displayId?: string;
|
|
153
|
+
isNew?: boolean;
|
|
154
154
|
};
|
|
155
155
|
interface PropertyNewsUpdatesProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
156
156
|
items: PropertyNewsItem[];
|
|
157
157
|
heading?: string;
|
|
158
158
|
subheading?: string;
|
|
159
159
|
emptyState?: React.ReactNode;
|
|
160
|
+
highlightFirst?: boolean;
|
|
160
161
|
}
|
|
161
162
|
declare const PropertyNewsUpdates: React.ForwardRefExoticComponent<PropertyNewsUpdatesProps & React.RefAttributes<HTMLDivElement>>;
|
|
162
163
|
|
|
@@ -185,27 +186,31 @@ type YourOrderSide = "buy" | "sell";
|
|
|
185
186
|
type YourOrder = {
|
|
186
187
|
id: string;
|
|
187
188
|
asset: string;
|
|
188
|
-
side
|
|
189
|
-
date
|
|
189
|
+
side?: YourOrderSide;
|
|
190
|
+
date?: string;
|
|
190
191
|
price: number;
|
|
191
192
|
amount: number;
|
|
192
193
|
total: number;
|
|
193
|
-
filledPercent
|
|
194
|
+
filledPercent?: number;
|
|
194
195
|
status?: string;
|
|
196
|
+
propertyPercent?: number;
|
|
197
|
+
portfolioSharePercent?: number;
|
|
198
|
+
avgEntryPrice?: number;
|
|
199
|
+
pnlValue?: number;
|
|
200
|
+
pnlPercent?: number;
|
|
201
|
+
holdingLabel?: string;
|
|
202
|
+
value?: number;
|
|
203
|
+
currentPrice?: number;
|
|
204
|
+
priceChangePercent?: number;
|
|
205
|
+
priceChangePositive?: boolean;
|
|
195
206
|
};
|
|
196
|
-
type YourOrdersProps =
|
|
207
|
+
type YourOrdersProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
197
208
|
title?: string;
|
|
198
209
|
orders: YourOrder[];
|
|
199
|
-
onEditPrice?: (order: YourOrder) => void;
|
|
200
|
-
onEditAmount?: (order: YourOrder) => void;
|
|
201
|
-
onCancel?: (order: YourOrder) => void;
|
|
202
210
|
};
|
|
203
|
-
declare const YourOrders: React.ForwardRefExoticComponent<
|
|
211
|
+
declare const YourOrders: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
204
212
|
title?: string;
|
|
205
213
|
orders: YourOrder[];
|
|
206
|
-
onEditPrice?: (order: YourOrder) => void;
|
|
207
|
-
onEditAmount?: (order: YourOrder) => void;
|
|
208
|
-
onCancel?: (order: YourOrder) => void;
|
|
209
214
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
210
215
|
|
|
211
216
|
type PriceChartRange = "1D" | "1W" | "1M" | "3M" | "1Y";
|