caplink-saas-ui-shared-component-library 1.77.1 → 1.78.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/dist/components/input/input.d.ts +5 -1
- package/dist/components/input/input.variants.d.ts +1 -1
- package/dist/components/search-string-input/search-string-input.d.ts +3 -1
- package/dist/features/spreadsheet/core/normalizers/string-normalizer.d.ts +2 -1
- package/dist/index.es.js +10406 -10524
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +61 -61
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/features/spreadsheet/ui/indicators/column-title-indicator.d.ts +0 -11
|
@@ -4,10 +4,14 @@ import { ReactNode, InputHTMLAttributes } from 'react';
|
|
|
4
4
|
export type InputProps = {
|
|
5
5
|
leftAdornment?: ReactNode;
|
|
6
6
|
containerClassName?: string;
|
|
7
|
+
isProcessing?: boolean;
|
|
8
|
+
onRetry?: () => void;
|
|
7
9
|
} & InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants>;
|
|
8
10
|
export declare const Input: import('react').ForwardRefExoticComponent<{
|
|
9
11
|
leftAdornment?: ReactNode;
|
|
10
12
|
containerClassName?: string | undefined;
|
|
13
|
+
isProcessing?: boolean | undefined;
|
|
14
|
+
onRetry?: (() => void) | undefined;
|
|
11
15
|
} & InputHTMLAttributes<HTMLInputElement> & VariantProps<(props?: ({
|
|
12
|
-
variant?: "default" | "success" | "warning" | "danger" | null | undefined;
|
|
16
|
+
variant?: "default" | "success" | "warning" | "danger" | "processing" | "retry" | null | undefined;
|
|
13
17
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const inputVariants: (props?: ({
|
|
2
|
-
variant?: "default" | "success" | "warning" | "danger" | null | undefined;
|
|
2
|
+
variant?: "default" | "success" | "warning" | "danger" | "processing" | "retry" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -5,8 +5,10 @@ export type SearchStringInputProps = InputProps & {
|
|
|
5
5
|
export declare const SearchStringInput: import('react').ForwardRefExoticComponent<{
|
|
6
6
|
leftAdornment?: import('react').ReactNode;
|
|
7
7
|
containerClassName?: string | undefined;
|
|
8
|
+
isProcessing?: boolean | undefined;
|
|
9
|
+
onRetry?: (() => void) | undefined;
|
|
8
10
|
} & import('react').InputHTMLAttributes<HTMLInputElement> & import('class-variance-authority').VariantProps<(props?: ({
|
|
9
|
-
variant?: "default" | "success" | "warning" | "danger" | null | undefined;
|
|
11
|
+
variant?: "default" | "success" | "warning" | "danger" | "processing" | "retry" | null | undefined;
|
|
10
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
11
13
|
options?: string[] | undefined;
|
|
12
14
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles string value normalization including truncation and mask validation
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Normalizes a string value by truncating
|
|
6
|
+
* Normalizes a string value by removing control characters and truncating to maximum length
|
|
7
7
|
* @param value - The string to normalize
|
|
8
8
|
* @param maxLength - Maximum allowed length (defaults to COLUMN_STRING_LIMIT)
|
|
9
9
|
* @returns Normalized string
|
|
@@ -11,5 +11,6 @@
|
|
|
11
11
|
* @example
|
|
12
12
|
* normalizeString('Hello World', 1200) // 'Hello World'
|
|
13
13
|
* normalizeString('A'.repeat(1500), 1200) // Returns first 1200 characters
|
|
14
|
+
* normalizeString('Hello\nWorld', 1200) // 'Hello World' (newline replaced with space)
|
|
14
15
|
*/
|
|
15
16
|
export declare function normalizeString(value: string, maxLength?: number): string;
|