@webority/ui-react 0.165.0 → 0.168.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/dist/canvas-kit/kit.js +217 -215
- package/dist/canvas-kit/manifest.json +247 -28
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAsyncBlock.js +1 -1
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppAvatarGroup.js +1 -1
- package/dist/components/AppBanner.js +1 -1
- package/dist/components/AppBreadcrumbs.js +1 -1
- package/dist/components/AppButton.js +1 -1
- package/dist/components/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppCarousel.js +1 -1
- package/dist/components/AppCell.js +1 -1
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppCheckbox.js +1 -1
- package/dist/components/AppChip.js +1 -1
- package/dist/components/AppChipGroup.js +1 -1
- package/dist/components/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppColorField.js +1 -1
- package/dist/components/AppColumnMenu.js +1 -1
- package/dist/components/AppCommandPalette.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppCompareTable.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppConfirmProvider.js +1 -1
- package/dist/components/AppContextMenu.js +1 -1
- package/dist/components/AppCopyButton.js +1 -1
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppDatePicker.js +1 -1
- package/dist/components/AppDateRangePicker.js +1 -1
- package/dist/components/AppDescriptions.js +1 -1
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppDropZone.js +1 -1
- package/dist/components/AppDropdown.js +1 -1
- package/dist/components/AppDueDate.js +1 -1
- package/dist/components/AppEntryGrid.js +1 -1
- package/dist/components/AppErrorBoundary.js +1 -1
- package/dist/components/AppErrorSummary.js +1 -1
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingDock.js +1 -1
- package/dist/components/AppForm.js +1 -1
- package/dist/components/AppFormulaSteps.js +1 -1
- package/dist/components/AppHoverCard.js +1 -1
- package/dist/components/AppImagePicker.js +1 -1
- package/dist/components/AppInfoTip.js +1 -1
- package/dist/components/AppInlineEdit.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppInputGroup.js +1 -1
- package/dist/components/AppKanban.js +1 -1
- package/dist/components/AppMentionInput.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavigationMenu.js +1 -1
- package/dist/components/AppNotificationCenter.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppOnboardingChecklist.js +1 -1
- package/dist/components/AppOrgTree.js +1 -1
- package/dist/components/AppOtpInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppPricingCard.js +1 -1
- package/dist/components/AppQrCode.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRadioGroup.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppRecordPager.js +1 -1
- package/dist/components/AppRelativeTime.js +1 -1
- package/dist/components/AppRepeater.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRouteError.js +1 -1
- package/dist/components/AppRowActions.js +1 -1
- package/dist/components/AppScoreScale.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionLeadCapture.js +1 -1
- package/dist/components/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppShortcutLegend.js +1 -1
- package/dist/components/AppShowMore.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppSparkline.js +1 -1
- package/dist/components/AppSpinner.js +1 -1
- package/dist/components/AppSplash.js +1 -1
- package/dist/components/AppSplitButton.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppStatusBadge.js +1 -1
- package/dist/components/AppStepper.js +1 -1
- package/dist/components/AppSwitch.js +1 -1
- package/dist/components/AppTablePagination.js +1 -1
- package/dist/components/AppTableToolbar.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppTimePicker.js +1 -1
- package/dist/components/AppTimeline.js +1 -1
- package/dist/components/AppToast.js +1 -1
- package/dist/components/AppUpdateBar.js +1 -1
- package/dist/components/AppWhatsNew.js +1 -1
- package/dist/components/AppWizard.js +1 -1
- package/dist/components/AppWorkspaceSwitcher.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/guidance.json +10 -5
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/emptyValue.js +1 -1
- package/dist/lib/fieldState.js +1 -1
- package/dist/lib/useWuiText.js +1 -0
- package/dist/types/components/AppColorField.d.ts +3 -3
- package/dist/types/components/AppDatePicker.d.ts +2 -1
- package/dist/types/components/AppDateRangePicker.d.ts +1 -1
- package/dist/types/components/AppDropdown.d.ts +6 -0
- package/dist/types/components/AppEntryGrid.d.ts +43 -1
- package/dist/types/components/AppFormulaSteps.d.ts +3 -3
- package/dist/types/components/AppInput.d.ts +4 -4
- package/dist/types/components/AppInputGroup.d.ts +1 -1
- package/dist/types/components/AppMentionInput.d.ts +2 -2
- package/dist/types/components/AppNumberInput.d.ts +9 -3
- package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
- package/dist/types/components/AppRowActions.d.ts +6 -0
- package/dist/types/components/AppSearch.d.ts +1 -1
- package/dist/types/components/AppSelect.d.ts +3 -2
- package/dist/types/components/AppTextarea.d.ts +2 -2
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/lib/emptyValue.d.ts +2 -2
- package/dist/types/lib/fieldState.d.ts +1 -0
- package/dist/types/lib/useWuiText.d.ts +3 -0
- package/dist/ui-react.js +1 -1
- package/package.json +9 -9
- package/dist/lib/unsavedText.js +0 -1
- package/dist/types/lib/unsavedText.d.ts +0 -5
package/dist/lib/FileItemRow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../components/AppIcon.js";import t from"../components/AppProgress.js";import{linkOf as n,nameOf as r,sizeLabelOf as i,uploadErrorOf as a,uploadProgressOf as o,useItemUrl as s}from"./fileItem.js";import
|
|
1
|
+
import e from"../components/AppIcon.js";import t from"../components/AppProgress.js";import{linkOf as n,nameOf as r,sizeLabelOf as i,uploadErrorOf as a,uploadProgressOf as o,useItemUrl as s}from"./fileItem.js";import{linkTarget as c}from"./linkTarget.js";import{TargetLink as l}from"./TargetLink.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{fillText as f}from"@webority/ui-elements/text";function p({item:p,isImage:m,onRemove:h,linkComponent:g,noun:_=`attachment`,removeFileLabel:v=`Remove {name}`,readOnly:y=!1}){let b=s(p,m),x=r(p),S=i(p),C=o(p),w=a(p),T=n(p),E=p instanceof File?void 0:p?.to,D=c(g,{to:E,href:T??void 0,routeHref:!1});return/* @__PURE__ */ d(`div`,{className:w?`attach-item wui-attach-failed`:`attach-item`,children:[/* @__PURE__ */ u(`span`,{className:`attach-item-media`,children:b?/* @__PURE__ */ u(`img`,{src:b,alt:x}):/* @__PURE__ */ u(e,{name:`file-text`,size:18})}),/* @__PURE__ */ d(`span`,{className:`attach-item-info`,children:[/* @__PURE__ */ u(`span`,{className:`attach-name`,children:T||E?/* @__PURE__ */ u(l,{link:D,children:x}):x}),S&&/* @__PURE__ */ u(`span`,{className:`attach-size`,children:S}),C!==null&&/* @__PURE__ */ u(t,{value:C,size:`sm`,label:`Uploading ${x}`,className:`wui-attach-progress`}),w&&/* @__PURE__ */ u(`div`,{className:`wui-attach-error`,children:w})]}),!y&&/* @__PURE__ */ u(`button`,{type:`button`,className:`attach-item-remove`,"aria-label":f(v,{name:x||_}),onClick:h,children:/* @__PURE__ */ u(e,{name:`x`,size:16})})]})}export{p as default};
|
package/dist/lib/emptyValue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{emptyValueLabel as e}from"@webority/ui-elements/helpers";var t=()=>e();function n(e){return e==null||e===``}export{t as emptyPlaceholder,n as isEmpty};
|
package/dist/lib/fieldState.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=[`sm`,`md`,`lg`],t=`wui-field-busy`;function
|
|
1
|
+
var e=[`sm`,`md`,`lg`,`xl`],t=[`sm`,`md`,`lg`],n=`wui-field-busy`;function r(e){return e?e=>e.preventDefault():void 0}export{t as BOX_SIZES,n as FIELD_BUSY_CLASS,e as FIELD_SIZES,r as blockWhenReadOnly};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useSyncExternalStore as e}from"react";import{readText as t,subscribeText as n}from"@webority/ui-elements/text";function r(r,i){return e(n,()=>t(r,i),()=>t(r,i))}export{r as default};
|
|
@@ -63,10 +63,10 @@ export interface AppColorFieldProps extends Omit<React.ComponentPropsWithoutRef<
|
|
|
63
63
|
*/
|
|
64
64
|
loading?: boolean | undefined;
|
|
65
65
|
/**
|
|
66
|
-
* Control size. sm and
|
|
66
|
+
* Control size. sm, lg and xl resize the swatch and the hex box together.
|
|
67
67
|
* @default "md"
|
|
68
68
|
*/
|
|
69
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
69
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* Applied to the hex text input, the control.
|
|
72
72
|
* @default ""
|
|
@@ -101,7 +101,7 @@ export interface AppColorFieldProps extends Omit<React.ComponentPropsWithoutRef<
|
|
|
101
101
|
* @param [props.help]
|
|
102
102
|
* @param [props.helpLabel]
|
|
103
103
|
* @param [props.colourLabel] Default "Colour".
|
|
104
|
-
* @param [props.colourPickerLabel] Default "{label}, colour picker". The {label} token is the field label.
|
|
104
|
+
* @param [props.colourPickerLabel] Default "{label}, colour picker". The {label} token is the field label when it is text, otherwise the colour word; pass this prop to name the picker when the label is markup.
|
|
105
105
|
* @param [props.optionalLabel] Default "(optional)".
|
|
106
106
|
* @param [props.name]
|
|
107
107
|
* @param [props.id]
|
|
@@ -57,7 +57,7 @@ export interface AppDatePickerProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
57
57
|
*/
|
|
58
58
|
helpLabel?: string | undefined;
|
|
59
59
|
/** Control height tier, matching AppInput. */
|
|
60
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
60
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
61
61
|
/** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it. */
|
|
62
62
|
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
63
63
|
/**
|
|
@@ -69,6 +69,7 @@ export interface AppDatePickerProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
69
69
|
id?: string | undefined;
|
|
70
70
|
/** Accessible name when there is no visible label. */
|
|
71
71
|
ariaLabel?: string | undefined;
|
|
72
|
+
"aria-invalid"?: boolean | "true" | "false" | undefined;
|
|
72
73
|
/**
|
|
73
74
|
* Classes for the wui-datepicker control itself.
|
|
74
75
|
* @default ""
|
|
@@ -77,7 +77,7 @@ export interface AppDateRangePickerProps extends Omit<React.HTMLAttributes<HTMLE
|
|
|
77
77
|
*/
|
|
78
78
|
loading?: boolean | undefined;
|
|
79
79
|
/** Control height tier, matching AppInput. */
|
|
80
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
80
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
81
81
|
/** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it. */
|
|
82
82
|
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
83
83
|
/** IANA time zone the quick ranges are resolved in, for example Asia/Kolkata or America/New_York. Unset, it is India Standard Time (Asia/Kolkata). */
|
|
@@ -8,6 +8,12 @@ export interface AppDropdownItem {
|
|
|
8
8
|
image?: string | undefined;
|
|
9
9
|
to?: string | undefined;
|
|
10
10
|
href?: string | undefined;
|
|
11
|
+
/** Where an href or to opens. Needs href or to. */
|
|
12
|
+
target?: "_blank" | "_self" | undefined;
|
|
13
|
+
/** The link's rel. Needs href or to. */
|
|
14
|
+
rel?: string | undefined;
|
|
15
|
+
/** data-* attributes written on the menu row. */
|
|
16
|
+
data?: Readonly<Record<`data-${string}`, string>> | undefined;
|
|
11
17
|
onClick?: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
12
18
|
tone?: "danger" | undefined;
|
|
13
19
|
disabled?: boolean | undefined;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { type JSX, type ReactNode } from "react";
|
|
2
|
+
import type { AppDataTablePagination, AppDataTableSort } from "./AppDataTable.tsx";
|
|
2
3
|
export type AppEntryGridRowStatus = "clean" | "dirty" | "saving" | "saved" | "failed";
|
|
3
4
|
export type AppEntryGridColumnKind = "text" | "number";
|
|
5
|
+
export type AppEntryGridPaste = {
|
|
6
|
+
rowKey: string;
|
|
7
|
+
columnKey: string;
|
|
8
|
+
rows: string[][];
|
|
9
|
+
};
|
|
4
10
|
export interface AppEntryGridColumn<Row> {
|
|
5
11
|
key: string;
|
|
6
12
|
label: ReactNode;
|
|
@@ -11,6 +17,12 @@ export interface AppEntryGridColumn<Row> {
|
|
|
11
17
|
help?: ReactNode | undefined;
|
|
12
18
|
/** Renders this column's cell of the sticky totals row. */
|
|
13
19
|
footer?: ((rows: readonly Row[]) => ReactNode) | undefined;
|
|
20
|
+
/** Makes the heading a sort control; needs the grid's onSort. The page owns the order of the rows. */
|
|
21
|
+
sortable?: boolean | undefined;
|
|
22
|
+
/** Adjacent columns with the same group share one heading over them. */
|
|
23
|
+
group?: string | undefined;
|
|
24
|
+
/** "start" keeps the column in view while the grid scrolls sideways. Only the first column can be pinned. */
|
|
25
|
+
pin?: "start" | undefined;
|
|
14
26
|
}
|
|
15
27
|
export interface AppEntryGridProps<Row> {
|
|
16
28
|
/** The columns, left to right, each with a key and a label, plus optional kind, width and help. */
|
|
@@ -28,9 +40,33 @@ export interface AppEntryGridProps<Row> {
|
|
|
28
40
|
onCommitRow?: ((row: Row, move: "next" | "stay") => void) | undefined;
|
|
29
41
|
onDiscardRow?: ((row: Row) => void) | undefined;
|
|
30
42
|
onAddRow?: (() => void) | undefined;
|
|
43
|
+
/** The sorted column's key and direction; that column's heading announces it. */
|
|
44
|
+
sort?: AppDataTableSort | null | undefined;
|
|
45
|
+
/** Called with the column key when a sortable heading is clicked or activated by Enter or Space; the page sorts. */
|
|
46
|
+
onSort?: ((columnKey: string) => void) | undefined;
|
|
47
|
+
/** Called when a block of several cells is pasted, with the cell it was pasted into and the cells as rows of text. */
|
|
48
|
+
onPasteRows?: ((paste: AppEntryGridPaste) => void) | undefined;
|
|
49
|
+
/** Shows the remove key in the legend and calls this with the row key on Ctrl+Delete or Meta+Backspace. */
|
|
50
|
+
onRemoveRow?: ((rowKey: string) => void) | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Draws placeholder rows instead of the lines while they load.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
loading?: boolean | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* How many placeholder rows loading draws; a whole number of 1 or more.
|
|
58
|
+
* @default 3
|
|
59
|
+
*/
|
|
60
|
+
skeletonRows?: number | undefined;
|
|
61
|
+
/** Replaces the emptyLabel sentence when there are no rows, for a title, text and an action. Giving both is refused. */
|
|
62
|
+
emptyContent?: ReactNode | undefined;
|
|
63
|
+
/** The data-* attributes of a row's element; any other name, and data-row-key, is refused. */
|
|
64
|
+
rowProps?: ((row: Row) => Record<`data-${string}`, string>) | undefined;
|
|
65
|
+
/** The pager state, as AppDataTable takes it; draws the pager inside the grid frame under the table. */
|
|
66
|
+
pagination?: AppDataTablePagination | undefined;
|
|
31
67
|
renderRowDetail?: ((row: Row) => ReactNode) | undefined;
|
|
32
68
|
/**
|
|
33
|
-
* Shows the keyboard legend under the grid.
|
|
69
|
+
* Shows the keyboard legend under the grid. The Enter and Ctrl+S entries show only with onCommitRow.
|
|
34
70
|
* @default true
|
|
35
71
|
*/
|
|
36
72
|
hint?: boolean | undefined;
|
|
@@ -94,6 +130,11 @@ export interface AppEntryGridProps<Row> {
|
|
|
94
130
|
* @default "Move between lines"
|
|
95
131
|
*/
|
|
96
132
|
moveLabel?: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The keyboard legend for Ctrl and Delete; shown only with onRemoveRow.
|
|
135
|
+
* @default "Remove line"
|
|
136
|
+
*/
|
|
137
|
+
removeLineLabel?: string | undefined;
|
|
97
138
|
/**
|
|
98
139
|
* Extra class names added to the grid's root element.
|
|
99
140
|
* @default ""
|
|
@@ -109,6 +150,7 @@ export interface AppEntryGridProps<Row> {
|
|
|
109
150
|
* Ctrl+S / Meta+S save and stay on the row
|
|
110
151
|
* Esc discard the row's changes (not while a list is open: that closes the list)
|
|
111
152
|
* Ctrl+Up / Down move to the previous or next row
|
|
153
|
+
* Ctrl+Delete remove the row (Meta+Backspace on a Mac); only with `onRemoveRow`
|
|
112
154
|
* Tab native order, field by field; never intercepted
|
|
113
155
|
*
|
|
114
156
|
* The grid reports intent and never moves on its own: after `onCommitRow(row, "next")` the caller
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef, JSX } from "react";
|
|
1
|
+
import type { ComponentPropsWithoutRef, JSX, ReactNode } from "react";
|
|
2
2
|
export type AppFormulaSign = "plus" | "minus" | "times" | "divide" | "equal";
|
|
3
3
|
export interface AppFormulaStep {
|
|
4
4
|
key?: string | undefined;
|
|
@@ -6,7 +6,7 @@ export interface AppFormulaStep {
|
|
|
6
6
|
sign?: AppFormulaSign | undefined;
|
|
7
7
|
label: string;
|
|
8
8
|
/** The working in words and numbers, such as "0.1% of ₹10,00,000.00, rounded to the rupee". */
|
|
9
|
-
working?:
|
|
9
|
+
working?: ReactNode | undefined;
|
|
10
10
|
/** The line's figure, already formatted. */
|
|
11
11
|
result: string;
|
|
12
12
|
note?: string | undefined;
|
|
@@ -16,7 +16,7 @@ export interface AppFormulaStepsProps extends ComponentPropsWithoutRef<"ol"> {
|
|
|
16
16
|
* The lines of the calculation, top to bottom. The first line has no sign; each later line names its operator.
|
|
17
17
|
* @default []
|
|
18
18
|
*/
|
|
19
|
-
steps?: AppFormulaStep[] | undefined;
|
|
19
|
+
steps?: readonly AppFormulaStep[] | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* The accessible name of the list.
|
|
22
22
|
* @default "Calculation"
|
|
@@ -52,10 +52,10 @@ export interface AppInputProps extends Omit<React.ComponentPropsWithoutRef<"inpu
|
|
|
52
52
|
*/
|
|
53
53
|
type?: string | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* The control size: sm, md and
|
|
55
|
+
* The control size: sm, md, lg and xl are 35, 40, 45 and 50px. Md is the default.
|
|
56
56
|
* @default "md"
|
|
57
57
|
*/
|
|
58
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
58
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
59
59
|
/** A leading icon, given as a semantic icon name. */
|
|
60
60
|
leftIcon?: string | undefined;
|
|
61
61
|
/** A trailing icon button, given as a semantic icon name. It calls onRightIconClick when pressed. */
|
|
@@ -151,8 +151,8 @@ export interface AppInputProps extends Omit<React.ComponentPropsWithoutRef<"inpu
|
|
|
151
151
|
* @default "off"
|
|
152
152
|
*/
|
|
153
153
|
floatingLabel?: "off" | "border" | "above" | undefined;
|
|
154
|
-
/**
|
|
155
|
-
variant?: "bare" | undefined;
|
|
154
|
+
/** Bare drops the border and the fill, for inline editing. Underline keeps only a line under the field, which takes the same hover and focus colours as the boxed field. */
|
|
155
|
+
variant?: "bare" | "underline" | undefined;
|
|
156
156
|
/**
|
|
157
157
|
* Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.
|
|
158
158
|
* @default false
|
|
@@ -19,7 +19,7 @@ export interface AppInputGroupProps {
|
|
|
19
19
|
* Height of text add-ons; set the same size on the field and on button add-ons.
|
|
20
20
|
* @default "md"
|
|
21
21
|
*/
|
|
22
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
22
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Extra class on the root.
|
|
25
25
|
* @default ""
|
|
@@ -56,10 +56,10 @@ export interface AppMentionInputProps extends Omit<React.HTMLAttributes<HTMLElem
|
|
|
56
56
|
*/
|
|
57
57
|
loading?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
|
-
* The control size: sm, md or
|
|
59
|
+
* The control size: sm, md, lg or xl.
|
|
60
60
|
* @default "md"
|
|
61
61
|
*/
|
|
62
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
62
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
63
63
|
/** The starting value of an uncontrolled field. */
|
|
64
64
|
defaultValue?: string | undefined;
|
|
65
65
|
/** Posts the stored value under this name in a form. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
declare const SIZES: readonly ["sm", "md", "lg"];
|
|
2
|
+
declare const SIZES: readonly ["sm", "md", "lg", "xl"];
|
|
3
3
|
declare const GROUPINGS: readonly ["none", "indian"];
|
|
4
4
|
export type AppNumberInputSize = (typeof SIZES)[number];
|
|
5
5
|
export type AppNumberInputGrouping = (typeof GROUPINGS)[number];
|
|
@@ -68,7 +68,7 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
68
68
|
/** A unit suffix shown inside the field after the input, such as kg or %. */
|
|
69
69
|
unit?: string | undefined;
|
|
70
70
|
/**
|
|
71
|
-
* Control size: sm, md or
|
|
71
|
+
* Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.
|
|
72
72
|
* @default "md"
|
|
73
73
|
*/
|
|
74
74
|
size?: AppNumberInputSize | undefined;
|
|
@@ -101,6 +101,11 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
101
101
|
* @default false
|
|
102
102
|
*/
|
|
103
103
|
loading?: boolean | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
controlOnly?: boolean | undefined;
|
|
104
109
|
/** The starting value of an uncontrolled field. */
|
|
105
110
|
defaultValue?: number | null | undefined;
|
|
106
111
|
[attribute: `data-${string}`]: unknown;
|
|
@@ -119,7 +124,8 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
119
124
|
* - Displays as a text input (inputmode decimal when precision > 0, numeric otherwise)
|
|
120
125
|
* - Stepper buttons (−/+) increment/decrement by step, clamped to min/max
|
|
121
126
|
* - Typing free text: emits parsed number on change; null on blur if unparsable or empty
|
|
122
|
-
* - Keyboard ArrowUp/ArrowDown increment/decrement (respects step and bounds)
|
|
127
|
+
* - Keyboard ArrowUp/ArrowDown increment/decrement (respects step and bounds); with Ctrl, Meta or Alt held the keys go to the page
|
|
128
|
+
* - Emptying the text reports null at once; other unparsable text reports null on blur
|
|
123
129
|
* - Rounding to the specified precision
|
|
124
130
|
* - Buttons disabled at min/max or when the control is disabled
|
|
125
131
|
*/
|
|
@@ -76,7 +76,7 @@ export interface AppPhoneNumberInputProps extends Omit<React.HTMLAttributes<HTML
|
|
|
76
76
|
* The control height.
|
|
77
77
|
* @default "md"
|
|
78
78
|
*/
|
|
79
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
79
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
80
80
|
/**
|
|
81
81
|
* Extra classes on the field wrapper.
|
|
82
82
|
* @default ""
|
|
@@ -13,6 +13,12 @@ export interface AppRowAction {
|
|
|
13
13
|
href?: string | undefined;
|
|
14
14
|
/** An in-app route, drawn through linkComponent when one is given. */
|
|
15
15
|
to?: string | undefined;
|
|
16
|
+
/** Where an href or to opens. Needs href or to. */
|
|
17
|
+
target?: "_blank" | "_self" | undefined;
|
|
18
|
+
/** The link's rel. Needs href or to. */
|
|
19
|
+
rel?: string | undefined;
|
|
20
|
+
/** data-* attributes written on the control (the icon button or button and the menu row). */
|
|
21
|
+
data?: Readonly<Record<`data-${string}`, string>> | undefined;
|
|
16
22
|
/** Runs on a click; may accompany href or to. An action needs onClick, href or to unless it is disabled. */
|
|
17
23
|
onClick?: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
18
24
|
/** danger marks a destructive action. */
|
|
@@ -25,7 +25,7 @@ export interface AppSearchProps extends Omit<ComponentPropsWithoutRef<"input">,
|
|
|
25
25
|
/** The size in pixels of the leading magnifier. It is 18 when left out. */
|
|
26
26
|
iconSize?: number | undefined;
|
|
27
27
|
/** Control size around the default. */
|
|
28
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
28
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Swap the leading glyph for a spinner while a search is in flight.
|
|
31
31
|
* @default false
|
|
@@ -28,10 +28,10 @@ interface AppSelectBaseProps {
|
|
|
28
28
|
*/
|
|
29
29
|
density?: "comfortable" | "compact" | undefined;
|
|
30
30
|
/**
|
|
31
|
-
* Control size: sm, md or
|
|
31
|
+
* Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.
|
|
32
32
|
* @default "md"
|
|
33
33
|
*/
|
|
34
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The choices. A label may be a node, such as CO2 with a subscript: it renders as static markup, and search and the option's accessible name use its text. In tag mode these are the suggestions.
|
|
37
37
|
* @default []
|
|
@@ -243,6 +243,7 @@ interface AppSelectBaseProps {
|
|
|
243
243
|
"aria-label"?: string | undefined;
|
|
244
244
|
"aria-labelledby"?: string | undefined;
|
|
245
245
|
"aria-describedby"?: string | undefined;
|
|
246
|
+
"aria-invalid"?: boolean | "true" | "false" | undefined;
|
|
246
247
|
/** Passed to the element. */
|
|
247
248
|
autoComplete?: string | undefined;
|
|
248
249
|
/** Focuses the control on mount. */
|
|
@@ -39,10 +39,10 @@ export interface AppTextareaProps extends ComponentPropsWithoutRef<"textarea"> {
|
|
|
39
39
|
*/
|
|
40
40
|
loading?: boolean | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* The control size: sm, md or
|
|
42
|
+
* The control size: sm, md, lg or xl.
|
|
43
43
|
* @default "md"
|
|
44
44
|
*/
|
|
45
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
45
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* A class added to the control.
|
|
48
48
|
* @default ""
|
|
@@ -64,7 +64,7 @@ export interface AppTimePickerProps extends Omit<ComponentPropsWithoutRef<"div">
|
|
|
64
64
|
*/
|
|
65
65
|
loading?: boolean | undefined;
|
|
66
66
|
/** The control height tier, matching AppInput; leave unset for the default height. */
|
|
67
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
67
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
68
68
|
/** The control's id. A generated id is used when this is unset. */
|
|
69
69
|
id?: string | undefined;
|
|
70
70
|
/** The accessible name of the control. When unset, a text label names it. */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export type { AppDropZoneMultipleProps, AppDropZoneProps, AppDropZoneSingleProps
|
|
|
50
50
|
export { default as AppDropZone } from "./components/AppDropZone.tsx";
|
|
51
51
|
export { default as AppDueDate } from "./components/AppDueDate.tsx";
|
|
52
52
|
export { default as AppEmptyState } from "./components/AppEmptyState.tsx";
|
|
53
|
-
export type { AppEntryGridColumn, AppEntryGridColumnKind, AppEntryGridProps, AppEntryGridRowStatus, } from "./components/AppEntryGrid.tsx";
|
|
53
|
+
export type { AppEntryGridColumn, AppEntryGridColumnKind, AppEntryGridPaste, AppEntryGridProps, AppEntryGridRowStatus, } from "./components/AppEntryGrid.tsx";
|
|
54
54
|
export { default as AppEntryGrid } from "./components/AppEntryGrid.tsx";
|
|
55
55
|
export { default as AppErrorBoundary } from "./components/AppErrorBoundary.tsx";
|
|
56
56
|
export { default as AppErrorSummary } from "./components/AppErrorSummary.tsx";
|
|
@@ -166,6 +166,7 @@ export { default as assertValidValue } from "./components/assertValidValue.ts";
|
|
|
166
166
|
export { MODAL_ICONS } from "./components/ModalIcons.tsx";
|
|
167
167
|
export type { WuiCustomProperties } from "./reactAugmentations.ts";
|
|
168
168
|
export type Tone = "primary" | "info" | "success" | "warning" | "danger" | "neutral";
|
|
169
|
+
export { setWuiText, type WuiText } from "@webority/ui-elements/text";
|
|
169
170
|
export type { AppAlertTone } from "./components/AppAlert.tsx";
|
|
170
171
|
export type { ConfirmTone } from "./components/AppConfirmDialog.tsx";
|
|
171
172
|
export type { AppDataTableColumn, AppDataTablePagination, AppDataTableSort } from "./components/AppDataTable.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** The house placeholder for an empty value
|
|
2
|
-
export declare const
|
|
1
|
+
/** The house placeholder for an empty value, read from the text bundle (a plain hyphen by default). */
|
|
2
|
+
export declare const emptyPlaceholder: () => string;
|
|
3
3
|
/**
|
|
4
4
|
* Check if a value is considered empty (null, undefined, or empty string).
|
|
5
5
|
*/
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type WuiTextCatalogue } from "@webority/ui-elements/text";
|
|
2
|
+
/** A component's text group, re-read when the product's bundle changes. */
|
|
3
|
+
export default function useWuiText<Group extends Readonly<Record<string, string>>>(component: keyof WuiTextCatalogue, english: Group): Group;
|
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/AppEntryGrid.js";import X from"./components/AppErrorBoundary.js";import Z from"./components/AppErrorSummary.js";import Q from"./components/AppFileAttachment.js";import $ from"./components/AppFilePicker.js";import ee from"./components/AppFileTiles.js";import te from"./components/AppFileViewer.js";import ne from"./components/AppFilterBar.js";import re from"./components/AppFloatingButton.js";import ie from"./components/AppFloatingDock.js";import ae,{useFormSubmit as oe}from"./components/AppForm.js";import se from"./components/AppFormActions.js";import ce from"./components/AppFormRow.js";import le from"./components/AppFormSection.js";import ue from"./components/AppFormulaSteps.js";import de from"./components/AppHoverCard.js";import fe,{iconNames as pe,registerIcons as me}from"./components/AppIcon.js";import he from"./components/AppImagePicker.js";import ge from"./components/AppInfoTip.js";import _e from"./components/AppInlineEdit.js";import ve from"./components/AppInput.js";import ye from"./components/AppInputGroup.js";import be from"./components/AppKanban.js";import xe from"./components/AppKbd.js";import Se from"./components/AppKpiTile.js";import Ce from"./components/AppLeadPopup.js";import we from"./components/AppLightbox.js";import Te from"./components/AppLink.js";import Ee from"./components/AppMarkdown.js";import De from"./components/AppMentionInput.js";import Oe from"./components/AppMeter.js";import ke from"./components/AppMetricStrip.js";import Ae from"./components/AppModal.js";import je from"./components/AppNavigationMenu.js";import Me from"./components/AppNavList.js";import Ne from"./components/AppNotificationCenter.js";import Pe from"./components/AppNumberInput.js";import Fe from"./components/AppOnboardingChecklist.js";import Ie from"./components/AppOrgTree.js";import Le from"./components/AppOtpInput.js";import Re from"./components/AppPageHeader.js";import ze from"./components/AppPhoneNumberInput.js";import Be from"./components/AppPopover.js";import Ve from"./components/AppPricingCard.js";import He from"./components/AppProgress.js";import Ue from"./components/AppQrCode.js";import We from"./components/AppRadio.js";import Ge from"./components/AppRadioGroup.js";import Ke from"./components/AppRating.js";import qe from"./components/AppRecordPager.js";import Je from"./components/AppRelativeTime.js";import Ye from"./components/AppRepeater.js";import Xe from"./components/AppRequiredMark.js";import Ze from"./components/AppResourceCard.js";import Qe from"./components/AppResult.js";import $e from"./components/AppRichText.js";import et from"./components/AppRouteError.js";import tt from"./components/AppRowActions.js";import nt from"./components/AppScoreScale.js";import rt from"./components/AppScrollbar.js";import it from"./components/AppSearch.js";import at from"./components/AppSectionCallToAction.js";import ot from"./components/AppSectionFaq.js";import st from"./components/AppSectionFeatures.js";import ct from"./components/AppSectionHero.js";import lt from"./components/AppSectionLeadCapture.js";import ut from"./components/AppSectionLogos.js";import dt from"./components/AppSectionPricing.js";import ft from"./components/AppSectionTestimonials.js";import pt from"./components/AppSegmented.js";import mt from"./components/AppSelect.js";import ht from"./components/AppSeoHead.js";import gt from"./components/AppShell.js";import _t from"./components/AppShortcutLegend.js";import vt from"./components/AppShowMore.js";import yt,{AppSkeletonRows as bt}from"./components/AppSkeleton.js";import xt from"./components/AppSkeletonLines.js";import St from"./components/AppSlider.js";import Ct from"./components/AppSortableList.js";import wt from"./components/AppSparkline.js";import Tt from"./components/AppSpinner.js";import Et from"./components/AppSplash.js";import Dt from"./components/AppSplitButton.js";import Ot from"./components/AppSplitView.js";import kt from"./components/AppStatusBadge.js";import At from"./components/AppStepper.js";import jt from"./components/AppSwitch.js";import Mt from"./components/AppTablePagination.js";import Nt from"./components/AppTableToolbar.js";import Pt from"./components/AppTabs.js";import Ft from"./components/AppTextarea.js";import It from"./components/AppThemeToggle.js";import Lt from"./components/AppTimeline.js";import Rt from"./components/AppTimePicker.js";import zt from"./components/AppToast.js";import Bt from"./components/AppToolbar.js";import Vt from"./components/AppTooltip.js";import Ht from"./components/AppTour.js";import Ut from"./components/AppTreeView.js";import Wt from"./components/AppTruncate.js";import Gt from"./components/AppUpdateBar.js";import Kt from"./components/AppWhatsNew.js";import qt from"./components/AppWizard.js";import Jt from"./components/AppWorkspaceSwitcher.js";import Yt from"./components/assertValidValue.js";import{MODAL_ICONS as Xt}from"./components/ModalIcons.js";import{dismissAll as Zt,errorToast as Qt,toast as $t}from"./components/toast.js";import{useCommandPaletteShortcut as en}from"./lib/useCommandPaletteShortcut.js";import{useFloatingStack as tn}from"./lib/useFloatingStack.js";import{useListShortcuts as nn}from"./lib/useListShortcuts.js";import{usePagination as rn}from"./lib/usePagination.js";import{useTableView as an}from"./lib/useTableView.js";import{createLocalSeenStore as on,isImeSafeEnter as sn,mentionedIds as cn,parseMentionValue as ln,postedMasked as un,themeBootScript as dn,wireTooltips as fn}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 AppEntryGrid,X as AppErrorBoundary,Z as AppErrorSummary,Q as AppFileAttachment,$ as AppFilePicker,ee as AppFileTiles,te as AppFileViewer,ne as AppFilterBar,re as AppFloatingButton,ie as AppFloatingDock,ae as AppForm,se as AppFormActions,ce as AppFormRow,le as AppFormSection,ue as AppFormulaSteps,de as AppHoverCard,fe as AppIcon,he as AppImagePicker,ge as AppInfoTip,_e as AppInlineEdit,ve as AppInput,ye as AppInputGroup,be as AppKanban,xe as AppKbd,Se as AppKpiTile,Ce as AppLeadPopup,we as AppLightbox,Te as AppLink,Ee as AppMarkdown,De as AppMentionInput,Oe as AppMeter,ke as AppMetricStrip,Ae as AppModal,Me as AppNavList,je as AppNavigationMenu,Ne as AppNotificationCenter,Pe as AppNumberInput,Fe as AppOnboardingChecklist,Ie as AppOrgTree,Le as AppOtpInput,Re as AppPageHeader,ze as AppPhoneNumberInput,Be as AppPopover,Ve as AppPricingCard,He as AppProgress,Ue as AppQrCode,We as AppRadio,Ge as AppRadioGroup,Ke as AppRating,qe as AppRecordPager,Je as AppRelativeTime,Ye as AppRepeater,Xe as AppRequiredMark,Ze as AppResourceCard,Qe as AppResult,$e as AppRichText,et as AppRouteError,tt as AppRowActions,nt as AppScoreScale,rt as AppScrollbar,it as AppSearch,at as AppSectionCallToAction,ot as AppSectionFaq,st as AppSectionFeatures,ct as AppSectionHero,lt as AppSectionLeadCapture,ut as AppSectionLogos,dt as AppSectionPricing,ft as AppSectionTestimonials,pt as AppSegmented,mt as AppSelect,ht as AppSeoHead,gt as AppShell,_t as AppShortcutLegend,vt as AppShowMore,yt as AppSkeleton,xt as AppSkeletonLines,bt as AppSkeletonRows,St as AppSlider,Ct as AppSortableList,wt as AppSparkline,Tt as AppSpinner,Et as AppSplash,Dt as AppSplitButton,Ot as AppSplitView,kt as AppStatusBadge,At as AppStepper,jt as AppSwitch,Mt as AppTablePagination,Nt as AppTableToolbar,Pt as AppTabs,Ft as AppTextarea,It as AppThemeToggle,Rt as AppTimePicker,Lt as AppTimeline,zt as AppToast,Bt as AppToolbar,Vt as AppTooltip,Ht as AppTour,Ut as AppTreeView,Wt as AppTruncate,Gt as AppUpdateBar,Kt as AppWhatsNew,qt as AppWizard,Jt as AppWorkspaceSwitcher,Xt as MODAL_ICONS,Yt as assertValidValue,on as createLocalSeenStore,Zt as dismissAll,Qt as errorToast,pe as iconNames,sn as isImeSafeEnter,cn as mentionedIds,ln as parseMentionValue,un as postedMasked,me as registerIcons,dn as themeBootScript,$t as toast,en as useCommandPaletteShortcut,M as useConfirm,tn as useFloatingStack,oe as useFormSubmit,nn as useListShortcuts,rn as usePagination,an as useTableView,fn as wireTooltips};
|
|
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/AppEntryGrid.js";import X from"./components/AppErrorBoundary.js";import Z from"./components/AppErrorSummary.js";import Q from"./components/AppFileAttachment.js";import $ from"./components/AppFilePicker.js";import ee from"./components/AppFileTiles.js";import te from"./components/AppFileViewer.js";import ne from"./components/AppFilterBar.js";import re from"./components/AppFloatingButton.js";import ie from"./components/AppFloatingDock.js";import ae,{useFormSubmit as oe}from"./components/AppForm.js";import se from"./components/AppFormActions.js";import ce from"./components/AppFormRow.js";import le from"./components/AppFormSection.js";import ue from"./components/AppFormulaSteps.js";import de from"./components/AppHoverCard.js";import fe,{iconNames as pe,registerIcons as me}from"./components/AppIcon.js";import he from"./components/AppImagePicker.js";import ge from"./components/AppInfoTip.js";import _e from"./components/AppInlineEdit.js";import ve from"./components/AppInput.js";import ye from"./components/AppInputGroup.js";import be from"./components/AppKanban.js";import xe from"./components/AppKbd.js";import Se from"./components/AppKpiTile.js";import Ce from"./components/AppLeadPopup.js";import we from"./components/AppLightbox.js";import Te from"./components/AppLink.js";import Ee from"./components/AppMarkdown.js";import De from"./components/AppMentionInput.js";import Oe from"./components/AppMeter.js";import ke from"./components/AppMetricStrip.js";import Ae from"./components/AppModal.js";import je from"./components/AppNavigationMenu.js";import Me from"./components/AppNavList.js";import Ne from"./components/AppNotificationCenter.js";import Pe from"./components/AppNumberInput.js";import Fe from"./components/AppOnboardingChecklist.js";import Ie from"./components/AppOrgTree.js";import Le from"./components/AppOtpInput.js";import Re from"./components/AppPageHeader.js";import ze from"./components/AppPhoneNumberInput.js";import Be from"./components/AppPopover.js";import Ve from"./components/AppPricingCard.js";import He from"./components/AppProgress.js";import Ue from"./components/AppQrCode.js";import We from"./components/AppRadio.js";import Ge from"./components/AppRadioGroup.js";import Ke from"./components/AppRating.js";import qe from"./components/AppRecordPager.js";import Je from"./components/AppRelativeTime.js";import Ye from"./components/AppRepeater.js";import Xe from"./components/AppRequiredMark.js";import Ze from"./components/AppResourceCard.js";import Qe from"./components/AppResult.js";import $e from"./components/AppRichText.js";import et from"./components/AppRouteError.js";import tt from"./components/AppRowActions.js";import nt from"./components/AppScoreScale.js";import rt from"./components/AppScrollbar.js";import it from"./components/AppSearch.js";import at from"./components/AppSectionCallToAction.js";import ot from"./components/AppSectionFaq.js";import st from"./components/AppSectionFeatures.js";import ct from"./components/AppSectionHero.js";import lt from"./components/AppSectionLeadCapture.js";import ut from"./components/AppSectionLogos.js";import dt from"./components/AppSectionPricing.js";import ft from"./components/AppSectionTestimonials.js";import pt from"./components/AppSegmented.js";import mt from"./components/AppSelect.js";import ht from"./components/AppSeoHead.js";import gt from"./components/AppShell.js";import _t from"./components/AppShortcutLegend.js";import vt from"./components/AppShowMore.js";import yt,{AppSkeletonRows as bt}from"./components/AppSkeleton.js";import xt from"./components/AppSkeletonLines.js";import St from"./components/AppSlider.js";import Ct from"./components/AppSortableList.js";import wt from"./components/AppSparkline.js";import Tt from"./components/AppSpinner.js";import Et from"./components/AppSplash.js";import Dt from"./components/AppSplitButton.js";import Ot from"./components/AppSplitView.js";import kt from"./components/AppStatusBadge.js";import At from"./components/AppStepper.js";import jt from"./components/AppSwitch.js";import Mt from"./components/AppTablePagination.js";import Nt from"./components/AppTableToolbar.js";import Pt from"./components/AppTabs.js";import Ft from"./components/AppTextarea.js";import It from"./components/AppThemeToggle.js";import Lt from"./components/AppTimeline.js";import Rt from"./components/AppTimePicker.js";import zt from"./components/AppToast.js";import Bt from"./components/AppToolbar.js";import Vt from"./components/AppTooltip.js";import Ht from"./components/AppTour.js";import Ut from"./components/AppTreeView.js";import Wt from"./components/AppTruncate.js";import Gt from"./components/AppUpdateBar.js";import Kt from"./components/AppWhatsNew.js";import qt from"./components/AppWizard.js";import Jt from"./components/AppWorkspaceSwitcher.js";import Yt from"./components/assertValidValue.js";import{MODAL_ICONS as Xt}from"./components/ModalIcons.js";import{dismissAll as Zt,errorToast as Qt,toast as $t}from"./components/toast.js";import{useCommandPaletteShortcut as en}from"./lib/useCommandPaletteShortcut.js";import{useFloatingStack as tn}from"./lib/useFloatingStack.js";import{useListShortcuts as nn}from"./lib/useListShortcuts.js";import{usePagination as rn}from"./lib/usePagination.js";import{useTableView as an}from"./lib/useTableView.js";import{createLocalSeenStore as on,isImeSafeEnter as sn,mentionedIds as cn,parseMentionValue as ln,postedMasked as un,themeBootScript as dn,wireTooltips as fn}from"@webority/ui-elements/helpers";import{setWuiText as pn}from"@webority/ui-elements/text";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 AppEntryGrid,X as AppErrorBoundary,Z as AppErrorSummary,Q as AppFileAttachment,$ as AppFilePicker,ee as AppFileTiles,te as AppFileViewer,ne as AppFilterBar,re as AppFloatingButton,ie as AppFloatingDock,ae as AppForm,se as AppFormActions,ce as AppFormRow,le as AppFormSection,ue as AppFormulaSteps,de as AppHoverCard,fe as AppIcon,he as AppImagePicker,ge as AppInfoTip,_e as AppInlineEdit,ve as AppInput,ye as AppInputGroup,be as AppKanban,xe as AppKbd,Se as AppKpiTile,Ce as AppLeadPopup,we as AppLightbox,Te as AppLink,Ee as AppMarkdown,De as AppMentionInput,Oe as AppMeter,ke as AppMetricStrip,Ae as AppModal,Me as AppNavList,je as AppNavigationMenu,Ne as AppNotificationCenter,Pe as AppNumberInput,Fe as AppOnboardingChecklist,Ie as AppOrgTree,Le as AppOtpInput,Re as AppPageHeader,ze as AppPhoneNumberInput,Be as AppPopover,Ve as AppPricingCard,He as AppProgress,Ue as AppQrCode,We as AppRadio,Ge as AppRadioGroup,Ke as AppRating,qe as AppRecordPager,Je as AppRelativeTime,Ye as AppRepeater,Xe as AppRequiredMark,Ze as AppResourceCard,Qe as AppResult,$e as AppRichText,et as AppRouteError,tt as AppRowActions,nt as AppScoreScale,rt as AppScrollbar,it as AppSearch,at as AppSectionCallToAction,ot as AppSectionFaq,st as AppSectionFeatures,ct as AppSectionHero,lt as AppSectionLeadCapture,ut as AppSectionLogos,dt as AppSectionPricing,ft as AppSectionTestimonials,pt as AppSegmented,mt as AppSelect,ht as AppSeoHead,gt as AppShell,_t as AppShortcutLegend,vt as AppShowMore,yt as AppSkeleton,xt as AppSkeletonLines,bt as AppSkeletonRows,St as AppSlider,Ct as AppSortableList,wt as AppSparkline,Tt as AppSpinner,Et as AppSplash,Dt as AppSplitButton,Ot as AppSplitView,kt as AppStatusBadge,At as AppStepper,jt as AppSwitch,Mt as AppTablePagination,Nt as AppTableToolbar,Pt as AppTabs,Ft as AppTextarea,It as AppThemeToggle,Rt as AppTimePicker,Lt as AppTimeline,zt as AppToast,Bt as AppToolbar,Vt as AppTooltip,Ht as AppTour,Ut as AppTreeView,Wt as AppTruncate,Gt as AppUpdateBar,Kt as AppWhatsNew,qt as AppWizard,Jt as AppWorkspaceSwitcher,Xt as MODAL_ICONS,Yt as assertValidValue,on as createLocalSeenStore,Zt as dismissAll,Qt as errorToast,pe as iconNames,sn as isImeSafeEnter,cn as mentionedIds,ln as parseMentionValue,un as postedMasked,me as registerIcons,pn as setWuiText,dn as themeBootScript,$t as toast,en as useCommandPaletteShortcut,M as useConfirm,tn as useFloatingStack,oe as useFormSubmit,nn as useListShortcuts,rn as usePagination,an as useTableView,fn as wireTooltips};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.168.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",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"sideEffects": false,
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@webority/markdown-core": "0.
|
|
37
|
-
"@webority/theme": "0.
|
|
38
|
-
"@webority/ui-elements": "0.
|
|
39
|
-
"@webority/web-core": "0.
|
|
36
|
+
"@webority/markdown-core": "0.168.0",
|
|
37
|
+
"@webority/theme": "0.168.0",
|
|
38
|
+
"@webority/ui-elements": "0.168.0",
|
|
39
|
+
"@webority/web-core": "0.168.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@webority/analytics": "^0.40.0",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"@types/react-dom": "^19.3.0",
|
|
62
62
|
"@vitejs/plugin-react": "^6.0.1",
|
|
63
63
|
"@vitest/coverage-v8": "5.1.0",
|
|
64
|
-
"@webority/analytics": "0.40.
|
|
65
|
-
"@webority/canvas-kit": "0.
|
|
66
|
-
"@webority/biome-config": "0.
|
|
67
|
-
"@webority/tokens": "0.
|
|
64
|
+
"@webority/analytics": "0.40.8",
|
|
65
|
+
"@webority/canvas-kit": "0.168.0",
|
|
66
|
+
"@webority/biome-config": "0.168.0",
|
|
67
|
+
"@webority/tokens": "0.168.0",
|
|
68
68
|
"bootstrap": "5.3.9",
|
|
69
69
|
"jsdom": "30.1.1",
|
|
70
70
|
"react": "^19.3.1",
|
package/dist/lib/unsavedText.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.freeze({title:`Leave without saving?`,message:`Your changes on this page are not saved. If you leave now, they are lost.`,leaveLabel:`Leave`});export{e as UNSAVED_TEXT};
|