@ssa-ui-kit/core 2.26.0 → 2.27.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/dist/components/Charts/PieChart/types.d.ts +2 -0
- package/dist/components/CollapsibleNavBar/CollapsibleNavBar.d.ts +1 -1
- package/dist/components/CollapsibleNavBar/CollapsibleNavBarContext.d.ts +2 -2
- package/dist/components/CollapsibleNavBar/components/TriggerIcon.d.ts +3 -1
- package/dist/components/CollapsibleNavBar/types.d.ts +1 -0
- package/dist/components/NavBar/types.d.ts +1 -0
- package/dist/index.js +29 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -6,6 +6,7 @@ export interface PieChartTooltipProps {
|
|
|
6
6
|
isEnabled?: boolean;
|
|
7
7
|
isFullscreenEnabled?: boolean;
|
|
8
8
|
dimension?: string;
|
|
9
|
+
className?: string;
|
|
9
10
|
outputType?: 'value' | 'value+dimension' | 'dimension' | 'percentage' | 'value+percentage' | 'percentage+value' | 'value+dimension+percentage';
|
|
10
11
|
valueRoundingDigits?: number | false;
|
|
11
12
|
percentageRoundingDigits?: number;
|
|
@@ -57,4 +58,5 @@ export type PieChartTooltipViewProps = {
|
|
|
57
58
|
x: number;
|
|
58
59
|
y: number;
|
|
59
60
|
} | null;
|
|
61
|
+
className?: string;
|
|
60
62
|
};
|
|
@@ -2,4 +2,4 @@ import { CollapsibleNavBarExtendedProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* UI Component that shows the collapsible navigation bar
|
|
4
4
|
*/
|
|
5
|
-
export declare const CollapsibleNavBar: ({ items, renderLogo, theme, subMenuMaxWidth, className, useMatchPattern, onChange, }: CollapsibleNavBarExtendedProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const CollapsibleNavBar: ({ items, renderLogo, theme, subMenuMaxWidth, showIconTooltip, className, useMatchPattern, onChange, }: CollapsibleNavBarExtendedProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollapsibleNavBarExtendedProps } from './types';
|
|
2
|
-
type ContextType = Pick<CollapsibleNavBarExtendedProps, 'theme' | 'subMenuMaxWidth'>;
|
|
2
|
+
type ContextType = Pick<CollapsibleNavBarExtendedProps, 'theme' | 'subMenuMaxWidth' | 'showIconTooltip'>;
|
|
3
3
|
export declare const CollapsibleNavBarContext: import("react").Context<ContextType>;
|
|
4
|
-
export declare const CollapsibleNavBarProvider: ({ children, theme, subMenuMaxWidth, }: {
|
|
4
|
+
export declare const CollapsibleNavBarProvider: ({ children, theme, subMenuMaxWidth, showIconTooltip, }: {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
} & ContextType) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const useCollapsibleNavBarContext: () => ContextType;
|
|
@@ -3,5 +3,7 @@ export declare const TriggerIcon: ({ iconName, iconSize, className, CustomIcon,
|
|
|
3
3
|
iconName: keyof MapIconsType;
|
|
4
4
|
iconSize?: number;
|
|
5
5
|
className?: string;
|
|
6
|
-
CustomIcon?: (props: Omit<SVGProps, "fill">
|
|
6
|
+
CustomIcon?: (props: Omit<SVGProps, "fill"> & {
|
|
7
|
+
showIconTooltip?: boolean;
|
|
8
|
+
}) => JSX.Element;
|
|
7
9
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -16,6 +16,7 @@ export interface CollapsibleNavBarExtendedProps<T extends NavBarExtendedSubItem
|
|
|
16
16
|
theme?: 'default' | 'light';
|
|
17
17
|
className?: string;
|
|
18
18
|
subMenuMaxWidth?: CSSProperties['maxWidth'];
|
|
19
|
+
showIconTooltip?: boolean;
|
|
19
20
|
useMatchPattern?: (prefix: string) => string | PathPattern<string>;
|
|
20
21
|
onChange?: (isChecked: boolean) => void;
|
|
21
22
|
}
|
package/dist/index.js
CHANGED
|
@@ -6771,7 +6771,8 @@ const PieChartTooltip = /*#__PURE__*/(0,external_react_namespaceObject.forwardRe
|
|
|
6771
6771
|
dimension,
|
|
6772
6772
|
isFullscreenMode,
|
|
6773
6773
|
position,
|
|
6774
|
-
isOpen
|
|
6774
|
+
isOpen,
|
|
6775
|
+
className
|
|
6775
6776
|
}, ref) {
|
|
6776
6777
|
const theme = (0,react_namespaceObject.useTheme)();
|
|
6777
6778
|
if (!isOpen) {
|
|
@@ -6797,6 +6798,7 @@ const PieChartTooltip = /*#__PURE__*/(0,external_react_namespaceObject.forwardRe
|
|
|
6797
6798
|
visibility: point ? 'visible' : 'hidden',
|
|
6798
6799
|
zIndex: 10
|
|
6799
6800
|
}, true ? "" : 0, true ? "" : 0),
|
|
6801
|
+
className: className,
|
|
6800
6802
|
children: point && (0,jsx_runtime_namespaceObject.jsxs)((external_react_default()).Fragment, {
|
|
6801
6803
|
children: [(0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
6802
6804
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
@@ -7037,6 +7039,7 @@ const PieChartInternal = ({
|
|
|
7037
7039
|
position: tooltipPosition,
|
|
7038
7040
|
dimension: dimension,
|
|
7039
7041
|
outputType: outputType,
|
|
7042
|
+
className: tooltipProps?.className,
|
|
7040
7043
|
isFullscreenMode: isFullscreenMode,
|
|
7041
7044
|
ref: refs.setFloating
|
|
7042
7045
|
})
|
|
@@ -11289,6 +11292,7 @@ const CollapsibleNavToggle = ({
|
|
|
11289
11292
|
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavToggleWrapper, {
|
|
11290
11293
|
children: (0,jsx_runtime_namespaceObject.jsxs)("label", {
|
|
11291
11294
|
htmlFor: id,
|
|
11295
|
+
"data-testid": "collapsible-nav-toggle-label",
|
|
11292
11296
|
css: CollapsibleNavToggle_ref,
|
|
11293
11297
|
children: [(0,jsx_runtime_namespaceObject.jsx)("span", {}), (0,jsx_runtime_namespaceObject.jsx)("span", {}), (0,jsx_runtime_namespaceObject.jsx)("span", {})]
|
|
11294
11298
|
})
|
|
@@ -11314,11 +11318,13 @@ const CollapsibleNavBarContext = /*#__PURE__*/(0,external_react_namespaceObject.
|
|
|
11314
11318
|
const CollapsibleNavBarProvider = ({
|
|
11315
11319
|
children,
|
|
11316
11320
|
theme,
|
|
11317
|
-
subMenuMaxWidth
|
|
11321
|
+
subMenuMaxWidth,
|
|
11322
|
+
showIconTooltip
|
|
11318
11323
|
}) => (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarContext.Provider, {
|
|
11319
11324
|
value: {
|
|
11320
11325
|
theme,
|
|
11321
|
-
subMenuMaxWidth
|
|
11326
|
+
subMenuMaxWidth,
|
|
11327
|
+
showIconTooltip
|
|
11322
11328
|
},
|
|
11323
11329
|
children: children
|
|
11324
11330
|
});
|
|
@@ -11342,17 +11348,20 @@ const NavContentToggle = ({
|
|
|
11342
11348
|
}) => {
|
|
11343
11349
|
const globalTheme = (0,react_namespaceObject.useTheme)();
|
|
11344
11350
|
const {
|
|
11345
|
-
theme
|
|
11351
|
+
theme,
|
|
11352
|
+
showIconTooltip
|
|
11346
11353
|
} = useCollapsibleNavBarContext();
|
|
11347
11354
|
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
11348
11355
|
css: ContentToggle(theme, isChecked),
|
|
11349
11356
|
children: (0,jsx_runtime_namespaceObject.jsx)("label", {
|
|
11350
11357
|
htmlFor: id,
|
|
11358
|
+
"data-testid": "collapsible-nav-content-toggle-label",
|
|
11351
11359
|
css: CollapsibleNavContentToggle_ref,
|
|
11352
11360
|
children: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
11353
11361
|
name: isChecked ? 'carrot-left' : 'carrot-right',
|
|
11354
11362
|
color: theme === 'default' ? '#000' : globalTheme.colors.greyDarker,
|
|
11355
|
-
size: 14
|
|
11363
|
+
size: 14,
|
|
11364
|
+
tooltip: showIconTooltip ? undefined : ''
|
|
11356
11365
|
})
|
|
11357
11366
|
})
|
|
11358
11367
|
});
|
|
@@ -11863,6 +11872,7 @@ function TriggerIcon_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
|
|
|
11863
11872
|
|
|
11864
11873
|
|
|
11865
11874
|
|
|
11875
|
+
|
|
11866
11876
|
var TriggerIcon_ref = true ? {
|
|
11867
11877
|
name: "1fojab0",
|
|
11868
11878
|
styles: "width:auto;min-width:25px;justify-content:center;overflow:visible;position:relative;height:26px"
|
|
@@ -11874,18 +11884,23 @@ const TriggerIcon = ({
|
|
|
11874
11884
|
CustomIcon
|
|
11875
11885
|
}) => {
|
|
11876
11886
|
const theme = (0,react_namespaceObject.useTheme)();
|
|
11887
|
+
const {
|
|
11888
|
+
showIconTooltip
|
|
11889
|
+
} = useCollapsibleNavBarContext();
|
|
11877
11890
|
return (0,jsx_runtime_namespaceObject.jsx)(Wrapper_Wrapper, {
|
|
11878
11891
|
css: TriggerIcon_ref,
|
|
11879
11892
|
className: "trigger-icon",
|
|
11880
11893
|
children: CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(CustomIcon, {
|
|
11881
11894
|
size: iconSize,
|
|
11882
11895
|
className: className,
|
|
11883
|
-
color: theme.colors.grey
|
|
11896
|
+
color: theme.colors.grey,
|
|
11897
|
+
showIconTooltip: showIconTooltip
|
|
11884
11898
|
}) : (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
11885
11899
|
name: iconName,
|
|
11886
11900
|
color: theme.colors.grey,
|
|
11887
11901
|
size: iconSize,
|
|
11888
|
-
className: className
|
|
11902
|
+
className: className,
|
|
11903
|
+
tooltip: showIconTooltip ? undefined : ''
|
|
11889
11904
|
})
|
|
11890
11905
|
});
|
|
11891
11906
|
};
|
|
@@ -11912,7 +11927,8 @@ const ItemAccordionTitle = ({
|
|
|
11912
11927
|
useMatchPattern
|
|
11913
11928
|
}) => {
|
|
11914
11929
|
const {
|
|
11915
|
-
theme
|
|
11930
|
+
theme,
|
|
11931
|
+
showIconTooltip
|
|
11916
11932
|
} = useCollapsibleNavBarContext();
|
|
11917
11933
|
const linkRef = (0,external_react_namespaceObject.useRef)(null);
|
|
11918
11934
|
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
@@ -11972,7 +11988,9 @@ const ItemAccordionTitle = ({
|
|
|
11972
11988
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11973
11989
|
,
|
|
11974
11990
|
ref: linkRef,
|
|
11975
|
-
children: [item.CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(item.CustomIcon, {
|
|
11991
|
+
children: [item.CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(item.CustomIcon, {
|
|
11992
|
+
showIconTooltip: showIconTooltip
|
|
11993
|
+
}) : (0,jsx_runtime_namespaceObject.jsx)(Icon, {}), (0,jsx_runtime_namespaceObject.jsx)(AccordionTitle, {
|
|
11976
11994
|
...data,
|
|
11977
11995
|
css: styles_AccordionTitle(theme)
|
|
11978
11996
|
})]
|
|
@@ -12184,6 +12202,7 @@ const CollapsibleNavBar = ({
|
|
|
12184
12202
|
renderLogo,
|
|
12185
12203
|
theme = 'default',
|
|
12186
12204
|
subMenuMaxWidth,
|
|
12205
|
+
showIconTooltip = false,
|
|
12187
12206
|
className,
|
|
12188
12207
|
useMatchPattern,
|
|
12189
12208
|
onChange
|
|
@@ -12208,6 +12227,7 @@ const CollapsibleNavBar = ({
|
|
|
12208
12227
|
return (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarProvider, {
|
|
12209
12228
|
theme: theme,
|
|
12210
12229
|
subMenuMaxWidth: subMenuMaxWidth,
|
|
12230
|
+
showIconTooltip: showIconTooltip,
|
|
12211
12231
|
children: (0,jsx_runtime_namespaceObject.jsxs)(CollapsibleNavBarBase, {
|
|
12212
12232
|
className: className + (isChecked ? ' opened' : ''),
|
|
12213
12233
|
"data-theme": theme,
|