@sebgroup/green-react 2.2.1 → 2.3.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/index.esm.js
CHANGED
|
@@ -2725,9 +2725,17 @@ function Group({
|
|
|
2725
2725
|
id,
|
|
2726
2726
|
children,
|
|
2727
2727
|
error,
|
|
2728
|
-
|
|
2728
|
+
className,
|
|
2729
|
+
groupBorder = false,
|
|
2730
|
+
groupFocus = false
|
|
2729
2731
|
}) {
|
|
2730
|
-
const groupClassName =
|
|
2732
|
+
const groupClassName = classNames('group', {
|
|
2733
|
+
'group-border': groupBorder
|
|
2734
|
+
}, {
|
|
2735
|
+
'group-focus': groupFocus
|
|
2736
|
+
}, {
|
|
2737
|
+
'is-invalid': error
|
|
2738
|
+
}, className);
|
|
2731
2739
|
const errorMessage = error ? error.message || error : '';
|
|
2732
2740
|
return jsxs("div", Object.assign({
|
|
2733
2741
|
className: "form-group",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17 || ^18",
|
|
6
6
|
"react-dom": "^17 || ^18"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@sebgroup/green-core": "^1.0
|
|
10
|
-
"@sebgroup/chlorophyll": "^2.2.
|
|
9
|
+
"@sebgroup/green-core": "^1.1.0",
|
|
10
|
+
"@sebgroup/chlorophyll": "^2.2.1",
|
|
11
11
|
"@sebgroup/extract": "^2.0.0",
|
|
12
12
|
"classnames": "^2.3.2"
|
|
13
13
|
},
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
export interface GroupProps {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
error?: Error | string;
|
|
5
6
|
groupBorder?: boolean;
|
|
7
|
+
groupFocus?: boolean;
|
|
6
8
|
invalid?: boolean;
|
|
7
9
|
id?: string;
|
|
10
|
+
className?: classNames.Argument;
|
|
8
11
|
}
|
|
9
|
-
export declare function Group({ id, children, error, groupBorder, }: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function Group({ id, children, error, className, groupBorder, groupFocus, }: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
export default Group;
|
|
@@ -2,14 +2,14 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export interface InPageWizardStepCardProps {
|
|
3
3
|
stepText: string;
|
|
4
4
|
title: string;
|
|
5
|
-
editBtnText
|
|
5
|
+
editBtnText?: string;
|
|
6
6
|
nextBtnText: string;
|
|
7
7
|
nextBtnIcon?: ReactNode;
|
|
8
8
|
stepStatus: WizardStepStatus;
|
|
9
9
|
hideFooter?: boolean;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
onNextClick: () => void;
|
|
12
|
-
onEditClick
|
|
12
|
+
onEditClick?: () => void;
|
|
13
13
|
dataTestid?: string;
|
|
14
14
|
}
|
|
15
15
|
export declare type WizardStepStatus = 'NotStarted' | 'IsActive' | 'IsComplete';
|