autumn-js 0.0.72 → 0.0.74

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 (200) hide show
  1. package/components.json +2 -2
  2. package/dist/libraries/backend/better-auth.d.mts +8 -0
  3. package/dist/libraries/backend/better-auth.d.ts +8 -0
  4. package/dist/libraries/backend/better-auth.js +20061 -0
  5. package/dist/libraries/backend/better-auth.mjs +19201 -0
  6. package/dist/libraries/backend/{chunk-6DZX6EAA.mjs → chunk-XGB3TDIC.mjs} +5 -0
  7. package/dist/libraries/backend/constants.mjs +1 -1
  8. package/dist/libraries/backend/express.d.mts +1 -1
  9. package/dist/libraries/backend/express.d.ts +1 -1
  10. package/dist/libraries/backend/express.mjs +1 -1
  11. package/dist/libraries/backend/fastify.mjs +1 -1
  12. package/dist/libraries/backend/hono.mjs +1 -1
  13. package/dist/libraries/backend/next.mjs +1 -1
  14. package/dist/libraries/backend/react-router.mjs +1 -1
  15. package/dist/libraries/backend/{referralTypes-qdpA4XBw.d.ts → referralTypes-CSbCGBim.d.ts} +2 -0
  16. package/dist/libraries/backend/{referralTypes-C-jpvu6u.d.mts → referralTypes-DiYwS4QY.d.mts} +2 -0
  17. package/dist/libraries/backend/remix_dep.mjs +1 -1
  18. package/dist/libraries/backend/routes/backendRouter.mjs +1 -1
  19. package/dist/libraries/backend/routes/entityRoutes.mjs +1 -1
  20. package/dist/libraries/backend/routes/genRoutes.mjs +1 -1
  21. package/dist/libraries/backend/routes/productRoutes.mjs +1 -1
  22. package/dist/libraries/backend/routes/referralRoutes.mjs +1 -1
  23. package/dist/libraries/backend/supabase.mjs +1 -1
  24. package/dist/libraries/backend/tanstack.mjs +1 -1
  25. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  26. package/dist/libraries/backend/utils/logBackendErrors.mjs +1 -1
  27. package/dist/libraries/backend/utils/secretKeyCheck.mjs +1 -1
  28. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  29. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  30. package/dist/libraries/backend/utils/withAuth.mjs +1 -1
  31. package/dist/libraries/react/AutumnContext.d.mts +3 -3
  32. package/dist/libraries/react/AutumnContext.d.ts +3 -3
  33. package/dist/libraries/react/AutumnContext.js +11 -7
  34. package/dist/libraries/react/AutumnContext.mjs +7 -7
  35. package/dist/libraries/react/BaseAutumnProvider.d.mts +3 -3
  36. package/dist/libraries/react/BaseAutumnProvider.d.ts +3 -3
  37. package/dist/libraries/react/BaseAutumnProvider.js +5722 -179
  38. package/dist/libraries/react/BaseAutumnProvider.mjs +21 -12
  39. package/dist/libraries/react/{ReactAutumnClient-4e3t4WTF.d.mts → ReactAutumnClient-BT7tsOG0.d.mts} +2 -2
  40. package/dist/libraries/react/{ReactAutumnClient-B-lWmwRW.d.ts → ReactAutumnClient-DfDXFLBI.d.ts} +2 -2
  41. package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -1
  42. package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -1
  43. package/dist/libraries/react/ReactAutumnProvider.js +5729 -182
  44. package/dist/libraries/react/ReactAutumnProvider.mjs +21 -13
  45. package/dist/libraries/react/{checkTypes-BDNI_s2B.d.ts → checkTypes-ByzZ-KO2.d.ts} +2 -0
  46. package/dist/libraries/react/{checkTypes-CyKIOmeF.d.mts → checkTypes-h2Fyyuh0.d.mts} +2 -0
  47. package/dist/libraries/react/{chunk-4PX3AQKX.mjs → chunk-27OTS3Q5.mjs} +9 -9
  48. package/dist/libraries/react/{chunk-TBCLSIC2.mjs → chunk-3EYF7OI5.mjs} +1 -1
  49. package/dist/libraries/react/{chunk-4CGZZYLG.mjs → chunk-4J6OC4ZQ.mjs} +46 -1
  50. package/dist/libraries/react/chunk-5FZ7IV6P.mjs +2021 -0
  51. package/dist/libraries/react/{chunk-B7HGBQCO.mjs → chunk-6N2SUOJ6.mjs} +1 -1
  52. package/dist/libraries/react/{chunk-LS3NB4DU.mjs → chunk-77N4ARHR.mjs} +2 -2
  53. package/dist/libraries/react/chunk-CMO5LYYU.mjs +241 -0
  54. package/dist/libraries/react/{chunk-7PRD7RPD.mjs → chunk-D3H6GCJ4.mjs} +2 -2
  55. package/dist/libraries/react/chunk-FEFGYFXQ.mjs +134 -0
  56. package/dist/libraries/react/chunk-FPI3PLEL.mjs +218 -0
  57. package/dist/libraries/react/chunk-KQT5G3HT.mjs +27 -0
  58. package/dist/libraries/react/chunk-MF3MHICX.mjs +983 -0
  59. package/dist/libraries/react/{chunk-O4HHXBGR.mjs → chunk-P2O4LZFD.mjs} +30 -30
  60. package/dist/libraries/react/{chunk-Q7CK32YT.mjs → chunk-PFTFPWFN.mjs} +26 -8
  61. package/dist/libraries/react/{chunk-CE5BBB5H.mjs → chunk-TLRISML2.mjs} +10 -9
  62. package/dist/libraries/react/{chunk-4KKWHG2V.mjs → chunk-V5PKOA5A.mjs} +1 -1
  63. package/dist/libraries/react/client/ReactAutumnClient.d.mts +3 -3
  64. package/dist/libraries/react/client/ReactAutumnClient.d.ts +3 -3
  65. package/dist/libraries/react/client/ReactAutumnClient.js +11 -7
  66. package/dist/libraries/react/client/ReactAutumnClient.mjs +6 -6
  67. package/dist/libraries/react/client/clientCompMethods.d.mts +3 -3
  68. package/dist/libraries/react/client/clientCompMethods.d.ts +3 -3
  69. package/dist/libraries/react/client/clientCusMethods.d.mts +3 -3
  70. package/dist/libraries/react/client/clientCusMethods.d.ts +3 -3
  71. package/dist/libraries/react/client/clientEntityMethods.d.mts +3 -3
  72. package/dist/libraries/react/client/clientEntityMethods.d.ts +3 -3
  73. package/dist/libraries/react/client/clientEntityMethods.js +9 -6
  74. package/dist/libraries/react/client/clientEntityMethods.mjs +2 -2
  75. package/dist/libraries/react/client/clientGenMethods.d.mts +3 -3
  76. package/dist/libraries/react/client/clientGenMethods.d.ts +3 -3
  77. package/dist/libraries/react/client/clientGenMethods.js +10 -7
  78. package/dist/libraries/react/client/clientGenMethods.mjs +2 -2
  79. package/dist/libraries/react/client/clientProdMethods.d.mts +3 -3
  80. package/dist/libraries/react/client/clientProdMethods.d.ts +3 -3
  81. package/dist/libraries/react/client/clientReferralMethods.d.mts +3 -3
  82. package/dist/libraries/react/client/clientReferralMethods.d.ts +3 -3
  83. package/dist/libraries/react/client/clientReferralMethods.js +9 -6
  84. package/dist/libraries/react/client/clientReferralMethods.mjs +2 -2
  85. package/dist/libraries/react/client/types/clientGenTypes.d.mts +1 -0
  86. package/dist/libraries/react/client/types/clientGenTypes.d.ts +1 -0
  87. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
  88. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  89. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +2594 -222
  90. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +18 -24
  91. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  92. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  93. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  94. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  95. package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +2260 -127
  96. package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +6 -4
  97. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  98. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  99. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +2 -2
  100. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +2 -2
  101. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +3023 -664
  102. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +18 -24
  103. package/dist/libraries/react/components/ui/button.d.mts +6 -6
  104. package/dist/libraries/react/components/ui/button.d.ts +6 -6
  105. package/dist/libraries/react/components/ui/button.js +206 -31
  106. package/dist/libraries/react/components/ui/button.mjs +3 -2
  107. package/dist/libraries/react/components/ui/dialog.d.mts +16 -12
  108. package/dist/libraries/react/components/ui/dialog.d.ts +16 -12
  109. package/dist/libraries/react/components/ui/dialog.js +2254 -148
  110. package/dist/libraries/react/components/ui/dialog.mjs +5 -2
  111. package/dist/libraries/react/components/ui/switch.d.mts +2 -3
  112. package/dist/libraries/react/components/ui/switch.d.ts +2 -3
  113. package/dist/libraries/react/components/ui/switch.js +575 -29
  114. package/dist/libraries/react/components/ui/switch.mjs +5 -2
  115. package/dist/libraries/react/hooks/useAutumn.d.mts +3 -3
  116. package/dist/libraries/react/hooks/useAutumn.d.ts +3 -3
  117. package/dist/libraries/react/hooks/useAutumn.js +5793 -134
  118. package/dist/libraries/react/hooks/useAutumn.mjs +22 -10
  119. package/dist/libraries/react/hooks/useAutumnBase.d.mts +3 -3
  120. package/dist/libraries/react/hooks/useAutumnBase.d.ts +3 -3
  121. package/dist/libraries/react/hooks/useAutumnBase.js +5789 -130
  122. package/dist/libraries/react/hooks/useAutumnBase.mjs +22 -9
  123. package/dist/libraries/react/hooks/useCustomer.d.mts +3 -3
  124. package/dist/libraries/react/hooks/useCustomer.d.ts +3 -3
  125. package/dist/libraries/react/hooks/useCustomer.js +5718 -174
  126. package/dist/libraries/react/hooks/useCustomer.mjs +21 -11
  127. package/dist/libraries/react/hooks/useCustomerBase.d.mts +3 -3
  128. package/dist/libraries/react/hooks/useCustomerBase.d.ts +3 -3
  129. package/dist/libraries/react/hooks/useCustomerBase.js +5726 -174
  130. package/dist/libraries/react/hooks/useCustomerBase.mjs +21 -10
  131. package/dist/libraries/react/hooks/useEntity.d.mts +8 -6
  132. package/dist/libraries/react/hooks/useEntity.d.ts +8 -6
  133. package/dist/libraries/react/hooks/useEntity.js +5986 -48
  134. package/dist/libraries/react/hooks/useEntity.mjs +21 -9
  135. package/dist/libraries/react/hooks/useEntityBase.d.mts +9 -11
  136. package/dist/libraries/react/hooks/useEntityBase.d.ts +9 -11
  137. package/dist/libraries/react/hooks/useEntityBase.js +6690 -37
  138. package/dist/libraries/react/hooks/useEntityBase.mjs +25 -1
  139. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  140. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  141. package/dist/libraries/react/hooks/usePricingTable.js +36 -14
  142. package/dist/libraries/react/hooks/usePricingTable.mjs +9 -9
  143. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +3 -3
  144. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +3 -3
  145. package/dist/libraries/react/hooks/usePricingTableBase.js +36 -14
  146. package/dist/libraries/react/hooks/usePricingTableBase.mjs +8 -8
  147. package/dist/libraries/react/hooks/useProductsBase.js +11 -7
  148. package/dist/libraries/react/hooks/useProductsBase.mjs +7 -7
  149. package/dist/libraries/react/index.d.ts +9 -7
  150. package/dist/libraries/react/index.js +3478 -1089
  151. package/dist/libraries/react/index.mjs +3476 -1087
  152. package/dist/libraries/react/lib/utils.js +46 -1
  153. package/dist/libraries/react/lib/utils.mjs +1 -1
  154. package/dist/libraries/react/{response-ChCmaLBk.d.mts → response-B37tbVeT.d.mts} +1 -1
  155. package/dist/libraries/react/{response-9K8DyGXf.d.ts → response-CREh0tw3.d.ts} +1 -1
  156. package/dist/libraries/react/utils/toSnakeCase.d.mts +1 -1
  157. package/dist/libraries/react/utils/toSnakeCase.d.ts +1 -1
  158. package/dist/libraries/react/utils/toSnakeCase.js +9 -6
  159. package/dist/libraries/react/utils/toSnakeCase.mjs +1 -1
  160. package/dist/next/client/NextAutumnClient.d.mts +2 -2
  161. package/dist/next/client/NextAutumnClient.d.ts +2 -2
  162. package/dist/next/client/{checkTypes-BHxu_xEV.d.ts → checkTypes-BVlLFoUT.d.ts} +2 -0
  163. package/dist/next/client/{checkTypes-CEaWu4S3.d.mts → checkTypes-CGZpuidI.d.mts} +2 -0
  164. package/dist/next/client/{clientGenTypes-i3cKamAv.d.ts → clientGenTypes-CXkGuJ6W.d.ts} +2 -1
  165. package/dist/next/client/{clientGenTypes-BRfigzSY.d.mts → clientGenTypes-Dh9BiE0s.d.mts} +2 -1
  166. package/dist/next/client/hooks/useAutumn.d.mts +3 -3
  167. package/dist/next/client/hooks/useAutumn.d.ts +3 -3
  168. package/dist/next/client/hooks/useCustomer.d.mts +2 -2
  169. package/dist/next/client/hooks/useCustomer.d.ts +2 -2
  170. package/dist/next/client/hooks/useEntity.d.mts +7 -7
  171. package/dist/next/client/hooks/useEntity.d.ts +7 -7
  172. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  173. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  174. package/dist/next/index.d.mts +7 -6
  175. package/dist/next/index.d.ts +7 -6
  176. package/dist/next/server/cusActions.d.mts +2 -0
  177. package/dist/next/server/cusActions.d.ts +2 -0
  178. package/dist/next/server/genActions.d.mts +1 -0
  179. package/dist/next/server/genActions.d.ts +1 -0
  180. package/dist/sdk/index.d.mts +2 -0
  181. package/dist/sdk/index.d.ts +2 -0
  182. package/dist/styles/global.css +1118 -1024
  183. package/package.json +11 -12
  184. package/scripts/sync-registry.ts +79 -191
  185. package/tailwind.config.ts +96 -0
  186. package/tsup.config.ts +3 -4
  187. package/tsup.dev.config.ts +2 -4
  188. package/dist/libraries/react/chunk-2XYYCR4J.mjs +0 -276
  189. package/dist/libraries/react/chunk-FHANCAHB.mjs +0 -17
  190. package/dist/libraries/react/chunk-GTF7A5TG.mjs +0 -76
  191. package/dist/libraries/react/chunk-NEV76K4V.mjs +0 -552
  192. package/dist/libraries/react/chunk-QMIIDFRP.mjs +0 -85
  193. package/dist/libraries/react/chunk-TFGQQAVB.mjs +0 -38
  194. package/dist/libraries/react/chunk-X3HJKZGO.mjs +0 -58
  195. package/dist/libraries/react/chunk-ZKHBOCMO.mjs +0 -17
  196. package/dist/libraries/react/chunk-ZNPQQ2WK.mjs +0 -24
  197. package/dist/libraries/react/chunk-ZQ6LDLK5.mjs +0 -149
  198. package/dist/libraries/react/chunk-ZWO4QYXI.mjs +0 -20
  199. package/dist/libraries/react/chunk-ZXE5MFKL.mjs +0 -45
  200. package/tailwind.config.js +0 -57
