@gen3/frontend 0.11.13 → 0.11.16
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/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +12 -12
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +12 -12
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +1 -1
- package/dist/dts/features/Navigation/NavigationBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationBar.js +3 -2
- package/dist/dts/features/Navigation/NavigationBar.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -81,53 +81,53 @@ export declare const createMantineTheme: (fonts: Fonts, colors: Record<string, T
|
|
|
81
81
|
} | undefined;
|
|
82
82
|
radius?: {
|
|
83
83
|
[x: string & {}]: string | undefined;
|
|
84
|
-
xl?: string | undefined;
|
|
85
|
-
xs?: string | undefined;
|
|
86
84
|
sm?: string | undefined;
|
|
85
|
+
xs?: string | undefined;
|
|
87
86
|
md?: string | undefined;
|
|
88
87
|
lg?: string | undefined;
|
|
88
|
+
xl?: string | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
defaultRadius?: import("@mantine/core").MantineRadius | undefined;
|
|
91
91
|
spacing?: {
|
|
92
92
|
[x: number]: string | undefined;
|
|
93
93
|
[x: string & {}]: string | undefined;
|
|
94
|
-
xl?: string | undefined;
|
|
95
|
-
xs?: string | undefined;
|
|
96
94
|
sm?: string | undefined;
|
|
95
|
+
xs?: string | undefined;
|
|
97
96
|
md?: string | undefined;
|
|
98
97
|
lg?: string | undefined;
|
|
98
|
+
xl?: string | undefined;
|
|
99
99
|
} | undefined;
|
|
100
100
|
fontSizes?: {
|
|
101
101
|
[x: string & {}]: string | undefined;
|
|
102
|
-
xl?: string | undefined;
|
|
103
|
-
xs?: string | undefined;
|
|
104
102
|
sm?: string | undefined;
|
|
103
|
+
xs?: string | undefined;
|
|
105
104
|
md?: string | undefined;
|
|
106
105
|
lg?: string | undefined;
|
|
106
|
+
xl?: string | undefined;
|
|
107
107
|
} | undefined;
|
|
108
108
|
lineHeights?: {
|
|
109
109
|
[x: string & {}]: string | undefined;
|
|
110
|
-
xl?: string | undefined;
|
|
111
|
-
xs?: string | undefined;
|
|
112
110
|
sm?: string | undefined;
|
|
111
|
+
xs?: string | undefined;
|
|
113
112
|
md?: string | undefined;
|
|
114
113
|
lg?: string | undefined;
|
|
114
|
+
xl?: string | undefined;
|
|
115
115
|
} | undefined;
|
|
116
116
|
breakpoints?: {
|
|
117
117
|
[x: string & {}]: string | undefined;
|
|
118
|
-
xl?: string | undefined;
|
|
119
|
-
xs?: string | undefined;
|
|
120
118
|
sm?: string | undefined;
|
|
119
|
+
xs?: string | undefined;
|
|
121
120
|
md?: string | undefined;
|
|
122
121
|
lg?: string | undefined;
|
|
122
|
+
xl?: string | undefined;
|
|
123
123
|
} | undefined;
|
|
124
124
|
shadows?: {
|
|
125
125
|
[x: string & {}]: string | undefined;
|
|
126
|
-
xl?: string | undefined;
|
|
127
|
-
xs?: string | undefined;
|
|
128
126
|
sm?: string | undefined;
|
|
127
|
+
xs?: string | undefined;
|
|
129
128
|
md?: string | undefined;
|
|
130
129
|
lg?: string | undefined;
|
|
130
|
+
xl?: string | undefined;
|
|
131
131
|
} | undefined;
|
|
132
132
|
respectReducedMotion?: boolean | undefined;
|
|
133
133
|
cursorType?: "default" | "pointer" | undefined;
|
|
@@ -4,40 +4,40 @@ declare const meta: {
|
|
|
4
4
|
component: React.FC<{
|
|
5
5
|
title: string;
|
|
6
6
|
type: string;
|
|
7
|
-
href: string;
|
|
8
7
|
count?: number | undefined;
|
|
9
8
|
description: string;
|
|
9
|
+
href: string;
|
|
10
10
|
icon: string | React.ReactElement;
|
|
11
|
-
|
|
12
|
-
readonly selectionScreen?: React.FC | undefined;
|
|
13
|
-
hasDemo?: boolean | undefined;
|
|
11
|
+
tags?: Array<string> | undefined;
|
|
14
12
|
loginRequired: boolean;
|
|
13
|
+
hasDemo?: boolean | undefined;
|
|
14
|
+
btnText?: string | undefined;
|
|
15
15
|
appId?: string | undefined;
|
|
16
16
|
countIndex?: string | undefined;
|
|
17
17
|
countUnits?: string | undefined;
|
|
18
18
|
noDataTooltip?: string | undefined;
|
|
19
19
|
cardType?: "regular" | "compact" | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
readonly rightComponent?: React.FC | undefined;
|
|
21
|
+
readonly selectionScreen?: React.FC | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
24
24
|
title: string;
|
|
25
25
|
type: string;
|
|
26
|
-
href: string;
|
|
27
26
|
count?: number | undefined;
|
|
28
27
|
description: string;
|
|
28
|
+
href: string;
|
|
29
29
|
icon: string | React.ReactElement;
|
|
30
|
-
|
|
31
|
-
readonly selectionScreen?: React.FC | undefined;
|
|
32
|
-
hasDemo?: boolean | undefined;
|
|
30
|
+
tags?: Array<string> | undefined;
|
|
33
31
|
loginRequired: boolean;
|
|
32
|
+
hasDemo?: boolean | undefined;
|
|
33
|
+
btnText?: string | undefined;
|
|
34
34
|
appId?: string | undefined;
|
|
35
35
|
countIndex?: string | undefined;
|
|
36
36
|
countUnits?: string | undefined;
|
|
37
37
|
noDataTooltip?: string | undefined;
|
|
38
38
|
cardType?: "regular" | "compact" | undefined;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
readonly rightComponent?: React.FC | undefined;
|
|
40
|
+
readonly selectionScreen?: React.FC | undefined;
|
|
41
41
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
42
42
|
};
|
|
43
43
|
export default meta;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { CellRendererFunction } from './ExplorerTableCellRenderers';
|
|
3
3
|
import { JSONObject } from '@gen3/core';
|
|
4
4
|
import { CellRendererFunctionProps } from './types';
|
|
5
|
-
export declare const ArrayCellRenderer: (cellRenderFunction: CellRendererFunction, props: CellRendererFunctionProps<JSONObject>, ...args: any[]) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> |
|
|
5
|
+
export declare const ArrayCellRenderer: (cellRenderFunction: CellRendererFunction, props: CellRendererFunctionProps<JSONObject>, ...args: any[]) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | null | undefined;
|
|
6
6
|
//# sourceMappingURL=ArrayCellRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../src/features/Navigation/NavigationBar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM1C;;;;;;;GAOG;AACH,QAAA,MAAM,aAAa,GAAI,qCAKpB,eAAe,KAAG,
|
|
1
|
+
{"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../src/features/Navigation/NavigationBar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM1C;;;;;;;GAOG;AACH,QAAA,MAAM,aAAa,GAAI,qCAKpB,eAAe,KAAG,YAgEpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -30,6 +30,7 @@ var NavigationBar = function (_a) {
|
|
|
30
30
|
root: 'flex bg-base-max border-b-1 border-base-dark',
|
|
31
31
|
navigationPanel: 'font-heading',
|
|
32
32
|
logoAndTitlePanel: 'flex justify-center items-center align-middle',
|
|
33
|
+
buttons: '',
|
|
33
34
|
login: 'pl-1 mr-6 bg-base-max text-base-contrast opacity-80 hover:opacity-100',
|
|
34
35
|
};
|
|
35
36
|
var mergedClassnames = mergeDefaultTailwindClassnames(classNamesDefaults, classNames);
|
|
@@ -38,11 +39,11 @@ var NavigationBar = function (_a) {
|
|
|
38
39
|
useEffect(function () {
|
|
39
40
|
setCurrent(router.pathname);
|
|
40
41
|
}, [router.pathname]);
|
|
41
|
-
return (_jsxs("div", { role: "navigation", "aria-label": "main site navigation", className: extractClassName('root', mergedClassnames), children: [_jsx("div", { className: extractClassName('logoAndTitlePanel', mergedClassnames), children: logo && _jsx(NavigationLogo, __assign({}, logo)) }), _jsx("div", { className: "flex flex-grow" }), _jsx("div", { className: "
|
|
42
|
+
return (_jsxs("div", { role: "navigation", "aria-label": "main site navigation", className: extractClassName('root', mergedClassnames), children: [_jsx("div", { className: extractClassName('logoAndTitlePanel', mergedClassnames), children: logo && _jsx(NavigationLogo, __assign({}, logo)) }), _jsx("div", { className: "flex flex-grow" }), _jsx("div", { className: "flex flex-grow nowrap ".concat(extractClassName('navigationPanel', mergedClassnames)), children: items.map(function (x, index) {
|
|
42
43
|
var selectedStyle = current === x.href
|
|
43
44
|
? 'border-accent border-b-4 border-b-accent'
|
|
44
45
|
: '';
|
|
45
|
-
return (_jsx("div", { className: "first:border-l-1 border-r-1 border-base-dark ".concat(selectedStyle), children: _jsx(NavigationBarButton, { tooltip: x.tooltip, icon: x.icon, href: x.href, name: x.name, classNames: x.classNames, noBasePath: x === null || x === void 0 ? void 0 : x.noBasePath }) }, "".concat(x.name, "-").concat(index)));
|
|
46
|
+
return (_jsx("div", { className: "first:border-l-1 border-r-1 flex-1 border-base-dark ".concat(selectedStyle, " ").concat(extractClassName('buttons', mergedClassnames)), children: _jsx(NavigationBarButton, { tooltip: x.tooltip, icon: x.icon, href: x.href, name: x.name, classNames: x.classNames, noBasePath: x === null || x === void 0 ? void 0 : x.noBasePath }) }, "".concat(x.name, "-").concat(index)));
|
|
46
47
|
}) })] }));
|
|
47
48
|
};
|
|
48
49
|
export default NavigationBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../../../src/features/Navigation/NavigationBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAgB,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAE5F;;;;;;;GAOG;AACH,IAAM,aAAa,GAAG,UAAC,EAKL;QAJhB,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAChB,aAAiB,EAAjB,KAAK,mBAAG,SAAS,KAAA,EACjB,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EACV,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA;IAEf,IAAM,kBAAkB,GAAG;QACzB,IAAI,EAAE,8CAA8C;QACpD,eAAe,EAAE,cAAc;QAC/B,iBAAiB,EAAE,+CAA+C;QAClE,KAAK,EACH,uEAAuE;KAC1E,CAAC;IAEF,IAAM,gBAAgB,GAAG,8BAA8B,CACrD,kBAAkB,EAClB,UAAU,CACX,CAAC;IAEF,IAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IACrB,IAAA,KAAwB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAhD,OAAO,QAAA,EAAE,UAAU,QAA6B,CAAC;IACxD,SAAS,CAAC;QACR,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,eACE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CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -6181,6 +6181,7 @@ const NavigationLogo = ({ src, title, description, width, height, divider = fals
|
|
|
6181
6181
|
root: 'flex bg-base-max border-b-1 border-base-dark',
|
|
6182
6182
|
navigationPanel: 'font-heading',
|
|
6183
6183
|
logoAndTitlePanel: 'flex justify-center items-center align-middle',
|
|
6184
|
+
buttons: '',
|
|
6184
6185
|
login: 'pl-1 mr-6 bg-base-max text-base-contrast opacity-80 hover:opacity-100'
|
|
6185
6186
|
};
|
|
6186
6187
|
const mergedClassnames = mergeDefaultTailwindClassnames(classNamesDefaults, classNames);
|
|
@@ -6206,11 +6207,11 @@ const NavigationLogo = ({ src, title, description, width, height, divider = fals
|
|
|
6206
6207
|
className: "flex flex-grow"
|
|
6207
6208
|
}),
|
|
6208
6209
|
/*#__PURE__*/ jsx("div", {
|
|
6209
|
-
className: `
|
|
6210
|
+
className: `flex flex-grow nowrap ${extractClassName('navigationPanel', mergedClassnames)}`,
|
|
6210
6211
|
children: items.map((x, index)=>{
|
|
6211
6212
|
const selectedStyle = current === x.href ? 'border-accent border-b-4 border-b-accent' : '';
|
|
6212
6213
|
return /*#__PURE__*/ jsx("div", {
|
|
6213
|
-
className: `first:border-l-1 border-r-1 border-base-dark ${selectedStyle}`,
|
|
6214
|
+
className: `first:border-l-1 border-r-1 flex-1 border-base-dark ${selectedStyle} ${extractClassName('buttons', mergedClassnames)}`,
|
|
6214
6215
|
children: /*#__PURE__*/ jsx(NavigationBarButton, {
|
|
6215
6216
|
tooltip: x.tooltip,
|
|
6216
6217
|
icon: x.icon,
|