@importcsv/react 0.2.11 → 0.2.14

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 (107) hide show
  1. package/build/react/index.d.ts +151 -3
  2. package/package.json +4 -4
  3. package/build/react/bundled-styles.d.ts +0 -1
  4. package/build/react/components/CSVImporter/index.d.ts +0 -5
  5. package/build/react/components/Modal/index.d.ts +0 -12
  6. package/build/react/i18n/de.d.ts +0 -32
  7. package/build/react/i18n/es.d.ts +0 -32
  8. package/build/react/i18n/fr.d.ts +0 -32
  9. package/build/react/i18n/i18n.d.ts +0 -6
  10. package/build/react/i18n/it.d.ts +0 -32
  11. package/build/react/i18n/useTranslation.d.ts +0 -9
  12. package/build/react/importer/components/Box/index.d.ts +0 -2
  13. package/build/react/importer/components/Box/types/index.d.ts +0 -5
  14. package/build/react/importer/components/Checkbox/index.d.ts +0 -2
  15. package/build/react/importer/components/Checkbox/types/index.d.ts +0 -4
  16. package/build/react/importer/components/Errors/index.d.ts +0 -4
  17. package/build/react/importer/components/Input/index.d.ts +0 -2
  18. package/build/react/importer/components/Input/types/index.d.ts +0 -18
  19. package/build/react/importer/components/Root/index.d.ts +0 -10
  20. package/build/react/importer/components/StepLayout/index.d.ts +0 -18
  21. package/build/react/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  22. package/build/react/importer/components/Stepper/index.d.ts +0 -2
  23. package/build/react/importer/components/Stepper/types/index.d.ts +0 -14
  24. package/build/react/importer/components/Table/index.d.ts +0 -9
  25. package/build/react/importer/components/Table/types/index.d.ts +0 -42
  26. package/build/react/importer/components/ToggleFilter/index.d.ts +0 -3
  27. package/build/react/importer/components/ToggleFilter/types/index.d.ts +0 -11
  28. package/build/react/importer/components/Tooltip/index.d.ts +0 -2
  29. package/build/react/importer/components/Tooltip/types/index.d.ts +0 -11
  30. package/build/react/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
  31. package/build/react/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  32. package/build/react/importer/components/UploaderWrapper/types/index.d.ts +0 -2
  33. package/build/react/importer/components/VirtualTable/index.d.ts +0 -17
  34. package/build/react/importer/components/ui/alert.d.ts +0 -13
  35. package/build/react/importer/components/ui/button.d.ts +0 -12
  36. package/build/react/importer/components/ui/card.d.ts +0 -19
  37. package/build/react/importer/components/ui/checkbox.d.ts +0 -7
  38. package/build/react/importer/components/ui/dialog.d.ts +0 -38
  39. package/build/react/importer/components/ui/flex.d.ts +0 -23
  40. package/build/react/importer/components/ui/input.d.ts +0 -6
  41. package/build/react/importer/components/ui/select.d.ts +0 -13
  42. package/build/react/importer/components/ui/switch.d.ts +0 -7
  43. package/build/react/importer/components/ui/toast.d.ts +0 -22
  44. package/build/react/importer/components/ui/toaster.d.ts +0 -1
  45. package/build/react/importer/components/ui/tooltip.d.ts +0 -24
  46. package/build/react/importer/components/ui/use-toast.d.ts +0 -46
  47. package/build/react/importer/features/complete/index.d.ts +0 -2
  48. package/build/react/importer/features/complete/types/index.d.ts +0 -5
  49. package/build/react/importer/features/configure-import/index.d.ts +0 -13
  50. package/build/react/importer/features/configure-import/types/index.d.ts +0 -13
  51. package/build/react/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
  52. package/build/react/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
  53. package/build/react/importer/features/main/index.d.ts +0 -2
  54. package/build/react/importer/features/main/types/index.d.ts +0 -16
  55. package/build/react/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
  56. package/build/react/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
  57. package/build/react/importer/features/map-columns/index.d.ts +0 -2
  58. package/build/react/importer/features/map-columns/types/index.d.ts +0 -16
  59. package/build/react/importer/features/row-selection/index.d.ts +0 -2
  60. package/build/react/importer/features/row-selection/types/index.d.ts +0 -8
  61. package/build/react/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  62. package/build/react/importer/features/uploader/index.d.ts +0 -2
  63. package/build/react/importer/features/uploader/types/index.d.ts +0 -9
  64. package/build/react/importer/features/validation/Validation.d.ts +0 -2
  65. package/build/react/importer/features/validation/components/TransformModal.d.ts +0 -18
  66. package/build/react/importer/features/validation/components/TransformPanel.d.ts +0 -18
  67. package/build/react/importer/features/validation/index.d.ts +0 -1
  68. package/build/react/importer/features/validation/types.d.ts +0 -32
  69. package/build/react/importer/hooks/useClickOutside.d.ts +0 -1
  70. package/build/react/importer/hooks/useCustomStyles.d.ts +0 -1
  71. package/build/react/importer/hooks/useEventListener.d.ts +0 -4
  72. package/build/react/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  73. package/build/react/importer/hooks/useRect.d.ts +0 -12
  74. package/build/react/importer/hooks/useWindowSize.d.ts +0 -1
  75. package/build/react/importer/providers/Theme.d.ts +0 -10
  76. package/build/react/importer/providers/index.d.ts +0 -5
  77. package/build/react/importer/providers/types/index.d.ts +0 -10
  78. package/build/react/importer/services/api.d.ts +0 -1
  79. package/build/react/importer/services/mapping.d.ts +0 -31
  80. package/build/react/importer/services/transformation.d.ts +0 -70
  81. package/build/react/importer/settings/theme/colors.d.ts +0 -4
  82. package/build/react/importer/settings/theme/index.d.ts +0 -2
  83. package/build/react/importer/settings/theme/sizes.d.ts +0 -7
  84. package/build/react/importer/stores/theme.d.ts +0 -17
  85. package/build/react/importer/theme/index.d.ts +0 -8
  86. package/build/react/importer/theme/presets.d.ts +0 -314
  87. package/build/react/importer/theme/runtime.d.ts +0 -62
  88. package/build/react/importer/theme/styles.d.ts +0 -120
  89. package/build/react/importer/types/index.d.ts +0 -9
  90. package/build/react/importer/utils/colorUtils.d.ts +0 -48
  91. package/build/react/importer/utils/errorAnalysis.d.ts +0 -25
  92. package/build/react/importer/utils/getStringLengthOfChildren.d.ts +0 -2
  93. package/build/react/importer/utils/stringSimilarity.d.ts +0 -1
  94. package/build/react/importer/utils/template.d.ts +0 -2
  95. package/build/react/importer/utils/themeUtils.d.ts +0 -21
  96. package/build/react/importer/utils/utils.d.ts +0 -19
  97. package/build/react/js.d.ts +0 -12
  98. package/build/react/settings/defaults.d.ts +0 -3
  99. package/build/react/shims/react-compat-types-shim.d.ts +0 -67
  100. package/build/react/styles.d.ts +0 -1
  101. package/build/react/types/index.d.ts +0 -132
  102. package/build/react/types/style.d.ts +0 -13
  103. package/build/react/types/theme.d.ts +0 -153
  104. package/build/react/utils/cn.d.ts +0 -6
  105. package/build/react/validation/transformationStages.d.ts +0 -26
  106. package/build/react/validation/transformer.d.ts +0 -17
  107. package/build/react/validation/validator.d.ts +0 -23
