@webority/ui-react 0.80.3 → 0.80.5
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/types/components/AppAutocomplete.d.ts +32 -48
- package/dist/types/components/AppCalendar.d.ts +33 -46
- package/dist/types/components/AppChart.d.ts +69 -55
- package/dist/types/components/AppCheckbox.d.ts +8 -18
- package/dist/types/components/AppCountrySelect.d.ts +9 -12
- package/dist/types/components/AppDatePicker.d.ts +20 -34
- package/dist/types/components/AppDateRangePicker.d.ts +29 -38
- package/dist/types/components/AppEmptyState.d.ts +3 -2
- package/dist/types/components/AppFileViewer.d.ts +23 -55
- package/dist/types/components/AppInput.d.ts +34 -78
- package/dist/types/components/AppMentionInput.d.ts +39 -39
- package/dist/types/components/AppMultiSelect.d.ts +33 -50
- package/dist/types/components/AppNumberInput.d.ts +22 -42
- package/dist/types/components/AppOtpInput.d.ts +16 -46
- package/dist/types/components/AppPhoneNumberInput.d.ts +17 -1
- package/dist/types/components/AppRadio.d.ts +8 -18
- package/dist/types/components/AppRichText.d.ts +19 -41
- package/dist/types/components/AppSelect.d.ts +12 -12
- package/dist/types/components/AppSlider.d.ts +28 -36
- package/dist/types/components/AppSortableList.d.ts +16 -30
- package/dist/types/components/AppSwitch.d.ts +9 -21
- package/dist/types/components/AppTableEmptyState.d.ts +3 -2
- package/dist/types/components/AppTagInput.d.ts +20 -26
- package/dist/types/components/AppTextarea.d.ts +17 -24
- package/dist/types/components/AppTimePicker.d.ts +22 -34
- package/dist/types/components/AppTour.d.ts +40 -55
- package/dist/types/components/AppTreeView.d.ts +31 -42
- package/dist/types/components/AppWizard.d.ts +48 -46
- package/package.json +3 -3
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/sortable";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* id order after a drop. `detail` is the element's event detail: `{ id, fromIndex, toIndex, from, to }`.
|
|
19
|
-
* @param {string} props.ariaLabel Names the list for assistive tech; also used in announcements
|
|
20
|
-
* when an item moves between lists.
|
|
21
|
-
* @param {boolean} [props.handle=false] Drag only from the handle. Without it an item can also be
|
|
22
|
-
* dragged from its body (links, buttons and inputs inside it keep working).
|
|
23
|
-
* @param {string} [props.group] Name shared by lists that accept each other's items.
|
|
24
|
-
* @param {string} [props.name] Form field name; posts the order as one hidden input per item.
|
|
25
|
-
* @param {boolean} [props.disabled] No item can be picked up.
|
|
26
|
-
* @param {'vertical'|'horizontal'} [props.orientation='vertical'] Direction the items run;
|
|
27
|
-
* horizontal also covers a wrapping row.
|
|
28
|
-
* @param {string} [props.className]
|
|
29
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
30
|
-
*/
|
|
31
|
-
declare const AppSortableList: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppSortableList: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
items: {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
content?: import('react').ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
onReorder?: (ids: string[], detail: object) => void;
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
handle?: boolean;
|
|
12
|
+
group?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
orientation?: 'vertical' | 'horizontal';
|
|
16
|
+
className?: string;
|
|
17
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
32
18
|
export default AppSortableList;
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @param {import('react').ReactNode} [props.label]
|
|
11
|
-
* @param {string} [props.id]
|
|
12
|
-
* @param {string} [props.name]
|
|
13
|
-
* @param {string} [props.error] Error message, rendered below the control. Replaces the hint.
|
|
14
|
-
* @param {string} [props.hint] Helper text below the control. Hidden while an error is shown.
|
|
15
|
-
* @param {'round'|'pill'|'circle'} [props.shape] Track shape: `round` (default) is the sliding
|
|
16
|
-
* pill with truly circular ends; `pill` is the same sliding pill with squircle ends;
|
|
17
|
-
* `circle` is a compact round on/off button.
|
|
18
|
-
* @param {string} [props.className]
|
|
19
|
-
* @param {import('react').Ref<HTMLInputElement>} [ref]
|
|
20
|
-
*/
|
|
21
|
-
declare const AppSwitch: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
1
|
+
declare const AppSwitch: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
label?: import('react').ReactNode;
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
shape?: 'round' | 'pill' | 'circle';
|
|
8
|
+
className?: string;
|
|
9
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
10
|
export default AppSwitch;
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* Empty ledger body for AppDataTable.
|
|
3
3
|
*
|
|
4
4
|
* @param {object} props
|
|
5
|
-
* @param {string|import('react').ReactNode} props.icon Icon name, or a custom node.
|
|
5
|
+
* @param {string|import('react').ReactNode} [props.icon] Icon name, or a custom node. Needed unless
|
|
6
|
+
* `illustration` is set, which replaces the icon.
|
|
6
7
|
* @param {string|import('react').ReactNode} [props.illustration] A named drawing ("no-results" | "no-data" | "empty-inbox" | "no-notifications" | "no-files" | "no-access" | "offline" | "error"), or your own decorative SVG node drawn unboxed at up to 120 px. Replaces the icon bubble when set.
|
|
7
8
|
* @param {import('react').ReactNode} props.title
|
|
8
9
|
* @param {import('react').ReactNode} [props.text]
|
|
9
10
|
* @param {import('react').ReactNode} [props.action]
|
|
10
11
|
*/
|
|
11
12
|
export default function AppTableEmptyState({ icon, illustration, title, text, action, ...rest }: {
|
|
12
|
-
icon
|
|
13
|
+
icon?: string | import('react').ReactNode;
|
|
13
14
|
illustration?: string | import('react').ReactNode;
|
|
14
15
|
title: import('react').ReactNode;
|
|
15
16
|
text?: import('react').ReactNode;
|
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/taginput";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
|
|
23
|
-
* @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
|
|
24
|
-
* @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
|
|
25
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
26
|
-
*/
|
|
27
|
-
declare const AppTagInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppTagInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
values?: string[];
|
|
4
|
+
onChange?: (values: string[]) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
label?: import('react').ReactNode;
|
|
8
|
+
error?: string;
|
|
9
|
+
hint?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
size?: 'sm' | 'lg';
|
|
12
|
+
maxTags?: number;
|
|
13
|
+
allowDuplicates?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
fieldClassName?: string;
|
|
19
|
+
help?: import('react').ReactNode;
|
|
20
|
+
helpLabel?: string;
|
|
21
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
28
22
|
export default AppTagInput;
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param {boolean} [props.showCount=false] Show a live `count / maxLength` under the field.
|
|
19
|
-
* @param {number} [props.maxLength] Character cap; the count turns red as it is approached.
|
|
20
|
-
* @param {string} [props.className]
|
|
21
|
-
* @param {string} [props.fieldClassName]
|
|
22
|
-
* @param {import('react').Ref<HTMLTextAreaElement>} [ref]
|
|
23
|
-
*/
|
|
24
|
-
declare const AppTextarea: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
1
|
+
declare const AppTextarea: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
label?: import('react').ReactNode;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
error?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
help?: import('react').ReactNode;
|
|
8
|
+
helpLabel?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
rows?: number;
|
|
12
|
+
autoGrow?: boolean;
|
|
13
|
+
showCount?: boolean;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
fieldClassName?: string;
|
|
17
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
25
18
|
export default AppTextarea;
|
|
@@ -1,36 +1,24 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/timepicker";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* @param {number} [props.step=30] Step granularity in minutes
|
|
25
|
-
* @param {'12'|'24'} [props.format='24'] Display format — 12 or 24 hour (wire stays 24h)
|
|
26
|
-
* @param {string} [props.placeholder="Select time"]
|
|
27
|
-
* @param {boolean} [props.disabled]
|
|
28
|
-
* @param {'sm'|'md'|'lg'} [props.size] Control height tier, matching AppInput
|
|
29
|
-
* @param {string} [props.id]
|
|
30
|
-
* @param {string} [props.ariaLabel]
|
|
31
|
-
* @param {string} [props.className] Class to apply to the control element.
|
|
32
|
-
* @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
|
|
33
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
34
|
-
*/
|
|
35
|
-
declare const AppTimePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
hint?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
help?: import('react').ReactNode;
|
|
10
|
+
helpLabel?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
min?: string;
|
|
13
|
+
max?: string;
|
|
14
|
+
step?: number;
|
|
15
|
+
format?: '12' | '24';
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
size?: 'sm' | 'md' | 'lg';
|
|
19
|
+
id?: string;
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
fieldClassName?: string;
|
|
23
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
36
24
|
export default AppTimePicker;
|
|
@@ -1,57 +1,42 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/tour";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* @param {(step: object, index: number) => void | Promise<void>} [props.onBeforeStep] Runs before each step's target is looked up, awaited. Use it to open a menu or switch a tab so the target is visible.
|
|
43
|
-
* @param {{ back?: string, next?: string, skip?: string, done?: string, progress?: string, advance?: string, mediaPause?: string, mediaPlay?: string, endTitle?: string, endMessage?: string, endButton?: string }} [props.labels]
|
|
44
|
-
* Button text, defaults Back, Next, Skip, Done. `done` is the last step's button only with
|
|
45
|
-
* `endDialog={false}`; while the closing dialog is on, the last step reads `next`, because the
|
|
46
|
-
* dialog follows. `progress` is the step count template, default "Step {current} of {total}".
|
|
47
|
-
* `advance` is a click-to-advance step's sentence, default "Click {actionName} to continue.",
|
|
48
|
-
* where `{actionName}` is the step's `actionLabel` or else its target's accessible name.
|
|
49
|
-
* `mediaPause` and `mediaPlay` name a step loop's pause button while it plays and while it is
|
|
50
|
-
* paused, defaults "Pause animation" and "Play animation".
|
|
51
|
-
* `endTitle`, `endMessage` and `endButton` are the closing dialog's text, defaults "You're all
|
|
52
|
-
* set", a short friendly line, and "Done".
|
|
53
|
-
* @param {boolean} [props.endDialog=true] Show the closing dialog after the last step.
|
|
54
|
-
* @param {string} [props.className]
|
|
55
|
-
*/
|
|
56
|
-
declare const AppTour: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppTour: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: (reason: 'finished' | 'skipped' | 'alreadySeen' | 'noTargets', details: {
|
|
5
|
+
index: number | null;
|
|
6
|
+
position: number | null;
|
|
7
|
+
total: number | null;
|
|
8
|
+
}) => void;
|
|
9
|
+
tourId: string;
|
|
10
|
+
steps: {
|
|
11
|
+
target: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description: string;
|
|
14
|
+
media?: string;
|
|
15
|
+
mediaAlt?: string;
|
|
16
|
+
mediaPoster?: string;
|
|
17
|
+
mediaType?: 'image' | 'video';
|
|
18
|
+
advanceOn?: 'click';
|
|
19
|
+
actionLabel?: string;
|
|
20
|
+
}[];
|
|
21
|
+
seenStore?: {
|
|
22
|
+
isSeen: (tourId: string) => Promise<boolean>;
|
|
23
|
+
markSeen: (tourId: string, outcome: 'finished' | 'skipped') => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
onBeforeStep?: (step: object, index: number) => void | Promise<void>;
|
|
26
|
+
labels?: {
|
|
27
|
+
back?: string;
|
|
28
|
+
next?: string;
|
|
29
|
+
skip?: string;
|
|
30
|
+
done?: string;
|
|
31
|
+
progress?: string;
|
|
32
|
+
advance?: string;
|
|
33
|
+
mediaPause?: string;
|
|
34
|
+
mediaPlay?: string;
|
|
35
|
+
endTitle?: string;
|
|
36
|
+
endMessage?: string;
|
|
37
|
+
endButton?: string;
|
|
38
|
+
};
|
|
39
|
+
endDialog?: boolean;
|
|
40
|
+
className?: string;
|
|
41
|
+
} & import("react").RefAttributes<any>>;
|
|
57
42
|
export default AppTour;
|
|
@@ -1,44 +1,33 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/tree";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* @param {(id: string, message: string) => void} [props.onLoadError] Children could not be loaded.
|
|
34
|
-
* @param {string} [props.name] Form field name: `multiple` posts one value per checked id, `single`
|
|
35
|
-
* the selected id.
|
|
36
|
-
* @param {string} [props.loadingText='Loading'] Announced while children load.
|
|
37
|
-
* @param {string} [props.errorText='Could not load. Try again.'] Announced when they fail.
|
|
38
|
-
* @param {string} [props.ariaLabel] Accessible name of the tree.
|
|
39
|
-
* @param {string} [props.id]
|
|
40
|
-
* @param {string} [props.className]
|
|
41
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
42
|
-
*/
|
|
43
|
-
declare const AppTreeView: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppTreeView: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
nodes: {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
badge?: string;
|
|
8
|
+
badgeTone?: 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
9
|
+
children?: object[];
|
|
10
|
+
hasChildren?: boolean;
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
selection?: 'none' | 'single' | 'multiple';
|
|
16
|
+
selected?: string | null;
|
|
17
|
+
onSelect?: (id: string, node: object) => void;
|
|
18
|
+
checked?: string[];
|
|
19
|
+
onCheck?: (ids: string[], detail: {
|
|
20
|
+
id: string;
|
|
21
|
+
checked: boolean;
|
|
22
|
+
}) => void;
|
|
23
|
+
loadChildren?: (node: object) => Promise<object[]>;
|
|
24
|
+
loadUrl?: string;
|
|
25
|
+
onLoadError?: (id: string, message: string) => void;
|
|
26
|
+
name?: string;
|
|
27
|
+
loadingText?: string;
|
|
28
|
+
errorText?: string;
|
|
29
|
+
ariaLabel?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
44
33
|
export default AppTreeView;
|
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/wizard";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
2
|
+
declare const AppWizard: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
steps: {
|
|
4
|
+
key?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
optional?: boolean;
|
|
8
|
+
icon?: string;
|
|
9
|
+
status?: 'done' | 'active' | 'pending' | 'error';
|
|
10
|
+
}[];
|
|
11
|
+
children: import('react').ReactNode;
|
|
12
|
+
active?: number;
|
|
13
|
+
defaultActive?: number;
|
|
14
|
+
onStepChange?: (index: number, detail: {
|
|
15
|
+
previous: number;
|
|
16
|
+
reason: 'next' | 'back' | 'skip' | 'step' | 'set';
|
|
17
|
+
}) => void;
|
|
18
|
+
onFinish?: (detail: {
|
|
19
|
+
index: number;
|
|
20
|
+
}) => void;
|
|
21
|
+
onSkip?: (index: number) => void;
|
|
22
|
+
beforeNext?: (index: number) => boolean | Promise<boolean>;
|
|
23
|
+
onInvalid?: (index: number) => void;
|
|
24
|
+
variant?: 'steps' | 'journey' | 'icons' | 'tiles';
|
|
25
|
+
tone?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
26
|
+
doneTone?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
27
|
+
orientation?: 'horizontal' | 'vertical';
|
|
28
|
+
align?: 'center' | 'start';
|
|
29
|
+
iconVariant?: 'linear' | 'outline' | 'bold' | 'bulk' | 'broken' | 'twotone';
|
|
30
|
+
size?: 'sm' | 'md' | 'lg';
|
|
31
|
+
iconSize?: number;
|
|
32
|
+
skippable?: boolean;
|
|
33
|
+
nonLinear?: boolean;
|
|
34
|
+
hideStepper?: boolean;
|
|
35
|
+
hideConnectors?: boolean;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
label?: string;
|
|
38
|
+
backLabel?: string;
|
|
39
|
+
nextLabel?: string;
|
|
40
|
+
skipLabel?: string;
|
|
41
|
+
finishLabel?: string;
|
|
42
|
+
topBar?: boolean;
|
|
43
|
+
barTitle?: string;
|
|
44
|
+
closeLabel?: string;
|
|
45
|
+
onClose?: (detail: {
|
|
46
|
+
index: number;
|
|
47
|
+
}) => void;
|
|
48
|
+
className?: string;
|
|
49
|
+
} & import("react").RefAttributes<any>>;
|
|
48
50
|
export default AppWizard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.5",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@webority/theme": "0.80.
|
|
31
|
-
"@webority/ui-elements": "0.80.
|
|
30
|
+
"@webority/theme": "0.80.5",
|
|
31
|
+
"@webority/ui-elements": "0.80.5"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@webority/analytics": "^0.25.0",
|