@bfrs/agentic-components 0.1.2 → 0.1.4

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.
@@ -635,11 +635,13 @@ Shimmer placeholder while content loads. Match the variant to the shape of the r
635
635
  <Skeleton variant="card" /> // card-height block
636
636
  <Skeleton variant="avatar" /> // circle
637
637
  <Skeleton variant="block" /> // rectangular block
638
+ <Skeleton variant="text" animated={false} /> // static shimmer
638
639
  ```
639
640
 
640
641
  | Prop | Type | Default |
641
642
  |------|------|---------|
642
643
  | `variant` | `"text" \| "block" \| "card" \| "avatar"` | `"block"` |
644
+ | `animated` | `boolean` | `true` |
643
645
 
644
646
  ---
645
647
 
@@ -1106,6 +1108,11 @@ Branded full-screen loading screen. Use during auth redirects and account setup.
1106
1108
 
1107
1109
  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
1110
 
1111
+ Built-in loading behavior:
1112
+ - Bootstrap loading with `businessName=""` and `sections={[]}` renders static shimmer placeholders for avatar, name, subtitle/email, order-volume chip, category chip, and six detail rows.
1113
+ - Missing or empty `initials` renders a static shimmer avatar circle when no `logoSrc` is provided.
1114
+ - Missing item values (`value: undefined`, `null`, `false`, or `""`) render skeletons for both the key and value. Field labels only appear once their values are present.
1115
+
1109
1116
  ```tsx
1110
1117
  <BusinessInfoDisplayCard
1111
1118
  businessName="Deeksha Gahlot"
@@ -1122,6 +1129,22 @@ Rich business identity card with centered profile identity, metadata chips, and
1122
1129
  },
1123
1130
  ]}
1124
1131
  />
1132
+
1133
+ <BusinessInfoDisplayCard businessName="" sections={[]} />
1134
+
1135
+ <BusinessInfoDisplayCard
1136
+ businessName="Deedoodle"
1137
+ initials="DD"
1138
+ sections={[
1139
+ {
1140
+ title: "Account Details",
1141
+ items: [
1142
+ { label: "Phone", value: "9876543210" },
1143
+ { label: "GST Number", value: undefined },
1144
+ ],
1145
+ },
1146
+ ]}
1147
+ />
1125
1148
  ```
1126
1149
 
1127
1150
  | Prop | Type | Default |
@@ -1140,7 +1163,7 @@ Rich business identity card with centered profile identity, metadata chips, and
1140
1163
 
1141
1164
  `BusinessInfoSection`:
1142
1165
  ```ts
1143
- { title?: ReactNode; items: { label: ReactNode; value: ReactNode }[] }
1166
+ { title?: ReactNode; items: { label: ReactNode; value?: ReactNode }[] }
1144
1167
  ```
1145
1168
 
1146
1169
  ---
@@ -3,8 +3,12 @@ import { VariantProps } from 'class-variance-authority';
3
3
  declare const skeletonVariants: (props?: ({
4
4
  variant?: "text" | "block" | "card" | "avatar" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- export type SkeletonProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof skeletonVariants>;
6
+ export type SkeletonProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof skeletonVariants> & {
7
+ animated?: boolean;
8
+ };
7
9
  export declare const Skeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
8
10
  variant?: "text" | "block" | "card" | "avatar" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
12
+ animated?: boolean;
13
+ } & import('react').RefAttributes<HTMLDivElement>>;
10
14
  export {};
@@ -5,7 +5,7 @@ export type BusinessInfoChip = {
5
5
  };
6
6
  export type BusinessInfoItem = {
7
7
  label: ReactNode;
8
- value: ReactNode;
8
+ value?: ReactNode;
9
9
  };
10
10
  export type BusinessInfoSection = {
11
11
  title?: ReactNode;