@customafk/lunas-ui 0.2.69 → 0.2.71

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 (164) hide show
  1. package/dist/{action-submit-Dzo0A7Ew.cjs → action-submit-C19tPHgf.cjs} +2 -2
  2. package/dist/{action-submit-Dzo0A7Ew.cjs.map → action-submit-C19tPHgf.cjs.map} +1 -1
  3. package/dist/{action-submit-Bew9PJtF.mjs → action-submit-cOfq0OSY.mjs} +2 -2
  4. package/dist/{action-submit-Bew9PJtF.mjs.map → action-submit-cOfq0OSY.mjs.map} +1 -1
  5. package/dist/{actions-form-BnDcdbd-.cjs → actions-form-3ItwYOFj.cjs} +2 -2
  6. package/dist/{actions-form-BnDcdbd-.cjs.map → actions-form-3ItwYOFj.cjs.map} +1 -1
  7. package/dist/{actions-form-Z8BX9Hmy.mjs → actions-form-DxbT1lip.mjs} +2 -2
  8. package/dist/{actions-form-Z8BX9Hmy.mjs.map → actions-form-DxbT1lip.mjs.map} +1 -1
  9. package/dist/{checkbox-field-BaqE-eVv.mjs → checkbox-field-BAQN-Yno.mjs} +2 -2
  10. package/dist/{checkbox-field-BaqE-eVv.mjs.map → checkbox-field-BAQN-Yno.mjs.map} +1 -1
  11. package/dist/{checkbox-field-BsGsZz_N.cjs → checkbox-field-BRqU_dYY.cjs} +2 -2
  12. package/dist/{checkbox-field-BsGsZz_N.cjs.map → checkbox-field-BRqU_dYY.cjs.map} +1 -1
  13. package/dist/combobox-field-DnCpN--a.cjs +2 -0
  14. package/dist/combobox-field-DnCpN--a.cjs.map +1 -0
  15. package/dist/combobox-field-yvQPJSFC.mjs +2 -0
  16. package/dist/combobox-field-yvQPJSFC.mjs.map +1 -0
  17. package/dist/container-form-BjiGIzwm.mjs +2 -0
  18. package/dist/container-form-BjiGIzwm.mjs.map +1 -0
  19. package/dist/container-form-D8QNEn8M.cjs +2 -0
  20. package/dist/container-form-D8QNEn8M.cjs.map +1 -0
  21. package/dist/date-field-DLsJBYw8.cjs +2 -0
  22. package/dist/date-field-DLsJBYw8.cjs.map +1 -0
  23. package/dist/date-field-O67C78Kw.mjs +2 -0
  24. package/dist/date-field-O67C78Kw.mjs.map +1 -0
  25. package/dist/{dialog-form-BbumLQqe.mjs → dialog-form-BxlLrEeZ.mjs} +2 -2
  26. package/dist/{dialog-form-BbumLQqe.mjs.map → dialog-form-BxlLrEeZ.mjs.map} +1 -1
  27. package/dist/{dialog-form-CEiuEMXD.cjs → dialog-form-ClTCyJDD.cjs} +2 -2
  28. package/dist/{dialog-form-CEiuEMXD.cjs.map → dialog-form-ClTCyJDD.cjs.map} +1 -1
  29. package/dist/{email-field-DRb71gQI.cjs → email-field-DZzkfVj5.cjs} +2 -2
  30. package/dist/{email-field-DRb71gQI.cjs.map → email-field-DZzkfVj5.cjs.map} +1 -1
  31. package/dist/{email-field-HFmUE81o.mjs → email-field-DqEDxkp7.mjs} +2 -2
  32. package/dist/{email-field-HFmUE81o.mjs.map → email-field-DqEDxkp7.mjs.map} +1 -1
  33. package/dist/features/tanstack-form/index.cjs +1 -1
  34. package/dist/features/tanstack-form/index.d.cts +1 -1
  35. package/dist/features/tanstack-form/index.d.mts +1 -1
  36. package/dist/features/tanstack-form/index.mjs +1 -1
  37. package/dist/{field-BV5twmKA.cjs → field-BSLi-P0Q.cjs} +2 -2
  38. package/dist/{field-BV5twmKA.cjs.map → field-BSLi-P0Q.cjs.map} +1 -1
  39. package/dist/{field-BKyUqvzh.mjs → field-V2DoD8qL.mjs} +2 -2
  40. package/dist/{field-BKyUqvzh.mjs.map → field-V2DoD8qL.mjs.map} +1 -1
  41. package/dist/{group-field-bviEXmo4.mjs → group-field-gejvx_Td.mjs} +2 -2
  42. package/dist/{group-field-bviEXmo4.mjs.map → group-field-gejvx_Td.mjs.map} +1 -1
  43. package/dist/{group-field-0kStiX8n.cjs → group-field-sVykO2JZ.cjs} +2 -2
  44. package/dist/{group-field-0kStiX8n.cjs.map → group-field-sVykO2JZ.cjs.map} +1 -1
  45. package/dist/{index-CgP5OCy0.d.cts → index-BGnN6Vax.d.cts} +22 -1
  46. package/dist/{index-CgP5OCy0.d.mts → index-BGnN6Vax.d.mts} +22 -1
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.d.cts +1 -1
  49. package/dist/index.d.mts +1 -1
  50. package/dist/index.mjs +1 -1
  51. package/dist/{number-field-y0H7X4Ka.cjs → number-field-BTLobx1F.cjs} +2 -2
  52. package/dist/{number-field-y0H7X4Ka.cjs.map → number-field-BTLobx1F.cjs.map} +1 -1
  53. package/dist/{number-field-CZ06Uzb3.mjs → number-field-Cx-1U_Np.mjs} +2 -2
  54. package/dist/{number-field-CZ06Uzb3.mjs.map → number-field-Cx-1U_Np.mjs.map} +1 -1
  55. package/dist/{password-field-DSeObMIU.mjs → password-field-CGPjZ5hZ.mjs} +2 -2
  56. package/dist/{password-field-DSeObMIU.mjs.map → password-field-CGPjZ5hZ.mjs.map} +1 -1
  57. package/dist/{password-field-D0drFRG2.cjs → password-field-CuBcb4mi.cjs} +2 -2
  58. package/dist/{password-field-D0drFRG2.cjs.map → password-field-CuBcb4mi.cjs.map} +1 -1
  59. package/dist/{popover-form-rwhAulOD.mjs → popover-form-DVJUQ3_T.mjs} +2 -2
  60. package/dist/{popover-form-rwhAulOD.mjs.map → popover-form-DVJUQ3_T.mjs.map} +1 -1
  61. package/dist/{popover-form-nkdwopLv.cjs → popover-form-DzvgWQ2Q.cjs} +2 -2
  62. package/dist/{popover-form-nkdwopLv.cjs.map → popover-form-DzvgWQ2Q.cjs.map} +1 -1
  63. package/dist/{radio-group-field-0BXRGTJx.mjs → radio-group-field-C45y9BQt.mjs} +2 -2
  64. package/dist/{radio-group-field-0BXRGTJx.mjs.map → radio-group-field-C45y9BQt.mjs.map} +1 -1
  65. package/dist/{radio-group-field-wX3cWjyq.cjs → radio-group-field-GiEbZRkS.cjs} +2 -2
  66. package/dist/{radio-group-field-wX3cWjyq.cjs.map → radio-group-field-GiEbZRkS.cjs.map} +1 -1
  67. package/dist/section-form-BJWWflUR.mjs +2 -0
  68. package/dist/section-form-BJWWflUR.mjs.map +1 -0
  69. package/dist/section-form-C_pHiBEW.cjs +2 -0
  70. package/dist/section-form-C_pHiBEW.cjs.map +1 -0
  71. package/dist/{select-field-DR36Hpe0.cjs → select-field-Cd63KvgR.cjs} +2 -2
  72. package/dist/{select-field-DR36Hpe0.cjs.map → select-field-Cd63KvgR.cjs.map} +1 -1
  73. package/dist/{select-field-B-bbY7td.mjs → select-field-y3Zttb4j.mjs} +2 -2
  74. package/dist/{select-field-B-bbY7td.mjs.map → select-field-y3Zttb4j.mjs.map} +1 -1
  75. package/dist/{simple-array-field-CZb-E4GS.cjs → simple-array-field-BODzA766.cjs} +2 -2
  76. package/dist/{simple-array-field-CZb-E4GS.cjs.map → simple-array-field-BODzA766.cjs.map} +1 -1
  77. package/dist/{simple-array-field-CBG9o26e.mjs → simple-array-field-DI_56dVs.mjs} +2 -2
  78. package/dist/{simple-array-field-CBG9o26e.mjs.map → simple-array-field-DI_56dVs.mjs.map} +1 -1
  79. package/dist/{simple-boolean-field-BZ9paBNQ.cjs → simple-boolean-field-BjnIh9Mq.cjs} +2 -2
  80. package/dist/{simple-boolean-field-BZ9paBNQ.cjs.map → simple-boolean-field-BjnIh9Mq.cjs.map} +1 -1
  81. package/dist/{simple-boolean-field-BEsGOyof.mjs → simple-boolean-field-oP5yJDQL.mjs} +2 -2
  82. package/dist/{simple-boolean-field-BEsGOyof.mjs.map → simple-boolean-field-oP5yJDQL.mjs.map} +1 -1
  83. package/dist/{simple-combobox-field-BbhxP-te.mjs → simple-combobox-field-Bd-xk5kC.mjs} +2 -2
  84. package/dist/{simple-combobox-field-BbhxP-te.mjs.map → simple-combobox-field-Bd-xk5kC.mjs.map} +1 -1
  85. package/dist/{simple-combobox-field-C4Jmm1AJ.cjs → simple-combobox-field-Dgicw0VN.cjs} +2 -2
  86. package/dist/{simple-combobox-field-C4Jmm1AJ.cjs.map → simple-combobox-field-Dgicw0VN.cjs.map} +1 -1
  87. package/dist/{simple-date-field-D7-UWd6G.mjs → simple-date-field-DE5Z-Zkc.mjs} +2 -2
  88. package/dist/{simple-date-field-D7-UWd6G.mjs.map → simple-date-field-DE5Z-Zkc.mjs.map} +1 -1
  89. package/dist/{simple-date-field-JVkBTfCc.cjs → simple-date-field-hORsbXHE.cjs} +2 -2
  90. package/dist/{simple-date-field-JVkBTfCc.cjs.map → simple-date-field-hORsbXHE.cjs.map} +1 -1
  91. package/dist/{simple-email-field-DHnUuabs.mjs → simple-email-field-CFbpYis_.mjs} +2 -2
  92. package/dist/{simple-email-field-DHnUuabs.mjs.map → simple-email-field-CFbpYis_.mjs.map} +1 -1
  93. package/dist/{simple-email-field-BBrdKmN8.cjs → simple-email-field-DpuMlzxg.cjs} +2 -2
  94. package/dist/{simple-email-field-BBrdKmN8.cjs.map → simple-email-field-DpuMlzxg.cjs.map} +1 -1
  95. package/dist/{simple-number-field-DGaUnBOr.mjs → simple-number-field-BY0b4BJp.mjs} +2 -2
  96. package/dist/{simple-number-field-DGaUnBOr.mjs.map → simple-number-field-BY0b4BJp.mjs.map} +1 -1
  97. package/dist/{simple-number-field-CZ-ycDza.cjs → simple-number-field-C4y4rQcw.cjs} +2 -2
  98. package/dist/{simple-number-field-CZ-ycDza.cjs.map → simple-number-field-C4y4rQcw.cjs.map} +1 -1
  99. package/dist/{simple-password-field-BUSJzB-t.cjs → simple-password-field-BUzKJ0fu.cjs} +2 -2
  100. package/dist/{simple-password-field-BUSJzB-t.cjs.map → simple-password-field-BUzKJ0fu.cjs.map} +1 -1
  101. package/dist/{simple-password-field-BxYeEv-p.mjs → simple-password-field-CA0FuETK.mjs} +2 -2
  102. package/dist/{simple-password-field-BxYeEv-p.mjs.map → simple-password-field-CA0FuETK.mjs.map} +1 -1
  103. package/dist/{simple-radio-group-field-yJdq-reX.mjs → simple-radio-group-field-BM7HBTSs.mjs} +2 -2
  104. package/dist/{simple-radio-group-field-yJdq-reX.mjs.map → simple-radio-group-field-BM7HBTSs.mjs.map} +1 -1
  105. package/dist/{simple-radio-group-field-CQTkbvt9.cjs → simple-radio-group-field-CCxUaYom.cjs} +2 -2
  106. package/dist/{simple-radio-group-field-CQTkbvt9.cjs.map → simple-radio-group-field-CCxUaYom.cjs.map} +1 -1
  107. package/dist/{simple-select-field-Cp64m8Aa.mjs → simple-select-field-CeTVQwmP.mjs} +2 -2
  108. package/dist/{simple-select-field-Cp64m8Aa.mjs.map → simple-select-field-CeTVQwmP.mjs.map} +1 -1
  109. package/dist/{simple-select-field-CUFuptbH.cjs → simple-select-field-CzN4Xb7n.cjs} +2 -2
  110. package/dist/{simple-select-field-CUFuptbH.cjs.map → simple-select-field-CzN4Xb7n.cjs.map} +1 -1
  111. package/dist/{simple-text-field-Dl2IOsO3.mjs → simple-text-field-CDsgWUFD.mjs} +2 -2
  112. package/dist/{simple-text-field-Dl2IOsO3.mjs.map → simple-text-field-CDsgWUFD.mjs.map} +1 -1
  113. package/dist/{simple-text-field-B2Z1E4sG.cjs → simple-text-field-DGZL0gML.cjs} +2 -2
  114. package/dist/{simple-text-field-B2Z1E4sG.cjs.map → simple-text-field-DGZL0gML.cjs.map} +1 -1
  115. package/dist/{simple-textarea-field-CM9aHy-q.mjs → simple-textarea-field-BiuHXtqj.mjs} +2 -2
  116. package/dist/{simple-textarea-field-CM9aHy-q.mjs.map → simple-textarea-field-BiuHXtqj.mjs.map} +1 -1
  117. package/dist/{simple-textarea-field-Cjjk9WOW.cjs → simple-textarea-field-vGYOegPj.cjs} +2 -2
  118. package/dist/{simple-textarea-field-Cjjk9WOW.cjs.map → simple-textarea-field-vGYOegPj.cjs.map} +1 -1
  119. package/dist/{switch-field-IXQ1Blrd.mjs → switch-field-BVgtm94W.mjs} +2 -2
  120. package/dist/{switch-field-IXQ1Blrd.mjs.map → switch-field-BVgtm94W.mjs.map} +1 -1
  121. package/dist/{switch-field-CO5M4qiM.cjs → switch-field-DPB3JDT3.cjs} +2 -2
  122. package/dist/{switch-field-CO5M4qiM.cjs.map → switch-field-DPB3JDT3.cjs.map} +1 -1
  123. package/dist/tanstack-form-CKAWexet.mjs +2 -0
  124. package/dist/{tanstack-form-DJMaMeUh.mjs.map → tanstack-form-CKAWexet.mjs.map} +1 -1
  125. package/dist/{tanstack-form-BC61U3F-.cjs → tanstack-form-CX3lC3mC.cjs} +2 -2
  126. package/dist/{tanstack-form-BC61U3F-.cjs.map → tanstack-form-CX3lC3mC.cjs.map} +1 -1
  127. package/dist/{text-editor-field-D_l4zp_y.cjs → text-editor-field-Ddvgdo_p.cjs} +2 -2
  128. package/dist/{text-editor-field-D_l4zp_y.cjs.map → text-editor-field-Ddvgdo_p.cjs.map} +1 -1
  129. package/dist/{text-editor-field-DxLBaxTL.mjs → text-editor-field-qa3t2GBg.mjs} +2 -2
  130. package/dist/{text-editor-field-DxLBaxTL.mjs.map → text-editor-field-qa3t2GBg.mjs.map} +1 -1
  131. package/dist/text-field-CBUTZKGH.mjs +2 -0
  132. package/dist/text-field-CBUTZKGH.mjs.map +1 -0
  133. package/dist/text-field-Cwu0xuXt.cjs +2 -0
  134. package/dist/text-field-Cwu0xuXt.cjs.map +1 -0
  135. package/dist/{textarea-field-BoQtVUI-.mjs → textarea-field-Ctj5o5my.mjs} +2 -2
  136. package/dist/{textarea-field-BoQtVUI-.mjs.map → textarea-field-Ctj5o5my.mjs.map} +1 -1
  137. package/dist/{textarea-field-IZUGVQjJ.cjs → textarea-field-jOqHJcAL.cjs} +2 -2
  138. package/dist/{textarea-field-IZUGVQjJ.cjs.map → textarea-field-jOqHJcAL.cjs.map} +1 -1
  139. package/dist/{title-field-CKxwzMOM.cjs → title-field-B2hM3S_S.cjs} +2 -2
  140. package/dist/{title-field-CKxwzMOM.cjs.map → title-field-B2hM3S_S.cjs.map} +1 -1
  141. package/dist/{title-field-84EnHPvl.mjs → title-field-oAqHRw59.mjs} +2 -2
  142. package/dist/{title-field-84EnHPvl.mjs.map → title-field-oAqHRw59.mjs.map} +1 -1
  143. package/package.json +1 -1
  144. package/dist/combobox-field-CAN8g_xv.mjs +0 -2
  145. package/dist/combobox-field-CAN8g_xv.mjs.map +0 -1
  146. package/dist/combobox-field-DERJQd5o.cjs +0 -2
  147. package/dist/combobox-field-DERJQd5o.cjs.map +0 -1
  148. package/dist/container-form-BdsEX0NH.mjs +0 -2
  149. package/dist/container-form-BdsEX0NH.mjs.map +0 -1
  150. package/dist/container-form-CxxUYctk.cjs +0 -2
  151. package/dist/container-form-CxxUYctk.cjs.map +0 -1
  152. package/dist/date-field--jOKZ2x1.cjs +0 -2
  153. package/dist/date-field--jOKZ2x1.cjs.map +0 -1
  154. package/dist/date-field-CXzcsnjn.mjs +0 -2
  155. package/dist/date-field-CXzcsnjn.mjs.map +0 -1
  156. package/dist/section-form-Dv9fKWmB.mjs +0 -2
  157. package/dist/section-form-Dv9fKWmB.mjs.map +0 -1
  158. package/dist/section-form-cH13fOhg.cjs +0 -2
  159. package/dist/section-form-cH13fOhg.cjs.map +0 -1
  160. package/dist/tanstack-form-DJMaMeUh.mjs +0 -2
  161. package/dist/text-field-B8xQe0U9.cjs +0 -2
  162. package/dist/text-field-B8xQe0U9.cjs.map +0 -1
  163. package/dist/text-field-BrxKYCui.mjs +0 -2
  164. package/dist/text-field-BrxKYCui.mjs.map +0 -1
@@ -2167,11 +2167,14 @@ declare const TanStackPopoverForm: ComponentType<{
2167
2167
  children?: import("react").ReactNode | undefined;
2168
2168
  }>;
2169
2169
  declare const TanStackContainerForm: ComponentType<{
2170
+ className?: string;
2171
+ } & {
2170
2172
  children?: import("react").ReactNode | undefined;
2171
2173
  }>;
2172
2174
  declare const TanStackSectionForm: ComponentType<{
2173
2175
  title: string;
2174
2176
  icon?: React.ReactNode;
2177
+ className?: string;
2175
2178
  } & {
2176
2179
  children?: import("react").ReactNode | undefined;
2177
2180
  }>;
@@ -2401,11 +2404,14 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
2401
2404
  children?: import("react").ReactNode | undefined;
2402
2405
  }>;
2403
2406
  readonly TanStackContainerForm: ComponentType<{
2407
+ className?: string;
2408
+ } & {
2404
2409
  children?: import("react").ReactNode | undefined;
2405
2410
  }>;
2406
2411
  readonly TanStackSectionForm: ComponentType<{
2407
2412
  title: string;
2408
2413
  icon?: React.ReactNode;
2414
+ className?: string;
2409
2415
  } & {
2410
2416
  children?: import("react").ReactNode | undefined;
2411
2417
  }>;
@@ -2575,11 +2581,14 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
2575
2581
  children?: import("react").ReactNode | undefined;
2576
2582
  }>;
2577
2583
  readonly TanStackContainerForm: ComponentType<{
2584
+ className?: string;
2585
+ } & {
2578
2586
  children?: import("react").ReactNode | undefined;
2579
2587
  }>;
2580
2588
  readonly TanStackSectionForm: ComponentType<{
2581
2589
  title: string;
2582
2590
  icon?: React.ReactNode;
2591
+ className?: string;
2583
2592
  } & {
2584
2593
  children?: import("react").ReactNode | undefined;
2585
2594
  }>;
@@ -2747,11 +2756,14 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
2747
2756
  children?: import("react").ReactNode | undefined;
2748
2757
  }>;
2749
2758
  readonly TanStackContainerForm: ComponentType<{
2759
+ className?: string;
2760
+ } & {
2750
2761
  children?: import("react").ReactNode | undefined;
2751
2762
  }>;
2752
2763
  readonly TanStackSectionForm: ComponentType<{
2753
2764
  title: string;
2754
2765
  icon?: React.ReactNode;
2766
+ className?: string;
2755
2767
  } & {
2756
2768
  children?: import("react").ReactNode | undefined;
2757
2769
  }>;
@@ -2923,11 +2935,14 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
2923
2935
  children?: import("react").ReactNode | undefined;
2924
2936
  }>;
2925
2937
  readonly TanStackContainerForm: ComponentType<{
2938
+ className?: string;
2939
+ } & {
2926
2940
  children?: import("react").ReactNode | undefined;
2927
2941
  }>;
2928
2942
  readonly TanStackSectionForm: ComponentType<{
2929
2943
  title: string;
2930
2944
  icon?: React.ReactNode;
2945
+ className?: string;
2931
2946
  } & {
2932
2947
  children?: import("react").ReactNode | undefined;
2933
2948
  }>;
@@ -3095,11 +3110,14 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
3095
3110
  children?: import("react").ReactNode | undefined;
3096
3111
  }>;
3097
3112
  readonly TanStackContainerForm: ComponentType<{
3113
+ className?: string;
3114
+ } & {
3098
3115
  children?: import("react").ReactNode | undefined;
3099
3116
  }>;
3100
3117
  readonly TanStackSectionForm: ComponentType<{
3101
3118
  title: string;
3102
3119
  icon?: React.ReactNode;
3120
+ className?: string;
3103
3121
  } & {
3104
3122
  children?: import("react").ReactNode | undefined;
3105
3123
  }>;
@@ -3266,11 +3284,14 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
3266
3284
  children?: import("react").ReactNode | undefined;
3267
3285
  }>;
3268
3286
  readonly TanStackContainerForm: ComponentType<{
3287
+ className?: string;
3288
+ } & {
3269
3289
  children?: import("react").ReactNode | undefined;
3270
3290
  }>;
3271
3291
  readonly TanStackSectionForm: ComponentType<{
3272
3292
  title: string;
3273
3293
  icon?: React.ReactNode;
3294
+ className?: string;
3274
3295
  } & {
3275
3296
  children?: import("react").ReactNode | undefined;
3276
3297
  }>;
@@ -3317,4 +3338,4 @@ declare const useTanStackForm: <TFormData, TOnMount extends FormValidateOrFn<TFo
3317
3338
  }>) => ReturnType<import("react").FunctionComponent>;
3318
3339
  //#endregion
3319
3340
  export { EmailFieldProps as $, TanStackActionSubmit as A, TextField as B, SimpleNumberField as C, SimpleTextField as D, SimpleSelectField as E, TanStackFieldGroup as F, useTanStackFieldContext as G, useTanStackForm as H, TanStackPopoverForm as I, BooleanFieldValue as J, useTanStackFormContext as K, TanStackSectionForm as L, TanStackCardForm as M, TanStackContainerForm as N, SimpleTextareaField as O, TanStackDialogForm as P, DateFieldValue as Q, TanStackTitleField as R, SimpleEmailField as S, SimpleRadioGroupField as T, withTanStackFieldGroup as U, TextareaField as V, withTanStackForm as W, ComboboxFieldProps as X, CheckboxFieldProps as Y, DateFieldProps as Z, SelectField as _, DateField as a, NumberFieldValue as at, SimpleComboboxField as b, FieldContent as c, RadioOption as ct, FieldGroup as d, SimpleTextFieldProps as dt, FieldOrientation as et, FieldLabel as f, SwitchFieldProps as ft, RadioGroupField as g, TextareaFieldProps as gt, PasswordField as h, TextFieldValue as ht, ComboboxField as i, NumberFieldProps as it, TanStackActionsForm as j, SwitchField as k, FieldContentMain as l, SelectFieldProps as lt, NumberField as m, TextFieldProps as mt, ArrayHeaderRow as n, FieldType as nt, EmailField as o, PasswordFieldProps as ot, FieldSeparator as p, TextEditorFieldProps as pt, AnyFieldProps as q, CheckboxField as r, MultiSelectFieldValue as rt, Field as s, RadioGroupFieldProps as st, ArrayCol as t, FieldRounding as tt, FieldError as u, SelectOption as ut, SimpleArrayField as v, SimplePasswordField as w, SimpleDateField as x, SimpleBooleanField as y, TextEditorField as z };
