@agg-build/ui 4.19.1 → 4.21.0
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/{chunk-KRYMEFPL.mjs → chunk-5PA5KLXN.mjs} +1 -1
- package/dist/{chunk-DXASFSVL.mjs → chunk-JLO2BGSF.mjs} +546 -225
- package/dist/events.js +419 -99
- package/dist/events.mjs +4 -2
- package/dist/index.js +2942 -2619
- package/dist/index.mjs +5 -3
- package/dist/pages.js +3122 -2801
- package/dist/pages.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/types/events/list/event-list-venue-strip.d.mts +29 -0
- package/dist/types/events/list/event-list-venue-strip.d.ts +29 -0
- package/dist/types/events/list/index.d.mts +2 -0
- package/dist/types/events/list/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
2
|
+
export type EventListVenueStripProps = {
|
|
3
|
+
/** Override the canonical tab list. Disabled-venue filtering is still applied. */
|
|
4
|
+
tabs?: EventListTab[];
|
|
5
|
+
/** Currently selected tab value. */
|
|
6
|
+
activeTab: EventListTabValue;
|
|
7
|
+
/** Called when the active tab changes (including auto-fallback when the active tab disappears). */
|
|
8
|
+
onTabChange: (value: EventListTabValue) => void;
|
|
9
|
+
/** Accessible label for the strip. */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** Custom class name applied to the root. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Phone layout: the strip spans its container, Matched · All shrink to glyph
|
|
15
|
+
* tiles like the venues, and the "+N" chip sits at the far end.
|
|
16
|
+
*/
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Venue selector for the event list header: Matched · All, a hairline, then
|
|
21
|
+
* one logo tile per venue. The strip measures the width it is actually given
|
|
22
|
+
* and folds whatever does not fit into a "+N" chip that lists the folded
|
|
23
|
+
* venues. The active venue always stays visible — picking a folded one swaps it
|
|
24
|
+
* into the last visible slot.
|
|
25
|
+
*/
|
|
26
|
+
export declare const EventListVenueStrip: {
|
|
27
|
+
({ tabs, activeTab, onTabChange, ariaLabel, className, fullWidth, }: EventListVenueStripProps): JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { EventListProps } from "./event-list.types";
|
|
2
2
|
export type { CategorySidebarLabels, CategorySidebarProps } from "./category-sidebar";
|
|
3
|
+
export { EventListVenueStrip } from "./event-list-venue-strip";
|
|
4
|
+
export type { EventListVenueStripProps } from "./event-list-venue-strip";
|
|
3
5
|
export type { EventListFilterChangeOptions, EventListProps, EventListSortValue, EventListStateRef, } from "./event-list.types";
|
|
4
6
|
export declare const EventList: {
|
|
5
7
|
({ title, limit, maxVisibleItems, search, categoryIds, onCategoryRootChange, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, activeVenueTab: controlledActiveVenueTab, onActiveVenueTabChange, selectedSort: controlledSelectedSort, onSelectedSortChange, categoryPath: controlledCategoryPath, onCategoryPathChange, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { EventListProps } from "./event-list.types";
|
|
2
2
|
export type { CategorySidebarLabels, CategorySidebarProps } from "./category-sidebar";
|
|
3
|
+
export { EventListVenueStrip } from "./event-list-venue-strip";
|
|
4
|
+
export type { EventListVenueStripProps } from "./event-list-venue-strip";
|
|
3
5
|
export type { EventListFilterChangeOptions, EventListProps, EventListSortValue, EventListStateRef, } from "./event-list.types";
|
|
4
6
|
export declare const EventList: {
|
|
5
7
|
({ title, limit, maxVisibleItems, search, categoryIds, onCategoryRootChange, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, activeVenueTab: controlledActiveVenueTab, onActiveVenueTabChange, selectedSort: controlledSelectedSort, onSelectedSortChange, categoryPath: controlledCategoryPath, onCategoryPathChange, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.0",
|
|
4
4
|
"description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"liveline": "^0.0.7",
|
|
101
101
|
"react": "^18.0.0 || ^19.0.0",
|
|
102
102
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
103
|
-
"@agg-build/hooks": "^4.
|
|
104
|
-
"@agg-build/sdk": "^4.
|
|
103
|
+
"@agg-build/hooks": "^4.21.0",
|
|
104
|
+
"@agg-build/sdk": "^4.21.0"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@number-flow/react": "^0.6.0",
|