@vizzly/dashboard 0.6.3 → 0.6.4

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.
Files changed (62) hide show
  1. package/dist/charts/src/XYChart/Axis/XAxis.d.ts +2 -0
  2. package/dist/charts/src/XYChart/Axis/axis.d.ts +9 -1
  3. package/dist/charts/src/XYChart/AxisTitle.d.ts +1 -0
  4. package/dist/charts/src/XYChart/logic/constants.d.ts +1 -7
  5. package/dist/dashboard/src/index.d.ts +4 -4
  6. package/dist/dashboard/src/sdk.d.ts +2 -2
  7. package/dist/index.js +1 -1
  8. package/dist/shared-logic/src/Component/Component.d.ts +2 -2
  9. package/dist/shared-logic/src/Component/dumpable.d.ts +2 -1
  10. package/dist/shared-logic/src/Display/Display.d.ts +9 -6
  11. package/dist/shared-logic/src/Display/types.d.ts +6 -2
  12. package/dist/shared-logic/src/Display/upcast.d.ts +2 -2
  13. package/dist/shared-logic/src/Theme/Theme.d.ts +1 -0
  14. package/dist/shared-logic/src/Theme/types.d.ts +17 -1
  15. package/dist/shared-ui/src/base/Accordion/Accordion.styles.d.ts +1 -1
  16. package/dist/shared-ui/src/base/ActionSection/ActionSection.d.ts +3 -1
  17. package/dist/shared-ui/src/base/Alert/Alert.styles.d.ts +4 -4
  18. package/dist/shared-ui/src/base/AppStyles/AppStyles.styles.d.ts +1 -0
  19. package/dist/shared-ui/src/base/AppStyles/AppStyling.d.ts +0 -2
  20. package/dist/shared-ui/src/base/Button/Button.d.ts +2 -1
  21. package/dist/shared-ui/src/base/Button/Button.styles.d.ts +1 -1
  22. package/dist/shared-ui/src/base/DateTime/DateOptionsPopup.d.ts +1 -1
  23. package/dist/shared-ui/src/base/DateTime/DatePicker.styles.d.ts +7 -8
  24. package/dist/shared-ui/src/base/Dropdown/Dropdown.styles.d.ts +3 -3
  25. package/dist/shared-ui/src/base/Input/Input.styles.d.ts +1 -1
  26. package/dist/shared-ui/src/base/Label/Label.styles.d.ts +1 -1
  27. package/dist/shared-ui/src/base/ListView/List.styles.d.ts +6 -6
  28. package/dist/shared-ui/src/base/Modal/Modal.styles.d.ts +4 -4
  29. package/dist/shared-ui/src/base/Panel/Panel.styles.d.ts +1 -1
  30. package/dist/shared-ui/src/base/PopoverMenu/PopoverMenu.styles.d.ts +2 -2
  31. package/dist/shared-ui/src/base/Prompt/Prompt.styles.d.ts +1 -1
  32. package/dist/shared-ui/src/base/RadioGroup/RadioGroup.styles.d.ts +2 -2
  33. package/dist/shared-ui/src/base/Search/Search.styles.d.ts +2 -2
  34. package/dist/shared-ui/src/base/Select/Control.styles.d.ts +5 -5
  35. package/dist/shared-ui/src/base/Tab/Tab.styles.d.ts +2 -2
  36. package/dist/shared-ui/src/base/Table/Table.styles.d.ts +9 -9
  37. package/dist/shared-ui/src/base/Toolbar/Toolbar.d.ts +20 -0
  38. package/dist/shared-ui/src/base/layout/View.d.ts +1 -0
  39. package/dist/shared-ui/src/base/page/Page.d.ts +1 -0
  40. package/dist/shared-ui/src/base/styles/overlay.styles.d.ts +1 -1
  41. package/dist/shared-ui/src/components/Studio/AddContent/AddContent.d.ts +1 -0
  42. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.styles.d.ts +1 -1
  43. package/dist/shared-ui/src/components/Studio/StudioApp/ComponentOptions.d.ts +6 -0
  44. package/dist/shared-ui/src/components/Studio/StudioApp/dashboardIconStyles.styles.d.ts +1 -1
  45. package/dist/shared-ui/src/components/ViewHeader/ViewHeader.styles.d.ts +3 -3
  46. package/dist/shared-ui/src/contexts/DashboardContext/reducer.d.ts +2 -2
  47. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +12 -1
  48. package/dist/shared-ui/src/contexts/ThemeProvider/ThemeProvider.d.ts +0 -1
  49. package/dist/shared-ui/src/contexts/ThemeProvider/default.theme.d.ts +3 -1
  50. package/dist/shared-ui/src/library/Button/index.d.ts +2 -1
  51. package/dist/shared-ui/src/library/Dashboard/EditTitleModal.d.ts +9 -0
  52. package/dist/shared-ui/src/library/Dashboard/HeaderRow.d.ts +9 -0
  53. package/dist/shared-ui/src/library/DataPanel/CustomMetrics/FieldsUsedModal.d.ts +8 -0
  54. package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +2 -0
  55. package/dist/shared-ui/src/library/DataPanel/FilterInput/FilterInputForm.d.ts +1 -1
  56. package/dist/shared-ui/src/library/DataPanel/index.d.ts +0 -1
  57. package/dist/shared-ui/src/library/Editor/Editor.styles.d.ts +1 -1
  58. package/dist/shared-ui/src/library/Library/Library.styles.d.ts +1 -1
  59. package/dist/shared-ui/src/library/ResizableRow/ResizableRow.styles.d.ts +1 -1
  60. package/dist/shared-ui/src/library/ResizableRow.d.ts +8 -5
  61. package/package.json +2 -3
  62. package/dist/shared-ui/src/library/DataPanel/LimitInput.d.ts +0 -10
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, Component } from './types';
2
- import { EmptyCell } from '../Display/types';
2
+ import { EmptyCell, HeaderComponent } from '../Display/types';
3
3
  export declare const TIME_SERIES_CHARTS: ('areaChart' | 'lineChart' | 'horizontalBarChart' | 'barChart')[];