@@ -9,38 +9,32 @@ import {
9
9
  PricingTableContainer,
10
10
  RecommendedBadge,
11
11
  usePricingTableContext
12
- } from "../../chunk-NEV76K4V.mjs";
12
+ } from "../../chunk-MF3MHICX.mjs";
13
13
  import "../../chunk-BCMBFJ7E.mjs";
14
14
  import "../../chunk-QBBE72EF.mjs";
15
- import "../../chunk-4PX3AQKX.mjs";
15
+ import "../../chunk-27OTS3Q5.mjs";
16
16
  import "../../chunk-MY2ODATB.mjs";
17
- import "../../chunk-O4HHXBGR.mjs";
18
- import "../../chunk-2XYYCR4J.mjs";
19
- import "../../chunk-TFGQQAVB.mjs";
20
- import "../../chunk-ZKHBOCMO.mjs";
21
- import "../../chunk-X3HJKZGO.mjs";
22
- import "../../chunk-7PRD7RPD.mjs";
23
- import "../../chunk-4CGZZYLG.mjs";
24
- import "../../chunk-FHANCAHB.mjs";
25
- import "../../chunk-ZWO4QYXI.mjs";
26
- import "../../chunk-ZXE5MFKL.mjs";
27
- import "../../chunk-QMIIDFRP.mjs";
28
- import "../../chunk-4QPHNIQ7.mjs";
29
- import "../../chunk-GTF7A5TG.mjs";
17
+ import "../../chunk-P2O4LZFD.mjs";
18
+ import "../../chunk-5FZ7IV6P.mjs";
19
+ import "../../chunk-CMO5LYYU.mjs";
20
+ import "../../chunk-FPI3PLEL.mjs";
21
+ import "../../chunk-FEFGYFXQ.mjs";
22
+ import "../../chunk-4J6OC4ZQ.mjs";
23
+ import "../../chunk-D3H6GCJ4.mjs";
24
+ import "../../chunk-PFTFPWFN.mjs";
30
25
  import "../../chunk-JFXBUWKA.mjs";
