@bfrs/agentic-components 0.1.1 → 0.1.2
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/BFRS_AGENTIC_COMPONENTS.md +2 -2
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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,7 @@ 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
1108
|
|
|
1109
1109
|
```tsx
|
|
1110
1110
|
<BusinessInfoDisplayCard
|
package/dist/index.js
CHANGED
|
@@ -3053,11 +3053,11 @@ N0.displayName = "Container";
|
|
|
3053
3053
|
const M0 = He("rounded-xl transition-shadow duration-200", {
|
|
3054
3054
|
variants: {
|
|
3055
3055
|
variant: {
|
|
3056
|
-
default: "
|
|
3056
|
+
default: "dcl-faded-card-border bg-surface-card shadow-card",
|
|
3057
3057
|
muted: "border border-border bg-surface-muted",
|
|
3058
|
-
elevated: "
|
|
3058
|
+
elevated: "dcl-faded-card-border bg-surface-card shadow-elevated",
|
|
3059
3059
|
outlined: "border border-border-strong bg-surface-card",
|
|
3060
|
-
glass: "
|
|
3060
|
+
glass: "dcl-faded-card-border bg-surface-card/80 shadow-card backdrop-blur-md"
|
|
3061
3061
|
},
|
|
3062
3062
|
padding: {
|
|
3063
3063
|
none: "p-0",
|
|
@@ -3157,14 +3157,14 @@ function eg({ icon: e, size: t = "md", weight: r = "regular", className: n, deco
|
|
|
3157
3157
|
const s = typeof t == "number" ? t : V0[t];
|
|
3158
3158
|
return /* @__PURE__ */ l(e, { "aria-hidden": a, className: N("inline-block shrink-0 align-middle", n), size: s, weight: r });
|
|
3159
3159
|
}
|
|
3160
|
-
const _0 = He("rounded-xl
|
|
3160
|
+
const _0 = He("rounded-xl transition", {
|
|
3161
3161
|
variants: {
|
|
3162
3162
|
variant: {
|
|
3163
|
-
default: "
|
|
3164
|
-
elevated: "
|
|
3165
|
-
bordered: "
|
|
3166
|
-
muted: "border-border bg-surface-muted shadow-none",
|
|
3167
|
-
soft: "border-primary-soft bg-primary-soft/60 shadow-none"
|
|
3163
|
+
default: "dcl-faded-card-border bg-[image:var(--gradient-card)] shadow-card",
|
|
3164
|
+
elevated: "dcl-faded-card-border bg-[image:var(--gradient-card)] shadow-elevated",
|
|
3165
|
+
bordered: "dcl-faded-card-border bg-[image:var(--gradient-card)] shadow-none",
|
|
3166
|
+
muted: "border border-border bg-surface-muted shadow-none",
|
|
3167
|
+
soft: "border border-primary-soft bg-primary-soft/60 shadow-none"
|
|
3168
3168
|
},
|
|
3169
3169
|
padding: {
|
|
3170
3170
|
none: "p-0",
|
|
@@ -3173,7 +3173,7 @@ const _0 = He("rounded-xl border transition", {
|
|
|
3173
3173
|
lg: "p-5"
|
|
3174
3174
|
},
|
|
3175
3175
|
interactive: {
|
|
3176
|
-
true: "cursor-pointer hover:
|
|
3176
|
+
true: "cursor-pointer hover:bg-surface-muted/70 focus-within:ring-2 focus-within:ring-border-focus/20"
|
|
3177
3177
|
}
|
|
3178
3178
|
},
|
|
3179
3179
|
defaultVariants: {
|
|
@@ -12359,7 +12359,7 @@ const W8 = [
|
|
|
12359
12359
|
{
|
|
12360
12360
|
ref: b,
|
|
12361
12361
|
className: N(
|
|
12362
|
-
"relative w-full max-w-[354px] overflow-hidden rounded-b-[10px] rounded-t-xl
|
|
12362
|
+
"dcl-faded-card-border relative w-full max-w-[354px] overflow-hidden rounded-b-[10px] rounded-t-xl bg-[image:var(--business-card-background)] p-0 shadow-card",
|
|
12363
12363
|
e
|
|
12364
12364
|
),
|
|
12365
12365
|
style: v,
|
|
@@ -12411,7 +12411,7 @@ const j8 = q(
|
|
|
12411
12411
|
"div",
|
|
12412
12412
|
{
|
|
12413
12413
|
ref: n,
|
|
12414
|
-
className: N("w-full max-w-[354px] overflow-hidden rounded-b-[10px] rounded-t-xl
|
|
12414
|
+
className: N("dcl-faded-card-border w-full max-w-[354px] overflow-hidden rounded-b-[10px] rounded-t-xl bg-[image:var(--gradient-business-info-card)] shadow-card", e),
|
|
12415
12415
|
"aria-hidden": "true",
|
|
12416
12416
|
...r,
|
|
12417
12417
|
children: [
|
|
@@ -12472,7 +12472,7 @@ const Y8 = q(
|
|
|
12472
12472
|
ref: d,
|
|
12473
12473
|
className: N(
|
|
12474
12474
|
"w-full max-w-[425px] [word-break:break-word]",
|
|
12475
|
-
s === "card" && "
|
|
12475
|
+
s === "card" && "dcl-faded-card-border rounded-xl bg-[image:var(--gradient-card)] p-5 shadow-card",
|
|
12476
12476
|
e
|
|
12477
12477
|
),
|
|
12478
12478
|
"aria-label": typeof t == "string" ? t : "Progress",
|
|
@@ -12534,7 +12534,7 @@ const X8 = q(({ className: e, steps: t = 4, surface: r = "plain", ...n }, a) =>
|
|
|
12534
12534
|
ref: a,
|
|
12535
12535
|
className: N(
|
|
12536
12536
|
"w-full max-w-[425px]",
|
|
12537
|
-
r === "card" && "
|
|
12537
|
+
r === "card" && "dcl-faded-card-border rounded-xl bg-[image:var(--gradient-card)] p-5 shadow-card",
|
|
12538
12538
|
e
|
|
12539
12539
|
),
|
|
12540
12540
|
"aria-hidden": "true",
|