@webority/ui-react 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,8 +5,9 @@ import "@webority/ui-elements";
|
|
|
5
5
|
* footer. Give it `steps` metadata and one panel per step as children (in order).
|
|
6
6
|
*
|
|
7
7
|
* Uncontrolled by default (it owns the current step); pass `active` + `onStepChange`
|
|
8
|
-
* to drive it. `beforeNext` gates advancing
|
|
9
|
-
* to block Next, e.g. until a form validates. An
|
|
8
|
+
* to drive it. `beforeNext` gates advancing and finishing: return `false` (or a rejecting
|
|
9
|
+
* promise) to block Next, or Finish on the last step, e.g. until a form validates. An
|
|
10
|
+
* `optional` step shows the Skip button.
|
|
10
11
|
*
|
|
11
12
|
* @param {object} props
|
|
12
13
|
* @param {{ key?: string, label: string, description?: string, optional?: boolean, icon?: string, status?: 'done'|'active'|'pending'|'error' }[]} props.steps
|
|
@@ -16,7 +17,7 @@ import "@webority/ui-elements";
|
|
|
16
17
|
* @param {(index: number, detail: { previous: number, reason: 'next'|'back'|'skip'|'step'|'set' }) => void} [props.onStepChange]
|
|
17
18
|
* @param {(detail: { index: number }) => void} [props.onFinish] Fired when Finish is pressed on the last step.
|
|
18
19
|
* @param {(index: number) => void} [props.onSkip] Fired when an optional step is skipped.
|
|
19
|
-
* @param {(index: number) => boolean | Promise<boolean>} [props.beforeNext] Validation gate run before advancing on Next
|
|
20
|
+
* @param {(index: number) => boolean | Promise<boolean>} [props.beforeNext] Validation gate run before advancing on Next and before Finish on the last step. Return false (or a rejecting promise) to block; the blocked step turns red.
|
|
20
21
|
* @param {(index: number) => void} [props.onInvalid] Fired when advancing is blocked by beforeNext (the step is marked invalid).
|
|
21
22
|
* @param {'steps'|'journey'|'icons'} [props.variant='steps'] Stepper header style — compact circles, the wide journey bar, or large connected icon badges with a "STEP n" eyebrow.
|
|
22
23
|
* @param {'primary'|'success'|'warning'|'danger'|'info'} [props.tone] Recolour the whole stepper accent (active fill, done rail, ring, done tint) to a semantic ramp. Unset keeps the variant's default (primary for steps/journey, success/green for icons). For any other colour, override the `--wui-step-accent` / `--wui-step-soft` CSS variables via `style` or a `className` instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@webority/theme": "0.12.
|
|
32
|
-
"@webority/ui-elements": "0.12.
|
|
31
|
+
"@webority/theme": "0.12.2",
|
|
32
|
+
"@webority/ui-elements": "0.12.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@webority/analytics": "^0.5.
|
|
35
|
+
"@webority/analytics": "^0.5.2",
|
|
36
36
|
"bootstrap": "5.3.3",
|
|
37
37
|
"react": "^19.0.0",
|
|
38
38
|
"react-bootstrap": "^2.10.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/react": "^19.2.17",
|
|
47
47
|
"@vitejs/plugin-react": "^6.0.1",
|
|
48
48
|
"@vitest/coverage-v8": "5.0.1",
|
|
49
|
-
"@webority/analytics": "0.5.
|
|
49
|
+
"@webority/analytics": "0.5.2",
|
|
50
50
|
"bootstrap": "5.3.3",
|
|
51
51
|
"jsdom": "30.1.1",
|
|
52
52
|
"react": "^19.2.6",
|