braid-ui 1.0.58 → 1.0.60

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.
package/dist/index.d.cts CHANGED
@@ -1003,7 +1003,7 @@ interface NewTransactionFormValues {
1003
1003
  accountNumber: string;
1004
1004
  counterpartyName?: string;
1005
1005
  amount: string;
1006
- description?: string;
1006
+ description: string;
1007
1007
  certifyInformation: boolean;
1008
1008
  adjustmentDirection?: string;
1009
1009
  adjustmentType?: string;
@@ -1805,7 +1805,7 @@ declare const newTransactionSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zod
1805
1805
  accountNumber: z.ZodString;
1806
1806
  counterpartyName: z.ZodOptional<z.ZodString>;
1807
1807
  amount: z.ZodString;
1808
- description: z.ZodOptional<z.ZodString>;
1808
+ description: z.ZodString;
1809
1809
  certifyInformation: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
1810
1810
  adjustmentDirection: z.ZodOptional<z.ZodString>;
1811
1811
  adjustmentType: z.ZodOptional<z.ZodString>;
package/dist/index.d.ts CHANGED
@@ -1003,7 +1003,7 @@ interface NewTransactionFormValues {
1003
1003
  accountNumber: string;
1004
1004
  counterpartyName?: string;
1005
1005
  amount: string;
1006
- description?: string;
1006
+ description: string;
1007
1007
  certifyInformation: boolean;
1008
1008
  adjustmentDirection?: string;
1009
1009
  adjustmentType?: string;
@@ -1805,7 +1805,7 @@ declare const newTransactionSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zod
1805
1805
  accountNumber: z.ZodString;
1806
1806
  counterpartyName: z.ZodOptional<z.ZodString>;
1807
1807
  amount: z.ZodString;
1808
- description: z.ZodOptional<z.ZodString>;
1808
+ description: z.ZodString;
1809
1809
  certifyInformation: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
1810
1810
  adjustmentDirection: z.ZodOptional<z.ZodString>;
1811
1811
  adjustmentType: z.ZodOptional<z.ZodString>;
package/dist/index.js CHANGED
@@ -8779,7 +8779,7 @@ var NewTransactionView = ({
8779
8779
  FormInput,
8780
8780
  {
8781
8781
  name: "description",
8782
- label: "Description (Optional)",
8782
+ label: "Description",
8783
8783
  placeholder: "Enter transaction description",
8784
8784
  disabled: requiresCounterparty ? !counterpartyLookedUp : isTransfer ? !receiverAccountLookedUp : !transactionType
8785
8785
  }
@@ -14348,7 +14348,7 @@ var newTransactionSchema = z.object({
14348
14348
  accountNumber: z.string().min(1, "Account number is required"),
14349
14349
  counterpartyName: z.string().optional(),
14350
14350
  amount: z.string().min(1, "Amount is required"),
14351
- description: z.string().optional(),
14351
+ description: z.string().min(1, "Description is required"),
14352
14352
  certifyInformation: z.boolean().refine((val) => val === true, {
14353
14353
  message: "You must certify the information is correct"
14354
14354
  }),
@@ -14765,7 +14765,7 @@ function NewTransaction() {
14765
14765
  const isReviewReady = useMemo(() => {
14766
14766
  const data = form.watch();
14767
14767
  const requiresCounterparty = ["ach", "wire"].includes(data.transactionType);
14768
- if (!data.transactionType || !data.accountNumber || !data.amount) return false;
14768
+ if (!data.transactionType || !data.accountNumber || !data.amount || !data.description) return false;
14769
14769
  if (requiresCounterparty && (!data.counterpartyName || !counterpartyLookedUp)) return false;
14770
14770
  if (!accountLookedUp) return false;
14771
14771
  if (data.transactionType === "adjustment") {