31
- import "../../chunk-ZQ6LDLK5.mjs";
32
- import "../../chunk-Q7CK32YT.mjs";
33
- import "../../chunk-B7HGBQCO.mjs";
34
- import "../../chunk-CE5BBB5H.mjs";
35
- import "../../chunk-YUV2Y2RW.mjs";
36
- import "../../chunk-TBCLSIC2.mjs";
26
+ import "../../chunk-4QPHNIQ7.mjs";
27
+ import "../../chunk-6N2SUOJ6.mjs";
28
+ import "../../chunk-TLRISML2.mjs";
37
29
  import "../../chunk-EH2VPTFH.mjs";
38
30
  import "../../chunk-CIBQ4BJU.mjs";
31
+ import "../../chunk-YUV2Y2RW.mjs";
32
+ import "../../chunk-3EYF7OI5.mjs";
39
33
  import "../../chunk-NZ5PEXT2.mjs";
40
34
  import "../../chunk-TGX6UKKS.mjs";
41
- import "../../chunk-4KKWHG2V.mjs";
42
- import "../../chunk-LS3NB4DU.mjs";
43
- import "../../chunk-ZNPQQ2WK.mjs";
35
+ import "../../chunk-V5PKOA5A.mjs";
36
+ import "../../chunk-77N4ARHR.mjs";
37
+ import "../../chunk-KQT5G3HT.mjs";
44
38
  export {
45
39
  AnnualSwitch,
46
40
  PricingCard,
@@ -1,14 +1,14 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
2
  import * as React from 'react';
4
3
  import { VariantProps } from 'class-variance-authority';
5
4
 
6
5
  declare const buttonVariants: (props?: ({
7
- variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
8
- size?: "sm" | "lg" | "default" | "icon" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
7
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
9
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
9
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
11
10
  asChild?: boolean;
12
- }): react_jsx_runtime.JSX.Element;
11
+ }
12
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
13
 
14
- export { Button, buttonVariants };
14
+ export { Button, type ButtonProps, buttonVariants };
@@ -1,14 +1,14 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
2
  import * as React from 'react';
4
3
  import { VariantProps } from 'class-variance-authority';
5
4
 
6
5
  declare const buttonVariants: (props?: ({
7
- variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
8
- size?: "sm" | "lg" | "default" | "icon" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
7
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
9
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
9
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
11
10
  asChild?: boolean;
12
- }): react_jsx_runtime.JSX.Element;
11
+ }
12
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
13
 
14
- export { Button, buttonVariants };
14
+ export { Button, type ButtonProps, buttonVariants };
@@ -1,9 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  "use strict";
4
+ var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
7
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
10
  var __export = (target, all) => {
9
11
  for (var name in all)
@@ -17,6 +19,14 @@ var __copyProps = (to, from, except, desc) => {
17
19
  }
18
20
  return to;
19
21
  };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
20
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
31
 
22
32
  // src/libraries/react/components/ui/button.tsx
@@ -26,7 +36,130 @@ __export(button_exports, {
26
36
  buttonVariants: () => buttonVariants
27
37
  });
28
38
  module.exports = __toCommonJS(button_exports);
29
- var import_react_slot = require("@radix-ui/react-slot");
39
+ var React3 = __toESM(require("react"));
40
+
41
+ // ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.14_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
42
+ var React2 = __toESM(require("react"), 1);
43
+
44
+ // ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@18.3.14_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
45
+ var React = __toESM(require("react"), 1);
46
+ function setRef(ref, value) {
47
+ if (typeof ref === "function") {
48
+ return ref(value);
49
+ } else if (ref !== null && ref !== void 0) {
50
+ ref.current = value;
51
+ }
52
+ }
53
+ function composeRefs(...refs) {
54
+ return (node) => {
55
+ let hasCleanup = false;
56
+ const cleanups = refs.map((ref) => {
57
+ const cleanup = setRef(ref, node);
58
+ if (!hasCleanup && typeof cleanup == "function") {
59
+ hasCleanup = true;
60
+ }
61
+ return cleanup;
62
+ });
63
+ if (hasCleanup) {
64
+ return () => {
65
+ for (let i = 0; i < cleanups.length; i++) {
66
+ const cleanup = cleanups[i];
67
+ if (typeof cleanup == "function") {
68
+ cleanup();
69
+ } else {
70
+ setRef(refs[i], null);
71
+ }
72
+ }
73
+ };
74
+ }
75
+ };
76
+ }
77
+
78
+ // ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.14_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
79
+ var import_jsx_runtime = require("react/jsx-runtime");
80
+ // @__NO_SIDE_EFFECTS__
81
+ function createSlot(ownerName) {
82
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
83
+ const Slot2 = React2.forwardRef((props, forwardedRef) => {
84
+ const { children, ...slotProps } = props;
85
+ const childrenArray = React2.Children.toArray(children);
86
+ const slottable = childrenArray.find(isSlottable);
87
+ if (slottable) {
88
+ const newElement = slottable.props.children;
89
+ const newChildren = childrenArray.map((child) => {
90
+ if (child === slottable) {
91
+ if (React2.Children.count(newElement) > 1) return React2.Children.only(null);
92
+ return React2.isValidElement(newElement) ? newElement.props.children : null;
93
+ } else {
94
+ return child;
95
+ }
96
+ });
97
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React2.isValidElement(newElement) ? React2.cloneElement(newElement, void 0, newChildren) : null });
98
+ }
99
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
100
+ });
101
+ Slot2.displayName = `${ownerName}.Slot`;
102
+ return Slot2;
103
+ }
104
+ var Slot = /* @__PURE__ */ createSlot("Slot");
105
+ // @__NO_SIDE_EFFECTS__
106
+ function createSlotClone(ownerName) {
107
+ const SlotClone = React2.forwardRef((props, forwardedRef) => {
108
+ const { children, ...slotProps } = props;
109
+ if (React2.isValidElement(children)) {
110
+ const childrenRef = getElementRef(children);
111
+ const props2 = mergeProps(slotProps, children.props);
112
+ if (children.type !== React2.Fragment) {
113
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
114
+ }
115
+ return React2.cloneElement(children, props2);
116
+ }
117
+ return React2.Children.count(children) > 1 ? React2.Children.only(null) : null;
118
+ });
119
+ SlotClone.displayName = `${ownerName}.SlotClone`;
120
+ return SlotClone;
121
+ }
122
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
123
+ function isSlottable(child) {
124
+ return React2.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
125
+ }
126
+ function mergeProps(slotProps, childProps) {
127
+ const overrideProps = { ...childProps };
128
+ for (const propName in childProps) {
129
+ const slotPropValue = slotProps[propName];
130
+ const childPropValue = childProps[propName];
131
+ const isHandler = /^on[A-Z]/.test(propName);
132
+ if (isHandler) {
133
+ if (slotPropValue && childPropValue) {
134
+ overrideProps[propName] = (...args) => {
135
+ const result = childPropValue(...args);
136
+ slotPropValue(...args);
137
+ return result;
138
+ };
139
+ } else if (slotPropValue) {
140
+ overrideProps[propName] = slotPropValue;
141
+ }
142
+ } else if (propName === "style") {
143
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
144
+ } else if (propName === "className") {
145
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
146
+ }
147
+ }
148
+ return { ...slotProps, ...overrideProps };
149
+ }
150
+ function getElementRef(element) {
151
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
152
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
153
+ if (mayWarn) {
154
+ return element.ref;
155
+ }
156
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
157
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
158
+ if (mayWarn) {
159
+ return element.props.ref;
160
+ }
161
+ return element.props.ref || element.ref;
162
+ }
30
163
 
