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.
@@ -7,3 +7,4 @@ export declare const PairOddsRow: Story;
7
7
  export declare const LayeredOddsRow: Story;
8
8
  export declare const FancyOddsRow: Story;
9
9
  export declare const OddEvenRow: Story;
10
+ export declare const RacingRow: Story;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import { racingRowVariant } from './CommonMarketRow.types';
2
+ declare const RacingRow: React.FC<racingRowVariant>;
3
+ export default RacingRow;
@@ -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
  };