@importcsv/react 0.1.0
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/LICENSE +21 -0
- package/README.md +470 -0
- package/build/App.d.ts +2 -0
- package/build/api.d.ts +17 -0
- package/build/components/CSVImporter/CSVImporter.stories.d.ts +44 -0
- package/build/components/CSVImporter/index.d.ts +26 -0
- package/build/config/environments.d.ts +12 -0
- package/build/config/index.d.ts +5 -0
- package/build/config.d.ts +10 -0
- package/build/i18n/de.d.ts +32 -0
- package/build/i18n/es.d.ts +32 -0
- package/build/i18n/fr.d.ts +32 -0
- package/build/i18n/i18n.d.ts +2 -0
- package/build/i18n/it.d.ts +32 -0
- package/build/importer/components/Box/index.d.ts +2 -0
- package/build/importer/components/Box/types/index.d.ts +5 -0
- package/build/importer/components/Checkbox/index.d.ts +2 -0
- package/build/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/importer/components/Errors/index.d.ts +4 -0
- package/build/importer/components/Input/index.d.ts +2 -0
- package/build/importer/components/Input/types/index.d.ts +18 -0
- package/build/importer/components/Portal/index.d.ts +3 -0
- package/build/importer/components/Portal/types/index.d.ts +5 -0
- package/build/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/importer/components/Stepper/index.d.ts +2 -0
- package/build/importer/components/Stepper/types/index.d.ts +13 -0
- package/build/importer/components/Table/index.d.ts +9 -0
- package/build/importer/components/Table/storyData.d.ts +36 -0
- package/build/importer/components/Table/types/index.d.ts +42 -0
- package/build/importer/components/ToggleFilter/ToggleFilter.stories.d.ts +18 -0
- package/build/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/importer/components/Tooltip/index.d.ts +2 -0
- package/build/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/importer/features/complete/index.d.ts +2 -0
- package/build/importer/features/complete/types/index.d.ts +5 -0
- package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/importer/features/main/index.d.ts +2 -0
- package/build/importer/features/main/types/index.d.ts +16 -0
- package/build/importer/features/map-columns/components/DropDownFields.d.ts +19 -0
- package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +15 -0
- package/build/importer/features/map-columns/hooks/useNameChange.d.ts +5 -0
- package/build/importer/features/map-columns/index.d.ts +2 -0
- package/build/importer/features/map-columns/types/index.d.ts +23 -0
- package/build/importer/features/row-selection/index.d.ts +2 -0
- package/build/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/importer/features/uploader/index.d.ts +2 -0
- package/build/importer/features/uploader/types/index.d.ts +9 -0
- package/build/importer/features/validate/index.d.ts +24 -0
- package/build/importer/features/validation/AIFixModal.d.ts +23 -0
- package/build/importer/features/validation/SimpleValidation.d.ts +2 -0
- package/build/importer/features/validation/Validation.d.ts +2 -0
- package/build/importer/features/validation/ValidationFixed.d.ts +2 -0
- package/build/importer/features/validation/components/AISuggestionsPanel.d.ts +15 -0
- package/build/importer/features/validation/components/InlineFixSuggestion.d.ts +8 -0
- package/build/importer/features/validation/index.d.ts +1 -0
- package/build/importer/features/validation/types.d.ts +31 -0
- package/build/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/importer/hooks/useDelayLoader.d.ts +2 -0
- package/build/importer/hooks/useEventListener.d.ts +4 -0
- package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/importer/hooks/useRect.d.ts +12 -0
- package/build/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/importer/providers/Theme.d.ts +4 -0
- package/build/importer/providers/index.d.ts +2 -0
- package/build/importer/providers/types/index.d.ts +4 -0
- package/build/importer/services/api.d.ts +0 -0
- package/build/importer/services/validation-api.d.ts +14 -0
- package/build/importer/settings/chakra/components/alert.d.ts +31 -0
- package/build/importer/settings/chakra/components/button.d.ts +37 -0
- package/build/importer/settings/chakra/components/index.d.ts +2 -0
- package/build/importer/settings/chakra/foundations/blur.d.ts +11 -0
- package/build/importer/settings/chakra/foundations/borders.d.ts +8 -0
- package/build/importer/settings/chakra/foundations/breakpoints.d.ts +9 -0
- package/build/importer/settings/chakra/foundations/colors.d.ts +247 -0
- package/build/importer/settings/chakra/foundations/index.d.ts +487 -0
- package/build/importer/settings/chakra/foundations/radius.d.ts +12 -0
- package/build/importer/settings/chakra/foundations/shadows.d.ts +14 -0
- package/build/importer/settings/chakra/foundations/sizes.d.ts +60 -0
- package/build/importer/settings/chakra/foundations/spacing.d.ts +35 -0
- package/build/importer/settings/chakra/foundations/transition.d.ts +24 -0
- package/build/importer/settings/chakra/foundations/typography.d.ts +61 -0
- package/build/importer/settings/chakra/foundations/z-index.d.ts +16 -0
- package/build/importer/settings/chakra/index.d.ts +592 -0
- package/build/importer/settings/chakra/semantic-tokens.d.ts +32 -0
- package/build/importer/settings/chakra/styles.d.ts +2 -0
- package/build/importer/settings/chakra/theme.types.d.ts +93 -0
- package/build/importer/settings/chakra/utils/is-chakra-theme.d.ts +3 -0
- package/build/importer/settings/chakra/utils/run-if-fn.d.ts +1 -0
- package/build/importer/settings/theme/colors.d.ts +4 -0
- package/build/importer/settings/theme/index.d.ts +2 -0
- package/build/importer/settings/theme/sizes.d.ts +7 -0
- package/build/importer/stores/theme.d.ts +17 -0
- package/build/importer/types/index.d.ts +17 -0
- package/build/importer/utils/classes.d.ts +2 -0
- package/build/importer/utils/debounce.d.ts +2 -0
- package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/importer/utils/template.d.ts +2 -0
- package/build/importer/utils/utils.d.ts +11 -0
- package/build/index.d.ts +2 -0
- package/build/index.esm.js +54893 -0
- package/build/index.esm.js.map +1 -0
- package/build/index.js +54919 -0
- package/build/index.js.map +1 -0
- package/build/js.d.ts +31 -0
- package/build/services/api.d.ts +18 -0
- package/build/services/apiClient.d.ts +21 -0
- package/build/settings/defaults.d.ts +3 -0
- package/build/types/index.d.ts +24 -0
- package/build/types.d.ts +91 -0
- package/package.json +122 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function runIfFn<T, U>(valueOrFn: T | ((...fnArgs: U[]) => T), ...args: U[]): T;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Theme = "dark" | "light";
|
|
2
|
+
type themeStoreType = {
|
|
3
|
+
theme: Theme;
|
|
4
|
+
setTheme: (theme?: Theme) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const useThemeStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<themeStoreType>, "persist"> & {
|
|
7
|
+
persist: {
|
|
8
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<themeStoreType, themeStoreType>>) => void;
|
|
9
|
+
clearStorage: () => void;
|
|
10
|
+
rehydrate: () => void | Promise<void>;
|
|
11
|
+
hasHydrated: () => boolean;
|
|
12
|
+
onHydrate: (fn: (state: themeStoreType) => void) => () => void;
|
|
13
|
+
onFinishHydration: (fn: (state: themeStoreType) => void) => () => void;
|
|
14
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<themeStoreType, themeStoreType>>;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export default useThemeStore;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Template = {
|
|
2
|
+
columns: TemplateColumn[];
|
|
3
|
+
};
|
|
4
|
+
export type TemplateColumn = {
|
|
5
|
+
name: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
data_type?: string;
|
|
10
|
+
validation_format?: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
};
|
|
13
|
+
export type UploadColumn = {
|
|
14
|
+
index: number;
|
|
15
|
+
name: string;
|
|
16
|
+
sample_data: string[];
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function stringsSimilarity(s1: string, s2: string): number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const parseObjectOrStringJSON: (name: string, param?: Record<string, unknown> | string) => string;
|
|
2
|
+
export declare const parseObjectOrStringJSONToRecord: (name: string, param?: Record<string, unknown> | string) => Record<string, unknown>;
|
|
3
|
+
export declare const validateJSON: (str: string, paramName: string) => string;
|
|
4
|
+
export declare const sanitizeKey: (input: string) => string;
|
|
5
|
+
export declare const parseOptionalBoolean: (val?: boolean) => "" | "true" | "false";
|
|
6
|
+
export declare const strToBoolean: (str: string) => boolean;
|
|
7
|
+
export declare const strToOptionalBoolean: (str: string) => boolean | undefined;
|
|
8
|
+
export declare const strToDefaultBoolean: (str: string, defaultValue: boolean) => boolean;
|
|
9
|
+
export declare const isValidColor: (color: string) => boolean;
|
|
10
|
+
export declare const expandHex: (color: string) => string;
|
|
11
|
+
export declare const darkenColor: (color: string, percent: number) => string;
|
package/build/index.d.ts
ADDED