@uniformdev/design-system 18.19.1-alpha.7 → 18.21.1-alpha.4

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/dist/esm/index.js CHANGED
@@ -1713,9 +1713,12 @@ var PageHeaderSection = ({
1713
1713
  linkManagerComponent,
1714
1714
  ...htmlProps
1715
1715
  }) => {
1716
+ if (linkText && linkProps && !linkManagerComponent) {
1717
+ throw Error("You must provide a linkManagerComponent");
1718
+ }
1716
1719
  return /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionContainer, children: [
1717
1720
  /* @__PURE__ */ jsxs6("section", { css: PageHeaderSectionDetails, children: [
1718
- linkText && linkProps ? /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionLinkContainer, children: [
1721
+ linkText && linkProps && linkManagerComponent ? /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionLinkContainer, children: [
1719
1722
  /* @__PURE__ */ jsx13(Icon, { icon: CgChevronLeft, size: 18, css: PageHeaderSectionLinkIcon }),
1720
1723
  /* @__PURE__ */ jsx13(
1721
1724
  LinkWithRef,
package/dist/index.d.ts CHANGED
@@ -1672,7 +1672,7 @@ type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
1672
1672
  linkProps?: RouteProps;
1673
1673
  linkText?: string;
1674
1674
  level?: LevelProps;
1675
- linkManagerComponent: LinkManagerWithRefType;
1675
+ linkManagerComponent?: LinkManagerWithRefType;
1676
1676
  };
1677
1677
  declare const PageHeaderSection: ({ title, desc, children, linkText, level, linkProps, linkManagerComponent, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1678
1678
 
package/dist/index.js CHANGED
@@ -1891,9 +1891,12 @@ var PageHeaderSection = ({
1891
1891
  linkManagerComponent,
1892
1892
  ...htmlProps
1893
1893
  }) => {
1894
+ if (linkText && linkProps && !linkManagerComponent) {
1895
+ throw Error("You must provide a linkManagerComponent");
1896
+ }
1894
1897
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { css: PageHeaderSectionContainer, children: [
1895
1898
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { css: PageHeaderSectionDetails, children: [
1896
- linkText && linkProps ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { css: PageHeaderSectionLinkContainer, children: [
1899
+ linkText && linkProps && linkManagerComponent ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { css: PageHeaderSectionLinkContainer, children: [
1897
1900
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { icon: import_cg3.CgChevronLeft, size: 18, css: PageHeaderSectionLinkIcon }),
1898
1901
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1899
1902
  LinkWithRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "18.19.1-alpha.7+b4918b2f5",
3
+ "version": "18.21.1-alpha.4+677936e4a",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "lottie-react": "^2.3.1",
36
36
  "param-case": "3.0.4",
37
37
  "react-hotkeys-hook": "4.3.3",
38
- "react-icons": "4.7.1",
38
+ "react-icons": "4.8.0",
39
39
  "react-paginate": "8.1.4",
40
40
  "react-select": "5.7.0",
41
41
  "react-use": "17.4.0",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "b4918b2f547ebb0b889528bbbacbc930cbb66694"
54
+ "gitHead": "677936e4a7af7c7c738893d83a2afa8cddbb7bbc"
55
55
  }