@apliteni/apliteni-ui 0.145.0 → 0.146.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.
@@ -8,7 +8,7 @@
8
8
 
9
9
  **Why:** Without a legend, readers need labels for unfamiliar glyphs.
10
10
 
11
- **Except:** New entries require a decision and pass Earn a wordless button on Button labels. Allowed: close, copy, overflow, expand, collapse and export. Theme and sidebar toggles and collapsed-rail links have separate approval. On [#729](https://github.com/apliteni/apliteni-ui/issues/729), the owner chose a glyph-only React AppShell search trigger below 560px for one light row of icons. Its sentence stays the accessible name: phones have no hover title.
11
+ **Except:** New entries require a decision and pass Earn a wordless button on Button labels. Allowed: close, copy, overflow, expand, collapse and export. Theme and sidebar toggles and collapsed-rail links have separate approval. On [#729](https://github.com/apliteni/apliteni-ui/issues/729), the owner chose a glyph-only React AppShell search trigger below 560px for one light row of icons. Its sentence stays the accessible name: phones have no hover title. On [#742](https://github.com/apliteni/apliteni-ui/issues/742), the owner asked for a chart's icon-only Chart and Table switch.
12
12
 
13
13
  **Do:** A wordless overflow menu and a labelled Settings.
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.145.0",
3
+ "version": "0.146.0",
4
4
 
5
5
  "workspaces": [
6
6
  "react"
@@ -646,11 +646,14 @@ type RowIdentityProps = {
646
646
  };
647
647
  declare function RowIdentity({ symbol, name, logo, href }: RowIdentityProps): react.JSX.Element;
648
648
 
649
+ /** `icon` leads the label. With `iconOnly` the glyph is all a reader sees and `label` is the button's name. */
649
650
  type SegmentOption = {
650
651
  label: string;
651
652
  value: string;
652
653
  ariaLabel?: string;
653
654
  disabled?: boolean;
655
+ icon?: string;
656
+ iconOnly?: boolean;
654
657
  };
655
658
  type SegmentedProps = {
656
659
  options: SegmentOption[];
@@ -1098,6 +1101,17 @@ declare const Success: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLD
1098
1101
  onCountdownEnd?: () => void;
1099
1102
  } & react.RefAttributes<HTMLDivElement>>;
1100
1103
 
1104
+ type ChartLineLook = 'thin' | 'points' | 'labels';
1105
+ type ChartAreaLook = 'flat' | 'stacked' | 'share';
1106
+ type ChartStackedLook = 'columns' | 'share' | 'rows';
1107
+ type ChartDonutLook = 'thin' | 'table' | 'labels';
1108
+ type ChartSlice = {
1109
+ id: string;
1110
+ name: string;
1111
+ value: number;
1112
+ tone?: ChartTone;
1113
+ };
1114
+
1101
1115
  type ChartTone = 'accent' | 'accent-soft' | 'good' | 'bad' | 'warn' | 'info' | 'neutral';
1102
1116
  type ChartPeriod = {
1103
1117
  /** The period as the readout and the table name it: `Jan 2026`. */
@@ -1156,8 +1170,12 @@ type ChartCommon = {
1156
1170
  formatAxis?: (value: number) => string;
1157
1171
  /** The plot's height in CSS px. */
1158
1172
  height?: number;
1159
- /** Offer the same numbers as a table. On by default, off for a sparkline. */
1173
+ /** Offer the same numbers as a table, behind a chart and table switch at the
1174
+ * top right. On by default, off for a sparkline. */
1160
1175
  table?: boolean;
1176
+ /** Draw a key that names each series. Off by default: the readout and the
1177
+ * table name every series. */
1178
+ legend?: boolean;
1161
1179
  /** Let Enter and a click pick a column. */
1162
1180
  selectable?: boolean;
1163
1181
  /** The picked column, when the caller keeps that state. */
@@ -1165,6 +1183,8 @@ type ChartCommon = {
1165
1183
  onSelect?: (index: number) => void;
1166
1184
  className?: string;
1167
1185
  };
1186
+ /** A series of a line, an area or a stacked chart. Its `shape` is the variant's. */
1187
+ type ChartLookSeries = Omit<ChartSeries, 'shape'>;
1168
1188
  type ChartProps = ChartCommon & ({
1169
1189
  variant?: 'months';
1170
1190
  periods: readonly ChartPeriod[];
@@ -1177,6 +1197,31 @@ type ChartProps = ChartCommon & ({
1177
1197
  variant: 'bridge';
1178
1198
  steps: readonly ChartBridgeStep[];
1179
1199
  tones?: ChartBridgeTones;
1200
+ } | {
1201
+ variant: 'line';
1202
+ look?: ChartLineLook;
1203
+ periods: readonly ChartPeriod[];
1204
+ series: readonly ChartLookSeries[];
1205
+ } | {
1206
+ variant: 'area';
1207
+ look?: ChartAreaLook;
1208
+ periods: readonly ChartPeriod[];
1209
+ series: readonly ChartLookSeries[];
1210
+ } | {
1211
+ variant: 'stacked';
1212
+ look?: ChartStackedLook;
1213
+ periods: readonly ChartPeriod[];
1214
+ series: readonly ChartLookSeries[];
1215
+ } | {
1216
+ variant: 'donut';
1217
+ look?: ChartDonutLook;
1218
+ slices: readonly ChartSlice[];
1219
+ /** What the whole is called in the centre and in the side list. Defaults to `Total`. */
1220
+ totalLabel?: string;
1221
+ /** A slice is a part of one whole, so there is no column to pick. */
1222
+ selectable?: never;
1223
+ selected?: never;
1224
+ onSelect?: never;
1180
1225
  });
1181
1226
  declare function Chart(props: ChartProps): react.JSX.Element;
1182
1227
 
@@ -1335,4 +1380,4 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
1335
1380
  declare const PAGE_SIZES: readonly number[];
1336
1381
  declare const DEFAULT_PAGE_SIZE: number;
1337
1382
 
1338
- export { type Accent, AccentPicker, type AccentPickerProps, AccountMenu, type AccountMenuProps, type AddFilter, AppShell, type AppShellProps, type AppShellSection, AuthShell, type AuthShellProps, Avatar, type AvatarProps, BackLink, type BackLinkOwnProps, type BackLinkProps, Badge, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BusyRegion, type BusyRegionProps, Button, type ButtonLinkProps, type ButtonProps, Callout, type CalloutProps, type CalloutVariant, Card, Chart, type ChartBridgeStep, type ChartBridgeTones, type ChartPeriod, type ChartProps, type ChartSeries, type ChartTone, CheckList, type CheckListProps, Checkbox, type CheckboxProps, type Column, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Confirm, type ConfirmProps, DEFAULT_PAGE_SIZE, DataTable, type DataTableProps, DatePicker, type DatePickerMode, type DatePickerPreset, type DatePickerProps, type DatePickerRange, DeltaValue, type DeltaValueProps, Denied, type DeniedProps, Drawer, type DrawerProps, DrawerSection, type DrawerSectionProps, Dropdown, type DropdownAvatar, type DropdownBadge, type DropdownEntry, type DropdownItem, type DropdownProps, type DropdownRowProps, type DropdownSearch, type DropdownSection, type DropdownSeparator, EmptyState, type EmptyStateProps, type EmptyStateVariant, Feedback, type FeedbackPayload, type FeedbackProps, type FeedbackResult, type FeedbackSection, Field, type FieldControlProps, type FieldProps, FileDrop, type FileDropFile, type FileDropProps, type FileDropStatus, FileField, type FileFieldProps, type Filter, FilterBar, type FilterBarProps, Footer, type FooterColumn, type FooterLink, type FooterProps, type FooterSocial, Icon, KeyValueList, type KeyValueListProps, type KeyValueRow, Modal, type ModalProps, type NativeButtonProps, type NavTabBadge, type NavTabItem, NavTabs, type NavTabsProps, NumericValue, type NumericValueProps, PAGE_SIZES, Pagination, type PaginationProps, Pill, type PillProps, RowIdentity, type RowIdentityProps, SearchField, type SearchFieldProps, type SegmentOption, Segmented, type SegmentedProps, SelectField, type SelectFieldProps, SidebarNav, type SidebarNavBadge, type SidebarNavItem, type SidebarNavLeaf, type SidebarNavProps, type SidebarNavSection, Skeleton, type SkeletonProps, SkeletonTable, type SkeletonTableProps, Snippet, type SnippetProps, StatBand, type StatBandProps, type StatDelta, type StatFigure, type StatTone, type StatVariant, StatusDot, type StatusDotProps, Success, SuccessCheck, type SuccessCheckProps, type SuccessCountdown, SuccessPanel, type SuccessPanelProps, type SuccessProps, Switch, type SwitchProps, THEME_INIT_SCRIPT, type TabItem, type TableSort, Tabs, type TabsProps, TextArea, type TextAreaProps, TextField, type TextFieldProps, ThemeToggle, type ThemeToggleProps, Timeline, type TimelineEvent, type TimelineEventKind, type TimelineProps, Toast, type ToastNotice, type ToastProps, Tooltip, type TooltipProps, TopBar, type TopBarProps, type Version, VersionSwitcher, type VersionSwitcherProps, ViewSwitch, type ViewSwitchItem, type ViewSwitchProps, sortTableRows, useToast };
1383
+ export { type Accent, AccentPicker, type AccentPickerProps, AccountMenu, type AccountMenuProps, type AddFilter, AppShell, type AppShellProps, type AppShellSection, AuthShell, type AuthShellProps, Avatar, type AvatarProps, BackLink, type BackLinkOwnProps, type BackLinkProps, Badge, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BusyRegion, type BusyRegionProps, Button, type ButtonLinkProps, type ButtonProps, Callout, type CalloutProps, type CalloutVariant, Card, Chart, type ChartAreaLook, type ChartBridgeStep, type ChartBridgeTones, type ChartDonutLook, type ChartLineLook, type ChartLookSeries, type ChartPeriod, type ChartProps, type ChartSeries, type ChartSlice, type ChartStackedLook, type ChartTone, CheckList, type CheckListProps, Checkbox, type CheckboxProps, type Column, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Confirm, type ConfirmProps, DEFAULT_PAGE_SIZE, DataTable, type DataTableProps, DatePicker, type DatePickerMode, type DatePickerPreset, type DatePickerProps, type DatePickerRange, DeltaValue, type DeltaValueProps, Denied, type DeniedProps, Drawer, type DrawerProps, DrawerSection, type DrawerSectionProps, Dropdown, type DropdownAvatar, type DropdownBadge, type DropdownEntry, type DropdownItem, type DropdownProps, type DropdownRowProps, type DropdownSearch, type DropdownSection, type DropdownSeparator, EmptyState, type EmptyStateProps, type EmptyStateVariant, Feedback, type FeedbackPayload, type FeedbackProps, type FeedbackResult, type FeedbackSection, Field, type FieldControlProps, type FieldProps, FileDrop, type FileDropFile, type FileDropProps, type FileDropStatus, FileField, type FileFieldProps, type Filter, FilterBar, type FilterBarProps, Footer, type FooterColumn, type FooterLink, type FooterProps, type FooterSocial, Icon, KeyValueList, type KeyValueListProps, type KeyValueRow, Modal, type ModalProps, type NativeButtonProps, type NavTabBadge, type NavTabItem, NavTabs, type NavTabsProps, NumericValue, type NumericValueProps, PAGE_SIZES, Pagination, type PaginationProps, Pill, type PillProps, RowIdentity, type RowIdentityProps, SearchField, type SearchFieldProps, type SegmentOption, Segmented, type SegmentedProps, SelectField, type SelectFieldProps, SidebarNav, type SidebarNavBadge, type SidebarNavItem, type SidebarNavLeaf, type SidebarNavProps, type SidebarNavSection, Skeleton, type SkeletonProps, SkeletonTable, type SkeletonTableProps, Snippet, type SnippetProps, StatBand, type StatBandProps, type StatDelta, type StatFigure, type StatTone, type StatVariant, StatusDot, type StatusDotProps, Success, SuccessCheck, type SuccessCheckProps, type SuccessCountdown, SuccessPanel, type SuccessPanelProps, type SuccessProps, Switch, type SwitchProps, THEME_INIT_SCRIPT, type TabItem, type TableSort, Tabs, type TabsProps, TextArea, type TextAreaProps, TextField, type TextFieldProps, ThemeToggle, type ThemeToggleProps, Timeline, type TimelineEvent, type TimelineEventKind, type TimelineProps, Toast, type ToastNotice, type ToastProps, Tooltip, type TooltipProps, TopBar, type TopBarProps, type Version, VersionSwitcher, type VersionSwitcherProps, ViewSwitch, type ViewSwitchItem, type ViewSwitchProps, sortTableRows, useToast };