@danxbot/ui 15.29.3 → 15.30.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,3 +1,4 @@
1
+ import { type TermsAcceptanceProps } from "./TermsAcceptance";
1
2
  export interface AcceptInvitationCardProps {
2
3
  teamName: string;
3
4
  teamLogoUrl?: string;
@@ -15,14 +16,19 @@ export interface AcceptInvitationCardProps {
15
16
  loading?: boolean;
16
17
  /** A server-side error surfaced after a failed submit (username taken, expired token, ...). */
17
18
  error?: string;
19
+ /** Where the Terms of Use are read, linked from the new-account form's agreement row. */
20
+ termsHref: string;
21
+ /** Runs on that link's click; see `TermsAcceptance`. */
22
+ onOpenTerms?: TermsAcceptanceProps["onOpenTerms"];
18
23
  onCreateAccount: (input: {
19
24
  name: string;
20
25
  username: string;
21
26
  password: string;
27
+ acceptedTerms: true;
22
28
  }) => void;
23
29
  onJoinAsSignedInUser?: () => void;
24
30
  /** Offered when `accountExists` is true but the viewer isn't signed in as that email. */
25
31
  onSignInInstead?: () => void;
26
32
  className?: string;
27
33
  }
28
- export declare function AcceptInvitationCard({ teamName, teamLogoUrl, inviterName, roleLabel, email, accountExists, signedInAsMatchingUser, loading, error, onCreateAccount, onJoinAsSignedInUser, onSignInInstead, className, }: AcceptInvitationCardProps): import("react").JSX.Element;
34
+ export declare function AcceptInvitationCard({ teamName, teamLogoUrl, inviterName, roleLabel, email, accountExists, signedInAsMatchingUser, loading, error, termsHref, onOpenTerms, onCreateAccount, onJoinAsSignedInUser, onSignInInstead, className, }: AcceptInvitationCardProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { MouseEvent, ReactNode } from "react";
2
+ export interface TermsAcceptanceProps {
3
+ checked: boolean;
4
+ onCheckedChange: (checked: boolean) => void;
5
+ /** Where the Terms of Use are read. Opens in a new tab so a half-filled form is not lost. */
6
+ termsHref: string;
7
+ /** Runs on the link's click. Call `event.preventDefault()` to open the terms in the app's own router. */
8
+ onOpenTerms?: (event: MouseEvent<HTMLAnchorElement>) => void;
9
+ disabled?: boolean;
10
+ /** A message that marks the row invalid, e.g. "You must accept the Terms of Use to continue". */
11
+ error?: ReactNode;
12
+ className?: string;
13
+ }
14
+ export declare function TermsAcceptance({ checked, onCheckedChange, termsHref, onOpenTerms, disabled, error, className, }: TermsAcceptanceProps): import("react").JSX.Element;
@@ -3,3 +3,4 @@ export * from "./AcceptInvitationCard";
3
3
  export * from "./LoginForm";
4
4
  export * from "./ForgotPasswordForm";
5
5
  export * from "./ResetPasswordForm";
6
+ export * from "./TermsAcceptance";
@@ -141,7 +141,7 @@ export { initialFocusDay, isInMonth, nextDayForKey, useGridNavigation, type Grid
141
141
  export { AmbiguousTimeError, addDays, addDuration, addMonths, atMidnight, atTime, comparePlainDate, dayFraction, dayLengthMs, dayOfWeek, daysBetween, daysInMonth, endOfMonth, hoursInDay, instantAtFraction, instantToPlainDate, instantToPlainDateTime, isSameDate, isoDateString, isoDateTimeString, monthGridDays, nextDay, offsetAt, parsePlainDate, plainDateTimeToInstant, relativeAge, startOfDay, startOfMonth, startOfWeek, weekDays, type CalendarDuration, type Disambiguation, type Instant, type PlainDate, type PlainDateTime, type TimeZone, } from "./lib/time";
142
142
  export { allDayBandSegment, dayKey, daySlots, isAllDay, packBand, packLanes, snapFractionToInstant, timeSegments, timedBandSegment, type AllDayEvent, type BandInput, type BandOptions, type BandPlacement, type BandResult, type BandSegment, type CalendarEvent, type CalendarEventId, type CalendarView, type DaySlot, type DragKind, type EventDraft, type EventPalette, type LaneInput, type LaneOptions, type LanePlacement, type PaletteEntry, type TimeSegment, type TimedEvent, type VisibleRange, } from "./lib/calendar";
143
143
  export { RBACProvider, useRBAC, Can, useHasPermission, AccountMenu, TeamSwitcher, DevToolsPopover, RolePermissionMatrix, RoleEditorDialog, ProfileForm, ProfilePage, RolesPermissionsPage, MembersPanel, ChangePasswordForm, SessionsList, ApiTokensPanel, InvitationsList, InviteMembersDialog, Brand, TeamSettingsForm, DangerZone, type RBACProviderProps, type RBACHookResult, type CanProps, type AccountMenuProps, type TeamSwitcherProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type RoleEditorDialogProps, type RoleEditorDialogSubmitInput, type ProfileFormProps, type ProfileFormAccount, type ProfileFormSaveInput, type ProfilePageProps, type RolesPermissionsPageProps, type MembersPanelProps, type MembersPanelMember, type ChangePasswordFormProps, type SessionsListProps, type Session, type ApiTokensPanelProps, type ApiToken, type InvitationsListProps, type InvitationsListItem, type InvitationStatus, type InviteMembersDialogProps, type Permission, type Role, type User, type Team, type TeamMembership, type BrandProps, type TeamSettingsFormProps, type TeamSettingsFormTeam, type TeamSettingsFormSaveInput, type DangerZoneProps, } from "./components/rbac";
144
- export { AuthLayout, AcceptInvitationCard, LoginForm, ForgotPasswordForm, ResetPasswordForm, type AuthLayoutProps, type AcceptInvitationCardProps, type LoginFormProps, type ForgotPasswordFormProps, type ResetPasswordFormProps, } from "./components/auth";
144
+ export { AuthLayout, AcceptInvitationCard, TermsAcceptance, LoginForm, ForgotPasswordForm, ResetPasswordForm, type AuthLayoutProps, type AcceptInvitationCardProps, type TermsAcceptanceProps, type LoginFormProps, type ForgotPasswordFormProps, type ResetPasswordFormProps, } from "./components/auth";
145
145
  export { UseCaseCard, RoadmapItemCard, RoadmapSwimlaneBoard, UseCaseLedgerPage, RoadmapPage, PhaseManager, TrackManager, deriveRoadmapItemStatus, isFullyBuilt, isUnbuilt, trackIds, trackProgress, toneForIndex, CATEGORY_TONES, type Domain, type Phase, type Track, type RoadmapItem, type RoadmapItemStatus, type UseCase, type UseCaseStatus, type UseCaseDecision, type UseCaseCardProps, type RoadmapItemCardProps, type RoadmapSwimlaneBoardProps, type UseCaseLedgerPageProps, type RoadmapPageProps, type PhaseManagerProps, type TrackManagerProps, } from "./components/roadmap";
146
146
  export { ProvenanceDisclosure, ProvenanceDetail, ProvenanceBadge, ConfidenceReadout, ConfidenceMeter, ConfidenceBar, provenanceStateLabel, confidenceBand, confidenceScore, scoredConfidence, ratedConfidence, type ProvenanceRecord, type ProvenanceState, type ProvenanceSource, type ProvenanceCheck, type ProvenanceCall, type ProvenanceSignoff, type ConfidenceBand, type ConfidenceScore, type ProvenanceConfidence, type ConfidenceReadoutProps, type ConfidenceBarProps, type ConfidenceBarSize, type ProvenanceDisclosureProps, type ProvenanceDetailProps, type ProvenanceDetailTitleAs, type ProvenanceTriggerBadge, type ProvenanceBadgeProps, type ProvenanceBadgeAppearance, type ConfidenceMeterProps, } from "./components/provenance";
147
147
  export { confidenceLevel, CONFIDENCE_LEVEL_LABELS, type ConfidenceLevel } from "./lib/confidence";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "15.29.3",
3
+ "version": "15.30.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",