@importcsv/react 0.2.8 → 0.2.10

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 (142) hide show
  1. package/build/{components → bundled/components}/Modal/index.d.ts +1 -1
  2. package/build/bundled/importer/components/Table/types/index.d.ts +42 -0
  3. package/build/bundled/importer/components/ui/alert.d.ts +4 -1
  4. package/build/bundled/importer/components/ui/tooltip.d.ts +6 -2
  5. package/build/bundled/index.d.ts +1 -0
  6. package/build/bundled/index.esm.js +4508 -4337
  7. package/build/bundled/index.esm.js.map +1 -1
  8. package/build/bundled/index.js +31 -31
  9. package/build/bundled/index.js.map +1 -1
  10. package/build/bundled/index.umd.js +31 -31
  11. package/build/bundled/index.umd.js.map +1 -1
  12. package/build/preact/index.esm.js +1 -1
  13. package/build/preact/index.js +1 -1
  14. package/build/react/components/CSVImporter/index.d.ts +1 -1
  15. package/build/react/importer/components/Root/index.d.ts +1 -1
  16. package/build/react/importer/components/ui/alert.d.ts +3 -3
  17. package/build/react/importer/components/ui/button.d.ts +1 -1
  18. package/build/react/importer/components/ui/card.d.ts +6 -6
  19. package/build/react/importer/components/ui/checkbox.d.ts +1 -1
  20. package/build/react/importer/components/ui/dialog.d.ts +5 -5
  21. package/build/react/importer/components/ui/flex.d.ts +5 -5
  22. package/build/react/importer/components/ui/input.d.ts +1 -1
  23. package/build/react/importer/components/ui/select.d.ts +1 -1
  24. package/build/react/importer/components/ui/switch.d.ts +1 -1
  25. package/build/react/importer/components/ui/toast.d.ts +5 -5
  26. package/build/react/importer/components/ui/tooltip.d.ts +2 -2
  27. package/build/react/index.esm.js +386 -384
  28. package/build/react/index.esm.js.map +1 -1
  29. package/build/react/index.js +22 -22
  30. package/build/react/index.js.map +1 -1
  31. package/build/react/js.d.ts +1 -1
  32. package/package.json +7 -5
  33. package/build/App.d.ts +0 -2
  34. package/build/bundled/utils/injectStyles.d.ts +0 -14
  35. package/build/bundled-styles.d.ts +0 -1
  36. package/build/components/CSVImporter/index.d.ts +0 -9
  37. package/build/config/index.d.ts +0 -5
  38. package/build/i18n/de.d.ts +0 -32
  39. package/build/i18n/es.d.ts +0 -32
  40. package/build/i18n/fr.d.ts +0 -32
  41. package/build/i18n/i18n.d.ts +0 -6
  42. package/build/i18n/it.d.ts +0 -32
  43. package/build/i18n/useTranslation.d.ts +0 -9
  44. package/build/importer/components/Box/index.d.ts +0 -2
  45. package/build/importer/components/Box/types/index.d.ts +0 -5
  46. package/build/importer/components/Checkbox/index.d.ts +0 -2
  47. package/build/importer/components/Checkbox/types/index.d.ts +0 -4
  48. package/build/importer/components/Errors/index.d.ts +0 -4
  49. package/build/importer/components/Input/index.d.ts +0 -2
  50. package/build/importer/components/Input/types/index.d.ts +0 -18
  51. package/build/importer/components/Root/index.d.ts +0 -10
  52. package/build/importer/components/StepLayout/index.d.ts +0 -18
  53. package/build/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  54. package/build/importer/components/Stepper/index.d.ts +0 -2
  55. package/build/importer/components/Stepper/types/index.d.ts +0 -14
  56. package/build/importer/components/Table/index.d.ts +0 -9
  57. package/build/importer/components/ToggleFilter/index.d.ts +0 -3
  58. package/build/importer/components/ToggleFilter/types/index.d.ts +0 -11
  59. package/build/importer/components/Tooltip/index.d.ts +0 -2
  60. package/build/importer/components/Tooltip/types/index.d.ts +0 -11
  61. package/build/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
  62. package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  63. package/build/importer/components/UploaderWrapper/types/index.d.ts +0 -2
  64. package/build/importer/components/VirtualTable/index.d.ts +0 -17
  65. package/build/importer/components/ui/alert.d.ts +0 -10
  66. package/build/importer/components/ui/button.d.ts +0 -12
  67. package/build/importer/components/ui/card.d.ts +0 -19
  68. package/build/importer/components/ui/checkbox.d.ts +0 -7
  69. package/build/importer/components/ui/dialog.d.ts +0 -39
  70. package/build/importer/components/ui/flex.d.ts +0 -23
  71. package/build/importer/components/ui/input.d.ts +0 -6
  72. package/build/importer/components/ui/select.d.ts +0 -13
  73. package/build/importer/components/ui/switch.d.ts +0 -7
  74. package/build/importer/components/ui/toast.d.ts +0 -23
  75. package/build/importer/components/ui/toaster.d.ts +0 -1
  76. package/build/importer/components/ui/tooltip.d.ts +0 -20
  77. package/build/importer/components/ui/use-toast.d.ts +0 -46
  78. package/build/importer/features/complete/index.d.ts +0 -2
  79. package/build/importer/features/complete/types/index.d.ts +0 -5
  80. package/build/importer/features/configure-import/index.d.ts +0 -13
  81. package/build/importer/features/configure-import/types/index.d.ts +0 -13
  82. package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
  83. package/build/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
  84. package/build/importer/features/main/index.d.ts +0 -2
  85. package/build/importer/features/main/types/index.d.ts +0 -16
  86. package/build/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
  87. package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
  88. package/build/importer/features/map-columns/index.d.ts +0 -2
  89. package/build/importer/features/map-columns/types/index.d.ts +0 -16
  90. package/build/importer/features/row-selection/index.d.ts +0 -2
  91. package/build/importer/features/row-selection/types/index.d.ts +0 -8
  92. package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  93. package/build/importer/features/uploader/index.d.ts +0 -2
  94. package/build/importer/features/uploader/types/index.d.ts +0 -9
  95. package/build/importer/features/validation/Validation.d.ts +0 -2
  96. package/build/importer/features/validation/components/TransformModal.d.ts +0 -18
  97. package/build/importer/features/validation/components/TransformPanel.d.ts +0 -18
  98. package/build/importer/features/validation/index.d.ts +0 -1
  99. package/build/importer/features/validation/types.d.ts +0 -32
  100. package/build/importer/hooks/useClickOutside.d.ts +0 -1
  101. package/build/importer/hooks/useCustomStyles.d.ts +0 -1
  102. package/build/importer/hooks/useEventListener.d.ts +0 -4
  103. package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  104. package/build/importer/hooks/useRect.d.ts +0 -12
  105. package/build/importer/hooks/useWindowSize.d.ts +0 -1
  106. package/build/importer/providers/Theme.d.ts +0 -10
  107. package/build/importer/providers/index.d.ts +0 -5
  108. package/build/importer/providers/types/index.d.ts +0 -10
  109. package/build/importer/services/api.d.ts +0 -1
  110. package/build/importer/services/mapping.d.ts +0 -31
  111. package/build/importer/services/transformation.d.ts +0 -70
  112. package/build/importer/settings/theme/colors.d.ts +0 -4
  113. package/build/importer/settings/theme/index.d.ts +0 -2
  114. package/build/importer/settings/theme/sizes.d.ts +0 -7
  115. package/build/importer/stores/theme.d.ts +0 -17
  116. package/build/importer/theme/index.d.ts +0 -8
  117. package/build/importer/theme/presets.d.ts +0 -314
  118. package/build/importer/theme/runtime.d.ts +0 -66
  119. package/build/importer/theme/styles.d.ts +0 -120
  120. package/build/importer/types/index.d.ts +0 -9
  121. package/build/importer/utils/colorUtils.d.ts +0 -48
  122. package/build/importer/utils/errorAnalysis.d.ts +0 -25
  123. package/build/importer/utils/getStringLengthOfChildren.d.ts +0 -2
  124. package/build/importer/utils/stringSimilarity.d.ts +0 -1
  125. package/build/importer/utils/template.d.ts +0 -2
  126. package/build/importer/utils/themeUtils.d.ts +0 -24
  127. package/build/importer/utils/utils.d.ts +0 -19
  128. package/build/index.d.ts +0 -6
  129. package/build/index.dev.d.ts +0 -1
  130. package/build/js.d.ts +0 -12
  131. package/build/services/api.d.ts +0 -50
  132. package/build/services/apiClient.d.ts +0 -55
  133. package/build/settings/defaults.d.ts +0 -3
  134. package/build/shims/react-compat-shim.d.ts +0 -2
  135. package/build/shims/react-hooks-shim.d.ts +0 -2
  136. package/build/styles.d.ts +0 -1
  137. package/build/types/index.d.ts +0 -132
  138. package/build/types/theme.d.ts +0 -153
  139. package/build/utils/cn.d.ts +0 -6
  140. package/build/validation/transformationStages.d.ts +0 -26
  141. package/build/validation/transformer.d.ts +0 -17
  142. package/build/validation/validator.d.ts +0 -23
