@bfrs/agentic-components 0.1.1 → 0.1.3
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.
|
@@ -45,7 +45,7 @@ import { Button, Input, Modal, DataTable, DateRangePicker, ToastProvider, useToa
|
|
|
45
45
|
- All interactive components forward refs and spread native HTML props
|
|
46
46
|
- Styling uses **Tailwind CSS** + **CVA** — do not add raw Tailwind classes on top of variant-controlled elements
|
|
47
47
|
- Use the `cn()` utility from the library for conditional class merging
|
|
48
|
-
- **Card surface standard** — all card-like components (`Card`, `MetricCard`, `FormSection`, `BusinessInfoDisplayCard`, and `StepProgressCard` when `surface="card"`) share the same surface style: `border-radius: 12px`,
|
|
48
|
+
- **Card surface standard** — all card-like components (`Card`, `MetricCard`, `FormSection`, `BusinessInfoDisplayCard`, and `StepProgressCard` when `surface="card"`) share the same surface style: `border-radius: 12px`, a faded green-grey gradient stroke (`dcl-faded-card-border`), `background: linear-gradient(168deg, #FFF 8.6%, #FFFFFD 97.41%)`, `box-shadow: 0 0 21.7px 0 rgba(24, 240, 64, 0.03)`. Do not override these properties unless intentionally switching to a `muted` or `soft` variant.
|
|
49
49
|
|
|
50
50
|
```tsx
|
|
51
51
|
import { cn } from "@bfrs/agentic-components";
|
|
@@ -1104,7 +1104,13 @@ Branded full-screen loading screen. Use during auth redirects and account setup.
|
|
|
1104
1104
|
|
|
1105
1105
|
#### `BusinessInfoDisplayCard`
|
|
1106
1106
|
|
|
1107
|
-
Rich business identity card with centered profile identity, metadata chips, and compact label-value details. Uses the standard card surface (
|
|
1107
|
+
Rich business identity card with centered profile identity, metadata chips, and compact label-value details. Uses the standard card surface (faded green-grey gradient stroke, white gradient background, green-glow shadow) and the Figma-derived green header wash.
|
|
1108
|
+
|
|
1109
|
+
Built-in loading behavior:
|
|
1110
|
+
- `businessName=""` renders a shimmer placeholder in the name slot.
|
|
1111
|
+
- Missing or empty `initials` renders a shimmer avatar circle when no `logoSrc` is provided.
|
|
1112
|
+
- `sections={[]}` renders six shimmer detail rows.
|
|
1113
|
+
- `value: undefined` renders the label and separator with a shimmer placeholder for that value.
|
|
1108
1114
|
|
|
1109
1115
|
```tsx
|
|
1110
1116
|
<BusinessInfoDisplayCard
|
|
@@ -1122,6 +1128,22 @@ Rich business identity card with centered profile identity, metadata chips, and
|
|
|
1122
1128
|
},
|
|
1123
1129
|
]}
|
|
1124
1130
|
/>
|
|
1131
|
+
|
|
1132
|
+
<BusinessInfoDisplayCard businessName="" sections={[]} />
|
|
1133
|
+
|
|
1134
|
+
<BusinessInfoDisplayCard
|
|
1135
|
+
businessName="Deedoodle"
|
|
1136
|
+
initials="DD"
|
|
1137
|
+
sections={[
|
|
1138
|
+
{
|
|
1139
|
+
title: "Account Details",
|
|
1140
|
+
items: [
|
|
1141
|
+
{ label: "Phone", value: "9876543210" },
|
|
1142
|
+
{ label: "GST Number", value: undefined },
|
|
1143
|
+
],
|
|
1144
|
+
},
|
|
1145
|
+
]}
|
|
1146
|
+
/>
|
|
1125
1147
|
```
|
|
1126
1148
|
|
|
1127
1149
|
| Prop | Type | Default |
|
|
@@ -1140,7 +1162,7 @@ Rich business identity card with centered profile identity, metadata chips, and
|
|
|
1140
1162
|
|
|
1141
1163
|
`BusinessInfoSection`:
|
|
1142
1164
|
```ts
|
|
1143
|
-
{ title?: ReactNode; items: { label: ReactNode; value
|
|
1165
|
+
{ title?: ReactNode; items: { label: ReactNode; value?: ReactNode }[] }
|
|
1144
1166
|
```
|
|
1145
1167
|
|
|
1146
1168
|
---
|