@sutech_jp/datatraveler-react-client 0.0.23 → 0.0.24

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.
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { Binder, DataTravelerResult, Mapper, ImportType, UseReportType, Session } from './types';
3
+ import { ThemeOptions } from './types/theme';
3
4
  declare type Props<D> = {
4
5
  application: string;
5
6
  schema: string;
@@ -13,7 +14,8 @@ declare type Props<D> = {
13
14
  binder?: Binder;
14
15
  width?: number;
15
16
  height?: number;
17
+ customStyles?: ThemeOptions;
16
18
  report?: UseReportType;
17
19
  };
18
- export declare const DataTravelerImport: <D>({ application, schema, session, googleToken, importType, currentData, mapper, binder, width, height, report, onImport, onCancel, }: Props<D>) => ReactElement;
20
+ export declare const DataTravelerImport: <D>({ application, schema, session, googleToken, importType, currentData, mapper, binder, width, height, customStyles, report, onImport, onCancel, }: Props<D>) => ReactElement;
19
21
  export {};
@@ -4,7 +4,7 @@ exports.DataTravelerImport = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  var react_1 = require("react");
6
6
  var DataTravelerImport = function (_a) {
7
- var application = _a.application, schema = _a.schema, session = _a.session, googleToken = _a.googleToken, _b = _a.importType, importType = _b === void 0 ? googleToken ? 'gss' : 'csv' : _b, _c = _a.currentData, currentData = _c === void 0 ? [] : _c, _d = _a.mapper, mapper = _d === void 0 ? {} : _d, _e = _a.binder, binder = _e === void 0 ? {} : _e, width = _a.width, height = _a.height, report = _a.report, onImport = _a.onImport, onCancel = _a.onCancel;
7
+ var application = _a.application, schema = _a.schema, session = _a.session, googleToken = _a.googleToken, _b = _a.importType, importType = _b === void 0 ? googleToken ? 'gss' : 'csv' : _b, _c = _a.currentData, currentData = _c === void 0 ? [] : _c, _d = _a.mapper, mapper = _d === void 0 ? {} : _d, _e = _a.binder, binder = _e === void 0 ? {} : _e, width = _a.width, height = _a.height, customStyles = _a.customStyles, report = _a.report, onImport = _a.onImport, onCancel = _a.onCancel;
8
8
  var iframe = (0, react_1.useRef)(null);
9
9
  var handleMessage = (0, react_1.useCallback)(function (e) {
10
10
  var _a;
@@ -34,6 +34,7 @@ var DataTravelerImport = function (_a) {
34
34
  width: width,
35
35
  height: height,
36
36
  },
37
+ customStyles: customStyles,
37
38
  report: report,
38
39
  }, '*');
39
40
  }
@@ -54,6 +55,7 @@ var DataTravelerImport = function (_a) {
54
55
  googleToken,
55
56
  width,
56
57
  height,
58
+ customStyles,
57
59
  report,
58
60
  onImport,
59
61
  ]);
File without changes
File without changes
@@ -0,0 +1,74 @@
1
+ export declare type ThemeOptions = {
2
+ palette?: PaletteOptions;
3
+ typography?: TypographyVariants;
4
+ };
5
+ export declare type PaletteOptions = {
6
+ primary?: ColorOptions;
7
+ secondary?: ColorOptions;
8
+ info?: ColorOptions;
9
+ success?: ColorOptions;
10
+ warning?: ColorOptions;
11
+ error?: ColorOptions;
12
+ background?: {
13
+ default?: string;
14
+ };
15
+ grey?: Grayscale;
16
+ };
17
+ export declare type ColorOptions = {
18
+ light?: string;
19
+ soft?: string;
20
+ main?: string;
21
+ dark?: string;
22
+ };
23
+ export declare type Grayscale = {
24
+ '50'?: string;
25
+ '100'?: string;
26
+ '200'?: string;
27
+ '300'?: string;
28
+ '400'?: string;
29
+ '500'?: string;
30
+ '600'?: string;
31
+ '700'?: string;
32
+ '800'?: string;
33
+ '900'?: string;
34
+ A100?: string;
35
+ A200?: string;
36
+ A400?: string;
37
+ A700?: string;
38
+ };
39
+ export declare type TypographyVariants = {
40
+ pageTitle?: TypographyOptions;
41
+ dialogTitle?: TypographyOptions;
42
+ subheadM?: TypographyOptions;
43
+ subheadL?: TypographyOptions;
44
+ textNormal?: TypographyOptions;
45
+ textStrong?: TypographyOptions;
46
+ textSupplement?: TypographyOptions;
47
+ textHint?: TypographyOptions;
48
+ labelNormal?: TypographyOptions;
49
+ labelError?: TypographyOptions;
50
+ labelSmall?: TypographyOptions;
51
+ labelSmallActive?: TypographyOptions;
52
+ labelSmallError?: TypographyOptions;
53
+ textPrimary?: TypographyOptions;
54
+ textStrongPrimary?: TypographyOptions;
55
+ textError?: TypographyOptions;
56
+ textStrongError?: TypographyOptions;
57
+ textWarning?: TypographyOptions;
58
+ textStrongWarning?: TypographyOptions;
59
+ textSuccess?: TypographyOptions;
60
+ textStrongSuccess?: TypographyOptions;
61
+ textWhite?: TypographyOptions;
62
+ groupHeader?: TypographyOptions;
63
+ caption?: TypographyOptions;
64
+ subtextNormal?: TypographyOptions;
65
+ subtextWhite?: TypographyOptions;
66
+ toggleNormal?: TypographyOptions;
67
+ togglePrimary?: TypographyOptions;
68
+ };
69
+ export declare type TypographyOptions = {
70
+ fontSize?: string;
71
+ fontWeight?: number | string;
72
+ lineHeight?: number | string;
73
+ color?: string;
74
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sutech_jp/datatraveler-react-client",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "react client for data traveler produced by SuTech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",