@algorithm-shift/design-system 1.2.981 → 1.2.983

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/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1 from 'react';
2
+ import React$1, { CSSProperties } from 'react';
3
3
  import axios from 'axios';
4
+ import { SizeProp } from '@fortawesome/fontawesome-svg-core';
4
5
  import { ToasterProps } from 'sonner';
5
6
  import { ClassValue } from 'clsx';
6
7
 
@@ -31,6 +32,9 @@ interface ImageProps extends ElementProps {
31
32
  imageUrl?: string;
32
33
  altText?: string;
33
34
  imageUrlExternal?: string;
35
+ enableUpload?: boolean;
36
+ onSuccess?: (data: { url: string; fileName: string }) => void;
37
+ axiosInstance?: typeof axios;
34
38
  }
35
39
 
36
40
  type InputProperties = {
@@ -240,12 +244,6 @@ interface ButtonGroupProps extends ElementProps {
240
244
  textContent?: string;
241
245
  list?: Record<string, any>;
242
246
  }
243
-
244
- interface IconProps extends ElementProps {
245
- iconType?: string;
246
- name?: string;
247
- fontSize?: number | string;
248
- }
249
247
  interface AccordionProps extends ElementProps {
250
248
  name?: string;
251
249
  }
@@ -302,7 +300,7 @@ declare const _default$2: typeof Repeater;
302
300
 
303
301
  declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
304
302
 
305
- declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
303
+ declare const ImageControl: ({ className, style, imageUrl, altText, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
306
304
 
307
305
  declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
308
306
 
@@ -315,7 +313,33 @@ declare const Breadcrumb: ({ list, className, style }: BreadcrumbProps) => react
315
313
 
316
314
  declare function SplitButton({ style, textContent, className, list }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
317
315
 
318
- declare const Icon: ({ iconType, name, className, fontSize, style }: IconProps) => react_jsx_runtime.JSX.Element | null;
316
+ type IconSet = 'fa-css' | 'fa' | 'fontawesome' | 'lucide';
317
+ type FAPrefix = 'fas' | 'far' | 'fab' | string;
318
+ interface IconProps extends React$1.HTMLAttributes<HTMLElement> {
319
+ /** Icon provider */
320
+ iconSet?: IconSet;
321
+ /** Icon name
322
+ * - For Lucide: component name (e.g. "Search", "User").
323
+ * - For FA CSS: icon name without prefix (e.g. "coffee").
324
+ */
325
+ icon?: string | any;
326
+ /** FontAwesome CSS prefix (e.g. fas, far, fab) */
327
+ prefix?: FAPrefix;
328
+ /** Size in px (number) or FontAwesome size */
329
+ iconSize?: number | SizeProp;
330
+ /** Additional CSS classes */
331
+ className?: string;
332
+ /** Inline styles (include FA CSS variables to satisfy FontAwesomeIcon typings) */
333
+ style?: CSSProperties;
334
+ /** Tooltip / accessible title */
335
+ title?: string;
336
+ /** FA CSS helpers */
337
+ spin?: boolean;
338
+ pulse?: boolean;
339
+ fixedWidth?: boolean;
340
+ onClick?: () => void;
341
+ }
342
+ declare function Icon(props: IconProps): react_jsx_runtime.JSX.Element | null;
319
343
 
320
344
  declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
321
345
 
@@ -373,7 +397,7 @@ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
373
397
  axiosInstance?: any;
374
398
  outputFormat?: 'array' | 'comma' | 'semicolon';
375
399
  }
376
- declare function LazyMultiSelectDropdown({ options, value, onChange, placeholder, className, id, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
400
+ declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className, id, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat, ...props }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
377
401
 
378
402
  interface PageChangeProps {
379
403
  page: number;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1 from 'react';
2
+ import React$1, { CSSProperties } from 'react';
3
3
  import axios from 'axios';
4
+ import { SizeProp } from '@fortawesome/fontawesome-svg-core';
4
5
  import { ToasterProps } from 'sonner';
5
6
  import { ClassValue } from 'clsx';
6
7
 
@@ -31,6 +32,9 @@ interface ImageProps extends ElementProps {
31
32
  imageUrl?: string;
32
33
  altText?: string;
33
34
  imageUrlExternal?: string;
35
+ enableUpload?: boolean;
36
+ onSuccess?: (data: { url: string; fileName: string }) => void;
37
+ axiosInstance?: typeof axios;
34
38
  }
35
39
 
36
40
  type InputProperties = {
@@ -240,12 +244,6 @@ interface ButtonGroupProps extends ElementProps {
240
244
  textContent?: string;
241
245
  list?: Record<string, any>;
242
246
  }
243
-
244
- interface IconProps extends ElementProps {
245
- iconType?: string;
246
- name?: string;
247
- fontSize?: number | string;
248
- }
249
247
  interface AccordionProps extends ElementProps {
250
248
  name?: string;
251
249
  }
@@ -302,7 +300,7 @@ declare const _default$2: typeof Repeater;
302
300
 
303
301
  declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
304
302
 
305
- declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
303
+ declare const ImageControl: ({ className, style, imageUrl, altText, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
306
304
 
307
305
  declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
308
306
 
@@ -315,7 +313,33 @@ declare const Breadcrumb: ({ list, className, style }: BreadcrumbProps) => react
315
313
 
316
314
  declare function SplitButton({ style, textContent, className, list }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
317
315
 
318
- declare const Icon: ({ iconType, name, className, fontSize, style }: IconProps) => react_jsx_runtime.JSX.Element | null;
316
+ type IconSet = 'fa-css' | 'fa' | 'fontawesome' | 'lucide';
317
+ type FAPrefix = 'fas' | 'far' | 'fab' | string;
318
+ interface IconProps extends React$1.HTMLAttributes<HTMLElement> {
319
+ /** Icon provider */
320
+ iconSet?: IconSet;
321
+ /** Icon name
322
+ * - For Lucide: component name (e.g. "Search", "User").
323
+ * - For FA CSS: icon name without prefix (e.g. "coffee").
324
+ */
325
+ icon?: string | any;
326
+ /** FontAwesome CSS prefix (e.g. fas, far, fab) */
327
+ prefix?: FAPrefix;
328
+ /** Size in px (number) or FontAwesome size */
329
+ iconSize?: number | SizeProp;
330
+ /** Additional CSS classes */
331
+ className?: string;
332
+ /** Inline styles (include FA CSS variables to satisfy FontAwesomeIcon typings) */
333
+ style?: CSSProperties;
334
+ /** Tooltip / accessible title */
335
+ title?: string;
336
+ /** FA CSS helpers */
337
+ spin?: boolean;
338
+ pulse?: boolean;
339
+ fixedWidth?: boolean;
340
+ onClick?: () => void;
341
+ }
342
+ declare function Icon(props: IconProps): react_jsx_runtime.JSX.Element | null;
319
343
 
320
344
  declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
321
345
 
@@ -373,7 +397,7 @@ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
373
397
  axiosInstance?: any;
374
398
  outputFormat?: 'array' | 'comma' | 'semicolon';
375
399
  }
376
- declare function LazyMultiSelectDropdown({ options, value, onChange, placeholder, className, id, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
400
+ declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className, id, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat, ...props }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
377
401
 
378
402
  interface PageChangeProps {
379
403
  page: number;