@agg-market/ui 0.0.1
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/badge.d.mts +26 -0
- package/dist/badge.d.ts +26 -0
- package/dist/badge.js +70 -0
- package/dist/badge.mjs +9 -0
- package/dist/button.d.mts +20 -0
- package/dist/button.d.ts +20 -0
- package/dist/button.js +197 -0
- package/dist/button.mjs +8 -0
- package/dist/card.d.mts +8 -0
- package/dist/card.d.ts +8 -0
- package/dist/card.js +84 -0
- package/dist/card.mjs +7 -0
- package/dist/chart.d.mts +40 -0
- package/dist/chart.d.ts +40 -0
- package/dist/chart.js +418 -0
- package/dist/chart.mjs +8 -0
- package/dist/chunk-2PGUPOXY.mjs +285 -0
- package/dist/chunk-3DV3D2LH.mjs +155 -0
- package/dist/chunk-44UEI6KD.mjs +280 -0
- package/dist/chunk-4ADCXJE6.mjs +297 -0
- package/dist/chunk-4GSXVVSA.mjs +64 -0
- package/dist/chunk-4NK2FNAG.mjs +581 -0
- package/dist/chunk-4XWCYUV3.mjs +355 -0
- package/dist/chunk-5MN6ZNFA.mjs +355 -0
- package/dist/chunk-6RRBINER.mjs +50 -0
- package/dist/chunk-765JPQDG.mjs +280 -0
- package/dist/chunk-7CD7GIZC.mjs +850 -0
- package/dist/chunk-7XRKA6XF.mjs +462 -0
- package/dist/chunk-AOFP74IB.mjs +850 -0
- package/dist/chunk-BNDFQPHF.mjs +9 -0
- package/dist/chunk-C4OI72SM.mjs +14 -0
- package/dist/chunk-CB2MLGCJ.mjs +279 -0
- package/dist/chunk-CKTAVEW2.mjs +212 -0
- package/dist/chunk-DA6KZWSK.mjs +807 -0
- package/dist/chunk-DBD5GHHD.mjs +147 -0
- package/dist/chunk-DQ6XFBYJ.mjs +37 -0
- package/dist/chunk-FACIYUNK.mjs +217 -0
- package/dist/chunk-FUJQIYOF.mjs +37 -0
- package/dist/chunk-FZTAHWOS.mjs +82 -0
- package/dist/chunk-GC3QIIH7.mjs +112 -0
- package/dist/chunk-GPBLZGJ2.mjs +136 -0
- package/dist/chunk-H4LELROL.mjs +262 -0
- package/dist/chunk-H7P6DIX4.mjs +262 -0
- package/dist/chunk-H7YEBGYY.mjs +42 -0
- package/dist/chunk-HJOBAMDU.mjs +142 -0
- package/dist/chunk-IJG5I642.mjs +462 -0
- package/dist/chunk-IY2AA3OL.mjs +50 -0
- package/dist/chunk-J6L5BLKX.mjs +136 -0
- package/dist/chunk-J7OETCZ7.mjs +147 -0
- package/dist/chunk-JLLMIPIX.mjs +42 -0
- package/dist/chunk-KBRLFTJT.mjs +741 -0
- package/dist/chunk-KDBYDMYV.mjs +64 -0
- package/dist/chunk-L6E6Q4C4.mjs +217 -0
- package/dist/chunk-LY6474C4.mjs +297 -0
- package/dist/chunk-M23S2DVV.mjs +581 -0
- package/dist/chunk-MG243DSX.mjs +44 -0
- package/dist/chunk-MRHSN2B7.mjs +279 -0
- package/dist/chunk-MXWRCVRJ.mjs +285 -0
- package/dist/chunk-NFYS557L.mjs +481 -0
- package/dist/chunk-NNSY462N.mjs +212 -0
- package/dist/chunk-OUOIDPGX.mjs +25 -0
- package/dist/chunk-P5PFQX75.mjs +31 -0
- package/dist/chunk-P674XRDY.mjs +481 -0
- package/dist/chunk-PAQ542ER.mjs +170 -0
- package/dist/chunk-QE46DVJG.mjs +323 -0
- package/dist/chunk-QXFDXXDB.mjs +792 -0
- package/dist/chunk-R3DRVI4J.mjs +741 -0
- package/dist/chunk-TTOR7JCT.mjs +155 -0
- package/dist/chunk-V5WIYMKS.mjs +25 -0
- package/dist/chunk-VAZE267Q.mjs +82 -0
- package/dist/chunk-VLIJ7PQK.mjs +792 -0
- package/dist/chunk-VYNVBJK6.mjs +44 -0
- package/dist/chunk-WIWJ6DIE.mjs +323 -0
- package/dist/chunk-XDAEEJYR.mjs +142 -0
- package/dist/chunk-YUIZZ6XE.mjs +31 -0
- package/dist/connect-button.d.mts +40 -0
- package/dist/connect-button.d.ts +40 -0
- package/dist/connect-button.js +1815 -0
- package/dist/connect-button.mjs +14 -0
- package/dist/event-list-item-details.d.mts +11 -0
- package/dist/event-list-item-details.d.ts +11 -0
- package/dist/event-list-item-details.js +2140 -0
- package/dist/event-list-item-details.mjs +19 -0
- package/dist/event-list-item-details.types-CMbXOrT-.d.ts +53 -0
- package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +53 -0
- package/dist/event-list-item-details.types-DRi99PZq.d.mts +53 -0
- package/dist/event-list-item-details.types-DekJKeMD.d.mts +53 -0
- package/dist/event-list-item.d.mts +10 -0
- package/dist/event-list-item.d.ts +10 -0
- package/dist/event-list-item.js +2097 -0
- package/dist/event-list-item.mjs +17 -0
- package/dist/event-list-item.types-B1490EQm.d.mts +46 -0
- package/dist/event-list-item.types-B1490EQm.d.ts +46 -0
- package/dist/event-list-item.types-Y6IeJ4e4.d.mts +46 -0
- package/dist/event-list-item.types-Y6IeJ4e4.d.ts +46 -0
- package/dist/event-list.d.mts +9 -0
- package/dist/event-list.d.ts +9 -0
- package/dist/event-list.js +3151 -0
- package/dist/event-list.mjs +20 -0
- package/dist/event-list.types-Bpp6Vn-t.d.mts +13 -0
- package/dist/event-list.types-Bpp6Vn-t.d.ts +13 -0
- package/dist/event-list.types-CkAAUqwW.d.mts +13 -0
- package/dist/event-list.types-CkAAUqwW.d.ts +13 -0
- package/dist/event-market-page.d.mts +52 -0
- package/dist/event-market-page.d.ts +52 -0
- package/dist/event-market-page.js +5369 -0
- package/dist/event-market-page.mjs +29 -0
- package/dist/hello-world.d.mts +8 -0
- package/dist/hello-world.d.ts +8 -0
- package/dist/hello-world.js +80 -0
- package/dist/hello-world.mjs +8 -0
- package/dist/home-page.d.mts +51 -0
- package/dist/home-page.d.ts +51 -0
- package/dist/home-page.js +3415 -0
- package/dist/home-page.mjs +21 -0
- package/dist/icon.d.mts +123 -0
- package/dist/icon.d.ts +123 -0
- package/dist/icon.js +922 -0
- package/dist/icon.mjs +57 -0
- package/dist/index.d.mts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +8184 -0
- package/dist/index.mjs +307 -0
- package/dist/loading-icon.d.mts +14 -0
- package/dist/loading-icon.d.ts +14 -0
- package/dist/loading-icon.js +115 -0
- package/dist/loading-icon.mjs +8 -0
- package/dist/market-details.d.mts +73 -0
- package/dist/market-details.d.ts +73 -0
- package/dist/market-details.js +3923 -0
- package/dist/market-details.mjs +22 -0
- package/dist/modal.d.mts +66 -0
- package/dist/modal.d.ts +66 -0
- package/dist/modal.js +317 -0
- package/dist/modal.mjs +9 -0
- package/dist/number-value.d.mts +14 -0
- package/dist/number-value.d.ts +14 -0
- package/dist/number-value.js +67 -0
- package/dist/number-value.mjs +7 -0
- package/dist/onboarding-modal.d.mts +88 -0
- package/dist/onboarding-modal.d.ts +88 -0
- package/dist/onboarding-modal.js +2242 -0
- package/dist/onboarding-modal.mjs +24 -0
- package/dist/place-order.d.mts +20 -0
- package/dist/place-order.d.ts +20 -0
- package/dist/place-order.js +2916 -0
- package/dist/place-order.mjs +18 -0
- package/dist/registry-CVn79H3I.d.mts +106 -0
- package/dist/registry-CVn79H3I.d.ts +106 -0
- package/dist/search.d.mts +69 -0
- package/dist/search.d.ts +69 -0
- package/dist/search.js +1465 -0
- package/dist/search.mjs +12 -0
- package/dist/select.d.mts +19 -0
- package/dist/select.d.ts +19 -0
- package/dist/select.js +920 -0
- package/dist/select.mjs +11 -0
- package/dist/settlement.d.mts +16 -0
- package/dist/settlement.d.ts +16 -0
- package/dist/settlement.js +1769 -0
- package/dist/settlement.mjs +15 -0
- package/dist/skeleton.d.mts +22 -0
- package/dist/skeleton.d.ts +22 -0
- package/dist/skeleton.js +523 -0
- package/dist/skeleton.mjs +10 -0
- package/dist/styles.css +2 -0
- package/dist/switch-button.d.mts +21 -0
- package/dist/switch-button.d.ts +21 -0
- package/dist/switch-button.js +184 -0
- package/dist/switch-button.mjs +7 -0
- package/dist/tabs.d.mts +27 -0
- package/dist/tabs.d.ts +27 -0
- package/dist/tabs.js +1708 -0
- package/dist/tabs.mjs +12 -0
- package/dist/tailwind.css +2 -0
- package/dist/types-8VUuQVZq.d.mts +387 -0
- package/dist/types-8VUuQVZq.d.ts +387 -0
- package/dist/types-CayJ8tWA.d.mts +3 -0
- package/dist/types-CayJ8tWA.d.ts +3 -0
- package/dist/typography.d.mts +16 -0
- package/dist/typography.d.ts +16 -0
- package/dist/typography.js +62 -0
- package/dist/typography.mjs +7 -0
- package/dist/venue-logo.d.mts +12 -0
- package/dist/venue-logo.d.ts +12 -0
- package/dist/venue-logo.js +350 -0
- package/dist/venue-logo.mjs +10 -0
- package/dist/venue-logo.types-4hmCg3D3.d.ts +17 -0
- package/dist/venue-logo.types-B1iPJgiD.d.mts +17 -0
- package/dist/venue-logo.types-Bg8eXtGp.d.ts +17 -0
- package/dist/venue-logo.types-QNDwiQ77.d.mts +17 -0
- package/package.json +195 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PlaceOrder
|
|
3
|
+
} from "./chunk-5MN6ZNFA.mjs";
|
|
4
|
+
import "./chunk-KDBYDMYV.mjs";
|
|
5
|
+
import "./chunk-QXFDXXDB.mjs";
|
|
6
|
+
import "./chunk-IY2AA3OL.mjs";
|
|
7
|
+
import "./chunk-NFYS557L.mjs";
|
|
8
|
+
import "./chunk-LY6474C4.mjs";
|
|
9
|
+
import "./chunk-DA6KZWSK.mjs";
|
|
10
|
+
import "./chunk-VYNVBJK6.mjs";
|
|
11
|
+
import "./chunk-BNDFQPHF.mjs";
|
|
12
|
+
import "./chunk-J6L5BLKX.mjs";
|
|
13
|
+
import "./chunk-C4OI72SM.mjs";
|
|
14
|
+
import "./chunk-YUIZZ6XE.mjs";
|
|
15
|
+
import "./chunk-GC3QIIH7.mjs";
|
|
16
|
+
export {
|
|
17
|
+
PlaceOrder
|
|
18
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type IconSvgProps = SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
declare function WalletAvatarIcon({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
8
|
+
declare namespace WalletAvatarIcon {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const iconRegistry: {
|
|
13
|
+
readonly "arrow-trend-up": {
|
|
14
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
readonly "arrows-to-dot": {
|
|
18
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
readonly "best-prices": {
|
|
22
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
readonly "check-circle": {
|
|
26
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
readonly "chevron-down": {
|
|
30
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
readonly "chevron-right": {
|
|
34
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
readonly "chevron-up": {
|
|
38
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
readonly close: {
|
|
42
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
45
|
+
readonly "create-account": {
|
|
46
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
readonly disconnect: {
|
|
50
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
readonly download: {
|
|
54
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
55
|
+
displayName: string;
|
|
56
|
+
};
|
|
57
|
+
readonly "dots-horizontal": {
|
|
58
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
readonly "link-accounts": {
|
|
62
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
readonly profile: {
|
|
66
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
69
|
+
readonly "revenue-alt": {
|
|
70
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
readonly search: {
|
|
74
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
75
|
+
displayName: string;
|
|
76
|
+
};
|
|
77
|
+
readonly "shield-trust": {
|
|
78
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
readonly "stay-in-control": {
|
|
82
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
readonly "triangle-down": {
|
|
86
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
readonly "triangle-up": {
|
|
90
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
93
|
+
readonly upload: {
|
|
94
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
95
|
+
displayName: string;
|
|
96
|
+
};
|
|
97
|
+
readonly "wallet-avatar": typeof WalletAvatarIcon;
|
|
98
|
+
readonly warning: {
|
|
99
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
100
|
+
displayName: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type IconName = keyof typeof iconRegistry;
|
|
104
|
+
declare const iconNames: IconName[];
|
|
105
|
+
|
|
106
|
+
export { type IconName as I, WalletAvatarIcon as W, type IconSvgProps as a, iconNames as i };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type IconSvgProps = SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
declare function WalletAvatarIcon({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
8
|
+
declare namespace WalletAvatarIcon {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const iconRegistry: {
|
|
13
|
+
readonly "arrow-trend-up": {
|
|
14
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
readonly "arrows-to-dot": {
|
|
18
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
readonly "best-prices": {
|
|
22
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
readonly "check-circle": {
|
|
26
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
readonly "chevron-down": {
|
|
30
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
readonly "chevron-right": {
|
|
34
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
readonly "chevron-up": {
|
|
38
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
readonly close: {
|
|
42
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
45
|
+
readonly "create-account": {
|
|
46
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
readonly disconnect: {
|
|
50
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
readonly download: {
|
|
54
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
55
|
+
displayName: string;
|
|
56
|
+
};
|
|
57
|
+
readonly "dots-horizontal": {
|
|
58
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
readonly "link-accounts": {
|
|
62
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
readonly profile: {
|
|
66
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
69
|
+
readonly "revenue-alt": {
|
|
70
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
readonly search: {
|
|
74
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
75
|
+
displayName: string;
|
|
76
|
+
};
|
|
77
|
+
readonly "shield-trust": {
|
|
78
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
readonly "stay-in-control": {
|
|
82
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
readonly "triangle-down": {
|
|
86
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
readonly "triangle-up": {
|
|
90
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
93
|
+
readonly upload: {
|
|
94
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
95
|
+
displayName: string;
|
|
96
|
+
};
|
|
97
|
+
readonly "wallet-avatar": typeof WalletAvatarIcon;
|
|
98
|
+
readonly warning: {
|
|
99
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
100
|
+
displayName: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type IconName = keyof typeof iconRegistry;
|
|
104
|
+
declare const iconNames: IconName[];
|
|
105
|
+
|
|
106
|
+
export { type IconName as I, WalletAvatarIcon as W, type IconSvgProps as a, iconNames as i };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { V as VenueLogoName } from './venue-logo.types-B1iPJgiD.mjs';
|
|
4
|
+
import '@agg-market/hooks';
|
|
5
|
+
import './types-CayJ8tWA.mjs';
|
|
6
|
+
|
|
7
|
+
declare const searchResultItemSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
thumbnailSrc: z.ZodString;
|
|
11
|
+
thumbnailAlt: z.ZodOptional<z.ZodString>;
|
|
12
|
+
venue: z.ZodType<VenueLogoName, z.ZodTypeDef, VenueLogoName>;
|
|
13
|
+
valueLabel: z.ZodString;
|
|
14
|
+
contextLabel: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
venue: VenueLogoName;
|
|
19
|
+
thumbnailSrc: string;
|
|
20
|
+
valueLabel: string;
|
|
21
|
+
contextLabel: string;
|
|
22
|
+
thumbnailAlt?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
venue: VenueLogoName;
|
|
27
|
+
thumbnailSrc: string;
|
|
28
|
+
valueLabel: string;
|
|
29
|
+
contextLabel: string;
|
|
30
|
+
thumbnailAlt?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
type SearchResultItem = z.infer<typeof searchResultItemSchema>;
|
|
33
|
+
type SearchClassNames = {
|
|
34
|
+
root?: string;
|
|
35
|
+
inputContainer?: string;
|
|
36
|
+
input?: string;
|
|
37
|
+
searchIcon?: string;
|
|
38
|
+
dropdown?: string;
|
|
39
|
+
resultsList?: string;
|
|
40
|
+
resultItem?: string;
|
|
41
|
+
resultButton?: string;
|
|
42
|
+
resultThumbnail?: string;
|
|
43
|
+
resultTitle?: string;
|
|
44
|
+
resultMeta?: string;
|
|
45
|
+
resultValue?: string;
|
|
46
|
+
resultContext?: string;
|
|
47
|
+
resultChevron?: string;
|
|
48
|
+
emptyState?: string;
|
|
49
|
+
emptyStateContent?: string;
|
|
50
|
+
emptyStateIcon?: string;
|
|
51
|
+
emptyStateTitle?: string;
|
|
52
|
+
emptyStateDescription?: string;
|
|
53
|
+
};
|
|
54
|
+
type SearchInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, "id" | "name" | "autoComplete" | "autoFocus" | "disabled" | "readOnly" | "required" | "maxLength" | "inputMode" | "onBlur" | "onFocus" | "onKeyDown" | "onKeyUp" | "onKeyPress" | "tabIndex" | "enterKeyHint" | "aria-describedby">;
|
|
55
|
+
type SearchProps = {
|
|
56
|
+
value: string;
|
|
57
|
+
onValueChange: (value: string) => void;
|
|
58
|
+
results?: SearchResultItem[];
|
|
59
|
+
onSelect?: (item: SearchResultItem) => void;
|
|
60
|
+
classNames?: SearchClassNames;
|
|
61
|
+
inputProps?: SearchInputProps;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
declare const Search: {
|
|
65
|
+
({ value, onValueChange, results, onSelect, classNames, inputProps, }: SearchProps): JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { Search, type SearchClassNames, type SearchInputProps, type SearchProps, type SearchResultItem };
|
package/dist/search.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { V as VenueLogoName } from './venue-logo.types-Bg8eXtGp.js';
|
|
4
|
+
import '@agg-market/hooks';
|
|
5
|
+
import './types-CayJ8tWA.js';
|
|
6
|
+
|
|
7
|
+
declare const searchResultItemSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
thumbnailSrc: z.ZodString;
|
|
11
|
+
thumbnailAlt: z.ZodOptional<z.ZodString>;
|
|
12
|
+
venue: z.ZodType<VenueLogoName, z.ZodTypeDef, VenueLogoName>;
|
|
13
|
+
valueLabel: z.ZodString;
|
|
14
|
+
contextLabel: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
venue: VenueLogoName;
|
|
19
|
+
thumbnailSrc: string;
|
|
20
|
+
valueLabel: string;
|
|
21
|
+
contextLabel: string;
|
|
22
|
+
thumbnailAlt?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
venue: VenueLogoName;
|
|
27
|
+
thumbnailSrc: string;
|
|
28
|
+
valueLabel: string;
|
|
29
|
+
contextLabel: string;
|
|
30
|
+
thumbnailAlt?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
type SearchResultItem = z.infer<typeof searchResultItemSchema>;
|
|
33
|
+
type SearchClassNames = {
|
|
34
|
+
root?: string;
|
|
35
|
+
inputContainer?: string;
|
|
36
|
+
input?: string;
|
|
37
|
+
searchIcon?: string;
|
|
38
|
+
dropdown?: string;
|
|
39
|
+
resultsList?: string;
|
|
40
|
+
resultItem?: string;
|
|
41
|
+
resultButton?: string;
|
|
42
|
+
resultThumbnail?: string;
|
|
43
|
+
resultTitle?: string;
|
|
44
|
+
resultMeta?: string;
|
|
45
|
+
resultValue?: string;
|
|
46
|
+
resultContext?: string;
|
|
47
|
+
resultChevron?: string;
|
|
48
|
+
emptyState?: string;
|
|
49
|
+
emptyStateContent?: string;
|
|
50
|
+
emptyStateIcon?: string;
|
|
51
|
+
emptyStateTitle?: string;
|
|
52
|
+
emptyStateDescription?: string;
|
|
53
|
+
};
|
|
54
|
+
type SearchInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, "id" | "name" | "autoComplete" | "autoFocus" | "disabled" | "readOnly" | "required" | "maxLength" | "inputMode" | "onBlur" | "onFocus" | "onKeyDown" | "onKeyUp" | "onKeyPress" | "tabIndex" | "enterKeyHint" | "aria-describedby">;
|
|
55
|
+
type SearchProps = {
|
|
56
|
+
value: string;
|
|
57
|
+
onValueChange: (value: string) => void;
|
|
58
|
+
results?: SearchResultItem[];
|
|
59
|
+
onSelect?: (item: SearchResultItem) => void;
|
|
60
|
+
classNames?: SearchClassNames;
|
|
61
|
+
inputProps?: SearchInputProps;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
declare const Search: {
|
|
65
|
+
({ value, onValueChange, results, onSelect, classNames, inputProps, }: SearchProps): JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { Search, type SearchClassNames, type SearchInputProps, type SearchProps, type SearchResultItem };
|