3320
- //# sourceMappingURL=index-CgP5OCy0.d.mts.map
3341
+ //# sourceMappingURL=index-BGnN6Vax.d.mts.map
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./ui/button.cjs"),t=require("./typography/paragraph.cjs"),n=require("./ui/card.cjs"),ee=require("./ui/skeleton.cjs"),te=require("./ui/image.cjs"),ne=require("./cards/grid-product-card.cjs"),re=require("./cards/product-card.cjs"),ie=require("./cards/simple-card.cjs"),ae=require("./layouts/flex.cjs"),oe=require("./data-display/country.cjs"),r=require("./data-display/data-list.cjs"),se=require("./date-B3cozmfV.cjs"),i=require("./ui/badge.cjs"),a=require("./ui/tooltip.cjs"),ce=require("./data-display/date-tooltip.cjs"),le=require("./data-display/empty.cjs"),ue=require("./data-display/name.cjs"),de=require("./data-display/phone-number.cjs"),fe=require("./data-display/role-badge.cjs"),o=require("./data-display/statistic.cjs"),s=require("./ui/avatar.cjs"),pe=require("./data-display/user.cjs"),c=require("./ui/alert-dialog.cjs"),me=require("./dialogs/confirm-dialog.cjs"),he=require("./typography/title.cjs"),l=require("./ui/sheet.cjs"),ge=require("./dialogs/detail-dialog/index.cjs"),_e=require("./dialogs/error-dialog.cjs"),u=require("./ui/dialog.cjs"),ve=require("./dialogs/loading-dialog.cjs"),d=require("./features/charts/index.cjs"),f=require("./features/descriptions/index.cjs"),p=require("./ui/command.cjs"),ye=require("./search-modal-CMhsIxae.cjs"),m=require("./tables-078i-X0d.cjs"),be=require("./ui/checkbox.cjs"),h=require("./ui/dropdown-menu.cjs"),xe=require("./ui/spinner.cjs"),g=require("./ui/resizable.cjs"),_=require("./tanstack-form-BC61U3F-.cjs"),v=require("./ui/popover.cjs"),y=require("./text-editor-CfQk5dIx.cjs"),Se=require("./ui/input.cjs"),Ce=require("./ui/separator.cjs"),we=require("./cms-layout-CGGJqbr0.cjs"),b=require("./payment-layout-Cb-Q8KD2.cjs"),x=require("./layouts/grid.cjs"),S=require("./pages/FeatureDeveloping.cjs"),C=require("./pages/FeatureFixing.cjs"),w=require("./pages/NotAuthorized.cjs"),T=require("./pages/NotFound.cjs"),E=require("./alert-D31c6DLq.cjs"),D=require("./ui/label.cjs"),O=require("./pages/LoginPage.cjs"),k=require("./pages/RegisterPage.cjs"),A=require("./ui/input-otp.cjs"),Te=require("./pages/VerifyEmailPage.cjs"),Ee=require("./systems/google.cjs"),De=require("./ui/buttons/add-new.cjs"),Oe=require("./ui/buttons/edit.cjs"),ke=require("./ui/buttons/refresh.cjs"),Ae=require("./ui/buttons/trash.cjs"),je=require("./ui/buttons/upload-image.cjs"),Me=require("./ui/inputs/search-input.cjs"),Ne=require("./ui/aspect-ratio.cjs"),j=require("./ui/breadcrumb.cjs"),M=require("./ui/button-group.cjs"),N=require("./ui/calendar.cjs"),P=require("./ui/carousel.cjs"),F=require("./ui/chart.cjs"),I=require("./ui/collapsible.cjs"),L=require("./ui/context-menu.cjs"),R=require("./ui/drawer.cjs"),z=require("./ui/empty.cjs"),Pe=require("./ui/progress.cjs"),Fe=require("./ui/file-uploader.cjs"),B=require("./ui/form.cjs"),V=require("./ui/hover-card.cjs"),H=require("./ui/item.cjs"),U=require("./ui/menubar.cjs"),W=require("./ui/multi-select.cjs"),G=require("./ui/navigation-menu.cjs"),K=require("./ui/pagination.cjs"),q=require("./ui/radio-group.cjs"),J=require("./ui/scroll-area.cjs"),Y=require("./ui/select.cjs"),Ie=require("./ui/slider.cjs"),Le=require("./ui/sonner.cjs"),Re=require("./ui/switch.cjs"),X=require("./ui/table.cjs"),Z=require("./ui/tabs.cjs"),ze=require("./ui/textarea.cjs"),Q=require("./ui/toggle.cjs"),$=require("./ui/toggle-group.cjs");let Be=require("sonner");exports.ActivityHeatmapChart=d.ActivityHeatmapChart,exports.AddNewBtn=De.AddNewBtn,exports.Alert=E.t,exports.AlertDescription=E.n,exports.AlertDialog=c.AlertDialog,exports.AlertDialogAction=c.AlertDialogAction,exports.AlertDialogCancel=c.AlertDialogCancel,exports.AlertDialogContent=c.AlertDialogContent,exports.AlertDialogDescription=c.AlertDialogDescription,exports.AlertDialogFooter=c.AlertDialogFooter,exports.AlertDialogHeader=c.AlertDialogHeader,exports.AlertDialogOverlay=c.AlertDialogOverlay,exports.AlertDialogPortal=c.AlertDialogPortal,exports.AlertDialogTitle=c.AlertDialogTitle,exports.AlertDialogTrigger=c.AlertDialogTrigger,exports.AlertTitle=E.r,exports.ArrayCol=_.t,exports.ArrayHeaderRow=_.n,exports.AspectRatio=Ne.AspectRatio,exports.Avatar=s.Avatar,exports.AvatarFallback=s.AvatarFallback,exports.AvatarImage=s.AvatarImage,exports.Badge=i.Badge,exports.Breadcrumb=j.Breadcrumb,exports.BreadcrumbEllipsis=j.BreadcrumbEllipsis,exports.BreadcrumbItem=j.BreadcrumbItem,exports.BreadcrumbLink=j.BreadcrumbLink,exports.BreadcrumbList=j.BreadcrumbList,exports.BreadcrumbPage=j.BreadcrumbPage,exports.BreadcrumbSeparator=j.BreadcrumbSeparator,exports.Button=e.Button,exports.ButtonGroup=M.ButtonGroup,exports.ButtonGroupSeparator=M.ButtonGroupSeparator,exports.ButtonGroupText=M.ButtonGroupText,exports.CMSLayout=we.t,exports.Calendar=N.Calendar,exports.CalendarDayButton=N.CalendarDayButton,exports.CandlestickChart=d.CandlestickChart,exports.Card=n.Card,exports.CardAction=n.CardAction,exports.CardContent=n.CardContent,exports.CardDescription=n.CardDescription,exports.CardFooter=n.CardFooter,exports.CardHeader=n.CardHeader,exports.CardTitle=n.CardTitle,exports.Carousel=P.Carousel,exports.CarouselContent=P.CarouselContent,exports.CarouselItem=P.CarouselItem,exports.CarouselNext=P.CarouselNext,exports.CarouselPrevious=P.CarouselPrevious,exports.ChartContainer=F.ChartContainer,exports.ChartLegend=F.ChartLegend,exports.ChartLegendContent=F.ChartLegendContent,exports.ChartStyle=F.ChartStyle,exports.ChartTooltip=F.ChartTooltip,exports.ChartTooltipContent=F.ChartTooltipContent,exports.Checkbox=be.Checkbox,exports.CheckboxField=_.r,exports.Collapsible=I.Collapsible,exports.CollapsibleContent=I.CollapsibleContent,exports.CollapsibleTrigger=I.CollapsibleTrigger,exports.ComboboxField=_.i,exports.Command=p.Command,exports.CommandDialog=p.CommandDialog,exports.CommandEmpty=p.CommandEmpty,exports.CommandGroup=p.CommandGroup,exports.CommandInput=p.CommandInput,exports.CommandItem=p.CommandItem,exports.CommandList=p.CommandList,exports.CommandSeparator=p.CommandSeparator,exports.CommandShortcut=p.CommandShortcut,exports.ConfirmDialog=me.ConfirmDialog,exports.ContextMenu=L.ContextMenu,exports.ContextMenuCheckboxItem=L.ContextMenuCheckboxItem,exports.ContextMenuContent=L.ContextMenuContent,exports.ContextMenuGroup=L.ContextMenuGroup,exports.ContextMenuItem=L.ContextMenuItem,exports.ContextMenuLabel=L.ContextMenuLabel,exports.ContextMenuPortal=L.ContextMenuPortal,exports.ContextMenuRadioGroup=L.ContextMenuRadioGroup,exports.ContextMenuRadioItem=L.ContextMenuRadioItem,exports.ContextMenuSeparator=L.ContextMenuSeparator,exports.ContextMenuShortcut=L.ContextMenuShortcut,exports.ContextMenuSub=L.ContextMenuSub,exports.ContextMenuSubContent=L.ContextMenuSubContent,exports.ContextMenuSubTrigger=L.ContextMenuSubTrigger,exports.ContextMenuTrigger=L.ContextMenuTrigger,exports.ConversionFunnelChart=d.ConversionFunnelChart,exports.CorrelationScatterChart=d.CorrelationScatterChart,exports.CountryDisplay=oe.CountryDisplay,exports.DataList=r.DataList,exports.DataListItem=r.DataListItem,exports.DateDisplay=se.t,exports.DateField=_.a,exports.DateTooltip=ce.DateTooltip,exports.Description=f.Description,exports.DescriptionBadge=f.DescriptionBadge,exports.DescriptionBoolean=f.DescriptionBoolean,exports.DescriptionCopy=f.DescriptionCopy,exports.DescriptionDate=f.DescriptionDate,exports.DescriptionEmpty=f.DescriptionEmpty,exports.DescriptionHeader=f.DescriptionHeader,exports.DescriptionImages=f.DescriptionImages,exports.DescriptionItem=f.DescriptionItem,exports.DescriptionLink=f.DescriptionLink,exports.DescriptionLongText=f.DescriptionLongText,exports.DescriptionName=f.DescriptionName,exports.DescriptionNumberPhone=f.DescriptionNumberPhone,exports.DescriptionSection=f.DescriptionSection,exports.DescriptionStatistic=f.DescriptionStatistic,exports.DescriptionStatus=f.DescriptionStatus,exports.DescriptionTagList=f.DescriptionTagList,exports.DescriptionUser=f.DescriptionUser,exports.DetailDialog=ge.DetailDialog,exports.Dialog=u.Dialog,exports.DialogClose=u.DialogClose,exports.DialogContent=u.DialogContent,exports.DialogDescription=u.DialogDescription,exports.DialogFooter=u.DialogFooter,exports.DialogHeader=u.DialogHeader,exports.DialogOverlay=u.DialogOverlay,exports.DialogPortal=u.DialogPortal,exports.DialogTitle=u.DialogTitle,exports.DialogTrigger=u.DialogTrigger,exports.DonutChart=d.DonutChart,exports.Drawer=R.Drawer,exports.DrawerClose=R.DrawerClose,exports.DrawerContent=R.DrawerContent,exports.DrawerDescription=R.DrawerDescription,exports.DrawerFooter=R.DrawerFooter,exports.DrawerHeader=R.DrawerHeader,exports.DrawerOverlay=R.DrawerOverlay,exports.DrawerPortal=R.DrawerPortal,exports.DrawerTitle=R.DrawerTitle,exports.DrawerTrigger=R.DrawerTrigger,exports.DropdownMenu=h.DropdownMenu,exports.DropdownMenuCheckboxItem=h.DropdownMenuCheckboxItem,exports.DropdownMenuContent=h.DropdownMenuContent,exports.DropdownMenuGroup=h.DropdownMenuGroup,exports.DropdownMenuItem=h.DropdownMenuItem,exports.DropdownMenuLabel=h.DropdownMenuLabel,exports.DropdownMenuPortal=h.DropdownMenuPortal,exports.DropdownMenuRadioGroup=h.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=h.DropdownMenuRadioItem,exports.DropdownMenuSeparator=h.DropdownMenuSeparator,exports.DropdownMenuShortcut=h.DropdownMenuShortcut,exports.DropdownMenuSub=h.DropdownMenuSub,exports.DropdownMenuSubContent=h.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=h.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=h.DropdownMenuTrigger,exports.EditBtn=Oe.EditBtn,exports.EmailField=_.o,exports.Empty=z.Empty,exports.EmptyContent=z.EmptyContent,exports.EmptyDescription=z.EmptyDescription,exports.EmptyDisplay=le.EmptyDisplay,exports.EmptyHeader=z.EmptyHeader,exports.EmptyMedia=z.EmptyMedia,exports.EmptyTitle=z.EmptyTitle,exports.ErrorDialog=_e.ErrorDialog,exports.FeatureDeveloping=S.FeatureDeveloping,exports.FeatureFixing=C.FeatureFixing,exports.Field=_.s,exports.FieldContent=_.c,exports.FieldContentMain=_.l,exports.FieldError=_.u,exports.FieldGroup=_.d,exports.FieldLabel=_.f,exports.FieldSeparator=_.p,exports.FileUploader=Fe.FileUploader,exports.Flex=ae.Flex,exports.Form=B.Form,exports.FormControl=B.FormControl,exports.FormDescription=B.FormDescription,exports.FormField=B.FormField,exports.FormItem=B.FormItem,exports.FormLabel=B.FormLabel,exports.FormMessage=B.FormMessage,exports.GainLossBarChart=d.GainLossBarChart,exports.Google=Ee.Google,exports.Grid=x.Grid,exports.GridProductCard=ne.GridProductCard,exports.HoverCard=V.HoverCard,exports.HoverCardContent=V.HoverCardContent,exports.HoverCardTrigger=V.HoverCardTrigger,exports.Image=te.Image,exports.IndexedPerformanceLineChart=d.IndexedPerformanceLineChart,exports.Input=Se.Input,exports.InputOTP=A.InputOTP,exports.InputOTPGroup=A.InputOTPGroup,exports.InputOTPSeparator=A.InputOTPSeparator,exports.InputOTPSlot=A.InputOTPSlot,exports.Item=H.Item,exports.ItemActions=H.ItemActions,exports.ItemContent=H.ItemContent,exports.ItemDescription=H.ItemDescription,exports.ItemFooter=H.ItemFooter,exports.ItemGroup=H.ItemGroup,exports.ItemHeader=H.ItemHeader,exports.ItemMedia=H.ItemMedia,exports.ItemSeparator=H.ItemSeparator,exports.ItemTitle=H.ItemTitle,exports.Label=D.Label,exports.LoadingDialog=ve.LoadingDialog,exports.LoginPage=O.LoginPage,exports.Menubar=U.Menubar,exports.MenubarCheckboxItem=U.MenubarCheckboxItem,exports.MenubarContent=U.MenubarContent,exports.MenubarGroup=U.MenubarGroup,exports.MenubarItem=U.MenubarItem,exports.MenubarLabel=U.MenubarLabel,exports.MenubarMenu=U.MenubarMenu,exports.MenubarPortal=U.MenubarPortal,exports.MenubarRadioGroup=U.MenubarRadioGroup,exports.MenubarRadioItem=U.MenubarRadioItem,exports.MenubarSeparator=U.MenubarSeparator,exports.MenubarShortcut=U.MenubarShortcut,exports.MenubarSub=U.MenubarSub,exports.MenubarSubContent=U.MenubarSubContent,exports.MenubarSubTrigger=U.MenubarSubTrigger,exports.MenubarTrigger=U.MenubarTrigger,exports.MetricRadarChart=d.MetricRadarChart,exports.MirroredBarChart=d.MirroredBarChart,exports.MultipleSelector=W.MultipleSelector,exports.NameDisplay=ue.NameDisplay,exports.NavigationMenu=G.NavigationMenu,exports.NavigationMenuContent=G.NavigationMenuContent,exports.NavigationMenuIndicator=G.NavigationMenuIndicator,exports.NavigationMenuItem=G.NavigationMenuItem,exports.NavigationMenuLink=G.NavigationMenuLink,exports.NavigationMenuList=G.NavigationMenuList,exports.NavigationMenuTrigger=G.NavigationMenuTrigger,exports.NavigationMenuViewport=G.NavigationMenuViewport,exports.NotAuthorized=w.NotAuthorized,exports.NotFound=T.NotFound,exports.NumberField=_.m,exports.OrdersBarChart=d.OrdersBarChart,exports.Pagination=K.Pagination,exports.PaginationContent=K.PaginationContent,exports.PaginationEllipsis=K.PaginationEllipsis,exports.PaginationItem=K.PaginationItem,exports.PaginationLink=K.PaginationLink,exports.PaginationNext=K.PaginationNext,exports.PaginationPrevious=K.PaginationPrevious,exports.Paragraph=t.Paragraph,exports.PasswordField=_.h,exports.PaymentLayout=b.t,exports.PhoneNumberDisplay=de.PhoneNumberDisplay,exports.Popover=v.Popover,exports.PopoverAnchor=v.PopoverAnchor,exports.PopoverClose=v.PopoverClose,exports.PopoverContent=v.PopoverContent,exports.PopoverTrigger=v.PopoverTrigger,exports.PortfolioAllocationTreemap=d.PortfolioAllocationTreemap,exports.PriceRangeAreaChart=d.PriceRangeAreaChart,exports.ProductCard=re.ProductCard,exports.Progress=Pe.Progress,exports.RadioGroup=q.RadioGroup,exports.RadioGroupField=_.g,exports.RadioGroupItem=q.RadioGroupItem,exports.RefreshBtn=ke.RefreshBtn,exports.RegisterPage=k.RegisterPage,exports.ResizableHandle=g.ResizableHandle,exports.ResizablePanel=g.ResizablePanel,exports.ResizablePanelGroup=g.ResizablePanelGroup,exports.RevenueAreaChart=d.RevenueAreaChart,exports.RevenueOrdersComposedChart=d.RevenueOrdersComposedChart,exports.RoleBadge=fe.RoleBadge,exports.SalesTargetRadialChart=d.SalesTargetRadialChart,exports.SankeyFlowChart=d.SankeyFlowChart,exports.ScrollArea=J.ScrollArea,exports.ScrollBar=J.ScrollBar,exports.SearchInput=Me.SearchInput,exports.SearchModal=ye.t,exports.Select=Y.Select,exports.SelectContent=Y.SelectContent,exports.SelectField=_._,exports.SelectGroup=Y.SelectGroup,exports.SelectItem=Y.SelectItem,exports.SelectLabel=Y.SelectLabel,exports.SelectSeparator=Y.SelectSeparator,exports.SelectTrigger=Y.SelectTrigger,exports.SelectValue=Y.SelectValue,exports.Separator=Ce.Separator,exports.Sheet=l.Sheet,exports.SheetClose=l.SheetClose,exports.SheetContent=l.SheetContent,exports.SheetDescription=l.SheetDescription,exports.SheetFooter=l.SheetFooter,exports.SheetHeader=l.SheetHeader,exports.SheetTitle=l.SheetTitle,exports.SheetTrigger=l.SheetTrigger,exports.SimpleArrayField=_.v,exports.SimpleBooleanField=_.y,exports.SimpleCard=ie.SimpleCard,exports.SimpleComboboxField=_.b,exports.SimpleDateField=_.x,exports.SimpleEmailField=_.S,exports.SimpleNumberField=_.C,exports.SimplePasswordField=_.w,exports.SimpleRadioGroupField=_.T,exports.SimpleSelectField=_.E,exports.SimpleTextField=_.D,exports.SimpleTextareaField=_.O,exports.Skeleton=ee.Skeleton,exports.Slider=Ie.Slider,exports.SparklineChart=d.SparklineChart,exports.Spinner=xe.Spinner,exports.StackedAreaChart=d.StackedAreaChart,exports.Statistic=o.Statistic,exports.Switch=Re.Switch,exports.SwitchField=_.k,exports.Table=X.Table,exports.TableBody=X.TableBody,exports.TableCaption=X.TableCaption,exports.TableCell=X.TableCell,exports.TableFooter=X.TableFooter,exports.TableHead=X.TableHead,exports.TableHeader=X.TableHeader,exports.TableRow=X.TableRow,exports.Tabs=Z.Tabs,exports.TabsContent=Z.TabsContent,exports.TabsList=Z.TabsList,exports.TabsTrigger=Z.TabsTrigger,exports.TanStackActionSubmit=_.A,exports.TanStackActionsForm=_.j,exports.TanStackCardForm=_.M,exports.TanStackContainerForm=_.N,exports.TanStackDialogForm=_.P,exports.TanStackFieldGroup=_.F,exports.TanStackPopoverForm=_.I,exports.TanStackSectionForm=_.L,exports.TanStackTitleField=_.R,exports.TextEditor=y.t,exports.TextEditorField=_.z,exports.TextEditorToolbar=y.n,exports.TextField=_.B,exports.Textarea=ze.Textarea,exports.TextareaField=_.V,exports.Title=he.Title,exports.Toaster=Le.Toaster,exports.Toggle=Q.Toggle,exports.ToggleGroup=$.ToggleGroup,exports.ToggleGroupItem=$.ToggleGroupItem,exports.Tooltip=a.Tooltip,exports.TooltipContent=a.TooltipContent,exports.TooltipProvider=a.TooltipProvider,exports.TooltipTrigger=a.TooltipTrigger,exports.TopProductsBarChart=d.TopProductsBarChart,exports.TrashBtn=Ae.TrashBtn,exports.UITableAnalysisPanel=m.t,exports.UITableAvatarNameDisplay=m.n,exports.UITableBadgeDisplay=m.r,exports.UITableBody=m.K,exports.UITableBooleanDisplay=m.i,exports.UITableCell=m.G,exports.UITableCellActions=m.W,exports.UITableCellSelect=m.U,exports.UITableContainer=m.D,exports.UITableCurrencyDisplay=m.a,exports.UITableDateDisplay=m.o,exports.UITableDescriptionDisplay=m.s,exports.UITableEditButton=m.c,exports.UITableEmailDisplay=m.l,exports.UITableEmpty=m.Q,exports.UITableEmptyDisplay=m.H,exports.UITableFilter=m.u,exports.UITableFooter=m.V,exports.UITableFooterRow=m.R,exports.UITableHead=m.L,exports.UITableHeadCell=m.F,exports.UITableHeadCellOption=m.I,exports.UITableHeadCellSelect=m.P,exports.UITableHeadRow=m.N,exports.UITableInnerTable=m.M,exports.UITableInnerWrapper=m.j,exports.UITableListDisplay=m.d,exports.UITableLoadMore=m.A,exports.UITableMoreButton=m.f,exports.UITableNameDisplay=m.p,exports.UITablePermalink=m.m,exports.UITablePhoneNumberDisplay=m.h,exports.UITableProgressDisplay=m.g,exports.UITableProvider=m.E,exports.UITableRemoveButton=m._,exports.UITableRow=m.k,exports.UITableStatisticDisplay=m.v,exports.UITableStatusDisplay=m.y,exports.UITableSummaryBar=m.b,exports.UITableToggleButton=m.x,exports.UITableTooltip=m.S,exports.UITableTooltipActions=m.C,exports.UITableTooltipFilter=m.w,exports.UITableUserDataDisplay=m.T,exports.UITableWrapper=m.O,exports.UploadImageBtn=je.UploadImageBtn,exports.UserDataDisplay=pe.UserDataDisplay,exports.VerifyEmailPage=Te.VerifyEmailPage,exports.VolumeBarChart=d.VolumeBarChart,exports.WaterfallChart=d.WaterfallChart,exports.badgeVariants=i.badgeVariants,exports.buttonGroupVariants=M.buttonGroupVariants,exports.computeIndexedSeries=d.computeIndexedSeries,exports.formatCompactNumber=d.formatCompactNumber,exports.formatCurrency=d.formatCurrency,exports.formatPercent=d.formatPercent,exports.formatSignedPercent=d.formatSignedPercent,exports.getChartColor=d.getChartColor,exports.getDirectionColor=d.getDirectionColor,exports.navigationMenuTriggerStyle=G.navigationMenuTriggerStyle,exports.paragraphVariants=t.paragraphVariants,exports.toDateLabel=d.toDateLabel,exports.toast=Be.toast,exports.toggleVariants=Q.toggleVariants,exports.useChart=F.useChart,exports.useDebounce=W.useDebounce,exports.useFormField=B.useFormField,exports.useTanStackFieldContext=_.G,exports.useTanStackForm=_.H,exports.useTanStackFormContext=_.K,exports.withTanStackFieldGroup=_.U,exports.withTanStackForm=_.W;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./ui/button.cjs"),t=require("./typography/paragraph.cjs"),n=require("./ui/card.cjs"),ee=require("./ui/skeleton.cjs"),te=require("./ui/image.cjs"),ne=require("./cards/grid-product-card.cjs"),re=require("./cards/product-card.cjs"),ie=require("./cards/simple-card.cjs"),ae=require("./layouts/flex.cjs"),oe=require("./data-display/country.cjs"),r=require("./data-display/data-list.cjs"),se=require("./date-B3cozmfV.cjs"),i=require("./ui/badge.cjs"),a=require("./ui/tooltip.cjs"),ce=require("./data-display/date-tooltip.cjs"),le=require("./data-display/empty.cjs"),ue=require("./data-display/name.cjs"),de=require("./data-display/phone-number.cjs"),fe=require("./data-display/role-badge.cjs"),o=require("./data-display/statistic.cjs"),s=require("./ui/avatar.cjs"),pe=require("./data-display/user.cjs"),c=require("./ui/alert-dialog.cjs"),me=require("./dialogs/confirm-dialog.cjs"),he=require("./typography/title.cjs"),l=require("./ui/sheet.cjs"),ge=require("./dialogs/detail-dialog/index.cjs"),_e=require("./dialogs/error-dialog.cjs"),u=require("./ui/dialog.cjs"),ve=require("./dialogs/loading-dialog.cjs"),d=require("./features/charts/index.cjs"),f=require("./features/descriptions/index.cjs"),p=require("./ui/command.cjs"),ye=require("./search-modal-CMhsIxae.cjs"),m=require("./tables-078i-X0d.cjs"),be=require("./ui/checkbox.cjs"),h=require("./ui/dropdown-menu.cjs"),xe=require("./ui/spinner.cjs"),g=require("./ui/resizable.cjs"),_=require("./tanstack-form-CX3lC3mC.cjs"),v=require("./ui/popover.cjs"),y=require("./text-editor-CfQk5dIx.cjs"),Se=require("./ui/input.cjs"),Ce=require("./ui/separator.cjs"),we=require("./cms-layout-CGGJqbr0.cjs"),b=require("./payment-layout-Cb-Q8KD2.cjs"),x=require("./layouts/grid.cjs"),S=require("./pages/FeatureDeveloping.cjs"),C=require("./pages/FeatureFixing.cjs"),w=require("./pages/NotAuthorized.cjs"),T=require("./pages/NotFound.cjs"),E=require("./alert-D31c6DLq.cjs"),D=require("./ui/label.cjs"),O=require("./pages/LoginPage.cjs"),k=require("./pages/RegisterPage.cjs"),A=require("./ui/input-otp.cjs"),Te=require("./pages/VerifyEmailPage.cjs"),Ee=require("./systems/google.cjs"),De=require("./ui/buttons/add-new.cjs"),Oe=require("./ui/buttons/edit.cjs"),ke=require("./ui/buttons/refresh.cjs"),Ae=require("./ui/buttons/trash.cjs"),je=require("./ui/buttons/upload-image.cjs"),Me=require("./ui/inputs/search-input.cjs"),Ne=require("./ui/aspect-ratio.cjs"),j=require("./ui/breadcrumb.cjs"),M=require("./ui/button-group.cjs"),N=require("./ui/calendar.cjs"),P=require("./ui/carousel.cjs"),F=require("./ui/chart.cjs"),I=require("./ui/collapsible.cjs"),L=require("./ui/context-menu.cjs"),R=require("./ui/drawer.cjs"),z=require("./ui/empty.cjs"),Pe=require("./ui/progress.cjs"),Fe=require("./ui/file-uploader.cjs"),B=require("./ui/form.cjs"),V=require("./ui/hover-card.cjs"),H=require("./ui/item.cjs"),U=require("./ui/menubar.cjs"),W=require("./ui/multi-select.cjs"),G=require("./ui/navigation-menu.cjs"),K=require("./ui/pagination.cjs"),q=require("./ui/radio-group.cjs"),J=require("./ui/scroll-area.cjs"),Y=require("./ui/select.cjs"),Ie=require("./ui/slider.cjs"),Le=require("./ui/sonner.cjs"),Re=require("./ui/switch.cjs"),X=require("./ui/table.cjs"),Z=require("./ui/tabs.cjs"),ze=require("./ui/textarea.cjs"),Q=require("./ui/toggle.cjs"),$=require("./ui/toggle-group.cjs");let Be=require("sonner");exports.ActivityHeatmapChart=d.ActivityHeatmapChart,exports.AddNewBtn=De.AddNewBtn,exports.Alert=E.t,exports.AlertDescription=E.n,exports.AlertDialog=c.AlertDialog,exports.AlertDialogAction=c.AlertDialogAction,exports.AlertDialogCancel=c.AlertDialogCancel,exports.AlertDialogContent=c.AlertDialogContent,exports.AlertDialogDescription=c.AlertDialogDescription,exports.AlertDialogFooter=c.AlertDialogFooter,exports.AlertDialogHeader=c.AlertDialogHeader,exports.AlertDialogOverlay=c.AlertDialogOverlay,exports.AlertDialogPortal=c.AlertDialogPortal,exports.AlertDialogTitle=c.AlertDialogTitle,exports.AlertDialogTrigger=c.AlertDialogTrigger,exports.AlertTitle=E.r,exports.ArrayCol=_.t,exports.ArrayHeaderRow=_.n,exports.AspectRatio=Ne.AspectRatio,exports.Avatar=s.Avatar,exports.AvatarFallback=s.AvatarFallback,exports.AvatarImage=s.AvatarImage,exports.Badge=i.Badge,exports.Breadcrumb=j.Breadcrumb,exports.BreadcrumbEllipsis=j.BreadcrumbEllipsis,exports.BreadcrumbItem=j.BreadcrumbItem,exports.BreadcrumbLink=j.BreadcrumbLink,exports.BreadcrumbList=j.BreadcrumbList,exports.BreadcrumbPage=j.BreadcrumbPage,exports.BreadcrumbSeparator=j.BreadcrumbSeparator,exports.Button=e.Button,exports.ButtonGroup=M.ButtonGroup,exports.ButtonGroupSeparator=M.ButtonGroupSeparator,exports.ButtonGroupText=M.ButtonGroupText,exports.CMSLayout=we.t,exports.Calendar=N.Calendar,exports.CalendarDayButton=N.CalendarDayButton,exports.CandlestickChart=d.CandlestickChart,exports.Card=n.Card,exports.CardAction=n.CardAction,exports.CardContent=n.CardContent,exports.CardDescription=n.CardDescription,exports.CardFooter=n.CardFooter,exports.CardHeader=n.CardHeader,exports.CardTitle=n.CardTitle,exports.Carousel=P.Carousel,exports.CarouselContent=P.CarouselContent,exports.CarouselItem=P.CarouselItem,exports.CarouselNext=P.CarouselNext,exports.CarouselPrevious=P.CarouselPrevious,exports.ChartContainer=F.ChartContainer,exports.ChartLegend=F.ChartLegend,exports.ChartLegendContent=F.ChartLegendContent,exports.ChartStyle=F.ChartStyle,exports.ChartTooltip=F.ChartTooltip,exports.ChartTooltipContent=F.ChartTooltipContent,exports.Checkbox=be.Checkbox,exports.CheckboxField=_.r,exports.Collapsible=I.Collapsible,exports.CollapsibleContent=I.CollapsibleContent,exports.CollapsibleTrigger=I.CollapsibleTrigger,exports.ComboboxField=_.i,exports.Command=p.Command,exports.CommandDialog=p.CommandDialog,exports.CommandEmpty=p.CommandEmpty,exports.CommandGroup=p.CommandGroup,exports.CommandInput=p.CommandInput,exports.CommandItem=p.CommandItem,exports.CommandList=p.CommandList,exports.CommandSeparator=p.CommandSeparator,exports.CommandShortcut=p.CommandShortcut,exports.ConfirmDialog=me.ConfirmDialog,exports.ContextMenu=L.ContextMenu,exports.ContextMenuCheckboxItem=L.ContextMenuCheckboxItem,exports.ContextMenuContent=L.ContextMenuContent,exports.ContextMenuGroup=L.ContextMenuGroup,exports.ContextMenuItem=L.ContextMenuItem,exports.ContextMenuLabel=L.ContextMenuLabel,exports.ContextMenuPortal=L.ContextMenuPortal,exports.ContextMenuRadioGroup=L.ContextMenuRadioGroup,exports.ContextMenuRadioItem=L.ContextMenuRadioItem,exports.ContextMenuSeparator=L.ContextMenuSeparator,exports.ContextMenuShortcut=L.ContextMenuShortcut,exports.ContextMenuSub=L.ContextMenuSub,exports.ContextMenuSubContent=L.ContextMenuSubContent,exports.ContextMenuSubTrigger=L.ContextMenuSubTrigger,exports.ContextMenuTrigger=L.ContextMenuTrigger,exports.ConversionFunnelChart=d.ConversionFunnelChart,exports.CorrelationScatterChart=d.CorrelationScatterChart,exports.CountryDisplay=oe.CountryDisplay,exports.DataList=r.DataList,exports.DataListItem=r.DataListItem,exports.DateDisplay=se.t,exports.DateField=_.a,exports.DateTooltip=ce.DateTooltip,exports.Description=f.Description,exports.DescriptionBadge=f.DescriptionBadge,exports.DescriptionBoolean=f.DescriptionBoolean,exports.DescriptionCopy=f.DescriptionCopy,exports.DescriptionDate=f.DescriptionDate,exports.DescriptionEmpty=f.DescriptionEmpty,exports.DescriptionHeader=f.DescriptionHeader,exports.DescriptionImages=f.DescriptionImages,exports.DescriptionItem=f.DescriptionItem,exports.DescriptionLink=f.DescriptionLink,exports.DescriptionLongText=f.DescriptionLongText,exports.DescriptionName=f.DescriptionName,exports.DescriptionNumberPhone=f.DescriptionNumberPhone,exports.DescriptionSection=f.DescriptionSection,exports.DescriptionStatistic=f.DescriptionStatistic,exports.DescriptionStatus=f.DescriptionStatus,exports.DescriptionTagList=f.DescriptionTagList,exports.DescriptionUser=f.DescriptionUser,exports.DetailDialog=ge.DetailDialog,exports.Dialog=u.Dialog,exports.DialogClose=u.DialogClose,exports.DialogContent=u.DialogContent,exports.DialogDescription=u.DialogDescription,exports.DialogFooter=u.DialogFooter,exports.DialogHeader=u.DialogHeader,exports.DialogOverlay=u.DialogOverlay,exports.DialogPortal=u.DialogPortal,exports.DialogTitle=u.DialogTitle,exports.DialogTrigger=u.DialogTrigger,exports.DonutChart=d.DonutChart,exports.Drawer=R.Drawer,exports.DrawerClose=R.DrawerClose,exports.DrawerContent=R.DrawerContent,exports.DrawerDescription=R.DrawerDescription,exports.DrawerFooter=R.DrawerFooter,exports.DrawerHeader=R.DrawerHeader,exports.DrawerOverlay=R.DrawerOverlay,exports.DrawerPortal=R.DrawerPortal,exports.DrawerTitle=R.DrawerTitle,exports.DrawerTrigger=R.DrawerTrigger,exports.DropdownMenu=h.DropdownMenu,exports.DropdownMenuCheckboxItem=h.DropdownMenuCheckboxItem,exports.DropdownMenuContent=h.DropdownMenuContent,exports.DropdownMenuGroup=h.DropdownMenuGroup,exports.DropdownMenuItem=h.DropdownMenuItem,exports.DropdownMenuLabel=h.DropdownMenuLabel,exports.DropdownMenuPortal=h.DropdownMenuPortal,exports.DropdownMenuRadioGroup=h.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=h.DropdownMenuRadioItem,exports.DropdownMenuSeparator=h.DropdownMenuSeparator,exports.DropdownMenuShortcut=h.DropdownMenuShortcut,exports.DropdownMenuSub=h.DropdownMenuSub,exports.DropdownMenuSubContent=h.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=h.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=h.DropdownMenuTrigger,exports.EditBtn=Oe.EditBtn,exports.EmailField=_.o,exports.Empty=z.Empty,exports.EmptyContent=z.EmptyContent,exports.EmptyDescription=z.EmptyDescription,exports.EmptyDisplay=le.EmptyDisplay,exports.EmptyHeader=z.EmptyHeader,exports.EmptyMedia=z.EmptyMedia,exports.EmptyTitle=z.EmptyTitle,exports.ErrorDialog=_e.ErrorDialog,exports.FeatureDeveloping=S.FeatureDeveloping,exports.FeatureFixing=C.FeatureFixing,exports.Field=_.s,exports.FieldContent=_.c,exports.FieldContentMain=_.l,exports.FieldError=_.u,exports.FieldGroup=_.d,exports.FieldLabel=_.f,exports.FieldSeparator=_.p,exports.FileUploader=Fe.FileUploader,exports.Flex=ae.Flex,exports.Form=B.Form,exports.FormControl=B.FormControl,exports.FormDescription=B.FormDescription,exports.FormField=B.FormField,exports.FormItem=B.FormItem,exports.FormLabel=B.FormLabel,exports.FormMessage=B.FormMessage,exports.GainLossBarChart=d.GainLossBarChart,exports.Google=Ee.Google,exports.Grid=x.Grid,exports.GridProductCard=ne.GridProductCard,exports.HoverCard=V.HoverCard,exports.HoverCardContent=V.HoverCardContent,exports.HoverCardTrigger=V.HoverCardTrigger,exports.Image=te.Image,exports.IndexedPerformanceLineChart=d.IndexedPerformanceLineChart,exports.Input=Se.Input,exports.InputOTP=A.InputOTP,exports.InputOTPGroup=A.InputOTPGroup,exports.InputOTPSeparator=A.InputOTPSeparator,exports.InputOTPSlot=A.InputOTPSlot,exports.Item=H.Item,exports.ItemActions=H.ItemActions,exports.ItemContent=H.ItemContent,exports.ItemDescription=H.ItemDescription,exports.ItemFooter=H.ItemFooter,exports.ItemGroup=H.ItemGroup,exports.ItemHeader=H.ItemHeader,exports.ItemMedia=H.ItemMedia,exports.ItemSeparator=H.ItemSeparator,exports.ItemTitle=H.ItemTitle,exports.Label=D.Label,exports.LoadingDialog=ve.LoadingDialog,exports.LoginPage=O.LoginPage,exports.Menubar=U.Menubar,exports.MenubarCheckboxItem=U.MenubarCheckboxItem,exports.MenubarContent=U.MenubarContent,exports.MenubarGroup=U.MenubarGroup,exports.MenubarItem=U.MenubarItem,exports.MenubarLabel=U.MenubarLabel,exports.MenubarMenu=U.MenubarMenu,exports.MenubarPortal=U.MenubarPortal,exports.MenubarRadioGroup=U.MenubarRadioGroup,exports.MenubarRadioItem=U.MenubarRadioItem,exports.MenubarSeparator=U.MenubarSeparator,exports.MenubarShortcut=U.MenubarShortcut,exports.MenubarSub=U.MenubarSub,exports.MenubarSubContent=U.MenubarSubContent,exports.MenubarSubTrigger=U.MenubarSubTrigger,exports.MenubarTrigger=U.MenubarTrigger,exports.MetricRadarChart=d.MetricRadarChart,exports.MirroredBarChart=d.MirroredBarChart,exports.MultipleSelector=W.MultipleSelector,exports.NameDisplay=ue.NameDisplay,exports.NavigationMenu=G.NavigationMenu,exports.NavigationMenuContent=G.NavigationMenuContent,exports.NavigationMenuIndicator=G.NavigationMenuIndicator,exports.NavigationMenuItem=G.NavigationMenuItem,exports.NavigationMenuLink=G.NavigationMenuLink,exports.NavigationMenuList=G.NavigationMenuList,exports.NavigationMenuTrigger=G.NavigationMenuTrigger,exports.NavigationMenuViewport=G.NavigationMenuViewport,exports.NotAuthorized=w.NotAuthorized,exports.NotFound=T.NotFound,exports.NumberField=_.m,exports.OrdersBarChart=d.OrdersBarChart,exports.Pagination=K.Pagination,exports.PaginationContent=K.PaginationContent,exports.PaginationEllipsis=K.PaginationEllipsis,exports.PaginationItem=K.PaginationItem,exports.PaginationLink=K.PaginationLink,exports.PaginationNext=K.PaginationNext,exports.PaginationPrevious=K.PaginationPrevious,exports.Paragraph=t.Paragraph,exports.PasswordField=_.h,exports.PaymentLayout=b.t,exports.PhoneNumberDisplay=de.PhoneNumberDisplay,exports.Popover=v.Popover,exports.PopoverAnchor=v.PopoverAnchor,exports.PopoverClose=v.PopoverClose,exports.PopoverContent=v.PopoverContent,exports.PopoverTrigger=v.PopoverTrigger,exports.PortfolioAllocationTreemap=d.PortfolioAllocationTreemap,exports.PriceRangeAreaChart=d.PriceRangeAreaChart,exports.ProductCard=re.ProductCard,exports.Progress=Pe.Progress,exports.RadioGroup=q.RadioGroup,exports.RadioGroupField=_.g,exports.RadioGroupItem=q.RadioGroupItem,exports.RefreshBtn=ke.RefreshBtn,exports.RegisterPage=k.RegisterPage,exports.ResizableHandle=g.ResizableHandle,exports.ResizablePanel=g.ResizablePanel,exports.ResizablePanelGroup=g.ResizablePanelGroup,exports.RevenueAreaChart=d.RevenueAreaChart,exports.RevenueOrdersComposedChart=d.RevenueOrdersComposedChart,exports.RoleBadge=fe.RoleBadge,exports.SalesTargetRadialChart=d.SalesTargetRadialChart,exports.SankeyFlowChart=d.SankeyFlowChart,exports.ScrollArea=J.ScrollArea,exports.ScrollBar=J.ScrollBar,exports.SearchInput=Me.SearchInput,exports.SearchModal=ye.t,exports.Select=Y.Select,exports.SelectContent=Y.SelectContent,exports.SelectField=_._,exports.SelectGroup=Y.SelectGroup,exports.SelectItem=Y.SelectItem,exports.SelectLabel=Y.SelectLabel,exports.SelectSeparator=Y.SelectSeparator,exports.SelectTrigger=Y.SelectTrigger,exports.SelectValue=Y.SelectValue,exports.Separator=Ce.Separator,exports.Sheet=l.Sheet,exports.SheetClose=l.SheetClose,exports.SheetContent=l.SheetContent,exports.SheetDescription=l.SheetDescription,exports.SheetFooter=l.SheetFooter,exports.SheetHeader=l.SheetHeader,exports.SheetTitle=l.SheetTitle,exports.SheetTrigger=l.SheetTrigger,exports.SimpleArrayField=_.v,exports.SimpleBooleanField=_.y,exports.SimpleCard=ie.SimpleCard,exports.SimpleComboboxField=_.b,exports.SimpleDateField=_.x,exports.SimpleEmailField=_.S,exports.SimpleNumberField=_.C,exports.SimplePasswordField=_.w,exports.SimpleRadioGroupField=_.T,exports.SimpleSelectField=_.E,exports.SimpleTextField=_.D,exports.SimpleTextareaField=_.O,exports.Skeleton=ee.Skeleton,exports.Slider=Ie.Slider,exports.SparklineChart=d.SparklineChart,exports.Spinner=xe.Spinner,exports.StackedAreaChart=d.StackedAreaChart,exports.Statistic=o.Statistic,exports.Switch=Re.Switch,exports.SwitchField=_.k,exports.Table=X.Table,exports.TableBody=X.TableBody,exports.TableCaption=X.TableCaption,exports.TableCell=X.TableCell,exports.TableFooter=X.TableFooter,exports.TableHead=X.TableHead,exports.TableHeader=X.TableHeader,exports.TableRow=X.TableRow,exports.Tabs=Z.Tabs,exports.TabsContent=Z.TabsContent,exports.TabsList=Z.TabsList,exports.TabsTrigger=Z.TabsTrigger,exports.TanStackActionSubmit=_.A,exports.TanStackActionsForm=_.j,exports.TanStackCardForm=_.M,exports.TanStackContainerForm=_.N,exports.TanStackDialogForm=_.P,exports.TanStackFieldGroup=_.F,exports.TanStackPopoverForm=_.I,exports.TanStackSectionForm=_.L,exports.TanStackTitleField=_.R,exports.TextEditor=y.t,exports.TextEditorField=_.z,exports.TextEditorToolbar=y.n,exports.TextField=_.B,exports.Textarea=ze.Textarea,exports.TextareaField=_.V,exports.Title=he.Title,exports.Toaster=Le.Toaster,exports.Toggle=Q.Toggle,exports.ToggleGroup=$.ToggleGroup,exports.ToggleGroupItem=$.ToggleGroupItem,exports.Tooltip=a.Tooltip,exports.TooltipContent=a.TooltipContent,exports.TooltipProvider=a.TooltipProvider,exports.TooltipTrigger=a.TooltipTrigger,exports.TopProductsBarChart=d.TopProductsBarChart,exports.TrashBtn=Ae.TrashBtn,exports.UITableAnalysisPanel=m.t,exports.UITableAvatarNameDisplay=m.n,exports.UITableBadgeDisplay=m.r,exports.UITableBody=m.K,exports.UITableBooleanDisplay=m.i,exports.UITableCell=m.G,exports.UITableCellActions=m.W,exports.UITableCellSelect=m.U,exports.UITableContainer=m.D,exports.UITableCurrencyDisplay=m.a,exports.UITableDateDisplay=m.o,exports.UITableDescriptionDisplay=m.s,exports.UITableEditButton=m.c,exports.UITableEmailDisplay=m.l,exports.UITableEmpty=m.Q,exports.UITableEmptyDisplay=m.H,exports.UITableFilter=m.u,exports.UITableFooter=m.V,exports.UITableFooterRow=m.R,exports.UITableHead=m.L,exports.UITableHeadCell=m.F,exports.UITableHeadCellOption=m.I,exports.UITableHeadCellSelect=m.P,exports.UITableHeadRow=m.N,exports.UITableInnerTable=m.M,exports.UITableInnerWrapper=m.j,exports.UITableListDisplay=m.d,exports.UITableLoadMore=m.A,exports.UITableMoreButton=m.f,exports.UITableNameDisplay=m.p,exports.UITablePermalink=m.m,exports.UITablePhoneNumberDisplay=m.h,exports.UITableProgressDisplay=m.g,exports.UITableProvider=m.E,exports.UITableRemoveButton=m._,exports.UITableRow=m.k,exports.UITableStatisticDisplay=m.v,exports.UITableStatusDisplay=m.y,exports.UITableSummaryBar=m.b,exports.UITableToggleButton=m.x,exports.UITableTooltip=m.S,exports.UITableTooltipActions=m.C,exports.UITableTooltipFilter=m.w,exports.UITableUserDataDisplay=m.T,exports.UITableWrapper=m.O,exports.UploadImageBtn=je.UploadImageBtn,exports.UserDataDisplay=pe.UserDataDisplay,exports.VerifyEmailPage=Te.VerifyEmailPage,exports.VolumeBarChart=d.VolumeBarChart,exports.WaterfallChart=d.WaterfallChart,exports.badgeVariants=i.badgeVariants,exports.buttonGroupVariants=M.buttonGroupVariants,exports.computeIndexedSeries=d.computeIndexedSeries,exports.formatCompactNumber=d.formatCompactNumber,exports.formatCurrency=d.formatCurrency,exports.formatPercent=d.formatPercent,exports.formatSignedPercent=d.formatSignedPercent,exports.getChartColor=d.getChartColor,exports.getDirectionColor=d.getDirectionColor,exports.navigationMenuTriggerStyle=G.navigationMenuTriggerStyle,exports.paragraphVariants=t.paragraphVariants,exports.toDateLabel=d.toDateLabel,exports.toast=Be.toast,exports.toggleVariants=Q.toggleVariants,exports.useChart=F.useChart,exports.useDebounce=W.useDebounce,exports.useFormField=B.useFormField,exports.useTanStackFieldContext=_.G,exports.useTanStackForm=_.H,exports.useTanStackFormContext=_.K,exports.withTanStackFieldGroup=_.U,exports.withTanStackForm=_.W;
package/dist/index.d.cts CHANGED
@@ -22,7 +22,7 @@ import { $ as formatSignedPercent, A as SalesTargetRadialChartProps, B as Indexe
22
22
  import { n as BadgeProps, r as badgeVariants, t as Badge } from "./badge-MRT40pxM.cjs";
23
23
  import { _ as DescriptionDate, a as DescriptionSection, b as DescriptionBadge, c as DescriptionStatus, d as DescriptionNumberPhone, f as DescriptionName, g as DescriptionEmpty, h as DescriptionImages, i as DescriptionItem, l as DescriptionStatistic, m as DescriptionLink, o as DescriptionUser, p as DescriptionLongText, r as DescriptionHeader, s as DescriptionTagList, t as Description, u as DescriptionStatisticProps, v as DescriptionCopy, y as DescriptionBoolean } from "./index-fZChR7MS.cjs";
24
24
  import { t as SearchModal } from "./index-DtIL69PB.cjs";
25
- import { $ as EmailFieldProps, A as TanStackActionSubmit, B as TextField, C as SimpleNumberField, D as SimpleTextField, E as SimpleSelectField, F as TanStackFieldGroup, G as useTanStackFieldContext, H as useTanStackForm, I as TanStackPopoverForm, J as BooleanFieldValue, K as useTanStackFormContext, L as TanStackSectionForm, M as TanStackCardForm, N as TanStackContainerForm, O as SimpleTextareaField, P as TanStackDialogForm, Q as DateFieldValue, R as TanStackTitleField, S as SimpleEmailField, T as SimpleRadioGroupField, U as withTanStackFieldGroup, V as TextareaField, W as withTanStackForm, X as ComboboxFieldProps, Y as CheckboxFieldProps, Z as DateFieldProps, _ as SelectField, a as DateField, at as NumberFieldValue, b as SimpleComboboxField, c as FieldContent, ct as RadioOption, d as FieldGroup, dt as SimpleTextFieldProps, et as FieldOrientation, f as FieldLabel, ft as SwitchFieldProps, g as RadioGroupField, gt as TextareaFieldProps, h as PasswordField, ht as TextFieldValue, i as ComboboxField, it as NumberFieldProps, j as TanStackActionsForm, k as SwitchField, l as FieldContentMain, lt as SelectFieldProps, m as NumberField, mt as TextFieldProps, n as ArrayHeaderRow, nt as FieldType, o as EmailField, ot as PasswordFieldProps, p as FieldSeparator, pt as TextEditorFieldProps, q as AnyFieldProps, r as CheckboxField, rt as MultiSelectFieldValue, s as Field, st as RadioGroupFieldProps, t as ArrayCol, tt as FieldRounding, u as FieldError, ut as SelectOption, v as SimpleArrayField, w as SimplePasswordField, x as SimpleDateField, y as SimpleBooleanField, z as TextEditorField } from "./index-CgP5OCy0.cjs";
25
+ import { $ as EmailFieldProps, A as TanStackActionSubmit, B as TextField, C as SimpleNumberField, D as SimpleTextField, E as SimpleSelectField, F as TanStackFieldGroup, G as useTanStackFieldContext, H as useTanStackForm, I as TanStackPopoverForm, J as BooleanFieldValue, K as useTanStackFormContext, L as TanStackSectionForm, M as TanStackCardForm, N as TanStackContainerForm, O as SimpleTextareaField, P as TanStackDialogForm, Q as DateFieldValue, R as TanStackTitleField, S as SimpleEmailField, T as SimpleRadioGroupField, U as withTanStackFieldGroup, V as TextareaField, W as withTanStackForm, X as ComboboxFieldProps, Y as CheckboxFieldProps, Z as DateFieldProps, _ as SelectField, a as DateField, at as NumberFieldValue, b as SimpleComboboxField, c as FieldContent, ct as RadioOption, d as FieldGroup, dt as SimpleTextFieldProps, et as FieldOrientation, f as FieldLabel, ft as SwitchFieldProps, g as RadioGroupField, gt as TextareaFieldProps, h as PasswordField, ht as TextFieldValue, i as ComboboxField, it as NumberFieldProps, j as TanStackActionsForm, k as SwitchField, l as FieldContentMain, lt as SelectFieldProps, m as NumberField, mt as TextFieldProps, n as ArrayHeaderRow, nt as FieldType, o as EmailField, ot as PasswordFieldProps, p as FieldSeparator, pt as TextEditorFieldProps, q as AnyFieldProps, r as CheckboxField, rt as MultiSelectFieldValue, s as Field, st as RadioGroupFieldProps, t as ArrayCol, tt as FieldRounding, u as FieldError, ut as SelectOption, v as SimpleArrayField, w as SimplePasswordField, x as SimpleDateField, y as SimpleBooleanField, z as TextEditorField } from "./index-BGnN6Vax.cjs";
26
26
  import { i as TextEditorProps, n as TextEditorToolbarProps, r as TextEditor, t as TextEditorToolbar } from "./index-D9bKlLiM.cjs";
27
27
  import { n as CMSLayoutProps, r as CMSLayoutUser, t as CMSLayout } from "./index-teY5hw2R.cjs";
28
28
  import { n as PaymentLayoutUser, t as PaymentLayout } from "./index-DJiiPHPf.cjs";
package/dist/index.d.mts CHANGED
@@ -22,7 +22,7 @@ import { $ as formatSignedPercent, A as SalesTargetRadialChartProps, B as Indexe
22
22
  import { n as BadgeProps, r as badgeVariants, t as Badge } from "./badge-MRT40pxM.mjs";
23
23
  import { _ as DescriptionDate, a as DescriptionSection, b as DescriptionBadge, c as DescriptionStatus, d as DescriptionNumberPhone, f as DescriptionName, g as DescriptionEmpty, h as DescriptionImages, i as DescriptionItem, l as DescriptionStatistic, m as DescriptionLink, o as DescriptionUser, p as DescriptionLongText, r as DescriptionHeader, s as DescriptionTagList, t as Description, u as DescriptionStatisticProps, v as DescriptionCopy, y as DescriptionBoolean } from "./index-C2HFO3a9.mjs";
24
24
  import { t as SearchModal } from "./index-DtIL69PB.mjs";
25
- import { $ as EmailFieldProps, A as TanStackActionSubmit, B as TextField, C as SimpleNumberField, D as SimpleTextField, E as SimpleSelectField, F as TanStackFieldGroup, G as useTanStackFieldContext, H as useTanStackForm, I as TanStackPopoverForm, J as BooleanFieldValue, K as useTanStackFormContext, L as TanStackSectionForm, M as TanStackCardForm, N as TanStackContainerForm, O as SimpleTextareaField, P as TanStackDialogForm, Q as DateFieldValue, R as TanStackTitleField, S as SimpleEmailField, T as SimpleRadioGroupField, U as withTanStackFieldGroup, V as TextareaField, W as withTanStackForm, X as ComboboxFieldProps, Y as CheckboxFieldProps, Z as DateFieldProps, _ as SelectField, a as DateField, at as NumberFieldValue, b as SimpleComboboxField, c as FieldContent, ct as RadioOption, d as FieldGroup, dt as SimpleTextFieldProps, et as FieldOrientation, f as FieldLabel, ft as SwitchFieldProps, g as RadioGroupField, gt as TextareaFieldProps, h as PasswordField, ht as TextFieldValue, i as ComboboxField, it as NumberFieldProps, j as TanStackActionsForm, k as SwitchField, l as FieldContentMain, lt as SelectFieldProps, m as NumberField, mt as TextFieldProps, n as ArrayHeaderRow, nt as FieldType, o as EmailField, ot as PasswordFieldProps, p as FieldSeparator, pt as TextEditorFieldProps, q as AnyFieldProps, r as CheckboxField, rt as MultiSelectFieldValue, s as Field, st as RadioGroupFieldProps, t as ArrayCol, tt as FieldRounding, u as FieldError, ut as SelectOption, v as SimpleArrayField, w as SimplePasswordField, x as SimpleDateField, y as SimpleBooleanField, z as TextEditorField } from "./index-CgP5OCy0.mjs";
25
+ import { $ as EmailFieldProps, A as TanStackActionSubmit, B as TextField, C as SimpleNumberField, D as SimpleTextField, E as SimpleSelectField, F as TanStackFieldGroup, G as useTanStackFieldContext, H as useTanStackForm, I as TanStackPopoverForm, J as BooleanFieldValue, K as useTanStackFormContext, L as TanStackSectionForm, M as TanStackCardForm, N as TanStackContainerForm, O as SimpleTextareaField, P as TanStackDialogForm, Q as DateFieldValue, R as TanStackTitleField, S as SimpleEmailField, T as SimpleRadioGroupField, U as withTanStackFieldGroup, V as TextareaField, W as withTanStackForm, X as ComboboxFieldProps, Y as CheckboxFieldProps, Z as DateFieldProps, _ as SelectField, a as DateField, at as NumberFieldValue, b as SimpleComboboxField, c as FieldContent, ct as RadioOption, d as FieldGroup, dt as SimpleTextFieldProps, et as FieldOrientation, f as FieldLabel, ft as SwitchFieldProps, g as RadioGroupField, gt as TextareaFieldProps, h as PasswordField, ht as TextFieldValue, i as ComboboxField, it as NumberFieldProps, j as TanStackActionsForm, k as SwitchField, l as FieldContentMain, lt as SelectFieldProps, m as NumberField, mt as TextFieldProps, n as ArrayHeaderRow, nt as FieldType, o as EmailField, ot as PasswordFieldProps, p as FieldSeparator, pt as TextEditorFieldProps, q as AnyFieldProps, r as CheckboxField, rt as MultiSelectFieldValue, s as Field, st as RadioGroupFieldProps, t as ArrayCol, tt as FieldRounding, u as FieldError, ut as SelectOption, v as SimpleArrayField, w as SimplePasswordField, x as SimpleDateField, y as SimpleBooleanField, z as TextEditorField } from "./index-BGnN6Vax.mjs";
26
26
  import { i as TextEditorProps, n as TextEditorToolbarProps, r as TextEditor, t as TextEditorToolbar } from "./index-D9bKlLiM.mjs";
27
27
  import { n as CMSLayoutProps, r as CMSLayoutUser, t as CMSLayout } from "./index-teY5hw2R.mjs";
28
28
  import { n as PaymentLayoutUser, t as PaymentLayout } from "./index-DJiiPHPf.mjs";
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{Button as e}from"./ui/button.mjs";import{Paragraph as t,paragraphVariants as n}from"./typography/paragraph.mjs";import{Card as r,CardAction as i,CardContent as a,CardDescription as o,CardFooter as s,CardHeader as c,CardTitle as l}from"./ui/card.mjs";import{Skeleton as u}from"./ui/skeleton.mjs";import{Image as d}from"./ui/image.mjs";import{GridProductCard as f}from"./cards/grid-product-card.mjs";import{ProductCard as p}from"./cards/product-card.mjs";import{SimpleCard as m}from"./cards/simple-card.mjs";import{Flex as h}from"./layouts/flex.mjs";import{CountryDisplay as g}from"./data-display/country.mjs";import{DataList as _,DataListItem as v}from"./data-display/data-list.mjs";import{t as y}from"./date-Nsz0Pewe.mjs";import{Badge as b,badgeVariants as x}from"./ui/badge.mjs";import{Tooltip as S,TooltipContent as C,TooltipProvider as w,TooltipTrigger as T}from"./ui/tooltip.mjs";import{DateTooltip as E}from"./data-display/date-tooltip.mjs";import{EmptyDisplay as D}from"./data-display/empty.mjs";import{NameDisplay as O}from"./data-display/name.mjs";import{PhoneNumberDisplay as k}from"./data-display/phone-number.mjs";import{RoleBadge as A}from"./data-display/role-badge.mjs";import{Statistic as j}from"./data-display/statistic.mjs";import{Avatar as M,AvatarFallback as N,AvatarImage as P}from"./ui/avatar.mjs";import{UserDataDisplay as F}from"./data-display/user.mjs";import{AlertDialog as I,AlertDialogAction as L,AlertDialogCancel as R,AlertDialogContent as z,AlertDialogDescription as B,AlertDialogFooter as V,AlertDialogHeader as H,AlertDialogOverlay as U,AlertDialogPortal as W,AlertDialogTitle as G,AlertDialogTrigger as K}from"./ui/alert-dialog.mjs";import{ConfirmDialog as q}from"./dialogs/confirm-dialog.mjs";import{Title as J}from"./typography/title.mjs";import{Sheet as Y,SheetClose as X,SheetContent as Z,SheetDescription as Q,SheetFooter as $,SheetHeader as ee,SheetTitle as te,SheetTrigger as ne}from"./ui/sheet.mjs";import{DetailDialog as re}from"./dialogs/detail-dialog/index.mjs";import{ErrorDialog as ie}from"./dialogs/error-dialog.mjs";import{Dialog as ae,DialogClose as oe,DialogContent as se,DialogDescription as ce,DialogFooter as le,DialogHeader as ue,DialogOverlay as de,DialogPortal as fe,DialogTitle as pe,DialogTrigger as me}from"./ui/dialog.mjs";import{LoadingDialog as he}from"./dialogs/loading-dialog.mjs";import{ActivityHeatmapChart as ge,CandlestickChart as _e,ConversionFunnelChart as ve,CorrelationScatterChart as ye,DonutChart as be,GainLossBarChart as xe,IndexedPerformanceLineChart as Se,MetricRadarChart as Ce,MirroredBarChart as we,OrdersBarChart as Te,PortfolioAllocationTreemap as Ee,PriceRangeAreaChart as De,RevenueAreaChart as Oe,RevenueOrdersComposedChart as ke,SalesTargetRadialChart as Ae,SankeyFlowChart as je,SparklineChart as Me,StackedAreaChart as Ne,TopProductsBarChart as Pe,VolumeBarChart as Fe,WaterfallChart as Ie,computeIndexedSeries as Le,formatCompactNumber as Re,formatCurrency as ze,formatPercent as Be,formatSignedPercent as Ve,getChartColor as He,getDirectionColor as Ue,toDateLabel as We}from"./features/charts/index.mjs";import{Description as Ge,DescriptionBadge as Ke,DescriptionBoolean as qe,DescriptionCopy as Je,DescriptionDate as Ye,DescriptionEmpty as Xe,DescriptionHeader as Ze,DescriptionImages as Qe,DescriptionItem as $e,DescriptionLink as et,DescriptionLongText as tt,DescriptionName as nt,DescriptionNumberPhone as rt,DescriptionSection as it,DescriptionStatistic as at,DescriptionStatus as ot,DescriptionTagList as st,DescriptionUser as ct}from"./features/descriptions/index.mjs";import{Command as lt,CommandDialog as ut,CommandEmpty as dt,CommandGroup as ft,CommandInput as pt,CommandItem as mt,CommandList as ht,CommandSeparator as gt,CommandShortcut as _t}from"./ui/command.mjs";import{t as vt}from"./search-modal-Cdmi2iyV.mjs";import{A as yt,C as bt,D as xt,E as St,F as Ct,G as wt,H as Tt,I as Et,K as Dt,L as Ot,M as kt,N as At,O as jt,P as Mt,Q as Nt,R as Pt,S as Ft,T as It,U as Lt,V as Rt,W as zt,_ as Bt,a as Vt,b as Ht,c as Ut,d as Wt,f as Gt,g as Kt,h as qt,i as Jt,j as Yt,k as Xt,l as Zt,m as Qt,n as $t,o as en,p as tn,r as nn,s as rn,t as an,u as on,v as sn,w as cn,x as ln,y as un}from"./tables-BGzwkdFO.mjs";import{Checkbox as dn}from"./ui/checkbox.mjs";import{DropdownMenu as fn,DropdownMenuCheckboxItem as pn,DropdownMenuContent as mn,DropdownMenuGroup as hn,DropdownMenuItem as gn,DropdownMenuLabel as _n,DropdownMenuPortal as vn,DropdownMenuRadioGroup as yn,DropdownMenuRadioItem as bn,DropdownMenuSeparator as xn,DropdownMenuShortcut as Sn,DropdownMenuSub as Cn,DropdownMenuSubContent as wn,DropdownMenuSubTrigger as Tn,DropdownMenuTrigger as En}from"./ui/dropdown-menu.mjs";import{Spinner as Dn}from"./ui/spinner.mjs";import{ResizableHandle as On,ResizablePanel as kn,ResizablePanelGroup as An}from"./ui/resizable.mjs";import{A as jn,B as Mn,C as Nn,D as Pn,E as Fn,F as In,G as Ln,H as Rn,I as zn,K as Bn,L as Vn,M as Hn,N as Un,O as Wn,P as Gn,R as Kn,S as qn,T as Jn,U as Yn,V as Xn,W as Zn,_ as Qn,a as $n,b as er,c as tr,d as nr,f as rr,g as ir,h as ar,i as or,j as sr,k as cr,l as lr,m as ur,n as dr,o as fr,p as pr,r as mr,s as hr,t as gr,u as _r,v as vr,w as yr,x as br,y as xr,z as Sr}from"./tanstack-form-DJMaMeUh.mjs";import{Popover as Cr,PopoverAnchor as wr,PopoverClose as Tr,PopoverContent as Er,PopoverTrigger as Dr}from"./ui/popover.mjs";import{n as Or,t as kr}from"./text-editor-BYE2-G5K.mjs";import{Input as Ar}from"./ui/input.mjs";import{Separator as jr}from"./ui/separator.mjs";import{t as Mr}from"./cms-layout-ePySxIQN.mjs";import{t as Nr}from"./payment-layout-DS5CEH1h.mjs";import{Grid as Pr}from"./layouts/grid.mjs";import{FeatureDeveloping as Fr}from"./pages/FeatureDeveloping.mjs";import{FeatureFixing as Ir}from"./pages/FeatureFixing.mjs";import{NotAuthorized as Lr}from"./pages/NotAuthorized.mjs";import{NotFound as Rr}from"./pages/NotFound.mjs";import{n as zr,r as Br,t as Vr}from"./alert-OD1KJTEV.mjs";import{Label as Hr}from"./ui/label.mjs";import{LoginPage as Ur}from"./pages/LoginPage.mjs";import{RegisterPage as Wr}from"./pages/RegisterPage.mjs";import{InputOTP as Gr,InputOTPGroup as Kr,InputOTPSeparator as qr,InputOTPSlot as Jr}from"./ui/input-otp.mjs";import{VerifyEmailPage as Yr}from"./pages/VerifyEmailPage.mjs";import{Google as Xr}from"./systems/google.mjs";import{AddNewBtn as Zr}from"./ui/buttons/add-new.mjs";import{EditBtn as Qr}from"./ui/buttons/edit.mjs";import{RefreshBtn as $r}from"./ui/buttons/refresh.mjs";import{TrashBtn as ei}from"./ui/buttons/trash.mjs";import{UploadImageBtn as ti}from"./ui/buttons/upload-image.mjs";import{SearchInput as ni}from"./ui/inputs/search-input.mjs";import{AspectRatio as ri}from"./ui/aspect-ratio.mjs";import{Breadcrumb as ii,BreadcrumbEllipsis as ai,BreadcrumbItem as oi,BreadcrumbLink as si,BreadcrumbList as ci,BreadcrumbPage as li,BreadcrumbSeparator as ui}from"./ui/breadcrumb.mjs";import{ButtonGroup as di,ButtonGroupSeparator as fi,ButtonGroupText as pi,buttonGroupVariants as mi}from"./ui/button-group.mjs";import{Calendar as hi,CalendarDayButton as gi}from"./ui/calendar.mjs";import{Carousel as _i,CarouselContent as vi,CarouselItem as yi,CarouselNext as bi,CarouselPrevious as xi}from"./ui/carousel.mjs";import{ChartContainer as Si,ChartLegend as Ci,ChartLegendContent as wi,ChartStyle as Ti,ChartTooltip as Ei,ChartTooltipContent as Di,useChart as Oi}from"./ui/chart.mjs";import{Collapsible as ki,CollapsibleContent as Ai,CollapsibleTrigger as ji}from"./ui/collapsible.mjs";import{ContextMenu as Mi,ContextMenuCheckboxItem as Ni,ContextMenuContent as Pi,ContextMenuGroup as Fi,ContextMenuItem as Ii,ContextMenuLabel as Li,ContextMenuPortal as Ri,ContextMenuRadioGroup as zi,ContextMenuRadioItem as Bi,ContextMenuSeparator as Vi,ContextMenuShortcut as Hi,ContextMenuSub as Ui,ContextMenuSubContent as Wi,ContextMenuSubTrigger as Gi,ContextMenuTrigger as Ki}from"./ui/context-menu.mjs";import{Drawer as qi,DrawerClose as Ji,DrawerContent as Yi,DrawerDescription as Xi,DrawerFooter as Zi,DrawerHeader as Qi,DrawerOverlay as $i,DrawerPortal as ea,DrawerTitle as ta,DrawerTrigger as na}from"./ui/drawer.mjs";import{Empty as ra,EmptyContent as ia,EmptyDescription as aa,EmptyHeader as oa,EmptyMedia as sa,EmptyTitle as ca}from"./ui/empty.mjs";import{Progress as la}from"./ui/progress.mjs";import{FileUploader as ua}from"./ui/file-uploader.mjs";import{Form as da,FormControl as fa,FormDescription as pa,FormField as ma,FormItem as ha,FormLabel as ga,FormMessage as _a,useFormField as va}from"./ui/form.mjs";import{HoverCard as ya,HoverCardContent as ba,HoverCardTrigger as xa}from"./ui/hover-card.mjs";import{Item as Sa,ItemActions as Ca,ItemContent as wa,ItemDescription as Ta,ItemFooter as Ea,ItemGroup as Da,ItemHeader as Oa,ItemMedia as ka,ItemSeparator as Aa,ItemTitle as ja}from"./ui/item.mjs";import{Menubar as Ma,MenubarCheckboxItem as Na,MenubarContent as Pa,MenubarGroup as Fa,MenubarItem as Ia,MenubarLabel as La,MenubarMenu as Ra,MenubarPortal as za,MenubarRadioGroup as Ba,MenubarRadioItem as Va,MenubarSeparator as Ha,MenubarShortcut as Ua,MenubarSub as Wa,MenubarSubContent as Ga,MenubarSubTrigger as Ka,MenubarTrigger as qa}from"./ui/menubar.mjs";import{MultipleSelector as Ja,useDebounce as Ya}from"./ui/multi-select.mjs";import{NavigationMenu as Xa,NavigationMenuContent as Za,NavigationMenuIndicator as Qa,NavigationMenuItem as $a,NavigationMenuLink as eo,NavigationMenuList as to,NavigationMenuTrigger as no,NavigationMenuViewport as ro,navigationMenuTriggerStyle as io}from"./ui/navigation-menu.mjs";import{Pagination as ao,PaginationContent as oo,PaginationEllipsis as so,PaginationItem as co,PaginationLink as lo,PaginationNext as uo,PaginationPrevious as fo}from"./ui/pagination.mjs";import{RadioGroup as po,RadioGroupItem as mo}from"./ui/radio-group.mjs";import{ScrollArea as ho,ScrollBar as go}from"./ui/scroll-area.mjs";import{Select as _o,SelectContent as vo,SelectGroup as yo,SelectItem as bo,SelectLabel as xo,SelectSeparator as So,SelectTrigger as Co,SelectValue as wo}from"./ui/select.mjs";import{Slider as To}from"./ui/slider.mjs";import{Toaster as Eo,toast as Do}from"./ui/sonner.mjs";import{Switch as Oo}from"./ui/switch.mjs";import{Table as ko,TableBody as Ao,TableCaption as jo,TableCell as Mo,TableFooter as No,TableHead as Po,TableHeader as Fo,TableRow as Io}from"./ui/table.mjs";import{Tabs as Lo,TabsContent as Ro,TabsList as zo,TabsTrigger as Bo}from"./ui/tabs.mjs";import{Textarea as Vo}from"./ui/textarea.mjs";import{Toggle as Ho,toggleVariants as Uo}from"./ui/toggle.mjs";import{ToggleGroup as Wo,ToggleGroupItem as Go}from"./ui/toggle-group.mjs";export{ge as ActivityHeatmapChart,Zr as AddNewBtn,Vr as Alert,zr as AlertDescription,I as AlertDialog,L as AlertDialogAction,R as AlertDialogCancel,z as AlertDialogContent,B as AlertDialogDescription,V as AlertDialogFooter,H as AlertDialogHeader,U as AlertDialogOverlay,W as AlertDialogPortal,G as AlertDialogTitle,K as AlertDialogTrigger,Br as AlertTitle,gr as ArrayCol,dr as ArrayHeaderRow,ri as AspectRatio,M as Avatar,N as AvatarFallback,P as AvatarImage,b as Badge,ii as Breadcrumb,ai as BreadcrumbEllipsis,oi as BreadcrumbItem,si as BreadcrumbLink,ci as BreadcrumbList,li as BreadcrumbPage,ui as BreadcrumbSeparator,e as Button,di as ButtonGroup,fi as ButtonGroupSeparator,pi as ButtonGroupText,Mr as CMSLayout,hi as Calendar,gi as CalendarDayButton,_e as CandlestickChart,r as Card,i as CardAction,a as CardContent,o as CardDescription,s as CardFooter,c as CardHeader,l as CardTitle,_i as Carousel,vi as CarouselContent,yi as CarouselItem,bi as CarouselNext,xi as CarouselPrevious,Si as ChartContainer,Ci as ChartLegend,wi as ChartLegendContent,Ti as ChartStyle,Ei as ChartTooltip,Di as ChartTooltipContent,dn as Checkbox,mr as CheckboxField,ki as Collapsible,Ai as CollapsibleContent,ji as CollapsibleTrigger,or as ComboboxField,lt as Command,ut as CommandDialog,dt as CommandEmpty,ft as CommandGroup,pt as CommandInput,mt as CommandItem,ht as CommandList,gt as CommandSeparator,_t as CommandShortcut,q as ConfirmDialog,Mi as ContextMenu,Ni as ContextMenuCheckboxItem,Pi as ContextMenuContent,Fi as ContextMenuGroup,Ii as ContextMenuItem,Li as ContextMenuLabel,Ri as ContextMenuPortal,zi as ContextMenuRadioGroup,Bi as ContextMenuRadioItem,Vi as ContextMenuSeparator,Hi as ContextMenuShortcut,Ui as ContextMenuSub,Wi as ContextMenuSubContent,Gi as ContextMenuSubTrigger,Ki as ContextMenuTrigger,ve as ConversionFunnelChart,ye as CorrelationScatterChart,g as CountryDisplay,_ as DataList,v as DataListItem,y as DateDisplay,$n as DateField,E as DateTooltip,Ge as Description,Ke as DescriptionBadge,qe as DescriptionBoolean,Je as DescriptionCopy,Ye as DescriptionDate,Xe as DescriptionEmpty,Ze as DescriptionHeader,Qe as DescriptionImages,$e as DescriptionItem,et as DescriptionLink,tt as DescriptionLongText,nt as DescriptionName,rt as DescriptionNumberPhone,it as DescriptionSection,at as DescriptionStatistic,ot as DescriptionStatus,st as DescriptionTagList,ct as DescriptionUser,re as DetailDialog,ae as Dialog,oe as DialogClose,se as DialogContent,ce as DialogDescription,le as DialogFooter,ue as DialogHeader,de as DialogOverlay,fe as DialogPortal,pe as DialogTitle,me as DialogTrigger,be as DonutChart,qi as Drawer,Ji as DrawerClose,Yi as DrawerContent,Xi as DrawerDescription,Zi as DrawerFooter,Qi as DrawerHeader,$i as DrawerOverlay,ea as DrawerPortal,ta as DrawerTitle,na as DrawerTrigger,fn as DropdownMenu,pn as DropdownMenuCheckboxItem,mn as DropdownMenuContent,hn as DropdownMenuGroup,gn as DropdownMenuItem,_n as DropdownMenuLabel,vn as DropdownMenuPortal,yn as DropdownMenuRadioGroup,bn as DropdownMenuRadioItem,xn as DropdownMenuSeparator,Sn as DropdownMenuShortcut,Cn as DropdownMenuSub,wn as DropdownMenuSubContent,Tn as DropdownMenuSubTrigger,En as DropdownMenuTrigger,Qr as EditBtn,fr as EmailField,ra as Empty,ia as EmptyContent,aa as EmptyDescription,D as EmptyDisplay,oa as EmptyHeader,sa as EmptyMedia,ca as EmptyTitle,ie as ErrorDialog,Fr as FeatureDeveloping,Ir as FeatureFixing,hr as Field,tr as FieldContent,lr as FieldContentMain,_r as FieldError,nr as FieldGroup,rr as FieldLabel,pr as FieldSeparator,ua as FileUploader,h as Flex,da as Form,fa as FormControl,pa as FormDescription,ma as FormField,ha as FormItem,ga as FormLabel,_a as FormMessage,xe as GainLossBarChart,Xr as Google,Pr as Grid,f as GridProductCard,ya as HoverCard,ba as HoverCardContent,xa as HoverCardTrigger,d as Image,Se as IndexedPerformanceLineChart,Ar as Input,Gr as InputOTP,Kr as InputOTPGroup,qr as InputOTPSeparator,Jr as InputOTPSlot,Sa as Item,Ca as ItemActions,wa as ItemContent,Ta as ItemDescription,Ea as ItemFooter,Da as ItemGroup,Oa as ItemHeader,ka as ItemMedia,Aa as ItemSeparator,ja as ItemTitle,Hr as Label,he as LoadingDialog,Ur as LoginPage,Ma as Menubar,Na as MenubarCheckboxItem,Pa as MenubarContent,Fa as MenubarGroup,Ia as MenubarItem,La as MenubarLabel,Ra as MenubarMenu,za as MenubarPortal,Ba as MenubarRadioGroup,Va as MenubarRadioItem,Ha as MenubarSeparator,Ua as MenubarShortcut,Wa as MenubarSub,Ga as MenubarSubContent,Ka as MenubarSubTrigger,qa as MenubarTrigger,Ce as MetricRadarChart,we as MirroredBarChart,Ja as MultipleSelector,O as NameDisplay,Xa as NavigationMenu,Za as NavigationMenuContent,Qa as NavigationMenuIndicator,$a as NavigationMenuItem,eo as NavigationMenuLink,to as NavigationMenuList,no as NavigationMenuTrigger,ro as NavigationMenuViewport,Lr as NotAuthorized,Rr as NotFound,ur as NumberField,Te as OrdersBarChart,ao as Pagination,oo as PaginationContent,so as PaginationEllipsis,co as PaginationItem,lo as PaginationLink,uo as PaginationNext,fo as PaginationPrevious,t as Paragraph,ar as PasswordField,Nr as PaymentLayout,k as PhoneNumberDisplay,Cr as Popover,wr as PopoverAnchor,Tr as PopoverClose,Er as PopoverContent,Dr as PopoverTrigger,Ee as PortfolioAllocationTreemap,De as PriceRangeAreaChart,p as ProductCard,la as Progress,po as RadioGroup,ir as RadioGroupField,mo as RadioGroupItem,$r as RefreshBtn,Wr as RegisterPage,On as ResizableHandle,kn as ResizablePanel,An as ResizablePanelGroup,Oe as RevenueAreaChart,ke as RevenueOrdersComposedChart,A as RoleBadge,Ae as SalesTargetRadialChart,je as SankeyFlowChart,ho as ScrollArea,go as ScrollBar,ni as SearchInput,vt as SearchModal,_o as Select,vo as SelectContent,Qn as SelectField,yo as SelectGroup,bo as SelectItem,xo as SelectLabel,So as SelectSeparator,Co as SelectTrigger,wo as SelectValue,jr as Separator,Y as Sheet,X as SheetClose,Z as SheetContent,Q as SheetDescription,$ as SheetFooter,ee as SheetHeader,te as SheetTitle,ne as SheetTrigger,vr as SimpleArrayField,xr as SimpleBooleanField,m as SimpleCard,er as SimpleComboboxField,br as SimpleDateField,qn as SimpleEmailField,Nn as SimpleNumberField,yr as SimplePasswordField,Jn as SimpleRadioGroupField,Fn as SimpleSelectField,Pn as SimpleTextField,Wn as SimpleTextareaField,u as Skeleton,To as Slider,Me as SparklineChart,Dn as Spinner,Ne as StackedAreaChart,j as Statistic,Oo as Switch,cr as SwitchField,ko as Table,Ao as TableBody,jo as TableCaption,Mo as TableCell,No as TableFooter,Po as TableHead,Fo as TableHeader,Io as TableRow,Lo as Tabs,Ro as TabsContent,zo as TabsList,Bo as TabsTrigger,jn as TanStackActionSubmit,sr as TanStackActionsForm,Hn as TanStackCardForm,Un as TanStackContainerForm,Gn as TanStackDialogForm,In as TanStackFieldGroup,zn as TanStackPopoverForm,Vn as TanStackSectionForm,Kn as TanStackTitleField,kr as TextEditor,Sr as TextEditorField,Or as TextEditorToolbar,Mn as TextField,Vo as Textarea,Xn as TextareaField,J as Title,Eo as Toaster,Ho as Toggle,Wo as ToggleGroup,Go as ToggleGroupItem,S as Tooltip,C as TooltipContent,w as TooltipProvider,T as TooltipTrigger,Pe as TopProductsBarChart,ei as TrashBtn,an as UITableAnalysisPanel,$t as UITableAvatarNameDisplay,nn as UITableBadgeDisplay,Dt as UITableBody,Jt as UITableBooleanDisplay,wt as UITableCell,zt as UITableCellActions,Lt as UITableCellSelect,xt as UITableContainer,Vt as UITableCurrencyDisplay,en as UITableDateDisplay,rn as UITableDescriptionDisplay,Ut as UITableEditButton,Zt as UITableEmailDisplay,Nt as UITableEmpty,Tt as UITableEmptyDisplay,on as UITableFilter,Rt as UITableFooter,Pt as UITableFooterRow,Ot as UITableHead,Ct as UITableHeadCell,Et as UITableHeadCellOption,Mt as UITableHeadCellSelect,At as UITableHeadRow,kt as UITableInnerTable,Yt as UITableInnerWrapper,Wt as UITableListDisplay,yt as UITableLoadMore,Gt as UITableMoreButton,tn as UITableNameDisplay,Qt as UITablePermalink,qt as UITablePhoneNumberDisplay,Kt as UITableProgressDisplay,St as UITableProvider,Bt as UITableRemoveButton,Xt as UITableRow,sn as UITableStatisticDisplay,un as UITableStatusDisplay,Ht as UITableSummaryBar,ln as UITableToggleButton,Ft as UITableTooltip,bt as UITableTooltipActions,cn as UITableTooltipFilter,It as UITableUserDataDisplay,jt as UITableWrapper,ti as UploadImageBtn,F as UserDataDisplay,Yr as VerifyEmailPage,Fe as VolumeBarChart,Ie as WaterfallChart,x as badgeVariants,mi as buttonGroupVariants,Le as computeIndexedSeries,Re as formatCompactNumber,ze as formatCurrency,Be as formatPercent,Ve as formatSignedPercent,He as getChartColor,Ue as getDirectionColor,io as navigationMenuTriggerStyle,n as paragraphVariants,We as toDateLabel,Do as toast,Uo as toggleVariants,Oi as useChart,Ya as useDebounce,va as useFormField,Ln as useTanStackFieldContext,Rn as useTanStackForm,Bn as useTanStackFormContext,Yn as withTanStackFieldGroup,Zn as withTanStackForm};
1
+ import{Button as e}from"./ui/button.mjs";import{Paragraph as t,paragraphVariants as n}from"./typography/paragraph.mjs";import{Card as r,CardAction as i,CardContent as a,CardDescription as o,CardFooter as s,CardHeader as c,CardTitle as l}from"./ui/card.mjs";import{Skeleton as u}from"./ui/skeleton.mjs";import{Image as d}from"./ui/image.mjs";import{GridProductCard as f}from"./cards/grid-product-card.mjs";import{ProductCard as p}from"./cards/product-card.mjs";import{SimpleCard as m}from"./cards/simple-card.mjs";import{Flex as h}from"./layouts/flex.mjs";import{CountryDisplay as g}from"./data-display/country.mjs";import{DataList as _,DataListItem as v}from"./data-display/data-list.mjs";import{t as y}from"./date-Nsz0Pewe.mjs";import{Badge as b,badgeVariants as x}from"./ui/badge.mjs";import{Tooltip as S,TooltipContent as C,TooltipProvider as w,TooltipTrigger as T}from"./ui/tooltip.mjs";import{DateTooltip as E}from"./data-display/date-tooltip.mjs";import{EmptyDisplay as D}from"./data-display/empty.mjs";import{NameDisplay as O}from"./data-display/name.mjs";import{PhoneNumberDisplay as k}from"./data-display/phone-number.mjs";import{RoleBadge as A}from"./data-display/role-badge.mjs";import{Statistic as j}from"./data-display/statistic.mjs";import{Avatar as M,AvatarFallback as N,AvatarImage as P}from"./ui/avatar.mjs";import{UserDataDisplay as F}from"./data-display/user.mjs";import{AlertDialog as I,AlertDialogAction as L,AlertDialogCancel as R,AlertDialogContent as z,AlertDialogDescription as B,AlertDialogFooter as V,AlertDialogHeader as H,AlertDialogOverlay as U,AlertDialogPortal as W,AlertDialogTitle as G,AlertDialogTrigger as K}from"./ui/alert-dialog.mjs";import{ConfirmDialog as q}from"./dialogs/confirm-dialog.mjs";import{Title as J}from"./typography/title.mjs";import{Sheet as Y,SheetClose as X,SheetContent as Z,SheetDescription as Q,SheetFooter as $,SheetHeader as ee,SheetTitle as te,SheetTrigger as ne}from"./ui/sheet.mjs";import{DetailDialog as re}from"./dialogs/detail-dialog/index.mjs";import{ErrorDialog as ie}from"./dialogs/error-dialog.mjs";import{Dialog as ae,DialogClose as oe,DialogContent as se,DialogDescription as ce,DialogFooter as le,DialogHeader as ue,DialogOverlay as de,DialogPortal as fe,DialogTitle as pe,DialogTrigger as me}from"./ui/dialog.mjs";import{LoadingDialog as he}from"./dialogs/loading-dialog.mjs";import{ActivityHeatmapChart as ge,CandlestickChart as _e,ConversionFunnelChart as ve,CorrelationScatterChart as ye,DonutChart as be,GainLossBarChart as xe,IndexedPerformanceLineChart as Se,MetricRadarChart as Ce,MirroredBarChart as we,OrdersBarChart as Te,PortfolioAllocationTreemap as Ee,PriceRangeAreaChart as De,RevenueAreaChart as Oe,RevenueOrdersComposedChart as ke,SalesTargetRadialChart as Ae,SankeyFlowChart as je,SparklineChart as Me,StackedAreaChart as Ne,TopProductsBarChart as Pe,VolumeBarChart as Fe,WaterfallChart as Ie,computeIndexedSeries as Le,formatCompactNumber as Re,formatCurrency as ze,formatPercent as Be,formatSignedPercent as Ve,getChartColor as He,getDirectionColor as Ue,toDateLabel as We}from"./features/charts/index.mjs";import{Description as Ge,DescriptionBadge as Ke,DescriptionBoolean as qe,DescriptionCopy as Je,DescriptionDate as Ye,DescriptionEmpty as Xe,DescriptionHeader as Ze,DescriptionImages as Qe,DescriptionItem as $e,DescriptionLink as et,DescriptionLongText as tt,DescriptionName as nt,DescriptionNumberPhone as rt,DescriptionSection as it,DescriptionStatistic as at,DescriptionStatus as ot,DescriptionTagList as st,DescriptionUser as ct}from"./features/descriptions/index.mjs";import{Command as lt,CommandDialog as ut,CommandEmpty as dt,CommandGroup as ft,CommandInput as pt,CommandItem as mt,CommandList as ht,CommandSeparator as gt,CommandShortcut as _t}from"./ui/command.mjs";import{t as vt}from"./search-modal-Cdmi2iyV.mjs";import{A as yt,C as bt,D as xt,E as St,F as Ct,G as wt,H as Tt,I as Et,K as Dt,L as Ot,M as kt,N as At,O as jt,P as Mt,Q as Nt,R as Pt,S as Ft,T as It,U as Lt,V as Rt,W as zt,_ as Bt,a as Vt,b as Ht,c as Ut,d as Wt,f as Gt,g as Kt,h as qt,i as Jt,j as Yt,k as Xt,l as Zt,m as Qt,n as $t,o as en,p as tn,r as nn,s as rn,t as an,u as on,v as sn,w as cn,x as ln,y as un}from"./tables-BGzwkdFO.mjs";import{Checkbox as dn}from"./ui/checkbox.mjs";import{DropdownMenu as fn,DropdownMenuCheckboxItem as pn,DropdownMenuContent as mn,DropdownMenuGroup as hn,DropdownMenuItem as gn,DropdownMenuLabel as _n,DropdownMenuPortal as vn,DropdownMenuRadioGroup as yn,DropdownMenuRadioItem as bn,DropdownMenuSeparator as xn,DropdownMenuShortcut as Sn,DropdownMenuSub as Cn,DropdownMenuSubContent as wn,DropdownMenuSubTrigger as Tn,DropdownMenuTrigger as En}from"./ui/dropdown-menu.mjs";import{Spinner as Dn}from"./ui/spinner.mjs";import{ResizableHandle as On,ResizablePanel as kn,ResizablePanelGroup as An}from"./ui/resizable.mjs";import{A as jn,B as Mn,C as Nn,D as Pn,E as Fn,F as In,G as Ln,H as Rn,I as zn,K as Bn,L as Vn,M as Hn,N as Un,O as Wn,P as Gn,R as Kn,S as qn,T as Jn,U as Yn,V as Xn,W as Zn,_ as Qn,a as $n,b as er,c as tr,d as nr,f as rr,g as ir,h as ar,i as or,j as sr,k as cr,l as lr,m as ur,n as dr,o as fr,p as pr,r as mr,s as hr,t as gr,u as _r,v as vr,w as yr,x as br,y as xr,z as Sr}from"./tanstack-form-CKAWexet.mjs";import{Popover as Cr,PopoverAnchor as wr,PopoverClose as Tr,PopoverContent as Er,PopoverTrigger as Dr}from"./ui/popover.mjs";import{n as Or,t as kr}from"./text-editor-BYE2-G5K.mjs";import{Input as Ar}from"./ui/input.mjs";import{Separator as jr}from"./ui/separator.mjs";import{t as Mr}from"./cms-layout-ePySxIQN.mjs";import{t as Nr}from"./payment-layout-DS5CEH1h.mjs";import{Grid as Pr}from"./layouts/grid.mjs";import{FeatureDeveloping as Fr}from"./pages/FeatureDeveloping.mjs";import{FeatureFixing as Ir}from"./pages/FeatureFixing.mjs";import{NotAuthorized as Lr}from"./pages/NotAuthorized.mjs";import{NotFound as Rr}from"./pages/NotFound.mjs";import{n as zr,r as Br,t as Vr}from"./alert-OD1KJTEV.mjs";import{Label as Hr}from"./ui/label.mjs";import{LoginPage as Ur}from"./pages/LoginPage.mjs";import{RegisterPage as Wr}from"./pages/RegisterPage.mjs";import{InputOTP as Gr,InputOTPGroup as Kr,InputOTPSeparator as qr,InputOTPSlot as Jr}from"./ui/input-otp.mjs";import{VerifyEmailPage as Yr}from"./pages/VerifyEmailPage.mjs";import{Google as Xr}from"./systems/google.mjs";import{AddNewBtn as Zr}from"./ui/buttons/add-new.mjs";import{EditBtn as Qr}from"./ui/buttons/edit.mjs";import{RefreshBtn as $r}from"./ui/buttons/refresh.mjs";import{TrashBtn as ei}from"./ui/buttons/trash.mjs";import{UploadImageBtn as ti}from"./ui/buttons/upload-image.mjs";import{SearchInput as ni}from"./ui/inputs/search-input.mjs";import{AspectRatio as ri}from"./ui/aspect-ratio.mjs";import{Breadcrumb as ii,BreadcrumbEllipsis as ai,BreadcrumbItem as oi,BreadcrumbLink as si,BreadcrumbList as ci,BreadcrumbPage as li,BreadcrumbSeparator as ui}from"./ui/breadcrumb.mjs";import{ButtonGroup as di,ButtonGroupSeparator as fi,ButtonGroupText as pi,buttonGroupVariants as mi}from"./ui/button-group.mjs";import{Calendar as hi,CalendarDayButton as gi}from"./ui/calendar.mjs";import{Carousel as _i,CarouselContent as vi,CarouselItem as yi,CarouselNext as bi,CarouselPrevious as xi}from"./ui/carousel.mjs";import{ChartContainer as Si,ChartLegend as Ci,ChartLegendContent as wi,ChartStyle as Ti,ChartTooltip as Ei,ChartTooltipContent as Di,useChart as Oi}from"./ui/chart.mjs";import{Collapsible as ki,CollapsibleContent as Ai,CollapsibleTrigger as ji}from"./ui/collapsible.mjs";import{ContextMenu as Mi,ContextMenuCheckboxItem as Ni,ContextMenuContent as Pi,ContextMenuGroup as Fi,ContextMenuItem as Ii,ContextMenuLabel as Li,ContextMenuPortal as Ri,ContextMenuRadioGroup as zi,ContextMenuRadioItem as Bi,ContextMenuSeparator as Vi,ContextMenuShortcut as Hi,ContextMenuSub as Ui,ContextMenuSubContent as Wi,ContextMenuSubTrigger as Gi,ContextMenuTrigger as Ki}from"./ui/context-menu.mjs";import{Drawer as qi,DrawerClose as Ji,DrawerContent as Yi,DrawerDescription as Xi,DrawerFooter as Zi,DrawerHeader as Qi,DrawerOverlay as $i,DrawerPortal as ea,DrawerTitle as ta,DrawerTrigger as na}from"./ui/drawer.mjs";import{Empty as ra,EmptyContent as ia,EmptyDescription as aa,EmptyHeader as oa,EmptyMedia as sa,EmptyTitle as ca}from"./ui/empty.mjs";import{Progress as la}from"./ui/progress.mjs";import{FileUploader as ua}from"./ui/file-uploader.mjs";import{Form as da,FormControl as fa,FormDescription as pa,FormField as ma,FormItem as ha,FormLabel as ga,FormMessage as _a,useFormField as va}from"./ui/form.mjs";import{HoverCard as ya,HoverCardContent as ba,HoverCardTrigger as xa}from"./ui/hover-card.mjs";import{Item as Sa,ItemActions as Ca,ItemContent as wa,ItemDescription as Ta,ItemFooter as Ea,ItemGroup as Da,ItemHeader as Oa,ItemMedia as ka,ItemSeparator as Aa,ItemTitle as ja}from"./ui/item.mjs";import{Menubar as Ma,MenubarCheckboxItem as Na,MenubarContent as Pa,MenubarGroup as Fa,MenubarItem as Ia,MenubarLabel as La,MenubarMenu as Ra,MenubarPortal as za,MenubarRadioGroup as Ba,MenubarRadioItem as Va,MenubarSeparator as Ha,MenubarShortcut as Ua,MenubarSub as Wa,MenubarSubContent as Ga,MenubarSubTrigger as Ka,MenubarTrigger as qa}from"./ui/menubar.mjs";import{MultipleSelector as Ja,useDebounce as Ya}from"./ui/multi-select.mjs";import{NavigationMenu as Xa,NavigationMenuContent as Za,NavigationMenuIndicator as Qa,NavigationMenuItem as $a,NavigationMenuLink as eo,NavigationMenuList as to,NavigationMenuTrigger as no,NavigationMenuViewport as ro,navigationMenuTriggerStyle as io}from"./ui/navigation-menu.mjs";import{Pagination as ao,PaginationContent as oo,PaginationEllipsis as so,PaginationItem as co,PaginationLink as lo,PaginationNext as uo,PaginationPrevious as fo}from"./ui/pagination.mjs";import{RadioGroup as po,RadioGroupItem as mo}from"./ui/radio-group.mjs";import{ScrollArea as ho,ScrollBar as go}from"./ui/scroll-area.mjs";import{Select as _o,SelectContent as vo,SelectGroup as yo,SelectItem as bo,SelectLabel as xo,SelectSeparator as So,SelectTrigger as Co,SelectValue as wo}from"./ui/select.mjs";import{Slider as To}from"./ui/slider.mjs";import{Toaster as Eo,toast as Do}from"./ui/sonner.mjs";import{Switch as Oo}from"./ui/switch.mjs";import{Table as ko,TableBody as Ao,TableCaption as jo,TableCell as Mo,TableFooter as No,TableHead as Po,TableHeader as Fo,TableRow as Io}from"./ui/table.mjs";import{Tabs as Lo,TabsContent as Ro,TabsList as zo,TabsTrigger as Bo}from"./ui/tabs.mjs";import{Textarea as Vo}from"./ui/textarea.mjs";import{Toggle as Ho,toggleVariants as Uo}from"./ui/toggle.mjs";import{ToggleGroup as Wo,ToggleGroupItem as Go}from"./ui/toggle-group.mjs";export{ge as ActivityHeatmapChart,Zr as AddNewBtn,Vr as Alert,zr as AlertDescription,I as AlertDialog,L as AlertDialogAction,R as AlertDialogCancel,z as AlertDialogContent,B as AlertDialogDescription,V as AlertDialogFooter,H as AlertDialogHeader,U as AlertDialogOverlay,W as AlertDialogPortal,G as AlertDialogTitle,K as AlertDialogTrigger,Br as AlertTitle,gr as ArrayCol,dr as ArrayHeaderRow,ri as AspectRatio,M as Avatar,N as AvatarFallback,P as AvatarImage,b as Badge,ii as Breadcrumb,ai as BreadcrumbEllipsis,oi as BreadcrumbItem,si as BreadcrumbLink,ci as BreadcrumbList,li as BreadcrumbPage,ui as BreadcrumbSeparator,e as Button,di as ButtonGroup,fi as ButtonGroupSeparator,pi as ButtonGroupText,Mr as CMSLayout,hi as Calendar,gi as CalendarDayButton,_e as CandlestickChart,r as Card,i as CardAction,a as CardContent,o as CardDescription,s as CardFooter,c as CardHeader,l as CardTitle,_i as Carousel,vi as CarouselContent,yi as CarouselItem,bi as CarouselNext,xi as CarouselPrevious,Si as ChartContainer,Ci as ChartLegend,wi as ChartLegendContent,Ti as ChartStyle,Ei as ChartTooltip,Di as ChartTooltipContent,dn as Checkbox,mr as CheckboxField,ki as Collapsible,Ai as CollapsibleContent,ji as CollapsibleTrigger,or as ComboboxField,lt as Command,ut as CommandDialog,dt as CommandEmpty,ft as CommandGroup,pt as CommandInput,mt as CommandItem,ht as CommandList,gt as CommandSeparator,_t as CommandShortcut,q as ConfirmDialog,Mi as ContextMenu,Ni as ContextMenuCheckboxItem,Pi as ContextMenuContent,Fi as ContextMenuGroup,Ii as ContextMenuItem,Li as ContextMenuLabel,Ri as ContextMenuPortal,zi as ContextMenuRadioGroup,Bi as ContextMenuRadioItem,Vi as ContextMenuSeparator,Hi as ContextMenuShortcut,Ui as ContextMenuSub,Wi as ContextMenuSubContent,Gi as ContextMenuSubTrigger,Ki as ContextMenuTrigger,ve as ConversionFunnelChart,ye as CorrelationScatterChart,g as CountryDisplay,_ as DataList,v as DataListItem,y as DateDisplay,$n as DateField,E as DateTooltip,Ge as Description,Ke as DescriptionBadge,qe as DescriptionBoolean,Je as DescriptionCopy,Ye as DescriptionDate,Xe as DescriptionEmpty,Ze as DescriptionHeader,Qe as DescriptionImages,$e as DescriptionItem,et as DescriptionLink,tt as DescriptionLongText,nt as DescriptionName,rt as DescriptionNumberPhone,it as DescriptionSection,at as DescriptionStatistic,ot as DescriptionStatus,st as DescriptionTagList,ct as DescriptionUser,re as DetailDialog,ae as Dialog,oe as DialogClose,se as DialogContent,ce as DialogDescription,le as DialogFooter,ue as DialogHeader,de as DialogOverlay,fe as DialogPortal,pe as DialogTitle,me as DialogTrigger,be as DonutChart,qi as Drawer,Ji as DrawerClose,Yi as DrawerContent,Xi as DrawerDescription,Zi as DrawerFooter,Qi as DrawerHeader,$i as DrawerOverlay,ea as DrawerPortal,ta as DrawerTitle,na as DrawerTrigger,fn as DropdownMenu,pn as DropdownMenuCheckboxItem,mn as DropdownMenuContent,hn as DropdownMenuGroup,gn as DropdownMenuItem,_n as DropdownMenuLabel,vn as DropdownMenuPortal,yn as DropdownMenuRadioGroup,bn as DropdownMenuRadioItem,xn as DropdownMenuSeparator,Sn as DropdownMenuShortcut,Cn as DropdownMenuSub,wn as DropdownMenuSubContent,Tn as DropdownMenuSubTrigger,En as DropdownMenuTrigger,Qr as EditBtn,fr as EmailField,ra as Empty,ia as EmptyContent,aa as EmptyDescription,D as EmptyDisplay,oa as EmptyHeader,sa as EmptyMedia,ca as EmptyTitle,ie as ErrorDialog,Fr as FeatureDeveloping,Ir as FeatureFixing,hr as Field,tr as FieldContent,lr as FieldContentMain,_r as FieldError,nr as FieldGroup,rr as FieldLabel,pr as FieldSeparator,ua as FileUploader,h as Flex,da as Form,fa as FormControl,pa as FormDescription,ma as FormField,ha as FormItem,ga as FormLabel,_a as FormMessage,xe as GainLossBarChart,Xr as Google,Pr as Grid,f as GridProductCard,ya as HoverCard,ba as HoverCardContent,xa as HoverCardTrigger,d as Image,Se as IndexedPerformanceLineChart,Ar as Input,Gr as InputOTP,Kr as InputOTPGroup,qr as InputOTPSeparator,Jr as InputOTPSlot,Sa as Item,Ca as ItemActions,wa as ItemContent,Ta as ItemDescription,Ea as ItemFooter,Da as ItemGroup,Oa as ItemHeader,ka as ItemMedia,Aa as ItemSeparator,ja as ItemTitle,Hr as Label,he as LoadingDialog,Ur as LoginPage,Ma as Menubar,Na as MenubarCheckboxItem,Pa as MenubarContent,Fa as MenubarGroup,Ia as MenubarItem,La as MenubarLabel,Ra as MenubarMenu,za as MenubarPortal,Ba as MenubarRadioGroup,Va as MenubarRadioItem,Ha as MenubarSeparator,Ua as MenubarShortcut,Wa as MenubarSub,Ga as MenubarSubContent,Ka as MenubarSubTrigger,qa as MenubarTrigger,Ce as MetricRadarChart,we as MirroredBarChart,Ja as MultipleSelector,O as NameDisplay,Xa as NavigationMenu,Za as NavigationMenuContent,Qa as NavigationMenuIndicator,$a as NavigationMenuItem,eo as NavigationMenuLink,to as NavigationMenuList,no as NavigationMenuTrigger,ro as NavigationMenuViewport,Lr as NotAuthorized,Rr as NotFound,ur as NumberField,Te as OrdersBarChart,ao as Pagination,oo as PaginationContent,so as PaginationEllipsis,co as PaginationItem,lo as PaginationLink,uo as PaginationNext,fo as PaginationPrevious,t as Paragraph,ar as PasswordField,Nr as PaymentLayout,k as PhoneNumberDisplay,Cr as Popover,wr as PopoverAnchor,Tr as PopoverClose,Er as PopoverContent,Dr as PopoverTrigger,Ee as PortfolioAllocationTreemap,De as PriceRangeAreaChart,p as ProductCard,la as Progress,po as RadioGroup,ir as RadioGroupField,mo as RadioGroupItem,$r as RefreshBtn,Wr as RegisterPage,On as ResizableHandle,kn as ResizablePanel,An as ResizablePanelGroup,Oe as RevenueAreaChart,ke as RevenueOrdersComposedChart,A as RoleBadge,Ae as SalesTargetRadialChart,je as SankeyFlowChart,ho as ScrollArea,go as ScrollBar,ni as SearchInput,vt as SearchModal,_o as Select,vo as SelectContent,Qn as SelectField,yo as SelectGroup,bo as SelectItem,xo as SelectLabel,So as SelectSeparator,Co as SelectTrigger,wo as SelectValue,jr as Separator,Y as Sheet,X as SheetClose,Z as SheetContent,Q as SheetDescription,$ as SheetFooter,ee as SheetHeader,te as SheetTitle,ne as SheetTrigger,vr as SimpleArrayField,xr as SimpleBooleanField,m as SimpleCard,er as SimpleComboboxField,br as SimpleDateField,qn as SimpleEmailField,Nn as SimpleNumberField,yr as SimplePasswordField,Jn as SimpleRadioGroupField,Fn as SimpleSelectField,Pn as SimpleTextField,Wn as SimpleTextareaField,u as Skeleton,To as Slider,Me as SparklineChart,Dn as Spinner,Ne as StackedAreaChart,j as Statistic,Oo as Switch,cr as SwitchField,ko as Table,Ao as TableBody,jo as TableCaption,Mo as TableCell,No as TableFooter,Po as TableHead,Fo as TableHeader,Io as TableRow,Lo as Tabs,Ro as TabsContent,zo as TabsList,Bo as TabsTrigger,jn as TanStackActionSubmit,sr as TanStackActionsForm,Hn as TanStackCardForm,Un as TanStackContainerForm,Gn as TanStackDialogForm,In as TanStackFieldGroup,zn as TanStackPopoverForm,Vn as TanStackSectionForm,Kn as TanStackTitleField,kr as TextEditor,Sr as TextEditorField,Or as TextEditorToolbar,Mn as TextField,Vo as Textarea,Xn as TextareaField,J as Title,Eo as Toaster,Ho as Toggle,Wo as ToggleGroup,Go as ToggleGroupItem,S as Tooltip,C as TooltipContent,w as TooltipProvider,T as TooltipTrigger,Pe as TopProductsBarChart,ei as TrashBtn,an as UITableAnalysisPanel,$t as UITableAvatarNameDisplay,nn as UITableBadgeDisplay,Dt as UITableBody,Jt as UITableBooleanDisplay,wt as UITableCell,zt as UITableCellActions,Lt as UITableCellSelect,xt as UITableContainer,Vt as UITableCurrencyDisplay,en as UITableDateDisplay,rn as UITableDescriptionDisplay,Ut as UITableEditButton,Zt as UITableEmailDisplay,Nt as UITableEmpty,Tt as UITableEmptyDisplay,on as UITableFilter,Rt as UITableFooter,Pt as UITableFooterRow,Ot as UITableHead,Ct as UITableHeadCell,Et as UITableHeadCellOption,Mt as UITableHeadCellSelect,At as UITableHeadRow,kt as UITableInnerTable,Yt as UITableInnerWrapper,Wt as UITableListDisplay,yt as UITableLoadMore,Gt as UITableMoreButton,tn as UITableNameDisplay,Qt as UITablePermalink,qt as UITablePhoneNumberDisplay,Kt as UITableProgressDisplay,St as UITableProvider,Bt as UITableRemoveButton,Xt as UITableRow,sn as UITableStatisticDisplay,un as UITableStatusDisplay,Ht as UITableSummaryBar,ln as UITableToggleButton,Ft as UITableTooltip,bt as UITableTooltipActions,cn as UITableTooltipFilter,It as UITableUserDataDisplay,jt as UITableWrapper,ti as UploadImageBtn,F as UserDataDisplay,Yr as VerifyEmailPage,Fe as VolumeBarChart,Ie as WaterfallChart,x as badgeVariants,mi as buttonGroupVariants,Le as computeIndexedSeries,Re as formatCompactNumber,ze as formatCurrency,Be as formatPercent,Ve as formatSignedPercent,He as getChartColor,Ue as getDirectionColor,io as navigationMenuTriggerStyle,n as paragraphVariants,We as toDateLabel,Do as toast,Uo as toggleVariants,Oi as useChart,Ya as useDebounce,va as useFormField,Ln as useTanStackFieldContext,Rn as useTanStackForm,Bn as useTanStackFormContext,Yn as withTanStackFieldGroup,Zn as withTanStackForm};
@@ -1,2 +1,2 @@
1
- const e=require("./tanstack-form-BC61U3F-.cjs"),t=require("./field-BV5twmKA.cjs"),n=require("./number-input-kTh9zzr7.cjs");let r=require("lucide-react"),i=require("react"),a=require("@customafk/react-toolkit/utils"),o=require("react/jsx-runtime"),s=require("@tanstack/react-form");const c=(0,i.memo)(({label:c,description:l,placeholder:u,tooltip:d,helperText:f,orientation:p=`responsive`,showErrorMessage:m=!0,rounding:h,decimalPlaces:g,precision:_,unit:v,required:y=!1,disabled:b=!1,allowNegative:x})=>{let S=(0,i.useId)(),C=(0,i.useId)(),w=e.G(),T=(0,s.useStore)(w.form.store,({isSubmitting:e})=>e),E=b||T,D=w.state.meta.isDirty||w.state.meta.isTouched,O=D&&!w.state.meta.isValid,k=y&&w.state.value===null,A=!!w.state.meta.errors.length,j=(0,i.useCallback)(e=>{E||w.handleChange(e)},[E,w.handleChange]);return(0,o.jsxs)(t.FieldGroup,{className:`gap-y-4 px-4`,children:[(0,o.jsxs)(t.Field,{orientation:p,"data-invalid":O,children:[(0,o.jsxs)(t.FieldContent,{children:[(0,o.jsxs)(t.FieldLabel,{htmlFor:S,"aria-required":k,children:[c,d&&(0,o.jsx)(t.FieldTooltip,{tooltip:d})]}),(0,o.jsx)(t.FieldDescription,{children:l})]}),(0,o.jsxs)(t.FieldContentMain,{children:[(0,o.jsxs)(`div`,{className:`relative w-full`,children:[(0,o.jsx)(n.t,{id:S,value:w.state.value,"aria-invalid":O,"aria-describedby":C,placeholder:u,disabled:E,roundingRule:h,numberAfterDecimalPoint:g,precision:_,unitText:v,allowNegative:x,className:(0,a.cn)(E&&`pointer-events-none opacity-60`),onBlur:w.handleBlur,onValueChange:j}),T&&(0,o.jsx)(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5`,children:(0,o.jsx)(r.Loader2Icon,{className:`animate-spin text-primary-strong`})}),!T&&D&&m&&A&&(0,o.jsx)(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5`,children:(0,o.jsx)(r.BanIcon,{})}),(0,o.jsx)(`div`,{className:`mt-1 flex w-full items-start justify-between gap-x-2`,children:D&&m?(0,o.jsx)(t.FieldError,{id:C,className:`flex-1`,errors:w.state.meta.errors}):(0,o.jsx)(`div`,{})})]}),(0,o.jsx)(t.FieldNote,{isShow:!!f,children:f})]})]}),(0,o.jsx)(t.FieldSeparator,{})]})});c.displayName=`NumberField`,exports.NumberField=c;
2
- //# sourceMappingURL=number-field-y0H7X4Ka.cjs.map
1
+ const e=require("./tanstack-form-CX3lC3mC.cjs"),t=require("./field-BSLi-P0Q.cjs"),n=require("./number-input-kTh9zzr7.cjs");let r=require("lucide-react"),i=require("react"),a=require("@customafk/react-toolkit/utils"),o=require("react/jsx-runtime"),s=require("@tanstack/react-form");const c=(0,i.memo)(({label:c,description:l,placeholder:u,tooltip:d,helperText:f,orientation:p=`responsive`,showErrorMessage:m=!0,rounding:h,decimalPlaces:g,precision:_,unit:v,required:y=!1,disabled:b=!1,allowNegative:x})=>{let S=(0,i.useId)(),C=(0,i.useId)(),w=e.G(),T=(0,s.useStore)(w.form.store,({isSubmitting:e})=>e),E=b||T,D=w.state.meta.isDirty||w.state.meta.isTouched,O=D&&!w.state.meta.isValid,k=y&&w.state.value===null,A=!!w.state.meta.errors.length,j=(0,i.useCallback)(e=>{E||w.handleChange(e)},[E,w.handleChange]);return(0,o.jsxs)(t.FieldGroup,{className:`gap-y-4 px-4`,children:[(0,o.jsxs)(t.Field,{orientation:p,"data-invalid":O,children:[(0,o.jsxs)(t.FieldContent,{children:[(0,o.jsxs)(t.FieldLabel,{htmlFor:S,"aria-required":k,children:[c,d&&(0,o.jsx)(t.FieldTooltip,{tooltip:d})]}),(0,o.jsx)(t.FieldDescription,{children:l})]}),(0,o.jsxs)(t.FieldContentMain,{children:[(0,o.jsxs)(`div`,{className:`relative w-full`,children:[(0,o.jsx)(n.t,{id:S,value:w.state.value,"aria-invalid":O,"aria-describedby":C,placeholder:u,disabled:E,roundingRule:h,numberAfterDecimalPoint:g,precision:_,unitText:v,allowNegative:x,className:(0,a.cn)(E&&`pointer-events-none opacity-60`),onBlur:w.handleBlur,onValueChange:j}),T&&(0,o.jsx)(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5`,children:(0,o.jsx)(r.Loader2Icon,{className:`animate-spin text-primary-strong`})}),!T&&D&&m&&A&&(0,o.jsx)(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5`,children:(0,o.jsx)(r.BanIcon,{})}),(0,o.jsx)(`div`,{className:`mt-1 flex w-full items-start justify-between gap-x-2`,children:D&&m?(0,o.jsx)(t.FieldError,{id:C,className:`flex-1`,errors:w.state.meta.errors}):(0,o.jsx)(`div`,{})})]}),(0,o.jsx)(t.FieldNote,{isShow:!!f,children:f})]})]}),(0,o.jsx)(t.FieldSeparator,{})]})});c.displayName=`NumberField`,exports.NumberField=c;
2
+ //# sourceMappingURL=number-field-BTLobx1F.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-field-y0H7X4Ka.cjs","names":["useTanStackFieldContext","FieldGroup","Field","FieldContent","FieldLabel","FieldTooltip","FieldDescription","FieldContentMain","NumberInput","Loader2Icon","BanIcon","FieldError","FieldNote","FieldSeparator"],"sources":["../packages/components/features/tanstack-form/components/fields/number-field.tsx"],"sourcesContent":["'use client';\n\nimport { memo, useCallback, useId } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { BanIcon, Loader2Icon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { NumberInput } from '@/components/ui/inputs/number-input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { NumberFieldProps } from '../../types';\n\n/**\n * A TanStack Form-connected numeric input field supporting rounding rules,\n * decimal precision, unit labels, and submission-state feedback.\n *\n * @example\n * import { NumberField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"quantity\">\n * {() => (\n * <NumberField\n * label=\"Quantity\"\n * placeholder=\"0\"\n * unit=\"pcs\"\n * decimalPlaces={2}\n * required\n * />\n * )}\n * </form.Field>\n */\nexport const NumberField = memo<NumberFieldProps>(\n ({\n label,\n description,\n placeholder,\n tooltip,\n helperText,\n orientation = 'responsive',\n showErrorMessage = true,\n rounding,\n decimalPlaces,\n precision,\n unit,\n required = false,\n disabled = false,\n allowNegative,\n }) => {\n const id = useId();\n const errorId = useId();\n\n const field = useTanStackFieldContext<number | null>();\n\n const isSubmitting = useStore(field.form.store, ({ isSubmitting }) => isSubmitting);\n const isDisabled = disabled || isSubmitting;\n\n const _touched = field.state.meta.isDirty || field.state.meta.isTouched;\n const _invalid = _touched && !field.state.meta.isValid;\n const _isEmpty = required && field.state.value === null;\n const _hasErrors = !!field.state.meta.errors.length;\n\n const onValueChange = useCallback(\n (value: number | null) => {\n if (isDisabled) return;\n field.handleChange(value);\n },\n [isDisabled, field.handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field orientation={orientation} data-invalid={_invalid}>\n <FieldContent>\n <FieldLabel htmlFor={id} aria-required={_isEmpty}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n\n <FieldContentMain>\n <div className=\"relative w-full\">\n <NumberInput\n id={id}\n value={field.state.value}\n aria-invalid={_invalid}\n aria-describedby={errorId}\n placeholder={placeholder}\n disabled={isDisabled}\n roundingRule={rounding}\n numberAfterDecimalPoint={decimalPlaces}\n precision={precision}\n unitText={unit}\n allowNegative={allowNegative}\n className={cn(isDisabled && 'pointer-events-none opacity-60')}\n onBlur={field.handleBlur}\n onValueChange={onValueChange}\n />\n {isSubmitting && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5\">\n <Loader2Icon className=\"animate-spin text-primary-strong\" />\n </div>\n )}\n {!isSubmitting && _touched && showErrorMessage && _hasErrors && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5\">\n <BanIcon />\n </div>\n )}\n <div className=\"mt-1 flex w-full items-start justify-between gap-x-2\">\n {_touched && showErrorMessage ? <FieldError id={errorId} className=\"flex-1\" errors={field.state.meta.errors} /> : <div />}\n </div>\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n }\n);\n\nNumberField.displayName = 'NumberField';\n"],"mappings":"yRA+CA,MAAa,GAAA,EAAA,EAAA,KAAA,EACV,CACC,QACA,cACA,cACA,UACA,aACA,cAAc,aACd,mBAAmB,GACnB,WACA,gBACA,YACA,OACA,WAAW,GACX,WAAW,GACX,mBACI,CACJ,IAAM,GAAA,EAAA,EAAA,MAAA,CAAW,EACX,GAAA,EAAA,EAAA,MAAA,CAAgB,EAEhB,EAAQA,EAAAA,EAAuC,EAE/C,GAAA,EAAA,EAAA,SAAA,CAAwB,EAAM,KAAK,OAAQ,CAAE,kBAAmB,CAAY,EAC5E,EAAa,GAAY,EAEzB,EAAW,EAAM,MAAM,KAAK,SAAW,EAAM,MAAM,KAAK,UACxD,EAAW,GAAY,CAAC,EAAM,MAAM,KAAK,QACzC,EAAW,GAAY,EAAM,MAAM,QAAU,KAC7C,EAAa,CAAC,CAAC,EAAM,MAAM,KAAK,OAAO,OAEvC,GAAA,EAAA,EAAA,YAAA,CACH,GAAyB,CACpB,GACJ,EAAM,aAAa,CAAK,CAC1B,EACA,CAAC,EAAY,EAAM,YAAY,CACjC,EAEA,OACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,UAAU,wBAAtB,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,MAAD,CAAoB,cAAa,eAAc,WAA/C,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,aAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,QAAS,EAAI,gBAAe,WAAxC,CACG,EACA,IAAW,EAAA,EAAA,IAAA,CAACC,EAAAA,aAAD,CAAuB,SAAU,CAAA,CACnC,KACZ,EAAA,EAAA,IAAA,CAACC,EAAAA,iBAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,GAEd,EAAA,EAAA,KAAA,CAACC,EAAAA,iBAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,2BAAf,EACE,EAAA,EAAA,IAAA,CAACC,EAAAA,EAAD,CACM,KACJ,MAAO,EAAM,MAAM,MACnB,eAAc,EACd,mBAAkB,EACL,cACb,SAAU,EACV,aAAc,EACd,wBAAyB,EACd,YACX,SAAU,EACK,gBACf,WAAA,EAAA,EAAA,GAAA,CAAc,GAAc,gCAAgC,EAC5D,OAAQ,EAAM,WACC,eAChB,CAAA,EACA,IACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,sFACb,EAAA,EAAA,IAAA,CAACC,EAAAA,YAAD,CAAa,UAAU,kCAAoC,CAAA,CACxD,CAAA,EAEN,CAAC,GAAgB,GAAY,GAAoB,IAChD,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,0GACb,EAAA,EAAA,IAAA,CAACC,EAAAA,QAAD,CAAU,CAAA,CACP,CAAA,GAEP,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,gEACZ,GAAY,GAAmB,EAAA,EAAA,IAAA,CAACC,EAAAA,WAAD,CAAY,GAAI,EAAS,UAAU,SAAS,OAAQ,EAAM,MAAM,KAAK,MAAS,CAAA,GAAI,EAAA,EAAA,IAAA,CAAC,MAAD,CAAM,CAAA,CACrH,CAAA,CACF,KACL,EAAA,EAAA,IAAA,CAACC,EAAAA,UAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,KACP,EAAA,EAAA,IAAA,CAACC,EAAAA,eAAD,CAAiB,CAAA,CACP,GAEhB,CACF,EAEA,EAAY,YAAc"}
1
+ {"version":3,"file":"number-field-BTLobx1F.cjs","names":["useTanStackFieldContext","FieldGroup","Field","FieldContent","FieldLabel","FieldTooltip","FieldDescription","FieldContentMain","NumberInput","Loader2Icon","BanIcon","FieldError","FieldNote","FieldSeparator"],"sources":["../packages/components/features/tanstack-form/components/fields/number-field.tsx"],"sourcesContent":["'use client';\n\nimport { memo, useCallback, useId } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { BanIcon, Loader2Icon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { NumberInput } from '@/components/ui/inputs/number-input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { NumberFieldProps } from '../../types';\n\n/**\n * A TanStack Form-connected numeric input field supporting rounding rules,\n * decimal precision, unit labels, and submission-state feedback.\n *\n * @example\n * import { NumberField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"quantity\">\n * {() => (\n * <NumberField\n * label=\"Quantity\"\n * placeholder=\"0\"\n * unit=\"pcs\"\n * decimalPlaces={2}\n * required\n * />\n * )}\n * </form.Field>\n */\nexport const NumberField = memo<NumberFieldProps>(\n ({\n label,\n description,\n placeholder,\n tooltip,\n helperText,\n orientation = 'responsive',\n showErrorMessage = true,\n rounding,\n decimalPlaces,\n precision,\n unit,\n required = false,\n disabled = false,\n allowNegative,\n }) => {\n const id = useId();\n const errorId = useId();\n\n const field = useTanStackFieldContext<number | null>();\n\n const isSubmitting = useStore(field.form.store, ({ isSubmitting }) => isSubmitting);\n const isDisabled = disabled || isSubmitting;\n\n const _touched = field.state.meta.isDirty || field.state.meta.isTouched;\n const _invalid = _touched && !field.state.meta.isValid;\n const _isEmpty = required && field.state.value === null;\n const _hasErrors = !!field.state.meta.errors.length;\n\n const onValueChange = useCallback(\n (value: number | null) => {\n if (isDisabled) return;\n field.handleChange(value);\n },\n [isDisabled, field.handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field orientation={orientation} data-invalid={_invalid}>\n <FieldContent>\n <FieldLabel htmlFor={id} aria-required={_isEmpty}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n\n <FieldContentMain>\n <div className=\"relative w-full\">\n <NumberInput\n id={id}\n value={field.state.value}\n aria-invalid={_invalid}\n aria-describedby={errorId}\n placeholder={placeholder}\n disabled={isDisabled}\n roundingRule={rounding}\n numberAfterDecimalPoint={decimalPlaces}\n precision={precision}\n unitText={unit}\n allowNegative={allowNegative}\n className={cn(isDisabled && 'pointer-events-none opacity-60')}\n onBlur={field.handleBlur}\n onValueChange={onValueChange}\n />\n {isSubmitting && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5\">\n <Loader2Icon className=\"animate-spin text-primary-strong\" />\n </div>\n )}\n {!isSubmitting && _touched && showErrorMessage && _hasErrors && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5\">\n <BanIcon />\n </div>\n )}\n <div className=\"mt-1 flex w-full items-start justify-between gap-x-2\">\n {_touched && showErrorMessage ? <FieldError id={errorId} className=\"flex-1\" errors={field.state.meta.errors} /> : <div />}\n </div>\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n }\n);\n\nNumberField.displayName = 'NumberField';\n"],"mappings":"yRA+CA,MAAa,GAAA,EAAA,EAAA,KAAA,EACV,CACC,QACA,cACA,cACA,UACA,aACA,cAAc,aACd,mBAAmB,GACnB,WACA,gBACA,YACA,OACA,WAAW,GACX,WAAW,GACX,mBACI,CACJ,IAAM,GAAA,EAAA,EAAA,MAAA,CAAW,EACX,GAAA,EAAA,EAAA,MAAA,CAAgB,EAEhB,EAAQA,EAAAA,EAAuC,EAE/C,GAAA,EAAA,EAAA,SAAA,CAAwB,EAAM,KAAK,OAAQ,CAAE,kBAAmB,CAAY,EAC5E,EAAa,GAAY,EAEzB,EAAW,EAAM,MAAM,KAAK,SAAW,EAAM,MAAM,KAAK,UACxD,EAAW,GAAY,CAAC,EAAM,MAAM,KAAK,QACzC,EAAW,GAAY,EAAM,MAAM,QAAU,KAC7C,EAAa,CAAC,CAAC,EAAM,MAAM,KAAK,OAAO,OAEvC,GAAA,EAAA,EAAA,YAAA,CACH,GAAyB,CACpB,GACJ,EAAM,aAAa,CAAK,CAC1B,EACA,CAAC,EAAY,EAAM,YAAY,CACjC,EAEA,OACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,UAAU,wBAAtB,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,MAAD,CAAoB,cAAa,eAAc,WAA/C,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,aAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,QAAS,EAAI,gBAAe,WAAxC,CACG,EACA,IAAW,EAAA,EAAA,IAAA,CAACC,EAAAA,aAAD,CAAuB,SAAU,CAAA,CACnC,KACZ,EAAA,EAAA,IAAA,CAACC,EAAAA,iBAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,GAEd,EAAA,EAAA,KAAA,CAACC,EAAAA,iBAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,2BAAf,EACE,EAAA,EAAA,IAAA,CAACC,EAAAA,EAAD,CACM,KACJ,MAAO,EAAM,MAAM,MACnB,eAAc,EACd,mBAAkB,EACL,cACb,SAAU,EACV,aAAc,EACd,wBAAyB,EACd,YACX,SAAU,EACK,gBACf,WAAA,EAAA,EAAA,GAAA,CAAc,GAAc,gCAAgC,EAC5D,OAAQ,EAAM,WACC,eAChB,CAAA,EACA,IACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,sFACb,EAAA,EAAA,IAAA,CAACC,EAAAA,YAAD,CAAa,UAAU,kCAAoC,CAAA,CACxD,CAAA,EAEN,CAAC,GAAgB,GAAY,GAAoB,IAChD,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,0GACb,EAAA,EAAA,IAAA,CAACC,EAAAA,QAAD,CAAU,CAAA,CACP,CAAA,GAEP,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,gEACZ,GAAY,GAAmB,EAAA,EAAA,IAAA,CAACC,EAAAA,WAAD,CAAY,GAAI,EAAS,UAAU,SAAS,OAAQ,EAAM,MAAM,KAAK,MAAS,CAAA,GAAI,EAAA,EAAA,IAAA,CAAC,MAAD,CAAM,CAAA,CACrH,CAAA,CACF,KACL,EAAA,EAAA,IAAA,CAACC,EAAAA,UAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,KACP,EAAA,EAAA,IAAA,CAACC,EAAAA,eAAD,CAAiB,CAAA,CACP,GAEhB,CACF,EAEA,EAAY,YAAc"}
@@ -1,2 +1,2 @@
1
- import{G as e}from"./tanstack-form-DJMaMeUh.mjs";import{Field as t,FieldContent as n,FieldContentMain as r,FieldDescription as i,FieldError as a,FieldGroup as o,FieldLabel as s,FieldNote as c,FieldSeparator as l,FieldTooltip as u}from"./field-BKyUqvzh.mjs";import{t as d}from"./number-input-CqkegUWs.mjs";import{BanIcon as f,Loader2Icon as p}from"lucide-react";import{memo as m,useCallback as h,useId as g}from"react";import{cn as _}from"@customafk/react-toolkit/utils";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{useStore as b}from"@tanstack/react-form";const x=m(({label:m,description:x,placeholder:S,tooltip:C,helperText:w,orientation:T=`responsive`,showErrorMessage:E=!0,rounding:D,decimalPlaces:O,precision:k,unit:A,required:j=!1,disabled:M=!1,allowNegative:N})=>{let P=g(),F=g(),I=e(),L=b(I.form.store,({isSubmitting:e})=>e),R=M||L,z=I.state.meta.isDirty||I.state.meta.isTouched,B=z&&!I.state.meta.isValid,V=j&&I.state.value===null,H=!!I.state.meta.errors.length,U=h(e=>{R||I.handleChange(e)},[R,I.handleChange]);return y(o,{className:`gap-y-4 px-4`,children:[y(t,{orientation:T,"data-invalid":B,children:[y(n,{children:[y(s,{htmlFor:P,"aria-required":V,children:[m,C&&v(u,{tooltip:C})]}),v(i,{children:x})]}),y(r,{children:[y(`div`,{className:`relative w-full`,children:[v(d,{id:P,value:I.state.value,"aria-invalid":B,"aria-describedby":F,placeholder:S,disabled:R,roundingRule:D,numberAfterDecimalPoint:O,precision:k,unitText:A,allowNegative:N,className:_(R&&`pointer-events-none opacity-60`),onBlur:I.handleBlur,onValueChange:U}),L&&v(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5`,children:v(p,{className:`animate-spin text-primary-strong`})}),!L&&z&&E&&H&&v(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5`,children:v(f,{})}),v(`div`,{className:`mt-1 flex w-full items-start justify-between gap-x-2`,children:z&&E?v(a,{id:F,className:`flex-1`,errors:I.state.meta.errors}):v(`div`,{})})]}),v(c,{isShow:!!w,children:w})]})]}),v(l,{})]})});x.displayName=`NumberField`;export{x as NumberField};
2
- //# sourceMappingURL=number-field-CZ06Uzb3.mjs.map
1
+ import{G as e}from"./tanstack-form-CKAWexet.mjs";import{Field as t,FieldContent as n,FieldContentMain as r,FieldDescription as i,FieldError as a,FieldGroup as o,FieldLabel as s,FieldNote as c,FieldSeparator as l,FieldTooltip as u}from"./field-V2DoD8qL.mjs";import{t as d}from"./number-input-CqkegUWs.mjs";import{BanIcon as f,Loader2Icon as p}from"lucide-react";import{memo as m,useCallback as h,useId as g}from"react";import{cn as _}from"@customafk/react-toolkit/utils";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{useStore as b}from"@tanstack/react-form";const x=m(({label:m,description:x,placeholder:S,tooltip:C,helperText:w,orientation:T=`responsive`,showErrorMessage:E=!0,rounding:D,decimalPlaces:O,precision:k,unit:A,required:j=!1,disabled:M=!1,allowNegative:N})=>{let P=g(),F=g(),I=e(),L=b(I.form.store,({isSubmitting:e})=>e),R=M||L,z=I.state.meta.isDirty||I.state.meta.isTouched,B=z&&!I.state.meta.isValid,V=j&&I.state.value===null,H=!!I.state.meta.errors.length,U=h(e=>{R||I.handleChange(e)},[R,I.handleChange]);return y(o,{className:`gap-y-4 px-4`,children:[y(t,{orientation:T,"data-invalid":B,children:[y(n,{children:[y(s,{htmlFor:P,"aria-required":V,children:[m,C&&v(u,{tooltip:C})]}),v(i,{children:x})]}),y(r,{children:[y(`div`,{className:`relative w-full`,children:[v(d,{id:P,value:I.state.value,"aria-invalid":B,"aria-describedby":F,placeholder:S,disabled:R,roundingRule:D,numberAfterDecimalPoint:O,precision:k,unitText:A,allowNegative:N,className:_(R&&`pointer-events-none opacity-60`),onBlur:I.handleBlur,onValueChange:U}),L&&v(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5`,children:v(p,{className:`animate-spin text-primary-strong`})}),!L&&z&&E&&H&&v(`div`,{className:`pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5`,children:v(f,{})}),v(`div`,{className:`mt-1 flex w-full items-start justify-between gap-x-2`,children:z&&E?v(a,{id:F,className:`flex-1`,errors:I.state.meta.errors}):v(`div`,{})})]}),v(c,{isShow:!!w,children:w})]})]}),v(l,{})]})});x.displayName=`NumberField`;export{x as NumberField};
2
+ //# sourceMappingURL=number-field-Cx-1U_Np.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-field-CZ06Uzb3.mjs","names":[],"sources":["../packages/components/features/tanstack-form/components/fields/number-field.tsx"],"sourcesContent":["'use client';\n\nimport { memo, useCallback, useId } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { BanIcon, Loader2Icon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { NumberInput } from '@/components/ui/inputs/number-input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { NumberFieldProps } from '../../types';\n\n/**\n * A TanStack Form-connected numeric input field supporting rounding rules,\n * decimal precision, unit labels, and submission-state feedback.\n *\n * @example\n * import { NumberField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"quantity\">\n * {() => (\n * <NumberField\n * label=\"Quantity\"\n * placeholder=\"0\"\n * unit=\"pcs\"\n * decimalPlaces={2}\n * required\n * />\n * )}\n * </form.Field>\n */\nexport const NumberField = memo<NumberFieldProps>(\n ({\n label,\n description,\n placeholder,\n tooltip,\n helperText,\n orientation = 'responsive',\n showErrorMessage = true,\n rounding,\n decimalPlaces,\n precision,\n unit,\n required = false,\n disabled = false,\n allowNegative,\n }) => {\n const id = useId();\n const errorId = useId();\n\n const field = useTanStackFieldContext<number | null>();\n\n const isSubmitting = useStore(field.form.store, ({ isSubmitting }) => isSubmitting);\n const isDisabled = disabled || isSubmitting;\n\n const _touched = field.state.meta.isDirty || field.state.meta.isTouched;\n const _invalid = _touched && !field.state.meta.isValid;\n const _isEmpty = required && field.state.value === null;\n const _hasErrors = !!field.state.meta.errors.length;\n\n const onValueChange = useCallback(\n (value: number | null) => {\n if (isDisabled) return;\n field.handleChange(value);\n },\n [isDisabled, field.handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field orientation={orientation} data-invalid={_invalid}>\n <FieldContent>\n <FieldLabel htmlFor={id} aria-required={_isEmpty}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n\n <FieldContentMain>\n <div className=\"relative w-full\">\n <NumberInput\n id={id}\n value={field.state.value}\n aria-invalid={_invalid}\n aria-describedby={errorId}\n placeholder={placeholder}\n disabled={isDisabled}\n roundingRule={rounding}\n numberAfterDecimalPoint={decimalPlaces}\n precision={precision}\n unitText={unit}\n allowNegative={allowNegative}\n className={cn(isDisabled && 'pointer-events-none opacity-60')}\n onBlur={field.handleBlur}\n onValueChange={onValueChange}\n />\n {isSubmitting && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5\">\n <Loader2Icon className=\"animate-spin text-primary-strong\" />\n </div>\n )}\n {!isSubmitting && _touched && showErrorMessage && _hasErrors && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5\">\n <BanIcon />\n </div>\n )}\n <div className=\"mt-1 flex w-full items-start justify-between gap-x-2\">\n {_touched && showErrorMessage ? <FieldError id={errorId} className=\"flex-1\" errors={field.state.meta.errors} /> : <div />}\n </div>\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n }\n);\n\nNumberField.displayName = 'NumberField';\n"],"mappings":"wjBA+CA,MAAa,EAAc,GACxB,CACC,QACA,cACA,cACA,UACA,aACA,cAAc,aACd,mBAAmB,GACnB,WACA,gBACA,YACA,OACA,WAAW,GACX,WAAW,GACX,mBACI,CACJ,IAAM,EAAK,EAAM,EACX,EAAU,EAAM,EAEhB,EAAQ,EAAuC,EAE/C,EAAe,EAAS,EAAM,KAAK,OAAQ,CAAE,kBAAmB,CAAY,EAC5E,EAAa,GAAY,EAEzB,EAAW,EAAM,MAAM,KAAK,SAAW,EAAM,MAAM,KAAK,UACxD,EAAW,GAAY,CAAC,EAAM,MAAM,KAAK,QACzC,EAAW,GAAY,EAAM,MAAM,QAAU,KAC7C,EAAa,CAAC,CAAC,EAAM,MAAM,KAAK,OAAO,OAEvC,EAAgB,EACnB,GAAyB,CACpB,GACJ,EAAM,aAAa,CAAK,CAC1B,EACA,CAAC,EAAY,EAAM,YAAY,CACjC,EAEA,OACE,EAAC,EAAD,CAAY,UAAU,wBAAtB,CACE,EAAC,EAAD,CAAoB,cAAa,eAAc,WAA/C,CACE,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CAAY,QAAS,EAAI,gBAAe,WAAxC,CACG,EACA,GAAW,EAAC,EAAD,CAAuB,SAAU,CAAA,CACnC,IACZ,EAAC,EAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,EAEd,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,MAAD,CAAK,UAAU,2BAAf,CACE,EAAC,EAAD,CACM,KACJ,MAAO,EAAM,MAAM,MACnB,eAAc,EACd,mBAAkB,EACL,cACb,SAAU,EACV,aAAc,EACd,wBAAyB,EACd,YACX,SAAU,EACK,gBACf,UAAW,EAAG,GAAc,gCAAgC,EAC5D,OAAQ,EAAM,WACC,eAChB,CAAA,EACA,GACC,EAAC,MAAD,CAAK,UAAU,qFACb,EAAC,EAAD,CAAa,UAAU,kCAAoC,CAAA,CACxD,CAAA,EAEN,CAAC,GAAgB,GAAY,GAAoB,GAChD,EAAC,MAAD,CAAK,UAAU,yGACb,EAAC,EAAD,CAAU,CAAA,CACP,CAAA,EAEP,EAAC,MAAD,CAAK,UAAU,gEACZ,GAAY,EAAmB,EAAC,EAAD,CAAY,GAAI,EAAS,UAAU,SAAS,OAAQ,EAAM,MAAM,KAAK,MAAS,CAAA,EAAI,EAAC,MAAD,CAAM,CAAA,CACrH,CAAA,CACF,IACL,EAAC,EAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,IACP,EAAC,EAAD,CAAiB,CAAA,CACP,GAEhB,CACF,EAEA,EAAY,YAAc"}
1
+ {"version":3,"file":"number-field-Cx-1U_Np.mjs","names":[],"sources":["../packages/components/features/tanstack-form/components/fields/number-field.tsx"],"sourcesContent":["'use client';\n\nimport { memo, useCallback, useId } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { BanIcon, Loader2Icon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { NumberInput } from '@/components/ui/inputs/number-input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { NumberFieldProps } from '../../types';\n\n/**\n * A TanStack Form-connected numeric input field supporting rounding rules,\n * decimal precision, unit labels, and submission-state feedback.\n *\n * @example\n * import { NumberField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"quantity\">\n * {() => (\n * <NumberField\n * label=\"Quantity\"\n * placeholder=\"0\"\n * unit=\"pcs\"\n * decimalPlaces={2}\n * required\n * />\n * )}\n * </form.Field>\n */\nexport const NumberField = memo<NumberFieldProps>(\n ({\n label,\n description,\n placeholder,\n tooltip,\n helperText,\n orientation = 'responsive',\n showErrorMessage = true,\n rounding,\n decimalPlaces,\n precision,\n unit,\n required = false,\n disabled = false,\n allowNegative,\n }) => {\n const id = useId();\n const errorId = useId();\n\n const field = useTanStackFieldContext<number | null>();\n\n const isSubmitting = useStore(field.form.store, ({ isSubmitting }) => isSubmitting);\n const isDisabled = disabled || isSubmitting;\n\n const _touched = field.state.meta.isDirty || field.state.meta.isTouched;\n const _invalid = _touched && !field.state.meta.isValid;\n const _isEmpty = required && field.state.value === null;\n const _hasErrors = !!field.state.meta.errors.length;\n\n const onValueChange = useCallback(\n (value: number | null) => {\n if (isDisabled) return;\n field.handleChange(value);\n },\n [isDisabled, field.handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field orientation={orientation} data-invalid={_invalid}>\n <FieldContent>\n <FieldLabel htmlFor={id} aria-required={_isEmpty}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n\n <FieldContentMain>\n <div className=\"relative w-full\">\n <NumberInput\n id={id}\n value={field.state.value}\n aria-invalid={_invalid}\n aria-describedby={errorId}\n placeholder={placeholder}\n disabled={isDisabled}\n roundingRule={rounding}\n numberAfterDecimalPoint={decimalPlaces}\n precision={precision}\n unitText={unit}\n allowNegative={allowNegative}\n className={cn(isDisabled && 'pointer-events-none opacity-60')}\n onBlur={field.handleBlur}\n onValueChange={onValueChange}\n />\n {isSubmitting && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.5 [&>svg]:size-3.5\">\n <Loader2Icon className=\"animate-spin text-primary-strong\" />\n </div>\n )}\n {!isSubmitting && _touched && showErrorMessage && _hasErrors && (\n <div className=\"pointer-events-none absolute inset-s-2 inset-y-0 top-2.75 text-danger-strong [&>svg]:size-3.5\">\n <BanIcon />\n </div>\n )}\n <div className=\"mt-1 flex w-full items-start justify-between gap-x-2\">\n {_touched && showErrorMessage ? <FieldError id={errorId} className=\"flex-1\" errors={field.state.meta.errors} /> : <div />}\n </div>\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n }\n);\n\nNumberField.displayName = 'NumberField';\n"],"mappings":"wjBA+CA,MAAa,EAAc,GACxB,CACC,QACA,cACA,cACA,UACA,aACA,cAAc,aACd,mBAAmB,GACnB,WACA,gBACA,YACA,OACA,WAAW,GACX,WAAW,GACX,mBACI,CACJ,IAAM,EAAK,EAAM,EACX,EAAU,EAAM,EAEhB,EAAQ,EAAuC,EAE/C,EAAe,EAAS,EAAM,KAAK,OAAQ,CAAE,kBAAmB,CAAY,EAC5E,EAAa,GAAY,EAEzB,EAAW,EAAM,MAAM,KAAK,SAAW,EAAM,MAAM,KAAK,UACxD,EAAW,GAAY,CAAC,EAAM,MAAM,KAAK,QACzC,EAAW,GAAY,EAAM,MAAM,QAAU,KAC7C,EAAa,CAAC,CAAC,EAAM,MAAM,KAAK,OAAO,OAEvC,EAAgB,EACnB,GAAyB,CACpB,GACJ,EAAM,aAAa,CAAK,CAC1B,EACA,CAAC,EAAY,EAAM,YAAY,CACjC,EAEA,OACE,EAAC,EAAD,CAAY,UAAU,wBAAtB,CACE,EAAC,EAAD,CAAoB,cAAa,eAAc,WAA/C,CACE,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CAAY,QAAS,EAAI,gBAAe,WAAxC,CACG,EACA,GAAW,EAAC,EAAD,CAAuB,SAAU,CAAA,CACnC,IACZ,EAAC,EAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,EAEd,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,MAAD,CAAK,UAAU,2BAAf,CACE,EAAC,EAAD,CACM,KACJ,MAAO,EAAM,MAAM,MACnB,eAAc,EACd,mBAAkB,EACL,cACb,SAAU,EACV,aAAc,EACd,wBAAyB,EACd,YACX,SAAU,EACK,gBACf,UAAW,EAAG,GAAc,gCAAgC,EAC5D,OAAQ,EAAM,WACC,eAChB,CAAA,EACA,GACC,EAAC,MAAD,CAAK,UAAU,qFACb,EAAC,EAAD,CAAa,UAAU,kCAAoC,CAAA,CACxD,CAAA,EAEN,CAAC,GAAgB,GAAY,GAAoB,GAChD,EAAC,MAAD,CAAK,UAAU,yGACb,EAAC,EAAD,CAAU,CAAA,CACP,CAAA,EAEP,EAAC,MAAD,CAAK,UAAU,gEACZ,GAAY,EAAmB,EAAC,EAAD,CAAY,GAAI,EAAS,UAAU,SAAS,OAAQ,EAAM,MAAM,KAAK,MAAS,CAAA,EAAI,EAAC,MAAD,CAAM,CAAA,CACrH,CAAA,CACF,IACL,EAAC,EAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,IACP,EAAC,EAAD,CAAiB,CAAA,CACP,GAEhB,CACF,EAEA,EAAY,YAAc"}
@@ -1,2 +1,2 @@
1
- import{G as e}from"./tanstack-form-DJMaMeUh.mjs";import{Input as t}from"./ui/input.mjs";import{Field as n,FieldContent as r,FieldContentMain as i,FieldDescription as a,FieldError as o,FieldGroup as s,FieldLabel as c,FieldNote as l,FieldSeparator as u,FieldTooltip as d}from"./field-BKyUqvzh.mjs";import{EyeIcon as f,EyeOffIcon as p}from"lucide-react";import{useCallback as m,useId as h,useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{useStore as y}from"@tanstack/react-form";const b=({label:b,description:x,placeholder:S,orientation:C=`responsive`,tooltip:w,helperText:T,showErrorMessage:E=!0})=>{let D=h(),{form:O,name:k,state:A,handleBlur:j,handleChange:M}=e(),N=y(O.store,({isSubmitting:e})=>e),[P,F]=g(!1),I=A.meta.isDirty&&A.meta.isTouched&&!A.meta.isValid,L=m(()=>F(e=>!e),[]),R=m(({target:{value:e}})=>{N||M(e||null)},[N,M]);return v(s,{className:`gap-y-4 px-4`,children:[v(n,{"data-invalid":I,orientation:C,children:[v(r,{children:[v(c,{htmlFor:D,children:[b,w&&_(d,{tooltip:w})]}),_(a,{children:x})]}),v(i,{children:[_(t,{id:D,name:k,type:P?`text`:`password`,placeholder:S,value:A.value??``,"aria-invalid":I,autoComplete:`new-password`,onBlur:j,onChange:R}),_(`button`,{className:`absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:L,"aria-label":P?`Ẩn mật khẩu`:`Hiện mật khẩu`,"aria-pressed":P,"aria-controls":D,children:_(P?p:f,{size:16,"aria-hidden":`true`})}),_(`div`,{className:`mt-1 flex w-full items-start justify-start`,children:E&&A.meta.isDirty&&_(o,{errors:A.meta.errors})}),_(l,{isShow:!!T,children:T})]})]}),_(u,{})]})};export{b as PasswordField};
2
- //# sourceMappingURL=password-field-DSeObMIU.mjs.map
1
+ import{G as e}from"./tanstack-form-CKAWexet.mjs";import{Input as t}from"./ui/input.mjs";import{Field as n,FieldContent as r,FieldContentMain as i,FieldDescription as a,FieldError as o,FieldGroup as s,FieldLabel as c,FieldNote as l,FieldSeparator as u,FieldTooltip as d}from"./field-V2DoD8qL.mjs";import{EyeIcon as f,EyeOffIcon as p}from"lucide-react";import{useCallback as m,useId as h,useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{useStore as y}from"@tanstack/react-form";const b=({label:b,description:x,placeholder:S,orientation:C=`responsive`,tooltip:w,helperText:T,showErrorMessage:E=!0})=>{let D=h(),{form:O,name:k,state:A,handleBlur:j,handleChange:M}=e(),N=y(O.store,({isSubmitting:e})=>e),[P,F]=g(!1),I=A.meta.isDirty&&A.meta.isTouched&&!A.meta.isValid,L=m(()=>F(e=>!e),[]),R=m(({target:{value:e}})=>{N||M(e||null)},[N,M]);return v(s,{className:`gap-y-4 px-4`,children:[v(n,{"data-invalid":I,orientation:C,children:[v(r,{children:[v(c,{htmlFor:D,children:[b,w&&_(d,{tooltip:w})]}),_(a,{children:x})]}),v(i,{children:[_(t,{id:D,name:k,type:P?`text`:`password`,placeholder:S,value:A.value??``,"aria-invalid":I,autoComplete:`new-password`,onBlur:j,onChange:R}),_(`button`,{className:`absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:L,"aria-label":P?`Ẩn mật khẩu`:`Hiện mật khẩu`,"aria-pressed":P,"aria-controls":D,children:_(P?p:f,{size:16,"aria-hidden":`true`})}),_(`div`,{className:`mt-1 flex w-full items-start justify-start`,children:E&&A.meta.isDirty&&_(o,{errors:A.meta.errors})}),_(l,{isShow:!!T,children:T})]})]}),_(u,{})]})};export{b as PasswordField};
2
+ //# sourceMappingURL=password-field-CGPjZ5hZ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"password-field-DSeObMIU.mjs","names":[],"sources":["../packages/components/features/tanstack-form/components/fields/password-field.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useId, useState } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { EyeIcon, EyeOffIcon } from 'lucide-react';\n\nimport { Input } from '@/components/ui/input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { PasswordFieldProps as Props } from '../../types';\n\n/**\n * A TanStack Form-connected password input field with a show/hide toggle button\n * and inline validation error display.\n *\n * @example\n * import { PasswordField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"password\">\n * {() => (\n * <PasswordField\n * label=\"Password\"\n * placeholder=\"Enter your password\"\n * helperText=\"Must be at least 8 characters\"\n * />\n * )}\n * </form.Field>\n */\nexport const PasswordField: React.FC<Props> = ({\n label,\n description,\n placeholder,\n orientation = 'responsive',\n tooltip,\n helperText,\n showErrorMessage = true,\n}) => {\n const id = useId();\n const { form, name, state, handleBlur, handleChange } = useTanStackFieldContext<string | null>();\n\n const isSubmitting = useStore(form.store, ({ isSubmitting }) => isSubmitting);\n\n const [isVisible, setIsVisible] = useState<boolean>(false);\n\n const _invalid = state.meta.isDirty && state.meta.isTouched && !state.meta.isValid;\n\n const toggleVisibility = useCallback(() => setIsVisible(prev => !prev), []);\n\n const onChange = useCallback<React.ChangeEventHandler<HTMLInputElement>>(\n ({ target: { value } }) => {\n if (isSubmitting) return;\n handleChange(value || null);\n },\n [isSubmitting, handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field data-invalid={_invalid} orientation={orientation}>\n <FieldContent>\n <FieldLabel htmlFor={id}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n <FieldContentMain>\n <Input\n id={id}\n name={name}\n type={isVisible ? 'text' : 'password'}\n placeholder={placeholder}\n value={state.value ?? ''}\n aria-invalid={_invalid}\n autoComplete=\"new-password\"\n onBlur={handleBlur}\n onChange={onChange}\n />\n\n <button\n className=\"absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\"\n type=\"button\"\n onClick={toggleVisibility}\n aria-label={isVisible ? 'Ẩn mật khẩu' : 'Hiện mật khẩu'}\n aria-pressed={isVisible}\n aria-controls={id}\n >\n {isVisible ? <EyeOffIcon size={16} aria-hidden=\"true\" /> : <EyeIcon size={16} aria-hidden=\"true\" />}\n </button>\n\n <div className=\"mt-1 flex w-full items-start justify-start\">\n {showErrorMessage && state.meta.isDirty && <FieldError errors={state.meta.errors} />}\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n};\n"],"mappings":"8fA2CA,MAAa,GAAkC,CAC7C,QACA,cACA,cACA,cAAc,aACd,UACA,aACA,mBAAmB,MACf,CACJ,IAAM,EAAK,EAAM,EACX,CAAE,OAAM,OAAM,QAAO,aAAY,gBAAiB,EAAuC,EAEzF,EAAe,EAAS,EAAK,OAAQ,CAAE,kBAAmB,CAAY,EAEtE,CAAC,EAAW,GAAgB,EAAkB,EAAK,EAEnD,EAAW,EAAM,KAAK,SAAW,EAAM,KAAK,WAAa,CAAC,EAAM,KAAK,QAErE,EAAmB,MAAkB,EAAa,GAAQ,CAAC,CAAI,EAAG,CAAC,CAAC,EAEpE,EAAW,GACd,CAAE,OAAQ,CAAE,YAAc,CACrB,GACJ,EAAa,GAAS,IAAI,CAC5B,EACA,CAAC,EAAc,CAAY,CAC7B,EAEA,OACE,EAAC,EAAD,CAAY,UAAU,wBAAtB,CACE,EAAC,EAAD,CAAO,eAAc,EAAuB,uBAA5C,CACE,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CAAY,QAAS,WAArB,CACG,EACA,GAAW,EAAC,EAAD,CAAuB,SAAU,CAAA,CACnC,IACZ,EAAC,EAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,EACd,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CACM,KACE,OACN,KAAM,EAAY,OAAS,WACd,cACb,MAAO,EAAM,OAAS,GACtB,eAAc,EACd,aAAa,eACb,OAAQ,EACE,UACX,CAAA,EAED,EAAC,SAAD,CACE,UAAU,kOACV,KAAK,SACL,QAAS,EACT,aAAY,EAAY,cAAgB,gBACxC,eAAc,EACd,gBAAe,WAEF,EAAZ,EAAa,EAA8C,EAA/C,CAAY,KAAM,GAAI,cAAY,MAAQ,CAA2C,CAC5F,CAAA,EAER,EAAC,MAAD,CAAK,UAAU,sDACZ,GAAoB,EAAM,KAAK,SAAW,EAAC,EAAD,CAAY,OAAQ,EAAM,KAAK,MAAS,CAAA,CAChF,CAAA,EACL,EAAC,EAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,IACP,EAAC,EAAD,CAAiB,CAAA,CACP,GAEhB"}
1
+ {"version":3,"file":"password-field-CGPjZ5hZ.mjs","names":[],"sources":["../packages/components/features/tanstack-form/components/fields/password-field.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useId, useState } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { EyeIcon, EyeOffIcon } from 'lucide-react';\n\nimport { Input } from '@/components/ui/input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { PasswordFieldProps as Props } from '../../types';\n\n/**\n * A TanStack Form-connected password input field with a show/hide toggle button\n * and inline validation error display.\n *\n * @example\n * import { PasswordField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"password\">\n * {() => (\n * <PasswordField\n * label=\"Password\"\n * placeholder=\"Enter your password\"\n * helperText=\"Must be at least 8 characters\"\n * />\n * )}\n * </form.Field>\n */\nexport const PasswordField: React.FC<Props> = ({\n label,\n description,\n placeholder,\n orientation = 'responsive',\n tooltip,\n helperText,\n showErrorMessage = true,\n}) => {\n const id = useId();\n const { form, name, state, handleBlur, handleChange } = useTanStackFieldContext<string | null>();\n\n const isSubmitting = useStore(form.store, ({ isSubmitting }) => isSubmitting);\n\n const [isVisible, setIsVisible] = useState<boolean>(false);\n\n const _invalid = state.meta.isDirty && state.meta.isTouched && !state.meta.isValid;\n\n const toggleVisibility = useCallback(() => setIsVisible(prev => !prev), []);\n\n const onChange = useCallback<React.ChangeEventHandler<HTMLInputElement>>(\n ({ target: { value } }) => {\n if (isSubmitting) return;\n handleChange(value || null);\n },\n [isSubmitting, handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field data-invalid={_invalid} orientation={orientation}>\n <FieldContent>\n <FieldLabel htmlFor={id}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n <FieldContentMain>\n <Input\n id={id}\n name={name}\n type={isVisible ? 'text' : 'password'}\n placeholder={placeholder}\n value={state.value ?? ''}\n aria-invalid={_invalid}\n autoComplete=\"new-password\"\n onBlur={handleBlur}\n onChange={onChange}\n />\n\n <button\n className=\"absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\"\n type=\"button\"\n onClick={toggleVisibility}\n aria-label={isVisible ? 'Ẩn mật khẩu' : 'Hiện mật khẩu'}\n aria-pressed={isVisible}\n aria-controls={id}\n >\n {isVisible ? <EyeOffIcon size={16} aria-hidden=\"true\" /> : <EyeIcon size={16} aria-hidden=\"true\" />}\n </button>\n\n <div className=\"mt-1 flex w-full items-start justify-start\">\n {showErrorMessage && state.meta.isDirty && <FieldError errors={state.meta.errors} />}\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n};\n"],"mappings":"8fA2CA,MAAa,GAAkC,CAC7C,QACA,cACA,cACA,cAAc,aACd,UACA,aACA,mBAAmB,MACf,CACJ,IAAM,EAAK,EAAM,EACX,CAAE,OAAM,OAAM,QAAO,aAAY,gBAAiB,EAAuC,EAEzF,EAAe,EAAS,EAAK,OAAQ,CAAE,kBAAmB,CAAY,EAEtE,CAAC,EAAW,GAAgB,EAAkB,EAAK,EAEnD,EAAW,EAAM,KAAK,SAAW,EAAM,KAAK,WAAa,CAAC,EAAM,KAAK,QAErE,EAAmB,MAAkB,EAAa,GAAQ,CAAC,CAAI,EAAG,CAAC,CAAC,EAEpE,EAAW,GACd,CAAE,OAAQ,CAAE,YAAc,CACrB,GACJ,EAAa,GAAS,IAAI,CAC5B,EACA,CAAC,EAAc,CAAY,CAC7B,EAEA,OACE,EAAC,EAAD,CAAY,UAAU,wBAAtB,CACE,EAAC,EAAD,CAAO,eAAc,EAAuB,uBAA5C,CACE,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CAAY,QAAS,WAArB,CACG,EACA,GAAW,EAAC,EAAD,CAAuB,SAAU,CAAA,CACnC,IACZ,EAAC,EAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,EACd,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CACM,KACE,OACN,KAAM,EAAY,OAAS,WACd,cACb,MAAO,EAAM,OAAS,GACtB,eAAc,EACd,aAAa,eACb,OAAQ,EACE,UACX,CAAA,EAED,EAAC,SAAD,CACE,UAAU,kOACV,KAAK,SACL,QAAS,EACT,aAAY,EAAY,cAAgB,gBACxC,eAAc,EACd,gBAAe,WAEF,EAAZ,EAAa,EAA8C,EAA/C,CAAY,KAAM,GAAI,cAAY,MAAQ,CAA2C,CAC5F,CAAA,EAER,EAAC,MAAD,CAAK,UAAU,sDACZ,GAAoB,EAAM,KAAK,SAAW,EAAC,EAAD,CAAY,OAAQ,EAAM,KAAK,MAAS,CAAA,CAChF,CAAA,EACL,EAAC,EAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,IACP,EAAC,EAAD,CAAiB,CAAA,CACP,GAEhB"}
@@ -1,2 +1,2 @@
1
- const e=require("./tanstack-form-BC61U3F-.cjs"),t=require("./ui/input.cjs"),n=require("./field-BV5twmKA.cjs");let r=require("lucide-react"),i=require("react"),a=require("react/jsx-runtime"),o=require("@tanstack/react-form");const s=({label:s,description:c,placeholder:l,orientation:u=`responsive`,tooltip:d,helperText:f,showErrorMessage:p=!0})=>{let m=(0,i.useId)(),{form:h,name:g,state:_,handleBlur:v,handleChange:y}=e.G(),b=(0,o.useStore)(h.store,({isSubmitting:e})=>e),[x,S]=(0,i.useState)(!1),C=_.meta.isDirty&&_.meta.isTouched&&!_.meta.isValid,w=(0,i.useCallback)(()=>S(e=>!e),[]),T=(0,i.useCallback)(({target:{value:e}})=>{b||y(e||null)},[b,y]);return(0,a.jsxs)(n.FieldGroup,{className:`gap-y-4 px-4`,children:[(0,a.jsxs)(n.Field,{"data-invalid":C,orientation:u,children:[(0,a.jsxs)(n.FieldContent,{children:[(0,a.jsxs)(n.FieldLabel,{htmlFor:m,children:[s,d&&(0,a.jsx)(n.FieldTooltip,{tooltip:d})]}),(0,a.jsx)(n.FieldDescription,{children:c})]}),(0,a.jsxs)(n.FieldContentMain,{children:[(0,a.jsx)(t.Input,{id:m,name:g,type:x?`text`:`password`,placeholder:l,value:_.value??``,"aria-invalid":C,autoComplete:`new-password`,onBlur:v,onChange:T}),(0,a.jsx)(`button`,{className:`absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:w,"aria-label":x?`Ẩn mật khẩu`:`Hiện mật khẩu`,"aria-pressed":x,"aria-controls":m,children:x?(0,a.jsx)(r.EyeOffIcon,{size:16,"aria-hidden":`true`}):(0,a.jsx)(r.EyeIcon,{size:16,"aria-hidden":`true`})}),(0,a.jsx)(`div`,{className:`mt-1 flex w-full items-start justify-start`,children:p&&_.meta.isDirty&&(0,a.jsx)(n.FieldError,{errors:_.meta.errors})}),(0,a.jsx)(n.FieldNote,{isShow:!!f,children:f})]})]}),(0,a.jsx)(n.FieldSeparator,{})]})};exports.PasswordField=s;
2
- //# sourceMappingURL=password-field-D0drFRG2.cjs.map
1
+ const e=require("./tanstack-form-CX3lC3mC.cjs"),t=require("./ui/input.cjs"),n=require("./field-BSLi-P0Q.cjs");let r=require("lucide-react"),i=require("react"),a=require("react/jsx-runtime"),o=require("@tanstack/react-form");const s=({label:s,description:c,placeholder:l,orientation:u=`responsive`,tooltip:d,helperText:f,showErrorMessage:p=!0})=>{let m=(0,i.useId)(),{form:h,name:g,state:_,handleBlur:v,handleChange:y}=e.G(),b=(0,o.useStore)(h.store,({isSubmitting:e})=>e),[x,S]=(0,i.useState)(!1),C=_.meta.isDirty&&_.meta.isTouched&&!_.meta.isValid,w=(0,i.useCallback)(()=>S(e=>!e),[]),T=(0,i.useCallback)(({target:{value:e}})=>{b||y(e||null)},[b,y]);return(0,a.jsxs)(n.FieldGroup,{className:`gap-y-4 px-4`,children:[(0,a.jsxs)(n.Field,{"data-invalid":C,orientation:u,children:[(0,a.jsxs)(n.FieldContent,{children:[(0,a.jsxs)(n.FieldLabel,{htmlFor:m,children:[s,d&&(0,a.jsx)(n.FieldTooltip,{tooltip:d})]}),(0,a.jsx)(n.FieldDescription,{children:c})]}),(0,a.jsxs)(n.FieldContentMain,{children:[(0,a.jsx)(t.Input,{id:m,name:g,type:x?`text`:`password`,placeholder:l,value:_.value??``,"aria-invalid":C,autoComplete:`new-password`,onBlur:v,onChange:T}),(0,a.jsx)(`button`,{className:`absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:w,"aria-label":x?`Ẩn mật khẩu`:`Hiện mật khẩu`,"aria-pressed":x,"aria-controls":m,children:x?(0,a.jsx)(r.EyeOffIcon,{size:16,"aria-hidden":`true`}):(0,a.jsx)(r.EyeIcon,{size:16,"aria-hidden":`true`})}),(0,a.jsx)(`div`,{className:`mt-1 flex w-full items-start justify-start`,children:p&&_.meta.isDirty&&(0,a.jsx)(n.FieldError,{errors:_.meta.errors})}),(0,a.jsx)(n.FieldNote,{isShow:!!f,children:f})]})]}),(0,a.jsx)(n.FieldSeparator,{})]})};exports.PasswordField=s;
2
+ //# sourceMappingURL=password-field-CuBcb4mi.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"password-field-D0drFRG2.cjs","names":["useTanStackFieldContext","FieldGroup","Field","FieldContent","FieldLabel","FieldTooltip","FieldDescription","FieldContentMain","Input","EyeOffIcon","EyeIcon","FieldError","FieldNote","FieldSeparator"],"sources":["../packages/components/features/tanstack-form/components/fields/password-field.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useId, useState } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { EyeIcon, EyeOffIcon } from 'lucide-react';\n\nimport { Input } from '@/components/ui/input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { PasswordFieldProps as Props } from '../../types';\n\n/**\n * A TanStack Form-connected password input field with a show/hide toggle button\n * and inline validation error display.\n *\n * @example\n * import { PasswordField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"password\">\n * {() => (\n * <PasswordField\n * label=\"Password\"\n * placeholder=\"Enter your password\"\n * helperText=\"Must be at least 8 characters\"\n * />\n * )}\n * </form.Field>\n */\nexport const PasswordField: React.FC<Props> = ({\n label,\n description,\n placeholder,\n orientation = 'responsive',\n tooltip,\n helperText,\n showErrorMessage = true,\n}) => {\n const id = useId();\n const { form, name, state, handleBlur, handleChange } = useTanStackFieldContext<string | null>();\n\n const isSubmitting = useStore(form.store, ({ isSubmitting }) => isSubmitting);\n\n const [isVisible, setIsVisible] = useState<boolean>(false);\n\n const _invalid = state.meta.isDirty && state.meta.isTouched && !state.meta.isValid;\n\n const toggleVisibility = useCallback(() => setIsVisible(prev => !prev), []);\n\n const onChange = useCallback<React.ChangeEventHandler<HTMLInputElement>>(\n ({ target: { value } }) => {\n if (isSubmitting) return;\n handleChange(value || null);\n },\n [isSubmitting, handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field data-invalid={_invalid} orientation={orientation}>\n <FieldContent>\n <FieldLabel htmlFor={id}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n <FieldContentMain>\n <Input\n id={id}\n name={name}\n type={isVisible ? 'text' : 'password'}\n placeholder={placeholder}\n value={state.value ?? ''}\n aria-invalid={_invalid}\n autoComplete=\"new-password\"\n onBlur={handleBlur}\n onChange={onChange}\n />\n\n <button\n className=\"absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\"\n type=\"button\"\n onClick={toggleVisibility}\n aria-label={isVisible ? 'Ẩn mật khẩu' : 'Hiện mật khẩu'}\n aria-pressed={isVisible}\n aria-controls={id}\n >\n {isVisible ? <EyeOffIcon size={16} aria-hidden=\"true\" /> : <EyeIcon size={16} aria-hidden=\"true\" />}\n </button>\n\n <div className=\"mt-1 flex w-full items-start justify-start\">\n {showErrorMessage && state.meta.isDirty && <FieldError errors={state.meta.errors} />}\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n};\n"],"mappings":"gOA2CA,MAAa,GAAkC,CAC7C,QACA,cACA,cACA,cAAc,aACd,UACA,aACA,mBAAmB,MACf,CACJ,IAAM,GAAA,EAAA,EAAA,MAAA,CAAW,EACX,CAAE,OAAM,OAAM,QAAO,aAAY,gBAAiBA,EAAAA,EAAuC,EAEzF,GAAA,EAAA,EAAA,SAAA,CAAwB,EAAK,OAAQ,CAAE,kBAAmB,CAAY,EAEtE,CAAC,EAAW,IAAA,EAAA,EAAA,SAAA,CAAkC,EAAK,EAEnD,EAAW,EAAM,KAAK,SAAW,EAAM,KAAK,WAAa,CAAC,EAAM,KAAK,QAErE,GAAA,EAAA,EAAA,YAAA,KAAqC,EAAa,GAAQ,CAAC,CAAI,EAAG,CAAC,CAAC,EAEpE,GAAA,EAAA,EAAA,YAAA,EACH,CAAE,OAAQ,CAAE,YAAc,CACrB,GACJ,EAAa,GAAS,IAAI,CAC5B,EACA,CAAC,EAAc,CAAY,CAC7B,EAEA,OACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,UAAU,wBAAtB,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,MAAD,CAAO,eAAc,EAAuB,uBAA5C,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,aAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,QAAS,WAArB,CACG,EACA,IAAW,EAAA,EAAA,IAAA,CAACC,EAAAA,aAAD,CAAuB,SAAU,CAAA,CACnC,KACZ,EAAA,EAAA,IAAA,CAACC,EAAAA,iBAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,GACd,EAAA,EAAA,KAAA,CAACC,EAAAA,iBAAD,CAAA,SAAA,EACE,EAAA,EAAA,IAAA,CAACC,EAAAA,MAAD,CACM,KACE,OACN,KAAM,EAAY,OAAS,WACd,cACb,MAAO,EAAM,OAAS,GACtB,eAAc,EACd,aAAa,eACb,OAAQ,EACE,UACX,CAAA,GAED,EAAA,EAAA,IAAA,CAAC,SAAD,CACE,UAAU,kOACV,KAAK,SACL,QAAS,EACT,aAAY,EAAY,cAAgB,gBACxC,eAAc,EACd,gBAAe,WAEd,GAAY,EAAA,EAAA,IAAA,CAACC,EAAAA,WAAD,CAAY,KAAM,GAAI,cAAY,MAAQ,CAAA,GAAI,EAAA,EAAA,IAAA,CAACC,EAAAA,QAAD,CAAS,KAAM,GAAI,cAAY,MAAQ,CAAA,CAC5F,CAAA,GAER,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,sDACZ,GAAoB,EAAM,KAAK,UAAW,EAAA,EAAA,IAAA,CAACC,EAAAA,WAAD,CAAY,OAAQ,EAAM,KAAK,MAAS,CAAA,CAChF,CAAA,GACL,EAAA,EAAA,IAAA,CAACC,EAAAA,UAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,KACP,EAAA,EAAA,IAAA,CAACC,EAAAA,eAAD,CAAiB,CAAA,CACP,GAEhB"}
1
+ {"version":3,"file":"password-field-CuBcb4mi.cjs","names":["useTanStackFieldContext","FieldGroup","Field","FieldContent","FieldLabel","FieldTooltip","FieldDescription","FieldContentMain","Input","EyeOffIcon","EyeIcon","FieldError","FieldNote","FieldSeparator"],"sources":["../packages/components/features/tanstack-form/components/fields/password-field.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useId, useState } from 'react';\n\nimport { useStore } from '@tanstack/react-form';\n\nimport { EyeIcon, EyeOffIcon } from 'lucide-react';\n\nimport { Input } from '@/components/ui/input';\n\nimport { useTanStackFieldContext } from '../form-context';\nimport {\n Field,\n FieldContent,\n FieldContentMain,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldNote,\n FieldSeparator,\n FieldTooltip,\n} from '../ui/field';\n\nimport type { PasswordFieldProps as Props } from '../../types';\n\n/**\n * A TanStack Form-connected password input field with a show/hide toggle button\n * and inline validation error display.\n *\n * @example\n * import { PasswordField } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <form.Field name=\"password\">\n * {() => (\n * <PasswordField\n * label=\"Password\"\n * placeholder=\"Enter your password\"\n * helperText=\"Must be at least 8 characters\"\n * />\n * )}\n * </form.Field>\n */\nexport const PasswordField: React.FC<Props> = ({\n label,\n description,\n placeholder,\n orientation = 'responsive',\n tooltip,\n helperText,\n showErrorMessage = true,\n}) => {\n const id = useId();\n const { form, name, state, handleBlur, handleChange } = useTanStackFieldContext<string | null>();\n\n const isSubmitting = useStore(form.store, ({ isSubmitting }) => isSubmitting);\n\n const [isVisible, setIsVisible] = useState<boolean>(false);\n\n const _invalid = state.meta.isDirty && state.meta.isTouched && !state.meta.isValid;\n\n const toggleVisibility = useCallback(() => setIsVisible(prev => !prev), []);\n\n const onChange = useCallback<React.ChangeEventHandler<HTMLInputElement>>(\n ({ target: { value } }) => {\n if (isSubmitting) return;\n handleChange(value || null);\n },\n [isSubmitting, handleChange]\n );\n\n return (\n <FieldGroup className=\"gap-y-4 px-4\">\n <Field data-invalid={_invalid} orientation={orientation}>\n <FieldContent>\n <FieldLabel htmlFor={id}>\n {label}\n {tooltip && <FieldTooltip tooltip={tooltip} />}\n </FieldLabel>\n <FieldDescription>{description}</FieldDescription>\n </FieldContent>\n <FieldContentMain>\n <Input\n id={id}\n name={name}\n type={isVisible ? 'text' : 'password'}\n placeholder={placeholder}\n value={state.value ?? ''}\n aria-invalid={_invalid}\n autoComplete=\"new-password\"\n onBlur={handleBlur}\n onChange={onChange}\n />\n\n <button\n className=\"absolute inset-e-0 inset-y-0 flex size-9 items-center justify-center rounded-e-md text-muted outline-none transition-[color,box-shadow] focus:z-10 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\"\n type=\"button\"\n onClick={toggleVisibility}\n aria-label={isVisible ? 'Ẩn mật khẩu' : 'Hiện mật khẩu'}\n aria-pressed={isVisible}\n aria-controls={id}\n >\n {isVisible ? <EyeOffIcon size={16} aria-hidden=\"true\" /> : <EyeIcon size={16} aria-hidden=\"true\" />}\n </button>\n\n <div className=\"mt-1 flex w-full items-start justify-start\">\n {showErrorMessage && state.meta.isDirty && <FieldError errors={state.meta.errors} />}\n </div>\n <FieldNote isShow={!!helperText}>{helperText}</FieldNote>\n </FieldContentMain>\n </Field>\n <FieldSeparator />\n </FieldGroup>\n );\n};\n"],"mappings":"gOA2CA,MAAa,GAAkC,CAC7C,QACA,cACA,cACA,cAAc,aACd,UACA,aACA,mBAAmB,MACf,CACJ,IAAM,GAAA,EAAA,EAAA,MAAA,CAAW,EACX,CAAE,OAAM,OAAM,QAAO,aAAY,gBAAiBA,EAAAA,EAAuC,EAEzF,GAAA,EAAA,EAAA,SAAA,CAAwB,EAAK,OAAQ,CAAE,kBAAmB,CAAY,EAEtE,CAAC,EAAW,IAAA,EAAA,EAAA,SAAA,CAAkC,EAAK,EAEnD,EAAW,EAAM,KAAK,SAAW,EAAM,KAAK,WAAa,CAAC,EAAM,KAAK,QAErE,GAAA,EAAA,EAAA,YAAA,KAAqC,EAAa,GAAQ,CAAC,CAAI,EAAG,CAAC,CAAC,EAEpE,GAAA,EAAA,EAAA,YAAA,EACH,CAAE,OAAQ,CAAE,YAAc,CACrB,GACJ,EAAa,GAAS,IAAI,CAC5B,EACA,CAAC,EAAc,CAAY,CAC7B,EAEA,OACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,UAAU,wBAAtB,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,MAAD,CAAO,eAAc,EAAuB,uBAA5C,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,aAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAA,CAACC,EAAAA,WAAD,CAAY,QAAS,WAArB,CACG,EACA,IAAW,EAAA,EAAA,IAAA,CAACC,EAAAA,aAAD,CAAuB,SAAU,CAAA,CACnC,KACZ,EAAA,EAAA,IAAA,CAACC,EAAAA,iBAAD,CAAA,SAAmB,CAA8B,CAAA,CACrC,CAAA,CAAA,GACd,EAAA,EAAA,KAAA,CAACC,EAAAA,iBAAD,CAAA,SAAA,EACE,EAAA,EAAA,IAAA,CAACC,EAAAA,MAAD,CACM,KACE,OACN,KAAM,EAAY,OAAS,WACd,cACb,MAAO,EAAM,OAAS,GACtB,eAAc,EACd,aAAa,eACb,OAAQ,EACE,UACX,CAAA,GAED,EAAA,EAAA,IAAA,CAAC,SAAD,CACE,UAAU,kOACV,KAAK,SACL,QAAS,EACT,aAAY,EAAY,cAAgB,gBACxC,eAAc,EACd,gBAAe,WAEd,GAAY,EAAA,EAAA,IAAA,CAACC,EAAAA,WAAD,CAAY,KAAM,GAAI,cAAY,MAAQ,CAAA,GAAI,EAAA,EAAA,IAAA,CAACC,EAAAA,QAAD,CAAS,KAAM,GAAI,cAAY,MAAQ,CAAA,CAC5F,CAAA,GAER,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,sDACZ,GAAoB,EAAM,KAAK,UAAW,EAAA,EAAA,IAAA,CAACC,EAAAA,WAAD,CAAY,OAAQ,EAAM,KAAK,MAAS,CAAA,CAChF,CAAA,GACL,EAAA,EAAA,IAAA,CAACC,EAAAA,UAAD,CAAW,OAAQ,CAAC,CAAC,WAAa,CAAsB,CAAA,CACxC,CAAA,CAAA,CACb,KACP,EAAA,EAAA,IAAA,CAACC,EAAAA,eAAD,CAAiB,CAAA,CACP,GAEhB"}
@@ -1,2 +1,2 @@
1
- import{t as e}from"./close-DYJZ8fkh.mjs";import{K as t}from"./tanstack-form-DJMaMeUh.mjs";import{n,t as r}from"./submit-button-CGBaPzE9.mjs";import{cn as i}from"@customafk/react-toolkit/utils";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{Dialog as s}from"radix-ui";const c=({title:c,open:l,contentClassName:u,onOpenChange:d,children:f})=>{let p=t();return a(s.Root,{"data-slot":`dialog`,open:l,onOpenChange:d,children:o(s.Portal,{"data-slot":`dialog-portal`,children:[a(s.Overlay,{"data-slot":`dialog-overlay`,className:i(`fixed inset-0 z-40 bg-black/40 backdrop-blur-sm`,`data-[state=open]:animate-in data-[state=open]:fade-in`,`data-[state=closed]:animate-out data-[state=closed]:fade-out`)}),a(s.Content,{"data-slot":`dialog-content`,className:i(`fixed top-4 right-4 z-50 h-[calc(100dvh-2rem)] min-w-sm max-w-xl rounded-md bg-background shadow-lg ring-1 ring-border`,`duration-300`,`data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=open]:fade-in`,`data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=closed]:fade-out`),children:o(`section`,{className:`relative flex size-full flex-col`,children:[a(`header`,{className:`flex h-14 shrink-0 items-center border-b border-border px-5`,children:a(`h2`,{className:`font-semibold text-base tracking-tight text-text-positive`,children:c})}),a(`div`,{className:i(`flex flex-1 flex-col overflow-y-auto py-4`,u),children:f}),o(`div`,{className:`flex shrink-0 flex-col gap-2 border-t border-border px-4 py-3`,children:[a(p.Subscribe,{selector:e=>({isSubmitting:e.isSubmitting,disabled:e.isPristine||!e.isValid||e.isValidating||e.isSubmitting||!e.canSubmit}),children:({isSubmitting:e,disabled:t})=>a(r,{isSubmitting:e,disabled:t,className:`w-full`,onClick:()=>p.handleSubmit()})}),a(p.Subscribe,{selector:e=>({disabled:e.isPristine||e.isSubmitting}),children:({disabled:e})=>a(n,{disabled:e,className:`w-full`,onClick:()=>{p.reset(),d?.(!1)}})})]}),a(s.Close,{asChild:!0,children:a(e,{className:`absolute top-2.5 right-3`})})]})})]})})};export{c as TanStackPopoverForm};
2
- //# sourceMappingURL=popover-form-rwhAulOD.mjs.map
1
+ import{t as e}from"./close-DYJZ8fkh.mjs";import{K as t}from"./tanstack-form-CKAWexet.mjs";import{n,t as r}from"./submit-button-CGBaPzE9.mjs";import{cn as i}from"@customafk/react-toolkit/utils";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{Dialog as s}from"radix-ui";const c=({title:c,open:l,contentClassName:u,onOpenChange:d,children:f})=>{let p=t();return a(s.Root,{"data-slot":`dialog`,open:l,onOpenChange:d,children:o(s.Portal,{"data-slot":`dialog-portal`,children:[a(s.Overlay,{"data-slot":`dialog-overlay`,className:i(`fixed inset-0 z-40 bg-black/40 backdrop-blur-sm`,`data-[state=open]:animate-in data-[state=open]:fade-in`,`data-[state=closed]:animate-out data-[state=closed]:fade-out`)}),a(s.Content,{"data-slot":`dialog-content`,className:i(`fixed top-4 right-4 z-50 h-[calc(100dvh-2rem)] min-w-sm max-w-xl rounded-md bg-background shadow-lg ring-1 ring-border`,`duration-300`,`data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=open]:fade-in`,`data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=closed]:fade-out`),children:o(`section`,{className:`relative flex size-full flex-col`,children:[a(`header`,{className:`flex h-14 shrink-0 items-center border-b border-border px-5`,children:a(`h2`,{className:`font-semibold text-base tracking-tight text-text-positive`,children:c})}),a(`div`,{className:i(`flex flex-1 flex-col overflow-y-auto py-4`,u),children:f}),o(`div`,{className:`flex shrink-0 flex-col gap-2 border-t border-border px-4 py-3`,children:[a(p.Subscribe,{selector:e=>({isSubmitting:e.isSubmitting,disabled:e.isPristine||!e.isValid||e.isValidating||e.isSubmitting||!e.canSubmit}),children:({isSubmitting:e,disabled:t})=>a(r,{isSubmitting:e,disabled:t,className:`w-full`,onClick:()=>p.handleSubmit()})}),a(p.Subscribe,{selector:e=>({disabled:e.isPristine||e.isSubmitting}),children:({disabled:e})=>a(n,{disabled:e,className:`w-full`,onClick:()=>{p.reset(),d?.(!1)}})})]}),a(s.Close,{asChild:!0,children:a(e,{className:`absolute top-2.5 right-3`})})]})})]})})};export{c as TanStackPopoverForm};
2
+ //# sourceMappingURL=popover-form-DVJUQ3_T.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-form-rwhAulOD.mjs","names":["DialogPrimitive"],"sources":["../packages/components/features/tanstack-form/components/forms/popover-form.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { CloseButton } from '@/components/ui/buttons/close';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { useTanStackFormContext } from '../form-context';\nimport { CancelButton } from '../ui/cancel-button';\nimport { SubmitButton } from '../ui/submit-button';\n\n/**\n * Renders a slide-in side-panel dialog that wraps a TanStack form with built-in submit and cancel actions.\n *\n * @example\n * import { TanStackPopoverForm } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <TanStackPopoverForm\n * title=\"Edit Profile\"\n * open={isOpen}\n * onOpenChange={setIsOpen}\n * >\n * <EmailField />\n * </TanStackPopoverForm>\n */\nexport const TanStackPopoverForm: React.FC<\n React.PropsWithChildren<{\n /** Heading text displayed in the panel header. */\n title: string;\n /** Controlled open state of the popover dialog. */\n open?: boolean;\n /** Additional CSS class names applied to the scrollable content area. */\n contentClassName?: string;\n /** Callback fired when the open state changes. */\n onOpenChange?: (open: boolean) => void;\n }>\n> = ({ title, open, contentClassName, onOpenChange, children }) => {\n const form = useTanStackFormContext();\n\n return (\n <DialogPrimitive.Root data-slot=\"dialog\" open={open} onOpenChange={onOpenChange}>\n <DialogPrimitive.Portal data-slot=\"dialog-portal\">\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-40 bg-black/40 backdrop-blur-sm',\n 'data-[state=open]:animate-in data-[state=open]:fade-in',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out'\n )}\n />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-4 right-4 z-50 h-[calc(100dvh-2rem)] min-w-sm max-w-xl rounded-md bg-background shadow-lg ring-1 ring-border',\n 'duration-300',\n 'data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=open]:fade-in',\n 'data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=closed]:fade-out'\n )}\n >\n <section className=\"relative flex size-full flex-col\">\n <header className=\"flex h-14 shrink-0 items-center border-b border-border px-5\">\n <h2 className=\"font-semibold text-base tracking-tight text-text-positive\">{title}</h2>\n </header>\n\n <div className={cn('flex flex-1 flex-col overflow-y-auto py-4', contentClassName)}>{children}</div>\n\n <div className=\"flex shrink-0 flex-col gap-2 border-t border-border px-4 py-3\">\n <form.Subscribe\n selector={state => ({\n isSubmitting: state.isSubmitting,\n disabled: state.isPristine || !state.isValid || state.isValidating || state.isSubmitting || !state.canSubmit,\n })}\n children={({ isSubmitting, disabled }) => (\n <SubmitButton isSubmitting={isSubmitting} disabled={disabled} className=\"w-full\" onClick={() => form.handleSubmit()} />\n )}\n />\n <form.Subscribe\n selector={state => ({ disabled: state.isPristine || state.isSubmitting })}\n children={({ disabled }) => (\n <CancelButton\n disabled={disabled}\n className=\"w-full\"\n onClick={() => {\n form.reset();\n onOpenChange?.(false);\n }}\n />\n )}\n />\n </div>\n\n <DialogPrimitive.Close asChild>\n <CloseButton className=\"absolute top-2.5 right-3\" />\n </DialogPrimitive.Close>\n </section>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n );\n};\n"],"mappings":"qRAyBA,MAAa,GAWR,CAAE,QAAO,OAAM,mBAAkB,eAAc,cAAe,CACjE,IAAM,EAAO,EAAuB,EAEpC,OACE,EAACA,EAAgB,KAAjB,CAAsB,YAAU,SAAe,OAAoB,wBACjE,EAACA,EAAgB,OAAjB,CAAwB,YAAU,yBAAlC,CACE,EAACA,EAAgB,QAAjB,CACE,YAAU,iBACV,UAAW,EACT,kDACA,yDACA,8DACF,CACD,CAAA,EACD,EAACA,EAAgB,QAAjB,CACE,YAAU,iBACV,UAAW,EACT,yHACA,eACA,+FACA,qGACF,WAEA,EAAC,UAAD,CAAS,UAAU,4CAAnB,CACE,EAAC,SAAD,CAAQ,UAAU,uEAChB,EAAC,KAAD,CAAI,UAAU,qEAA6D,CAAU,CAAA,CAC/E,CAAA,EAER,EAAC,MAAD,CAAK,UAAW,EAAG,4CAA6C,CAAgB,EAAI,UAAc,CAAA,EAElG,EAAC,MAAD,CAAK,UAAU,yEAAf,CACE,EAAC,EAAK,UAAN,CACE,SAAU,IAAU,CAClB,aAAc,EAAM,aACpB,SAAU,EAAM,YAAc,CAAC,EAAM,SAAW,EAAM,cAAgB,EAAM,cAAgB,CAAC,EAAM,SACrG,GACA,UAAW,CAAE,eAAc,cACzB,EAAC,EAAD,CAA4B,eAAwB,WAAU,UAAU,SAAS,YAAe,EAAK,aAAa,CAAI,CAAA,CAEzH,CAAA,EACD,EAAC,EAAK,UAAN,CACE,SAAU,IAAU,CAAE,SAAU,EAAM,YAAc,EAAM,YAAa,GACvE,UAAW,CAAE,cACX,EAAC,EAAD,CACY,WACV,UAAU,SACV,YAAe,CACb,EAAK,MAAM,EACX,IAAe,EAAK,CACtB,CACD,CAAA,CAEJ,CAAA,CACE,IAEL,EAACA,EAAgB,MAAjB,CAAuB,QAAA,YACrB,EAAC,EAAD,CAAa,UAAU,0BAA4B,CAAA,CAC9B,CAAA,CAChB,GACc,CAAA,CACH,GACJ,CAAA,CAE1B"}
1
+ {"version":3,"file":"popover-form-DVJUQ3_T.mjs","names":["DialogPrimitive"],"sources":["../packages/components/features/tanstack-form/components/forms/popover-form.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { CloseButton } from '@/components/ui/buttons/close';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { useTanStackFormContext } from '../form-context';\nimport { CancelButton } from '../ui/cancel-button';\nimport { SubmitButton } from '../ui/submit-button';\n\n/**\n * Renders a slide-in side-panel dialog that wraps a TanStack form with built-in submit and cancel actions.\n *\n * @example\n * import { TanStackPopoverForm } from '@customafk/lunas-ui/features/tanstack-form';\n *\n * <TanStackPopoverForm\n * title=\"Edit Profile\"\n * open={isOpen}\n * onOpenChange={setIsOpen}\n * >\n * <EmailField />\n * </TanStackPopoverForm>\n */\nexport const TanStackPopoverForm: React.FC<\n React.PropsWithChildren<{\n /** Heading text displayed in the panel header. */\n title: string;\n /** Controlled open state of the popover dialog. */\n open?: boolean;\n /** Additional CSS class names applied to the scrollable content area. */\n contentClassName?: string;\n /** Callback fired when the open state changes. */\n onOpenChange?: (open: boolean) => void;\n }>\n> = ({ title, open, contentClassName, onOpenChange, children }) => {\n const form = useTanStackFormContext();\n\n return (\n <DialogPrimitive.Root data-slot=\"dialog\" open={open} onOpenChange={onOpenChange}>\n <DialogPrimitive.Portal data-slot=\"dialog-portal\">\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-40 bg-black/40 backdrop-blur-sm',\n 'data-[state=open]:animate-in data-[state=open]:fade-in',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out'\n )}\n />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-4 right-4 z-50 h-[calc(100dvh-2rem)] min-w-sm max-w-xl rounded-md bg-background shadow-lg ring-1 ring-border',\n 'duration-300',\n 'data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=open]:fade-in',\n 'data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=closed]:fade-out'\n )}\n >\n <section className=\"relative flex size-full flex-col\">\n <header className=\"flex h-14 shrink-0 items-center border-b border-border px-5\">\n <h2 className=\"font-semibold text-base tracking-tight text-text-positive\">{title}</h2>\n </header>\n\n <div className={cn('flex flex-1 flex-col overflow-y-auto py-4', contentClassName)}>{children}</div>\n\n <div className=\"flex shrink-0 flex-col gap-2 border-t border-border px-4 py-3\">\n <form.Subscribe\n selector={state => ({\n isSubmitting: state.isSubmitting,\n disabled: state.isPristine || !state.isValid || state.isValidating || state.isSubmitting || !state.canSubmit,\n })}\n children={({ isSubmitting, disabled }) => (\n <SubmitButton isSubmitting={isSubmitting} disabled={disabled} className=\"w-full\" onClick={() => form.handleSubmit()} />\n )}\n />\n <form.Subscribe\n selector={state => ({ disabled: state.isPristine || state.isSubmitting })}\n children={({ disabled }) => (\n <CancelButton\n disabled={disabled}\n className=\"w-full\"\n onClick={() => {\n form.reset();\n onOpenChange?.(false);\n }}\n />\n )}\n />\n </div>\n\n <DialogPrimitive.Close asChild>\n <CloseButton className=\"absolute top-2.5 right-3\" />\n </DialogPrimitive.Close>\n </section>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n );\n};\n"],"mappings":"qRAyBA,MAAa,GAWR,CAAE,QAAO,OAAM,mBAAkB,eAAc,cAAe,CACjE,IAAM,EAAO,EAAuB,EAEpC,OACE,EAACA,EAAgB,KAAjB,CAAsB,YAAU,SAAe,OAAoB,wBACjE,EAACA,EAAgB,OAAjB,CAAwB,YAAU,yBAAlC,CACE,EAACA,EAAgB,QAAjB,CACE,YAAU,iBACV,UAAW,EACT,kDACA,yDACA,8DACF,CACD,CAAA,EACD,EAACA,EAAgB,QAAjB,CACE,YAAU,iBACV,UAAW,EACT,yHACA,eACA,+FACA,qGACF,WAEA,EAAC,UAAD,CAAS,UAAU,4CAAnB,CACE,EAAC,SAAD,CAAQ,UAAU,uEAChB,EAAC,KAAD,CAAI,UAAU,qEAA6D,CAAU,CAAA,CAC/E,CAAA,EAER,EAAC,MAAD,CAAK,UAAW,EAAG,4CAA6C,CAAgB,EAAI,UAAc,CAAA,EAElG,EAAC,MAAD,CAAK,UAAU,yEAAf,CACE,EAAC,EAAK,UAAN,CACE,SAAU,IAAU,CAClB,aAAc,EAAM,aACpB,SAAU,EAAM,YAAc,CAAC,EAAM,SAAW,EAAM,cAAgB,EAAM,cAAgB,CAAC,EAAM,SACrG,GACA,UAAW,CAAE,eAAc,cACzB,EAAC,EAAD,CAA4B,eAAwB,WAAU,UAAU,SAAS,YAAe,EAAK,aAAa,CAAI,CAAA,CAEzH,CAAA,EACD,EAAC,EAAK,UAAN,CACE,SAAU,IAAU,CAAE,SAAU,EAAM,YAAc,EAAM,YAAa,GACvE,UAAW,CAAE,cACX,EAAC,EAAD,CACY,WACV,UAAU,SACV,YAAe,CACb,EAAK,MAAM,EACX,IAAe,EAAK,CACtB,CACD,CAAA,CAEJ,CAAA,CACE,IAEL,EAACA,EAAgB,MAAjB,CAAuB,QAAA,YACrB,EAAC,EAAD,CAAa,UAAU,0BAA4B,CAAA,CAC9B,CAAA,CAChB,GACc,CAAA,CACH,GACJ,CAAA,CAE1B"}