@apliteni/apliteni-ui 0.142.8 → 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.
- package/guidelines/iconography.md +1 -1
- package/package.json +1 -1
- package/react/README.md +2 -2
- package/react/dist/index.d.ts +50 -4
- package/react/dist/index.js +941 -304
- package/src/assets/icons.js +6 -0
- package/src/styles/chart.css +123 -49
- package/src/styles/segmented.css +5 -0
- package/src/tokens/tokens.css +34 -0
|
@@ -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
package/react/README.md
CHANGED
|
@@ -925,8 +925,8 @@ to `format`. A `bars-below` series takes positive magnitudes and is drawn under
|
|
|
925
925
|
A period marked `estimated` keeps its series fill with a dashed edge. The legend names the state.
|
|
926
926
|
The readout and the optional table show the state and its `note`.
|
|
927
927
|
|
|
928
|
-
A bar series names a tone. `accent` and `accent-soft`
|
|
929
|
-
two series read apart
|
|
928
|
+
A bar series names a tone. Each tone has its own hue: `accent` is blue and `accent-soft` is
|
|
929
|
+
cyan, so two series read apart by hue. `good` and `bad` say which way
|
|
930
930
|
the news runs, and belong to a series where some direction is better. Every tone is opaque and
|
|
931
931
|
clears 3:1 against the card and against the page, in both themes and under every accent.
|
|
932
932
|
|
package/react/dist/index.d.ts
CHANGED
|
@@ -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`. */
|
|
@@ -1120,8 +1134,9 @@ type ChartSeries = {
|
|
|
1120
1134
|
shape?: 'bars' | 'bars-below' | 'line';
|
|
1121
1135
|
/**
|
|
1122
1136
|
* Bars take a tone. A line is `neutral` unless the caller says otherwise.
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1137
|
+
* The tones are the chart's own fixed palette and do not follow the product
|
|
1138
|
+
* accent. Each tone has its own hue: `accent` is blue and `accent-soft` is
|
|
1139
|
+
* cyan, so two series read apart by hue.
|
|
1125
1140
|
*/
|
|
1126
1141
|
tone?: ChartTone;
|
|
1127
1142
|
};
|
|
@@ -1155,8 +1170,12 @@ type ChartCommon = {
|
|
|
1155
1170
|
formatAxis?: (value: number) => string;
|
|
1156
1171
|
/** The plot's height in CSS px. */
|
|
1157
1172
|
height?: number;
|
|
1158
|
-
/** Offer the same numbers as a table
|
|
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. */
|
|
1159
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;
|
|
1160
1179
|
/** Let Enter and a click pick a column. */
|
|
1161
1180
|
selectable?: boolean;
|
|
1162
1181
|
/** The picked column, when the caller keeps that state. */
|
|
@@ -1164,6 +1183,8 @@ type ChartCommon = {
|
|
|
1164
1183
|
onSelect?: (index: number) => void;
|
|
1165
1184
|
className?: string;
|
|
1166
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'>;
|
|
1167
1188
|
type ChartProps = ChartCommon & ({
|
|
1168
1189
|
variant?: 'months';
|
|
1169
1190
|
periods: readonly ChartPeriod[];
|
|
@@ -1176,6 +1197,31 @@ type ChartProps = ChartCommon & ({
|
|
|
1176
1197
|
variant: 'bridge';
|
|
1177
1198
|
steps: readonly ChartBridgeStep[];
|
|
1178
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;
|
|
1179
1225
|
});
|
|
1180
1226
|
declare function Chart(props: ChartProps): react.JSX.Element;
|
|
1181
1227
|
|
|
@@ -1334,4 +1380,4 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
|
|
|
1334
1380
|
declare const PAGE_SIZES: readonly number[];
|
|
1335
1381
|
declare const DEFAULT_PAGE_SIZE: number;
|
|
1336
1382
|
|
|
1337
|
-
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 };
|