@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,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.mjs';
3
+
4
+ type BadgeSize = AvailableSizes;
5
+ type BadgeClassNames = {
6
+ root?: string;
7
+ prefix?: string;
8
+ text?: string;
9
+ suffix?: string;
10
+ };
11
+ interface BadgeProps {
12
+ text: string | number;
13
+ prefix?: ReactNode;
14
+ suffix?: ReactNode;
15
+ size?: BadgeSize;
16
+ classNames?: BadgeClassNames;
17
+ }
18
+
19
+ declare const badgeSizes: BadgeSize[];
20
+
21
+ declare function Badge({ text, prefix, suffix, size, classNames }: BadgeProps): JSX.Element;
22
+ declare namespace Badge {
23
+ var displayName: string;
24
+ }
25
+
26
+ export { Badge, type BadgeClassNames, type BadgeProps, type BadgeSize, badgeSizes };
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.js';
3
+
4
+ type BadgeSize = AvailableSizes;
5
+ type BadgeClassNames = {
6
+ root?: string;
7
+ prefix?: string;
8
+ text?: string;
9
+ suffix?: string;
10
+ };
11
+ interface BadgeProps {
12
+ text: string | number;
13
+ prefix?: ReactNode;
14
+ suffix?: ReactNode;
15
+ size?: BadgeSize;
16
+ classNames?: BadgeClassNames;
17
+ }
18
+
19
+ declare const badgeSizes: BadgeSize[];
20
+
21
+ declare function Badge({ text, prefix, suffix, size, classNames }: BadgeProps): JSX.Element;
22
+ declare namespace Badge {
23
+ var displayName: string;
24
+ }
25
+
26
+ export { Badge, type BadgeClassNames, type BadgeProps, type BadgeSize, badgeSizes };
package/dist/badge.js ADDED
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/primitives/badge/index.tsx
21
+ var badge_exports = {};
22
+ __export(badge_exports, {
23
+ Badge: () => Badge,
24
+ badgeSizes: () => badgeSizes
25
+ });
26
+ module.exports = __toCommonJS(badge_exports);
27
+
28
+ // src/shared/utils.ts
29
+ var cn = (...values) => values.filter(Boolean).join(" ");
30
+
31
+ // src/primitives/badge/badge.constants.ts
32
+ var badgeSizes = ["xxs", "xs", "s", "m", "l", "xl", "xxl"];
33
+ var badgeSizeClasses = {
34
+ xxs: cn("h-4 px-1.5 gap-0.5", "text-agg-xs leading-agg-3"),
35
+ xs: cn("h-5 px-2 gap-1", "text-agg-xs leading-agg-4"),
36
+ s: cn("h-6 px-2.5 gap-1", "text-agg-sm leading-agg-5"),
37
+ m: cn("h-7 px-3 gap-1.5", "text-agg-sm leading-agg-5"),
38
+ l: cn("h-8 px-3.5 gap-1.5", "text-agg-base leading-agg-6"),
39
+ xl: cn("h-9 px-4 gap-2", "text-agg-lg leading-agg-7"),
40
+ xxl: cn("h-10 px-5 gap-2", "text-agg-xl leading-agg-7")
41
+ };
42
+ var baseBadgeClasses = cn(
43
+ "inline-flex items-center justify-center rounded-agg-full font-agg-sans",
44
+ "bg-agg-secondary-hover text-agg-foreground whitespace-nowrap font-agg-normal"
45
+ );
46
+
47
+ // src/primitives/badge/index.tsx
48
+ var import_jsx_runtime = require("react/jsx-runtime");
49
+ function Badge({ text, prefix, suffix, size = "m", classNames }) {
50
+ const resolvedText = `${text}`;
51
+ const resolvedAriaLabel = resolvedText.length > 0 ? resolvedText : void 0;
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
53
+ "span",
54
+ {
55
+ "aria-label": resolvedAriaLabel,
56
+ className: cn(baseBadgeClasses, badgeSizeClasses[size], classNames == null ? void 0 : classNames.root),
57
+ children: [
58
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: classNames == null ? void 0 : classNames.prefix, children: prefix }) : null,
59
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: cn("truncate", classNames == null ? void 0 : classNames.text), children: text }),
60
+ suffix ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: classNames == null ? void 0 : classNames.suffix, children: suffix }) : null
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ Badge.displayName = "Badge";
66
+ // Annotate the CommonJS export names for ESM import in node:
67
+ 0 && (module.exports = {
68
+ Badge,
69
+ badgeSizes
70
+ });
package/dist/badge.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ Badge,
3
+ badgeSizes
4
+ } from "./chunk-MG243DSX.mjs";
5
+ import "./chunk-GC3QIIH7.mjs";
6
+ export {
7
+ Badge,
8
+ badgeSizes
9
+ };
@@ -0,0 +1,20 @@
1
+ import { ButtonHTMLAttributes, ReactNode, FC } from 'react';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.mjs';
3
+
4
+ type ButtonVariant = "primary" | "secondary" | "tertiary";
5
+ type ButtonSize = AvailableSizes;
6
+ type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
7
+ children: ReactNode;
8
+ variant?: ButtonVariant;
9
+ size?: ButtonSize;
10
+ isLoading?: boolean;
11
+ prefix?: JSX.Element | FC | ReactNode;
12
+ suffix?: JSX.Element | FC | ReactNode;
13
+ };
14
+
15
+ declare const Button: {
16
+ ({ children, variant, size, isLoading, disabled, prefix, suffix, type, className, "aria-label": ariaLabel, ...other }: ButtonProps): JSX.Element;
17
+ displayName: string;
18
+ };
19
+
20
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant };
@@ -0,0 +1,20 @@
1
+ import { ButtonHTMLAttributes, ReactNode, FC } from 'react';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.js';
3
+
4
+ type ButtonVariant = "primary" | "secondary" | "tertiary";
5
+ type ButtonSize = AvailableSizes;
6
+ type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
7
+ children: ReactNode;
8
+ variant?: ButtonVariant;
9
+ size?: ButtonSize;
10
+ isLoading?: boolean;
11
+ prefix?: JSX.Element | FC | ReactNode;
12
+ suffix?: JSX.Element | FC | ReactNode;
13
+ };
14
+
15
+ declare const Button: {
16
+ ({ children, variant, size, isLoading, disabled, prefix, suffix, type, className, "aria-label": ariaLabel, ...other }: ButtonProps): JSX.Element;
17
+ displayName: string;
18
+ };
19
+
20
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant };
package/dist/button.js ADDED
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/primitives/button/index.tsx
50
+ var button_exports = {};
51
+ __export(button_exports, {
52
+ Button: () => Button
53
+ });
54
+ module.exports = __toCommonJS(button_exports);
55
+ var import_hooks = 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/icon/icon.constants.ts
66
+ var iconSizeClasses = {
67
+ xxs: "h-2 w-2",
68
+ xs: "h-3 w-3",
69
+ s: "h-4 w-4",
70
+ m: "h-6 w-6",
71
+ l: "h-8 w-8",
72
+ xl: "h-10 w-10",
73
+ xxl: "h-12 w-12"
74
+ };
75
+
76
+ // src/primitives/button/button.constants.ts
77
+ var sizeClasses = {
78
+ xxs: cn("h-6 px-2.5 gap-1", "text-agg-xs leading-agg-4"),
79
+ xs: cn("h-7 px-3 gap-1", "text-agg-xs leading-agg-4"),
80
+ s: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
81
+ m: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
82
+ l: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6"),
83
+ xl: cn("h-11 px-7 gap-2", "text-agg-base leading-agg-6"),
84
+ xxl: cn("h-12 px-8 gap-2", "text-agg-base leading-agg-6")
85
+ };
86
+ var iconSizeClasses2 = {
87
+ xxs: iconSizeClasses.xs,
88
+ xs: iconSizeClasses.xs,
89
+ s: iconSizeClasses.s,
90
+ m: iconSizeClasses.s,
91
+ l: iconSizeClasses.s,
92
+ xl: iconSizeClasses.s,
93
+ xxl: iconSizeClasses.s
94
+ };
95
+ var iconSlotClasses = {
96
+ xxs: "[&_svg]:h-3 [&_svg]:w-3",
97
+ xs: "[&_svg]:h-3 [&_svg]:w-3",
98
+ s: "[&_svg]:h-4 [&_svg]:w-4",
99
+ m: "[&_svg]:h-4 [&_svg]:w-4",
100
+ l: "[&_svg]:h-4 [&_svg]:w-4",
101
+ xl: "[&_svg]:h-4 [&_svg]:w-4",
102
+ xxl: "[&_svg]:h-4 [&_svg]:w-4"
103
+ };
104
+ var variantClasses = {
105
+ primary: cn(
106
+ "bg-agg-primary text-agg-on-primary",
107
+ "hover:bg-agg-primary-hover",
108
+ "disabled:bg-agg-separator disabled:text-agg-on-primary",
109
+ "focus-visible:ring-agg-primary-hover"
110
+ ),
111
+ secondary: cn(
112
+ "border border-agg-separator bg-agg-secondary text-agg-foreground",
113
+ "hover:bg-agg-secondary-hover",
114
+ "disabled:bg-agg-secondary disabled:text-agg-muted-foreground disabled:border-agg-separator",
115
+ "focus-visible:ring-agg-separator"
116
+ ),
117
+ tertiary: cn(
118
+ "bg-transparent text-agg-foreground",
119
+ "hover:bg-agg-secondary-hover",
120
+ "disabled:bg-transparent disabled:text-agg-muted-foreground",
121
+ "focus-visible:ring-agg-separator"
122
+ )
123
+ };
124
+ var baseButtonClasses = cn(
125
+ "cursor-pointer disabled:cursor-not-allowed",
126
+ "inline-flex items-center justify-center rounded-agg-full font-agg-sans font-agg-bold text-center",
127
+ "whitespace-nowrap",
128
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary"
129
+ );
130
+
131
+ // src/primitives/button/index.tsx
132
+ var import_jsx_runtime = require("react/jsx-runtime");
133
+ var Button = (_a) => {
134
+ var _b = _a, {
135
+ children,
136
+ variant = "primary",
137
+ size = "m",
138
+ isLoading = false,
139
+ disabled,
140
+ prefix,
141
+ suffix,
142
+ type = "button",
143
+ className,
144
+ "aria-label": ariaLabel
145
+ } = _b, other = __objRest(_b, [
146
+ "children",
147
+ "variant",
148
+ "size",
149
+ "isLoading",
150
+ "disabled",
151
+ "prefix",
152
+ "suffix",
153
+ "type",
154
+ "className",
155
+ "aria-label"
156
+ ]);
157
+ const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
158
+ const isDisabled = disabled || isLoading;
159
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
160
+ "button",
161
+ __spreadProps(__spreadValues({
162
+ type,
163
+ className: cn(
164
+ baseButtonClasses,
165
+ getMotionClassName(enableAnimations, "transition-colors"),
166
+ sizeClasses[size],
167
+ iconSlotClasses[size],
168
+ variantClasses[variant],
169
+ className
170
+ ),
171
+ disabled: isDisabled,
172
+ "aria-busy": isLoading,
173
+ "aria-label": ariaLabel
174
+ }, other), {
175
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
176
+ "span",
177
+ {
178
+ className: cn(
179
+ "inline-block rounded-agg-full border-2 border-current border-r-transparent",
180
+ getMotionClassName(enableAnimations, "animate-spin"),
181
+ iconSizeClasses2[size]
182
+ ),
183
+ "aria-hidden": "true"
184
+ }
185
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
186
+ prefix != null ? prefix : null,
187
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children }),
188
+ suffix != null ? suffix : null
189
+ ] })
190
+ })
191
+ );
192
+ };
193
+ Button.displayName = "Button";
194
+ // Annotate the CommonJS export names for ESM import in node:
195
+ 0 && (module.exports = {
196
+ Button
197
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ Button
3
+ } from "./chunk-J6L5BLKX.mjs";
4
+ import "./chunk-C4OI72SM.mjs";
5
+ import "./chunk-GC3QIIH7.mjs";
6
+ export {
7
+ Button
8
+ };
@@ -0,0 +1,8 @@
1
+ type CardProps = React.HTMLAttributes<HTMLDivElement>;
2
+
3
+ declare const Card: {
4
+ ({ className, ...props }: CardProps): JSX.Element;
5
+ displayName: string;
6
+ };
7
+
8
+ export { Card, type CardProps };
package/dist/card.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ type CardProps = React.HTMLAttributes<HTMLDivElement>;
2
+
3
+ declare const Card: {
4
+ ({ className, ...props }: CardProps): JSX.Element;
5
+ displayName: string;
6
+ };
7
+
8
+ export { Card, type CardProps };
package/dist/card.js ADDED
@@ -0,0 +1,84 @@
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/card/index.tsx
47
+ var card_exports = {};
48
+ __export(card_exports, {
49
+ Card: () => Card
50
+ });
51
+ module.exports = __toCommonJS(card_exports);
52
+ var import_hooks = require("@agg-market/hooks");
53
+
54
+ // src/shared/utils.ts
55
+ var cn = (...values) => values.filter(Boolean).join(" ");
56
+ var getMotionClassName = (enabled, ...values) => {
57
+ if (!enabled)
58
+ return void 0;
59
+ return cn(...values);
60
+ };
61
+
62
+ // src/primitives/card/index.tsx
63
+ var import_jsx_runtime = require("react/jsx-runtime");
64
+ var Card = (_a) => {
65
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
66
+ const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
67
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
68
+ "div",
69
+ __spreadValues({
70
+ className: cn(
71
+ "flex w-full flex-col font-agg-sans",
72
+ "rounded-agg-xl border border-agg-separator",
73
+ "bg-agg-secondary text-agg-foreground shadow-agg-card",
74
+ getMotionClassName(enableAnimations, "transition-shadow hover:shadow-agg-card-hover"),
75
+ className
76
+ )
77
+ }, props)
78
+ );
79
+ };
80
+ Card.displayName = "Card";
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ Card
84
+ });
package/dist/card.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ Card
3
+ } from "./chunk-YUIZZ6XE.mjs";
4
+ import "./chunk-GC3QIIH7.mjs";
5
+ export {
6
+ Card
7
+ };
@@ -0,0 +1,40 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type LineChartPoint = {
4
+ time: number;
5
+ value: number;
6
+ };
7
+ type LineChartSeries = {
8
+ id: string;
9
+ color: string;
10
+ points: LineChartPoint[];
11
+ lineWidth?: number;
12
+ lineStyle?: "solid" | "dotted" | "dashed";
13
+ };
14
+ type LineChartSeriesControlsRenderProps = {
15
+ series: LineChartSeries[];
16
+ activeSeriesId: string;
17
+ handleSeriesChange: (seriesId: string) => void;
18
+ };
19
+ type LineChartProps = {
20
+ series: LineChartSeries[];
21
+ height?: number;
22
+ width?: number | string;
23
+ classNames?: LineChartClassNames;
24
+ isLoading?: boolean;
25
+ showSeriesControls?: boolean;
26
+ renderSeriesControls?: (props: LineChartSeriesControlsRenderProps) => ReactNode;
27
+ };
28
+ type LineChartClassNames = {
29
+ root?: string;
30
+ controls?: string;
31
+ defaultSeriesSwitch?: string;
32
+ chartViewport?: string;
33
+ liveline?: string;
34
+ };
35
+ declare const LineChart: {
36
+ ({ series, height, width, classNames, isLoading, showSeriesControls, renderSeriesControls, }: LineChartProps): JSX.Element;
37
+ displayName: string;
38
+ };
39
+
40
+ export { LineChart, type LineChartClassNames, type LineChartPoint, type LineChartProps, type LineChartSeries, type LineChartSeriesControlsRenderProps };
@@ -0,0 +1,40 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type LineChartPoint = {
4
+ time: number;
5
+ value: number;
6
+ };
7
+ type LineChartSeries = {
8
+ id: string;
9
+ color: string;
10
+ points: LineChartPoint[];
11
+ lineWidth?: number;
12
+ lineStyle?: "solid" | "dotted" | "dashed";
13
+ };
14
+ type LineChartSeriesControlsRenderProps = {
15
+ series: LineChartSeries[];
16
+ activeSeriesId: string;
17
+ handleSeriesChange: (seriesId: string) => void;
18
+ };
19
+ type LineChartProps = {
20
+ series: LineChartSeries[];
21
+ height?: number;
22
+ width?: number | string;
23
+ classNames?: LineChartClassNames;
24
+ isLoading?: boolean;
25
+ showSeriesControls?: boolean;
26
+ renderSeriesControls?: (props: LineChartSeriesControlsRenderProps) => ReactNode;
27
+ };
28
+ type LineChartClassNames = {
29
+ root?: string;
30
+ controls?: string;
31
+ defaultSeriesSwitch?: string;
32
+ chartViewport?: string;
33
+ liveline?: string;
34
+ };
35
+ declare const LineChart: {
36
+ ({ series, height, width, classNames, isLoading, showSeriesControls, renderSeriesControls, }: LineChartProps): JSX.Element;
37
+ displayName: string;
38
+ };
39
+
40
+ export { LineChart, type LineChartClassNames, type LineChartPoint, type LineChartProps, type LineChartSeries, type LineChartSeriesControlsRenderProps };