@apliteni/apliteni-ui 0.193.0 → 0.196.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.
@@ -823,6 +823,40 @@ type TimelineProps = Omit<ComponentPropsWithoutRef<'ol'>, 'children' | 'reversed
823
823
  };
824
824
  declare function Timeline({ events, className, ...rest }: TimelineProps): react.JSX.Element;
825
825
 
826
+ type WizardStepState = 'done' | 'current' | 'blocked' | 'todo';
827
+ type WizardStep = {
828
+ id: string;
829
+ label: string;
830
+ state: WizardStepState;
831
+ /** What the open step shows under its row: a sentence and the step's own action. */
832
+ content?: ReactNode;
833
+ };
834
+ /** The last step. Its state comes from the steps before it, so a caller cannot set it. */
835
+ type WizardFinal = {
836
+ id?: string;
837
+ label: string;
838
+ /** The words of the final action, such as Close month. */
839
+ action: string;
840
+ onAction: () => void;
841
+ /** Why the action is off. It shows while an earlier step is not done. */
842
+ reason: string;
843
+ content?: ReactNode;
844
+ /** The action has run. The final step is done and its action goes away. */
845
+ done?: boolean;
846
+ };
847
+ type WizardProps = {
848
+ /** The list's name for a screen reader, such as Month checks. */
849
+ label: string;
850
+ steps: readonly WizardStep[];
851
+ final: WizardFinal;
852
+ /** The open step. Without it, the wizard keeps its own and opens the step to work on. */
853
+ open?: string;
854
+ onOpenChange?: (id: string) => void;
855
+ className?: string;
856
+ };
857
+ /** Ordered steps with one open step and a final action that waits for the steps before it. */
858
+ declare function Wizard({ label, steps, final, open, onOpenChange, className }: WizardProps): react.JSX.Element;
859
+
826
860
  type FieldMessage = {
827
861
  label: string;
828
862
  hint?: string;
@@ -1019,7 +1053,9 @@ type AppShellProps = AppShellNav & {
1019
1053
  word?: string;
1020
1054
  brand?: ReactNode;
1021
1055
  brandHref?: string;
1022
- width?: 'centered' | 'wide';
1056
+ /** `full` takes the content column's cap and padding off, for a page whose parts reach
1057
+ * the edges, and the band's title becomes the page's h1 (rev_80635b1e54ca/d2). */
1058
+ width?: 'centered' | 'wide' | 'full';
1023
1059
  back?: {
1024
1060
  href: string;
1025
1061
  label: string;
@@ -1085,6 +1121,42 @@ declare const AuthShell: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTM
1085
1121
  brandAbove?: boolean;
1086
1122
  } & react.RefAttributes<HTMLDivElement>>;
1087
1123
 
1124
+ /** How far down the chain the reader is: 1 the parents, 2 the children, 3 the open child. */
1125
+ type ThreeColumnDepth = 1 | 2 | 3;
1126
+ /** The rows of a column's title menu, such as the count, sorting, the view and quick filters.
1127
+ * A row with `selected` set, true or false, is one choice of its group: it takes the check
1128
+ * when true. `scroll` is the panel's cap in px, for a menu taller than the kit's 300px. */
1129
+ type ThreeColumnMenu = Pick<DropdownProps, 'items' | 'sections' | 'header' | 'onSelect' | 'scroll'>;
1130
+ type ThreeColumn = {
1131
+ /** The column's h2, and the words of the back link that goes to the column. */
1132
+ title: string;
1133
+ /** A count after the title, such as the number of rows, or "2 of 3" while a filter is on. */
1134
+ count?: number | string;
1135
+ /** The count as a screen reader says it, such as "5 folders". */
1136
+ countLabel?: string;
1137
+ /** Small tools at the end of the header row. */
1138
+ tools?: ReactNode;
1139
+ /** With rows, the title opens a menu. Without them, the title is plain text. */
1140
+ menu?: ThreeColumnMenu;
1141
+ /** The column's content. A function gets `open`, which takes the reader one step down the
1142
+ * chain to the next column, so a row can open its child with or without `depth`. */
1143
+ children: ReactNode | ((open: () => void) => ReactNode);
1144
+ };
1145
+ type ThreeColumnPageProps = {
1146
+ /** The parents, the children of the selected parent, and the open child. Leave out the
1147
+ * third column when the selected parent has no children: the second takes its space. */
1148
+ columns: readonly [ThreeColumn, ThreeColumn, ThreeColumn?];
1149
+ depth?: ThreeColumnDepth;
1150
+ defaultDepth?: ThreeColumnDepth;
1151
+ /** The back link asks for one step up the chain, and `open` for one step down. */
1152
+ onDepthChange?: (depth: ThreeColumnDepth) => void;
1153
+ /** The address of a depth, for the back link. Without it, the link only calls onDepthChange. */
1154
+ depthHref?: (depth: ThreeColumnDepth) => string;
1155
+ className?: string;
1156
+ };
1157
+ /** A column browser: the parents, the children of the selected parent, and the open child. */
1158
+ declare function ThreeColumnPage({ columns, depth, defaultDepth, onDepthChange, depthHref, className }: ThreeColumnPageProps): react.JSX.Element;
1159
+
1088
1160
  type FooterLink = {
1089
1161
  label: string;
1090
1162
  href?: string;
@@ -1537,5 +1609,5 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
1537
1609
  declare const PAGE_SIZES: readonly number[];
1538
1610
  declare const DEFAULT_PAGE_SIZE: number;
1539
1611
 
1540
- export { AccentPicker, AccountMenu, AccountWindow, AppShell, AuthShell, Avatar, BackLink, Badge, BusyRegion, Button, Callout, Card, Chart, CheckList, Checkbox, CommandPalette, Confirm, DEFAULT_PAGE_SIZE, DataTable, DatePicker, DeltaValue, Denied, Drawer, DrawerSection, Dropdown, EmptyState, Feedback, Field, FileDrop, FileField, FilterBar, Footer, Icon, KeyValueList, Modal, NavTabs, NumericValue, PAGE_SIZES, Pagination, Pill, RowIdentity, SearchField, Segmented, SelectField, SidebarNav, Skeleton, SkeletonTable, Snippet, StatBand, StatusDot, Success, SuccessCheck, SuccessPanel, Switch, THEME_INIT_SCRIPT, Tabs, TextArea, TextField, ThemeChoice, ThemeToggle, Timeline, Toast, Tooltip, TopBar, VersionSwitcher, ViewSwitch, sortTableRows, useToast };
1541
- export type { Accent, AccentPickerProps, AccountMenuProps, AccountReader, AccountSection, AccountWindowProps, AddFilter, AppShellGroup, AppShellLink, AppShellProps, AppShellSection, AuthShellProps, AvatarProps, BackLinkOwnProps, BackLinkProps, BusyRegionProps, ButtonLinkProps, ButtonProps, CalloutProps, CalloutVariant, ChartAreaLook, ChartBridgeStep, ChartBridgeTones, ChartDonutLook, ChartEstimate, ChartLineLook, ChartLookSeries, ChartPeriod, ChartProps, ChartSeries, ChartSlice, ChartStackedLook, ChartTone, CheckListProps, CheckboxProps, Column, CommandGroup, CommandItem, CommandPaletteProps, ConfirmProps, DataTableProps, DatePickerMode, DatePickerPreset, DatePickerProps, DatePickerRange, DeltaValueProps, DeniedProps, DrawerProps, DrawerSectionProps, DropdownAvatar, DropdownBadge, DropdownEntry, DropdownItem, DropdownProps, DropdownRowProps, DropdownSearch, DropdownSection, DropdownSeparator, EmptyStateProps, EmptyStateVariant, FeedbackPayload, FeedbackProps, FeedbackResult, FeedbackSection, FieldControlProps, FieldProps, FileDropFile, FileDropProps, FileDropStatus, FileFieldProps, Filter, FilterBarProps, FooterColumn, FooterLink, FooterProps, FooterSocial, KeyValueListProps, KeyValueRow, ModalProps, NativeButtonProps, NavTabBadge, NavTabItem, NavTabsProps, NumericValueProps, PaginationProps, PillProps, RowIdentityProps, SearchFieldProps, SegmentOption, SegmentedProps, SelectFieldProps, SidebarNavBadge, SidebarNavBlock, SidebarNavGroup, SidebarNavItem, SidebarNavLeaf, SidebarNavProps, SidebarNavRow, SidebarNavSection, SidebarNavSections, SkeletonProps, SkeletonTableProps, SnippetProps, StatBandProps, StatDelta, StatFigure, StatTone, StatVariant, StatusDotProps, SuccessCheckProps, SuccessCountdown, SuccessPanelProps, SuccessProps, SwitchProps, TabItem, TableSort, TabsProps, TextAreaProps, TextFieldProps, ThemeChoiceProps, ThemeToggleProps, TimelineEvent, TimelineEventKind, TimelineProps, ToastNotice, ToastProps, TooltipProps, TopBarProps, Version, VersionSwitcherProps, ViewSwitchItem, ViewSwitchProps };
1612
+ export { AccentPicker, AccountMenu, AccountWindow, AppShell, AuthShell, Avatar, BackLink, Badge, BusyRegion, Button, Callout, Card, Chart, CheckList, Checkbox, CommandPalette, Confirm, DEFAULT_PAGE_SIZE, DataTable, DatePicker, DeltaValue, Denied, Drawer, DrawerSection, Dropdown, EmptyState, Feedback, Field, FileDrop, FileField, FilterBar, Footer, Icon, KeyValueList, Modal, NavTabs, NumericValue, PAGE_SIZES, Pagination, Pill, RowIdentity, SearchField, Segmented, SelectField, SidebarNav, Skeleton, SkeletonTable, Snippet, StatBand, StatusDot, Success, SuccessCheck, SuccessPanel, Switch, THEME_INIT_SCRIPT, Tabs, TextArea, TextField, ThemeChoice, ThemeToggle, ThreeColumnPage, Timeline, Toast, Tooltip, TopBar, VersionSwitcher, ViewSwitch, Wizard, sortTableRows, useToast };
1613
+ export type { Accent, AccentPickerProps, AccountMenuProps, AccountReader, AccountSection, AccountWindowProps, AddFilter, AppShellGroup, AppShellLink, AppShellProps, AppShellSection, AuthShellProps, AvatarProps, BackLinkOwnProps, BackLinkProps, BusyRegionProps, ButtonLinkProps, ButtonProps, CalloutProps, CalloutVariant, ChartAreaLook, ChartBridgeStep, ChartBridgeTones, ChartDonutLook, ChartEstimate, ChartLineLook, ChartLookSeries, ChartPeriod, ChartProps, ChartSeries, ChartSlice, ChartStackedLook, ChartTone, CheckListProps, CheckboxProps, Column, CommandGroup, CommandItem, CommandPaletteProps, ConfirmProps, DataTableProps, DatePickerMode, DatePickerPreset, DatePickerProps, DatePickerRange, DeltaValueProps, DeniedProps, DrawerProps, DrawerSectionProps, DropdownAvatar, DropdownBadge, DropdownEntry, DropdownItem, DropdownProps, DropdownRowProps, DropdownSearch, DropdownSection, DropdownSeparator, EmptyStateProps, EmptyStateVariant, FeedbackPayload, FeedbackProps, FeedbackResult, FeedbackSection, FieldControlProps, FieldProps, FileDropFile, FileDropProps, FileDropStatus, FileFieldProps, Filter, FilterBarProps, FooterColumn, FooterLink, FooterProps, FooterSocial, KeyValueListProps, KeyValueRow, ModalProps, NativeButtonProps, NavTabBadge, NavTabItem, NavTabsProps, NumericValueProps, PaginationProps, PillProps, RowIdentityProps, SearchFieldProps, SegmentOption, SegmentedProps, SelectFieldProps, SidebarNavBadge, SidebarNavBlock, SidebarNavGroup, SidebarNavItem, SidebarNavLeaf, SidebarNavProps, SidebarNavRow, SidebarNavSection, SidebarNavSections, SkeletonProps, SkeletonTableProps, SnippetProps, StatBandProps, StatDelta, StatFigure, StatTone, StatVariant, StatusDotProps, SuccessCheckProps, SuccessCountdown, SuccessPanelProps, SuccessProps, SwitchProps, TabItem, TableSort, TabsProps, TextAreaProps, TextFieldProps, ThemeChoiceProps, ThemeToggleProps, ThreeColumn, ThreeColumnDepth, ThreeColumnMenu, ThreeColumnPageProps, TimelineEvent, TimelineEventKind, TimelineProps, ToastNotice, ToastProps, TooltipProps, TopBarProps, Version, VersionSwitcherProps, ViewSwitchItem, ViewSwitchProps, WizardFinal, WizardProps, WizardStep, WizardStepState };