@importcsv/react 0.2.3 → 0.2.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.
- package/build/App.d.ts +2 -0
- package/build/bundled/importer/components/ui/use-toast.d.ts +1 -1
- package/build/bundled/index.esm.js +3027 -3205
- package/build/bundled/index.esm.js.map +1 -1
- package/build/bundled/index.js +30 -30
- package/build/bundled/index.js.map +1 -1
- package/build/bundled/index.umd.js +30 -30
- package/build/bundled/index.umd.js.map +1 -1
- package/build/bundled/utils/injectStyles.d.ts +14 -0
- package/build/bundled-styles.d.ts +1 -0
- package/build/components/CSVImporter/index.d.ts +9 -0
- package/build/components/Modal/index.d.ts +12 -0
- package/build/config/index.d.ts +5 -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 +6 -0
- package/build/i18n/it.d.ts +32 -0
- package/build/i18n/useTranslation.d.ts +9 -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/Root/index.d.ts +10 -0
- package/build/importer/components/StepLayout/index.d.ts +18 -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 +14 -0
- package/build/importer/components/Table/index.d.ts +9 -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/NativeDropzone.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/components/VirtualTable/index.d.ts +17 -0
- package/build/importer/components/ui/alert.d.ts +10 -0
- package/build/importer/components/ui/button.d.ts +12 -0
- package/build/importer/components/ui/card.d.ts +19 -0
- package/build/importer/components/ui/checkbox.d.ts +7 -0
- package/build/importer/components/ui/dialog.d.ts +39 -0
- package/build/importer/components/ui/flex.d.ts +23 -0
- package/build/importer/components/ui/input.d.ts +6 -0
- package/build/importer/components/ui/select.d.ts +13 -0
- package/build/importer/components/ui/switch.d.ts +7 -0
- package/build/importer/components/ui/toast.d.ts +23 -0
- package/build/importer/components/ui/toaster.d.ts +1 -0
- package/build/importer/components/ui/tooltip.d.ts +20 -0
- package/build/importer/components/ui/use-toast.d.ts +46 -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/configure-import/index.d.ts +13 -0
- package/build/importer/features/configure-import/types/index.d.ts +13 -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 +21 -0
- package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
- package/build/importer/features/map-columns/index.d.ts +2 -0
- package/build/importer/features/map-columns/types/index.d.ts +16 -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/validation/Validation.d.ts +2 -0
- package/build/importer/features/validation/components/TransformModal.d.ts +18 -0
- package/build/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/importer/features/validation/index.d.ts +1 -0
- package/build/importer/features/validation/types.d.ts +32 -0
- package/build/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/importer/hooks/useCustomStyles.d.ts +1 -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 +10 -0
- package/build/importer/providers/index.d.ts +5 -0
- package/build/importer/providers/types/index.d.ts +10 -0
- package/build/importer/services/api.d.ts +1 -0
- package/build/importer/services/mapping.d.ts +31 -0
- package/build/importer/services/transformation.d.ts +70 -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/theme/index.d.ts +8 -0
- package/build/importer/theme/presets.d.ts +314 -0
- package/build/importer/theme/runtime.d.ts +66 -0
- package/build/importer/theme/styles.d.ts +120 -0
- package/build/importer/types/index.d.ts +9 -0
- package/build/importer/utils/colorUtils.d.ts +48 -0
- package/build/importer/utils/errorAnalysis.d.ts +25 -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/themeUtils.d.ts +24 -0
- package/build/importer/utils/utils.d.ts +19 -0
- package/build/index.d.ts +6 -0
- package/build/index.dev.d.ts +1 -0
- package/build/js.d.ts +12 -0
- package/build/preact/importer/components/ui/use-toast.d.ts +1 -1
- package/build/preact/index.esm.js +2053 -2231
- package/build/preact/index.esm.js.map +1 -1
- package/build/preact/index.js +30 -30
- package/build/preact/index.js.map +1 -1
- package/build/preact/utils/injectStyles.d.ts +14 -0
- package/build/react/components/Modal/index.d.ts +12 -0
- package/build/react/importer/components/Table/types/index.d.ts +42 -0
- package/build/react/importer/components/ui/alert.d.ts +4 -1
- package/build/react/importer/components/ui/tooltip.d.ts +6 -2
- package/build/react/index.d.ts +1 -0
- package/build/react/index.esm.js +3993 -3803
- package/build/react/index.esm.js.map +1 -1
- package/build/react/index.js +31 -31
- package/build/react/index.js.map +1 -1
- package/build/services/api.d.ts +50 -0
- package/build/services/apiClient.d.ts +55 -0
- package/build/settings/defaults.d.ts +3 -0
- package/build/shims/react-compat-shim.d.ts +2 -0
- package/build/shims/react-hooks-shim.d.ts +2 -0
- package/build/styles.d.ts +1 -0
- package/build/types/index.d.ts +132 -0
- package/build/types/theme.d.ts +153 -0
- package/build/utils/cn.d.ts +6 -0
- package/build/validation/transformationStages.d.ts +26 -0
- package/build/validation/transformer.d.ts +17 -0
- package/build/validation/validator.d.ts +23 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Injects ImportCSV styles into the document head
|
|
3
|
+
* Uses a singleton pattern to prevent duplicate injection
|
|
4
|
+
*/
|
|
5
|
+
export declare function injectImportCSVStyles(): void;
|
|
6
|
+
/**
|
|
7
|
+
* Removes ImportCSV styles from the DOM
|
|
8
|
+
* Useful for cleanup in certain scenarios
|
|
9
|
+
*/
|
|
10
|
+
export declare function removeImportCSVStyles(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Checks if ImportCSV styles are currently injected
|
|
13
|
+
*/
|
|
14
|
+
export declare function areStylesInjected(): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../../react';
|
|
2
|
+
interface ModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
children: ComponentChildren;
|
|
6
|
+
closeOnOutsideClick?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
overlayClassName?: string;
|
|
9
|
+
contentClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Modal: ({ isOpen, onClose, children, closeOnOutsideClick, className, overlayClassName, contentClassName }: ModalProps) => import('react').ReactPortal | null;
|
|
12
|
+
export default Modal;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { JSX } from '../../../../../react';
|
|
2
|
+
type Style = {
|
|
3
|
+
readonly [key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
6
|
+
export type TableComposite = {
|
|
7
|
+
raw: Primitive;
|
|
8
|
+
content: Primitive | JSX.Element;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
captionInfo?: string;
|
|
11
|
+
};
|
|
12
|
+
export type TableValue = Primitive | TableComposite;
|
|
13
|
+
export type TableDatum = {
|
|
14
|
+
[key: string]: TableValue;
|
|
15
|
+
};
|
|
16
|
+
export type TableData = TableDatum[];
|
|
17
|
+
export type TableProps = {
|
|
18
|
+
data: TableData;
|
|
19
|
+
keyAsId?: string;
|
|
20
|
+
theme?: Style;
|
|
21
|
+
mergeThemes?: boolean;
|
|
22
|
+
highlightColumns?: string[];
|
|
23
|
+
hideColumns?: string[];
|
|
24
|
+
emptyState?: ReactElement;
|
|
25
|
+
heading?: ReactElement;
|
|
26
|
+
background?: "zebra" | "dark" | "light" | "transparent";
|
|
27
|
+
columnWidths?: string[];
|
|
28
|
+
columnAlignments?: ("left" | "center" | "right" | "")[];
|
|
29
|
+
fixHeader?: boolean;
|
|
30
|
+
onRowClick?: (row: TableDatum) => void;
|
|
31
|
+
};
|
|
32
|
+
export type RowProps = {
|
|
33
|
+
datum: TableDatum;
|
|
34
|
+
isHeading?: boolean;
|
|
35
|
+
onClick?: (row: TableDatum) => void;
|
|
36
|
+
};
|
|
37
|
+
export type CellProps = PropsWithChildren<{
|
|
38
|
+
cellClass?: string;
|
|
39
|
+
cellStyle: Style;
|
|
40
|
+
tooltip?: string;
|
|
41
|
+
}>;
|
|
42
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const Alert: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
3
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string>> & {
|
|
2
5
|
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
3
6
|
}>;
|
|
4
7
|
declare const AlertTitle: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLHeadingElement>> & {
|
|
@@ -11,10 +11,14 @@ declare const TooltipProvider: ({ children }: {
|
|
|
11
11
|
children: ComponentChildren;
|
|
12
12
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare const TooltipRoot: ({ content, children, delayDuration, side, className }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const TooltipTrigger: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<
|
|
14
|
+
declare const TooltipTrigger: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
asChild?: boolean | undefined;
|
|
16
|
+
}> & {
|
|
15
17
|
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
16
18
|
}>;
|
|
17
|
-
declare const TooltipContent: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<
|
|
19
|
+
declare const TooltipContent: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
+
sideOffset?: number | undefined;
|
|
21
|
+
}> & {
|
|
18
22
|
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
19
23
|
}>;
|
|
20
24
|
export { Tooltip, TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider };
|
package/build/react/index.d.ts
CHANGED