@agg-market/ui 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/badge.d.mts +5 -3
  2. package/dist/badge.d.ts +5 -3
  3. package/dist/badge.js +52 -12
  4. package/dist/badge.mjs +1 -1
  5. package/dist/button.d.mts +2 -2
  6. package/dist/button.d.ts +2 -2
  7. package/dist/button.js +19 -34
  8. package/dist/button.mjs +2 -2
  9. package/dist/card.d.mts +4 -2
  10. package/dist/card.d.ts +4 -2
  11. package/dist/card.js +8 -4
  12. package/dist/card.mjs +1 -1
  13. package/dist/chart.js +14 -7
  14. package/dist/chart.mjs +2 -2
  15. package/dist/{chunk-ZYREURXK.mjs → chunk-2MJY6RVY.mjs} +35 -35
  16. package/dist/{chunk-P23GR7NX.mjs → chunk-422MCIXV.mjs} +1 -1
  17. package/dist/chunk-4KMFDCAH.mjs +371 -0
  18. package/dist/{chunk-HM3CGN32.mjs → chunk-5GDNWQZS.mjs} +46 -46
  19. package/dist/{chunk-VIP7HSOU.mjs → chunk-5K7VXAYM.mjs} +4 -0
  20. package/dist/{chunk-BJNHDIDW.mjs → chunk-6425RRBI.mjs} +4 -4
  21. package/dist/{chunk-O2XH4A3G.mjs → chunk-7NISYVSJ.mjs} +22 -22
  22. package/dist/{chunk-MXBPDNMC.mjs → chunk-BEDUFOIG.mjs} +95 -22
  23. package/dist/{chunk-VC7LTPQD.mjs → chunk-BN5VVHNV.mjs} +2 -2
  24. package/dist/{chunk-JRS2M5GY.mjs → chunk-CTVMT3VL.mjs} +13 -6
  25. package/dist/{chunk-USLTNDJA.mjs → chunk-D5FTFSKL.mjs} +8 -8
  26. package/dist/{chunk-BLSHXIAH.mjs → chunk-D7JTOGYP.mjs} +6 -11
  27. package/dist/{chunk-W2DMBW4E.mjs → chunk-DL7STJQ5.mjs} +61 -33
  28. package/dist/chunk-ERGNR6UQ.mjs +67 -0
  29. package/dist/chunk-FO263M3V.mjs +10 -0
  30. package/dist/{chunk-3O4U3E5I.mjs → chunk-FO2QCB4Z.mjs} +8 -4
  31. package/dist/{chunk-OGI343OV.mjs → chunk-IGPNIM2B.mjs} +3 -2
  32. package/dist/chunk-K6IJ4WBM.mjs +67 -0
  33. package/dist/{chunk-PGSPYQOW.mjs → chunk-KAGYJ4XT.mjs} +17 -27
  34. package/dist/{chunk-RGZQHSNJ.mjs → chunk-KCPDVBIZ.mjs} +26 -17
  35. package/dist/{chunk-ZHKMDK5M.mjs → chunk-KFOATMAE.mjs} +87 -87
  36. package/dist/{chunk-H4UIBDL2.mjs → chunk-LK5D3ZTK.mjs} +15 -15
  37. package/dist/{chunk-VUDJ3PYM.mjs → chunk-O46OFVH6.mjs} +40 -16
  38. package/dist/{chunk-RXACBTON.mjs → chunk-OA2IZ3VW.mjs} +16 -22
  39. package/dist/{chunk-F236MLT6.mjs → chunk-PZTHM6WG.mjs} +13 -10
  40. package/dist/{chunk-XELWY7SO.mjs → chunk-QYZKC7KG.mjs} +137 -104
  41. package/dist/{chunk-LWTQD345.mjs → chunk-S3H63TQ5.mjs} +57 -312
  42. package/dist/{chunk-MNSHWA6M.mjs → chunk-TA7LKYKP.mjs} +9 -8
  43. package/dist/{chunk-JH5VMNDL.mjs → chunk-V52WSZHQ.mjs} +8 -7
  44. package/dist/chunk-YJA5VQW6.mjs +167 -0
  45. package/dist/{chunk-EXF4SESB.mjs → chunk-ZFMCCBP6.mjs} +1 -1
  46. package/dist/connect-button.js +51 -73
  47. package/dist/connect-button.mjs +6 -6
  48. package/dist/deposit-modal.js +171 -177
  49. package/dist/deposit-modal.mjs +7 -7
  50. package/dist/event-list-item-details.js +222 -198
  51. package/dist/event-list-item-details.mjs +11 -11
  52. package/dist/event-list-item.js +172 -114
  53. package/dist/event-list-item.mjs +8 -8
  54. package/dist/event-list.js +391 -507
  55. package/dist/event-list.mjs +11 -11
  56. package/dist/event-market-page.js +826 -764
  57. package/dist/event-market-page.mjs +19 -19
  58. package/dist/hello-world.js +28 -16
  59. package/dist/hello-world.mjs +2 -2
  60. package/dist/home-page.js +395 -511
  61. package/dist/home-page.mjs +12 -12
  62. package/dist/icon.d.mts +1 -1
  63. package/dist/icon.d.ts +1 -1
  64. package/dist/icon.js +15 -17
  65. package/dist/icon.mjs +2 -2
  66. package/dist/index.d.mts +4 -4
  67. package/dist/index.d.ts +4 -4
  68. package/dist/index.js +1135 -944
  69. package/dist/index.mjs +34 -32
  70. package/dist/loading-icon.d.mts +1 -1
  71. package/dist/loading-icon.d.ts +1 -1
  72. package/dist/loading-icon.js +5 -9
  73. package/dist/loading-icon.mjs +2 -2
  74. package/dist/market-details.d.mts +2 -2
  75. package/dist/market-details.d.ts +2 -2
  76. package/dist/market-details.js +357 -551
  77. package/dist/market-details.mjs +13 -13
  78. package/dist/modal.js +4 -0
  79. package/dist/modal.mjs +1 -1
  80. package/dist/onboarding-modal.js +63 -67
  81. package/dist/onboarding-modal.mjs +6 -6
  82. package/dist/place-order.js +231 -466
  83. package/dist/place-order.mjs +9 -9
  84. package/dist/profile-modal.js +52 -65
  85. package/dist/profile-modal.mjs +6 -6
  86. package/dist/search.d.mts +2 -2
  87. package/dist/search.d.ts +2 -2
  88. package/dist/search.js +28 -34
  89. package/dist/search.mjs +4 -4
  90. package/dist/select.js +104 -99
  91. package/dist/select.mjs +3 -3
  92. package/dist/settlement.js +279 -59
  93. package/dist/settlement.mjs +6 -6
  94. package/dist/skeleton.js +15 -10
  95. package/dist/skeleton.mjs +2 -2
  96. package/dist/styles.css +1 -1
  97. package/dist/switch-button.js +13 -6
  98. package/dist/switch-button.mjs +1 -1
  99. package/dist/tabs.d.mts +8 -4
  100. package/dist/tabs.d.ts +8 -4
  101. package/dist/tabs.js +163 -420
  102. package/dist/tabs.mjs +4 -4
  103. package/dist/tailwind.css +1 -1
  104. package/dist/types-BVj9ky9P.d.mts +3 -0
  105. package/dist/types-BVj9ky9P.d.ts +3 -0
  106. package/dist/typography.d.mts +4 -2
  107. package/dist/typography.d.ts +4 -2
  108. package/dist/typography.js +49 -18
  109. package/dist/typography.mjs +5 -3
  110. package/dist/user-profile-page.d.mts +2 -2
  111. package/dist/user-profile-page.d.ts +2 -2
  112. package/dist/user-profile-page.js +200 -474
  113. package/dist/user-profile-page.mjs +7 -7
  114. package/dist/venue-logo.d.mts +2 -2
  115. package/dist/venue-logo.d.ts +2 -2
  116. package/dist/venue-logo.js +6 -11
  117. package/dist/venue-logo.mjs +1 -1
  118. package/dist/{venue-logo.types-BSAuY84j.d.ts → venue-logo.types-D8Cu2rAm.d.ts} +1 -1
  119. package/dist/{venue-logo.types-DACqcTvY.d.mts → venue-logo.types-HRf1yBLD.d.mts} +1 -1
  120. package/dist/withdraw-modal.js +72 -85
  121. package/dist/withdraw-modal.mjs +6 -6
  122. package/package.json +1 -1
  123. package/dist/chunk-AEMAY3MR.mjs +0 -44
  124. package/dist/chunk-DYEWXEEY.mjs +0 -37
  125. package/dist/chunk-QFQHD2V6.mjs +0 -146
  126. package/dist/chunk-ZDF7QP4G.mjs +0 -160
  127. package/dist/chunk-ZVBVGWSP.mjs +0 -15
  128. package/dist/types-Bed6Q0EK.d.mts +0 -3
  129. package/dist/types-Bed6Q0EK.d.ts +0 -3
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  UserProfilePage
3
- } from "./chunk-O2XH4A3G.mjs";
4
- import "./chunk-LWTQD345.mjs";
5
- import "./chunk-ZDF7QP4G.mjs";
6
- import "./chunk-BLSHXIAH.mjs";
7
- import "./chunk-F236MLT6.mjs";
3
+ } from "./chunk-7NISYVSJ.mjs";
4
+ import "./chunk-S3H63TQ5.mjs";
5
+ import "./chunk-YJA5VQW6.mjs";
6
+ import "./chunk-D7JTOGYP.mjs";
7
+ import "./chunk-PZTHM6WG.mjs";
8
8
  import "./chunk-NDG43KGL.mjs";
9
9
  import "./chunk-BNDFQPHF.mjs";
10
- import "./chunk-PGSPYQOW.mjs";
11
- import "./chunk-ZVBVGWSP.mjs";
10
+ import "./chunk-KAGYJ4XT.mjs";
11
+ import "./chunk-FO263M3V.mjs";
12
12
  import "./chunk-GJ4U5NCE.mjs";
13
13
  export {
14
14
  UserProfilePage
@@ -1,6 +1,6 @@
1
- import { V as VenueLogoName, a as VenueLogoProps } from './venue-logo.types-DACqcTvY.mjs';
1
+ import { V as VenueLogoName, a as VenueLogoProps } from './venue-logo.types-HRf1yBLD.mjs';
2
2
  import '@agg-market/hooks';
3
- import './types-Bed6Q0EK.mjs';
3
+ import './types-BVj9ky9P.mjs';
4
4
 
5
5
  declare const venueLogoNames: VenueLogoName[];
6
6
 
@@ -1,6 +1,6 @@
1
- import { V as VenueLogoName, a as VenueLogoProps } from './venue-logo.types-BSAuY84j.js';
1
+ import { V as VenueLogoName, a as VenueLogoProps } from './venue-logo.types-D8Cu2rAm.js';
2
2
  import '@agg-market/hooks';
3
- import './types-Bed6Q0EK.js';
3
+ import './types-BVj9ky9P.js';
4
4
 
5
5
  declare const venueLogoNames: VenueLogoName[];
6
6
 
@@ -65,7 +65,7 @@ var getIconA11yProps = (title) => ({
65
65
  });
66
66
 
67
67
  // src/primitives/venue-logo/logo-props.ts
68
- var DEFAULT_MONOCHROME_COLOR = "#000000";
68
+ var DEFAULT_MONOCHROME_COLOR = "currentColor";
69
69
  var resolveLogoPrimaryColor = ({
70
70
  brandColor,
71
71
  isColor = true,
@@ -263,14 +263,9 @@ var venueLogoRegistry = {
263
263
  };
264
264
  var venueLogoNames = Object.keys(venueLogoRegistry);
265
265
  var sizeClasses = {
266
- xxs: "h-2 w-2",
267
- xs: "h-3 w-3",
268
- s: "h-4 w-4",
269
- ms: "h-5 w-5",
270
- m: "h-6 w-6",
271
- l: "h-8 w-8",
272
- xl: "h-10 w-10",
273
- xxl: "h-12 w-12"
266
+ small: "h-4 w-4",
267
+ medium: "h-6 w-6",
268
+ large: "h-8 w-8"
274
269
  };
275
270
 
276
271
  // src/primitives/venue-logo/index.tsx
@@ -280,7 +275,7 @@ var VenueLogo = ({
280
275
  isColor = true,
281
276
  isMonochromatic = false,
282
277
  color,
283
- size = "m",
278
+ size = "medium",
284
279
  className,
285
280
  ariaLabel,
286
281
  title
@@ -292,7 +287,7 @@ var VenueLogo = ({
292
287
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
293
288
  Component,
294
289
  {
295
- className: cn("shrink-0", sizeClass, className),
290
+ className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
296
291
  isColor: resolvedIsColor,
297
292
  color,
298
293
  "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VenueLogo,
3
3
  venueLogoNames
4
- } from "./chunk-BLSHXIAH.mjs";
4
+ } from "./chunk-D7JTOGYP.mjs";
5
5
  import "./chunk-BNDFQPHF.mjs";
6
6
  import "./chunk-GJ4U5NCE.mjs";
7
7
  export {
@@ -1,5 +1,5 @@
1
1
  import { VenueMarket } from '@agg-market/hooks';
2
- import { A as AvailableSizes } from './types-Bed6Q0EK.js';
2
+ import { A as AvailableSizes } from './types-BVj9ky9P.js';
3
3
 
4
4
  type AdditionalVenue = "opinion" | "probable";
5
5
  type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
@@ -1,5 +1,5 @@
1
1
  import { VenueMarket } from '@agg-market/hooks';
2
- import { A as AvailableSizes } from './types-Bed6Q0EK.mjs';
2
+ import { A as AvailableSizes } from './types-BVj9ky9P.mjs';
3
3
 
4
4
  type AdditionalVenue = "opinion" | "probable";
5
5
  type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
@@ -173,6 +173,7 @@ var ModalContainer = ({
173
173
  Dialog.Content,
174
174
  {
175
175
  className: cn(
176
+ "group/agg-modal",
176
177
  "fixed inset-0 z-agg-modal",
177
178
  "flex items-center justify-center p-4",
178
179
  "sm:p-5",
@@ -225,6 +226,7 @@ var ModalHeader = ({
225
226
  "div",
226
227
  {
227
228
  className: cn(
229
+ "group/agg-modal-header",
228
230
  "flex flex-col",
229
231
  "sticky top-0 z-20",
230
232
  "bg-agg-secondary",
@@ -300,6 +302,7 @@ var ModalBody = ({ children, classNames }) => {
300
302
  "div",
301
303
  {
302
304
  className: cn(
305
+ "group/agg-modal-body",
303
306
  "grow overflow-y-auto",
304
307
  "px-4 py-6",
305
308
  "sm:p-8",
@@ -320,6 +323,7 @@ var ModalFooter = ({
320
323
  "div",
321
324
  {
322
325
  className: cn(
326
+ "group/agg-modal-footer",
323
327
  "sticky bottom-0",
324
328
  "bg-agg-secondary",
325
329
  "flex h-[73px] w-full flex-row items-center justify-between gap-3",
@@ -336,7 +340,7 @@ Modal.Footer = ModalFooter;
336
340
  Modal.displayName = "Modal";
337
341
 
338
342
  // src/primitives/venue-logo/logo-props.ts
339
- var DEFAULT_MONOCHROME_COLOR = "#000000";
343
+ var DEFAULT_MONOCHROME_COLOR = "currentColor";
340
344
  var resolveLogoPrimaryColor = ({
341
345
  brandColor,
342
346
  isColor = true,
@@ -540,14 +544,9 @@ var venueLogoLabels = {
540
544
  };
541
545
  var venueLogoNames = Object.keys(venueLogoRegistry);
542
546
  var sizeClasses = {
543
- xxs: "h-2 w-2",
544
- xs: "h-3 w-3",
545
- s: "h-4 w-4",
546
- ms: "h-5 w-5",
547
- m: "h-6 w-6",
548
- l: "h-8 w-8",
549
- xl: "h-10 w-10",
550
- xxl: "h-12 w-12"
547
+ small: "h-4 w-4",
548
+ medium: "h-6 w-6",
549
+ large: "h-8 w-8"
551
550
  };
552
551
 
553
552
  // src/withdraw/withdraw-modal.constants.ts
@@ -559,43 +558,26 @@ var import_hooks2 = require("@agg-market/hooks");
559
558
 
560
559
  // src/primitives/icon/icon.constants.ts
561
560
  var iconSizeClasses = {
562
- xxs: "h-2 w-2",
563
- xs: "h-3 w-3",
564
- s: "h-4 w-4",
565
- ms: "h-5 w-5",
566
- m: "h-6 w-6",
567
- l: "h-8 w-8",
568
- xl: "h-10 w-10",
569
- xxl: "h-12 w-12"
561
+ small: "h-4 w-4",
562
+ medium: "h-6 w-6",
563
+ large: "h-8 w-8"
570
564
  };
571
565
 
572
566
  // src/primitives/button/button.constants.ts
573
567
  var sizeClasses2 = {
574
- xxs: cn("h-6 px-2.5 gap-1", "text-agg-xs leading-agg-4"),
575
- xs: cn("h-7 px-3 gap-1", "text-agg-xs leading-agg-4"),
576
- s: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
577
- m: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
578
- l: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6"),
579
- xl: cn("h-11 px-7 gap-2", "text-agg-base leading-agg-6"),
580
- xxl: cn("h-12 px-8 gap-2", "text-agg-base leading-agg-6")
568
+ small: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
569
+ medium: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
570
+ large: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6")
581
571
  };
582
572
  var iconSizeClasses2 = {
583
- xxs: iconSizeClasses.xs,
584
- xs: iconSizeClasses.xs,
585
- s: iconSizeClasses.s,
586
- m: iconSizeClasses.s,
587
- l: iconSizeClasses.s,
588
- xl: iconSizeClasses.s,
589
- xxl: iconSizeClasses.s
573
+ small: iconSizeClasses.small,
574
+ medium: iconSizeClasses.small,
575
+ large: iconSizeClasses.small
590
576
  };
591
577
  var iconSlotClasses = {
592
- xxs: "[&_svg]:h-3 [&_svg]:w-3",
593
- xs: "[&_svg]:h-3 [&_svg]:w-3",
594
- s: "[&_svg]:h-4 [&_svg]:w-4",
595
- m: "[&_svg]:h-4 [&_svg]:w-4",
596
- l: "[&_svg]:h-4 [&_svg]:w-4",
597
- xl: "[&_svg]:h-4 [&_svg]:w-4",
598
- xxl: "[&_svg]:h-4 [&_svg]:w-4"
578
+ small: "[&_svg]:h-4 [&_svg]:w-4",
579
+ medium: "[&_svg]:h-4 [&_svg]:w-4",
580
+ large: "[&_svg]:h-4 [&_svg]:w-4"
599
581
  };
600
582
  var variantClasses = {
601
583
  primary: cn(
@@ -611,10 +593,11 @@ var variantClasses = {
611
593
  "focus-visible:ring-agg-separator"
612
594
  ),
613
595
  tertiary: cn(
614
- "bg-transparent text-agg-foreground",
615
- "hover:bg-agg-secondary-hover",
596
+ "bg-transparent text-agg-primary",
597
+ "hover:text-agg-primary-hover",
616
598
  "disabled:bg-transparent disabled:text-agg-muted-foreground",
617
- "focus-visible:ring-agg-separator"
599
+ "focus-visible:ring-agg-separator",
600
+ "px-0! py-0! h-fit!"
618
601
  )
619
602
  };
620
603
  var baseButtonClasses = cn(
@@ -630,7 +613,7 @@ var Button = (_a) => {
630
613
  var _b = _a, {
631
614
  children,
632
615
  variant = "primary",
633
- size = "m",
616
+ size = "medium",
634
617
  isLoading = false,
635
618
  disabled,
636
619
  prefix,
@@ -657,8 +640,9 @@ var Button = (_a) => {
657
640
  __spreadProps(__spreadValues({
658
641
  type,
659
642
  className: cn(
643
+ "group/agg-button",
660
644
  baseButtonClasses,
661
- getMotionClassName(enableAnimations, "transition-colors"),
645
+ getMotionClassName(enableAnimations, "transition-colors duration-200 ease-in-out"),
662
646
  sizeClasses2[size],
663
647
  iconSlotClasses[size],
664
648
  variantClasses[variant],
@@ -696,7 +680,7 @@ var VenueLogo = ({
696
680
  isColor = true,
697
681
  isMonochromatic = false,
698
682
  color,
699
- size = "m",
683
+ size = "medium",
700
684
  className,
701
685
  ariaLabel,
702
686
  title
@@ -708,7 +692,7 @@ var VenueLogo = ({
708
692
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
709
693
  Component,
710
694
  {
711
- className: cn("shrink-0", sizeClass, className),
695
+ className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
712
696
  isColor: resolvedIsColor,
713
697
  color,
714
698
  "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
@@ -773,14 +757,10 @@ var ArrowsToDotIcon = (_a) => {
773
757
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
774
758
  "path",
775
759
  {
776
- d: "M8 2V5M8 11V14M2 8H5M11 8H14M3.76 3.76L5.9 5.9M10.1 10.1L12.24 12.24M12.24 3.76L10.1 5.9M5.9 10.1L3.76 12.24",
777
- stroke: "currentColor",
778
- strokeWidth: "1.25",
779
- strokeLinecap: "round",
780
- strokeLinejoin: "round"
760
+ d: "M8 6.66667C8.73667 6.66667 9.33333 7.26333 9.33333 8C9.33333 8.73667 8.73667 9.33333 8 9.33333C7.26333 9.33333 6.66667 8.73667 6.66667 8C6.66667 7.26333 7.26333 6.66667 8 6.66667ZM5.27867 7.05733L3.39267 5.17133C3.132 4.91067 2.71067 4.91067 2.45 5.17133C2.18933 5.432 2.18933 5.854 2.45 6.114L3.67467 7.33333H0.666667C0.298 7.33333 0 7.632 0 8C0 8.368 0.298 8.66667 0.666667 8.66667H3.662L2.44867 9.88667C2.18867 10.148 2.19 10.5693 2.45133 10.8293C2.71267 11.0893 3.13467 11.088 3.394 10.8267L5.27933 8.93133C5.79467 8.41467 5.79467 7.574 5.27933 7.05667L5.27867 7.05733ZM7.068 5.278C7.56133 5.79267 8.45 5.79267 8.94267 5.278L10.828 3.392C11.0887 3.13133 11.0887 2.70933 10.828 2.44933C10.5673 2.18867 10.146 2.18867 9.88533 2.44933L8.66667 3.674V0.666667C8.66667 0.298667 8.36867 0 8 0C7.63133 0 7.33333 0.298667 7.33333 0.666667V3.662L6.11333 2.44867C5.852 2.18867 5.43067 2.19 5.17067 2.45133C4.91067 2.71267 4.912 3.13467 5.17333 3.394L7.068 5.278ZM8.94267 10.7213C8.42667 10.2053 7.58533 10.2053 7.06867 10.72L5.17267 12.606C4.91133 12.866 4.91 13.2873 5.17 13.5487C5.42933 13.8093 5.85067 13.8113 6.11267 13.5513L7.33267 12.3307V15.3333C7.33267 15.702 7.63067 16 7.99933 16C8.368 16 8.666 15.702 8.666 15.3333V12.3307L9.88467 13.55C10.1453 13.8107 10.5667 13.8107 10.8273 13.55C11.088 13.2893 11.088 12.868 10.8273 12.6073L8.94267 10.7213ZM15.3333 7.33333H12.3307L13.55 6.114C13.8107 5.854 13.8107 5.432 13.55 5.17133C13.2893 4.91067 12.868 4.91067 12.6073 5.17133L10.7213 7.05733C10.2053 7.574 10.2047 8.41467 10.72 8.93133L12.606 10.8273C12.866 11.088 13.2873 11.09 13.5487 10.83C13.81 10.57 13.8113 10.1487 13.5513 9.88733L12.3307 8.66733H15.3333C15.702 8.66733 16 8.36867 16 8.00067C16 7.63267 15.702 7.334 15.3333 7.334V7.33333Z",
761
+ fill: "currentColor"
781
762
  }
782
- ),
783
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("circle", { cx: "8", cy: "8", r: "1.5", fill: "currentColor" })
763
+ )
784
764
  ]
785
765
  })
786
766
  );
@@ -1983,7 +1963,7 @@ var Icon = (_a) => {
1983
1963
  var _b = _a, {
1984
1964
  name,
1985
1965
  color,
1986
- size = "m",
1966
+ size = "medium",
1987
1967
  className = "text-agg-primary",
1988
1968
  style
1989
1969
  } = _b, props = __objRest(_b, [
@@ -1996,7 +1976,14 @@ var Icon = (_a) => {
1996
1976
  const Component = iconRegistry[name];
1997
1977
  const resolvedStyle = resolveIconStyle(color, style);
1998
1978
  const resolvedClassName = cn(iconSizeClasses[size], className);
1999
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Component, __spreadValues({ color, className: resolvedClassName, style: resolvedStyle }, props));
1979
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1980
+ Component,
1981
+ __spreadValues({
1982
+ color,
1983
+ className: cn("group/agg-icon", resolvedClassName),
1984
+ style: resolvedStyle
1985
+ }, props)
1986
+ );
2000
1987
  };
2001
1988
  Icon.displayName = "Icon";
2002
1989
 
@@ -2030,19 +2017,19 @@ var VenueRow = ({ venue, onSelect }) => {
2030
2017
  }
2031
2018
  },
2032
2019
  children: [
2033
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(VenueLogo, { venue: venue.venue, size: "xl", className: "rounded-lg" }) }),
2020
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
2034
2021
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex-1 min-w-0", children: [
2035
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-base font-bold text-foreground leading-6", children: displayName }),
2036
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("p", { className: "text-sm text-muted-foreground leading-5", children: [
2022
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
2023
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
2037
2024
  "Balance ",
2038
2025
  formatCompactUsd(venue.balance)
2039
2026
  ] })
2040
2027
  ] }),
2041
- isDisabled ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-sm text-muted-foreground", children: (_b = venue.disabledReason) != null ? _b : "Unavailable" }) }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2028
+ isDisabled ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "agg-type-label text-agg-muted-foreground", children: (_b = venue.disabledReason) != null ? _b : "Unavailable" }) }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2042
2029
  Button,
2043
2030
  {
2044
2031
  variant: "secondary",
2045
- size: "s",
2032
+ size: "small",
2046
2033
  suffix: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ChevronRightIcon, {}),
2047
2034
  onClick: (e) => {
2048
2035
  e.stopPropagation();
@@ -2061,7 +2048,7 @@ var VenueSelectionStep = ({
2061
2048
  }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2062
2049
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Modal.Header, { title: "Withdraw", hideBorder: true }),
2063
2050
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-4", children: [
2064
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-base text-foreground leading-6", children: "Choose where to withdraw funds from:" }),
2051
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to withdraw funds from:" }),
2065
2052
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(VenueRow, { venue, onSelect: onSelectVenue }, venue.venue)) })
2066
2053
  ] }) })
2067
2054
  ] });
@@ -2094,14 +2081,14 @@ var WithdrawMethodCard = ({
2094
2081
  children: [
2095
2082
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
2096
2083
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex-1 min-w-0", children: [
2097
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-base font-bold text-foreground leading-6", children: title }),
2098
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm text-muted-foreground leading-5", children: description })
2084
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
2085
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
2099
2086
  ] }),
2100
2087
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2101
2088
  Button,
2102
2089
  {
2103
2090
  variant: "secondary",
2104
- size: "s",
2091
+ size: "small",
2105
2092
  suffix: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronRightIcon, {}),
2106
2093
  onClick: (e) => {
2107
2094
  e.stopPropagation();
@@ -2130,7 +2117,7 @@ var WithdrawMethodStep = ({
2130
2117
  "button",
2131
2118
  {
2132
2119
  type: "button",
2133
- className: "flex items-center justify-center text-foreground hover:text-foreground/80 transition-colors hover:cursor-pointer mr-2",
2120
+ className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
2134
2121
  onClick: onBack,
2135
2122
  "aria-label": "Go back",
2136
2123
  children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
@@ -2140,8 +2127,8 @@ var WithdrawMethodStep = ({
2140
2127
  ),
2141
2128
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-4", children: [
2142
2129
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2", children: [
2143
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(VenueLogo, { venue: venue.venue, size: "xs", className: "rounded-sm" }),
2144
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: "text-sm text-muted-foreground leading-5", children: [
2130
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
2131
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
2145
2132
  displayName,
2146
2133
  " balance: ",
2147
2134
  formatCompactUsd(venue.balance)
@@ -2151,7 +2138,7 @@ var WithdrawMethodStep = ({
2151
2138
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2152
2139
  WithdrawMethodCard,
2153
2140
  {
2154
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WalletIcon, { className: "h-6 w-6 text-foreground" }),
2141
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-foreground" }),
2155
2142
  title: "Withdraw to Wallet",
2156
2143
  description: "Send funds to your crypto wallet as USDC.",
2157
2144
  onContinue: () => onSelectMethod("wallet")
@@ -2160,7 +2147,7 @@ var WithdrawMethodStep = ({
2160
2147
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2161
2148
  WithdrawMethodCard,
2162
2149
  {
2163
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BankIcon, { className: "h-6 w-6 text-foreground" }),
2150
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BankIcon, { className: "h-6 w-6 text-agg-foreground" }),
2164
2151
  title: "Withdraw to Bank",
2165
2152
  description: "Transfer funds to your linked bank account.",
2166
2153
  onContinue: () => onSelectMethod("bank")
@@ -2206,7 +2193,7 @@ var WithdrawAmountStep = ({
2206
2193
  "button",
2207
2194
  {
2208
2195
  type: "button",
2209
- className: "flex items-center justify-center text-foreground hover:text-foreground/80 transition-colors hover:cursor-pointer mr-2",
2196
+ className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
2210
2197
  onClick: onBack,
2211
2198
  "aria-label": "Go back",
2212
2199
  children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
@@ -2217,8 +2204,8 @@ var WithdrawAmountStep = ({
2217
2204
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col gap-6", children: [
2218
2205
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center justify-between", children: [
2219
2206
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center gap-2", children: [
2220
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(VenueLogo, { venue: venue.venue, size: "xs", className: "rounded-sm" }),
2221
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("p", { className: "text-sm text-muted-foreground leading-5", children: [
2207
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
2208
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
2222
2209
  displayName,
2223
2210
  " balance: ",
2224
2211
  formatCompactUsd(venue.balance)
@@ -2228,7 +2215,7 @@ var WithdrawAmountStep = ({
2228
2215
  "button",
2229
2216
  {
2230
2217
  type: "button",
2231
- className: "text-sm font-bold text-primary hover:text-primary/80 transition-colors",
2218
+ className: "agg-type-label-strong text-agg-primary transition-colors hover:text-agg-primary/80",
2232
2219
  onClick: handleMax,
2233
2220
  children: "Max"
2234
2221
  }
@@ -2236,7 +2223,7 @@ var WithdrawAmountStep = ({
2236
2223
  ] }),
2237
2224
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex-1 min-w-0", children: [
2238
2225
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-baseline", children: [
2239
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-3xl sm:text-4xl font-bold text-foreground leading-none", children: "$" }),
2226
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
2240
2227
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2241
2228
  "input",
2242
2229
  {
@@ -2244,8 +2231,8 @@ var WithdrawAmountStep = ({
2244
2231
  inputMode: "decimal",
2245
2232
  "aria-label": "Amount",
2246
2233
  className: cn(
2247
- "w-full bg-transparent text-3xl sm:text-4xl font-bold leading-none outline-none",
2248
- exceedsBalance ? "text-error" : numericAmount > 0 ? "text-foreground" : "text-muted-foreground"
2234
+ "agg-type-display w-full bg-transparent outline-none",
2235
+ exceedsBalance ? "text-agg-error" : numericAmount > 0 ? "text-agg-foreground" : "text-agg-muted-foreground"
2249
2236
  ),
2250
2237
  placeholder: "0",
2251
2238
  value: rawAmount ? formatAmountDisplay(rawAmount) : "",
@@ -2253,13 +2240,13 @@ var WithdrawAmountStep = ({
2253
2240
  }
2254
2241
  )
2255
2242
  ] }),
2256
- exceedsBalance ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "mt-2 text-sm text-error", children: "Amount exceeds available balance" }) : null
2243
+ exceedsBalance ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "agg-type-label mt-2 text-agg-error", children: "Amount exceeds available balance" }) : null
2257
2244
  ] }),
2258
2245
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2259
2246
  Button,
2260
2247
  {
2261
2248
  variant: "primary",
2262
- size: "xl",
2249
+ size: "large",
2263
2250
  className: "w-full",
2264
2251
  disabled: !isValid,
2265
2252
  onClick: () => onContinue(numericAmount),
@@ -2278,13 +2265,13 @@ var KalshiStepCard = ({
2278
2265
  description,
2279
2266
  children
2280
2267
  }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
2281
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("p", { className: "text-xs font-bold uppercase leading-4 text-muted-foreground", children: [
2268
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
2282
2269
  "Step ",
2283
2270
  step
2284
2271
  ] }),
2285
2272
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-1", children: [
2286
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm font-bold text-foreground leading-5", children: title }),
2287
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm text-foreground leading-5", children: description })
2273
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
2274
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
2288
2275
  ] }),
2289
2276
  children
2290
2277
  ] });
@@ -2298,13 +2285,13 @@ var KalshiWithdrawStep = ({
2298
2285
  VenueLogo,
2299
2286
  {
2300
2287
  venue: "kalshi",
2301
- size: "xl",
2288
+ size: "large",
2302
2289
  className: "h-[60px] w-[60px] rounded-lg"
2303
2290
  }
2304
2291
  ),
2305
2292
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
2306
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h2", { className: "text-2xl font-bold text-foreground leading-8", children: "Withdraw from Kalshi" }),
2307
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-base text-foreground leading-6", children: "To withdraw from Kalshi you'll need to initiate the withdrawal from your Kalshi account directly on Kalshi's site." })
2293
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Withdraw from Kalshi" }),
2294
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To withdraw from Kalshi you'll need to initiate the withdrawal from your Kalshi account directly on Kalshi's site." })
2308
2295
  ] }),
2309
2296
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
2310
2297
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
@@ -2317,7 +2304,7 @@ var KalshiWithdrawStep = ({
2317
2304
  Button,
2318
2305
  {
2319
2306
  variant: "secondary",
2320
- size: "s",
2307
+ size: "small",
2321
2308
  suffix: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
2322
2309
  onClick: () => {
2323
2310
  window.open(withdrawUrl, "_blank", "noopener,noreferrer");
@@ -2344,7 +2331,7 @@ var KalshiWithdrawStep = ({
2344
2331
  }
2345
2332
  )
2346
2333
  ] }),
2347
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Button, { variant: "secondary", size: "l", onClick: onDone, children: "Done" })
2334
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
2348
2335
  ] }) })
2349
2336
  ] });
2350
2337
 
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-ZYREURXK.mjs";
4
- import "./chunk-VIP7HSOU.mjs";
5
- import "./chunk-BLSHXIAH.mjs";
6
- import "./chunk-F236MLT6.mjs";
3
+ } from "./chunk-2MJY6RVY.mjs";
4
+ import "./chunk-5K7VXAYM.mjs";
5
+ import "./chunk-D7JTOGYP.mjs";
6
+ import "./chunk-PZTHM6WG.mjs";
7
7
  import "./chunk-NDG43KGL.mjs";
8
8
  import "./chunk-BNDFQPHF.mjs";
9
- import "./chunk-PGSPYQOW.mjs";
10
- import "./chunk-ZVBVGWSP.mjs";
9
+ import "./chunk-KAGYJ4XT.mjs";
10
+ import "./chunk-FO263M3V.mjs";
11
11
  import "./chunk-GJ4U5NCE.mjs";
12
12
  export {
13
13
  WithdrawModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-market/ui",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "sideEffects": false,
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -1,44 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-GJ4U5NCE.mjs";
4
-
5
- // src/primitives/badge/badge.constants.ts
6
- var badgeSizes = ["xxs", "xs", "s", "m", "l", "xl", "xxl"];
7
- var badgeSizeClasses = {
8
- xxs: cn("h-4 px-1.5 gap-0.5", "text-agg-xs leading-agg-3"),
9
- xs: cn("h-5 px-2 gap-1", "text-agg-xs leading-agg-4"),
10
- s: cn("h-6 px-2.5 gap-1", "text-agg-sm leading-agg-5"),
11
- m: cn("h-7 px-3 gap-1.5", "text-agg-sm leading-agg-5"),
12
- l: cn("h-8 px-3.5 gap-1.5", "text-agg-base leading-agg-6"),
13
- xl: cn("h-9 px-4 gap-2", "text-agg-lg leading-agg-7"),
14
- xxl: cn("h-10 px-5 gap-2", "text-agg-xl leading-agg-7")
15
- };
16
- var baseBadgeClasses = cn(
17
- "inline-flex items-center justify-center rounded-agg-full font-agg-sans",
18
- "bg-agg-secondary-hover text-agg-foreground whitespace-nowrap font-agg-normal"
19
- );
20
-
21
- // src/primitives/badge/index.tsx
22
- import { jsx, jsxs } from "react/jsx-runtime";
23
- function Badge({ text, prefix, suffix, size = "m", classNames }) {
24
- const resolvedText = `${text}`;
25
- const resolvedAriaLabel = resolvedText.length > 0 ? resolvedText : void 0;
26
- return /* @__PURE__ */ jsxs(
27
- "span",
28
- {
29
- "aria-label": resolvedAriaLabel,
30
- className: cn(baseBadgeClasses, badgeSizeClasses[size], classNames == null ? void 0 : classNames.root),
31
- children: [
32
- prefix ? /* @__PURE__ */ jsx("span", { className: classNames == null ? void 0 : classNames.prefix, children: prefix }) : null,
33
- /* @__PURE__ */ jsx("span", { className: cn("truncate", classNames == null ? void 0 : classNames.text), children: text }),
34
- suffix ? /* @__PURE__ */ jsx("span", { className: classNames == null ? void 0 : classNames.suffix, children: suffix }) : null
35
- ]
36
- }
37
- );
38
- }
39
- Badge.displayName = "Badge";
40
-
41
- export {
42
- badgeSizes,
43
- Badge
44
- };
@@ -1,37 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-GJ4U5NCE.mjs";
4
-
5
- // src/primitives/typography/typography.constants.ts
6
- var variantClasses = {
7
- title: cn("font-agg-sans text-agg-lg leading-agg-7", "font-agg-bold", "text-agg-foreground"),
8
- body: cn("font-agg-sans text-agg-base leading-agg-6", "font-agg-normal", "text-agg-foreground"),
9
- meta: cn(
10
- "font-agg-sans text-agg-sm leading-agg-5",
11
- "font-agg-normal",
12
- "text-agg-muted-foreground"
13
- ),
14
- label: cn(
15
- "font-agg-sans text-agg-sm leading-agg-5",
16
- "font-agg-bold uppercase",
17
- "text-agg-foreground"
18
- ),
19
- value: cn("font-agg-sans text-agg-xl leading-agg-7", "font-agg-normal", "text-agg-foreground"),
20
- caption: cn("font-agg-sans text-agg-xs leading-agg-4", "font-agg-normal", "text-agg-foreground")
21
- };
22
-
23
- // src/primitives/typography/index.tsx
24
- import { jsx } from "react/jsx-runtime";
25
- var Typography = ({
26
- as: Component = "p",
27
- variant = "body",
28
- className,
29
- children
30
- }) => {
31
- return /* @__PURE__ */ jsx(Component, { className: cn(variantClasses[variant], "truncate", className), children });
32
- };
33
- Typography.displayName = "Typography";
34
-
35
- export {
36
- Typography
37
- };