@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.
Files changed (192) hide show
  1. package/dist/badge.d.mts +26 -0
  2. package/dist/badge.d.ts +26 -0
  3. package/dist/badge.js +70 -0
  4. package/dist/badge.mjs +9 -0
  5. package/dist/button.d.mts +20 -0
  6. package/dist/button.d.ts +20 -0
  7. package/dist/button.js +197 -0
  8. package/dist/button.mjs +8 -0
  9. package/dist/card.d.mts +8 -0
  10. package/dist/card.d.ts +8 -0
  11. package/dist/card.js +84 -0
  12. package/dist/card.mjs +7 -0
  13. package/dist/chart.d.mts +40 -0
  14. package/dist/chart.d.ts +40 -0
  15. package/dist/chart.js +418 -0
  16. package/dist/chart.mjs +8 -0
  17. package/dist/chunk-2PGUPOXY.mjs +285 -0
  18. package/dist/chunk-3DV3D2LH.mjs +155 -0
  19. package/dist/chunk-44UEI6KD.mjs +280 -0
  20. package/dist/chunk-4ADCXJE6.mjs +297 -0
  21. package/dist/chunk-4GSXVVSA.mjs +64 -0
  22. package/dist/chunk-4NK2FNAG.mjs +581 -0
  23. package/dist/chunk-4XWCYUV3.mjs +355 -0
  24. package/dist/chunk-5MN6ZNFA.mjs +355 -0
  25. package/dist/chunk-6RRBINER.mjs +50 -0
  26. package/dist/chunk-765JPQDG.mjs +280 -0
  27. package/dist/chunk-7CD7GIZC.mjs +850 -0
  28. package/dist/chunk-7XRKA6XF.mjs +462 -0
  29. package/dist/chunk-AOFP74IB.mjs +850 -0
  30. package/dist/chunk-BNDFQPHF.mjs +9 -0
  31. package/dist/chunk-C4OI72SM.mjs +14 -0
  32. package/dist/chunk-CB2MLGCJ.mjs +279 -0
  33. package/dist/chunk-CKTAVEW2.mjs +212 -0
  34. package/dist/chunk-DA6KZWSK.mjs +807 -0
  35. package/dist/chunk-DBD5GHHD.mjs +147 -0
  36. package/dist/chunk-DQ6XFBYJ.mjs +37 -0
  37. package/dist/chunk-FACIYUNK.mjs +217 -0
  38. package/dist/chunk-FUJQIYOF.mjs +37 -0
  39. package/dist/chunk-FZTAHWOS.mjs +82 -0
  40. package/dist/chunk-GC3QIIH7.mjs +112 -0
  41. package/dist/chunk-GPBLZGJ2.mjs +136 -0
  42. package/dist/chunk-H4LELROL.mjs +262 -0
  43. package/dist/chunk-H7P6DIX4.mjs +262 -0
  44. package/dist/chunk-H7YEBGYY.mjs +42 -0
  45. package/dist/chunk-HJOBAMDU.mjs +142 -0
  46. package/dist/chunk-IJG5I642.mjs +462 -0
  47. package/dist/chunk-IY2AA3OL.mjs +50 -0
  48. package/dist/chunk-J6L5BLKX.mjs +136 -0
  49. package/dist/chunk-J7OETCZ7.mjs +147 -0
  50. package/dist/chunk-JLLMIPIX.mjs +42 -0
  51. package/dist/chunk-KBRLFTJT.mjs +741 -0
  52. package/dist/chunk-KDBYDMYV.mjs +64 -0
  53. package/dist/chunk-L6E6Q4C4.mjs +217 -0
  54. package/dist/chunk-LY6474C4.mjs +297 -0
  55. package/dist/chunk-M23S2DVV.mjs +581 -0
  56. package/dist/chunk-MG243DSX.mjs +44 -0
  57. package/dist/chunk-MRHSN2B7.mjs +279 -0
  58. package/dist/chunk-MXWRCVRJ.mjs +285 -0
  59. package/dist/chunk-NFYS557L.mjs +481 -0
  60. package/dist/chunk-NNSY462N.mjs +212 -0
  61. package/dist/chunk-OUOIDPGX.mjs +25 -0
  62. package/dist/chunk-P5PFQX75.mjs +31 -0
  63. package/dist/chunk-P674XRDY.mjs +481 -0
  64. package/dist/chunk-PAQ542ER.mjs +170 -0
  65. package/dist/chunk-QE46DVJG.mjs +323 -0
  66. package/dist/chunk-QXFDXXDB.mjs +792 -0
  67. package/dist/chunk-R3DRVI4J.mjs +741 -0
  68. package/dist/chunk-TTOR7JCT.mjs +155 -0
  69. package/dist/chunk-V5WIYMKS.mjs +25 -0
  70. package/dist/chunk-VAZE267Q.mjs +82 -0
  71. package/dist/chunk-VLIJ7PQK.mjs +792 -0
  72. package/dist/chunk-VYNVBJK6.mjs +44 -0
  73. package/dist/chunk-WIWJ6DIE.mjs +323 -0
  74. package/dist/chunk-XDAEEJYR.mjs +142 -0
  75. package/dist/chunk-YUIZZ6XE.mjs +31 -0
  76. package/dist/connect-button.d.mts +40 -0
  77. package/dist/connect-button.d.ts +40 -0
  78. package/dist/connect-button.js +1815 -0
  79. package/dist/connect-button.mjs +14 -0
  80. package/dist/event-list-item-details.d.mts +11 -0
  81. package/dist/event-list-item-details.d.ts +11 -0
  82. package/dist/event-list-item-details.js +2140 -0
  83. package/dist/event-list-item-details.mjs +19 -0
  84. package/dist/event-list-item-details.types-CMbXOrT-.d.ts +53 -0
  85. package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +53 -0
  86. package/dist/event-list-item-details.types-DRi99PZq.d.mts +53 -0
  87. package/dist/event-list-item-details.types-DekJKeMD.d.mts +53 -0
  88. package/dist/event-list-item.d.mts +10 -0
  89. package/dist/event-list-item.d.ts +10 -0
  90. package/dist/event-list-item.js +2097 -0
  91. package/dist/event-list-item.mjs +17 -0
  92. package/dist/event-list-item.types-B1490EQm.d.mts +46 -0
  93. package/dist/event-list-item.types-B1490EQm.d.ts +46 -0
  94. package/dist/event-list-item.types-Y6IeJ4e4.d.mts +46 -0
  95. package/dist/event-list-item.types-Y6IeJ4e4.d.ts +46 -0
  96. package/dist/event-list.d.mts +9 -0
  97. package/dist/event-list.d.ts +9 -0
  98. package/dist/event-list.js +3151 -0
  99. package/dist/event-list.mjs +20 -0
  100. package/dist/event-list.types-Bpp6Vn-t.d.mts +13 -0
  101. package/dist/event-list.types-Bpp6Vn-t.d.ts +13 -0
  102. package/dist/event-list.types-CkAAUqwW.d.mts +13 -0
  103. package/dist/event-list.types-CkAAUqwW.d.ts +13 -0
  104. package/dist/event-market-page.d.mts +52 -0
  105. package/dist/event-market-page.d.ts +52 -0
  106. package/dist/event-market-page.js +5369 -0
  107. package/dist/event-market-page.mjs +29 -0
  108. package/dist/hello-world.d.mts +8 -0
  109. package/dist/hello-world.d.ts +8 -0
  110. package/dist/hello-world.js +80 -0
  111. package/dist/hello-world.mjs +8 -0
  112. package/dist/home-page.d.mts +51 -0
  113. package/dist/home-page.d.ts +51 -0
  114. package/dist/home-page.js +3415 -0
  115. package/dist/home-page.mjs +21 -0
  116. package/dist/icon.d.mts +123 -0
  117. package/dist/icon.d.ts +123 -0
  118. package/dist/icon.js +922 -0
  119. package/dist/icon.mjs +57 -0
  120. package/dist/index.d.mts +70 -0
  121. package/dist/index.d.ts +70 -0
  122. package/dist/index.js +8184 -0
  123. package/dist/index.mjs +307 -0
  124. package/dist/loading-icon.d.mts +14 -0
  125. package/dist/loading-icon.d.ts +14 -0
  126. package/dist/loading-icon.js +115 -0
  127. package/dist/loading-icon.mjs +8 -0
  128. package/dist/market-details.d.mts +73 -0
  129. package/dist/market-details.d.ts +73 -0
  130. package/dist/market-details.js +3923 -0
  131. package/dist/market-details.mjs +22 -0
  132. package/dist/modal.d.mts +66 -0
  133. package/dist/modal.d.ts +66 -0
  134. package/dist/modal.js +317 -0
  135. package/dist/modal.mjs +9 -0
  136. package/dist/number-value.d.mts +14 -0
  137. package/dist/number-value.d.ts +14 -0
  138. package/dist/number-value.js +67 -0
  139. package/dist/number-value.mjs +7 -0
  140. package/dist/onboarding-modal.d.mts +88 -0
  141. package/dist/onboarding-modal.d.ts +88 -0
  142. package/dist/onboarding-modal.js +2242 -0
  143. package/dist/onboarding-modal.mjs +24 -0
  144. package/dist/place-order.d.mts +20 -0
  145. package/dist/place-order.d.ts +20 -0
  146. package/dist/place-order.js +2916 -0
  147. package/dist/place-order.mjs +18 -0
  148. package/dist/registry-CVn79H3I.d.mts +106 -0
  149. package/dist/registry-CVn79H3I.d.ts +106 -0
  150. package/dist/search.d.mts +69 -0
  151. package/dist/search.d.ts +69 -0
  152. package/dist/search.js +1465 -0
  153. package/dist/search.mjs +12 -0
  154. package/dist/select.d.mts +19 -0
  155. package/dist/select.d.ts +19 -0
  156. package/dist/select.js +920 -0
  157. package/dist/select.mjs +11 -0
  158. package/dist/settlement.d.mts +16 -0
  159. package/dist/settlement.d.ts +16 -0
  160. package/dist/settlement.js +1769 -0
  161. package/dist/settlement.mjs +15 -0
  162. package/dist/skeleton.d.mts +22 -0
  163. package/dist/skeleton.d.ts +22 -0
  164. package/dist/skeleton.js +523 -0
  165. package/dist/skeleton.mjs +10 -0
  166. package/dist/styles.css +2 -0
  167. package/dist/switch-button.d.mts +21 -0
  168. package/dist/switch-button.d.ts +21 -0
  169. package/dist/switch-button.js +184 -0
  170. package/dist/switch-button.mjs +7 -0
  171. package/dist/tabs.d.mts +27 -0
  172. package/dist/tabs.d.ts +27 -0
  173. package/dist/tabs.js +1708 -0
  174. package/dist/tabs.mjs +12 -0
  175. package/dist/tailwind.css +2 -0
  176. package/dist/types-8VUuQVZq.d.mts +387 -0
  177. package/dist/types-8VUuQVZq.d.ts +387 -0
  178. package/dist/types-CayJ8tWA.d.mts +3 -0
  179. package/dist/types-CayJ8tWA.d.ts +3 -0
  180. package/dist/typography.d.mts +16 -0
  181. package/dist/typography.d.ts +16 -0
  182. package/dist/typography.js +62 -0
  183. package/dist/typography.mjs +7 -0
  184. package/dist/venue-logo.d.mts +12 -0
  185. package/dist/venue-logo.d.ts +12 -0
  186. package/dist/venue-logo.js +350 -0
  187. package/dist/venue-logo.mjs +10 -0
  188. package/dist/venue-logo.types-4hmCg3D3.d.ts +17 -0
  189. package/dist/venue-logo.types-B1iPJgiD.d.mts +17 -0
  190. package/dist/venue-logo.types-Bg8eXtGp.d.ts +17 -0
  191. package/dist/venue-logo.types-QNDwiQ77.d.mts +17 -0
  192. package/package.json +195 -0