31
164
  // ../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
32
165
  function r(e) {
@@ -2543,32 +2676,77 @@ var getDefaultConfig = () => {
2543
2676
  }
2544
2677
  };
2545
2678
  };
2546
- var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2679
+ var mergeConfigs = (baseConfig, {
2680
+ cacheSize,
2681
+ prefix,
2682
+ separator,
2683
+ experimentalParseClassName,
2684
+ extend = {},
2685
+ override = {}
2686
+ }) => {
2687
+ overrideProperty(baseConfig, "cacheSize", cacheSize);
2688
+ overrideProperty(baseConfig, "prefix", prefix);
2689
+ overrideProperty(baseConfig, "separator", separator);
2690
+ overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
2691
+ for (const configKey in override) {
2692
+ overrideConfigProperties(baseConfig[configKey], override[configKey]);
2693
+ }
2694
+ for (const key in extend) {
2695
+ mergeConfigProperties(baseConfig[key], extend[key]);
2696
+ }
2697
+ return baseConfig;
2698
+ };
2699
+ var overrideProperty = (baseObject, overrideKey, overrideValue) => {
2700
+ if (overrideValue !== void 0) {
2701
+ baseObject[overrideKey] = overrideValue;
2702
+ }
2703
+ };
2704
+ var overrideConfigProperties = (baseObject, overrideObject) => {
2705
+ if (overrideObject) {
2706
+ for (const key in overrideObject) {
2707
+ overrideProperty(baseObject, key, overrideObject[key]);
2708
+ }
2709
+ }
2710
+ };
2711
+ var mergeConfigProperties = (baseObject, mergeObject) => {
2712
+ if (mergeObject) {
2713
+ for (const key in mergeObject) {
2714
+ const mergeValue = mergeObject[key];
2715
+ if (mergeValue !== void 0) {
2716
+ baseObject[key] = (baseObject[key] || []).concat(mergeValue);
2717
+ }
2718
+ }
2719
+ }
2720
+ };
2721
+ var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
2547
2722
 
