@geotab/zenith 3.6.3-beta.0 → 3.7.0-beta.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/README.md +15 -1
- package/dist/absolute/absolute.d.ts +3 -1
- package/dist/absolute/absolute.js +4 -4
- package/dist/controlledPopup/controlledPopup.d.ts +3 -1
- package/dist/controlledPopup/controlledPopup.js +2 -2
- package/dist/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +8 -2
- package/dist/groupsFilterRaw/groupsFilterRaw.js +43 -9
- package/dist/groupsFilterRaw/groupsFilterTrigger.d.ts +2 -1
- package/dist/groupsFilterRaw/groupsFilterTrigger.js +9 -2
- package/dist/index.css +208 -18
- package/dist/index.d.ts +1 -1
- package/dist/list/hooks/useDragAndDrop.d.ts +3 -1
- package/dist/list/hooks/useDragAndDrop.js +11 -4
- package/dist/menu/components/menuItem.js +12 -2
- package/dist/menu/contexts/pathContext.d.ts +3 -1
- package/dist/menu/contexts/pathProvider.d.ts +1 -1
- package/dist/menu/contexts/pathProvider.js +1 -1
- package/dist/menu/controlledMenu.js +97 -29
- package/dist/nav/nav.d.ts +2 -1
- package/dist/nav/nav.js +3 -2
- package/dist/nav/navEditList/navEditList.js +2 -1
- package/dist/pillExpandable/pillContent.d.ts +2 -1
- package/dist/pillExpandable/pillContent.js +8 -3
- package/dist/pillExpandable/pillExpandable.d.ts +27 -4
- package/dist/pillExpandable/pillExpandable.js +426 -196
- package/dist/pillExpandable/pillExpandablePopoverContent.d.ts +19 -0
- package/dist/pillExpandable/pillExpandablePopoverContent.js +7 -0
- package/dist/pillExpandable/pillExpandableSimple.d.ts +5 -3
- package/dist/pillExpandable/pillExpandableSimple.js +12 -5
- package/dist/summary/summary.js +29 -1
- package/dist/summaryTile/summaryTile.d.ts +2 -1
- package/dist/summaryTile/summaryTile.js +175 -65
- package/dist/summaryTile/summaryTileTrigger.d.ts +1 -1
- package/dist/summaryTile/summaryTileTrigger.js +1 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +2 -1
- package/dist/utils/localization/getSupportedLanguage.d.ts +2 -2
- package/dist/utils/localization/getSupportedLanguage.js +28 -8
- package/dist/utils/localization/languageContext.d.ts +1 -1
- package/esm/absolute/absolute.d.ts +3 -1
- package/esm/absolute/absolute.js +4 -4
- package/esm/controlledPopup/controlledPopup.d.ts +3 -1
- package/esm/controlledPopup/controlledPopup.js +2 -2
- package/esm/groupsFilterRaw/groupsFilterCurrentlySelectedState.js +9 -3
- package/esm/groupsFilterRaw/groupsFilterRaw.js +43 -9
- package/esm/groupsFilterRaw/groupsFilterTrigger.d.ts +2 -1
- package/esm/groupsFilterRaw/groupsFilterTrigger.js +9 -2
- package/esm/index.d.ts +1 -1
- package/esm/list/hooks/useDragAndDrop.d.ts +3 -1
- package/esm/list/hooks/useDragAndDrop.js +11 -4
- package/esm/menu/components/menuItem.js +12 -2
- package/esm/menu/contexts/pathContext.d.ts +3 -1
- package/esm/menu/contexts/pathProvider.d.ts +1 -1
- package/esm/menu/contexts/pathProvider.js +1 -1
- package/esm/menu/controlledMenu.js +98 -30
- package/esm/nav/nav.d.ts +2 -1
- package/esm/nav/nav.js +3 -2
- package/esm/nav/navEditList/navEditList.js +2 -1
- package/esm/pillExpandable/pillContent.d.ts +2 -1
- package/esm/pillExpandable/pillContent.js +8 -3
- package/esm/pillExpandable/pillExpandable.d.ts +27 -4
- package/esm/pillExpandable/pillExpandable.js +427 -197
- package/esm/pillExpandable/pillExpandablePopoverContent.d.ts +19 -0
- package/esm/pillExpandable/pillExpandablePopoverContent.js +3 -0
- package/esm/pillExpandable/pillExpandableSimple.d.ts +5 -3
- package/esm/pillExpandable/pillExpandableSimple.js +12 -5
- package/esm/summary/summary.js +29 -1
- package/esm/summaryTile/summaryTile.d.ts +2 -1
- package/esm/summaryTile/summaryTile.js +140 -43
- package/esm/summaryTile/summaryTileTrigger.d.ts +1 -1
- package/esm/summaryTile/summaryTileTrigger.js +1 -1
- package/esm/toggleButtonRaw/toggleButtonRaw.js +2 -1
- package/esm/utils/localization/getSupportedLanguage.d.ts +2 -2
- package/esm/utils/localization/getSupportedLanguage.js +28 -8
- package/esm/utils/localization/languageContext.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./pillExpandable.less";
|
|
2
2
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
3
|
+
import { Exclusive } from "../commonHelpers/types/exclusive";
|
|
3
4
|
import React, { FC, ReactNode } from "react";
|
|
4
5
|
import { TViewMoreButton } from "./getProps";
|
|
5
6
|
import { IIcon } from "../icons/icon";
|
|
@@ -20,6 +21,7 @@ export interface IBaseData {
|
|
|
20
21
|
count?: TLazyContent<number>;
|
|
21
22
|
mainAction?: TLazyContent<IPillExpandableAction>;
|
|
22
23
|
secondaryAction?: TLazyContent<IPillExpandableAction>;
|
|
24
|
+
tertiaryAction?: TLazyContent<IPillExpandableAction>;
|
|
23
25
|
getData?: undefined;
|
|
24
26
|
}
|
|
25
27
|
export interface IPromisedBaseData {
|
|
@@ -29,16 +31,20 @@ export interface IPromisedBaseData {
|
|
|
29
31
|
count?: undefined;
|
|
30
32
|
mainAction?: undefined;
|
|
31
33
|
secondaryAction?: undefined;
|
|
34
|
+
tertiaryAction?: undefined;
|
|
32
35
|
}
|
|
33
36
|
type TProps = IBaseData | IPromisedBaseData;
|
|
34
|
-
export
|
|
37
|
+
export type TPopoverVariant = "default" | "placeholder";
|
|
38
|
+
export type TPopoverSize = "small" | "medium" | "large";
|
|
39
|
+
type TPillTypeBase = "error" | "success" | "warning" | "info" | "default";
|
|
40
|
+
export type TPillType = TPillTypeBase | "upsell";
|
|
41
|
+
/** Base props shared by all PillExpandable variants */
|
|
42
|
+
export interface IPillExpandableBase extends IZenComponentProps {
|
|
35
43
|
uniquePills?: number;
|
|
36
44
|
text: string;
|
|
37
|
-
type?: "error" | "success" | "warning" | "info" | "default";
|
|
38
45
|
viewMoreAction?: TViewMoreButton;
|
|
39
46
|
className?: string;
|
|
40
47
|
popupClassName?: string;
|
|
41
|
-
icon?: FC<IIcon> | false;
|
|
42
48
|
secondaryIcon?: FC<IIcon> | false;
|
|
43
49
|
isFlat?: boolean;
|
|
44
50
|
isLoading?: boolean;
|
|
@@ -47,8 +53,25 @@ export interface IPillExpandable extends IZenComponentProps {
|
|
|
47
53
|
isBeta?: boolean;
|
|
48
54
|
hideCounterNumber?: boolean;
|
|
49
55
|
autoExpandChildren?: boolean;
|
|
56
|
+
/** Popover size: small (220px), medium (320px), large (420px). Default: "medium" */
|
|
57
|
+
popoverSize?: TPopoverSize;
|
|
58
|
+
/** Title displayed in the popover title bar. If provided, the title bar will be shown. */
|
|
59
|
+
title?: string;
|
|
60
|
+
}
|
|
61
|
+
/** Props for standard PillExpandable (non-upsell) */
|
|
62
|
+
interface IPillExpandableStandard extends IPillExpandableBase {
|
|
63
|
+
type?: TPillTypeBase;
|
|
64
|
+
icon?: FC<IIcon> | false;
|
|
65
|
+
}
|
|
66
|
+
/** Props for upsell PillExpandable - icon and children are not allowed */
|
|
67
|
+
interface IPillExpandableUpsell extends IPillExpandableBase {
|
|
68
|
+
type: "upsell";
|
|
69
|
+
icon?: never;
|
|
70
|
+
children?: never;
|
|
50
71
|
}
|
|
72
|
+
/** Combined type using Exclusive to prevent mixing upsell with standard props */
|
|
73
|
+
export type IPillExpandable = Exclusive<IPillExpandableStandard, IPillExpandableUpsell>;
|
|
51
74
|
type TPillExpandable = IPillExpandable & TProps;
|
|
52
|
-
export declare const PillExpandable: React.MemoExoticComponent<({ children, errorHandler, getData, text, description, date, count, mainAction, secondaryAction, viewMoreAction, uniquePills, type, className, popupClassName, isLoading, isFlat, icon, secondaryIcon, isBeta, loadingWidth, hideCounterNumber, autoExpandChildren }: TPillExpandable) => import("react/jsx-runtime").JSX.Element>;
|
|
75
|
+
export declare const PillExpandable: React.MemoExoticComponent<({ children, errorHandler, getData, text, description, date, count, mainAction, secondaryAction, tertiaryAction, viewMoreAction, uniquePills, type, className, popupClassName, isLoading, isFlat, icon, secondaryIcon, isBeta, loadingWidth, hideCounterNumber, autoExpandChildren, popoverSize, title }: TPillExpandable) => import("react/jsx-runtime").JSX.Element>;
|
|
53
76
|
export declare const TRANSLATIONS: string[];
|
|
54
77
|
export {};
|