@webority/ui-react 0.163.0 → 0.164.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 +2 -2
- package/dist/canvas-kit/kit.js +191 -191
- package/dist/canvas-kit/manifest.json +72 -14
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccountSwitcher.js +1 -1
- package/dist/components/AppAlert.js +1 -1
- package/dist/components/AppBreadcrumbs.js +1 -1
- package/dist/components/AppButton.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppCodeBlock.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppContextMenu.js +1 -1
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppDropdown.js +1 -1
- package/dist/components/AppDueDate.js +1 -1
- package/dist/components/AppFileViewer.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingButton.js +1 -1
- package/dist/components/AppHoverCard.js +1 -1
- package/dist/components/AppImagePicker.js +1 -1
- package/dist/components/AppInlineEdit.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNotificationCenter.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPopover.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppSparkline.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppToast.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/AppWhatsNew.js +1 -1
- package/dist/components/AppWorkspaceSwitcher.js +1 -1
- package/dist/components/warnUnknownProps.js +1 -1
- package/dist/guidance.json +5 -5
- package/dist/lib/indianGrouping.js +1 -0
- package/dist/lib/useOverlayRoot.js +1 -0
- package/dist/types/components/AppAccordion.d.ts +1 -1
- package/dist/types/components/AppAlert.d.ts +1 -1
- package/dist/types/components/AppBreadcrumbs.d.ts +6 -0
- package/dist/types/components/AppCard.d.ts +1 -1
- package/dist/types/components/AppChip.d.ts +2 -2
- package/dist/types/components/AppCodeBlock.d.ts +1 -1
- package/dist/types/components/AppCommandPalette.d.ts +2 -2
- package/dist/types/components/AppDataTable.d.ts +3 -1
- package/dist/types/components/AppDescriptions.d.ts +1 -1
- package/dist/types/components/AppDrawer.d.ts +1 -1
- package/dist/types/components/AppDropdown.d.ts +7 -7
- package/dist/types/components/AppFilePicker.d.ts +1 -1
- package/dist/types/components/AppFloatingDock.d.ts +2 -2
- package/dist/types/components/AppFormActions.d.ts +1 -1
- package/dist/types/components/AppFormSection.d.ts +1 -1
- package/dist/types/components/AppIcon.d.ts +2 -2
- package/dist/types/components/AppInfoTip.d.ts +1 -1
- package/dist/types/components/AppInlineEdit.d.ts +5 -0
- package/dist/types/components/AppKpiTile.d.ts +1 -1
- package/dist/types/components/AppMeter.d.ts +1 -1
- package/dist/types/components/AppModal.d.ts +4 -4
- package/dist/types/components/AppNumberInput.d.ts +7 -0
- package/dist/types/components/AppPageHeader.d.ts +5 -0
- package/dist/types/components/AppPopover.d.ts +3 -3
- package/dist/types/components/AppRequiredMark.d.ts +1 -1
- package/dist/types/components/AppResourceCard.d.ts +1 -1
- package/dist/types/components/AppResult.d.ts +2 -2
- package/dist/types/components/AppScrollbar.d.ts +1 -1
- package/dist/types/components/AppShell.d.ts +6 -6
- package/dist/types/components/AppSparkline.d.ts +3 -0
- package/dist/types/components/AppSpinner.d.ts +2 -2
- package/dist/types/components/AppSplash.d.ts +2 -2
- package/dist/types/components/AppTabs.d.ts +3 -3
- package/dist/types/components/AppToast.d.ts +1 -1
- package/dist/types/components/AppToolbar.d.ts +5 -5
- package/dist/types/components/AppTooltip.d.ts +5 -5
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +3 -3
- package/dist/types/components/toastStore.d.ts +2 -2
- package/dist/types/components/warnUnknownProps.d.ts +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lib/CheckField.d.ts +1 -1
- package/dist/types/lib/FieldMessage.d.ts +1 -1
- package/dist/types/lib/FileItemRow.d.ts +1 -1
- package/dist/types/lib/fileItem.d.ts +3 -3
- package/dist/types/lib/indianGrouping.d.ts +2 -0
- package/dist/types/lib/useOverlayRoot.d.ts +2 -0
- package/dist/ui-react.js +1 -1
- package/package.json +9 -9
- package/dist/lib/FocusPanel.js +0 -1
- package/dist/lib/pageScrollLock.js +0 -1
- package/dist/types/lib/FocusPanel.d.ts +0 -11
- package/dist/types/lib/pageScrollLock.d.ts +0 -1
|
@@ -21,7 +21,7 @@ export interface AppInfoTipProps {
|
|
|
21
21
|
className?: string | undefined;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Generic info popover beside a field label, the same
|
|
24
|
+
* Generic info popover beside a field label, the same popover element the Razor app-info-tip renders.
|
|
25
25
|
*
|
|
26
26
|
* A small "?" trigger opens the popover on hover or focus. A glossary-backed tip wraps this and
|
|
27
27
|
* passes the looked-up entry as children, so the glossary never enters the shared library.
|
|
@@ -34,6 +34,11 @@ export interface AppInlineEditProps {
|
|
|
34
34
|
* value is a button, so it must not hold its own controls or links.
|
|
35
35
|
*/
|
|
36
36
|
renderValue?: ((value: InlineEditValue) => ReactNode) | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Digit grouping of a number at rest: indian shows 15,00,000, none shows 1500000.
|
|
39
|
+
* @default "none"
|
|
40
|
+
*/
|
|
41
|
+
grouping?: "none" | "indian" | undefined;
|
|
37
42
|
/**
|
|
38
43
|
* Wraps a long value across lines. false keeps it on one line, and a newline in a textarea value reads as a space.
|
|
39
44
|
* @default true
|
|
@@ -94,7 +94,7 @@ export interface AppKpiTileProps extends Omit<HTMLAttributes<HTMLElement>, "clas
|
|
|
94
94
|
sparklineClassName?: string | undefined;
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* A single headline number
|
|
97
|
+
* A single headline number: a dashboard stat, a summary figure above a table.
|
|
98
98
|
* Label, value, and an optional period-over-period delta.
|
|
99
99
|
*
|
|
100
100
|
* @param linkComponent Router link; receives `to` instead of `href`.
|
|
@@ -52,7 +52,7 @@ export interface AppMeterProps extends Omit<React.ComponentPropsWithoutRef<"div"
|
|
|
52
52
|
className?: string | undefined;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* A meter
|
|
55
|
+
* A meter: a scalar measurement within a known range (disk usage, a score, remaining quota).
|
|
56
56
|
* Unlike AppProgress (a task advancing over time) this is `role="meter"`; given `low`/`high`
|
|
57
57
|
* thresholds it auto-tones green/amber/red by which end is `optimum`. It shares AppProgress's
|
|
58
58
|
* bar, and renders identically to the Razor `<app-meter>`.
|
|
@@ -4,7 +4,7 @@ type AppModalTone = "neutral" | "danger" | "success" | "warning";
|
|
|
4
4
|
type AppModalPlacement = "center" | "top";
|
|
5
5
|
type AppModalSizePreset = "sm" | "md" | "lg" | "xl";
|
|
6
6
|
type AppModalSize = AppModalSizePreset | "fullscreen" | number;
|
|
7
|
-
export interface AppModalProps extends Omit<ComponentPropsWithoutRef<"
|
|
7
|
+
export interface AppModalProps extends Omit<ComponentPropsWithoutRef<"dialog">, "title"> {
|
|
8
8
|
/** Whether the dialog is shown. */
|
|
9
9
|
open: boolean;
|
|
10
10
|
/** A small kicker label above the title. */
|
|
@@ -82,12 +82,12 @@ export interface AppModalProps extends Omit<ComponentPropsWithoutRef<"div">, "ti
|
|
|
82
82
|
/** Extra classes on the content card. */
|
|
83
83
|
className?: string | undefined;
|
|
84
84
|
children: ReactNode;
|
|
85
|
-
ref?: Ref<
|
|
85
|
+
ref?: Ref<HTMLDialogElement> | undefined;
|
|
86
86
|
"data-wui"?: string | undefined;
|
|
87
87
|
"data-wui-props"?: string | undefined;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* The single dialog primitive
|
|
90
|
+
* The single dialog primitive: a native `<dialog>` inside `<wui-modal>`, with `.wui-modal-*` chrome.
|
|
91
91
|
*/
|
|
92
|
-
export default function AppModal(props: AppModalProps): React.JSX.Element;
|
|
92
|
+
export default function AppModal(props: AppModalProps): React.JSX.Element | null;
|
|
93
93
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
2
|
declare const SIZES: readonly ["sm", "md", "lg"];
|
|
3
|
+
declare const GROUPINGS: readonly ["none", "indian"];
|
|
3
4
|
export type AppNumberInputSize = (typeof SIZES)[number];
|
|
5
|
+
export type AppNumberInputGrouping = (typeof GROUPINGS)[number];
|
|
4
6
|
export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"input">, "value" | "defaultValue" | "onChange" | "size"> {
|
|
5
7
|
/** The current number; null or unset for an empty field. */
|
|
6
8
|
value?: number | null | undefined;
|
|
@@ -58,6 +60,11 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
58
60
|
* @default 0
|
|
59
61
|
*/
|
|
60
62
|
precision?: number | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Digit grouping while the number is shown: indian writes 3,00,000 and posts the plain digits; none writes 300000.
|
|
65
|
+
* @default "none"
|
|
66
|
+
*/
|
|
67
|
+
grouping?: AppNumberInputGrouping | undefined;
|
|
61
68
|
/** A unit suffix shown inside the field after the input, such as kg or %. */
|
|
62
69
|
unit?: string | undefined;
|
|
63
70
|
/**
|
|
@@ -66,6 +66,11 @@ export interface AppPageHeaderProps extends Omit<React.ComponentPropsWithoutRef<
|
|
|
66
66
|
* @default false
|
|
67
67
|
*/
|
|
68
68
|
sticky?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Folds the actions that do not fit into a More menu, keeping the solid primary action in the row while it fits (size bar only).
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
foldActions?: boolean | undefined;
|
|
69
74
|
/**
|
|
70
75
|
* Extra classes on the header element.
|
|
71
76
|
* @default ""
|
|
@@ -5,6 +5,7 @@ interface TriggerProps {
|
|
|
5
5
|
ref?: Ref<HTMLElement> | undefined;
|
|
6
6
|
onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
|
|
7
7
|
"aria-expanded"?: boolean | "true" | "false" | undefined;
|
|
8
|
+
"data-wui-popover-trigger"?: string | undefined;
|
|
8
9
|
}
|
|
9
10
|
export interface AppPopoverProps extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
|
|
10
11
|
/** The element the panel opens from. It must be a single element that forwards a ref, such as a plain element, AppButton or AppActionIcon. */
|
|
@@ -51,9 +52,8 @@ export interface AppPopoverProps extends Omit<ComponentPropsWithoutRef<"div">, "
|
|
|
51
52
|
/**
|
|
52
53
|
* A positioned overlay anchored to a trigger: a click-opened floating panel (a notifications
|
|
53
54
|
* list, a filters panel, a rich mini-menu). Distinct from AppModal (centered + backdrop),
|
|
54
|
-
* AppDropdown (a flat action menu), and AppInfoTip (a hover "?" help popover).
|
|
55
|
-
*
|
|
56
|
-
* `<app-popover>` uses Bootstrap's own popover, so both surfaces stay in lockstep.
|
|
55
|
+
* AppDropdown (a flat action menu), and AppInfoTip (a hover "?" help popover). Renders
|
|
56
|
+
* `<wui-popover>`, which Razor `<app-popover>` renders too, so both surfaces share one panel.
|
|
57
57
|
*
|
|
58
58
|
* @param trigger The element the panel opens from.
|
|
59
59
|
* @param children The panel body.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JSX } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Required-field asterisk shared by form primitives.
|
|
4
|
-
* Colour comes from `.required` (theme `--wui-danger`)
|
|
4
|
+
* Colour comes from `.required` (theme `--wui-danger`); never inline hex.
|
|
5
5
|
*/
|
|
6
6
|
export type AppRequiredMarkProps = Record<never, never>;
|
|
7
7
|
/** @param props Takes no props: the asterisk is fixed. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, JSX } from "react";
|
|
2
2
|
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
3
|
/**
|
|
4
|
-
* A link card to a resource
|
|
4
|
+
* A link card to a resource: a help article, a guide, a downloadable template,
|
|
5
5
|
* an external doc. Icon tile, title, one line of supporting text; the whole card
|
|
6
6
|
* is the link target.
|
|
7
7
|
*
|
|
@@ -28,9 +28,9 @@ export interface AppResultProps extends Omit<ComponentPropsWithoutRef<"div">, "t
|
|
|
28
28
|
className?: string | undefined;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* A full-page or section outcome screen
|
|
31
|
+
* A full-page or section outcome screen: the post-checkout success confirmation, the
|
|
32
32
|
* verification-complete screen, or an error state (403/404/500). Distinct from `AppEmptyState`
|
|
33
|
-
* (which is a card/section "nothing here yet")
|
|
33
|
+
* (which is a card/section "nothing here yet"), this is a self-contained result panel
|
|
34
34
|
* with a prominent status, heading, supporting message, and usually one or two actions.
|
|
35
35
|
*
|
|
36
36
|
* The card lays its parts in a column, so a `gap` style on it spaces them.
|
|
@@ -5,7 +5,7 @@ export interface AppScrollbarProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* A scroll container with a thin, themed scrollbar in place of the browser's default chunky one.
|
|
8
|
-
* Pure CSS
|
|
8
|
+
* Pure CSS: native scrolling, keyboard navigation and in-page anchoring are untouched; only the
|
|
9
9
|
* visible track is restyled, via the `.wui-scroll` rules in `@webority/theme`. No JavaScript and
|
|
10
10
|
* no dependency: the thin overlay look comes from native `scrollbar-width` / `::-webkit-scrollbar`.
|
|
11
11
|
*
|
|
@@ -206,6 +206,11 @@ export interface AppShellProps extends Omit<React.ComponentPropsWithoutRef<"div"
|
|
|
206
206
|
* @default "neutral"
|
|
207
207
|
*/
|
|
208
208
|
topbarTone?: "neutral" | "primary" | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* brand paints the sidebar and its parts with the --color-shell-* tokens.
|
|
211
|
+
* @default "default"
|
|
212
|
+
*/
|
|
213
|
+
tone?: "default" | "brand" | undefined;
|
|
209
214
|
/**
|
|
210
215
|
* Accessible name of the sidebar navigation.
|
|
211
216
|
* @default "Main navigation"
|
|
@@ -250,11 +255,6 @@ export interface AppShellProps extends Omit<React.ComponentPropsWithoutRef<"div"
|
|
|
250
255
|
* @default "Open navigation"
|
|
251
256
|
*/
|
|
252
257
|
openNavLabel?: string | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* Replaces the built-in English text, for other languages.
|
|
255
|
-
* @default "Close navigation"
|
|
256
|
-
*/
|
|
257
|
-
closeNavLabel?: string | undefined;
|
|
258
258
|
/**
|
|
259
259
|
* Replaces the built-in English text, for other languages.
|
|
260
260
|
* @default "Expand navigation"
|
|
@@ -369,7 +369,7 @@ export interface AppShellProps extends Omit<React.ComponentPropsWithoutRef<"div"
|
|
|
369
369
|
* a bottom tab bar.
|
|
370
370
|
*
|
|
371
371
|
* Slot-based, not copy-own. What every product shares is the *structure*: the
|
|
372
|
-
* breakpoint the sidebar collapses at, the drawer and its
|
|
372
|
+
* breakpoint the sidebar collapses at, the drawer and its backdrop, the 72px topbar,
|
|
373
373
|
* the icon rail, the tab bar. What differs is only the content, which arrives as props.
|
|
374
374
|
* The Razor `<app-shell>` renders the same markup and classes.
|
|
375
375
|
*
|
|
@@ -39,6 +39,8 @@ export interface AppSparklineProps extends Omit<ComponentPropsWithoutRef<"svg">,
|
|
|
39
39
|
* @default "{name} from {from} to {to} across {count} points."
|
|
40
40
|
*/
|
|
41
41
|
rangeText?: string | undefined;
|
|
42
|
+
/** The lowest value of the line's range. Unset: the lowest data value. */
|
|
43
|
+
yMin?: number | undefined;
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
46
|
* A small inline trend line: no axes, no tooltip, no chart engine. Drawn as plain SVG, so a
|
|
@@ -59,5 +61,6 @@ export interface AppSparklineProps extends Omit<ComponentPropsWithoutRef<"svg">,
|
|
|
59
61
|
* @param props.namedTrendLabel Default "{label} trend".
|
|
60
62
|
* @param props.oneValueText Default "{name} has one value, {value}.".
|
|
61
63
|
* @param props.rangeText Default "{name} from {from} to {to} across {count} points.".
|
|
64
|
+
* @param props.yMin The lowest value of the line's range. Unset: the lowest data value.
|
|
62
65
|
*/
|
|
63
66
|
export default function AppSparkline(props: AppSparklineProps): JSX.Element | null;
|
|
@@ -17,10 +17,10 @@ export interface AppSpinnerProps extends ComponentPropsWithoutRef<"span"> {
|
|
|
17
17
|
className?: string | undefined;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* A themed loading spinner
|
|
20
|
+
* A themed loading spinner: Bootstrap's `.spinner-border`, tinted by the theme.
|
|
21
21
|
* The React counterpart of `<app-spinner>`.
|
|
22
22
|
*
|
|
23
|
-
* For a whole section that is loading, prefer `AppSkeleton
|
|
23
|
+
* For a whole section that is loading, prefer `AppSkeleton`. A content-shaped
|
|
24
24
|
* placeholder reads better than a spinner above the fold.
|
|
25
25
|
*
|
|
26
26
|
* @param props.size
|
|
@@ -31,8 +31,8 @@ export interface AppSplashProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* The full-viewport boot screen shown while the app resolves its session, before
|
|
34
|
-
* the first route can render
|
|
35
|
-
* `authStatus` is still unresolved.
|
|
34
|
+
* the first route can render (the thing `ApplicationNavigator` returns while
|
|
35
|
+
* `authStatus` is still unresolved).
|
|
36
36
|
*
|
|
37
37
|
* Without it the app flashes the login screen at an already-authenticated user for
|
|
38
38
|
* the length of one session check.
|
|
@@ -79,7 +79,7 @@ export interface AppTabsProps {
|
|
|
79
79
|
* `onChange` and renders the panels. Razor's <app-tabs> renders the same strip markup
|
|
80
80
|
* (plus Bootstrap panels), so both surfaces look and behave alike.
|
|
81
81
|
*
|
|
82
|
-
* The active state is a sliding "ink bar" (`.app-tab-indicator`)
|
|
82
|
+
* The active state is a sliding "ink bar" (`.app-tab-indicator`): one element that is
|
|
83
83
|
* JS-measured against the active tab and slides between tabs with an ease-out (no overshoot).
|
|
84
84
|
* It becomes a moving pill in the `pills` variant and a moving left edge when
|
|
85
85
|
* `orientation="vertical"`, and it snaps (no slide) under `prefers-reduced-motion`.
|
|
@@ -90,11 +90,11 @@ export interface AppTabsProps {
|
|
|
90
90
|
*
|
|
91
91
|
* A tab becomes a real link when it carries `href` or `to`: it renders as an `<a>` (or the
|
|
92
92
|
* given `linkComponent` for a `to`) instead of a `<button>`, so the browser gives right-click
|
|
93
|
-
* "Open in new tab", Ctrl/⌘-click and middle-click for free
|
|
93
|
+
* "Open in new tab", Ctrl/⌘-click and middle-click for free: the standard, accessible way to
|
|
94
94
|
* open a tab on the next screen. `target="_blank"` opens it there on a plain click too (and
|
|
95
95
|
* gets `rel="noopener noreferrer"` unless the tab sets its own `rel`). A plain left-click still
|
|
96
96
|
* calls `onChange`; a modified click (new tab/window) does not, so the current selection is
|
|
97
|
-
* left untouched. Link tabs make `onChange` optional
|
|
97
|
+
* left untouched. Link tabs make `onChange` optional; selection usually follows the route the
|
|
98
98
|
* caller passes as `value`.
|
|
99
99
|
*/
|
|
100
100
|
export default function AppTabs(props: AppTabsProps): React.JSX.Element;
|
|
@@ -50,5 +50,5 @@ export interface AppToastProps extends Omit<ComponentPropsWithoutRef<"div">, "cl
|
|
|
50
50
|
* Toast options (from toast()/errorToast()): title, duration (0 = sticky), action {label,onClick},
|
|
51
51
|
* id (replace/refresh), and a string OR React-node message (rich body).
|
|
52
52
|
*/
|
|
53
|
-
export default function AppToast(props: AppToastProps): JSX.Element;
|
|
53
|
+
export default function AppToast(props: AppToastProps): JSX.Element | null;
|
|
54
54
|
export {};
|
|
@@ -44,17 +44,17 @@ export interface AppToolbarProps {
|
|
|
44
44
|
className?: string | undefined;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* A Figma-style toolbar
|
|
47
|
+
* A Figma-style toolbar: a pill strip of icon tools over a work surface. Exactly one
|
|
48
48
|
* tool is active; the active tool expands to reveal its label, the rest stay icon-only.
|
|
49
|
-
* Optional momentary `actions` render after a divider and just fire
|
|
49
|
+
* Optional momentary `actions` render after a divider and just fire; they never stay
|
|
50
50
|
* selected.
|
|
51
51
|
*
|
|
52
|
-
* Not `AppSegmented` (that chooses a form VALUE
|
|
53
|
-
* `AppFloatingDock` (marketing navigation shortcuts): this is action chrome
|
|
52
|
+
* Not `AppSegmented` (that chooses a form VALUE: view mode, period) and not
|
|
53
|
+
* `AppFloatingDock` (marketing navigation shortcuts): this is action chrome, which
|
|
54
54
|
* TOOL is in hand.
|
|
55
55
|
*
|
|
56
56
|
* Built on real `<input type="radio">` elements inside labels, so arrow-key navigation,
|
|
57
|
-
* the single tab stop, and screen-reader announcements come from the browser
|
|
57
|
+
* the single tab stop, and screen-reader announcements come from the browser. The
|
|
58
58
|
* Razor `<app-toolbar>` posts the selected tool inside a plain form with no JavaScript.
|
|
59
59
|
* The expand/collapse is pure CSS and honours `prefers-reduced-motion`.
|
|
60
60
|
*
|
|
@@ -8,10 +8,10 @@ export type AppTooltipTriggerProps = {
|
|
|
8
8
|
export interface AppTooltipProps extends Omit<ComponentPropsWithoutRef<"button">, "children" | "className" | "content"> {
|
|
9
9
|
/** The tooltip text or node. */
|
|
10
10
|
content: ReactNode;
|
|
11
|
-
/** A single trigger element
|
|
11
|
+
/** A single trigger element. It renders as written; hovering or focusing it reveals the tooltip. */
|
|
12
12
|
children: ReactElement<AppTooltipTriggerProps>;
|
|
13
13
|
/**
|
|
14
|
-
* Where the tooltip appears. A named side is preferred but flips if needed to stay in view; `auto`
|
|
14
|
+
* Where the tooltip appears. A named side is preferred but flips if needed to stay in view; `auto` picks the side with the most room outright. The bubble is a native popover in the top layer, so it never clips off-screen.
|
|
15
15
|
* @default "top"
|
|
16
16
|
*/
|
|
17
17
|
placement?: AppTooltipPlacement | undefined;
|
|
@@ -39,8 +39,8 @@ export interface AppTooltipProps extends Omit<ComponentPropsWithoutRef<"button">
|
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* A plain tooltip on any element (hover or keyboard focus to reveal). Distinct from AppInfoTip (a help
|
|
42
|
-
* "?" icon beside a label) and AppPopover (a click-opened panel).
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* "?" icon beside a label) and AppPopover (a click-opened panel). Plain text rides on the trigger as
|
|
43
|
+
* data attributes; any other content or a shortcut is a bubble rendered into the overlay root. The
|
|
44
|
+
* shared tooltip runtime (`wireTooltips`) shows and hides both, the same way the Razor `<app-tooltip>` does.
|
|
45
45
|
*/
|
|
46
46
|
export default function AppTooltip(props: AppTooltipProps): JSX.Element;
|
|
@@ -79,7 +79,7 @@ export interface AppWorkspaceSwitcherProps extends Omit<React.HTMLAttributes<HTM
|
|
|
79
79
|
onToggle?: ((next: boolean, meta: AppWorkspaceSwitcherToggleMeta) => void) | undefined;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Tenant / workspace switcher
|
|
82
|
+
* Tenant / workspace switcher: a <wui-dropdown> wearing an identity card.
|
|
83
83
|
*
|
|
84
84
|
* Selection is a CALLBACK, never navigation: products own where a workspace switch goes
|
|
85
85
|
* (a route change, a reload, an API call), so `onSelect(tenant)` is all the library does.
|
|
@@ -87,8 +87,8 @@ export interface AppWorkspaceSwitcherProps extends Omit<React.HTMLAttributes<HTM
|
|
|
87
87
|
* an `{ href }` renders through `linkComponent` when one is supplied, otherwise a plain
|
|
88
88
|
* anchor, and the library never imports a router.
|
|
89
89
|
*
|
|
90
|
-
* Tenant logos use `loading="lazy"` so a closed menu
|
|
91
|
-
* logo network fetch on first paint
|
|
90
|
+
* Tenant logos use `loading="lazy"` so a closed menu does not force every
|
|
91
|
+
* logo network fetch on first paint: the browser defers off-screen images.
|
|
92
92
|
*
|
|
93
93
|
* NOTE: the exported component must stay the FIRST destructured function in this file —
|
|
94
94
|
* the parity check reads the first signature it finds as the component's public props.
|
|
@@ -42,7 +42,7 @@ export declare function subscribeToasts(listener: (list: ToastEntry[]) => void):
|
|
|
42
42
|
export declare function pushToast(message: ReactNode, variant: string, opts?: ToastOptions): void;
|
|
43
43
|
/** Hand a toast's dismissal over from the store clock to its rendered CSS countdown. */
|
|
44
44
|
export declare function adoptToast(id: number): void;
|
|
45
|
-
/** Remove a toast
|
|
45
|
+
/** Remove a toast: its countdown ended, the store clock fired, or the user closed it. */
|
|
46
46
|
export declare function dismissToast(id: number): void;
|
|
47
|
-
/** Clear every toast at once
|
|
47
|
+
/** Clear every toast at once (e.g. on route change or logout). No-op when already empty. */
|
|
48
48
|
export declare function dismissAllToasts(): void;
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
* ABSENCE OF A WARNING IS NOT PROOF OF CORRECTNESS.
|
|
9
9
|
*
|
|
10
10
|
* A wrong prop whose name happens to be a real HTML attribute cannot be told apart from a
|
|
11
|
-
* deliberate pass-through, so it stays silent. That is not one prop
|
|
11
|
+
* deliberate pass-through, so it stays silent. That is not one prop: the allowlist below
|
|
12
12
|
* contains `name`, `title`, `type`, `value`, `width`, `height` and more, so `<AppActionIcon
|
|
13
13
|
* name="eye">` (meaning `icon`) and `<AppFoo title="…">` (meaning `label`) both pass
|
|
14
14
|
* unremarked. Silence means "nothing recognisably wrong", never "checked and correct".
|
|
15
15
|
*
|
|
16
16
|
* It also only sees components that MOUNT. A wrong prop inside a modal nobody opened, or a
|
|
17
|
-
* row-action menu on an empty list, produces no warning at all in a dev session
|
|
17
|
+
* row-action menu on an empty list, produces no warning at all in a dev session. A
|
|
18
18
|
* consumer found five such cases only by checking statically against the shipped types.
|
|
19
19
|
*
|
|
20
20
|
* What it does catch reliably is the shape that has actually bitten: a prop name that is
|
|
21
|
-
* neither the component's API nor a valid attribute
|
|
21
|
+
* neither the component's API nor a valid attribute: `body`, `icon`, `iconRight`,
|
|
22
22
|
* `iconSize`, `variant` on a component that takes `tone`, `w`/`h`/`r` for
|
|
23
23
|
* `width`/`height`/`radius`, `invalid` for `error`.
|
|
24
24
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createLocalSeenStore, isImeSafeEnter, mentionedIds, parseMentionValue, postedMasked, themeBootScript, } from "@webority/ui-elements/helpers";
|
|
1
|
+
export { createLocalSeenStore, isImeSafeEnter, mentionedIds, parseMentionValue, postedMasked, themeBootScript, wireTooltips, } from "@webority/ui-elements/helpers";
|
|
2
2
|
export { default as AppAccordion } from "./components/AppAccordion.tsx";
|
|
3
3
|
export { default as AppAccountSwitcher } from "./components/AppAccountSwitcher.tsx";
|
|
4
4
|
export { default as AppActionIcon } from "./components/AppActionIcon.tsx";
|
|
@@ -18,7 +18,7 @@ export interface CheckFieldProps {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Shared render logic for checkbox/radio/switch controls.
|
|
21
|
-
* @internal
|
|
21
|
+
* @internal, not exported from the package barrel
|
|
22
22
|
*/
|
|
23
23
|
declare const CheckField: React.ForwardRefExoticComponent<CheckFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
24
24
|
export default CheckField;
|
|
@@ -10,6 +10,6 @@ export interface FieldMessageProps {
|
|
|
10
10
|
* while the error shows. The line is kept
|
|
11
11
|
* whether or not anything shows (inside a form), so an error never moves the form. A cleared
|
|
12
12
|
* error keeps its text until its fade-out ends, so there is something to fade.
|
|
13
|
-
* @internal
|
|
13
|
+
* @internal, not exported from the package barrel
|
|
14
14
|
*/
|
|
15
15
|
export default function FieldMessage({ error, hint, errorId, hintId }: FieldMessageProps): React.JSX.Element;
|
|
@@ -17,7 +17,7 @@ export interface FileItemRowProps {
|
|
|
17
17
|
readOnly?: boolean | undefined;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Compact picked-file row
|
|
20
|
+
* Compact picked-file row: image thumbnail or file-type icon + name/size + inline remove.
|
|
21
21
|
* Internal: shared by AppFileAttachment and AppFilePicker so the two fields cannot drift.
|
|
22
22
|
*/
|
|
23
23
|
export default function FileItemRow({ item, isImage, onRemove, linkComponent, noun, removeFileLabel, readOnly, }: FileItemRowProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared file-item helpers for the two file fields (AppFileAttachment, AppFilePicker). Both
|
|
3
|
-
* render the same compact picked-file row over the same value shape
|
|
4
|
-
* or an existing `{ url, name }
|
|
3
|
+
* render the same compact picked-file row over the same value shape: a freshly-picked `File`
|
|
4
|
+
* or an existing `{ url, name }`, so the key, name, size and blob-URL rules live once.
|
|
5
5
|
*/
|
|
6
6
|
export interface FileItemValue {
|
|
7
7
|
url?: string | undefined;
|
|
@@ -34,7 +34,7 @@ export declare function uploadProgressOf(item: FileItem): number | null;
|
|
|
34
34
|
export declare function uploadErrorOf(item: FileItem): string | null;
|
|
35
35
|
/**
|
|
36
36
|
* A freshly-picked File has no URL of its own; mint one (for images) and revoke it on
|
|
37
|
-
* change/unmount. An existing attachment already carries `url`. Non-images get no URL
|
|
37
|
+
* change/unmount. An existing attachment already carries `url`. Non-images get no URL; the
|
|
38
38
|
* caller renders a file-type icon instead.
|
|
39
39
|
*/
|
|
40
40
|
export declare function useItemUrl(item: FileItem, isImage: boolean): string | null;
|
package/dist/ui-react.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./components/AppAccordion.js";import t from"./components/AppAccountSwitcher.js";import n from"./components/AppActionIcon.js";import r from"./components/AppAlert.js";import i from"./components/AppAsyncBlock.js";import a from"./components/AppAuthLayout.js";import o from"./components/AppAvatar.js";import s from"./components/AppAvatarGroup.js";import c from"./components/AppBadge.js";import l from"./components/AppBanner.js";import u from"./components/AppBreadcrumbs.js";import d from"./components/AppButton.js";import f from"./components/AppButtonGroup.js";import p from"./components/AppCalendar.js";import m from"./components/AppCard.js";import h from"./components/AppCarousel.js";import g from"./components/AppCell.js";import _ from"./components/AppChart.js";import v from"./components/AppChartCard.js";import y from"./components/AppCheckbox.js";import b from"./components/AppChip.js";import x from"./components/AppChipGroup.js";import S from"./components/AppChoiceCard.js";import C from"./components/AppChoiceChip.js";import w from"./components/AppCodeBlock.js";import T from"./components/AppColorField.js";import E from"./components/AppColumnMenu.js";import D from"./components/AppCommandPalette.js";import O from"./components/AppCommentThread.js";import k from"./components/AppCompareTable.js";import A from"./components/AppConfirmDialog.js";import j,{useConfirm as M}from"./components/AppConfirmProvider.js";import N from"./components/AppConsentBanner.js";import P from"./components/AppContextMenu.js";import F from"./components/AppCopyButton.js";import I from"./components/AppCountryFlag.js";import L from"./components/AppDashboardCell.js";import R from"./components/AppDashboardGrid.js";import z from"./components/AppDataTable.js";import B from"./components/AppDatePicker.js";import V from"./components/AppDateRangePicker.js";import H from"./components/AppDescriptions.js";import U from"./components/AppDetailPane.js";import W from"./components/AppDrawer.js";import G from"./components/AppDropdown.js";import K from"./components/AppDropZone.js";import q from"./components/AppDueDate.js";import J from"./components/AppEmptyState.js";import Y from"./components/AppErrorBoundary.js";import X from"./components/AppErrorSummary.js";import Z from"./components/AppFileAttachment.js";import Q from"./components/AppFilePicker.js";import $ from"./components/AppFileTiles.js";import ee from"./components/AppFileViewer.js";import te from"./components/AppFilterBar.js";import ne from"./components/AppFloatingButton.js";import re from"./components/AppFloatingDock.js";import ie,{useFormSubmit as ae}from"./components/AppForm.js";import oe from"./components/AppFormActions.js";import se from"./components/AppFormRow.js";import ce from"./components/AppFormSection.js";import le from"./components/AppHoverCard.js";import ue,{iconNames as de,registerIcons as fe}from"./components/AppIcon.js";import pe from"./components/AppImagePicker.js";import me from"./components/AppInfoTip.js";import he from"./components/AppInlineEdit.js";import ge from"./components/AppInput.js";import _e from"./components/AppInputGroup.js";import ve from"./components/AppKanban.js";import ye from"./components/AppKbd.js";import be from"./components/AppKpiTile.js";import xe from"./components/AppLeadPopup.js";import Se from"./components/AppLightbox.js";import Ce from"./components/AppLink.js";import we from"./components/AppMarkdown.js";import Te from"./components/AppMentionInput.js";import Ee from"./components/AppMeter.js";import De from"./components/AppMetricStrip.js";import Oe from"./components/AppModal.js";import ke from"./components/AppNavigationMenu.js";import Ae from"./components/AppNavList.js";import je from"./components/AppNotificationCenter.js";import Me from"./components/AppNumberInput.js";import Ne from"./components/AppOnboardingChecklist.js";import Pe from"./components/AppOrgTree.js";import Fe from"./components/AppOtpInput.js";import Ie from"./components/AppPageHeader.js";import Le from"./components/AppPhoneNumberInput.js";import Re from"./components/AppPopover.js";import ze from"./components/AppPricingCard.js";import Be from"./components/AppProgress.js";import Ve from"./components/AppQrCode.js";import He from"./components/AppRadio.js";import Ue from"./components/AppRadioGroup.js";import We from"./components/AppRating.js";import Ge from"./components/AppRecordPager.js";import Ke from"./components/AppRelativeTime.js";import qe from"./components/AppRepeater.js";import Je from"./components/AppRequiredMark.js";import Ye from"./components/AppResizable.js";import Xe from"./components/AppResizableHandle.js";import Ze from"./components/AppResizablePanel.js";import Qe from"./components/AppResourceCard.js";import $e from"./components/AppResult.js";import et from"./components/AppRichText.js";import tt from"./components/AppRollingNumber.js";import nt from"./components/AppRouteError.js";import rt from"./components/AppRowSwitch.js";import it from"./components/AppScoreScale.js";import at from"./components/AppScrollbar.js";import ot from"./components/AppSearch.js";import st from"./components/AppSectionCallToAction.js";import ct from"./components/AppSectionFaq.js";import lt from"./components/AppSectionFeatures.js";import ut from"./components/AppSectionHero.js";import dt from"./components/AppSectionLeadCapture.js";import ft from"./components/AppSectionLogos.js";import pt from"./components/AppSectionPricing.js";import mt from"./components/AppSectionTestimonials.js";import ht from"./components/AppSegmented.js";import gt from"./components/AppSelect.js";import _t from"./components/AppSeoHead.js";import vt from"./components/AppShell.js";import yt from"./components/AppShortcutLegend.js";import bt from"./components/AppShowMore.js";import xt,{AppSkeletonRows as St}from"./components/AppSkeleton.js";import Ct from"./components/AppSkeletonLines.js";import wt from"./components/AppSlider.js";import Tt from"./components/AppSortableList.js";import Et from"./components/AppSparkline.js";import Dt from"./components/AppSpinner.js";import Ot from"./components/AppSplash.js";import kt from"./components/AppSplitButton.js";import At from"./components/AppSplitView.js";import jt from"./components/AppStatusBadge.js";import Mt from"./components/AppStepper.js";import Nt from"./components/AppSwitch.js";import Pt from"./components/AppTablePagination.js";import Ft from"./components/AppTableToolbar.js";import It from"./components/AppTabs.js";import Lt from"./components/AppTextarea.js";import Rt from"./components/AppThemeToggle.js";import zt from"./components/AppTimeline.js";import Bt from"./components/AppTimePicker.js";import Vt from"./components/AppToast.js";import Ht from"./components/AppToolbar.js";import Ut from"./components/AppTooltip.js";import Wt from"./components/AppTour.js";import Gt from"./components/AppTreeView.js";import Kt from"./components/AppTruncate.js";import qt from"./components/AppUpdateBar.js";import Jt from"./components/AppWhatsNew.js";import Yt from"./components/AppWizard.js";import Xt from"./components/AppWorkspaceSwitcher.js";import Zt from"./components/assertValidValue.js";import{MODAL_ICONS as Qt}from"./components/ModalIcons.js";import{dismissAll as $t,errorToast as en,toast as tn}from"./components/toast.js";import{useCommandPaletteShortcut as nn}from"./lib/useCommandPaletteShortcut.js";import{useFloatingStack as rn}from"./lib/useFloatingStack.js";import{useListShortcuts as an}from"./lib/useListShortcuts.js";import{usePagination as on}from"./lib/usePagination.js";import{useTableView as sn}from"./lib/useTableView.js";import{createLocalSeenStore as cn,isImeSafeEnter as ln,mentionedIds as un,parseMentionValue as dn,postedMasked as fn,themeBootScript as pn}from"@webority/ui-elements/helpers";export{e as AppAccordion,t as AppAccountSwitcher,n as AppActionIcon,r as AppAlert,i as AppAsyncBlock,a as AppAuthLayout,o as AppAvatar,s as AppAvatarGroup,c as AppBadge,l as AppBanner,u as AppBreadcrumbs,d as AppButton,f as AppButtonGroup,p as AppCalendar,m as AppCard,h as AppCarousel,g as AppCell,_ as AppChart,v as AppChartCard,y as AppCheckbox,b as AppChip,x as AppChipGroup,S as AppChoiceCard,C as AppChoiceChip,w as AppCodeBlock,T as AppColorField,E as AppColumnMenu,D as AppCommandPalette,O as AppCommentThread,k as AppCompareTable,A as AppConfirmDialog,j as AppConfirmProvider,N as AppConsentBanner,P as AppContextMenu,F as AppCopyButton,I as AppCountryFlag,L as AppDashboardCell,R as AppDashboardGrid,z as AppDataTable,B as AppDatePicker,V as AppDateRangePicker,H as AppDescriptions,U as AppDetailPane,W as AppDrawer,K as AppDropZone,G as AppDropdown,q as AppDueDate,J as AppEmptyState,Y as AppErrorBoundary,X as AppErrorSummary,Z as AppFileAttachment,Q as AppFilePicker,$ as AppFileTiles,ee as AppFileViewer,te as AppFilterBar,ne as AppFloatingButton,re as AppFloatingDock,ie as AppForm,oe as AppFormActions,se as AppFormRow,ce as AppFormSection,le as AppHoverCard,ue as AppIcon,pe as AppImagePicker,me as AppInfoTip,he as AppInlineEdit,ge as AppInput,_e as AppInputGroup,ve as AppKanban,ye as AppKbd,be as AppKpiTile,xe as AppLeadPopup,Se as AppLightbox,Ce as AppLink,we as AppMarkdown,Te as AppMentionInput,Ee as AppMeter,De as AppMetricStrip,Oe as AppModal,Ae as AppNavList,ke as AppNavigationMenu,je as AppNotificationCenter,Me as AppNumberInput,Ne as AppOnboardingChecklist,Pe as AppOrgTree,Fe as AppOtpInput,Ie as AppPageHeader,Le as AppPhoneNumberInput,Re as AppPopover,ze as AppPricingCard,Be as AppProgress,Ve as AppQrCode,He as AppRadio,Ue as AppRadioGroup,We as AppRating,Ge as AppRecordPager,Ke as AppRelativeTime,qe as AppRepeater,Je as AppRequiredMark,Ye as AppResizable,Xe as AppResizableHandle,Ze as AppResizablePanel,Qe as AppResourceCard,$e as AppResult,et as AppRichText,tt as AppRollingNumber,nt as AppRouteError,rt as AppRowSwitch,it as AppScoreScale,at as AppScrollbar,ot as AppSearch,st as AppSectionCallToAction,ct as AppSectionFaq,lt as AppSectionFeatures,ut as AppSectionHero,dt as AppSectionLeadCapture,ft as AppSectionLogos,pt as AppSectionPricing,mt as AppSectionTestimonials,ht as AppSegmented,gt as AppSelect,_t as AppSeoHead,vt as AppShell,yt as AppShortcutLegend,bt as AppShowMore,xt as AppSkeleton,Ct as AppSkeletonLines,St as AppSkeletonRows,wt as AppSlider,Tt as AppSortableList,Et as AppSparkline,Dt as AppSpinner,Ot as AppSplash,kt as AppSplitButton,At as AppSplitView,jt as AppStatusBadge,Mt as AppStepper,Nt as AppSwitch,Pt as AppTablePagination,Ft as AppTableToolbar,It as AppTabs,Lt as AppTextarea,Rt as AppThemeToggle,Bt as AppTimePicker,zt as AppTimeline,Vt as AppToast,Ht as AppToolbar,Ut as AppTooltip,Wt as AppTour,Gt as AppTreeView,Kt as AppTruncate,qt as AppUpdateBar,Jt as AppWhatsNew,Yt as AppWizard,Xt as AppWorkspaceSwitcher,Qt as MODAL_ICONS,Zt as assertValidValue,cn as createLocalSeenStore,$t as dismissAll,en as errorToast,de as iconNames,ln as isImeSafeEnter,un as mentionedIds,dn as parseMentionValue,fn as postedMasked,fe as registerIcons,pn as themeBootScript,tn as toast,nn as useCommandPaletteShortcut,M as useConfirm,rn as useFloatingStack,ae as useFormSubmit,an as useListShortcuts,on as usePagination,sn as useTableView};
|
|
1
|
+
import e from"./components/AppAccordion.js";import t from"./components/AppAccountSwitcher.js";import n from"./components/AppActionIcon.js";import r from"./components/AppAlert.js";import i from"./components/AppAsyncBlock.js";import a from"./components/AppAuthLayout.js";import o from"./components/AppAvatar.js";import s from"./components/AppAvatarGroup.js";import c from"./components/AppBadge.js";import l from"./components/AppBanner.js";import u from"./components/AppBreadcrumbs.js";import d from"./components/AppButton.js";import f from"./components/AppButtonGroup.js";import p from"./components/AppCalendar.js";import m from"./components/AppCard.js";import h from"./components/AppCarousel.js";import g from"./components/AppCell.js";import _ from"./components/AppChart.js";import v from"./components/AppChartCard.js";import y from"./components/AppCheckbox.js";import b from"./components/AppChip.js";import x from"./components/AppChipGroup.js";import S from"./components/AppChoiceCard.js";import C from"./components/AppChoiceChip.js";import w from"./components/AppCodeBlock.js";import T from"./components/AppColorField.js";import E from"./components/AppColumnMenu.js";import D from"./components/AppCommandPalette.js";import O from"./components/AppCommentThread.js";import k from"./components/AppCompareTable.js";import A from"./components/AppConfirmDialog.js";import j,{useConfirm as M}from"./components/AppConfirmProvider.js";import N from"./components/AppConsentBanner.js";import P from"./components/AppContextMenu.js";import F from"./components/AppCopyButton.js";import I from"./components/AppCountryFlag.js";import L from"./components/AppDashboardCell.js";import R from"./components/AppDashboardGrid.js";import z from"./components/AppDataTable.js";import B from"./components/AppDatePicker.js";import V from"./components/AppDateRangePicker.js";import H from"./components/AppDescriptions.js";import U from"./components/AppDetailPane.js";import W from"./components/AppDrawer.js";import G from"./components/AppDropdown.js";import K from"./components/AppDropZone.js";import q from"./components/AppDueDate.js";import J from"./components/AppEmptyState.js";import Y from"./components/AppErrorBoundary.js";import X from"./components/AppErrorSummary.js";import Z from"./components/AppFileAttachment.js";import Q from"./components/AppFilePicker.js";import $ from"./components/AppFileTiles.js";import ee from"./components/AppFileViewer.js";import te from"./components/AppFilterBar.js";import ne from"./components/AppFloatingButton.js";import re from"./components/AppFloatingDock.js";import ie,{useFormSubmit as ae}from"./components/AppForm.js";import oe from"./components/AppFormActions.js";import se from"./components/AppFormRow.js";import ce from"./components/AppFormSection.js";import le from"./components/AppHoverCard.js";import ue,{iconNames as de,registerIcons as fe}from"./components/AppIcon.js";import pe from"./components/AppImagePicker.js";import me from"./components/AppInfoTip.js";import he from"./components/AppInlineEdit.js";import ge from"./components/AppInput.js";import _e from"./components/AppInputGroup.js";import ve from"./components/AppKanban.js";import ye from"./components/AppKbd.js";import be from"./components/AppKpiTile.js";import xe from"./components/AppLeadPopup.js";import Se from"./components/AppLightbox.js";import Ce from"./components/AppLink.js";import we from"./components/AppMarkdown.js";import Te from"./components/AppMentionInput.js";import Ee from"./components/AppMeter.js";import De from"./components/AppMetricStrip.js";import Oe from"./components/AppModal.js";import ke from"./components/AppNavigationMenu.js";import Ae from"./components/AppNavList.js";import je from"./components/AppNotificationCenter.js";import Me from"./components/AppNumberInput.js";import Ne from"./components/AppOnboardingChecklist.js";import Pe from"./components/AppOrgTree.js";import Fe from"./components/AppOtpInput.js";import Ie from"./components/AppPageHeader.js";import Le from"./components/AppPhoneNumberInput.js";import Re from"./components/AppPopover.js";import ze from"./components/AppPricingCard.js";import Be from"./components/AppProgress.js";import Ve from"./components/AppQrCode.js";import He from"./components/AppRadio.js";import Ue from"./components/AppRadioGroup.js";import We from"./components/AppRating.js";import Ge from"./components/AppRecordPager.js";import Ke from"./components/AppRelativeTime.js";import qe from"./components/AppRepeater.js";import Je from"./components/AppRequiredMark.js";import Ye from"./components/AppResizable.js";import Xe from"./components/AppResizableHandle.js";import Ze from"./components/AppResizablePanel.js";import Qe from"./components/AppResourceCard.js";import $e from"./components/AppResult.js";import et from"./components/AppRichText.js";import tt from"./components/AppRollingNumber.js";import nt from"./components/AppRouteError.js";import rt from"./components/AppRowSwitch.js";import it from"./components/AppScoreScale.js";import at from"./components/AppScrollbar.js";import ot from"./components/AppSearch.js";import st from"./components/AppSectionCallToAction.js";import ct from"./components/AppSectionFaq.js";import lt from"./components/AppSectionFeatures.js";import ut from"./components/AppSectionHero.js";import dt from"./components/AppSectionLeadCapture.js";import ft from"./components/AppSectionLogos.js";import pt from"./components/AppSectionPricing.js";import mt from"./components/AppSectionTestimonials.js";import ht from"./components/AppSegmented.js";import gt from"./components/AppSelect.js";import _t from"./components/AppSeoHead.js";import vt from"./components/AppShell.js";import yt from"./components/AppShortcutLegend.js";import bt from"./components/AppShowMore.js";import xt,{AppSkeletonRows as St}from"./components/AppSkeleton.js";import Ct from"./components/AppSkeletonLines.js";import wt from"./components/AppSlider.js";import Tt from"./components/AppSortableList.js";import Et from"./components/AppSparkline.js";import Dt from"./components/AppSpinner.js";import Ot from"./components/AppSplash.js";import kt from"./components/AppSplitButton.js";import At from"./components/AppSplitView.js";import jt from"./components/AppStatusBadge.js";import Mt from"./components/AppStepper.js";import Nt from"./components/AppSwitch.js";import Pt from"./components/AppTablePagination.js";import Ft from"./components/AppTableToolbar.js";import It from"./components/AppTabs.js";import Lt from"./components/AppTextarea.js";import Rt from"./components/AppThemeToggle.js";import zt from"./components/AppTimeline.js";import Bt from"./components/AppTimePicker.js";import Vt from"./components/AppToast.js";import Ht from"./components/AppToolbar.js";import Ut from"./components/AppTooltip.js";import Wt from"./components/AppTour.js";import Gt from"./components/AppTreeView.js";import Kt from"./components/AppTruncate.js";import qt from"./components/AppUpdateBar.js";import Jt from"./components/AppWhatsNew.js";import Yt from"./components/AppWizard.js";import Xt from"./components/AppWorkspaceSwitcher.js";import Zt from"./components/assertValidValue.js";import{MODAL_ICONS as Qt}from"./components/ModalIcons.js";import{dismissAll as $t,errorToast as en,toast as tn}from"./components/toast.js";import{useCommandPaletteShortcut as nn}from"./lib/useCommandPaletteShortcut.js";import{useFloatingStack as rn}from"./lib/useFloatingStack.js";import{useListShortcuts as an}from"./lib/useListShortcuts.js";import{usePagination as on}from"./lib/usePagination.js";import{useTableView as sn}from"./lib/useTableView.js";import{createLocalSeenStore as cn,isImeSafeEnter as ln,mentionedIds as un,parseMentionValue as dn,postedMasked as fn,themeBootScript as pn,wireTooltips as mn}from"@webority/ui-elements/helpers";export{e as AppAccordion,t as AppAccountSwitcher,n as AppActionIcon,r as AppAlert,i as AppAsyncBlock,a as AppAuthLayout,o as AppAvatar,s as AppAvatarGroup,c as AppBadge,l as AppBanner,u as AppBreadcrumbs,d as AppButton,f as AppButtonGroup,p as AppCalendar,m as AppCard,h as AppCarousel,g as AppCell,_ as AppChart,v as AppChartCard,y as AppCheckbox,b as AppChip,x as AppChipGroup,S as AppChoiceCard,C as AppChoiceChip,w as AppCodeBlock,T as AppColorField,E as AppColumnMenu,D as AppCommandPalette,O as AppCommentThread,k as AppCompareTable,A as AppConfirmDialog,j as AppConfirmProvider,N as AppConsentBanner,P as AppContextMenu,F as AppCopyButton,I as AppCountryFlag,L as AppDashboardCell,R as AppDashboardGrid,z as AppDataTable,B as AppDatePicker,V as AppDateRangePicker,H as AppDescriptions,U as AppDetailPane,W as AppDrawer,K as AppDropZone,G as AppDropdown,q as AppDueDate,J as AppEmptyState,Y as AppErrorBoundary,X as AppErrorSummary,Z as AppFileAttachment,Q as AppFilePicker,$ as AppFileTiles,ee as AppFileViewer,te as AppFilterBar,ne as AppFloatingButton,re as AppFloatingDock,ie as AppForm,oe as AppFormActions,se as AppFormRow,ce as AppFormSection,le as AppHoverCard,ue as AppIcon,pe as AppImagePicker,me as AppInfoTip,he as AppInlineEdit,ge as AppInput,_e as AppInputGroup,ve as AppKanban,ye as AppKbd,be as AppKpiTile,xe as AppLeadPopup,Se as AppLightbox,Ce as AppLink,we as AppMarkdown,Te as AppMentionInput,Ee as AppMeter,De as AppMetricStrip,Oe as AppModal,Ae as AppNavList,ke as AppNavigationMenu,je as AppNotificationCenter,Me as AppNumberInput,Ne as AppOnboardingChecklist,Pe as AppOrgTree,Fe as AppOtpInput,Ie as AppPageHeader,Le as AppPhoneNumberInput,Re as AppPopover,ze as AppPricingCard,Be as AppProgress,Ve as AppQrCode,He as AppRadio,Ue as AppRadioGroup,We as AppRating,Ge as AppRecordPager,Ke as AppRelativeTime,qe as AppRepeater,Je as AppRequiredMark,Ye as AppResizable,Xe as AppResizableHandle,Ze as AppResizablePanel,Qe as AppResourceCard,$e as AppResult,et as AppRichText,tt as AppRollingNumber,nt as AppRouteError,rt as AppRowSwitch,it as AppScoreScale,at as AppScrollbar,ot as AppSearch,st as AppSectionCallToAction,ct as AppSectionFaq,lt as AppSectionFeatures,ut as AppSectionHero,dt as AppSectionLeadCapture,ft as AppSectionLogos,pt as AppSectionPricing,mt as AppSectionTestimonials,ht as AppSegmented,gt as AppSelect,_t as AppSeoHead,vt as AppShell,yt as AppShortcutLegend,bt as AppShowMore,xt as AppSkeleton,Ct as AppSkeletonLines,St as AppSkeletonRows,wt as AppSlider,Tt as AppSortableList,Et as AppSparkline,Dt as AppSpinner,Ot as AppSplash,kt as AppSplitButton,At as AppSplitView,jt as AppStatusBadge,Mt as AppStepper,Nt as AppSwitch,Pt as AppTablePagination,Ft as AppTableToolbar,It as AppTabs,Lt as AppTextarea,Rt as AppThemeToggle,Bt as AppTimePicker,zt as AppTimeline,Vt as AppToast,Ht as AppToolbar,Ut as AppTooltip,Wt as AppTour,Gt as AppTreeView,Kt as AppTruncate,qt as AppUpdateBar,Jt as AppWhatsNew,Yt as AppWizard,Xt as AppWorkspaceSwitcher,Qt as MODAL_ICONS,Zt as assertValidValue,cn as createLocalSeenStore,$t as dismissAll,en as errorToast,de as iconNames,ln as isImeSafeEnter,un as mentionedIds,dn as parseMentionValue,fn as postedMasked,fe as registerIcons,pn as themeBootScript,tn as toast,nn as useCommandPaletteShortcut,M as useConfirm,rn as useFloatingStack,ae as useFormSubmit,an as useListShortcuts,on as usePagination,sn as useTableView,mn as wireTooltips};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.164.0",
|
|
4
4
|
"description": "Webority shared React component library: App* primitives on react-bootstrap and the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.
|
|
33
|
-
"@webority/theme": "0.
|
|
34
|
-
"@webority/ui-elements": "0.
|
|
35
|
-
"@webority/web-core": "0.
|
|
32
|
+
"@webority/markdown-core": "0.164.0",
|
|
33
|
+
"@webority/theme": "0.164.0",
|
|
34
|
+
"@webority/ui-elements": "0.164.0",
|
|
35
|
+
"@webority/web-core": "0.164.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@webority/analytics": "^0.40.0",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@types/react-dom": "^19.3.0",
|
|
52
52
|
"@vitejs/plugin-react": "^6.0.1",
|
|
53
53
|
"@vitest/coverage-v8": "5.1.0",
|
|
54
|
-
"@webority/analytics": "0.40.
|
|
55
|
-
"@webority/canvas-kit": "0.
|
|
56
|
-
"@webority/biome-config": "0.
|
|
57
|
-
"@webority/tokens": "0.
|
|
54
|
+
"@webority/analytics": "0.40.6",
|
|
55
|
+
"@webority/canvas-kit": "0.164.0",
|
|
56
|
+
"@webority/biome-config": "0.164.0",
|
|
57
|
+
"@webority/tokens": "0.164.0",
|
|
58
58
|
"bootstrap": "5.3.9",
|
|
59
59
|
"jsdom": "30.1.1",
|
|
60
60
|
"react": "^19.3.1",
|
package/dist/lib/FocusPanel.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useEffect as e,useRef as t}from"react";import{jsx as n}from"react/jsx-runtime";var r=`a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function i({triggerRef:i}){let a=t(null);return e(()=>{let e=i.current??document.activeElement;return a.current?.parentElement?.querySelector(r)?.focus(),()=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()}},[i]),/* @__PURE__ */ n(`span`,{ref:a,hidden:!0})}export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=0,t=null;function n(){if(typeof window>`u`)return()=>{};let{body:n,documentElement:r}=document;e===0&&(t={y:window.scrollY,position:n.style.position,top:n.style.top,width:n.style.width,htmlOverflow:r.style.overflow},n.style.position=`fixed`,n.style.top=`-${t.y}px`,n.style.width=`100%`,r.style.overflow=`hidden`,r.setAttribute(`data-wui-scroll-locked`,``)),e+=1;let i=!1;return()=>{if(i||(i=!0,--e,e>0))return;let a=t;if(a===null)throw Error(`lockPageScroll: the last overlay released with no saved page styles; the page would stay fixed`);n.style.position=a.position,n.style.top=a.top,n.style.width=a.width,r.style.overflow=a.htmlOverflow,r.removeAttribute(`data-wui-scroll-locked`),window.scrollTo({top:a.y,left:0,behavior:`instant`}),t=null}}export{n as lockPageScroll};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
|
-
export interface FocusPanelProps {
|
|
3
|
-
triggerRef: React.RefObject<HTMLElement | null>;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Rendered inside an open panel: mounting it moves focus to the panel's first focusable element, and
|
|
7
|
-
* unmounting it (close, Escape or an outside click) hands focus back to whatever opened the panel,
|
|
8
|
-
* which is the trigger for a click.
|
|
9
|
-
* @internal not exported from the package barrel
|
|
10
|
-
*/
|
|
11
|
-
export default function FocusPanel({ triggerRef }: FocusPanelProps): React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function lockPageScroll(): () => void;
|