2548
2723
  // src/libraries/react/lib/utils.ts
2724
+ var twMerge = extendTailwindMerge({
2725
+ prefix: "au-"
2726
+ });
2549
2727
  function cn(...inputs) {
2550
2728
  return twMerge(clsx(inputs));
2551
2729
  }
2552
2730
 
2553
2731
  // src/libraries/react/components/ui/button.tsx
2554
- var import_jsx_runtime = require("react/jsx-runtime");
2732
+ var import_jsx_runtime2 = require("react/jsx-runtime");
2555
2733
  var buttonVariants = cva(
2556
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
2734
+ "au-inline-flex au-items-center au-justify-center au-gap-2 au-whitespace-nowrap au-rounded-md au-text-sm au-font-medium au-transition-colors focus-visible:au-outline-none focus-visible:au-ring-1 focus-visible:au-ring-ring disabled:au-pointer-events-none disabled:au-opacity-50 [&_svg]:au-pointer-events-none [&_svg]:au-size-4 [&_svg]:au-shrink-0",
2557
2735
  {
2558
2736
  variants: {
2559
2737
  variant: {
2560
- default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
2561
- secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/90",
2562
- destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
2563
- outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
2564
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
2565
- link: "text-primary underline-offset-4 hover:underline"
2738
+ default: "au-bg-primary au-text-primary-foreground au-shadow hover:au-bg-primary/90",
2739
+ destructive: "au-bg-destructive au-text-destructive-foreground au-shadow-sm hover:au-bg-destructive/90",
2740
+ outline: "au-border au-border-input au-bg-background au-shadow-sm hover:au-bg-accent hover:au-text-accent-foreground",
2741
+ secondary: "au-bg-secondary au-text-secondary-foreground au-shadow-sm hover:au-bg-secondary/80",
2742
+ ghost: "hover:au-bg-accent hover:au-text-accent-foreground",
2743
+ link: "au-text-primary au-underline-offset-4 hover:au-underline"
2566
2744
  },
2567
2745
  size: {
2568
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
2569
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
2570
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
2571
- icon: "size-9"
2746
+ default: "au-h-9 au-px-4 au-py-2",
2747
+ sm: "au-h-8 au-rounded-md au-px-3 au-text-xs",
2748
+ lg: "au-h-10 au-rounded-md au-px-8",
2749
+ icon: "au-h-9 au-w-9"
2572
2750
  }
2573
2751
  },
2574
2752
  defaultVariants: {
@@ -2577,23 +2755,20 @@ var buttonVariants = cva(
2577
2755
  }
2578
2756
  }
2579
2757
  );
2580
- function Button({
2581
- className,
2582
- variant,
2583
- size,
2584
- asChild = false,
2585
- ...props
2586
- }) {
2587
- const Comp = asChild ? import_react_slot.Slot : "button";
2588
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2589
- Comp,
2590
- {
2591
- "data-slot": "button",
2592
- className: cn(buttonVariants({ variant, size, className })),
2593
- ...props
2594
- }
2595
- );
2596
- }
2758
+ var Button = React3.forwardRef(
2759
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
2760
+ const Comp = asChild ? Slot : "button";
2761
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2762
+ Comp,
2763
+ {
2764
+ className: cn(buttonVariants({ variant, size }), className),
2765
+ ref,
2766
+ ...props
2767
+ }
2768
+ );
2769
+ }
2770
+ );
2771
+ Button.displayName = "Button";
2597
2772
  // Annotate the CommonJS export names for ESM import in node:
