@webority/ui-react 0.88.1 → 0.89.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.css +0 -0
- package/dist/canvas-kit/kit.js +155261 -0
- package/dist/canvas-kit/manifest.json +26177 -0
- package/dist/canvas-kit/release.json +25 -0
- package/dist/components/AppAutocomplete.js +1 -1
- package/dist/components/AppAvatarPicker.js +1 -1
- package/dist/components/AppChipGroup.js +1 -1
- package/dist/components/AppColorField.js +1 -1
- package/dist/components/AppCommandPalette.js +1 -1
- package/dist/components/AppCountrySelect.js +1 -1
- package/dist/components/AppDatePicker.js +1 -1
- package/dist/components/AppDateRangePicker.js +1 -1
- package/dist/components/AppDropZone.js +1 -1
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppIcon.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppLogoPicker.js +1 -1
- package/dist/components/AppMentionInput.js +1 -1
- package/dist/components/AppMeter.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppMultiSelect.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppOtpInput.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppProgress.js +1 -1
- package/dist/components/AppRadioGroup.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppSidebarMenu.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTagInput.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppTimePicker.js +1 -1
- package/dist/guidance.json +9623 -0
- package/dist/lib/wuiMarker.js +1 -1
- package/dist/types/components/AppAccordion.d.ts +14 -4
- package/dist/types/components/AppActionIcon.d.ts +40 -15
- package/dist/types/components/AppAlert.d.ts +50 -17
- package/dist/types/components/AppAsyncBlock.d.ts +19 -9
- package/dist/types/components/AppAutocomplete.d.ts +36 -0
- package/dist/types/components/AppAvatar.d.ts +48 -12
- package/dist/types/components/AppAvatarGroup.d.ts +14 -4
- package/dist/types/components/AppAvatarPicker.d.ts +50 -19
- package/dist/types/components/AppBadge.d.ts +14 -3
- package/dist/types/components/AppBanner.d.ts +13 -3
- package/dist/types/components/AppBreadcrumbs.d.ts +3 -3
- package/dist/types/components/AppButton.d.ts +72 -20
- package/dist/types/components/AppButtonGroup.d.ts +18 -4
- package/dist/types/components/AppCalendar.d.ts +13 -0
- package/dist/types/components/AppCard.d.ts +60 -21
- package/dist/types/components/AppCarousel.d.ts +56 -14
- package/dist/types/components/AppChart.d.ts +38 -0
- package/dist/types/components/AppChartCard.d.ts +13 -5
- package/dist/types/components/AppCheckbox.d.ts +9 -0
- package/dist/types/components/AppChip.d.ts +29 -10
- package/dist/types/components/AppChipGroup.d.ts +16 -3
- package/dist/types/components/AppChoiceCard.d.ts +55 -14
- package/dist/types/components/AppChoiceChip.d.ts +26 -6
- package/dist/types/components/AppCodeBlock.d.ts +27 -7
- package/dist/types/components/AppColorField.d.ts +36 -8
- package/dist/types/components/AppColumnMenu.d.ts +17 -4
- package/dist/types/components/AppCommandPalette.d.ts +72 -29
- package/dist/types/components/AppCommentThread.d.ts +25 -7
- package/dist/types/components/AppCompareTable.d.ts +9 -4
- package/dist/types/components/AppConfirmDialog.d.ts +54 -15
- package/dist/types/components/AppConsentBanner.d.ts +45 -12
- package/dist/types/components/AppContextMenu.d.ts +23 -10
- package/dist/types/components/AppCopyButton.d.ts +39 -9
- package/dist/types/components/AppCountrySelect.d.ts +50 -1
- package/dist/types/components/AppDashboardCell.d.ts +10 -2
- package/dist/types/components/AppDashboardGrid.d.ts +5 -1
- package/dist/types/components/AppDataTable.d.ts +103 -50
- package/dist/types/components/AppDatePicker.d.ts +32 -0
- package/dist/types/components/AppDateRangePicker.d.ts +31 -0
- package/dist/types/components/AppDescriptions.d.ts +28 -8
- package/dist/types/components/AppDrawer.d.ts +54 -13
- package/dist/types/components/AppDropZone.d.ts +34 -11
- package/dist/types/components/AppDropdown.d.ts +27 -20
- package/dist/types/components/AppDueDate.d.ts +16 -5
- package/dist/types/components/AppEmptyState.d.ts +22 -6
- package/dist/types/components/AppErrorSummary.d.ts +17 -4
- package/dist/types/components/AppFileAttachment.d.ts +30 -14
- package/dist/types/components/AppFilePicker.d.ts +39 -13
- package/dist/types/components/AppFileViewer.d.ts +21 -0
- package/dist/types/components/AppFilterBar.d.ts +23 -8
- package/dist/types/components/AppFloatingDock.d.ts +20 -6
- package/dist/types/components/AppFormActions.d.ts +11 -2
- package/dist/types/components/AppFormRow.d.ts +11 -2
- package/dist/types/components/AppFormSection.d.ts +25 -9
- package/dist/types/components/AppHoverCard.d.ts +25 -8
- package/dist/types/components/AppIcon.d.ts +18 -8
- package/dist/types/components/AppInfoList.d.ts +2 -0
- package/dist/types/components/AppInfoTip.d.ts +17 -4
- package/dist/types/components/AppInlineEdit.d.ts +22 -11
- package/dist/types/components/AppInput.d.ts +81 -2
- package/dist/types/components/AppInputGroup.d.ts +19 -6
- package/dist/types/components/AppKanban.d.ts +51 -23
- package/dist/types/components/AppKbd.d.ts +1 -0
- package/dist/types/components/AppKpiTile.d.ts +61 -31
- package/dist/types/components/AppLightbox.d.ts +12 -6
- package/dist/types/components/AppLink.d.ts +38 -17
- package/dist/types/components/AppLogoPicker.d.ts +88 -23
- package/dist/types/components/AppMarkdown.d.ts +3 -1
- package/dist/types/components/AppMentionInput.d.ts +35 -0
- package/dist/types/components/AppMenubar.d.ts +9 -7
- package/dist/types/components/AppMeter.d.ts +39 -10
- package/dist/types/components/AppMetricStrip.d.ts +11 -2
- package/dist/types/components/AppModal.d.ts +48 -19
- package/dist/types/components/AppMultiSelect.d.ts +44 -0
- package/dist/types/components/AppNavigationMenu.d.ts +6 -3
- package/dist/types/components/AppNotificationCenter.d.ts +23 -8
- package/dist/types/components/AppNumberInput.d.ts +38 -1
- package/dist/types/components/AppOnboardingChecklist.d.ts +27 -8
- package/dist/types/components/AppOtpInput.d.ts +24 -0
- package/dist/types/components/AppPageHeader.d.ts +60 -19
- package/dist/types/components/AppPagination.d.ts +21 -7
- package/dist/types/components/AppPhoneNumberInput.d.ts +37 -0
- package/dist/types/components/AppPopover.d.ts +23 -16
- package/dist/types/components/AppPricingCard.d.ts +27 -8
- package/dist/types/components/AppProgress.d.ts +44 -10
- package/dist/types/components/AppQrCode.d.ts +13 -5
- package/dist/types/components/AppRadio.d.ts +10 -0
- package/dist/types/components/AppRadioGroup.d.ts +47 -17
- package/dist/types/components/AppRating.d.ts +52 -15
- package/dist/types/components/AppRecordPager.d.ts +24 -8
- package/dist/types/components/AppRelativeTime.d.ts +9 -5
- package/dist/types/components/AppRepeater.d.ts +34 -8
- package/dist/types/components/AppResizable.d.ts +11 -3
- package/dist/types/components/AppResizableHandle.d.ts +9 -1
- package/dist/types/components/AppResizablePanel.d.ts +10 -3
- package/dist/types/components/AppResourceCard.d.ts +14 -2
- package/dist/types/components/AppResult.d.ts +23 -7
- package/dist/types/components/AppRichText.d.ts +34 -0
- package/dist/types/components/AppRollingNumber.d.ts +17 -7
- package/dist/types/components/AppRouteError.d.ts +22 -5
- package/dist/types/components/AppScoreScale.d.ts +40 -12
- package/dist/types/components/AppScrollbar.d.ts +7 -3
- package/dist/types/components/AppSearch.d.ts +32 -7
- package/dist/types/components/AppSectionCallToAction.d.ts +27 -7
- package/dist/types/components/AppSectionFaq.d.ts +27 -7
- package/dist/types/components/AppSectionFeatures.d.ts +34 -8
- package/dist/types/components/AppSectionHero.d.ts +29 -8
- package/dist/types/components/AppSectionLogos.d.ts +29 -7
- package/dist/types/components/AppSectionPricing.d.ts +25 -6
- package/dist/types/components/AppSectionTestimonials.d.ts +29 -7
- package/dist/types/components/AppSegmented.d.ts +41 -13
- package/dist/types/components/AppSelect.d.ts +53 -1
- package/dist/types/components/AppSelectMini.d.ts +28 -11
- package/dist/types/components/AppShell.d.ts +81 -35
- package/dist/types/components/AppShortcutLegend.d.ts +12 -4
- package/dist/types/components/AppShowMore.d.ts +26 -5
- package/dist/types/components/AppSidebarMenu.d.ts +59 -18
- package/dist/types/components/AppSkeleton.d.ts +33 -4
- package/dist/types/components/AppSlider.d.ts +43 -0
- package/dist/types/components/AppSortableList.d.ts +20 -0
- package/dist/types/components/AppSparkline.d.ts +19 -5
- package/dist/types/components/AppSpinner.d.ts +14 -3
- package/dist/types/components/AppSplash.d.ts +24 -7
- package/dist/types/components/AppSplitButton.d.ts +47 -14
- package/dist/types/components/AppSplitView.d.ts +53 -27
- package/dist/types/components/AppStatusBadge.d.ts +11 -3
- package/dist/types/components/AppStepper.d.ts +36 -11
- package/dist/types/components/AppSwitch.d.ts +16 -0
- package/dist/types/components/AppTableEmptyState.d.ts +7 -3
- package/dist/types/components/AppTablePagination.d.ts +23 -9
- package/dist/types/components/AppTableToolbar.d.ts +24 -10
- package/dist/types/components/AppTabs.d.ts +47 -18
- package/dist/types/components/AppTagInput.d.ts +38 -0
- package/dist/types/components/AppTextarea.d.ts +46 -0
- package/dist/types/components/AppThemeToggle.d.ts +58 -12
- package/dist/types/components/AppTimePicker.d.ts +38 -1
- package/dist/types/components/AppTimeline.d.ts +22 -20
- package/dist/types/components/AppToast.d.ts +30 -12
- package/dist/types/components/AppToolbar.d.ts +24 -9
- package/dist/types/components/AppTooltip.d.ts +24 -14
- package/dist/types/components/AppTour.d.ts +10 -0
- package/dist/types/components/AppTreeView.d.ts +23 -0
- package/dist/types/components/AppTruncate.d.ts +11 -2
- package/dist/types/components/AppUpdateBar.d.ts +10 -2
- package/dist/types/components/AppWhatsNew.d.ts +26 -7
- package/dist/types/components/AppWizard.d.ts +79 -0
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +36 -17
- package/dist/types/lib/wuiMarker.d.ts +4 -0
- package/package.json +10 -7
|
@@ -1,23 +1,60 @@
|
|
|
1
1
|
declare const AppNumberInput: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
|
|
2
|
+
/** The current number. Leave it unset for an empty field. */
|
|
3
|
+
value?: number;
|
|
3
4
|
onChange?: (next: number | '') => void;
|
|
5
|
+
/** The label above the field. A required field shows a required mark after it. */
|
|
4
6
|
label?: import('react').ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Marks the field as required, on the input and on the label.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
5
11
|
required?: boolean;
|
|
12
|
+
/** An error message under the field. It sets the error state and aria-invalid on the input. */
|
|
6
13
|
error?: string;
|
|
14
|
+
/** Help text under the field, linked to the input for screen readers. */
|
|
7
15
|
hint?: string;
|
|
16
|
+
/** Text shown in the empty field. */
|
|
8
17
|
placeholder?: string;
|
|
18
|
+
/** Content for the info-tip beside the label. The caller supplies the node. */
|
|
9
19
|
help?: import('react').ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* The accessible name of the info-tip button.
|
|
22
|
+
* @default "More information"
|
|
23
|
+
*/
|
|
10
24
|
helpLabel?: string;
|
|
25
|
+
/** The lowest value, inclusive. The decrease stepper disables at it. */
|
|
11
26
|
min?: number;
|
|
27
|
+
/** The highest value, inclusive. The increase stepper disables at it. */
|
|
12
28
|
max?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The amount one stepper click, or one ArrowUp or ArrowDown press, adds or removes.
|
|
31
|
+
* @default 1
|
|
32
|
+
*/
|
|
13
33
|
step?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The number of decimal places the value rounds to.
|
|
36
|
+
* @default 0
|
|
37
|
+
*/
|
|
14
38
|
precision?: number;
|
|
39
|
+
/** A unit suffix shown inside the field after the input, such as kg or %. */
|
|
15
40
|
unit?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The control size: sm, md or lg.
|
|
43
|
+
* @default "md"
|
|
44
|
+
*/
|
|
16
45
|
size?: string;
|
|
46
|
+
/** The input's id. Unset, a generated id is used. */
|
|
17
47
|
id?: string;
|
|
48
|
+
/** The input's name, for forms. */
|
|
18
49
|
name?: string;
|
|
50
|
+
/** Extra classes on the input. */
|
|
19
51
|
className?: string;
|
|
52
|
+
/** Extra classes on the field wrapper. */
|
|
20
53
|
fieldClassName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Disables the field and both steppers.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
21
58
|
disabled?: boolean;
|
|
22
59
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
60
|
export default AppNumberInput;
|
|
@@ -13,20 +13,20 @@ import "@webority/ui-elements/elements/onboarding-checklist";
|
|
|
13
13
|
*
|
|
14
14
|
* @param {object} props
|
|
15
15
|
* @param {{ key?: string, label: string, description?: string, href?: string, status?: 'done'|'current'|'skipped'|'todo' }[]} props.steps
|
|
16
|
-
*
|
|
17
|
-
* @param {
|
|
18
|
-
* @param {boolean} [props.
|
|
19
|
-
* @param {
|
|
20
|
-
* @param {string} [props.
|
|
21
|
-
* @param {string} [props.
|
|
22
|
-
* @param {string} [props.restoreLabel="Show setup checklist"] The text of the button that brings a dismissed checklist back.
|
|
16
|
+
* @param {string} [props.title]
|
|
17
|
+
* @param {boolean} [props.defaultCollapsed]
|
|
18
|
+
* @param {boolean} [props.defaultDismissed]
|
|
19
|
+
* @param {string} [props.storageKey]
|
|
20
|
+
* @param {string} [props.dismissLabel]
|
|
21
|
+
* @param {string} [props.restoreLabel]
|
|
23
22
|
* @param {() => void} [props.onDismiss] Called when the checklist is dismissed.
|
|
24
23
|
* @param {() => void} [props.onRestore] Called when a dismissed checklist is brought back.
|
|
25
24
|
* @param {(collapsed: boolean) => void} [props.onCollapsedChange] Called when the heading collapses or expands the steps.
|
|
26
|
-
* @param {import('react').ElementType} [props.linkComponent]
|
|
25
|
+
* @param {import('react').ElementType} [props.linkComponent]
|
|
27
26
|
* @param {string} [props.className]
|
|
28
27
|
*/
|
|
29
28
|
export default function AppOnboardingChecklist(props: {
|
|
29
|
+
/** The steps in order. Each step has a label, an optional description and href, and a status. */
|
|
30
30
|
steps: {
|
|
31
31
|
key?: string;
|
|
32
32
|
label: string;
|
|
@@ -34,15 +34,34 @@ export default function AppOnboardingChecklist(props: {
|
|
|
34
34
|
href?: string;
|
|
35
35
|
status?: 'done' | 'current' | 'skipped' | 'todo';
|
|
36
36
|
}[];
|
|
37
|
+
/**
|
|
38
|
+
* The heading, and the name of the progress bar.
|
|
39
|
+
* @default "Get started"
|
|
40
|
+
*/
|
|
37
41
|
title?: string;
|
|
42
|
+
/** Whether the steps start collapsed. Unset, they start collapsed when every step is done or skipped. */
|
|
38
43
|
defaultCollapsed?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the checklist starts dismissed, showing only the restore button.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
39
48
|
defaultDismissed?: boolean;
|
|
49
|
+
/** Remembers a dismissal across visits under this key, one per checklist. Unset, the dismissal lasts the page. */
|
|
40
50
|
storageKey?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The name and tooltip of the close icon.
|
|
53
|
+
* @default "Dismiss checklist"
|
|
54
|
+
*/
|
|
41
55
|
dismissLabel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The text of the button that brings a dismissed checklist back.
|
|
58
|
+
* @default "Show setup checklist"
|
|
59
|
+
*/
|
|
42
60
|
restoreLabel?: string;
|
|
43
61
|
onDismiss?: () => void;
|
|
44
62
|
onRestore?: () => void;
|
|
45
63
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
46
64
|
linkComponent?: import('react').ElementType;
|
|
65
|
+
/** Extra classes on the root element. */
|
|
47
66
|
className?: string;
|
|
48
67
|
}): import("react").JSX.Element;
|
|
@@ -1,18 +1,42 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/otp";
|
|
2
2
|
declare const AppOtpInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
/** The code entered so far. The field is controlled, so pair it with onChange. */
|
|
3
4
|
value?: string;
|
|
4
5
|
onChange?: (value: string) => void;
|
|
5
6
|
onComplete?: (value: string) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Characters in the code. TOTP is 6; backup codes are often 8.
|
|
9
|
+
* @default 6
|
|
10
|
+
*/
|
|
6
11
|
length?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Drives the on-screen keyboard and what the field will accept.
|
|
14
|
+
* @default "numeric"
|
|
15
|
+
*/
|
|
7
16
|
mode?: "numeric" | "alphanumeric";
|
|
17
|
+
/** The visible label. It also becomes the field's accessible name. */
|
|
8
18
|
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Marks the field required for assistive technology and shows the required mark beside the label.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
9
23
|
required?: boolean;
|
|
24
|
+
/** Help text under the code. It is hidden while an error is shown. */
|
|
10
25
|
hint?: string;
|
|
26
|
+
/** The error message under the code. It replaces the hint and marks the field invalid. */
|
|
11
27
|
error?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Disables the field so the code cannot be entered.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
12
32
|
disabled?: boolean;
|
|
33
|
+
/** The form field name, so a plain form post includes the code. */
|
|
13
34
|
name?: string;
|
|
35
|
+
/** The element id. A generated id is used when this is omitted. */
|
|
14
36
|
id?: string;
|
|
37
|
+
/** Class to apply to the control element. */
|
|
15
38
|
className?: string;
|
|
39
|
+
/** Class to apply to the wrapper field div. */
|
|
16
40
|
fieldClassName?: string;
|
|
17
41
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
18
42
|
export default AppOtpInput;
|
|
@@ -17,46 +17,87 @@
|
|
|
17
17
|
* icon, eyebrow or subtitle.
|
|
18
18
|
*
|
|
19
19
|
* @param {object} props
|
|
20
|
-
* @param {import('react').ReactNode} props.title
|
|
21
|
-
* @param {"h1"|"h2"|"h3"|"h4"|"h5"|"h6"} [props.as
|
|
22
|
-
* @param {import('react').ReactNode} [props.subtitle]
|
|
23
|
-
* @param {import('react').ReactNode} [props.eyebrow]
|
|
24
|
-
* @param {string|import('react').ReactNode} [props.icon]
|
|
25
|
-
* @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone
|
|
26
|
-
* @param {import('react').ReactNode} [props.status]
|
|
27
|
-
* @param {import('react').ReactNode} [props.breadcrumbs]
|
|
28
|
-
* @param {import('react').ReactNode} [props.actions]
|
|
29
|
-
* @param {import('react').ReactNode} [props.views]
|
|
30
|
-
* @param {import('react').ReactNode} [props.tools]
|
|
31
|
-
* @param {import('react').ReactNode} [props.meta]
|
|
32
|
-
* @param {"inline"|"below"} [props.metaPlacement
|
|
33
|
-
* @param {string} [props.bulkFor]
|
|
34
|
-
* @param {import('react').ReactNode} [props.bulk]
|
|
35
|
-
* @param {"sm"|"md"|"lg"|"bar"} [props.size
|
|
36
|
-
* @param {"start"|"center"} [props.align
|
|
37
|
-
* @param {boolean} [props.divider
|
|
38
|
-
* @param {boolean} [props.sticky
|
|
20
|
+
* @param {import('react').ReactNode} props.title
|
|
21
|
+
* @param {"h1"|"h2"|"h3"|"h4"|"h5"|"h6"} [props.as]
|
|
22
|
+
* @param {import('react').ReactNode} [props.subtitle]
|
|
23
|
+
* @param {import('react').ReactNode} [props.eyebrow]
|
|
24
|
+
* @param {string|import('react').ReactNode} [props.icon]
|
|
25
|
+
* @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone]
|
|
26
|
+
* @param {import('react').ReactNode} [props.status]
|
|
27
|
+
* @param {import('react').ReactNode} [props.breadcrumbs]
|
|
28
|
+
* @param {import('react').ReactNode} [props.actions]
|
|
29
|
+
* @param {import('react').ReactNode} [props.views]
|
|
30
|
+
* @param {import('react').ReactNode} [props.tools]
|
|
31
|
+
* @param {import('react').ReactNode} [props.meta]
|
|
32
|
+
* @param {"inline"|"below"} [props.metaPlacement]
|
|
33
|
+
* @param {string} [props.bulkFor]
|
|
34
|
+
* @param {import('react').ReactNode} [props.bulk]
|
|
35
|
+
* @param {"sm"|"md"|"lg"|"bar"} [props.size]
|
|
36
|
+
* @param {"start"|"center"} [props.align]
|
|
37
|
+
* @param {boolean} [props.divider]
|
|
38
|
+
* @param {boolean} [props.sticky]
|
|
39
39
|
* @param {string} [props.className]
|
|
40
40
|
*/
|
|
41
41
|
export default function AppPageHeader(props: {
|
|
42
|
+
/** Rendered as the screen heading. */
|
|
42
43
|
title: import('react').ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* The heading element for the title. Keep one h1 per page.
|
|
46
|
+
* @default "h1"
|
|
47
|
+
*/
|
|
43
48
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
49
|
+
/** A count, status, or short description. */
|
|
44
50
|
subtitle?: import('react').ReactNode;
|
|
51
|
+
/** Small kicker label above the title. */
|
|
45
52
|
eyebrow?: import('react').ReactNode;
|
|
53
|
+
/** Leading glyph: an icon name or a node. */
|
|
46
54
|
icon?: string | import('react').ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Tints the icon tile and the eyebrow.
|
|
57
|
+
* @default "primary"
|
|
58
|
+
*/
|
|
47
59
|
tone?: "primary" | "success" | "warning" | "danger" | "info";
|
|
60
|
+
/** Inline slot beside the title (for example an AppStatusBadge). */
|
|
48
61
|
status?: import('react').ReactNode;
|
|
62
|
+
/** A breadcrumbs row above the masthead (usually AppBreadcrumbs). */
|
|
49
63
|
breadcrumbs?: import('react').ReactNode;
|
|
64
|
+
/** Right-aligned page-level actions (usually an AppButton). */
|
|
50
65
|
actions?: import('react').ReactNode;
|
|
66
|
+
/** Saved views after the title (size bar only). */
|
|
51
67
|
views?: import('react').ReactNode;
|
|
68
|
+
/** Search, filters and display, before the actions (size bar only). */
|
|
52
69
|
tools?: import('react').ReactNode;
|
|
70
|
+
/** One short facts line or summary (size bar only). */
|
|
53
71
|
meta?: import('react').ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Where the meta line sits: inside the bar, or under it (size bar only).
|
|
74
|
+
* @default "inline"
|
|
75
|
+
*/
|
|
54
76
|
metaPlacement?: "inline" | "below";
|
|
77
|
+
/** Id of the data table whose selection swaps views and tools for its bulk bar (size bar only). Ticking rows hides views and tools and shows the bulk slot with an N selected count; the table's own toolbar bulk bar stays hidden. */
|
|
55
78
|
bulkFor?: string;
|
|
79
|
+
/** Bulk actions shown in the bar while the table named by bulkFor has rows ticked (size bar only). */
|
|
56
80
|
bulk?: import('react').ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* Title and spacing scale. bar is one 40px row.
|
|
83
|
+
* @default "md"
|
|
84
|
+
*/
|
|
57
85
|
size?: "sm" | "md" | "lg" | "bar";
|
|
86
|
+
/**
|
|
87
|
+
* Centres the masthead, for empty states and wizards.
|
|
88
|
+
* @default "start"
|
|
89
|
+
*/
|
|
58
90
|
align?: "start" | "center";
|
|
91
|
+
/**
|
|
92
|
+
* A bottom border under the masthead.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
59
95
|
divider?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Sticks the masthead to the top of the scroll container.
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
60
100
|
sticky?: boolean;
|
|
101
|
+
/** Extra classes on the header element. */
|
|
61
102
|
className?: string;
|
|
62
103
|
}): import("react").JSX.Element;
|
|
@@ -5,21 +5,35 @@
|
|
|
5
5
|
* Renders nothing (null) when totalPages <= 1.
|
|
6
6
|
*
|
|
7
7
|
* @param {object} props
|
|
8
|
-
* @param {number} props.page
|
|
9
|
-
* @param {number} props.totalPages
|
|
8
|
+
* @param {number} props.page
|
|
9
|
+
* @param {number} props.totalPages
|
|
10
10
|
* @param {(page: number) => void} props.onChange Callback fired when a page is clicked.
|
|
11
|
-
* @param {number} [props.siblings
|
|
12
|
-
*
|
|
13
|
-
* @param {
|
|
14
|
-
* @param {string} [props.
|
|
15
|
-
* @param {string} [props.className] Extra CSS class to add to the nav wrapper.
|
|
11
|
+
* @param {number} [props.siblings]
|
|
12
|
+
* @param {'sm'|'md'} [props.size]
|
|
13
|
+
* @param {string} [props.ariaLabel]
|
|
14
|
+
* @param {string} [props.className]
|
|
16
15
|
*/
|
|
17
16
|
export default function AppPagination(props: {
|
|
17
|
+
/** Current page, 1-based. The page button for this page carries aria-current set to page. */
|
|
18
18
|
page: number;
|
|
19
|
+
/** Total page count. The component renders nothing when it is 1 or less. */
|
|
19
20
|
totalPages: number;
|
|
20
21
|
onChange: (page: number) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Window radius: how many page buttons sit either side of the current page before an ellipsis appears. The default of 1 shows the current page plus or minus one.
|
|
24
|
+
* @default 1
|
|
25
|
+
*/
|
|
21
26
|
siblings?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Control size: compact ('sm') or standard ('md').
|
|
29
|
+
* @default "md"
|
|
30
|
+
*/
|
|
22
31
|
size?: 'sm' | 'md';
|
|
32
|
+
/**
|
|
33
|
+
* Accessible label for the nav element.
|
|
34
|
+
* @default "Pagination"
|
|
35
|
+
*/
|
|
23
36
|
ariaLabel?: string;
|
|
37
|
+
/** Extra CSS class to add to the nav wrapper. */
|
|
24
38
|
className?: string;
|
|
25
39
|
}): import("react").JSX.Element;
|
|
@@ -1,19 +1,56 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/phone";
|
|
2
2
|
declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
/** The phone number as entered. */
|
|
3
4
|
value?: string;
|
|
4
5
|
onChange?: (value: string) => void;
|
|
6
|
+
/** The ISO country code to start on. Left unset, the control starts on the viewer's own country. */
|
|
5
7
|
country?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Turns the field off.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
6
12
|
disabled?: boolean;
|
|
13
|
+
/** The form field name. */
|
|
7
14
|
name?: string;
|
|
15
|
+
/** The id of the phone control. Left unset, one is generated. */
|
|
8
16
|
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The label above the field.
|
|
19
|
+
* @default "Phone number"
|
|
20
|
+
*/
|
|
9
21
|
label?: import('react').ReactNode;
|
|
22
|
+
/** Hint text in the empty field. Left unset, the control hints with the country's example number. */
|
|
10
23
|
placeholder?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Marks the field required and adds the required mark to the label.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
11
28
|
required?: boolean;
|
|
29
|
+
/** Help text under the field. The error replaces it while one is shown. */
|
|
12
30
|
hint?: string;
|
|
31
|
+
/** An error message under the field, which also turns the border red. */
|
|
13
32
|
error?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Shows the country flag.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
14
37
|
showFlag?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Shows the country dial code, such as +91.
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
15
42
|
showDialCode?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The control height.
|
|
45
|
+
* @default "md"
|
|
46
|
+
*/
|
|
16
47
|
size?: "sm" | "md" | "lg";
|
|
48
|
+
/**
|
|
49
|
+
* Extra classes on the field wrapper.
|
|
50
|
+
* @default ""
|
|
51
|
+
*/
|
|
17
52
|
fieldClassName?: string;
|
|
53
|
+
/** Extra classes on the phone control itself, not on the field wrapper. */
|
|
54
|
+
className?: string;
|
|
18
55
|
} & import("react").RefAttributes<any>>;
|
|
19
56
|
export default AppPhoneNumberInput;
|
|
@@ -6,35 +6,42 @@
|
|
|
6
6
|
* `<app-popover>` uses Bootstrap's own popover, so both surfaces stay in lockstep.
|
|
7
7
|
*
|
|
8
8
|
* @param {object} props
|
|
9
|
-
* @param {import('react').ReactElement} props.trigger
|
|
10
|
-
* Must be a single element that forwards a ref (a DOM element, or a react-bootstrap-based
|
|
11
|
-
* App* like AppButton/AppActionIcon). It renders as written; clicking (or hovering/focusing) it
|
|
12
|
-
* toggles the panel.
|
|
9
|
+
* @param {import('react').ReactElement} props.trigger
|
|
13
10
|
* @param {import('react').ReactNode} props.children The panel body.
|
|
14
|
-
* @param {string} [props.title]
|
|
15
|
-
* @param {'top'|'bottom'|'start'|'end'|'auto'} [props.placement
|
|
16
|
-
*
|
|
17
|
-
* @param {'click'|'hover'|'focus'|('click'|'hover'|'focus')[]} [props.triggerType='click'] What
|
|
18
|
-
* opens it; pass an array for multiple (e.g. ['hover', 'focus']).
|
|
11
|
+
* @param {string} [props.title]
|
|
12
|
+
* @param {'top'|'bottom'|'start'|'end'|'auto'} [props.placement]
|
|
13
|
+
* @param {'click'|'hover'|'focus'|('click'|'hover'|'focus')[]} [props.triggerType]
|
|
19
14
|
* @param {(show: boolean) => void} [props.onToggle] Callback fired when the panel opens/closes.
|
|
20
|
-
* @param {string} [props.className]
|
|
21
|
-
* @param {boolean} [props.show]
|
|
22
|
-
*
|
|
23
|
-
* @param {
|
|
24
|
-
*
|
|
25
|
-
* @param {string} [props.labelledBy] Id of the element that names a dialog panel; wins over `title`.
|
|
26
|
-
* @param {boolean} [props.autoFocus=false] Moves focus into the panel on open and back to the trigger on close.
|
|
15
|
+
* @param {string} [props.className]
|
|
16
|
+
* @param {boolean} [props.show]
|
|
17
|
+
* @param {'dialog'} [props.role]
|
|
18
|
+
* @param {string} [props.labelledBy]
|
|
19
|
+
* @param {boolean} [props.autoFocus]
|
|
27
20
|
*/
|
|
28
21
|
export default function AppPopover({ trigger, children, title, placement, triggerType, onToggle, className, show, role, labelledBy, autoFocus, ...rest }: {
|
|
22
|
+
/** The element the panel opens from. It must be a single element that forwards a ref, such as a plain element, AppButton or AppActionIcon. */
|
|
29
23
|
trigger: import('react').ReactElement;
|
|
30
24
|
children: import('react').ReactNode;
|
|
25
|
+
/** An optional panel title, plain text so it never breaks the page's heading order. */
|
|
31
26
|
title?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Where the panel opens. auto flips to stay in view.
|
|
29
|
+
* @default "bottom"
|
|
30
|
+
*/
|
|
32
31
|
placement?: 'top' | 'bottom' | 'start' | 'end' | 'auto';
|
|
33
32
|
triggerType?: 'click' | 'hover' | 'focus' | ('click' | 'hover' | 'focus')[];
|
|
34
33
|
onToggle?: (show: boolean) => void;
|
|
34
|
+
/** Extra classes on the popover panel. */
|
|
35
35
|
className?: string;
|
|
36
|
+
/** Controls the open state. When set, the panel follows it. */
|
|
36
37
|
show?: boolean;
|
|
38
|
+
/** dialog names the panel after the title or labelledBy, marks it not modal, and lets Escape close it. */
|
|
37
39
|
role?: 'dialog';
|
|
40
|
+
/** The id of the element that names a dialog panel. It wins over the title. */
|
|
38
41
|
labelledBy?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Moves focus into the panel on open and back to the trigger on close.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
39
46
|
autoFocus?: boolean;
|
|
40
47
|
}): import("react").JSX.Element;
|
|
@@ -10,29 +10,48 @@
|
|
|
10
10
|
* monthly/annual switch use `AppSegmented`.
|
|
11
11
|
*
|
|
12
12
|
* @param {object} props
|
|
13
|
-
* @param {string} props.name
|
|
14
|
-
* @param {import('react').ReactNode} props.price
|
|
15
|
-
* @param {string} [props.unit]
|
|
16
|
-
* @param {string} [props.tagline]
|
|
13
|
+
* @param {string} props.name
|
|
14
|
+
* @param {import('react').ReactNode} props.price
|
|
15
|
+
* @param {string} [props.unit]
|
|
16
|
+
* @param {string} [props.tagline]
|
|
17
17
|
* @param {{ text: string, included?: boolean }[]} [props.features]
|
|
18
|
-
* @param {import('react').ReactNode} [props.cta]
|
|
19
|
-
* @param {boolean} [props.featured
|
|
20
|
-
* @param {boolean} [props.current
|
|
21
|
-
* @param {string} [props.badge
|
|
18
|
+
* @param {import('react').ReactNode} [props.cta]
|
|
19
|
+
* @param {boolean} [props.featured]
|
|
20
|
+
* @param {boolean} [props.current]
|
|
21
|
+
* @param {string} [props.badge]
|
|
22
22
|
* @param {string} [props.className]
|
|
23
23
|
*/
|
|
24
24
|
export default function AppPricingCard(props: {
|
|
25
|
+
/** The tier name. */
|
|
25
26
|
name: string;
|
|
27
|
+
/** The formatted amount, such as ₹1,499. */
|
|
26
28
|
price: import('react').ReactNode;
|
|
29
|
+
/** The period suffix after the price, such as /month. */
|
|
27
30
|
unit?: string;
|
|
31
|
+
/** One line on who the tier is for. */
|
|
28
32
|
tagline?: string;
|
|
33
|
+
/** The feature list. Every card in a row should list the same features in the same order. */
|
|
29
34
|
features?: {
|
|
30
35
|
text: string;
|
|
31
36
|
included?: boolean;
|
|
32
37
|
}[];
|
|
38
|
+
/** The call to action, usually an AppButton. */
|
|
33
39
|
cta?: import('react').ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Marks the recommended tier: brand border, lifted and badged.
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
34
44
|
featured?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Marks the tier the customer is already on.
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
35
49
|
current?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The text of the featured flag.
|
|
52
|
+
* @default "Most popular"
|
|
53
|
+
*/
|
|
36
54
|
badge?: string;
|
|
55
|
+
/** Extra classes on the card. */
|
|
37
56
|
className?: string;
|
|
38
57
|
}): import("react").JSX.Element;
|
|
@@ -4,26 +4,60 @@
|
|
|
4
4
|
* `.progress` markup with a brand-toned fill, identical to the Razor `<app-progress>`.
|
|
5
5
|
*
|
|
6
6
|
* @param {object} props
|
|
7
|
-
* @param {number} props.value
|
|
8
|
-
* @param {number} [props.max
|
|
9
|
-
* @param {'info'|'success'|'warning'|'danger'|'neutral'} [props.tone
|
|
10
|
-
* @param {'sm'|'md'} [props.size
|
|
11
|
-
* @param {string} [props.label]
|
|
12
|
-
* @param {boolean} [props.showLabel
|
|
13
|
-
* @param {boolean} [props.striped
|
|
14
|
-
* @param {boolean} [props.animated
|
|
15
|
-
* @param {boolean} [props.indeterminate
|
|
7
|
+
* @param {number} [props.value]
|
|
8
|
+
* @param {number} [props.max]
|
|
9
|
+
* @param {'info'|'success'|'warning'|'danger'|'neutral'} [props.tone]
|
|
10
|
+
* @param {'sm'|'md'} [props.size]
|
|
11
|
+
* @param {string} [props.label]
|
|
12
|
+
* @param {boolean} [props.showLabel]
|
|
13
|
+
* @param {boolean} [props.striped]
|
|
14
|
+
* @param {boolean} [props.animated]
|
|
15
|
+
* @param {boolean} [props.indeterminate]
|
|
16
16
|
* @param {string} [props.className]
|
|
17
17
|
*/
|
|
18
18
|
export default function AppProgress(props: {
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The current amount from 0 to max, clamped into range. Ignored when indeterminate.
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
value?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The amount that counts as complete.
|
|
26
|
+
* @default 100
|
|
27
|
+
*/
|
|
20
28
|
max?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The fill colour.
|
|
31
|
+
* @default "info"
|
|
32
|
+
*/
|
|
21
33
|
tone?: 'info' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
34
|
+
/**
|
|
35
|
+
* The bar thickness. sm is a thin 4px bar for inline or table use.
|
|
36
|
+
* @default "md"
|
|
37
|
+
*/
|
|
22
38
|
size?: 'sm' | 'md';
|
|
39
|
+
/** The accessible name of the bar. It is also shown above the bar when showLabel is set. */
|
|
23
40
|
label?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Shows the label text above the bar. Ignored when indeterminate.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
24
45
|
showLabel?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* A diagonal stripe overlay.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
25
50
|
striped?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Animates the stripes, which implies striped.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
26
55
|
animated?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* An unknown-duration sweep that drops the value and the label.
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
27
60
|
indeterminate?: boolean;
|
|
61
|
+
/** Extra classes on the bar, or on the labelled wrapper when the label shows. */
|
|
28
62
|
className?: string;
|
|
29
63
|
}): import("react").JSX.Element;
|
|
@@ -11,18 +11,26 @@
|
|
|
11
11
|
* long for a version 40 symbol throws.
|
|
12
12
|
*
|
|
13
13
|
* @param {object} props
|
|
14
|
-
* @param {string} props.value
|
|
15
|
-
*
|
|
16
|
-
* @param {
|
|
17
|
-
* whole number of pixels per module that fits.
|
|
18
|
-
* @param {string} [props.title='QR code'] Accessible name. Say what scanning it does.
|
|
14
|
+
* @param {string} props.value
|
|
15
|
+
* @param {number} [props.size]
|
|
16
|
+
* @param {string} [props.title]
|
|
19
17
|
* @param {string} [props.className]
|
|
20
18
|
* @param {import('react').CSSProperties} [props.style]
|
|
21
19
|
*/
|
|
22
20
|
export default function AppQrCode(props: {
|
|
21
|
+
/** The text to encode, such as a link, an otpauth setup address or a signed token. Nothing renders while it is empty. */
|
|
23
22
|
value: string;
|
|
23
|
+
/**
|
|
24
|
+
* The largest width and height in px. The code draws at the biggest whole number of pixels per module that fits.
|
|
25
|
+
* @default 240
|
|
26
|
+
*/
|
|
24
27
|
size?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The accessible name. Say what scanning it does.
|
|
30
|
+
* @default "QR code"
|
|
31
|
+
*/
|
|
25
32
|
title?: string;
|
|
33
|
+
/** Extra classes on the code. */
|
|
26
34
|
className?: string;
|
|
27
35
|
style?: import('react').CSSProperties;
|
|
28
36
|
}): import("react").JSX.Element;
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
declare const AppRadio: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
/** The visible label beside the radio. */
|
|
2
3
|
label?: import('react').ReactNode;
|
|
4
|
+
/** The input's id. The label is bound to the input through it, and it is generated when left out. */
|
|
3
5
|
id?: string;
|
|
6
|
+
/** The form field name. Radios that share a name form one group. */
|
|
4
7
|
name?: string;
|
|
8
|
+
/** The value this radio posts when it is the chosen one. */
|
|
5
9
|
value?: string;
|
|
10
|
+
/** Controlled chosen state; pair with onChange. */
|
|
6
11
|
checked?: boolean;
|
|
12
|
+
/** Starting state when the radio is uncontrolled. */
|
|
7
13
|
defaultChecked?: boolean;
|
|
14
|
+
/** Locks the radio and dims it. */
|
|
8
15
|
disabled?: boolean;
|
|
9
16
|
onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
/** Error message, rendered below the control. Replaces the hint. */
|
|
10
18
|
error?: string;
|
|
19
|
+
/** Helper text below the control. Hidden while an error is shown. */
|
|
11
20
|
hint?: string;
|
|
21
|
+
/** Extra class on the form-check wrapper that holds the input, label and message. */
|
|
12
22
|
className?: string;
|
|
13
23
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
24
|
export default AppRadio;
|