@apliteni/apliteni-ui 0.190.0 → 0.194.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.
- package/README.md +3 -4
- package/docs/components.md +89 -9
- package/docs/foundations.md +2 -0
- package/guidelines/INDEX.md +2 -0
- package/guidelines/accessibility-floor.md +1 -1
- package/guidelines/stat-bands.md +5 -5
- package/guidelines/three-column-page.md +37 -0
- package/guidelines/wizard.md +49 -0
- package/package.json +1 -1
- package/react/dist/index.css +308 -2
- package/react/dist/index.d.ts +70 -3
- package/react/dist/index.js +622 -437
- package/src/styles/card.css +2 -2
- package/src/styles/layout.css +8 -4
- package/src/styles/stat.css +13 -8
- package/src/styles/tap-zone.css +4 -4
package/react/dist/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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,37 @@ declare const AuthShell: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTM
|
|
|
1085
1121
|
brandAbove?: boolean;
|
|
1086
1122
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1087
1123
|
|
|
1124
|
+
type ThreeColumnView = 'nav' | 'steps' | 'work';
|
|
1125
|
+
type ThreeColumnArea = {
|
|
1126
|
+
/** The area's heading, an h2. */
|
|
1127
|
+
title: ReactNode;
|
|
1128
|
+
/** The words of the link that opens the area on a tablet or a phone. */
|
|
1129
|
+
link: string;
|
|
1130
|
+
children: ReactNode;
|
|
1131
|
+
};
|
|
1132
|
+
type ThreeColumnPageProps = {
|
|
1133
|
+
/** The page's h1, at the top of the flow half. Leave it out when AppShell's
|
|
1134
|
+
* `width="full"` puts the title in the band. */
|
|
1135
|
+
title?: string;
|
|
1136
|
+
/** Small tools for the whole page at the end of the title row, such as a badge. */
|
|
1137
|
+
tools?: ReactNode;
|
|
1138
|
+
/** The first column: the list that chooses the record, such as the months. */
|
|
1139
|
+
nav: ThreeColumnArea;
|
|
1140
|
+
/** The second column: the ordered steps, beside the list. */
|
|
1141
|
+
steps: ThreeColumnArea;
|
|
1142
|
+
/** The work half: the rows of the open step. */
|
|
1143
|
+
work: ThreeColumnArea;
|
|
1144
|
+
/** The area shown on a phone, and the list's own view on a tablet. */
|
|
1145
|
+
view?: ThreeColumnView;
|
|
1146
|
+
defaultView?: ThreeColumnView;
|
|
1147
|
+
onViewChange?: (view: ThreeColumnView) => void;
|
|
1148
|
+
/** The name of the link group. */
|
|
1149
|
+
viewsLabel?: string;
|
|
1150
|
+
className?: string;
|
|
1151
|
+
};
|
|
1152
|
+
/** A list and ordered steps on one half of a split page, and the work on the other half. */
|
|
1153
|
+
declare function ThreeColumnPage({ title, tools, nav, steps, work, view, defaultView, onViewChange, viewsLabel, className }: ThreeColumnPageProps): react.JSX.Element;
|
|
1154
|
+
|
|
1088
1155
|
type FooterLink = {
|
|
1089
1156
|
label: string;
|
|
1090
1157
|
href?: string;
|
|
@@ -1537,5 +1604,5 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
|
|
|
1537
1604
|
declare const PAGE_SIZES: readonly number[];
|
|
1538
1605
|
declare const DEFAULT_PAGE_SIZE: number;
|
|
1539
1606
|
|
|
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 };
|
|
1607
|
+
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 };
|
|
1608
|
+
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, ThreeColumnArea, ThreeColumnPageProps, ThreeColumnView, TimelineEvent, TimelineEventKind, TimelineProps, ToastNotice, ToastProps, TooltipProps, TopBarProps, Version, VersionSwitcherProps, ViewSwitchItem, ViewSwitchProps, WizardFinal, WizardProps, WizardStep, WizardStepState };
|