4
4
  export declare const ALL_COMPONENT_TYPES: ComponentType[];
5
5
  export declare const ALL_VIZZLY_COMPONENT_TYPES: ComponentType[];
@@ -8,5 +8,5 @@ export declare const initial: <T extends Component.Attributes>(attributes: T) =>
8
8
  export declare const initialFromType: (type: ComponentType, dataSetId: string, viewId: string) => Component;
9
9
  export declare const isBarChart: (type: ComponentType) => boolean;
10
10
  export declare const isTable: (type: ComponentType) => boolean;
11
- export declare const isEmpty: (component: Component | EmptyCell) => component is EmptyCell;
11
+ export declare const isEmpty: (component: Component | EmptyCell | HeaderComponent) => component is EmptyCell;
12
12
  export declare const removeField: (component: Component, fieldId: string) => Component;
@@ -1,10 +1,11 @@
1
1
  import { Dumpable } from '../Dumpable';
2
2
  import { Component } from './types';
3
+ import { HeaderComponent } from '../Display/types';
3
4
  declare type EmptyComponent = {
4
5
  isEmpty: true;
5
6
  colSpan: number;
6
7
  };
7
- declare type ComponentDumpable = Dumpable<Component | EmptyComponent, Component.RawComponent | EmptyComponent>;
8
+ declare type ComponentDumpable = Dumpable<Component | EmptyComponent | HeaderComponent, Component.RawComponent | EmptyComponent | HeaderComponent>;
8
9
  export declare const load: ComponentDumpable['load'];
9
10
  export declare const dump: ComponentDumpable['dump'];
10
11
  export {};
@@ -1,19 +1,22 @@
1
- import { Component, ComponentType } from '../Component/types';
2
- import { Display, DisplayRow, EmptyCell } from './types';
1
+ import { Component, ComponentType, MaybeOldComponent } from '../Component/types';
2
+ import { Display, DisplayRow, EmptyCell, HeaderComponent } from './types';
3
3
  export { removeAllFieldReferences } from './removeAllFieldReferences';
4
- export declare const allComponentsInDirection: (display: Display, rowIndex: number, cellIndex: number, direction: 'left' | 'right') => Array<Component | EmptyCell>;
4
+ export declare const allComponentsInDirection: (display: Display, rowIndex: number, cellIndex: number, direction: 'left' | 'right') => Array<Component | EmptyCell | HeaderComponent>;
5
5
  export declare const getNextComponentIndexWithSpace: (display: Display, rowIndex: number, cellIndex: number, direction: 'left' | 'right') => number;
6
6
  export declare const insertRow: (display: Display, rowIndex: number, height?: number) => Display;
7
7
  export declare const newEmptyCell: (colSpan: number) => EmptyCell;
8
8
  export declare const appendEmptyCell: (currentPanels: Display, rowIndex: number) => Display;
9
- export declare const setComponent: (display: Display, component: Component | EmptyCell, rowIndex: number, cellIndex: number) => Display;
9
+ export declare const addHeaderRow: (display: Display, rowIndex: number) => Display;
10
+ export declare const setComponent: (display: Display, component: Component | EmptyCell | HeaderComponent, rowIndex: number, cellIndex: number) => Display;
10
11
  declare type Move = {
11
12
  rowIndex: number;
12
13
  cellIndex: number;
13
14
  };