@@ -8,5 +8,5 @@ interface ModalProps {
8
8
  overlayClassName?: string;
9
9
  contentClassName?: string;
10
10
  }
11
- declare const Modal: ({ isOpen, onClose, children, closeOnOutsideClick, className, overlayClassName, contentClassName }: ModalProps) => import("preact").VNode<any> | null;
11
+ declare const Modal: ({ isOpen, onClose, children, closeOnOutsideClick, className, overlayClassName, contentClassName }: ModalProps) => import('preact').VNode<any> | null;
12
12
  export default Modal;
@@ -0,0 +1,42 @@
1
+ import { JSX } from 'preact';
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
- declare const Alert: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<any> & {
1
+ import { VariantProps } from 'class-variance-authority';
2
+ declare const Alert: import('preact').FunctionalComponent<import('preact/compat').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('preact').Ref<HTMLDivElement> | undefined;
3
6
  }>;
4
7
  declare const AlertTitle: import('preact').FunctionalComponent<import('preact/compat').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('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<any> & {
14
+ declare const TooltipTrigger: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
15
+ asChild?: boolean | undefined;
16
+ }> & {
15
17
  ref?: import('preact').Ref<HTMLDivElement> | undefined;
16
18
  }>;
17
- declare const TooltipContent: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<any> & {
19
+ declare const TooltipContent: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
20
+ sideOffset?: number | undefined;
21
+ }> & {
18
22
  ref?: import('preact').Ref<HTMLDivElement> | undefined;
19
23
  }>;
20
24
  export { Tooltip, TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,4 +1,5 @@
1
1
  import { default as CSVImporter } from './components/CSVImporter';
2
2
  export { CSVImporter };
3
+ export default CSVImporter;
3
4
  export { importcsvStyles } from './styles';
4
5
  export type { Column, Validator, Transformer } from './types';