@datawheel/bespoke 0.9.2 → 0.10.0-beta.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/README.md +8 -0
- package/css/mixins.scss +178 -0
- package/dist/Search-BWmRyIa9.d.mts +129 -0
- package/dist/auth-BwgF4GT9.d.mts +139 -0
- package/dist/auth.d.mts +42 -0
- package/dist/auth.js +1 -1
- package/dist/cms.css +1 -1
- package/dist/cms.d.mts +13 -0
- package/dist/cms.js +38 -66
- package/dist/explore.css +1 -1
- package/dist/explore.d.mts +40 -0
- package/dist/explore.js +8 -36
- package/dist/index.d.mts +24 -0
- package/dist/index.js +1 -1
- package/dist/redux-store.d.mts +175 -0
- package/dist/redux-store.js +3 -4
- package/dist/report.css +1 -1
- package/dist/report.d.mts +132 -0
- package/dist/report.js +14 -42
- package/dist/server.d.mts +108 -0
- package/dist/server.js +10 -11
- package/dist/store-De3Xknzr.d.mts +545 -0
- package/dist/types-BcIo0oyw.d.mts +847 -0
- package/package.json +76 -40
package/dist/explore.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.nt{display:block}@media(min-width:1000px){.nt{display:none}}.dt{display:none}@media(min-width:1000px){.dt{display:block}}.et{position:"absolute";top:"50%";z-index:10;opacity:.55}.et:hover{opacity:1}.et[data-direction=left]{left:16px}.et[data-direction=right]{right:16px}.ct{table-layout:fixed}.st{min-height:100px;max-height:350px;overflow-x:"auto";background:red}.gt{padding:5px!important;text-wrap:wrap}.ot.rt{font-size:11px;padding:0}.ot.rt .ft{background-color:transparent!important;padding:0}.it .ht{border-bottom:0}.it .yt{padding:2px}.it .ut{padding:0}.it .bt{margin-right:4px}.at{display:flex;gap:1rem;align-items:center;list-style-type:none}.at[data-align=left]{justify-content:flex-start}.at[data-align=center]{justify-content:center}.at[data-align=right]{justify-content:flex-end}.tt{display:flex}.tt[data-align=left]{justify-content:flex-start}.tt[data-align=center]{justify-content:center}.tt[data-align=right]{justify-content:flex-end}.tt li{margin-right:1rem}.lt{display:flex}.lt .chart{flex:1 1 100%}.wt{border-radius:4px;transform:translate(-50%);z-index:20}.pt{flex-direction:column}@media(min-width:62em){.pt{flex-direction:row}}.mt{max-width:100%;min-width:unset}@media(min-width:62em){.mt{max-width:var(--column-max-width);min-width:300px}}.xt{position:relative}.xt:before{content:"";position:absolute;top:.25rem;bottom:.25rem;left:calc(.875rem + var(--level) * 1.5rem);width:.0625rem;background-color:#dee2e6;z-index:0}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { FC, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { E as ExploreTranslations, R as ReportTileProps } from './Search-BWmRyIa9.mjs';
|
|
4
|
+
export { b as BespokeExploreProvider, a as BespokeReportItemProps, B as BespokeSearch, u as useBespokeExplore } from './Search-BWmRyIa9.mjs';
|
|
5
|
+
import { ActionIconProps, ModalProps, TooltipProps } from '@mantine/core';
|
|
6
|
+
import './types-BcIo0oyw.mjs';
|
|
7
|
+
import 'sequelize';
|
|
8
|
+
|
|
9
|
+
type BespokeExploreProps = {
|
|
10
|
+
locale?: string;
|
|
11
|
+
profilePrefix: string;
|
|
12
|
+
initialReportId?: number;
|
|
13
|
+
initialVariantId?: number;
|
|
14
|
+
initialQuery?: string;
|
|
15
|
+
translations?: ExploreTranslations;
|
|
16
|
+
reportTile?: FC<ReportTileProps>;
|
|
17
|
+
onSelect?: () => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* React component for rendering a fully featured explore page
|
|
21
|
+
*/
|
|
22
|
+
declare function BespokeExplore({ profilePrefix, initialReportId, initialVariantId, translations, onSelect, reportTile, initialQuery, }: BespokeExploreProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
type BespokeExploreModalProps = {
|
|
25
|
+
exploreProps: BespokeExploreProps;
|
|
26
|
+
icon?: ReactElement;
|
|
27
|
+
actionIconProps?: Partial<ActionIconProps>;
|
|
28
|
+
modalProps?: Partial<ModalProps>;
|
|
29
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
30
|
+
tooltipText?: string;
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
showIcon?: boolean;
|
|
33
|
+
showTooltip?: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* React component for rendering a button that opens the Modal with explore
|
|
37
|
+
*/
|
|
38
|
+
declare function BespokeExploreModal({ exploreProps, icon, actionIconProps, modalProps, tooltipProps, tooltipText, showIcon, showTooltip, children }: BespokeExploreModalProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { BespokeExplore, BespokeExploreModal, ReportTileProps as BespokeReportTileProps };
|