@importcsv/react 0.1.17 → 0.2.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 +16 -6
- package/build/bundle.css +1 -0
- package/build/bundled-styles.d.ts +1 -1
- package/build/components/CSVImporter/index.d.ts +32 -35
- package/build/i18n/de.d.ts +32 -32
- package/build/i18n/es.d.ts +32 -32
- package/build/i18n/fr.d.ts +32 -32
- package/build/i18n/i18n.d.ts +6 -6
- package/build/i18n/it.d.ts +32 -32
- package/build/i18n/useTranslation.d.ts +9 -9
- package/build/importer/components/Box/index.d.ts +2 -2
- package/build/importer/components/Box/types/index.d.ts +6 -6
- package/build/importer/components/Checkbox/index.d.ts +2 -2
- package/build/importer/components/Checkbox/types/index.d.ts +4 -4
- package/build/importer/components/Errors/index.d.ts +4 -4
- package/build/importer/components/IframeWrapper/index.d.ts +25 -25
- package/build/importer/components/ImporterLayout.d.ts +15 -0
- package/build/importer/components/Input/index.d.ts +2 -2
- package/build/importer/components/Input/types/index.d.ts +18 -18
- package/build/importer/components/Stepper/hooks/useStepper.d.ts +2 -2
- package/build/importer/components/Stepper/index.d.ts +2 -2
- package/build/importer/components/Stepper/types/index.d.ts +14 -13
- package/build/importer/components/Table/index.d.ts +9 -9
- package/build/importer/components/Table/types/index.d.ts +42 -42
- package/build/importer/components/ToggleFilter/index.d.ts +3 -3
- package/build/importer/components/ToggleFilter/types/index.d.ts +11 -11
- package/build/importer/components/Tooltip/index.d.ts +2 -2
- package/build/importer/components/Tooltip/types/index.d.ts +11 -11
- package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -2
- package/build/importer/components/UploaderWrapper/types/index.d.ts +2 -2
- package/build/importer/components/ui/alert.d.ts +8 -8
- package/build/importer/components/ui/button.d.ts +12 -12
- package/build/importer/components/ui/card.d.ts +8 -8
- package/build/importer/components/ui/checkbox.d.ts +4 -4
- package/build/importer/components/ui/dialog.d.ts +19 -19
- package/build/importer/components/ui/flex.d.ts +14 -14
- package/build/importer/components/ui/input.d.ts +5 -5
- package/build/importer/components/ui/select.d.ts +13 -13
- package/build/importer/components/ui/switch.d.ts +4 -4
- package/build/importer/components/ui/toast.d.ts +15 -15
- package/build/importer/components/ui/toaster.d.ts +1 -1
- package/build/importer/components/ui/tooltip.d.ts +13 -13
- package/build/importer/components/ui/use-toast.d.ts +44 -44
- package/build/importer/features/complete/index.d.ts +2 -2
- package/build/importer/features/complete/types/index.d.ts +5 -5
- package/build/importer/features/configure-import/index.d.ts +13 -13
- package/build/importer/features/configure-import/types/index.d.ts +13 -19
- package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -1
- package/build/importer/features/main/hooks/useStepNavigation.d.ts +17 -18
- package/build/importer/features/main/index.d.ts +2 -2
- package/build/importer/features/main/types/index.d.ts +16 -16
- package/build/importer/features/map-columns/components/DropDownFields.d.ts +21 -19
- package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -15
- package/build/importer/features/map-columns/index.d.ts +2 -2
- package/build/importer/features/map-columns/types/index.d.ts +16 -23
- package/build/importer/features/row-selection/index.d.ts +2 -2
- package/build/importer/features/row-selection/types/index.d.ts +8 -8
- package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -10
- package/build/importer/features/uploader/index.d.ts +2 -2
- package/build/importer/features/uploader/types/index.d.ts +9 -9
- package/build/importer/features/validation/Validation.d.ts +2 -2
- package/build/importer/features/validation/components/TransformModal.d.ts +18 -18
- package/build/importer/features/validation/index.d.ts +1 -1
- package/build/importer/features/validation/types.d.ts +32 -32
- package/build/importer/hooks/useClickOutside.d.ts +1 -1
- package/build/importer/hooks/useCustomStyles.d.ts +1 -1
- package/build/importer/hooks/useDemoData.d.ts +16 -0
- package/build/importer/hooks/useEventListener.d.ts +4 -4
- package/build/importer/hooks/useImporterSchema.d.ts +21 -0
- package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
- package/build/importer/hooks/useRect.d.ts +12 -12
- package/build/importer/hooks/useWindowSize.d.ts +1 -1
- package/build/importer/providers/Theme.d.ts +5 -6
- package/build/importer/providers/index.d.ts +5 -5
- package/build/importer/providers/types/index.d.ts +4 -4
- package/build/importer/services/api.d.ts +1 -0
- package/build/importer/services/dataProcessor.d.ts +38 -0
- package/build/importer/services/mapping.d.ts +31 -31
- package/build/importer/services/transformation.d.ts +70 -70
- package/build/importer/settings/theme/colors.d.ts +4 -4
- package/build/importer/settings/theme/index.d.ts +2 -2
- package/build/importer/settings/theme/sizes.d.ts +7 -7
- package/build/importer/stores/theme.d.ts +17 -17
- package/build/importer/types/index.d.ts +9 -17
- package/build/importer/utils/colorUtils.d.ts +48 -44
- package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -2
- package/build/importer/utils/stringSimilarity.d.ts +1 -1
- package/build/importer/utils/template.d.ts +2 -2
- package/build/importer/utils/utils.d.ts +19 -11
- package/build/index.d.ts +4 -3
- package/build/index.esm.js +10896 -34418
- package/build/index.esm.js.map +1 -1
- package/build/index.js +262 -37879
- package/build/index.js.map +1 -1
- package/build/js.d.ts +39 -40
- package/build/settings/defaults.d.ts +3 -3
- package/build/styles.d.ts +1 -1
- package/build/types/index.d.ts +105 -33
- package/build/utils/cn.d.ts +6 -0
- package/build/validation/transformer.d.ts +33 -0
- package/build/validation/validator.d.ts +23 -0
- package/package.json +14 -41
- package/build/App.d.ts +0 -2
- package/build/build/bundle.css +0 -3789
- package/build/config/index.d.ts +0 -5
- package/build/importer/components/Portal/index.d.ts +0 -3
- package/build/importer/components/Portal/types/index.d.ts +0 -5
- package/build/importer/components/Table/storyData.d.ts +0 -36
- package/build/importer/features/map-columns/hooks/useNameChange.d.ts +0 -5
- package/build/importer/features/validation/SimpleValidation.d.ts +0 -2
- package/build/importer/features/validation/components/SimpleSpreadsheetGrid/SimpleSpreadsheetGrid.d.ts +0 -27
- package/build/importer/features/validation/components/SimpleSpreadsheetGrid/index.d.ts +0 -1
- package/build/importer/features/validation/components/SpreadsheetGrid/CellSelection.d.ts +0 -15
- package/build/importer/features/validation/components/SpreadsheetGrid/ClipboardManager.d.ts +0 -20
- package/build/importer/features/validation/components/SpreadsheetGrid/FindReplaceModal.d.ts +0 -14
- package/build/importer/features/validation/components/SpreadsheetGrid/SpreadsheetGrid.d.ts +0 -37
- package/build/importer/features/validation/components/SpreadsheetGrid/UndoRedoManager.d.ts +0 -15
- package/build/importer/features/validation/components/SpreadsheetGrid/index.d.ts +0 -1
- package/build/importer/hooks/useDelayLoader.d.ts +0 -2
- package/build/importer/settings/chakra/components/alert.d.ts +0 -31
- package/build/importer/settings/chakra/components/button.d.ts +0 -37
- package/build/importer/settings/chakra/components/index.d.ts +0 -2
- package/build/importer/settings/chakra/foundations/blur.d.ts +0 -11
- package/build/importer/settings/chakra/foundations/borders.d.ts +0 -8
- package/build/importer/settings/chakra/foundations/breakpoints.d.ts +0 -9
- package/build/importer/settings/chakra/foundations/colors.d.ts +0 -247
- package/build/importer/settings/chakra/foundations/index.d.ts +0 -487
- package/build/importer/settings/chakra/foundations/radius.d.ts +0 -12
- package/build/importer/settings/chakra/foundations/shadows.d.ts +0 -14
- package/build/importer/settings/chakra/foundations/sizes.d.ts +0 -60
- package/build/importer/settings/chakra/foundations/spacing.d.ts +0 -35
- package/build/importer/settings/chakra/foundations/transition.d.ts +0 -24
- package/build/importer/settings/chakra/foundations/typography.d.ts +0 -61
- package/build/importer/settings/chakra/foundations/z-index.d.ts +0 -16
- package/build/importer/settings/chakra/index.d.ts +0 -592
- package/build/importer/settings/chakra/semantic-tokens.d.ts +0 -32
- package/build/importer/settings/chakra/styles.d.ts +0 -2
- package/build/importer/settings/chakra/theme.types.d.ts +0 -93
- package/build/importer/settings/chakra/utils/is-chakra-theme.d.ts +0 -3
- package/build/importer/settings/chakra/utils/run-if-fn.d.ts +0 -1
- package/build/importer/utils/classes.d.ts +0 -2
- package/build/importer/utils/debounce.d.ts +0 -2
- package/build/index.dev.d.ts +0 -1
- package/build/package.json +0 -92
- package/build/services/api.d.ts +0 -18
- package/build/services/apiClient.d.ts +0 -21
- package/build/utils/classes.d.ts +0 -6
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
modalCloseOnOutsideClick?: boolean | undefined;
|
|
34
|
-
} & React.RefAttributes<unknown>>;
|
|
35
|
-
export default CSVImporter;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const CSVImporter: React.ForwardRefExoticComponent<{
|
|
3
|
+
columns?: import('../../types').Column[] | undefined;
|
|
4
|
+
importerKey?: string | undefined;
|
|
5
|
+
onComplete?: ((data: any) => void) | undefined;
|
|
6
|
+
backendUrl?: string | undefined;
|
|
7
|
+
user?: Record<string, any> | undefined;
|
|
8
|
+
metadata?: Record<string, any> | undefined;
|
|
9
|
+
darkMode?: boolean | undefined;
|
|
10
|
+
primaryColor?: string | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
customStyles?: string | Record<string, string> | undefined;
|
|
13
|
+
showDownloadTemplateButton?: boolean | undefined;
|
|
14
|
+
skipHeaderRowSelection?: boolean | undefined;
|
|
15
|
+
waitOnComplete?: boolean | undefined;
|
|
16
|
+
language?: string | undefined;
|
|
17
|
+
customTranslations?: {
|
|
18
|
+
[language: string]: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
} | undefined;
|
|
22
|
+
demoData?: {
|
|
23
|
+
fileName: string;
|
|
24
|
+
csvContent: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
isModal?: boolean | undefined;
|
|
28
|
+
modalIsOpen?: boolean | undefined;
|
|
29
|
+
modalOnCloseTriggered?: (() => void) | undefined;
|
|
30
|
+
modalCloseOnOutsideClick?: boolean | undefined;
|
|
31
|
+
} & React.RefAttributes<unknown>>;
|
|
32
|
+
export default CSVImporter;
|
package/build/i18n/de.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
declare const translations: {
|
|
2
|
-
Upload: string;
|
|
3
|
-
"Select Header": string;
|
|
4
|
-
"Map Columns": string;
|
|
5
|
-
"Expected Column": string;
|
|
6
|
-
Required: string;
|
|
7
|
-
"Drop your file here": string;
|
|
8
|
-
or: string;
|
|
9
|
-
"Browse files": string;
|
|
10
|
-
"Download Template": string;
|
|
11
|
-
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
-
"Select Header Row": string;
|
|
13
|
-
"Select the row which contains the column headers": string;
|
|
14
|
-
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
-
Cancel: string;
|
|
16
|
-
Continue: string;
|
|
17
|
-
"Your File Column": string;
|
|
18
|
-
"Your Sample Data": string;
|
|
19
|
-
"Destination Column": string;
|
|
20
|
-
Include: string;
|
|
21
|
-
Submit: string;
|
|
22
|
-
"Loading...": string;
|
|
23
|
-
"Please include all required columns": string;
|
|
24
|
-
Back: string;
|
|
25
|
-
"- Select one -": string;
|
|
26
|
-
"- empty -": string;
|
|
27
|
-
"Import Successful": string;
|
|
28
|
-
"Upload Successful": string;
|
|
29
|
-
Done: string;
|
|
30
|
-
"Upload another file": string;
|
|
31
|
-
};
|
|
32
|
-
export default translations;
|
|
1
|
+
declare const translations: {
|
|
2
|
+
Upload: string;
|
|
3
|
+
"Select Header": string;
|
|
4
|
+
"Map Columns": string;
|
|
5
|
+
"Expected Column": string;
|
|
6
|
+
Required: string;
|
|
7
|
+
"Drop your file here": string;
|
|
8
|
+
or: string;
|
|
9
|
+
"Browse files": string;
|
|
10
|
+
"Download Template": string;
|
|
11
|
+
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
+
"Select Header Row": string;
|
|
13
|
+
"Select the row which contains the column headers": string;
|
|
14
|
+
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Continue: string;
|
|
17
|
+
"Your File Column": string;
|
|
18
|
+
"Your Sample Data": string;
|
|
19
|
+
"Destination Column": string;
|
|
20
|
+
Include: string;
|
|
21
|
+
Submit: string;
|
|
22
|
+
"Loading...": string;
|
|
23
|
+
"Please include all required columns": string;
|
|
24
|
+
Back: string;
|
|
25
|
+
"- Select one -": string;
|
|
26
|
+
"- empty -": string;
|
|
27
|
+
"Import Successful": string;
|
|
28
|
+
"Upload Successful": string;
|
|
29
|
+
Done: string;
|
|
30
|
+
"Upload another file": string;
|
|
31
|
+
};
|
|
32
|
+
export default translations;
|
package/build/i18n/es.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
declare const translations: {
|
|
2
|
-
Upload: string;
|
|
3
|
-
"Select Header": string;
|
|
4
|
-
"Map Columns": string;
|
|
5
|
-
"Expected Column": string;
|
|
6
|
-
Required: string;
|
|
7
|
-
"Drop your file here": string;
|
|
8
|
-
or: string;
|
|
9
|
-
"Browse files": string;
|
|
10
|
-
"Download Template": string;
|
|
11
|
-
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
-
"Select Header Row": string;
|
|
13
|
-
"Select the row which contains the column headers": string;
|
|
14
|
-
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
-
Cancel: string;
|
|
16
|
-
Continue: string;
|
|
17
|
-
"Your File Column": string;
|
|
18
|
-
"Your Sample Data": string;
|
|
19
|
-
"Destination Column": string;
|
|
20
|
-
Include: string;
|
|
21
|
-
Submit: string;
|
|
22
|
-
"Loading...": string;
|
|
23
|
-
"Please include all required columns": string;
|
|
24
|
-
Back: string;
|
|
25
|
-
"- Select one -": string;
|
|
26
|
-
"- empty -": string;
|
|
27
|
-
"Import Successful": string;
|
|
28
|
-
"Upload Successful": string;
|
|
29
|
-
Done: string;
|
|
30
|
-
"Upload another file": string;
|
|
31
|
-
};
|
|
32
|
-
export default translations;
|
|
1
|
+
declare const translations: {
|
|
2
|
+
Upload: string;
|
|
3
|
+
"Select Header": string;
|
|
4
|
+
"Map Columns": string;
|
|
5
|
+
"Expected Column": string;
|
|
6
|
+
Required: string;
|
|
7
|
+
"Drop your file here": string;
|
|
8
|
+
or: string;
|
|
9
|
+
"Browse files": string;
|
|
10
|
+
"Download Template": string;
|
|
11
|
+
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
+
"Select Header Row": string;
|
|
13
|
+
"Select the row which contains the column headers": string;
|
|
14
|
+
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Continue: string;
|
|
17
|
+
"Your File Column": string;
|
|
18
|
+
"Your Sample Data": string;
|
|
19
|
+
"Destination Column": string;
|
|
20
|
+
Include: string;
|
|
21
|
+
Submit: string;
|
|
22
|
+
"Loading...": string;
|
|
23
|
+
"Please include all required columns": string;
|
|
24
|
+
Back: string;
|
|
25
|
+
"- Select one -": string;
|
|
26
|
+
"- empty -": string;
|
|
27
|
+
"Import Successful": string;
|
|
28
|
+
"Upload Successful": string;
|
|
29
|
+
Done: string;
|
|
30
|
+
"Upload another file": string;
|
|
31
|
+
};
|
|
32
|
+
export default translations;
|
package/build/i18n/fr.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
declare const translations: {
|
|
2
|
-
Upload: string;
|
|
3
|
-
"Select Header": string;
|
|
4
|
-
"Map Columns": string;
|
|
5
|
-
"Expected Column": string;
|
|
6
|
-
Required: string;
|
|
7
|
-
"Drop your file here": string;
|
|
8
|
-
or: string;
|
|
9
|
-
"Browse files": string;
|
|
10
|
-
"Download Template": string;
|
|
11
|
-
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
-
"Select Header Row": string;
|
|
13
|
-
"Select the row which contains the column headers": string;
|
|
14
|
-
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
-
Cancel: string;
|
|
16
|
-
Continue: string;
|
|
17
|
-
"Your File Column": string;
|
|
18
|
-
"Your Sample Data": string;
|
|
19
|
-
"Destination Column": string;
|
|
20
|
-
Include: string;
|
|
21
|
-
Submit: string;
|
|
22
|
-
"Loading...": string;
|
|
23
|
-
"Please include all required columns": string;
|
|
24
|
-
Back: string;
|
|
25
|
-
"- Select one -": string;
|
|
26
|
-
"- empty -": string;
|
|
27
|
-
"Import Successful": string;
|
|
28
|
-
"Upload Successful": string;
|
|
29
|
-
Done: string;
|
|
30
|
-
"Upload another file": string;
|
|
31
|
-
};
|
|
32
|
-
export default translations;
|
|
1
|
+
declare const translations: {
|
|
2
|
+
Upload: string;
|
|
3
|
+
"Select Header": string;
|
|
4
|
+
"Map Columns": string;
|
|
5
|
+
"Expected Column": string;
|
|
6
|
+
Required: string;
|
|
7
|
+
"Drop your file here": string;
|
|
8
|
+
or: string;
|
|
9
|
+
"Browse files": string;
|
|
10
|
+
"Download Template": string;
|
|
11
|
+
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
+
"Select Header Row": string;
|
|
13
|
+
"Select the row which contains the column headers": string;
|
|
14
|
+
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Continue: string;
|
|
17
|
+
"Your File Column": string;
|
|
18
|
+
"Your Sample Data": string;
|
|
19
|
+
"Destination Column": string;
|
|
20
|
+
Include: string;
|
|
21
|
+
Submit: string;
|
|
22
|
+
"Loading...": string;
|
|
23
|
+
"Please include all required columns": string;
|
|
24
|
+
Back: string;
|
|
25
|
+
"- Select one -": string;
|
|
26
|
+
"- empty -": string;
|
|
27
|
+
"Import Successful": string;
|
|
28
|
+
"Upload Successful": string;
|
|
29
|
+
Done: string;
|
|
30
|
+
"Upload another file": string;
|
|
31
|
+
};
|
|
32
|
+
export default translations;
|
package/build/i18n/i18n.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const dummyI18n: {
|
|
2
|
-
t: (key: string, options?: any) => string;
|
|
3
|
-
changeLanguage: () => Promise<void>;
|
|
4
|
-
addResourceBundle: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
export default dummyI18n;
|
|
1
|
+
declare const dummyI18n: {
|
|
2
|
+
t: (key: string, options?: any) => string;
|
|
3
|
+
changeLanguage: () => Promise<void>;
|
|
4
|
+
addResourceBundle: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
export default dummyI18n;
|
package/build/i18n/it.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
declare const translations: {
|
|
2
|
-
Upload: string;
|
|
3
|
-
"Select Header": string;
|
|
4
|
-
"Map Columns": string;
|
|
5
|
-
"Expected Column": string;
|
|
6
|
-
Required: string;
|
|
7
|
-
"Drop your file here": string;
|
|
8
|
-
or: string;
|
|
9
|
-
"Browse files": string;
|
|
10
|
-
"Download Template": string;
|
|
11
|
-
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
-
"Select Header Row": string;
|
|
13
|
-
"Select the row which contains the column headers": string;
|
|
14
|
-
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
-
Cancel: string;
|
|
16
|
-
Continue: string;
|
|
17
|
-
"Your File Column": string;
|
|
18
|
-
"Your Sample Data": string;
|
|
19
|
-
"Destination Column": string;
|
|
20
|
-
Include: string;
|
|
21
|
-
Submit: string;
|
|
22
|
-
"Loading...": string;
|
|
23
|
-
"Please include all required columns": string;
|
|
24
|
-
Back: string;
|
|
25
|
-
"- Select one -": string;
|
|
26
|
-
"- empty -": string;
|
|
27
|
-
"Import Successful": string;
|
|
28
|
-
"Upload Successful": string;
|
|
29
|
-
Done: string;
|
|
30
|
-
"Upload another file": string;
|
|
31
|
-
};
|
|
32
|
-
export default translations;
|
|
1
|
+
declare const translations: {
|
|
2
|
+
Upload: string;
|
|
3
|
+
"Select Header": string;
|
|
4
|
+
"Map Columns": string;
|
|
5
|
+
"Expected Column": string;
|
|
6
|
+
Required: string;
|
|
7
|
+
"Drop your file here": string;
|
|
8
|
+
or: string;
|
|
9
|
+
"Browse files": string;
|
|
10
|
+
"Download Template": string;
|
|
11
|
+
"Only CSV, XLS, and XLSX files can be uploaded": string;
|
|
12
|
+
"Select Header Row": string;
|
|
13
|
+
"Select the row which contains the column headers": string;
|
|
14
|
+
"Only the first sheet ("{{sheet}}") of the Excel file will be imported. To import multiple sheets, please upload each sheet individually.": string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Continue: string;
|
|
17
|
+
"Your File Column": string;
|
|
18
|
+
"Your Sample Data": string;
|
|
19
|
+
"Destination Column": string;
|
|
20
|
+
Include: string;
|
|
21
|
+
Submit: string;
|
|
22
|
+
"Loading...": string;
|
|
23
|
+
"Please include all required columns": string;
|
|
24
|
+
Back: string;
|
|
25
|
+
"- Select one -": string;
|
|
26
|
+
"- empty -": string;
|
|
27
|
+
"Import Successful": string;
|
|
28
|
+
"Upload Successful": string;
|
|
29
|
+
Done: string;
|
|
30
|
+
"Upload another file": string;
|
|
31
|
+
};
|
|
32
|
+
export default translations;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const useTranslation: () => {
|
|
2
|
-
t: (key: string, options?: any) => string;
|
|
3
|
-
i18n: {
|
|
4
|
-
t: (key: string, options?: any) => string;
|
|
5
|
-
changeLanguage: () => Promise<void>;
|
|
6
|
-
addResourceBundle: () => boolean;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default useTranslation;
|
|
1
|
+
export declare const useTranslation: () => {
|
|
2
|
+
t: (key: string, options?: any) => string;
|
|
3
|
+
i18n: {
|
|
4
|
+
t: (key: string, options?: any) => string;
|
|
5
|
+
changeLanguage: () => Promise<void>;
|
|
6
|
+
addResourceBundle: () => boolean;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default useTranslation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
2
|
-
export default function Box({ className, variants, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { BoxProps } from './types';
|
|
2
|
+
export default function Box({ className, variants, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type BoxVariant = "fluid" | "mid" | "wide" | "space-l" | "space-mid" | "space-none" | "bg-shade";
|
|
3
|
-
export type BoxProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
-
variants?: BoxVariant[];
|
|
5
|
-
};
|
|
6
|
-
export declare const boxVariants: BoxVariant[];
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type BoxVariant = "fluid" | "mid" | "wide" | "space-l" | "space-mid" | "space-none" | "bg-shade";
|
|
3
|
+
export type BoxProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
variants?: BoxVariant[];
|
|
5
|
+
};
|
|
6
|
+
export declare const boxVariants: BoxVariant[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CheckboxProps } from
|
|
2
|
-
export default function Checkbox({ label, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { CheckboxProps } from './types';
|
|
2
|
+
export default function Checkbox({ label, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactElement } from
|
|
2
|
-
export type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
label?: string | ReactElement;
|
|
4
|
-
};
|
|
1
|
+
import { InputHTMLAttributes, ReactElement } from 'react';
|
|
2
|
+
export type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
label?: string | ReactElement;
|
|
4
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function Errors({ error, centered }: {
|
|
2
|
-
error?: unknown;
|
|
3
|
-
centered?: boolean;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
export default function Errors({ error, centered }: {
|
|
2
|
+
error?: unknown;
|
|
3
|
+
centered?: boolean;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* IframeWrapper Component
|
|
4
|
-
*
|
|
5
|
-
* Provides complete CSS isolation for the importer by rendering content inside an iframe.
|
|
6
|
-
* This follows industry best practices used by embedded SaaS tools like TableFlow,
|
|
7
|
-
* Intercom, Zendesk, and Stripe.
|
|
8
|
-
*
|
|
9
|
-
* Key benefits:
|
|
10
|
-
* - Complete CSS isolation from parent application
|
|
11
|
-
* - Prevents parent styles (e.g., container max-width) from affecting the importer
|
|
12
|
-
* - Only copies external stylesheets from parent document into iframe
|
|
13
|
-
* - Maintains React context and functionality through react-frame-component
|
|
14
|
-
* - Prevents style leakage between iframe and parent document
|
|
15
|
-
*
|
|
16
|
-
* @param children - React components to render inside the iframe
|
|
17
|
-
* @param className - Optional CSS class for the iframe element
|
|
18
|
-
*/
|
|
19
|
-
interface IframeWrapperProps {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
className?: string;
|
|
22
|
-
primaryColor?: string;
|
|
23
|
-
}
|
|
24
|
-
export default function IframeWrapper({ children, className, primaryColor }: IframeWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* IframeWrapper Component
|
|
4
|
+
*
|
|
5
|
+
* Provides complete CSS isolation for the importer by rendering content inside an iframe.
|
|
6
|
+
* This follows industry best practices used by embedded SaaS tools like TableFlow,
|
|
7
|
+
* Intercom, Zendesk, and Stripe.
|
|
8
|
+
*
|
|
9
|
+
* Key benefits:
|
|
10
|
+
* - Complete CSS isolation from parent application
|
|
11
|
+
* - Prevents parent styles (e.g., container max-width) from affecting the importer
|
|
12
|
+
* - Only copies external stylesheets from parent document into iframe
|
|
13
|
+
* - Maintains React context and functionality through react-frame-component
|
|
14
|
+
* - Prevents style leakage between iframe and parent document
|
|
15
|
+
*
|
|
16
|
+
* @param children - React components to render inside the iframe
|
|
17
|
+
* @param className - Optional CSS class for the iframe element
|
|
18
|
+
*/
|
|
19
|
+
interface IframeWrapperProps {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
primaryColor?: string;
|
|
23
|
+
}
|
|
24
|
+
export default function IframeWrapper({ children, className, primaryColor }: IframeWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ImporterLayoutProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
stepper: any;
|
|
5
|
+
isModal: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
error?: string | null;
|
|
8
|
+
isLoadingExcelParser?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Layout wrapper for the importer
|
|
12
|
+
* Handles the common UI structure including stepper, content area, and close button
|
|
13
|
+
*/
|
|
14
|
+
export default function ImporterLayout({ children, stepper, isModal, onClose, error, isLoadingExcelParser }: ImporterLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from
|
|
2
|
-
export default function Input({ as, label, icon, iconAfter, error, options, className, variants, children, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { InputProps } from './types';
|
|
2
|
+
export default function Input({ as, label, icon, iconAfter, error, options, className, variants, children, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, InputHTMLAttributes, ReactElement } from
|
|
2
|
-
export type inputTypes = "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
3
|
-
export type InputVariants = "fluid" | "small";
|
|
4
|
-
export type InputOption = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
-
required?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export type InputProps = InputHTMLAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLSelectElement> & InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
8
|
-
as?: "input" | "textarea";
|
|
9
|
-
label?: string | ReactElement;
|
|
10
|
-
icon?: ReactElement;
|
|
11
|
-
iconAfter?: ReactElement;
|
|
12
|
-
error?: string;
|
|
13
|
-
options?: {
|
|
14
|
-
[key: string]: InputOption;
|
|
15
|
-
};
|
|
16
|
-
variants?: InputVariants[];
|
|
17
|
-
type?: inputTypes;
|
|
18
|
-
};
|
|
1
|
+
import { ButtonHTMLAttributes, InputHTMLAttributes, ReactElement } from 'react';
|
|
2
|
+
export type inputTypes = "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
3
|
+
export type InputVariants = "fluid" | "small";
|
|
4
|
+
export type InputOption = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
+
required?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type InputProps = InputHTMLAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLSelectElement> & InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
8
|
+
as?: "input" | "textarea";
|
|
9
|
+
label?: string | ReactElement;
|
|
10
|
+
icon?: ReactElement;
|
|
11
|
+
iconAfter?: ReactElement;
|
|
12
|
+
error?: string;
|
|
13
|
+
options?: {
|
|
14
|
+
[key: string]: InputOption;
|
|
15
|
+
};
|
|
16
|
+
variants?: InputVariants[];
|
|
17
|
+
type?: inputTypes;
|
|
18
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Step, StepperProps } from
|
|
2
|
-
export default function useStepper(steps: Step[], initialStep: number | undefined, skipHeader: boolean): StepperProps;
|
|
1
|
+
import { Step, StepperProps } from '../types';
|
|
2
|
+
export default function useStepper(steps: Step[], initialStep: number | undefined, skipHeader: boolean): StepperProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StepperProps } from
|
|
2
|
-
export default function Stepper({ steps, current,
|
|
1
|
+
import { StepperProps } from './types';
|
|
2
|
+
export default function Stepper({ steps, current, hide, skipHeader }: StepperProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export type Step = {
|
|
2
|
-
label: string;
|
|
3
|
-
id?: string | number;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type StepperProps = {
|
|
7
|
-
steps: Step[];
|
|
8
|
-
current: number;
|
|
9
|
-
setCurrent: (step: number) => void;
|
|
10
|
-
step: Step;
|
|
11
|
-
clickable?: boolean;
|
|
12
|
-
skipHeader: boolean;
|
|
13
|
-
|
|
1
|
+
export type Step = {
|
|
2
|
+
label: string;
|
|
3
|
+
id?: string | number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type StepperProps = {
|
|
7
|
+
steps: Step[];
|
|
8
|
+
current: number;
|
|
9
|
+
setCurrent: (step: number) => void;
|
|
10
|
+
step: Step;
|
|
11
|
+
clickable?: boolean;
|
|
12
|
+
skipHeader: boolean;
|
|
13
|
+
hide?: boolean;
|
|
14
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { TableProps } from
|
|
3
|
-
export default function Table({ data, // An array of objects with the data to be displayed
|
|
4
|
-
keyAsId, // Has to be a unique property in the data array to be used as key
|
|
5
|
-
theme, // A CSS module object to style the table
|
|
6
|
-
mergeThemes, // Should 'theme' be the only style applied (false) or be merged with the default style (true)
|
|
7
|
-
highlightColumns, // Columns that should use the highlighted style
|
|
8
|
-
hideColumns, // Array of columns to be hidden in the display
|
|
9
|
-
emptyState, heading, background, columnWidths, columnAlignments, fixHeader, onRowClick, }: TableProps): React.ReactElement;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TableProps } from './types';
|
|
3
|
+
export default function Table({ data, // An array of objects with the data to be displayed
|
|
4
|
+
keyAsId, // Has to be a unique property in the data array to be used as key
|
|
5
|
+
theme, // A CSS module object to style the table
|
|
6
|
+
mergeThemes, // Should 'theme' be the only style applied (false) or be merged with the default style (true)
|
|
7
|
+
highlightColumns, // Columns that should use the highlighted style
|
|
8
|
+
hideColumns, // Array of columns to be hidden in the display
|
|
9
|
+
emptyState, heading, background, columnWidths, columnAlignments, fixHeader, onRowClick, }: TableProps): React.ReactElement;
|