@geotab/zenith 3.10.0-beta.1 → 3.10.0-beta.3

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.
Files changed (39) hide show
  1. package/README.md +9 -6
  2. package/dist/betaPill/betaPill.d.ts +9 -4
  3. package/dist/betaPill/betaPill.js +8 -7
  4. package/dist/card/card.d.ts +2 -1
  5. package/dist/card/card.js +4 -2
  6. package/dist/card/components/title.d.ts +3 -1
  7. package/dist/card/components/title.js +5 -3
  8. package/dist/checkboxListWithAction/checkboxListWithAction.js +2 -1
  9. package/dist/dropdown/dropdown.js +1 -1
  10. package/dist/dropdownRaw/dropdownList.d.ts +4 -2
  11. package/dist/dropdownRaw/dropdownList.js +15 -36
  12. package/dist/dropdownRaw/dropdownRaw.js +8 -22
  13. package/dist/dropdownRaw/stateReducer/stateReducer.d.ts +1 -0
  14. package/dist/dropdownRaw/stateReducer/stateReducer.js +13 -14
  15. package/dist/dropdownRaw/stateReducer/stateReducerHelper.d.ts +1 -2
  16. package/dist/dropdownRaw/stateReducer/stateReducerHelper.js +5 -12
  17. package/dist/headerTitle/headerTitle.d.ts +9 -3
  18. package/dist/headerTitle/headerTitle.js +3 -2
  19. package/dist/index.css +34 -2
  20. package/dist/index.d.ts +1 -1
  21. package/esm/betaPill/betaPill.d.ts +9 -4
  22. package/esm/betaPill/betaPill.js +8 -7
  23. package/esm/card/card.d.ts +2 -1
  24. package/esm/card/card.js +4 -2
  25. package/esm/card/components/title.d.ts +3 -1
  26. package/esm/card/components/title.js +5 -3
  27. package/esm/checkboxListWithAction/checkboxListWithAction.js +2 -1
  28. package/esm/dropdown/dropdown.js +1 -1
  29. package/esm/dropdownRaw/dropdownList.d.ts +4 -2
  30. package/esm/dropdownRaw/dropdownList.js +15 -36
  31. package/esm/dropdownRaw/dropdownRaw.js +9 -23
  32. package/esm/dropdownRaw/stateReducer/stateReducer.d.ts +1 -0
  33. package/esm/dropdownRaw/stateReducer/stateReducer.js +14 -15
  34. package/esm/dropdownRaw/stateReducer/stateReducerHelper.d.ts +1 -2
  35. package/esm/dropdownRaw/stateReducer/stateReducerHelper.js +3 -10
  36. package/esm/headerTitle/headerTitle.d.ts +9 -3
  37. package/esm/headerTitle/headerTitle.js +3 -2
  38. package/esm/index.d.ts +1 -1
  39. package/package.json +1 -1
@@ -7,7 +7,8 @@ import { useDriveClassName } from "../utils/theme/useDriveClassName";
7
7
  import { HeaderBack } from "../header/headerBack";
8
8
  import { Bookmark } from "../bookmark/bookmark";
9
9
  export const HeaderTitleDisplayName = "PageHeader";
10
- export const HeaderTitle = ({ id, children, className, pageName, subline, isBeta, isMobile: isMobileProp, allowBookmarkWithBack, feedBackAction, betaOptionAction, betaPillName, betaPillDescription }) => {
10
+ export const HeaderTitle = (props) => {
11
+ const { id, children, className, pageName, subline, isBeta, isMobile: isMobileProp, allowBookmarkWithBack, feedBackAction, betaOptionAction, betaPillName, betaPillDescription } = props;
11
12
  const isMobile = useMobile();
12
13
  const driveMainLineClassName = useDriveClassName("zen-page-header__main-line");
13
14
  const drivePageNameClassName = useDriveClassName("zen-page-header__page-name");
@@ -30,7 +31,7 @@ export const HeaderTitle = ({ id, children, className, pageName, subline, isBeta
30
31
  });
31
32
  return [b, b.length && !allowBookmarkWithBack ? o.filter(el => el.type !== Bookmark) : o];
32
33
  }, [children, allowBookmarkWithBack]);
33
- return (_jsxs("header", { id: id, className: clsNames, children: [_jsxs("div", { className: classNames(["zen-page-header__main-line", driveMainLineClassName || ""]), children: [back.length ? back : null, pageName ? _jsx("h1", { className: classNames(["zen-page-header__page-name", drivePageNameClassName || ""]), children: pageName }) : null, isBeta ? (_jsx(BetaPill, { feedbackAction: feedBackAction, betaOptionAction: betaOptionAction, name: betaPillName, description: betaPillDescription, className: "zen-page-header__beta" })) : null, other.length ? other : null] }), subline || ""] }));
34
+ return (_jsxs("header", { id: id, className: clsNames, children: [_jsxs("div", { className: classNames(["zen-page-header__main-line", driveMainLineClassName || ""]), children: [back.length ? back : null, pageName ? _jsx("h1", { className: classNames(["zen-page-header__page-name", drivePageNameClassName || ""]), children: pageName }) : null, isBeta ? (_jsx(BetaPill, Object.assign({ feedbackAction: feedBackAction, betaOptionAction: betaOptionAction, className: "zen-page-header__beta" }, { name: betaPillName, description: betaPillDescription }))) : null, other.length ? other : null] }), subline || ""] }));
34
35
  };
35
36
  HeaderTitle.displayName = HeaderTitleDisplayName;
36
37
  export const TRANSLATIONS = [...BetaPillTranslations];
package/esm/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export { type ICardButton, CardButton } from "./card/components/cardButton/cardB
20
20
  export { type ICardToggle, CardToggle } from "./card/components/cardToggle/cardToggle";
21
21
  export { type IContent, Content } from "./card/components/content";
22
22
  export { type TCardStatus, Status } from "./card/components/status";
23
- export { Title } from "./card/components/title";
23
+ export { type THeadingTag, Title } from "./card/components/title";
24
24
  export { TitleLink } from "./card/components/titleLink";
25
25
  export { getDefaultFullWidthValue } from "./card/helpers/getDefaultFullWidthValue";
26
26
  export { getIconFromStatus } from "./card/helpers/getIconFromStatus";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geotab/zenith",
3
- "version": "3.10.0-beta.1",
3
+ "version": "3.10.0-beta.3",
4
4
  "description": "Zenith components library on React",
5
5
  "main": "dist/index.js",
6
6
  "types": "esm/index.d.ts",