@digital-ai/dot-components 1.3.1 → 1.3.5

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 (45) hide show
  1. package/dot-components.esm.js +939 -935
  2. package/dot-components.umd.js +893 -886
  3. package/fonts/dot.woff +0 -0
  4. package/fonts/selection.json +33 -23
  5. package/index.d.ts +1 -1
  6. package/lib/components/alert-banner/AlertBanner.d.ts +8 -1
  7. package/lib/components/auto-complete/AutoComplete.d.ts +3 -1
  8. package/lib/components/avatar/Avatar.d.ts +3 -1
  9. package/lib/components/badge/Badge.d.ts +1 -1
  10. package/lib/components/badge/Badge.styles.d.ts +5 -2
  11. package/lib/components/button-toggle/ButtonToggle.d.ts +5 -2
  12. package/lib/components/dialog/Dialog.d.ts +1 -1
  13. package/lib/components/dynamic-form/DynamicForm.d.ts +1 -1
  14. package/lib/components/dynamic-form/DynamicForm.stories.data.d.ts +2 -0
  15. package/lib/components/dynamic-form/DynamicForm.stories.styles.d.ts +1 -0
  16. package/lib/components/dynamic-form/DynamicForm.styles.d.ts +2 -1
  17. package/lib/components/dynamic-form/models.d.ts +22 -8
  18. package/lib/components/dynamic-form/sample.d.ts +1 -3
  19. package/lib/components/dynamic-form/utils/formHelpers.d.ts +7 -3
  20. package/lib/components/dynamic-form/utils/helpers.d.ts +3 -2
  21. package/lib/components/index.d.ts +4 -2
  22. package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +4 -0
  23. package/lib/components/input-form-fields/InputSelect.d.ts +1 -1
  24. package/lib/components/input-form-fields/InputText.d.ts +1 -1
  25. package/lib/components/list/List.d.ts +4 -1
  26. package/lib/components/list/List.stories.data.d.ts +3 -0
  27. package/lib/components/menu/Menu.d.ts +2 -2
  28. package/lib/components/menu/Menu.styles.d.ts +1 -0
  29. package/lib/components/progress-button/ProgressButton.d.ts +9 -0
  30. package/lib/components/progress-button/ProgressButton.styles.d.ts +3 -0
  31. package/lib/components/table/Table.stories.data.d.ts +4 -0
  32. package/lib/components/table/TableRow.d.ts +1 -1
  33. package/lib/components/tooltip/Tooltip.d.ts +5 -2
  34. package/lib/theme-provider/ThemeProvider.d.ts +2 -0
  35. package/lib/theme-provider/colors/light-theme-colors.d.ts +2 -0
  36. package/package.json +2 -3
  37. package/lib/components/json-schema-form/JsonSchemaForm.d.ts +0 -21
  38. package/lib/components/json-schema-form/JsonSchemaForm.styles.d.ts +0 -2
  39. package/lib/components/json-schema-form/custom-widgets/CustomCheckboxWidget.d.ts +0 -3
  40. package/lib/components/json-schema-form/custom-widgets/CustomCheckboxesWidget.d.ts +0 -3
  41. package/lib/components/json-schema-form/custom-widgets/CustomRadioWidget.d.ts +0 -3
  42. package/lib/components/json-schema-form/custom-widgets/CustomSelectWidget.d.ts +0 -3
  43. package/lib/components/json-schema-form/custom-widgets/CustomTextWidget.d.ts +0 -3
  44. package/lib/components/json-schema-form/custom-widgets/helpers.d.ts +0 -10
  45. package/lib/components/json-schema-form/custom-widgets/index.d.ts +0 -5
@@ -30,6 +30,7 @@ export declare const defaultColumns: ({
30
30
  })[];
