@sesamehr/react-design-system 2.1.0 → 3.0.0

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.
@@ -1,5 +1,6 @@
1
1
  import { StatusBadgeVariants } from './index.ts';
2
2
  export interface StatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /** Which tone the dot takes. The wording is yours — pass it as children. */
3
4
  status?: StatusBadgeVariants['status'];
4
5
  dataTestid: string;
5
6
  }
@@ -1,9 +1,14 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export { StatusBadge, type StatusBadgeProps } from './StatusBadge.tsx';
3
+ /**
4
+ * Class names, not utilities: the declarations live in `StatusBadge.module.css`
5
+ * behind `@apply`. See `Button/index.ts` for why.
6
+ *
7
+ * The statuses are tones rather than states — `warning`, not `pending` — because
8
+ * the wording is the consumer's and only the colour is ours. A payroll run that
9
+ * is "Pendiente" and a document that is "Awaiting review" are the same badge.
10
+ */
3
11
  export declare const statusBadgeVariants: (props?: ({
4
- status?: "paused" | "active" | "draft" | "completed" | "scheduled" | "deleted" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- export declare const indicatorVariants: (props?: ({
7
- status?: "paused" | "active" | "draft" | "completed" | "scheduled" | "deleted" | null | undefined;
12
+ status?: "success" | "error" | "info" | "warning" | "neutral" | null | undefined;
8
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
14
  export type StatusBadgeVariants = VariantProps<typeof statusBadgeVariants>;
package/dist/main.d.ts CHANGED
@@ -30,7 +30,7 @@ export { ChatBubble as OxChatBubble, chatBubbleVariants, type ChatBubbleDelivery
30
30
  export { ChatBubbleStatus as OxChatBubbleStatus, chatBubbleStatusVariants, type ChatBubbleStatusVariants, } from './Display/ChatBubble/ChatBubbleStatus/index.ts';
31
31
  export { Chip as OxChip, chipVariants, type ChipVariants, } from './Display/Chip/index.ts';
32
32
  export { PointMarker as OxPointMarker, pointMarkerVariants, type PointMarkerVariants, } from './Display/PointMarker/index.ts';
33
- export { StatusBadge as OxStatusBadge, statusBadgeVariants, indicatorVariants, type StatusBadgeVariants, } from './Feedback/StatusBadge/index.ts';
33
+ export { StatusBadge as OxStatusBadge, statusBadgeVariants, type StatusBadgeVariants, } from './Feedback/StatusBadge/index.ts';
34
34
  export { Bullet as OxBullet, bulletVariants, type BulletVariants, } from './Feedback/Bullet/index.ts';
35
35
  export { Loader as OxLoader } from './Feedback/Loader/index.ts';
36
36
  export { Progress as OxProgress } from './Feedback/Progress/index.ts';