@ssa-ui-kit/core 2.25.0 → 2.26.1
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/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 +27 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
@@ -9331,7 +9331,8 @@ const useChartInfo = () => {
|
|
|
9331
9331
|
symbol: ''
|
|
9332
9332
|
},
|
|
9333
9333
|
yaxis: 'y2',
|
|
9334
|
-
connectgaps: true
|
|
9334
|
+
connectgaps: true,
|
|
9335
|
+
showlegend: true
|
|
9335
9336
|
};
|
|
9336
9337
|
if (!('hovertemplate' in item)) {
|
|
9337
9338
|
extraParams.hovertemplate = `${item.name}: %{y:}${valueDimension}` + '<extra></extra>';
|
|
@@ -11288,6 +11289,7 @@ const CollapsibleNavToggle = ({
|
|
|
11288
11289
|
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavToggleWrapper, {
|
|
11289
11290
|
children: (0,jsx_runtime_namespaceObject.jsxs)("label", {
|
|
11290
11291
|
htmlFor: id,
|
|
11292
|
+
"data-testid": "collapsible-nav-toggle-label",
|
|
11291
11293
|
css: CollapsibleNavToggle_ref,
|
|
11292
11294
|
children: [(0,jsx_runtime_namespaceObject.jsx)("span", {}), (0,jsx_runtime_namespaceObject.jsx)("span", {}), (0,jsx_runtime_namespaceObject.jsx)("span", {})]
|
|
11293
11295
|
})
|
|
@@ -11313,11 +11315,13 @@ const CollapsibleNavBarContext = /*#__PURE__*/(0,external_react_namespaceObject.
|
|
|
11313
11315
|
const CollapsibleNavBarProvider = ({
|
|
11314
11316
|
children,
|
|
11315
11317
|
theme,
|
|
11316
|
-
subMenuMaxWidth
|
|
11318
|
+
subMenuMaxWidth,
|
|
11319
|
+
showIconTooltip
|
|
11317
11320
|
}) => (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarContext.Provider, {
|
|
11318
11321
|
value: {
|
|
11319
11322
|
theme,
|
|
11320
|
-
subMenuMaxWidth
|
|
11323
|
+
subMenuMaxWidth,
|
|
11324
|
+
showIconTooltip
|
|
11321
11325
|
},
|
|
11322
11326
|
children: children
|
|
11323
11327
|
});
|
|
@@ -11341,17 +11345,20 @@ const NavContentToggle = ({
|
|
|
11341
11345
|
}) => {
|
|
11342
11346
|
const globalTheme = (0,react_namespaceObject.useTheme)();
|
|
11343
11347
|
const {
|
|
11344
|
-
theme
|
|
11348
|
+
theme,
|
|
11349
|
+
showIconTooltip
|
|
11345
11350
|
} = useCollapsibleNavBarContext();
|
|
11346
11351
|
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
11347
11352
|
css: ContentToggle(theme, isChecked),
|
|
11348
11353
|
children: (0,jsx_runtime_namespaceObject.jsx)("label", {
|
|
11349
11354
|
htmlFor: id,
|
|
11355
|
+
"data-testid": "collapsible-nav-content-toggle-label",
|
|
11350
11356
|
css: CollapsibleNavContentToggle_ref,
|
|
11351
11357
|
children: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
11352
11358
|
name: isChecked ? 'carrot-left' : 'carrot-right',
|
|
11353
11359
|
color: theme === 'default' ? '#000' : globalTheme.colors.greyDarker,
|
|
11354
|
-
size: 14
|
|
11360
|
+
size: 14,
|
|
11361
|
+
tooltip: showIconTooltip ? undefined : ''
|
|
11355
11362
|
})
|
|
11356
11363
|
})
|
|
11357
11364
|
});
|
|
@@ -11862,6 +11869,7 @@ function TriggerIcon_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
|
|
|
11862
11869
|
|
|
11863
11870
|
|
|
11864
11871
|
|
|
11872
|
+
|
|
11865
11873
|
var TriggerIcon_ref = true ? {
|
|
11866
11874
|
name: "1fojab0",
|
|
11867
11875
|
styles: "width:auto;min-width:25px;justify-content:center;overflow:visible;position:relative;height:26px"
|
|
@@ -11873,18 +11881,23 @@ const TriggerIcon = ({
|
|
|
11873
11881
|
CustomIcon
|
|
11874
11882
|
}) => {
|
|
11875
11883
|
const theme = (0,react_namespaceObject.useTheme)();
|
|
11884
|
+
const {
|
|
11885
|
+
showIconTooltip
|
|
11886
|
+
} = useCollapsibleNavBarContext();
|
|
11876
11887
|
return (0,jsx_runtime_namespaceObject.jsx)(Wrapper_Wrapper, {
|
|
11877
11888
|
css: TriggerIcon_ref,
|
|
11878
11889
|
className: "trigger-icon",
|
|
11879
11890
|
children: CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(CustomIcon, {
|
|
11880
11891
|
size: iconSize,
|
|
11881
11892
|
className: className,
|
|
11882
|
-
color: theme.colors.grey
|
|
11893
|
+
color: theme.colors.grey,
|
|
11894
|
+
showIconTooltip: showIconTooltip
|
|
11883
11895
|
}) : (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
11884
11896
|
name: iconName,
|
|
11885
11897
|
color: theme.colors.grey,
|
|
11886
11898
|
size: iconSize,
|
|
11887
|
-
className: className
|
|
11899
|
+
className: className,
|
|
11900
|
+
tooltip: showIconTooltip ? undefined : ''
|
|
11888
11901
|
})
|
|
11889
11902
|
});
|
|
11890
11903
|
};
|
|
@@ -11911,7 +11924,8 @@ const ItemAccordionTitle = ({
|
|
|
11911
11924
|
useMatchPattern
|
|
11912
11925
|
}) => {
|
|
11913
11926
|
const {
|
|
11914
|
-
theme
|
|
11927
|
+
theme,
|
|
11928
|
+
showIconTooltip
|
|
11915
11929
|
} = useCollapsibleNavBarContext();
|
|
11916
11930
|
const linkRef = (0,external_react_namespaceObject.useRef)(null);
|
|
11917
11931
|
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
@@ -11971,7 +11985,9 @@ const ItemAccordionTitle = ({
|
|
|
11971
11985
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11972
11986
|
,
|
|
11973
11987
|
ref: linkRef,
|
|
11974
|
-
children: [item.CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(item.CustomIcon, {
|
|
11988
|
+
children: [item.CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(item.CustomIcon, {
|
|
11989
|
+
showIconTooltip: showIconTooltip
|
|
11990
|
+
}) : (0,jsx_runtime_namespaceObject.jsx)(Icon, {}), (0,jsx_runtime_namespaceObject.jsx)(AccordionTitle, {
|
|
11975
11991
|
...data,
|
|
11976
11992
|
css: styles_AccordionTitle(theme)
|
|
11977
11993
|
})]
|
|
@@ -12183,6 +12199,7 @@ const CollapsibleNavBar = ({
|
|
|
12183
12199
|
renderLogo,
|
|
12184
12200
|
theme = 'default',
|
|
12185
12201
|
subMenuMaxWidth,
|
|
12202
|
+
showIconTooltip = false,
|
|
12186
12203
|
className,
|
|
12187
12204
|
useMatchPattern,
|
|
12188
12205
|
onChange
|
|
@@ -12207,6 +12224,7 @@ const CollapsibleNavBar = ({
|
|
|
12207
12224
|
return (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarProvider, {
|
|
12208
12225
|
theme: theme,
|
|
12209
12226
|
subMenuMaxWidth: subMenuMaxWidth,
|
|
12227
|
+
showIconTooltip: showIconTooltip,
|
|
12210
12228
|
children: (0,jsx_runtime_namespaceObject.jsxs)(CollapsibleNavBarBase, {
|
|
12211
12229
|
className: className + (isChecked ? ' opened' : ''),
|
|
12212
12230
|
"data-theme": theme,
|