31
31
  export declare const defaultData: ({
32
32
  id: string;
33
+ className: string;
33
34
  selected: boolean;
34
35
  rowData: {
35
36
  title: string;
@@ -44,6 +45,7 @@ export declare const defaultData: ({
44
45
  onclick: () => void;
45
46
  tooltip: string;
46
47
  }[];
48
+ className: string;
47
49
  };
48
50
  } | {
49
51
  id: string;
@@ -60,7 +62,9 @@ export declare const defaultData: ({
60
62
  onclick: () => void;
61
63
  tooltip: string;
62
64
  }[];
65
+ className?: undefined;
63
66
  };
67
+ className?: undefined;
64
68
  selected?: undefined;
65
69
  })[];
66
70
  export declare const paginatedColumns: ({
@@ -24,5 +24,5 @@ export interface RowProps extends CommonProps {
24
24
  * A wrapper component around the TableRow component from @material-ui. This component can be used
25
25
  * for manipulating data prior to displaying the data inside the table
26
26
  */
27
- export declare const DotTableRow: ({ columns, data, onActionMenuTrigger, onClick, rowKey, selected, }: RowProps) => JSX.Element;
27
+ export declare const DotTableRow: ({ columns, className, data, onActionMenuTrigger, onClick, rowKey, selected, }: RowProps) => JSX.Element;
28
28
  export declare const EmptyDotRow: ({ cols, message, }: EmptyRowProps) => JSX.Element;
@@ -1,9 +1,12 @@
1
- import { ReactNode, ReactElement } from 'react';
1
+ import { ReactNode, ReactElement, ChangeEvent } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export declare type tooltipPlacement = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
4
4
  export interface TooltipProps extends CommonProps {
5
5
  children: ReactElement;
6
+ leaveDelay?: number;
7
+ onClose?: (event: ChangeEvent) => void;
8
+ open?: boolean;
6
9
  placement?: tooltipPlacement;
7
10
  title?: ReactNode | string | number;
8
11
  }
9
- export declare const DotTooltip: ({ ariaLabel, children, className, "data-testid": dataTestId, placement, title, }: TooltipProps) => JSX.Element;
12
+ export declare const DotTooltip: ({ ariaLabel, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element;
@@ -1,7 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Theme } from '@material-ui/core';
3
+ import { TypographyOptions } from '@material-ui/core/styles/createTypography';
3
4
  import { AvatarPaletteColorOptions } from '../../../../../typings/material/index';
4
5
  export declare type ThemeOptions = 'light' | 'dark' | 'agility-light' | 'agility-dark';
6
+ export declare const typographyOptions: TypographyOptions;
5
7
  export declare const avatarColors: AvatarPaletteColorOptions;
6
8
  export declare const agilityLightTheme: Theme;
7
9
  export declare const agilityDarkTheme: Theme;
@@ -35,8 +35,10 @@ export declare const n400 = "#667385";
35
35
  export declare const n500 = "#4b5a6f";
36
36
  export declare const n600 = "#445267";
37
37
  export declare const n700 = "#3b485c";
38
+ export declare const n700_90 = "rgba(59, 72, 92, 0.9)";
38
39
  export declare const n800 = "#333f52";
39
40
  export declare const n900 = "#232e40";
41
+ export declare const n900_70 = "rgba(35, 46, 64, 0.7)";
40
42
  export declare const nA100 = "#88b1ff";
41
43
  export declare const nA200 = "#5590ff";
42
44
  export declare const nA400 = "#226eff";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "1.3.1",
3
+ "version": "1.3.5",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -31,7 +31,6 @@
31
31
  "styled-components": "^5.2.1"
32
32
  },
33
33
  "peerDependencies": {
34
- "react": "^16.8.0 || ^17.0.0",
35
- "react-jsonschema-form": "^1.8.1"
34
+ "react": "^16.8.0 || ^17.0.0"
36
35
  }
37
36
  }
@@ -1,21 +0,0 @@
1
- import { MouseEvent, KeyboardEvent } from 'react';
2
- import { ErrorSchema, FormValidation, IChangeEvent, ISubmitEvent, UiSchema } from 'react-jsonschema-form';
3
- import { JSONSchema6 } from 'json-schema';
4
- declare type BoolNumStr = boolean | number | string;
5
- interface JsonSchemaFormProps<T> {
6
- disabled?: boolean;
7
- formData?: T;
8
- liveValidate?: boolean;
9
- onBlur?: (id: string, value: BoolNumStr) => void;
10
- onCancel?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
11
- onChange?: (event: IChangeEvent<T>, errorSchema?: ErrorSchema) => unknown;
12
- onError?: (event: unknown) => unknown;
13
- onFocus?: (id: string, value: BoolNumStr) => void;
14
- onSubmit?: (event: ISubmitEvent<T>) => void;
15
- schema: JSONSchema6;
16
- submitButtonText?: string;
17
- uiSchema?: UiSchema;
18
- validate?: (formData: T, errors: FormValidation) => FormValidation;
19
- }
20
- declare function DotJsonSchemaForm<T>({ disabled, formData, liveValidate, onBlur, onCancel, onChange, onError, onFocus, onSubmit, schema, submitButtonText, uiSchema, validate, }: JsonSchemaFormProps<T>): JSX.Element;
21
- export { DotJsonSchemaForm, JsonSchemaFormProps };
@@ -1,2 +0,0 @@
1
- export declare const rootClassName = "dot-json-schema-form";
2
- export declare const StyledActionButtonsRow: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WidgetProps } from 'react-jsonschema-form';
3
- export declare const CustomCheckboxWidget: ({ id, label, value, disabled, onChange, }: WidgetProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WidgetProps } from 'react-jsonschema-form';
3
- export declare const CustomCheckboxesWidget: ({ id, value, onChange, required, rawErrors, schema, disabled, options: optionsObj, }: WidgetProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WidgetProps } from 'react-jsonschema-form';
3
- export declare const CustomRadioWidget: ({ id, label, value, disabled, onChange, required, rawErrors, schema, }: WidgetProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WidgetProps } from 'react-jsonschema-form';
3
- export declare const CustomSelectWidget: ({ autofocus, disabled, id, label, onChange, rawErrors, required, schema, value, }: WidgetProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { WidgetProps } from 'react-jsonschema-form';
3
- export declare const CustomTextWidget: ({ autofocus, id, label, value, disabled, onChange, required, rawErrors, schema, }: WidgetProps) => JSX.Element;
@@ -1,10 +0,0 @@
1
- export declare const getOptionsFromSchema: (optionsObj: {
2
- [key: string]: string | number | boolean | object;
3
- }) => {
4
- label: string;
5
- value: string;
6
- }[];
7
- export declare const useProcessRawErrors: (rawErrors: Array<string>) => {
8
- error: boolean;
9
- errorHelperText: string;
10
- };
@@ -1,5 +0,0 @@
1
- export { CustomCheckboxWidget } from './CustomCheckboxWidget';
2
- export { CustomTextWidget } from './CustomTextWidget';
3
- export { CustomCheckboxesWidget } from './CustomCheckboxesWidget';
4
- export { CustomSelectWidget } from './CustomSelectWidget';
5
- export { CustomRadioWidget } from './CustomRadioWidget';