@apliteni/apliteni-ui 0.157.0 → 0.158.2
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/file-drop.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
**Don't:** Draw a tall dashed box with a glyph, an invitation and a button stacked inside it.
|
|
14
14
|
|
|
15
|
-
**Except:** A page that exists to receive one file may use the field-sized picker, which has its own label. An empty page may show a dashed drop area until the first file arrives.
|
|
15
|
+
**Except:** A page that exists to receive one file may use the field-sized picker, which has its own label. An empty page may show a dashed drop area until the first file arrives.
|
|
16
16
|
|
|
17
17
|
## Paint the target only while a file is over it
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
**Don't:** Cover the whole window when one panel accepts the file.
|
|
28
28
|
|
|
29
|
-
**Except:** A page that takes files anywhere may cover the whole page, slightly transparent and blurred over a table.
|
|
29
|
+
**Except:** A page that takes files anywhere may cover the whole page, slightly transparent and blurred over a table.
|
|
30
30
|
|
|
31
31
|
## Keep the file in the row it arrived in
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apliteni/apliteni-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.158.2",
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"react"
|
|
6
6
|
],
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@storybook/react-vite": "^10.6.1",
|
|
74
74
|
"axe-core": "^4.12.1",
|
|
75
75
|
"jsdom": "^30.0.1",
|
|
76
|
-
"storybook": "^10.
|
|
76
|
+
"storybook": "^10.6.4",
|
|
77
77
|
"vite": "^8.2.0"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/react/dist/index.d.ts
CHANGED
|
@@ -1410,4 +1410,5 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
|
|
|
1410
1410
|
declare const PAGE_SIZES: readonly number[];
|
|
1411
1411
|
declare const DEFAULT_PAGE_SIZE: number;
|
|
1412
1412
|
|
|
1413
|
-
export {
|
|
1413
|
+
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, ThemeToggle, Timeline, Toast, Tooltip, TopBar, VersionSwitcher, ViewSwitch, sortTableRows, useToast };
|
|
1414
|
+
export type { Accent, AccentPickerProps, AccountMenuProps, AccountReader, AccountSection, AccountWindowProps, AddFilter, AppShellProps, AppShellSection, AuthShellProps, AvatarProps, BackLinkOwnProps, BackLinkProps, BusyRegionProps, ButtonLinkProps, ButtonProps, CalloutProps, CalloutVariant, ChartAreaLook, ChartBridgeStep, ChartBridgeTones, ChartDonutLook, 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, SidebarNavItem, SidebarNavLeaf, SidebarNavProps, SidebarNavSection, SkeletonProps, SkeletonTableProps, SnippetProps, StatBandProps, StatDelta, StatFigure, StatTone, StatVariant, StatusDotProps, SuccessCheckProps, SuccessCountdown, SuccessPanelProps, SuccessProps, SwitchProps, TabItem, TableSort, TabsProps, TextAreaProps, TextFieldProps, ThemeToggleProps, TimelineEvent, TimelineEventKind, TimelineProps, ToastNotice, ToastProps, TooltipProps, TopBarProps, Version, VersionSwitcherProps, ViewSwitchItem, ViewSwitchProps };
|
package/react/dist/index.js
CHANGED
|
@@ -3932,7 +3932,7 @@ var cases = {
|
|
|
3932
3932
|
"first-run": { title: "Nothing needs you yet", sub: "New items will appear here when they need your attention.", icon: "check" },
|
|
3933
3933
|
"no-matches": { title: "No results in this view", sub: "Try another search or clear your filters.", icon: "search" },
|
|
3934
3934
|
"not-found": { title: "We can't find that page", sub: "Check the address or return to the home page.", icon: "folder" },
|
|
3935
|
-
"not-yet-built": { title: "
|
|
3935
|
+
"not-yet-built": { title: "Not available yet", sub: "This screen ships in a later release.", icon: "clock" }
|
|
3936
3936
|
};
|
|
3937
3937
|
function EmptyState({ variant = "first-run", title, sub, icon: icon9, art, actions }) {
|
|
3938
3938
|
const preset = cases[variant];
|
|
@@ -199,6 +199,10 @@ const ddUp = (panel) => (ddLifted(panel)
|
|
|
199
199
|
function ddScrollBox(dd, panel) {
|
|
200
200
|
if (dd.__ddPanel || ddInFilterRow(panel)) return null;
|
|
201
201
|
const view = ddViewOf(panel);
|
|
202
|
+
// A shut panel still schedules its collapse after its fade, and a test or a page
|
|
203
|
+
// can tear the document down while the timer waits. A view without getComputedStyle
|
|
204
|
+
// has no box to measure, so the collapse reads as already done.
|
|
205
|
+
if (typeof view?.getComputedStyle !== 'function') return null;
|
|
202
206
|
const els = [];
|
|
203
207
|
let top = 0;
|
|
204
208
|
let bottom = view.innerHeight;
|
|
@@ -222,6 +226,7 @@ function ddScrollBox(dd, panel) {
|
|
|
222
226
|
* a body that scrolls across still shows the rest. */
|
|
223
227
|
function ddClipsAcross(box, panel) {
|
|
224
228
|
const view = ddViewOf(panel);
|
|
229
|
+
if (typeof view?.getComputedStyle !== 'function') return false;
|
|
225
230
|
const p = panel.getBoundingClientRect();
|
|
226
231
|
return box.els.some((at) => {
|
|
227
232
|
const overflow = view.getComputedStyle(at).overflowX;
|