sy-ui-lib 1.0.23 → 1.0.24
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/components/CommonMarketRow/CommonMarketRow.stories.d.ts +1 -0
- package/dist/components/CommonMarketRow/CommonMarketRow.types.d.ts +30 -1
- package/dist/components/CommonMarketRow/RacingRow.component.d.ts +3 -0
- package/dist/components/Icon/SvgIcons.d.ts +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.css +1 -1
- package/dist/index.js +420 -352
- package/package.json +1 -1
|
@@ -146,6 +146,35 @@ export interface PairOddsRowVariant extends BaseOddsRowProps {
|
|
|
146
146
|
/** Callback when an odd is clicked */
|
|
147
147
|
onOddClick?: (type: string, odds: number | null) => void;
|
|
148
148
|
}
|
|
149
|
+
export interface raceEvent {
|
|
150
|
+
time: string;
|
|
151
|
+
raceId: string;
|
|
152
|
+
}
|
|
153
|
+
export interface racingRowVariant {
|
|
154
|
+
variant: "racing";
|
|
155
|
+
/** Unique row identifier */
|
|
156
|
+
id: string;
|
|
157
|
+
/** Event timings*/
|
|
158
|
+
racingEvents: raceEvent[];
|
|
159
|
+
/** Event identifier */
|
|
160
|
+
eventId?: string;
|
|
161
|
+
/** Event display name (optional) */
|
|
162
|
+
eventName?: string;
|
|
163
|
+
/** Event type (optional) */
|
|
164
|
+
eventType?: string;
|
|
165
|
+
/** Provider identifier */
|
|
166
|
+
providerId?: string;
|
|
167
|
+
/** Whether odds are frozen */
|
|
168
|
+
isFreezed?: boolean;
|
|
169
|
+
/** Whether the row is suspended */
|
|
170
|
+
isSuspended?: boolean;
|
|
171
|
+
/** Message shown when the row is suspended */
|
|
172
|
+
suspendedMsg?: string;
|
|
173
|
+
/** isTV */
|
|
174
|
+
isTV?: boolean;
|
|
175
|
+
/** Callback when row redirect is triggered */
|
|
176
|
+
onClickRedirect?: (id: string, eventId: string) => void;
|
|
177
|
+
}
|
|
149
178
|
/** Union type representing all supported market row variants*/
|
|
150
|
-
export type CommonMarketRowProps = FancyLayeredOddsRowVariant | PairOddsRowVariant;
|
|
179
|
+
export type CommonMarketRowProps = FancyLayeredOddsRowVariant | PairOddsRowVariant | racingRowVariant;
|
|
151
180
|
export {};
|
|
@@ -80,4 +80,5 @@ export declare const icons: {
|
|
|
80
80
|
currentOff: (size: IconSize) => import("react/jsx-runtime").JSX.Element;
|
|
81
81
|
current: (size: IconSize) => import("react/jsx-runtime").JSX.Element;
|
|
82
82
|
save: (size: IconSize) => import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
setting: (size: IconSize) => import("react/jsx-runtime").JSX.Element;
|
|
83
84
|
};
|