braid-ui 1.0.99 → 1.0.100

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 (145) hide show
  1. package/README.md +327 -44
  2. package/dist/css/braid-ui-variables.css +88 -0
  3. package/dist/css/braid-ui.css +4702 -0
  4. package/dist/css/braid-ui.min.css +1 -0
  5. package/dist/index.cjs +4 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.d.cts +2027 -0
  8. package/dist/index.d.ts +2027 -0
  9. package/dist/index.js +4 -0
  10. package/dist/index.js.map +1 -0
  11. package/package.json +115 -55
  12. package/src/styles-only.css +121 -0
  13. package/src/{index.css → styles.css} +4 -10
  14. package/components.json +0 -20
  15. package/eslint.config.js +0 -29
  16. package/index.html +0 -24
  17. package/postcss.config.js +0 -6
  18. package/public/favicon.ico +0 -0
  19. package/public/placeholder.svg +0 -1
  20. package/public/robots.txt +0 -14
  21. package/src/App.css +0 -42
  22. package/src/App.tsx +0 -94
  23. package/src/components/MainLayout.tsx +0 -15
  24. package/src/components/alerts/AlertDocuments.tsx +0 -320
  25. package/src/components/alerts/AlertNotes.tsx +0 -185
  26. package/src/components/alerts/AlertTimeline.tsx +0 -79
  27. package/src/components/alerts/ContextSection.tsx +0 -155
  28. package/src/components/app-sidebar.tsx +0 -341
  29. package/src/components/form-sections/ACHBankCard.tsx +0 -78
  30. package/src/components/form-sections/ACHBasicInfoCard.tsx +0 -100
  31. package/src/components/form-sections/ACHTransferSection.tsx +0 -64
  32. package/src/components/form-sections/AddressForm.tsx +0 -94
  33. package/src/components/form-sections/BankAddressCard.tsx +0 -95
  34. package/src/components/form-sections/BankingDetailsCard.tsx +0 -46
  35. package/src/components/form-sections/BasicInfoCard.tsx +0 -103
  36. package/src/components/form-sections/BasicInfoSection.tsx +0 -34
  37. package/src/components/form-sections/BeneficiaryAddress.tsx +0 -19
  38. package/src/components/form-sections/BeneficiaryCard.tsx +0 -41
  39. package/src/components/form-sections/BeneficiaryDomesticWire.tsx +0 -23
  40. package/src/components/form-sections/BusinessProfileCard.tsx +0 -131
  41. package/src/components/form-sections/BusinessStatusCard.tsx +0 -53
  42. package/src/components/form-sections/ContactInfoCard.tsx +0 -63
  43. package/src/components/form-sections/CounterpartyBasicInfo.tsx +0 -101
  44. package/src/components/form-sections/CounterpartyProfileCard.tsx +0 -104
  45. package/src/components/form-sections/CounterpartyRecordsCard.tsx +0 -41
  46. package/src/components/form-sections/IntermediaryCard.tsx +0 -77
  47. package/src/components/form-sections/IntermediaryFI.tsx +0 -41
  48. package/src/components/form-sections/IntermediaryFIAddress.tsx +0 -14
  49. package/src/components/form-sections/OriginatorCard.tsx +0 -49
  50. package/src/components/form-sections/OriginatorFI.tsx +0 -42
  51. package/src/components/form-sections/OriginatorFIAddress.tsx +0 -14
  52. package/src/components/form-sections/PaymentInformationSection.tsx +0 -163
  53. package/src/components/form-sections/ReceiverCard.tsx +0 -94
  54. package/src/components/form-sections/WireTransferSection.tsx +0 -75
  55. package/src/components/layouts/list-page.tsx +0 -103
  56. package/src/components/transaction/ACHDetailsSection.tsx +0 -95
  57. package/src/components/transaction/WireDetailsSection.tsx +0 -112
  58. package/src/components/ui/account-card.tsx +0 -94
  59. package/src/components/ui/badge.tsx +0 -75
  60. package/src/components/ui/breadcrumb.tsx +0 -78
  61. package/src/components/ui/business-type-badge.tsx +0 -42
  62. package/src/components/ui/button.tsx +0 -56
  63. package/src/components/ui/calendar.tsx +0 -49
  64. package/src/components/ui/card.tsx +0 -223
  65. package/src/components/ui/container.tsx +0 -45
  66. package/src/components/ui/counterparty-type-badge.tsx +0 -53
  67. package/src/components/ui/data-grid.tsx +0 -99
  68. package/src/components/ui/data-table.tsx +0 -152
  69. package/src/components/ui/detail-page-layout.tsx +0 -83
  70. package/src/components/ui/dialog.tsx +0 -120
  71. package/src/components/ui/dropdown-menu.tsx +0 -82
  72. package/src/components/ui/editable-form-card.tsx +0 -106
  73. package/src/components/ui/editable-info-field.tsx +0 -67
  74. package/src/components/ui/enhanced-input.tsx +0 -78
  75. package/src/components/ui/enhanced-select.tsx +0 -101
  76. package/src/components/ui/enhanced-textarea.tsx +0 -64
  77. package/src/components/ui/entity-card.tsx +0 -140
  78. package/src/components/ui/form-card.tsx +0 -40
  79. package/src/components/ui/form-field.tsx +0 -50
  80. package/src/components/ui/form-input.tsx +0 -29
  81. package/src/components/ui/form-provider.tsx +0 -18
  82. package/src/components/ui/form-section.tsx +0 -66
  83. package/src/components/ui/form-select.tsx +0 -35
  84. package/src/components/ui/info-field.tsx +0 -36
  85. package/src/components/ui/json-viewer.tsx +0 -146
  86. package/src/components/ui/label.tsx +0 -24
  87. package/src/components/ui/metric-card.tsx +0 -80
  88. package/src/components/ui/page-layout.tsx +0 -183
  89. package/src/components/ui/popover.tsx +0 -29
  90. package/src/components/ui/responsive-grid.tsx +0 -46
  91. package/src/components/ui/separator.tsx +0 -31
  92. package/src/components/ui/sheet.tsx +0 -140
  93. package/src/components/ui/sidebar.tsx +0 -775
  94. package/src/components/ui/sonner.tsx +0 -29
  95. package/src/components/ui/stack.tsx +0 -77
  96. package/src/components/ui/status-badge.tsx +0 -68
  97. package/src/components/ui/tabs.tsx +0 -52
  98. package/src/components/ui/toast.tsx +0 -127
  99. package/src/components/ui/toaster.tsx +0 -33
  100. package/src/components/ui/tooltip.tsx +0 -28
  101. package/src/components/ui/use-toast.ts +0 -3
  102. package/src/components/ui-kit/dashboard-demo.tsx +0 -156
  103. package/src/components/ui-kit/pattern-library.tsx +0 -248
  104. package/src/components/ui-kit/showcase.tsx +0 -211
  105. package/src/hooks/use-mobile.tsx +0 -19
  106. package/src/hooks/use-toast.ts +0 -191
  107. package/src/hooks/useEditState.ts +0 -70
  108. package/src/hooks/useFormWithEditState.ts +0 -115
  109. package/src/lib/constants.ts +0 -25
  110. package/src/lib/mock-data/alert-data.ts +0 -275
  111. package/src/lib/mock-data/banking-data.ts +0 -72
  112. package/src/lib/mock-data/business-data.ts +0 -71
  113. package/src/lib/mock-data/counterparty-data.ts +0 -70
  114. package/src/lib/mock-data/index.ts +0 -5
  115. package/src/lib/mock-data/transaction-data.ts +0 -283
  116. package/src/lib/mock-data/wire-data.ts +0 -103
  117. package/src/lib/mock-data.tsx +0 -180
  118. package/src/lib/schemas/banking-schemas.ts +0 -30
  119. package/src/lib/schemas/business-schemas.ts +0 -36
  120. package/src/lib/schemas/counterparty-schemas.ts +0 -43
  121. package/src/lib/schemas/index.ts +0 -5
  122. package/src/lib/schemas/wire-schemas.ts +0 -44
  123. package/src/lib/utils.ts +0 -6
  124. package/src/main.tsx +0 -10
  125. package/src/pages/Cases.tsx +0 -16
  126. package/src/pages/Dashboard.tsx +0 -16
  127. package/src/pages/NotFound.tsx +0 -27
  128. package/src/pages/TransactionHistory.tsx +0 -532
  129. package/src/pages/UIKit.tsx +0 -51
  130. package/src/pages/alerts/AlertDetail.tsx +0 -193
  131. package/src/pages/alerts/Alerts.tsx +0 -373
  132. package/src/pages/business/Business.tsx +0 -48
  133. package/src/pages/business/Create.tsx +0 -173
  134. package/src/pages/counterparty/Create.tsx +0 -48
  135. package/src/pages/counterparty/DomesticWire.tsx +0 -78
  136. package/src/pages/counterparty/Manage.tsx +0 -79
  137. package/src/pages/transactions/NewTransaction.tsx +0 -527
  138. package/src/pages/transactions/TransactionDetail.tsx +0 -192
  139. package/src/vite-env.d.ts +0 -1
  140. package/tailwind.config.ts +0 -124
  141. package/tsconfig.app.json +0 -30
  142. package/tsconfig.json +0 -19
  143. package/tsconfig.node.json +0 -22
  144. package/vite.config.ts +0 -22
  145. /package/{src/assets/braid-logo.png → dist/braid-logo-343BOQZ2.png} +0 -0