@@ -1,62 +0,0 @@
1
- import { styles } from './styles';
2
- export interface SimpleTheme {
3
- colors?: {
4
- primary?: string;
5
- primaryHover?: string;
6
- background?: string;
7
- foreground?: string;
8
- border?: string;
9
- error?: string;
10
- success?: string;
11
- warning?: string;
12
- };
13
- typography?: {
14
- fontFamily?: string;
15
- fontSize?: {
16
- base?: string;
17
- small?: string;
18
- large?: string;
19
- };
20
- };
21
- spacing?: {
22
- compact?: boolean;
23
- scale?: number;
24
- };
25
- components?: {
26
- button?: {
27
- variant?: 'solid' | 'outline' | 'ghost';
28
- rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
29
- };
30
- table?: {
31
- striped?: boolean;
32
- bordered?: boolean;
33
- compact?: boolean;
34
- };
35
- modal?: {
36
- blur?: boolean;
37
- shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
38
- };
39
- input?: {
40
- variant?: 'outline' | 'filled' | 'underline';
41
- rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
42
- };
43
- };
44
- }
45
- /**
46
- * Apply a theme to the importer
47
- * Can accept preset name, theme object, or partial overrides
48
- */
49
- export declare function applyTheme(container: HTMLElement, theme: string | SimpleTheme | typeof styles): void;
50
- /**
51
- * Get the current theme from a container
52
- */
53
- export declare function getCurrentTheme(container: HTMLElement): string | null;
54
- /**
55
- * Reset theme to default
56
- */
57
- export declare function resetTheme(container: HTMLElement): void;
58
- /**
59
- * Create a theme from a primary color
60
- * Generates a full theme based on a single color
61
- */
62
- export declare function createThemeFromColor(primaryColor: string): SimpleTheme;
@@ -1,120 +0,0 @@
1
- /**
2
- * Core styles for the CSV Importer
3
- * These styles ensure consistent appearance across all screens
4
- * Can be overridden via the theme prop
5
- */
6
- export declare const styles: {
7
- typography: {
8
- title: string;
9
- subtitle: string;
10
- label: string;
11
- body: string;
12
- caption: string;
13
- };
14
- spacing: {
15
- page: string;
16
- header: string;
17
- content: string;
18
- footer: string;
19
- section: string;
20
- };
21
- layout: {
22
- header: string;
23
- subHeader: string;
24
- content: string;
25
- footer: string;
26
- container: string;
27
- };
28
- colors: {
29
- borderDefault: string;
30
- bgPrimary: string;
31
- bgSecondary: string;
32
- bgHover: string;
33
- textPrimary: string;
34
- textSecondary: string;
35
- textMuted: string;
36
- };
37
- components: {
38
- card: string;
39
- input: string;
40
- table: string;
41
- tableHeader: string;
42
- tableRow: string;
43
- };
44
- buttons: {
45
- primary: string;
46
- secondary: string;
47
- outline: string;
48
- };
49
- };
50
- export declare const cssVariables: {
51
- '--csv-color-primary': string;
52
- '--csv-color-primary-hover': string;
53
- '--csv-color-primary-foreground': string;
54
- '--csv-color-secondary': string;
55
- '--csv-color-secondary-foreground': string;
56
- '--csv-color-background': string;
57
- '--csv-color-foreground': string;
58
- '--csv-color-border': string;
59
- '--csv-color-muted': string;
60
- '--csv-color-muted-foreground': string;
61
- '--csv-font-family': string;
62
- '--csv-font-size-xs': string;
63
- '--csv-font-size-sm': string;
64
- '--csv-font-size-base': string;
65
- '--csv-font-size-lg': string;
66
- '--csv-font-size-xl': string;
67
- '--csv-spacing-xs': string;
68
- '--csv-spacing-sm': string;
69
- '--csv-spacing-md': string;
70
- '--csv-spacing-lg': string;
71
- '--csv-spacing-xl': string;
72
- '--csv-radius-sm': string;
73
- '--csv-radius-md': string;
74
- '--csv-radius-lg': string;
75
- '--csv-radius-xl': string;
76
- };
77
- export declare const designTokens: {
78
- typography: {
79
- title: string;
80
- subtitle: string;
81
- label: string;
82
- body: string;
83
- caption: string;
84
- };
85
- spacing: {
86
- page: string;
87
- header: string;
88
- content: string;
89
- footer: string;
90
- section: string;
91
- };
92
- layout: {
93
- header: string;
94
- subHeader: string;
95
- content: string;
96
- footer: string;
97
- container: string;
98
- };
99
- colors: {
100
- borderDefault: string;
101
- bgPrimary: string;
102
- bgSecondary: string;
103
- bgHover: string;
104
- textPrimary: string;
105
- textSecondary: string;
106
- textMuted: string;
107
- };
108
- components: {
109
- card: string;
110
- input: string;
111
- table: string;
112
- tableHeader: string;
113
- tableRow: string;
114
- };
115
- buttons: {
116
- primary: string;
117
- secondary: string;
118
- outline: string;
119
- };
120
- };
@@ -1,9 +0,0 @@
1
- import { Column } from '../../types';
2
- export type Template = {
3
- columns: Column[];
4
- };
5
- export type UploadColumn = {
6
- index: number;
7
- name: string;
8
- sample_data: string[];
9
- };
@@ -1,48 +0,0 @@
1
- /**
2
- * Color utility functions for theme customization
3
- */
4
- /**
5
- * Validate hex color format
6
- */
7
- export declare function isValidColor(color: string): boolean;
8
- /**
9
- * Convert hex color to RGB
10
- */
11
- export declare function hexToRgb(hex: string): {
12
- r: number;
13
- g: number;
14
- b: number;
15
- } | null;
16
- /**
17
- * Convert RGB to hex color
18
- */
19
- export declare function rgbToHex(r: number, g: number, b: number): string;
20
- /**
21
- * Lighten a color by a percentage
22
- */
23
- export declare function lightenColor(hex: string, percent: number): string;
24
- /**
25
- * Darken a color by a percentage
26
- */
27
- export declare function darkenColor(hex: string, percent: number): string;
28
- /**
29
- * Generate color palette from a base color
30
- */
31
- export declare function generateColorPalette(baseColor: string): {
32
- 50: string;
33
- 100: string;
34
- 200: string;
35
- 300: string;
36
- 400: string;
37
- 500: string;
38
- 600: string;
39
- 700: string;
40
- 800: string;
41
- 900: string;
42
- };
43
- /**
44
- * Apply color palette to CSS variables
45
- * @param primaryColor - The primary color to generate palette from
46
- * @param targetElement - The element to apply styles to (defaults to a scoped container, not document root)
47
- */
48
- export declare function applyColorPalette(primaryColor: string, targetElement?: HTMLElement): void;
@@ -1,25 +0,0 @@
1
- export interface ValidationError {
2
- rowIndex: number;
3
- columnKey: string;
4
- message: string;
5
- value?: any;
6
- }
7
- export interface ErrorGroup {
8
- type: string;
9
- title: string;
10
- description: string;
11
- count: number;
12
- columns: string[];
13
- errors: ValidationError[];
14
- example?: {
15
- before: string;
16
- after: string;
17
- };
18
- selected: boolean;
19
- }
20
- export declare function analyzeValidationErrors(errors: ValidationError[]): ErrorGroup[];
21
- export declare function getErrorSummary(groups: ErrorGroup[]): string;
22
- export declare function getSelectedErrors(groups: ErrorGroup[]): ValidationError[];
23
- export declare function toggleErrorGroup(groups: ErrorGroup[], type: string): ErrorGroup[];
24
- export declare function setAllErrorGroups(groups: ErrorGroup[], selected: boolean): ErrorGroup[];
25
- export declare function countSelectedErrors(groups: ErrorGroup[]): number;
@@ -1,2 +0,0 @@
1
- import { ComponentChildren } from '../../../react';
2
- export default function getStringLengthOfChildren(children: ComponentChildren): number;
@@ -1 +0,0 @@
1
- export default function stringsSimilarity(s1: string, s2: string): number;
@@ -1,2 +0,0 @@
1
- import { Template } from '../types';
2
- export declare function convertRawTemplate(rawTemplate?: Record<string, unknown> | string): [Template | null, string | null];
@@ -1,21 +0,0 @@
1
- import { ThemeConfig } from '../../types/theme';
2
- /**
3
- * Deep merge two theme configurations
4
- */
5
- export declare function mergeThemes(base: ThemeConfig, override: ThemeConfig): ThemeConfig;
6
- /**
7
- * Generate CSS variables from theme configuration
8
- */
9
- export declare function generateThemeVariables(theme: ThemeConfig): Record<string, string>;
10
- /**
11
- * Apply CSS variables to an HTML element
12
- */
13
- export declare function applyThemeToElement(element: HTMLElement, variables: Record<string, string>): void;
14
- /**
15
- * Get computed theme value with fallback
16
- */
17
- export declare function getThemeValue(element: HTMLElement, variable: string, fallback?: string): string;
18
- /**
19
- * Create a theme from partial configuration
20
- */
21
- export declare function createTheme(partial: Partial<ThemeConfig>): ThemeConfig;
@@ -1,19 +0,0 @@
1
- /**
2
- * Parse JSON input that can be either an object or a string
3
- * @param param - The parameter to parse (object or JSON string)
4
- * @param options - Options for parsing
5
- * @returns Parsed object or stringified JSON based on options
6
- */
7
- export declare function parseJSON<T extends 'object' | 'string' = 'object'>(param?: Record<string, unknown> | string, options?: {
8
- returnType?: T;
9
- escapePercent?: boolean;
10
- }): T extends 'string' ? string : Record<string, unknown>;
11
- export declare const parseObjectOrStringJSON: (name: string, param?: Record<string, unknown> | string) => string;
12
- export declare const parseObjectOrStringJSONToRecord: (name: string, param?: Record<string, unknown> | string) => Record<string, unknown>;
13
- export declare const validateJSON: (str: string, paramName: string) => string;
14
- export declare const sanitizeKey: (input: string) => string;
15
- export declare const parseOptionalBoolean: (val?: boolean) => "true" | "false" | "";
16
- export declare const strToBoolean: (str: string) => boolean;
17
- export declare const strToOptionalBoolean: (str: string) => boolean | undefined;
18
- export declare const strToDefaultBoolean: (str: string, defaultValue: boolean) => boolean;
19
- export { isValidColor, darkenColor } from './colorUtils';
@@ -1,12 +0,0 @@
1
- import { CSVImporterProps } from './types';
2
- type CreateImporterProps = CSVImporterProps & {
3
- domElement?: Element;
4
- };
5
- export declare function createCSVImporter(props: CreateImporterProps): {
6
- instance: (import('../react').FunctionalComponent<import('./shims/react-compat-shim.js').PropsWithoutRef<CSVImporterProps> & {
7
- ref?: import('../react').Ref<unknown> | undefined;
8
- }> & HTMLDialogElement) | null;
9
- showModal: () => void;
10
- closeModal: () => void;
11
- };
12
- export {};
@@ -1,3 +0,0 @@
1
- import { CSVImporterProps } from '../types';
2
- declare const defaults: CSVImporterProps;
3
- export default defaults;
@@ -1,67 +0,0 @@
1
- // TypeScript type shim to bridge Preact and React types
2
- // This allows Preact code to use React type definitions
3
- // Based on HelloCSV's approach: https://github.com/HelloCSV/HelloCSV
4
-
5
- // Declare that Preact modules export React types
6
- declare module '../../react' {
7
- export * from 'react';
8
- }
9
-
10
- declare module './react-hooks-shim.js' {
11
- export * from 'react';
12
- }
13
-
14
- declare module './react-compat-shim.js' {
15
- export * from 'react';
16
- export { createPortal } from 'react-dom';
17
- }
18
-
19
- declare module '../../react/jsx-runtime' {
20
- export * from 'react/jsx-runtime';
21
- }
22
-
23
- declare module '../../react/jsx-dev-runtime' {
24
- export * from 'react/jsx-dev-runtime';
25
- }
26
-
27
- // Type augmentations to handle Preact-specific types
28
- declare module '../../react' {
29
- import type { ReactNode, ReactElement } from 'react';
30
-
31
- // Map Preact's ComponentChildren to React's ReactNode
32
- export interface ComponentChildren extends ReactNode {}
33
-
34
- // Ensure VNode is compatible with ReactElement
35
- export interface VNode extends ReactElement {}
36
- }
37
-
38
- // Extend global JSX namespace to include React types
39
- declare global {
40
- namespace JSX {
41
- // Import React's JSX types
42
- interface IntrinsicElements extends React.JSX.IntrinsicElements {}
43
- interface Element extends React.ReactElement {}
44
- interface ElementClass extends React.Component<any> {}
45
- interface ElementAttributesProperty extends React.Component<any> {}
46
- interface ElementChildrenAttribute extends React.Component<any> {}
47
-
48
- // HTML attribute interfaces
49
- interface HTMLAttributes<T> extends React.HTMLAttributes<T> {}
50
- interface SVGAttributes<T> extends React.SVGAttributes<T> {}
51
- interface DOMAttributes<T> extends React.DOMAttributes<T> {}
52
- interface CSSProperties extends React.CSSProperties {}
53
- }
54
- }
55
-
56
- // Make common React types globally available for files that use them without imports
57
- declare global {
58
- type ReactElement = React.ReactElement;
59
- type ReactNode = React.ReactNode;
60
- type PropsWithChildren<P = {}> = P & { children?: React.ReactNode };
61
- type ComponentChildren = React.ReactNode;
62
- type FunctionComponent<P = {}> = React.FC<P>;
63
- type FC<P = {}> = React.FC<P>;
64
- }
65
-
66
- // Export to make this a module
67
- export {};
@@ -1 +0,0 @@
1
- export declare const importcsvStyles: string;
@@ -1,132 +0,0 @@
1
- import { ThemeConfig } from './theme';
2
- export interface Column {
3
- id: string;
4
- label: string;
5
- type?: 'string' | 'number' | 'email' | 'date' | 'phone' | 'select';
6
- validators?: Validator[];
7
- transformations?: Transformer[];
8
- options?: string[];
9
- description?: string;
10
- placeholder?: string;
11
- }
12
- export type Validator = {
13
- type: 'required';
14
- message?: string;
15
- } | {
16
- type: 'unique';
17
- message?: string;
18
- } | {
19
- type: 'regex';
20
- pattern: string;
21
- message?: string;
22
- } | {
23
- type: 'min';
24
- value: number;
25
- message?: string;
26
- } | {
27
- type: 'max';
28
- value: number;
29
- message?: string;
30
- } | {
31
- type: 'min_length';
32
- value: number;
33
- message?: string;
34
- } | {
35
- type: 'max_length';
36
- value: number;
37
- message?: string;
38
- };
39
- export type TransformationStage = 'pre' | 'post';
40
- export type Transformer = {
41
- type: 'trim';
42
- stage?: TransformationStage;
43
- } | {
44
- type: 'uppercase';
45
- stage?: TransformationStage;
46
- } | {
47
- type: 'lowercase';
48
- stage?: TransformationStage;
49
- } | {
50
- type: 'capitalize';
51
- stage?: TransformationStage;
52
- } | {
53
- type: 'remove_special_chars';
54
- stage?: TransformationStage;
55
- } | {
56
- type: 'normalize_phone';
57
- stage?: TransformationStage;
58
- } | {
59
- type: 'normalize_date';
60
- format?: string;
61
- stage?: TransformationStage;
62
- } | {
63
- type: 'default';
64
- value: string;
65
- stage?: TransformationStage;
66
- } | {
67
- type: 'replace';
68
- find: string;
69
- replace: string;
70
- stage?: TransformationStage;
71
- } | {
72
- type: 'custom';
73
- fn: (value: any) => any;
74
- stage?: TransformationStage;
75
- };
76
- export interface ColumnMapping {
77
- id: string;
78
- label?: string;
79
- include: boolean;
80
- selected?: boolean;
81
- }
82
- export interface ColumnMappingDictionary {
83
- [uploadColumnIndex: number]: ColumnMapping;
84
- }
85
- type ModalParams = {
86
- isModal?: boolean;
87
- modalIsOpen?: boolean;
88
- modalOnCloseTriggered?: () => void;
89
- modalCloseOnOutsideClick?: boolean;
90
- };
91
- type CustomTranslationResource = {
92
- [language: string]: {
93
- [key: string]: string;
94
- };
95
- };
96
- export type CSVImporterProps = {
97
- columns?: Column[];
98
- importerKey?: string;
99
- onComplete?: (data: any) => void;
100
- backendUrl?: string;
101
- user?: Record<string, any>;
102
- metadata?: Record<string, any>;
103
- theme?: ThemeConfig | 'default' | 'minimal' | 'modern' | 'compact' | 'dark';
104
- darkMode?: boolean;
105
- primaryColor?: string;
106
- className?: string;
107
- customStyles?: Record<string, string> | string;
108
- classNames?: {
109
- root?: string;
110
- modal?: string;
111
- header?: string;
112
- stepper?: string;
113
- content?: string;
114
- footer?: string;
115
- button?: string;
116
- input?: string;
117
- table?: string;
118
- dropzone?: string;
119
- };
120
- showDownloadTemplateButton?: boolean;
121
- skipHeaderRowSelection?: boolean;
122
- waitOnComplete?: boolean;
123
- invalidRowHandling?: 'include' | 'exclude' | 'block';
124
- includeUnmatchedColumns?: boolean;
125
- language?: string;
126
- customTranslations?: CustomTranslationResource;
127
- demoData?: {
128
- fileName: string;
129
- csvContent: string;
130
- };
131
- } & ModalParams;
132
- export {};
@@ -1,13 +0,0 @@
1
- // Treat CSS Modules as class maps
2
- declare module '*.module.css' {
3
- const classes: { readonly [className: string]: string };
4
- export default classes;
5
- }
6
-
7
- // Non-module styles are plain strings
8
- declare module '*.css' {
9
- const content: string;
10
- export default content;
11
- }
12
-
13
-