@@ -0,0 +1,15 @@
1
+ import {
2
+ Settlement
3
+ } from "./chunk-J7OETCZ7.mjs";
4
+ import "./chunk-KDBYDMYV.mjs";
5
+ import "./chunk-NFYS557L.mjs";
6
+ import "./chunk-LY6474C4.mjs";
7
+ import "./chunk-DA6KZWSK.mjs";
8
+ import "./chunk-VYNVBJK6.mjs";
9
+ import "./chunk-BNDFQPHF.mjs";
10
+ import "./chunk-C4OI72SM.mjs";
11
+ import "./chunk-YUIZZ6XE.mjs";
12
+ import "./chunk-GC3QIIH7.mjs";
13
+ export {
14
+ Settlement
15
+ };
@@ -0,0 +1,22 @@
1
+ declare const skeletonViews: {
2
+ readonly eventListItem: "event-list-item";
3
+ readonly eventListItemDetails: "event-list-item-details";
4
+ readonly marketDetailsMinified: "market-details-minified";
5
+ readonly marketDetailsDetailed: "market-details-detailed";
6
+ readonly eventList: "event-list";
7
+ readonly settlement: "settlement";
8
+ readonly placeOrder: "place-order";
9
+ };
10
+ type SkeletonView = (typeof skeletonViews)[keyof typeof skeletonViews];
11
+ type SkeletonProps = {
12
+ view: SkeletonView;
13
+ className?: string;
14
+ ariaLabel?: string;
15
+ };
16
+
17
+ declare const Skeleton: {
18
+ ({ view, className, ariaLabel }: SkeletonProps): JSX.Element;
19
+ displayName: string;
20
+ };
21
+
22
+ export { Skeleton, type SkeletonProps, type SkeletonView, skeletonViews };
@@ -0,0 +1,22 @@
1
+ declare const skeletonViews: {
2
+ readonly eventListItem: "event-list-item";
3
+ readonly eventListItemDetails: "event-list-item-details";
4
+ readonly marketDetailsMinified: "market-details-minified";
5
+ readonly marketDetailsDetailed: "market-details-detailed";
6
+ readonly eventList: "event-list";
7
+ readonly settlement: "settlement";
8
+ readonly placeOrder: "place-order";
9
+ };
10
+ type SkeletonView = (typeof skeletonViews)[keyof typeof skeletonViews];
11
+ type SkeletonProps = {
12
+ view: SkeletonView;
13
+ className?: string;
14
+ ariaLabel?: string;
15
+ };
16
+
17
+ declare const Skeleton: {
18
+ ({ view, className, ariaLabel }: SkeletonProps): JSX.Element;
19
+ displayName: string;
20
+ };
21
+
22
+ export { Skeleton, type SkeletonProps, type SkeletonView, skeletonViews };
@@ -0,0 +1,523 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ var __export = (target, all) => {
33
+ for (var name in all)
34
+ __defProp(target, name, { get: all[name], enumerable: true });
35
+ };
36
+ var __copyProps = (to, from, except, desc) => {
37
+ if (from && typeof from === "object" || typeof from === "function") {
38
+ for (let key of __getOwnPropNames(from))
39
+ if (!__hasOwnProp.call(to, key) && key !== except)
40
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
+ }
42
+ return to;
43
+ };
44
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
45
+
46
+ // src/primitives/skeleton/index.tsx
47
+ var skeleton_exports = {};
48
+ __export(skeleton_exports, {
49
+ Skeleton: () => Skeleton,
50
+ skeletonViews: () => skeletonViews
51
+ });
52
+ module.exports = __toCommonJS(skeleton_exports);
53
+
54
+ // src/primitives/skeleton/views/event-list-skeleton-view.tsx
55
+ var import_hooks4 = require("@agg-market/hooks");
56
+
57
+ // src/shared/utils.ts
58
+ var cn = (...values) => values.filter(Boolean).join(" ");
59
+ var getMotionClassName = (enabled, ...values) => {
60
+ if (!enabled)
61
+ return void 0;
62
+ return cn(...values);
63
+ };
64
+
65
+ // src/primitives/skeleton/skeleton-block.tsx
66
+ var import_hooks = require("@agg-market/hooks");
67
+ var import_jsx_runtime = require("react/jsx-runtime");
68
+ var SkeletonBlock = ({ className }) => {
69
+ const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ "div",
72
+ {
73
+ "aria-hidden": true,
74
+ className: cn(
75
+ "bg-agg-separator",
76
+ getMotionClassName(enableAnimations, "animate-pulse"),
77
+ className
78
+ )
79
+ }
80
+ );
81
+ };
82
+ SkeletonBlock.displayName = "SkeletonBlock";
83
+
84
+ // src/primitives/skeleton/views/event-list-item-skeleton-view.tsx
85
+ var import_hooks3 = require("@agg-market/hooks");
86
+
87
+ // src/primitives/card/index.tsx
88
+ var import_hooks2 = require("@agg-market/hooks");
89
+ var import_jsx_runtime2 = require("react/jsx-runtime");
90
+ var Card = (_a) => {
91
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
92
+ const { enableAnimations } = (0, import_hooks2.useSdkUiConfig)();
93
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
94
+ "div",
95
+ __spreadValues({
96
+ className: cn(
97
+ "flex w-full flex-col font-agg-sans",
98
+ "rounded-agg-xl border border-agg-separator",
99
+ "bg-agg-secondary text-agg-foreground shadow-agg-card",
100
+ getMotionClassName(enableAnimations, "transition-shadow hover:shadow-agg-card-hover"),
101
+ className
102
+ )
103
+ }, props)
104
+ );
105
+ };
106
+ Card.displayName = "Card";
107
+
108
+ // src/events/item/event-list-item.constants.ts
109
+ var baseCardClassName = "gap-3 overflow-hidden p-5 w-full";
110
+
111
+ // src/primitives/skeleton/views/event-list-item-skeleton-view.tsx
112
+ var import_jsx_runtime3 = require("react/jsx-runtime");
113
+ var EventListItemSkeletonView = ({
114
+ className,
115
+ ariaLabel,
116
+ isStandalone = false
117
+ }) => {
118
+ const labels = (0, import_hooks3.useLabels)();
119
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
120
+ Card,
121
+ {
122
+ className: cn(baseCardClassName, className),
123
+ role: isStandalone ? "status" : void 0,
124
+ "aria-label": isStandalone ? ariaLabel != null ? ariaLabel : labels.eventItem.loading : void 0,
125
+ "aria-busy": isStandalone || void 0,
126
+ "aria-hidden": isStandalone ? void 0 : true,
127
+ children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
129
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-10 w-10 rounded-agg-lg" }),
130
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
131
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm" }),
132
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-5 w-[68%] rounded-agg-sm" })
133
+ ] })
134
+ ] }),
135
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex flex-col gap-3", children: [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
136
+ "div",
137
+ {
138
+ className: "grid w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3",
139
+ children: [
140
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
141
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
142
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-9 w-[101px] rounded-agg-full" })
143
+ ]
144
+ },
145
+ index
146
+ )) }),
147
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center justify-between gap-2 text-agg-muted-foreground", children: [
148
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-2", children: [
149
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" }),
150
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-1", children: [
151
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
152
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
153
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" })
154
+ ] })
155
+ ] }),
156
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" })
157
+ ] })
158
+ ]
159
+ }
160
+ );
161
+ };
162
+ EventListItemSkeletonView.displayName = "EventListItemSkeletonView";
163
+
164
+ // src/primitives/skeleton/views/event-list-skeleton-view.tsx
165
+ var import_jsx_runtime4 = require("react/jsx-runtime");
166
+ var EventListSkeletonView = ({ className, ariaLabel }) => {
167
+ const labels = (0, import_hooks4.useLabels)();
168
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
169
+ "section",
170
+ {
171
+ className: cn("flex w-full flex-col gap-5", className),
172
+ role: "status",
173
+ "aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
174
+ "aria-busy": true,
175
+ children: [
176
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "flex w-full flex-col items-start justify-between gap-2 md:flex-row md:flex-nowrap md:items-center md:gap-4", children: [
177
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SkeletonBlock, { className: "h-7 w-40 rounded-agg-sm" }),
178
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex max-w-full gap-2", children: [
179
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
180
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
181
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SkeletonBlock, { className: "h-10 w-24 rounded-agg-full" })
182
+ ] })
183
+ ] }),
184
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "grid grid-cols-1 gap-5 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
185
+ EventListItemSkeletonView,
186
+ {
187
+ isStandalone: false,
188
+ className: "w-full min-w-0 max-w-none"
189
+ },
190
+ index
191
+ )) })
192
+ ]
193
+ }
194
+ );
195
+ };
196
+ EventListSkeletonView.displayName = "EventListSkeletonView";
197
+
198
+ // src/primitives/skeleton/views/event-list-item-details-skeleton-view.tsx
199
+ var import_hooks5 = require("@agg-market/hooks");
200
+
201
+ // src/events/item-details/event-list-item-details.constants.ts
202
+ var detailsBaseCardClassName = "w-full overflow-hidden gap-6 p-5 md:gap-8 md:p-10";
203
+
204
+ // src/primitives/skeleton/views/event-list-item-details-skeleton-view.tsx
205
+ var import_jsx_runtime5 = require("react/jsx-runtime");
206
+ var EventListItemDetailsSkeletonView = ({
207
+ className,
208
+ ariaLabel
209
+ }) => {
210
+ const labels = (0, import_hooks5.useLabels)();
211
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
212
+ Card,
213
+ {
214
+ className: cn(detailsBaseCardClassName, className),
215
+ role: "status",
216
+ "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
217
+ "aria-busy": true,
218
+ children: [
219
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex w-full items-start gap-3 md:gap-4", children: [
220
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "size-10 rounded-agg-lg md:size-[60px]" }),
221
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
222
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm md:h-7 md:w-[55%]" }),
223
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
224
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
225
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
226
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" })
227
+ ] })
228
+ ] })
229
+ ] }),
230
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-4", children: [
231
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-10 w-full rounded-agg-full md:w-[220px]" }),
232
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
233
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
234
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
235
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
236
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" })
237
+ ] })
238
+ ] }),
239
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "h-[300px] w-full rounded-agg-xl", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-full w-full rounded-agg-xl" }) }),
240
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center justify-between", children: [
241
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
242
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
243
+ ] })
244
+ ]
245
+ }
246
+ );
247
+ };
248
+ EventListItemDetailsSkeletonView.displayName = "EventListItemDetailsSkeletonView";
249
+
250
+ // src/primitives/skeleton/views/market-details-skeleton-view.tsx
251
+ var import_hooks6 = require("@agg-market/hooks");
252
+
253
+ // src/events/market-details/market-details.constants.ts
254
+ var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
255
+
256
+ // src/primitives/skeleton/views/market-details-skeleton-view.tsx
257
+ var import_jsx_runtime6 = require("react/jsx-runtime");
258
+ var MarketDetailsSkeletonView = ({
259
+ className,
260
+ ariaLabel,
261
+ isDetailed
262
+ }) => {
263
+ const labels = (0, import_hooks6.useLabels)();
264
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
265
+ Card,
266
+ {
267
+ className: cn(marketDetailsBaseCardClassName, className),
268
+ role: "status",
269
+ "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
270
+ "aria-busy": true,
271
+ children: [
272
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-3 p-4 md:px-5 md:py-4", children: [
273
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
274
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:gap-4", children: [
275
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
276
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
277
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-6 w-40 rounded-agg-sm" }),
278
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
279
+ ] })
280
+ ] }),
281
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-8 w-16 rounded-agg-sm" })
282
+ ] }),
283
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-2", children: [
284
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" }),
285
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" })
286
+ ] })
287
+ ] }),
288
+ isDetailed ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
289
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
290
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex h-14 items-end", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-full w-full rounded-none" }) }),
291
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
292
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-4 p-5", children: [
293
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-3", children: [
294
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
295
+ [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
296
+ "div",
297
+ {
298
+ className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
299
+ children: [
300
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
301
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
302
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
303
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
304
+ ]
305
+ },
306
+ `ask-${index}`
307
+ ))
308
+ ] }),
309
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-3", children: [
310
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
311
+ [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
312
+ "div",
313
+ {
314
+ className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
315
+ children: [
316
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
317
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
318
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
319
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
320
+ ]
321
+ },
322
+ `bid-${index}`
323
+ ))
324
+ ] })
325
+ ] })
326
+ ] }) : null
327
+ ]
328
+ }
329
+ );
330
+ };
331
+ MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
332
+
333
+ // src/primitives/skeleton/views/place-order-skeleton-view.tsx
334
+ var import_jsx_runtime7 = require("react/jsx-runtime");
335
+ var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
336
+ var ContentBody = () => {
337
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-6 p-5", children: [
338
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2", children: [
339
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
340
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
341
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-12 w-12 shrink-0 rounded-agg-lg" }),
342
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
343
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-[92%] rounded-agg-sm" }),
344
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-[80%] rounded-agg-sm" })
345
+ ] })
346
+ ] }),
347
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-6 w-6 rounded-agg-sm" })
348
+ ] }),
349
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-28 rounded-agg-sm" })
350
+ ] }),
351
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex h-11 items-end border-b border-agg-separator", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center gap-8", children: [
352
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2", children: [
353
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" }),
354
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-[3px] w-12 rounded-t-agg-sm" })
355
+ ] }),
356
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
357
+ ] }) }),
358
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-4", children: [
359
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-2", children: [
360
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" }),
361
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" })
362
+ ] }),
363
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
364
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2", children: [
365
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
366
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
367
+ ] }),
368
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-9 w-28 rounded-agg-sm" })
369
+ ] })
370
+ ] }),
371
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2", children: [
372
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "rounded-agg-lg border border-agg-trade-highlight-border bg-agg-trade-highlight-surface p-3", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-3", children: [
373
+ [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-3", children: [
374
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
375
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center gap-2", children: [
376
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
377
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" })
378
+ ] }),
379
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
380
+ ] }),
381
+ index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "h-px w-full bg-agg-trade-highlight-border" }) : null
382
+ ] }, `place-order-route-${index}`)),
383
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "mx-auto h-5 w-40 rounded-agg-sm" })
384
+ ] }) }),
385
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" })
386
+ ] }),
387
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
388
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-2", children: [
389
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
390
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-4 w-24 rounded-agg-sm" })
391
+ ] }),
392
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-9 w-36 rounded-agg-sm" })
393
+ ] }),
394
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-4 w-[88%] self-center rounded-agg-sm" })
395
+ ] });
396
+ };
397
+ var PlaceOrderSkeletonView = ({
398
+ className,
399
+ ariaLabel
400
+ }) => {
401
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
402
+ "div",
403
+ {
404
+ className: cn("w-full", className),
405
+ role: "status",
406
+ "aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
407
+ "aria-busy": true,
408
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
409
+ Card,
410
+ {
411
+ className: cn(
412
+ placeOrderCardClassName,
413
+ "w-full max-w-[400px] rounded-t-agg-xl rounded-b-none border-b-0"
414
+ ),
415
+ children: [
416
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ContentBody, {}),
417
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "border-t border-agg-separator bg-agg-secondary p-4", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }) })
418
+ ]
419
+ }
420
+ ) })
421
+ }
422
+ );
423
+ };
424
+ PlaceOrderSkeletonView.displayName = "PlaceOrderSkeletonView";
425
+
426
+ // src/primitives/skeleton/views/settlement-skeleton-view.tsx
427
+ var import_hooks7 = require("@agg-market/hooks");
428
+ var import_jsx_runtime8 = require("react/jsx-runtime");
429
+ var SettlementSkeletonView = ({
430
+ className,
431
+ ariaLabel
432
+ }) => {
433
+ const labels = (0, import_hooks7.useLabels)();
434
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
435
+ Card,
436
+ {
437
+ className: cn(
438
+ "gap-5 rounded-agg-xl border border-agg-separator bg-agg-secondary p-5 shadow-none hover:shadow-none",
439
+ className
440
+ ),
441
+ role: "status",
442
+ "aria-label": ariaLabel != null ? ariaLabel : labels.trading.settlementLoading,
443
+ "aria-busy": true,
444
+ children: [
445
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1 md:flex-row md:items-center md:justify-between md:gap-4", children: [
446
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" }),
447
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-80 rounded-agg-sm" })
448
+ ] }),
449
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
450
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-5 w-52 rounded-agg-sm" }),
451
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
452
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-[88%] rounded-agg-sm" }),
453
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-[84%] rounded-agg-sm" }),
454
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-[80%] rounded-agg-sm" }),
455
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-[74%] rounded-agg-sm" })
456
+ ] })
457
+ ] }),
458
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
459
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-3", children: [
460
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
461
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
462
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
463
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
464
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
465
+ ] }),
466
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2 pl-6", children: [
467
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-full rounded-agg-sm" }),
468
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-[92%] rounded-agg-sm" }),
469
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-[34%] rounded-agg-sm" })
470
+ ] })
471
+ ] }),
472
+ [0, 1, 2].map((index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
473
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
474
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-5 w-20 rounded-agg-sm" }),
475
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
476
+ ] }, `settlement-venue-${index}`))
477
+ ] })
478
+ ]
479
+ }
480
+ );
481
+ };
482
+ SettlementSkeletonView.displayName = "SettlementSkeletonView";
483
+
484
+ // src/primitives/skeleton/skeleton.types.ts
485
+ var skeletonViews = {
486
+ eventListItem: "event-list-item",
487
+ eventListItemDetails: "event-list-item-details",
488
+ marketDetailsMinified: "market-details-minified",
489
+ marketDetailsDetailed: "market-details-detailed",
490
+ eventList: "event-list",
491
+ settlement: "settlement",
492
+ placeOrder: "place-order"
493
+ };
494
+
495
+ // src/primitives/skeleton/index.tsx
496
+ var import_jsx_runtime9 = require("react/jsx-runtime");
497
+ var Skeleton = ({ view, className, ariaLabel }) => {
498
+ if (view === skeletonViews.eventListItem) {
499
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(EventListItemSkeletonView, { className, ariaLabel, isStandalone: true });
500
+ }
501
+ if (view === skeletonViews.eventListItemDetails) {
502
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(EventListItemDetailsSkeletonView, { className, ariaLabel });
503
+ }
504
+ if (view === skeletonViews.marketDetailsMinified) {
505
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(MarketDetailsSkeletonView, { className, ariaLabel, isDetailed: false });
506
+ }
507
+ if (view === skeletonViews.marketDetailsDetailed) {
508
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(MarketDetailsSkeletonView, { className, ariaLabel, isDetailed: true });
509
+ }
510
+ if (view === skeletonViews.settlement) {
511
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SettlementSkeletonView, { className, ariaLabel });
512
+ }
513
+ if (view === skeletonViews.placeOrder) {
514
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(PlaceOrderSkeletonView, { className, ariaLabel });
515
+ }
516
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(EventListSkeletonView, { className, ariaLabel });
517
+ };
518
+ Skeleton.displayName = "Skeleton";
519
+ // Annotate the CommonJS export names for ESM import in node:
520
+ 0 && (module.exports = {
521
+ Skeleton,
522
+ skeletonViews
523
+ });
@@ -0,0 +1,10 @@
1
+ import {
2
+ Skeleton,
3
+ skeletonViews
4
+ } from "./chunk-NFYS557L.mjs";
5
+ import "./chunk-YUIZZ6XE.mjs";
6
+ import "./chunk-GC3QIIH7.mjs";
7
+ export {
8
+ Skeleton,
9
+ skeletonViews
10
+ };