@up42/up-components 0.12.6 → 0.12.8
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.
|
@@ -4,8 +4,12 @@ export declare type PageHeaderProps = {
|
|
|
4
4
|
divider?: boolean;
|
|
5
5
|
description?: React.ReactNode;
|
|
6
6
|
action?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Pass SetStateAction from child component to update header title
|
|
9
|
+
*/
|
|
10
|
+
onSubmitTitle?: (title: string) => void;
|
|
7
11
|
};
|
|
8
12
|
/**
|
|
9
13
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-pageheader
|
|
10
14
|
*/
|
|
11
|
-
export declare const PageHeader: ({ title, description, divider, action }: PageHeaderProps) => JSX.Element;
|
|
15
|
+
export declare const PageHeader: ({ title, description, divider, action, onSubmitTitle }: PageHeaderProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -606,11 +606,15 @@ declare type PageHeaderProps = {
|
|
|
606
606
|
divider?: boolean;
|
|
607
607
|
description?: React__default.ReactNode;
|
|
608
608
|
action?: React__default.ReactNode;
|
|
609
|
+
/**
|
|
610
|
+
* Pass SetStateAction from child component to update header title
|
|
611
|
+
*/
|
|
612
|
+
onSubmitTitle?: (title: string) => void;
|
|
609
613
|
};
|
|
610
614
|
/**
|
|
611
615
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-pageheader
|
|
612
616
|
*/
|
|
613
|
-
declare const PageHeader: ({ title, description, divider, action }: PageHeaderProps) => JSX.Element;
|
|
617
|
+
declare const PageHeader: ({ title, description, divider, action, onSubmitTitle }: PageHeaderProps) => JSX.Element;
|
|
614
618
|
|
|
615
619
|
/**
|
|
616
620
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-notfound
|
|
@@ -935,10 +939,12 @@ function _extends$K() { _extends$K = Object.assign || function (target) { for (v
|
|
|
935
939
|
|
|
936
940
|
var SvgCheckmark = function SvgCheckmark(props) {
|
|
937
941
|
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
938
|
-
|
|
942
|
+
width: 16,
|
|
943
|
+
height: 15,
|
|
944
|
+
fill: "currentColor",
|
|
939
945
|
xmlns: "http://www.w3.org/2000/svg"
|
|
940
946
|
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
941
|
-
d: "
|
|
947
|
+
d: "M4.83 14.152c-.14 0-.279-.014-.418-.041a2.123 2.123 0 0 1-1.358-.892L.162 9.178a.868.868 0 0 1 .214-1.22.897.897 0 0 1 1.24.211l2.904 4.059a.363.363 0 0 0 .31.173.352.352 0 0 0 .28-.14L14.415.666A.897.897 0 0 1 15.662.52a.865.865 0 0 1 .147 1.23L6.513 13.332a2.132 2.132 0 0 1-1.683.818Z"
|
|
942
948
|
})));
|
|
943
949
|
};
|
|
944
950
|
|
|
@@ -948,11 +954,12 @@ function _extends$J() { _extends$J = Object.assign || function (target) { for (v
|
|
|
948
954
|
|
|
949
955
|
var SvgClose = function SvgClose(props) {
|
|
950
956
|
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
951
|
-
|
|
957
|
+
width: 14,
|
|
958
|
+
height: 14,
|
|
952
959
|
fill: "currentColor",
|
|
953
960
|
xmlns: "http://www.w3.org/2000/svg"
|
|
954
961
|
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
955
|
-
d: "
|
|
962
|
+
d: "M8.342 7.104a.146.146 0 0 1 0-.206l5.403-5.403A.875.875 0 1 0 12.506.258l-5.403 5.4a.146.146 0 0 1-.206 0L1.494.258A.875.875 0 0 0 .256 1.495l5.402 5.403a.146.146 0 0 1 0 .206L.256 12.508a.875.875 0 0 0 1.238 1.237l5.403-5.403a.146.146 0 0 1 .206 0l5.403 5.403a.875.875 0 0 0 1.238-1.237L8.342 7.104Z"
|
|
956
963
|
})));
|
|
957
964
|
};
|
|
958
965
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"homepage": "https://github.com/up42/up-components#readme",
|
|
103
103
|
"access": "private",
|
|
104
104
|
"engines": {
|
|
105
|
-
"node": ">=
|
|
105
|
+
"node": ">= 16",
|
|
106
106
|
"npm": ">= 7"
|
|
107
107
|
},
|
|
108
108
|
"standard-version": {
|