@up42/up-components 0.12.6 → 0.12.7

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
+ * Use for enabling header title update. Pass SetStateAction from child component
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
+ * Use for enabling header title update. Pass SetStateAction from child component
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
- viewBox: "0 0 12 10",
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: "m11.936 1.966-1.61-1.61a.236.236 0 0 0-.326 0L4.414 5.939 2 3.524a.236.236 0 0 0-.326 0l-1.61 1.61a.228.228 0 0 0 0 .326l4.184 4.184a.228.228 0 0 0 .327 0l7.356-7.356a.226.226 0 0 0 .005-.322Z"
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
- viewBox: "0 0 24 24",
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: "M23.25 23.999a.743.743 0 0 1-.53-.22L12 13.06 1.28 23.779a.744.744 0 0 1-1.06 0 .752.752 0 0 1 0-1.061l10.72-10.72L.22 1.279A.743.743 0 0 1 0 .749c0-.2.078-.389.22-.53a.743.743 0 0 1 .53-.22c.2 0 .389.078.53.22L12 10.938 22.72.218a.744.744 0 0 1 1.06 0 .747.747 0 0 1 0 1.061L13.06 12l10.72 10.72a.752.752 0 0 1 0 1.061.746.746 0 0 1-.53.219Z"
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.6",
3
+ "version": "0.12.7",
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": ">= 14",
105
+ "node": ">= 16",
106
106
  "npm": ">= 7"
107
107
  },
108
108
  "standard-version": {