14
15
  export declare const swapComponents: (display: Display, positionA: Move, positionB: Move) => Display;
15
16
  export declare const init: () => Display;
16
- export declare const initRow: (components: Array<Component | EmptyCell>, height?: number | undefined) => DisplayRow;
17
+ export declare const initRow: (components: Array<Component | EmptyCell | HeaderComponent>, height?: number | undefined) => DisplayRow;
18
+ export declare const initHeaderComponent: () => HeaderComponent;
17
19
  export declare const listComponentTypesUsed: (display: Display) => ComponentType[];
18
- export declare const isComponentEmpty: (component: Component | EmptyCell) => component is EmptyCell;
20
+ export declare const isComponentEmpty: (component: Component | EmptyCell | HeaderComponent) => component is EmptyCell;
21
+ export declare const isHeaderComponent: (component: Component.RawComponent | EmptyCell | HeaderComponent | MaybeOldComponent) => component is HeaderComponent;
19
22
  export declare function isDisplayComponentsEmpty(display: Display): boolean;
@@ -3,12 +3,16 @@ export declare type EmptyCell = {
3
3
  isEmpty: true;
4
4
  colSpan: number;
5
5
  };
6
+ export declare type HeaderComponent = {
7
+ displayTitle: string;
8
+ colSpan: number;
9
+ };
6
10
  export declare type DisplayRow = {
7
- components: Array<Component | EmptyCell>;
11
+ components: Array<Component | EmptyCell | HeaderComponent>;
8
12
  height: number;
9
13
  };
10
14
  export declare type Display = DisplayRow[];
11
15
  export declare type DisplayDumped = Array<{
12
- components: Array<Component.RawComponent | EmptyCell>;
16
+ components: Array<Component.RawComponent | EmptyCell | HeaderComponent>;
13
17
  height: number;
14
18
  }>;
@@ -1,5 +1,5 @@
1
- import { DisplayRow, EmptyCell } from './types';
1
+ import { DisplayRow, EmptyCell, HeaderComponent } from './types';
2
2
  import { Component as ComponentType } from '../Component/types';
3
- declare type OldDisplayRow = (ComponentType | null | EmptyCell)[];
3
+ declare type OldDisplayRow = (ComponentType | null | EmptyCell | HeaderComponent)[];
4
4
  export declare const upcastRow: (displayRow: OldDisplayRow | DisplayRow) => DisplayRow;
5
5
  export {};
@@ -1,6 +1,7 @@
1
1
  import chroma from 'chroma-js';
2
2
  import { Theme } from './types';
3
3
  export declare const DEFAULT_ROW_HEIGHT = 350;
