chore: Change name from SafeReactNode to StrictReactNode

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-15 11:56:30 -04:00
1 parent e88de58b5d
commit d8823085a8
75 files changed
+219 -210

No files matched your search

@@ -5,7 +5,7 @@
import "./wizard.scss";
import React from "react";
import type { SafeReactNode } from "@k8slens/utilities";
import type { StrictReactNode } from "@k8slens/utilities";
import { cssNames, prevDefault } from "@k8slens/utilities";
import { Button } from "@k8slens/button";
import { Stepper } from "../stepper";
@@ -25,7 +25,7 @@ export interface WizardProps<D> extends WizardCommonProps<D> {
className?: string;
step?: number;
title?: string;
header?: SafeReactNode;
header?: StrictReactNode;
onChange?: (step: number) => void;
children?: React.ReactElement<WizardStepProps<D>>[] | React.ReactElement<WizardStepProps<D>>;
}
@@ -108,28 +108,28 @@ export interface WizardStepProps<D> extends WizardCommonProps<D> {
title?: string;
className?: string | object;
contentClass?: string | object;
customButtons?: SafeReactNode; // render custom buttons block in footer
moreButtons?: SafeReactNode; // add more buttons to section in the footer
customButtons?: StrictReactNode; // render custom buttons block in footer
moreButtons?: StrictReactNode; // add more buttons to section in the footer
loading?: boolean; // indicator of loading content for the step
waiting?: boolean; // indicator of waiting response before going to next step
disabledNext?: boolean; // disable next button flag, e.g when filling step is not finished
hideNextBtn?: boolean;
hideBackBtn?: boolean;
step?: number;
prevLabel?: SafeReactNode; // custom label for prev button
nextLabel?: SafeReactNode; // custom label for next button
prevLabel?: StrictReactNode; // custom label for prev button
nextLabel?: StrictReactNode; // custom label for next button
next?: () => void | boolean | Promise<any>; // custom action for next button
prev?: () => void; // custom action for prev button
first?: () => void;
last?: () => void;
isFirst?: () => boolean;
isLast?: () => boolean;
beforeContent?: SafeReactNode;
afterContent?: SafeReactNode;
beforeContent?: StrictReactNode;
afterContent?: StrictReactNode;
noValidate?: boolean; // no validate form attribute
skip?: boolean; // don't render the step
scrollable?: boolean;
children?: SafeReactNode | SafeReactNode[];
children?: StrictReactNode | StrictReactNode[];
testIdForNext?: string;
testIdForPrev?: string;
}