@danxbot/ui 14.2.0 → 14.4.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.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { Role, User } from "./types";
|
|
3
|
+
export interface MembersPanelMember {
|
|
4
|
+
user: User;
|
|
5
|
+
/** The member's CURRENT role. */
|
|
6
|
+
role: Role;
|
|
7
|
+
/** ISO timestamp of when the member joined the team. */
|
|
8
|
+
joinedAt: string;
|
|
9
|
+
/** Non-null disables this row's role Select and remove control, with this
|
|
10
|
+
* text as the reason shown alongside them (e.g. "The team's only owner"). */
|
|
11
|
+
disabledReason?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MembersPanelProps {
|
|
14
|
+
members: MembersPanelMember[];
|
|
15
|
+
/** The roles a member may be changed TO — the role Select's options. */
|
|
16
|
+
assignableRoles: Role[];
|
|
17
|
+
onChangeRole: (userId: string, roleId: string) => void;
|
|
18
|
+
onRemove: (userId: string) => void;
|
|
19
|
+
/** The id of a row currently mid-mutation. Disables just that row rather
|
|
20
|
+
* than the whole panel, so an operator working through several rows in a
|
|
21
|
+
* row is never blocked on the last one's round trip. */
|
|
22
|
+
busyUserId?: string | null;
|
|
23
|
+
emptyState?: ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function MembersPanel({ members, assignableRoles, onChangeRole, onRemove, busyUserId, emptyState, className, }: MembersPanelProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>;
|
|
@@ -2,7 +2,9 @@ export * from "./types";
|
|
|
2
2
|
export * from "./RBACProvider";
|
|
3
3
|
export * from "./Can";
|
|
4
4
|
export * from "./AccountMenu";
|
|
5
|
+
export * from "./TeamSwitcher";
|
|
5
6
|
export * from "./DevToolsPopover";
|
|
6
7
|
export * from "./RolePermissionMatrix";
|
|
7
8
|
export * from "./ProfilePage";
|
|
8
9
|
export * from "./RolesPermissionsPage";
|
|
10
|
+
export * from "./MembersPanel";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export { cellLabel, eventLabel, formatDateRange, longDate, monthTitle, timeOfDay
|
|
|
124
124
|
export { initialFocusDay, isInMonth, nextDayForKey, useGridNavigation, type GridNavigation, type GridNavigationOptions, } from "./components/calendar/use-grid-navigation";
|
|
125
125
|
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";
|
|
126
126
|
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";
|
|
127
|
-
export { RBACProvider, useRBAC, Can, useHasPermission, AccountMenu, DevToolsPopover, RolePermissionMatrix, ProfilePage, RolesPermissionsPage, type RBACProviderProps, type RBACHookResult, type CanProps, type AccountMenuProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type Permission, type Role, type User, type Team, type TeamMembership, } from "./components/rbac";
|
|
127
|
+
export { RBACProvider, useRBAC, Can, useHasPermission, AccountMenu, TeamSwitcher, DevToolsPopover, RolePermissionMatrix, ProfilePage, RolesPermissionsPage, MembersPanel, type RBACProviderProps, type RBACHookResult, type CanProps, type AccountMenuProps, type TeamSwitcherProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type MembersPanelProps, type MembersPanelMember, type Permission, type Role, type User, type Team, type TeamMembership, } from "./components/rbac";
|
|
128
128
|
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";
|
|
129
129
|
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";
|
|
130
130
|
export { confidenceLevel, CONFIDENCE_LEVEL_LABELS, type ConfidenceLevel } from "./lib/confidence";
|