@@ -1,173 +0,0 @@
1
- import { useState } from "react"
2
- import { PageLayout } from "@/components/ui/page-layout"
3
- import { EnhancedInput } from "@/components/ui/enhanced-input"
4
- import { EnhancedSelect } from "@/components/ui/enhanced-select"
5
- import { EnhancedTextarea } from "@/components/ui/enhanced-textarea"
6
- import { Card } from "@/components/ui/card"
7
- import { Button } from "@/components/ui/button"
8
- import { BusinessTypeBadge } from "@/components/ui/business-type-badge"
9
-
10
- const CreateBusiness = () => {
11
- const [businessType, setBusinessType] = useState("")
12
- return (
13
- <PageLayout
14
- title="Create Business"
15
- description="Create a new business entity with all required information"
16
- actions={[
17
- { label: "Cancel", variant: "outline", onClick: () => {} },
18
- { label: "Create Business", variant: "default", onClick: () => {} }
19
- ]}
20
- >
21
- {/* Business Creation Form */}
22
- <div className="space-y-6">
23
- <Card className="p-6">
24
- <div className="border-b border-border pb-4 mb-6">
25
- <h2 className="text-lg font-semibold text-foreground">Business Information</h2>
26
- <p className="text-sm text-muted-foreground">Basic business details and identification</p>
27
- </div>
28
-
29
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
30
- <EnhancedInput
31
- label="Business Name"
32
- placeholder="Enter business name"
33
- required
34
- />
35
-
36
- <EnhancedInput
37
- label="Legal Name"
38
- placeholder="Enter legal business name"
39
- hint="Official registered business name"
40
- />
41
-
42
- <div className="space-y-2">
43
- <EnhancedSelect
44
- label="Business Type"
45
- placeholder="Select business type"
46
- value={businessType}
47
- onValueChange={setBusinessType}
48
- options={[
49
- { value: "corporation", label: "Corporation" },
50
- { value: "llc", label: "LLC" },
51
- { value: "partnership", label: "Partnership" },
52
- { value: "sole_proprietorship", label: "Sole Proprietorship" }
53
- ]}
54
- />
55
- {businessType && (
56
- <div className="flex items-center gap-2">
57
- <span className="text-xs text-muted-foreground">Preview:</span>
58
- <BusinessTypeBadge type={businessType as "corporation" | "llc" | "partnership" | "sole_proprietorship"} />
59
- </div>
60
- )}
61
- </div>
62
-
63
- <EnhancedInput
64
- label="Tax ID (EIN)"
65
- placeholder="12-3456789"
66
- hint="Employer Identification Number"
67
- required
68
- />
69
-
70
- <EnhancedInput
71
- label="Registration Number"
72
- placeholder="Enter registration number"
73
- hint="State business registration number"
74
- />
75
-
76
- <EnhancedSelect
77
- label="Industry"
78
- placeholder="Select industry"
79
- options={[
80
- { value: "technology", label: "Technology" },
81
- { value: "finance", label: "Finance" },
82
- { value: "healthcare", label: "Healthcare" },
83
- { value: "manufacturing", label: "Manufacturing" },
84
- { value: "retail", label: "Retail" },
85
- { value: "other", label: "Other" }
86
- ]}
87
- />
88
- </div>
89
- </Card>
90
-
91
- <Card className="p-6">
92
- <div className="border-b border-border pb-4 mb-6">
93
- <h2 className="text-lg font-semibold text-foreground">Contact Information</h2>
94
- <p className="text-sm text-muted-foreground">Business address and contact details</p>
95
- </div>
96
-
97
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
98
- <EnhancedInput
99
- label="Street Address"
100
- placeholder="Enter street address"
101
- required
102
- />
103
-
104
- <EnhancedInput
105
- label="City"
106
- placeholder="Enter city"
107
- required
108
- />
109
-
110
- <EnhancedInput
111
- label="State"
112
- placeholder="Enter state"
113
- required
114
- />
115
-
116
- <EnhancedInput
117
- label="Postal Code"
118
- placeholder="12345"
119
- required
120
- />
121
-
122
- <EnhancedSelect
123
- label="Country"
124
- placeholder="Select country"
125
- options={[
126
- { value: "US", label: "United States" },
127
- { value: "CA", label: "Canada" },
128
- { value: "GB", label: "United Kingdom" },
129
- { value: "DE", label: "Germany" }
130
- ]}
131
- />
132
-
133
- <EnhancedInput
134
- label="Phone Number"
135
- placeholder="+1 (555) 123-4567"
136
- required
137
- />
138
-
139
- <EnhancedInput
140
- label="Email Address"
141
- placeholder="contact@business.com"
142
- type="email"
143
- required
144
- />
145
-
146
- <EnhancedInput
147
- label="Website"
148
- placeholder="https://www.business.com"
149
- type="url"
150
- />
151
- </div>
152
- </Card>
153
-
154
- <Card className="p-6">
155
- <div className="border-b border-border pb-4 mb-6">
156
- <h2 className="text-lg font-semibold text-foreground">Additional Information</h2>
157
- <p className="text-sm text-muted-foreground">Optional business description and notes</p>
158
- </div>
159
-
160
- <div className="space-y-6">
161
- <EnhancedTextarea
162
- label="Business Description"
163
- placeholder="Describe your business activities and services"
164
- hint="Brief description of what your business does"
165
- />
166
- </div>
167
- </Card>
168
- </div>
169
- </PageLayout>
170
- )
171
- }
172
-
173
- export default CreateBusiness
@@ -1,48 +0,0 @@
1
- import { useState } from "react"
2
- import { PageLayout } from "@/components/ui/page-layout"
3
- import { CounterpartyBasicInfo } from "@/components/form-sections/CounterpartyBasicInfo"
4
- import { PaymentInformationSection } from "@/components/form-sections/PaymentInformationSection"
5
- import { Button } from "@/components/ui/button"
6
- import { Card, CardContent } from "@/components/ui/card"
7
-
8
- const CreateCounterparty = () => {
9
- const [counterpartyData, setCounterpartyData] = useState(null)
10
-
11
- const handleBasicInfoChange = (data: any) => {
12
- setCounterpartyData(data)
13
- }
14
-
15
- const handleSubmit = () => {
16
- // Handle form submission
17
- console.log("Creating counterparty with data:", counterpartyData)
18
- }
19
-
20
- return (
21
- <PageLayout
22
- title="Create Counterparty"
23
- description="Create a new counterparty with all required information"
24
- actions={[
25
- { label: "Cancel", variant: "outline", onClick: () => {} },
26
- { label: "Create Counterparty", variant: "default", onClick: handleSubmit }
27
- ]}
28
- >
29
- <div className="space-y-6">
30
- {/* Basic Information Card */}
31
- <Card>
32
- <CardContent className="p-6">
33
- <CounterpartyBasicInfo onDataChange={handleBasicInfoChange} />
34
- </CardContent>
35
- </Card>
36
-
37
- {/* Payment Information Section */}
38
- <Card>
39
- <CardContent className="p-6">
40
- <PaymentInformationSection />
41
- </CardContent>
42
- </Card>
43
- </div>
44
- </PageLayout>
45
- )
46
- }
47
-
48
- export default CreateCounterparty
@@ -1,78 +0,0 @@
1
- import { PageLayout } from "@/components/ui/page-layout"
2
- import { BasicInfoCard } from "@/components/form-sections/BasicInfoCard"
3
- import { ReceiverCard } from "@/components/form-sections/ReceiverCard"
4
- import { BeneficiaryCard } from "@/components/form-sections/BeneficiaryCard"
5
- import { FormCard } from "@/components/ui/form-card"
6
- import { Button } from "@/components/ui/button"
7
- import { Separator } from "@/components/ui/separator"
8
- import { EnhancedSelect } from "@/components/ui/enhanced-select"
9
- import { Edit } from "lucide-react"
10
- import { useEditState } from "@/hooks/useEditState"
11
- import { useState } from "react"
12
-
13
- const CounterpartyDomesticWire = () => {
14
- const { isEditing, handleToggleEdit, handleSave, handleCancel } = useEditState({})
15
- const [transferType, setTransferType] = useState("DOMESTIC")
16
- return (
17
- <PageLayout
18
- title="Counterparty Domestic Wire"
19
- description="Manage domestic wire transfer configurations and beneficiary information"
20
- actions={!isEditing ? [
21
- { label: "Cancel", variant: "outline", onClick: () => {} },
22
- { label: "Save Domestic Wire Configuration", variant: "default", onClick: () => {} }
23
- ] : undefined}
24
- >
25
- <div className="space-y-8">
26
- {/* Basic Info - Always Visible */}
27
- <BasicInfoCard />
28
-
29
- <Separator className="my-8" />
30
-
31
- {/* Domestic Wire Transfer Configuration */}
32
- <FormCard
33
- title="Domestic Wire Transfer Configuration"
34
- description="Configure domestic wire transfer settings and beneficiary information"
35
- headerActions={
36
- <div className="flex items-center gap-2">
37
- {isEditing ? (
38
- <>
39
- <EnhancedSelect
40
- value={transferType}
41
- onValueChange={setTransferType}
42
- options={[
43
- { value: "DOMESTIC", label: "DOMESTIC" },
44
- { value: "INTERNATIONAL", label: "INTERNATIONAL" }
45
- ]}
46
- placeholder="Select transfer type"
47
- />
48
- <Button variant="outline" size="sm" onClick={handleCancel}>
49
- Cancel
50
- </Button>
51
- <Button size="sm" onClick={handleSave}>
52
- Save
53
- </Button>
54
- </>
55
- ) : (
56
- <>
57
- <span className="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-secondary text-secondary-foreground">
58
- {transferType}
59
- </span>
60
- <Button variant="ghost" size="icon" onClick={handleToggleEdit} className="text-primary hover:text-primary/80 hover:bg-primary/10">
61
- <Edit className="h-4 w-4" />
62
- </Button>
63
- </>
64
- )}
65
- </div>
66
- }
67
- >
68
- <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">
69
- <ReceiverCard isEditing={isEditing} hideActions={true} />
70
- <BeneficiaryCard isEditing={isEditing} hideActions={true} />
71
- </div>
72
- </FormCard>
73
- </div>
74
- </PageLayout>
75
- )
76
- }
77
-
78
- export default CounterpartyDomesticWire
@@ -1,79 +0,0 @@
1
- import { PageLayout } from "@/components/ui/page-layout"
2
- import { Stack } from "@/components/ui/stack"
3
- import { Button } from "@/components/ui/button"
4
- import { BasicInfoSection } from "@/components/form-sections/BasicInfoSection"
5
- import { WireTransferSection } from "@/components/form-sections/WireTransferSection"
6
- import { ACHTransferSection } from "@/components/form-sections/ACHTransferSection"
7
- import { useEditState } from "@/hooks/useEditState"
8
-
9
- const CounterpartyManage = () => {
10
- // Global edit state management
11
- const {
12
- isEditing: isBasicEditing,
13
- handleToggleEdit: handleBasicToggleEdit
14
- } = useEditState({})
15
-
16
- const {
17
- isEditing: isWireEditing,
18
- handleToggleEdit: handleWireToggleEdit
19
- } = useEditState({})
20
-
21
- const {
22
- isEditing: isACHEditing,
23
- handleToggleEdit: handleACHToggleEdit
24
- } = useEditState({})
25
-
26
- const pageCards = [
27
- {
28
- key: "basic-info",
29
- component: BasicInfoSection,
30
- props: {
31
- isEditing: isBasicEditing,
32
- onToggleEdit: handleBasicToggleEdit
33
- }
34
- },
35
- {
36
- key: "wire-transfer",
37
- component: WireTransferSection,
38
- props: {
39
- isEditing: isWireEditing,
40
- onToggleEdit: handleWireToggleEdit
41
- }
42
- },
43
- {
44
- key: "ach-transfer",
45
- component: ACHTransferSection,
46
- props: {
47
- isEditing: isACHEditing,
48
- onToggleEdit: handleACHToggleEdit
49
- }
50
- }
51
- ]
52
-
53
- const pageActions = !isBasicEditing && !isWireEditing && !isACHEditing ? [
54
- {
55
- label: "Cancel",
56
- variant: "outline" as const,
57
- onClick: () => {}
58
- },
59
- {
60
- label: "Save Configuration",
61
- variant: "default" as const,
62
- onClick: () => {}
63
- }
64
- ] : []
65
-
66
- return (
67
- <PageLayout
68
- title="Counterparty Management"
69
- description="Manage counterparty details and payment configurations"
70
- mode="cards"
71
- cards={pageCards}
72
- actions={pageActions}
73
- maxWidth="lg"
74
- gridCols={1}
75
- />
76
- )
77
- }
78
-
79
- export default CounterpartyManage