sy-ui-lib 1.0.26 → 1.0.28

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.
@@ -15,7 +15,7 @@ export declare const SportsWithSubHeader: Story;
15
15
  export declare const MatchOdds: Story;
16
16
  export declare const EventTitle: Story;
17
17
  export declare const EventTitleWithInfoIcon: Story;
18
- /** Other Market Header with Race Layered Row */
19
- export declare const OtherMarketRaceLayerd: Story;
20
- /** Other Market Header with Race Details Layered Row */
21
- export declare const OtherMarketRaceDetailsLayerd: Story;
18
+ /** Racing Header with Race Layered Row */
19
+ export declare const RacingRaceLayerd: Story;
20
+ /** Racing Header with Race Details Layered Row */
21
+ export declare const RacingRaceDetailsLayerd: Story;
@@ -3,7 +3,7 @@ export interface MultiMarketButtonProps {
3
3
  eventId: string;
4
4
  onClick: (eventId: string) => void;
5
5
  }
6
- export type HeaderVariant = "OtherMarket" | "MatchOdds" | "FancyMarket" | "MultiMarket" | "Sports" | "EventTitle";
6
+ export type HeaderVariant = "OtherMarket" | "MatchOdds" | "FancyMarket" | "MultiMarket" | "Sports" | "EventTitle" | "Racing";
7
7
  export interface CommonMarketHeaderProps {
8
8
  /** Controls header layout & behavior */
9
9
  variant: HeaderVariant;
@@ -38,3 +38,6 @@ export interface CommonMarketHeaderProps {
38
38
  /** Info icon click handler (shows icon when provided) */
39
39
  onInfoClick?: () => void;
40
40
  }
41
+ export type CommonLayBackProps = {
42
+ level?: number;
43
+ };
@@ -1,21 +1,28 @@
1
1
  import { TimePickerProps } from './TimePicker.types';
2
2
  /**
3
- * A reusable and customizable time picker component that allows
4
- * selecting a time range (From–To) using `react-time-picker`.
3
+ * A reusable and customizable controlled time picker component
4
+ * that allows selecting a time range (From–To) using `react-time-picker`.
5
5
  *
6
6
  * @param {string} [title] - Optional button text placeholder. Default is "Select Time".
7
+ * @param {TimeRange} [value] - Controlled selected time range value.
7
8
  * @param {(value: TimeRange) => void} selectedTime - Callback function
8
- * triggered when the user applies a selected time range.
9
+ * triggered when the selected time range changes.
9
10
  * @param {boolean} [fullWidth] - If true, the component stretches to full width of its container.
10
11
  * @param {string} [errorMessage] - Custom validation error message shown for invalid ranges.
11
12
  *
12
13
  * @returns {JSX.Element} The rendered TimePicker component.
13
14
  *
14
15
  * @example
16
+ * const [timeRange, setTimeRange] = useState<TimeRange>({
17
+ * from: null,
18
+ * to: null,
19
+ * });
20
+ *
15
21
  * <TimePicker
16
22
  * title="Pick Time"
23
+ * value={timeRange}
17
24
  * fullWidth
18
- * selectedTime={(value) => console.log("Selected:", value)}
25
+ * selectedTime={setTimeRange}
19
26
  * />
20
27
  */
21
28
  declare const TimePicker: React.FC<TimePickerProps>;
@@ -6,3 +6,4 @@ type Story = StoryObj<TimePickerProps>;
6
6
  export declare const Default: Story;
7
7
  export declare const FullWidth: Story;
8
8
  export declare const FixedWidthContainer: Story;
9
+ export declare const ControlledContainer: Story;
@@ -15,6 +15,8 @@ export interface TimePickerProps {
15
15
  title?: string;
16
16
  /** Callback function that receives the selected time range */
17
17
  selectedTime: (value: TimeRange) => void;
18
+ /** Controlled value from parent */
19
+ value?: TimeRange;
18
20
  /** If true, the time picker stretches to full width of its container */
19
21
  fullWidth?: boolean;
20
22
  /** Custom validation error message shown when the selected time range is invalid */