4
+ export declare const HEADER_ROW_HEIGHT = 48;
4
5
  export declare const linearScale: (colors?: ((string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "transparent" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | undefined)[] | undefined, colorCount?: number | undefined) => string[];
5
6
  export declare const themeToColorScale: (colors?: ((string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "transparent" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen" | "ActiveBorder" | "ActiveCaption" | "AppWorkspace" | "Background" | "ButtonFace" | "ButtonHighlight" | "ButtonShadow" | "ButtonText" | "CaptionText" | "GrayText" | "Highlight" | "HighlightText" | "InactiveBorder" | "InactiveCaption" | "InactiveCaptionText" | "InfoBackground" | "InfoText" | "Menu" | "MenuText" | "Scrollbar" | "ThreeDDarkShadow" | "ThreeDFace" | "ThreeDHighlight" | "ThreeDLightShadow" | "ThreeDShadow" | "Window" | "WindowFrame" | "WindowText" | "currentcolor" | undefined)[] | undefined, colorCount?: number | undefined) => string[];
6
7
  export declare const vizzlyDefaultTheme: Theme;
@@ -7,6 +7,7 @@ export declare type Theme = {
7
7
  fontFamily?: string;
8
8
  fontSize?: number | string;
9
9
  rowLimit?: number;
10
+ version?: ThemeVersion;
10
11
  };
11
12
  export declare namespace VizzlyTheming {
12
13
  interface Base extends Theme {
@@ -29,6 +30,7 @@ export declare namespace VizzlyTheming {
29
30
  dashboard?: Dashboard;
30
31
  library?: Library;
31
32
  filters?: Filters;
33
+ header?: Header;
32
34
  }
33
35
  interface Buttons {
34
36
  primary?: ButtonType;
@@ -179,6 +181,7 @@ export declare namespace VizzlyTheming {
179
181
  closeButton?: 'none' | 'outside';
180
182
  showTitle?: {
181
183
  editor?: boolean;
184
+ library?: boolean;
182
185
  };
183
186
  };
184
187
  type ModalBase = {
@@ -433,6 +436,19 @@ export declare namespace VizzlyTheming {
433
436
  };
434
437
  };
435
438
  type Filters = {
436
- filterBy?: ButtonType;
439
+ filterBy?: ButtonType & {
440
+ lineHeight?: CSSProperties['lineHeight'];
441
+ };
442
+ };
443
+ type Header = {
444
+ borderTop?: CSSProperties['borderTop'];
445
+ borderBottom?: CSSProperties['borderBottom'];
446
+ background?: CSSProperties['background'];
447
+ title?: FontStyle & {
448
+ htmlElement?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
449
+ };
450
+ padding?: CSSProperties['padding'];
451
+ textAlign?: CSSProperties['textAlign'];
437
452
  };
438
453
  }
454
+ export declare type ThemeVersion = 1 | 2;
@@ -1,6 +1,6 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  export declare const accordionStyles: (() => null) & {
3
- button: (button?: VizzlyTheming.AccordionButton | undefined) => {
3
+ button: (themedStyles?: VizzlyTheming.AccordionButton | undefined) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
@@ -1,7 +1,9 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { CSSProperties, FunctionComponent, ReactNode } from 'react';
2
2
  export declare const ActionSection: FunctionComponent<{
3
3
  title?: string;
4
4
  subTitle?: string;
5
5
  extra?: ReactNode;
6
6
  titleLevel?: keyof JSX.IntrinsicElements;
7
+ margin?: CSSProperties['margin'];
8
+ padding?: CSSProperties['padding'];
7
9
  }>;
@@ -1,9 +1,9 @@
1
1
  import { VizzlyTheming } from '../../types';
2
- export declare const alertStyles: ((styleOverrides?: VizzlyTheming.Alerts | undefined) => {
2
+ export declare const alertStyles: ((themedStyles?: VizzlyTheming.Alerts | undefined) => {
3
3
  (variantOptions: Object): string;
4
4
  toString: any;
5
5
  }) & {
6
- svg: (styleOverrides?: VizzlyTheming.Alerts | undefined) => {
6
+ svg: (themedStyles?: VizzlyTheming.Alerts | undefined) => {
7
7
  (variantOptions: Object): string;
8
8
  toString: any;
9
9
  };
@@ -11,11 +11,11 @@ export declare const alertStyles: ((styleOverrides?: VizzlyTheming.Alerts | unde
11
11
  (variantOptions: Object): string;
12
12
  toString: any;
13
13
  };
14
- content: (styleOverrides?: VizzlyTheming.Alerts | undefined) => {
14
+ content: (themedStyles?: VizzlyTheming.Alerts | undefined) => {
15
15
  (variantOptions: Object): string;
16
16
  toString: any;
17
17
  };
18
- title: (styleOverrides?: VizzlyTheming.Alerts | undefined) => {
18
+ title: (themedStyles?: VizzlyTheming.Alerts | undefined) => {
19
19
  (variantOptions: Object): string;
20
20
  toString: any;
21
21
  };
@@ -1,6 +1,7 @@
1
1
  export declare const BLUE_COLOR = "#3074d9";
2
2
  export declare const DEFAULT_FONT = 14;
3
3
  export declare const SMALL_FONT = 12;
4
+ export declare const BORDER_RADIUS = 8;
4
5
  export declare const H1: number;
5
6
  export declare const H2: number;
6
7
  export declare const H3: number;
@@ -1,6 +1,4 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
- import { VizzlyTheming } from '../../types';
3
2
  export declare const AppStyling: FunctionComponent<{
4
3
  children: ReactNode;
5
4
  }>;
6
- export declare const APP_THEME: VizzlyTheming.Base;
@@ -1,4 +1,4 @@
1
- import { VizzlyComponents } from '../../types';
1
+ import { VizzlyComponents, VizzlyTheming } from '../../types';
2
2
  import { CustomThemeClassNamespaces } from '../classNames';
3
3
  declare type Props = VizzlyComponents.ComponentOverrides.Props.Button & {
4
4
  testId?: string;
@@ -8,6 +8,7 @@ declare type Props = VizzlyComponents.ComponentOverrides.Props.Button & {
8
8
  block?: boolean;
9
9
  internal?: boolean;
10
10
  className?: string;
11
+ themeOverride?: VizzlyTheming.ButtonType;
11
12
  };
12
13
  export declare const PROPS_AS_CLASSNAMES: CustomThemeClassNamespaces[];
13
14
  export declare const Button: (props: Props) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { VizzlyTheming } from '../../types';
2
- export declare const buttonStyles: (styleOverrides?: VizzlyTheming.Buttons | undefined) => {
2
+ export declare const buttonStyles: (themedStyles?: VizzlyTheming.Buttons | undefined, themeOverride?: VizzlyTheming.ButtonType | undefined) => {
3
3
  (variantOptions: Object): string;
4
4
  toString: any;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- import 'react-dates/initialize';
2
+ import 'react-dates-17/initialize';
3
3
  import moment from 'moment';
4
4
  export declare type FocusedInputShape = 'startDate' | 'endDate';
5
5
  export declare const DateOptionsPopup: FunctionComponent<{
@@ -4,11 +4,11 @@ export declare const pickerStyles: (() => null) & {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
7
- prefixStyle: (dateTime?: VizzlyTheming.DateTime | undefined) => {
7
+ prefixStyle: (themedStyles?: VizzlyTheming.DateTime | undefined) => {
8
8
  (variantOptions: Object): string;
9
9
  toString: any;
10
10
  };
11
- inputsWrapper: (dateTime?: VizzlyTheming.DateTime | undefined) => {
11
+ inputsWrapper: (themedStyles?: VizzlyTheming.DateTime | undefined) => {
12
12
  (variantOptions: Object): string;
13
13
  toString: any;
14
14
  };
@@ -20,11 +20,11 @@ export declare const pickerStyles: (() => null) & {
20
20
  (variantOptions: Object): string;
21
21
  toString: any;
22
22
  };
23
- dateInput: (dateTime?: VizzlyTheming.DateTime | undefined) => {
23
+ dateInput: (themedStyles?: VizzlyTheming.DateTime | undefined) => {
24
24
  (variantOptions: Object): string;
25
25
  toString: any;
26
26
  };
27
- timeInput: (dateTime?: VizzlyTheming.DateTime | undefined) => {
27
+ timeInput: (themedStyles?: VizzlyTheming.DateTime | undefined) => {
28
28
  (variantOptions: Object): string;
29
29
  toString: any;
30
30
  };
@@ -36,14 +36,13 @@ export declare const pickerStyles: (() => null) & {
36
36
  (variantOptions: Object): string;
37
37
  toString: any;
38
38
  };
39
- separatorIcon: (styles?: VizzlyTheming.DateTime | undefined) => {
39
+ separatorIcon: (themedStyles?: VizzlyTheming.DateTime | undefined) => {
40
40
  (variantOptions: Object): string;
41
41
  toString: any;
42
42
  };
43
- clearButton: (styles?: VizzlyTheming.DateTime | undefined) => {
43
+ clearButton: (themedStyles?: VizzlyTheming.DateTime | undefined) => {
44
44
  (variantOptions: Object): string;
45
45
  toString: any;
46
46
  };
47
47
  };
48
- export declare const dateStyles: (dateTime?: VizzlyTheming.DateTime | undefined, formHeight?: number | undefined) => string;
49
- export declare function mergedThemes(styles: VizzlyTheming.DateTime | undefined): VizzlyTheming.DateTime;
48
+ export declare const dateStyles: (themedStyles?: VizzlyTheming.DateTime | undefined, formHeight?: number | undefined) => string;
@@ -1,14 +1,14 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  export declare const dropdownStyles: (() => null) & {
3
- wrapper: (dropdown?: VizzlyTheming.Dropdown | undefined) => {
3
+ wrapper: (themedStyles?: VizzlyTheming.Dropdown | undefined) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
7
- option: (dropdown?: VizzlyTheming.Dropdown | undefined) => {
7
+ option: (themedStyles?: VizzlyTheming.Dropdown | undefined) => {
8
8
  (variantOptions: Object): string;
9
9
  toString: any;
10
10
  };
11
- button: (dropdown?: VizzlyTheming.Dropdown | undefined) => {
11
+ button: (themedStyles?: VizzlyTheming.Dropdown | undefined) => {
12
12
  (variantOptions: Object): string;
13
13
  toString: any;
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import { VizzlyTheming } from '../../types';
2
- export declare const inputStyles: (styleOverrides?: VizzlyTheming.Input | undefined, highlight?: boolean | undefined) => {
2
+ export declare const inputStyles: (themedStyles?: VizzlyTheming.Input | undefined, highlight?: boolean | undefined) => {
3
3
  (variantOptions: Object): string;
4
4
  toString: any;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  import { CSSProperties } from 'react';
3
- export declare const labelStyles: (styleOverrides?: VizzlyTheming.Label | undefined, labelHidden?: boolean | undefined, margin?: CSSProperties['margin'], fontWeight?: CSSProperties['fontWeight']) => {
3
+ export declare const labelStyles: (themedStyles?: VizzlyTheming.Label | undefined, labelHidden?: boolean | undefined, margin?: CSSProperties['margin'], fontWeight?: CSSProperties['fontWeight']) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
@@ -6,15 +6,15 @@ export declare const listStyles: (() => null) & {
6
6
  (variantOptions: Object): string;
7
7
  toString: any;
8
8
  };
9
- item: (styled: VizzlyTheming.List) => {
9
+ item: (themedStyles?: VizzlyTheming.List | undefined) => {
10
10
  (variantOptions: Object): string;
11
11
  toString: any;
12
12
  };
13
- label: (styled: VizzlyTheming.List) => {
13
+ label: (styled?: VizzlyTheming.List | undefined) => {
14
14
  (variantOptions: Object): string;
15
15
  toString: any;
16
16
  };
17
- metadata: (styled: VizzlyTheming.List) => {
17
+ metadata: (styled?: VizzlyTheming.List | undefined) => {
18
18
  (variantOptions: Object): string;
19
19
  toString: any;
20
20
  };
@@ -26,11 +26,11 @@ export declare const listStyles: (() => null) & {
26
26
  (variantOptions: Object): string;
27
27
  toString: any;
28
28
  };
29
- deleteWrapper: (styled: VizzlyTheming.List) => {
29
+ deleteWrapper: (styled?: VizzlyTheming.List | undefined) => {
30
30
  (variantOptions: Object): string;
31
31
  toString: any;
32
32
  };
33
- deleteButton: (styled: VizzlyTheming.List) => {
33
+ deleteButton: (styled?: VizzlyTheming.List | undefined) => {
34
34
  (variantOptions: Object): string;
35
35
  toString: any;
36
36
  };
@@ -42,7 +42,7 @@ export declare const listStyles: (() => null) & {
42
42
  (variantOptions: Object): string;
43
43
  toString: any;
44
44
  };
45
- title: (listStyles?: VizzlyTheming.List | undefined) => {
45
+ title: (themedStyles?: VizzlyTheming.List | undefined) => {
46
46
  (variantOptions: Object): string;
47
47
  toString: any;
48
48
  };
@@ -1,5 +1,5 @@
1
1
  import { VizzlyTheming } from '../../types';
2
- export declare const modalCoreStyle: (styleOverrides?: VizzlyTheming.ModalBase | undefined) => {
2
+ export declare const modalCoreStyle: (themedStyles?: VizzlyTheming.ModalBase | undefined) => {
3
3
  (variantOptions: Object): string;
4
4
  toString: any;
5
5
  };
@@ -7,15 +7,15 @@ export declare const modalScrollbar: {
7
7
  (variantOptions: Object): string;
8
8
  toString: any;
9
9
  };
10
- export declare const modalContentStyle: (styleOverrides?: VizzlyTheming.ModalContent | undefined) => {
10
+ export declare const modalContentStyle: (themedStyles?: VizzlyTheming.ModalContent | undefined) => {
11
11
  (variantOptions: Object): string;
12
12
  toString: any;
13
13
  };
14
- export declare const modalHeaderStyle: (styleOverrides?: VizzlyTheming.ModalHeader | undefined) => {
14
+ export declare const modalHeaderStyle: (themedStyles?: VizzlyTheming.ModalHeader | undefined) => {
15
15
  (variantOptions: Object): string;
16
16
  toString: any;
17
17
  };
18
- export declare const modalFooterStyle: (styleOverrides?: VizzlyTheming.ModalFooter | undefined) => {
18
+ export declare const modalFooterStyle: (themedStyles?: VizzlyTheming.ModalFooter | undefined) => {
19
19
  (variantOptions: Object): string;
20
20
  toString: any;
21
21
  };
@@ -1,6 +1,6 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  import { CSSProperties } from 'react';
3
- export declare const panelStyles: (styleOverrides?: VizzlyTheming.Panel | undefined, transform?: boolean | undefined, width?: CSSProperties['width']) => {
3
+ export declare const panelStyles: (themedStyles?: VizzlyTheming.Panel | undefined, transform?: boolean | undefined, width?: CSSProperties['width']) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
@@ -1,10 +1,10 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  export declare const popoverMenuStyles: (() => null) & {
3
- container: (popoverMenu?: VizzlyTheming.PopoverMenu | undefined) => {
3
+ container: (themedStyles?: VizzlyTheming.PopoverMenu | undefined) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
7
- option: (popoverMenu?: VizzlyTheming.PopoverMenu | undefined) => {
7
+ option: (themedStyles?: VizzlyTheming.PopoverMenu | undefined) => {
8
8
  (variantOptions: Object): string;
9
9
  toString: any;
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  export declare const promptStyles: (() => void) & {
3
- svg: (styleOverrides?: VizzlyTheming.Alerts | undefined) => {
3
+ svg: (themedStyles?: VizzlyTheming.Alerts | undefined) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
@@ -1,10 +1,10 @@
1
1
  import { VizzlyTheming } from '../../types';
2
2
  export declare const radioButtonStyles: (() => null) & {
3
- label: (font?: VizzlyTheming.RadioGroupFont | undefined) => {
3
+ label: (themedStyles?: VizzlyTheming.RadioGroupFont | undefined) => {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
7
- description: (font?: VizzlyTheming.RadioGroupFont | undefined) => {
7
+ description: (themedStyles?: VizzlyTheming.RadioGroupFont | undefined) => {
8
8
  (variantOptions: Object): string;
9
9
  toString: any;
10
10
  };
@@ -4,11 +4,11 @@ export declare const searchStyles: (() => void) & {
4
4
  (variantOptions: Object): string;
5
5
  toString: any;
6
6
  };
7
- input: (styles?: VizzlyTheming.Search | undefined) => {
7
+ input: (themedStyles?: VizzlyTheming.Search | undefined) => {
8
8
  (variantOptions: Object): string;
9
9
  toString: any;
10
10
  };
11
- icon: (styles?: VizzlyTheming.Search | undefined) => {
11
+ icon: (themedStyles?: VizzlyTheming.Search | undefined) => {
12
12
  (variantOptions: Object): string;
13
13
  toString: any;
14
14
  };
@@ -3,15 +3,15 @@ export declare const selectControlsStyles: {
3
3
  (variantOptions: Object): string;
4
4
  toString: any;
5
5
  } & {
6
- inputComponent: (select: VizzlyTheming.Select, open?: boolean | undefined) => {
6
+ inputComponent: (themedStyles?: VizzlyTheming.Select | undefined, open?: boolean | undefined) => {
7
7
  (variantOptions: Object): string;
8
8
  toString: any;
9
9
  };
10
- clickableArea: (select: VizzlyTheming.Select) => {
10
+ clickableArea: (themedStyles?: VizzlyTheming.Select | undefined) => {
11
11
  (variantOptions: Object): string;
12
12
  toString: any;
13
13
  };
14
- multiple: (select: VizzlyTheming.Select) => {
14
+ multiple: (themedStyles?: VizzlyTheming.Select | undefined) => {
15
15
  (variantOptions: Object): string;
16
16
  toString: any;
17
17
  };
@@ -27,7 +27,7 @@ export declare const selectControlsStyles: {
27
27
  (variantOptions: Object): string;
28
28
  toString: any;
29
29
  };
30
- clearButton: (select: VizzlyTheming.Select) => {
30
+ clearButton: (themedStyles?: VizzlyTheming.Select | undefined) => {
31
31
  (variantOptions: Object): string;
32
32
  toString: any;
33
33
  };
@@ -35,7 +35,7 @@ export declare const selectControlsStyles: {
35
35
  (variantOptions: Object): string;
36
36
  toString: any;
37
37
  };
38
- arrowContainer: (select: VizzlyTheming.Select) => {
38
+ arrowContainer: (themedStyles?: VizzlyTheming.Select | undefined) => {
39
39
  (variantOptions: Object): string;
40
40
  toString: any;
41
41
  };
@@ -6,11 +6,11 @@ export declare type ListStyleProps = {
6
6
  padding?: CSSProperties['padding'];
7
7
  };
8
8
  export declare const tabStyles: (() => null) & {
9
- list: (props?: ListStyleProps | undefined) => {
9
+ list: (themedStyles?: ListStyleProps | undefined) => {
10
10
  (variantOptions: Object): string;
11
11
  toString: any;
12
12
  };
13
- button: (tabs?: VizzlyTheming.Tabs | undefined) => {
13
+ button: (themedStyles?: VizzlyTheming.Tabs | undefined) => {
14
14
  (variantOptions: Object): string;
15
15
  toString: any;
16
16
  };
@@ -10,19 +10,19 @@ export declare const tableStyles: (() => null) & {
10
10
  (variantOptions: Object): string;
11
11
  toString: any;
12
12
  };
13
- th: (styles?: VizzlyTheming.TableTH | undefined) => {
13
+ th: (themedStyles?: VizzlyTheming.TableTH | undefined) => {
14
14
  (variantOptions: Object): string;
15
15
  toString: any;
16
16
  };
17
- td: (styles?: VizzlyTheming.Tables | undefined) => {
17
+ td: (themedStyles?: VizzlyTheming.Tables | undefined) => {
18
18
  (variantOptions: Object): string;
19
19
  toString: any;
20
20
  };
21
- tr: (styles?: VizzlyTheming.Tables | undefined) => {
21
+ tr: (themedStyles?: VizzlyTheming.Tables | undefined) => {
22
22
  (variantOptions: Object): string;
23
23
  toString: any;
24
24
  };
25
- showMoreButton: (styles?: VizzlyTheming.TableBody | undefined) => {
25
+ showMoreButton: (themedStyles?: VizzlyTheming.TableBody | undefined) => {
26
26
  (variantOptions: Object): string;
27
27
  toString: any;
28
28
  };
@@ -30,23 +30,23 @@ export declare const tableStyles: (() => null) & {
30
30
  (variantOptions: Object): string;
31
31
  toString: any;
32
32
  };
33
- thInner: (styles?: VizzlyTheming.TableTH | undefined) => {
33
+ thInner: (themedStyles?: VizzlyTheming.TableTH | undefined) => {
34
34
  (variantOptions: Object): string;
35
35
  toString: any;
36
36
  };
37
- thLabel: (styles?: VizzlyTheming.TableTH | undefined) => {
37
+ thLabel: (themedStyles?: VizzlyTheming.TableTH | undefined) => {
38
38
  (variantOptions: Object): string;
39
39
  toString: any;
40
40
  };
41
- thButton: (styles?: VizzlyTheming.TableTH | undefined) => {
41
+ thButton: () => {
42
42
  (variantOptions: Object): string;
43
43
  toString: any;
44
44
  };
45
- thGroupRow: (styles?: VizzlyTheming.Tables | undefined) => {
45
+ thGroupRow: (themedStyles?: VizzlyTheming.Tables | undefined) => {
46
46
  (variantOptions: Object): string;
47
47
  toString: any;
48
48
  };
49
- thGroupColumn: (styles?: VizzlyTheming.TableTH | undefined) => {
49
+ thGroupColumn: (themedStyles?: VizzlyTheming.TableTH | undefined) => {
50
50
  (variantOptions: Object): string;
51
51
  toString: any;
52
52
  };
@@ -13,3 +13,23 @@ export declare const divider: {
13
13
  (variantOptions: Object): string;
14
14
  toString: any;
15
15
  };
16
+ export declare const toolbarButtonStyle: {
17
+ background: string;
18
+ color: string;
19
+ border: string;
20
+ padding: string;
21
+ borderRadius: number;
22
+ fontFamily: string;
23
+ '&:hover': {
24
+ background: string;
25
+ border: string;
26
+ color: string;
27
+ };
28
+ '&:focus': {
29
+ background: string;
30
+ border: string;
31
+ color: string;
32
+ };
33
+ fontSize: number;
34
+ fontWeight: number;
35
+ };
@@ -3,6 +3,7 @@ import { ViewStyleProps } from './View.styles';
3
3
  export interface ViewProps extends ViewStyleProps {
4
4
  children?: ReactNode;
5
5
  'data-component'?: string;
6
+ 'data-themeapi'?: string;
6
7
  className?: string;
7
8
  as?: keyof JSX.IntrinsicElements;
8
9
  }
@@ -26,5 +26,6 @@ export declare const Page: React.FunctionComponent<{
26
26
  title: string;
27
27
  columns?: boolean | undefined;
28
28
  badge?: React.ReactNode;
29
+ extra?: React.ReactNode;
29
30
  }>;
30
31
  };
@@ -1,5 +1,5 @@
1
1
  import { VizzlyTheming } from '../../types';
2
- export declare const overlayStyles: (styleOverrides?: VizzlyTheming.Overlay | undefined, position?: "fixed" | "absolute" | undefined) => {
2
+ export declare const overlayStyles: (themedStyles?: VizzlyTheming.Overlay | undefined, position?: "fixed" | "absolute" | undefined) => {
3
3
  (variantOptions: Object): string;
4
4
  toString: any;
5
5
  };
@@ -4,6 +4,7 @@ declare type AddContentType = {
4
4
  narrow?: boolean;
5
5
  label: string;
6
6
  tooltipLabel?: string;
7
+ 'data-component'?: string;
7
8
  };
8
9
  export declare const AddContent: FunctionComponent<AddContentType>;
9
10
  export {};