2598
2773
  0 && (module.exports = {
2599
2774
  Button,
@@ -3,8 +3,9 @@
3
3
  import {
4
4
  Button,
5
5
  buttonVariants
6
- } from "../../chunk-O4HHXBGR.mjs";
7
- import "../../chunk-4CGZZYLG.mjs";
6
+ } from "../../chunk-P2O4LZFD.mjs";
7
+ import "../../chunk-FEFGYFXQ.mjs";
8
+ import "../../chunk-4J6OC4ZQ.mjs";
8
9
  export {
9
10
  Button,
10
11
  buttonVariants
@@ -2,17 +2,21 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
4
4
 
5
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
7
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
8
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
9
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
10
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
11
- showCloseButton?: boolean;
12
- }): react_jsx_runtime.JSX.Element;
13
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
14
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
15
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
16
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
5
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
6
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogPortal: ({ children, ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) => react_jsx_runtime.JSX.Element;
8
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DialogHeader: {
12
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const DialogFooter: {
16
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
20
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
17
21
 
18
22
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
@@ -2,17 +2,21 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
4
4
 
5
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
7
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
8
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
9
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
10
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
11
- showCloseButton?: boolean;
12
- }): react_jsx_runtime.JSX.Element;
13
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
14
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
15
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
16
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
5
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
6
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogPortal: ({ children, ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) => react_jsx_runtime.JSX.Element;
8
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DialogHeader: {
12
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const DialogFooter: {
16
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
20
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
17
21
 
18
22
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };