@liberfi.io/ui-predict 4.0.51 → 4.0.52
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 +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -1004,11 +1004,17 @@ declare function RedeemFormWidget({ event, market, position, onSuccess, onCancel
|
|
|
1004
1004
|
|
|
1005
1005
|
interface CategoryItem {
|
|
1006
1006
|
category: string;
|
|
1007
|
-
|
|
1007
|
+
/** Stable filter slug. Defaults to `category` for backward compatibility. */
|
|
1008
|
+
slug?: string;
|
|
1009
|
+
/** Display label. Defaults to `category` for backward compatibility. */
|
|
1010
|
+
label?: string;
|
|
1011
|
+
tags: Array<string | TagItem>;
|
|
1008
1012
|
/** Optional badge text displayed above the tab (e.g. "New", "Hot") */
|
|
1009
1013
|
badge?: string;
|
|
1010
1014
|
}
|
|
1011
1015
|
interface TagItem {
|
|
1016
|
+
/** Stable filter slug. Defaults to `label` for backward compatibility. */
|
|
1017
|
+
slug?: string;
|
|
1012
1018
|
label: string;
|
|
1013
1019
|
/** Optional Phosphor icon class name (e.g. "ph--basketball-bold") */
|
|
1014
1020
|
icon?: string;
|
|
@@ -1016,16 +1022,16 @@ interface TagItem {
|
|
|
1016
1022
|
interface CategoriesUIProps {
|
|
1017
1023
|
/** List of categories to display */
|
|
1018
1024
|
categories: CategoryItem[];
|
|
1019
|
-
/** Currently selected category
|
|
1025
|
+
/** Currently selected category slug (null = "Trending") */
|
|
1020
1026
|
selectedCategory: string | null;
|
|
1021
|
-
/** Currently selected tag within the category (null = all tags) */
|
|
1027
|
+
/** Currently selected tag slug within the category (null = all tags) */
|
|
1022
1028
|
selectedTag: string | null;
|
|
1023
1029
|
/** Tags of the currently selected category */
|
|
1024
1030
|
activeTags: TagItem[];
|
|
1025
|
-
/** Callback when a category is selected (null = "Trending") */
|
|
1026
|
-
onCategorySelect: (
|
|
1027
|
-
/** Callback when a tag is selected (null = deselect) */
|
|
1028
|
-
onTagSelect: (
|
|
1031
|
+
/** Callback when a category slug is selected (null = "Trending") */
|
|
1032
|
+
onCategorySelect: (categorySlug: string | null) => void;
|
|
1033
|
+
/** Callback when a tag slug is selected (null = deselect) */
|
|
1034
|
+
onTagSelect: (tagSlug: string | null) => void;
|
|
1029
1035
|
/** Content rendered at the end of the primary chip row (e.g. sort/filter controls) */
|
|
1030
1036
|
trailing?: React.ReactNode;
|
|
1031
1037
|
/** Name of the tab that shows a pulsing dot (default: "Trending") */
|
package/dist/index.d.ts
CHANGED
|
@@ -1004,11 +1004,17 @@ declare function RedeemFormWidget({ event, market, position, onSuccess, onCancel
|
|
|
1004
1004
|
|
|
1005
1005
|
interface CategoryItem {
|
|
1006
1006
|
category: string;
|
|
1007
|
-
|
|
1007
|
+
/** Stable filter slug. Defaults to `category` for backward compatibility. */
|
|
1008
|
+
slug?: string;
|
|
1009
|
+
/** Display label. Defaults to `category` for backward compatibility. */
|
|
1010
|
+
label?: string;
|
|
1011
|
+
tags: Array<string | TagItem>;
|
|
1008
1012
|
/** Optional badge text displayed above the tab (e.g. "New", "Hot") */
|
|
1009
1013
|
badge?: string;
|
|
1010
1014
|
}
|
|
1011
1015
|
interface TagItem {
|
|
1016
|
+
/** Stable filter slug. Defaults to `label` for backward compatibility. */
|
|
1017
|
+
slug?: string;
|
|
1012
1018
|
label: string;
|
|
1013
1019
|
/** Optional Phosphor icon class name (e.g. "ph--basketball-bold") */
|
|
1014
1020
|
icon?: string;
|
|
@@ -1016,16 +1022,16 @@ interface TagItem {
|
|
|
1016
1022
|
interface CategoriesUIProps {
|
|
1017
1023
|
/** List of categories to display */
|
|
1018
1024
|
categories: CategoryItem[];
|
|
1019
|
-
/** Currently selected category
|
|
1025
|
+
/** Currently selected category slug (null = "Trending") */
|
|
1020
1026
|
selectedCategory: string | null;
|
|
1021
|
-
/** Currently selected tag within the category (null = all tags) */
|
|
1027
|
+
/** Currently selected tag slug within the category (null = all tags) */
|
|
1022
1028
|
selectedTag: string | null;
|
|
1023
1029
|
/** Tags of the currently selected category */
|
|
1024
1030
|
activeTags: TagItem[];
|
|
1025
|
-
/** Callback when a category is selected (null = "Trending") */
|
|
1026
|
-
onCategorySelect: (
|
|
1027
|
-
/** Callback when a tag is selected (null = deselect) */
|
|
1028
|
-
onTagSelect: (
|
|
1031
|
+
/** Callback when a category slug is selected (null = "Trending") */
|
|
1032
|
+
onCategorySelect: (categorySlug: string | null) => void;
|
|
1033
|
+
/** Callback when a tag slug is selected (null = deselect) */
|
|
1034
|
+
onTagSelect: (tagSlug: string | null) => void;
|
|
1029
1035
|
/** Content rendered at the end of the primary chip row (e.g. sort/filter controls) */
|
|
1030
1036
|
trailing?: React.ReactNode;
|
|
1031
1037
|
/** Name of the tab that shows a pulsing dot (default: "Trending") */
|