@ofgdev/ui-components 1.2.27 → 1.2.29

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 (43) hide show
  1. package/dist/Accordion/Accordion.d.ts +6 -3
  2. package/dist/Alert/Alert.d.ts +6 -6
  3. package/dist/Button/Button.d.ts +3 -3
  4. package/dist/Calendar/Calendar.d.ts +7 -6
  5. package/dist/Card/Card.d.ts +2 -2
  6. package/dist/CardButton/CardButton.d.ts +1 -1
  7. package/dist/CheckBoxInput/CheckBoxInput.d.ts +6 -5
  8. package/dist/CheckBoxInput/CheckBoxInputGroup.d.ts +3 -2
  9. package/dist/CheckBoxInput/CheckBoxInputItem.d.ts +1 -1
  10. package/dist/CheckBoxTab/CheckBoxTabGroup.d.ts +3 -2
  11. package/dist/CheckBoxTab/CheckBoxTabItem.d.ts +5 -2
  12. package/dist/DatePicker/DatePicker.d.ts +10 -9
  13. package/dist/Heading/Heading.d.ts +3 -3
  14. package/dist/IconButton/IconButton.d.ts +3 -3
  15. package/dist/ImportFile/ImportFile.d.ts +3 -3
  16. package/dist/Modal/Modal.d.ts +17 -13
  17. package/dist/MultiSelect/MultiSelect.d.ts +14 -14
  18. package/dist/NumberInput/NumberInput.d.ts +10 -9
  19. package/dist/PhoneNumberInput/PhoneNumberInput.d.ts +8 -7
  20. package/dist/Popover/Popover.d.ts +4 -4
  21. package/dist/ProgressBar/ProgressBar.d.ts +1 -1
  22. package/dist/RadioInput/RadioInput.d.ts +8 -6
  23. package/dist/Select/Select.d.ts +11 -11
  24. package/dist/SliderInput/SliderInput.d.ts +16 -15
  25. package/dist/Spinner/Spinner.d.ts +1 -1
  26. package/dist/StarRating/StarRating.d.ts +3 -3
  27. package/dist/Stepper/StepContent.d.ts +2 -2
  28. package/dist/Stepper/Stepper.d.ts +1 -1
  29. package/dist/Stepper/SubStep.d.ts +3 -3
  30. package/dist/Stepper/types.d.ts +6 -6
  31. package/dist/Table/TableBody.d.ts +1 -1
  32. package/dist/Table/TableCell.d.ts +2 -2
  33. package/dist/Table/TableRow.d.ts +2 -2
  34. package/dist/Text/Text.d.ts +3 -3
  35. package/dist/TextArea/TextArea.d.ts +6 -5
  36. package/dist/TextInput/TextInput.d.ts +8 -7
  37. package/dist/Toast/Toast.d.ts +6 -7
  38. package/dist/helper/cx.d.ts +1 -1
  39. package/dist/helper/formatValue.d.ts +1 -1
  40. package/dist/index.cjs.js +12 -12
  41. package/dist/index.es.js +2269 -2215
  42. package/dist/ui-components.css +1 -1
  43. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  interface Props extends React.HTMLAttributes<HTMLTableRowElement> {
3
- className?: string;
4
3
  children?: ReactNode;
5
- show?: boolean;
4
+ className?: string;
6
5
  isCollapsible?: boolean;
6
+ show?: boolean;
7
7
  }
8
8
  export declare const TableRow: ({ children, className, isCollapsible, show, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
- export type TextSize = "8xl" | "5xl" | "3xl" | "2xl" | "lg" | "md" | "sm" | "xs" | "xxs" | "normal";
2
+ export type TextSize = "2xl" | "3xl" | "5xl" | "8xl" | "lg" | "md" | "normal" | "sm" | "xs" | "xxs";
3
3
  export interface TextProps {
4
- children: React.ReactNode;
5
- size?: TextSize;
6
4
  as?: keyof React.JSX.IntrinsicElements;
5
+ children: React.ReactNode;
7
6
  className?: string;
7
+ size?: TextSize;
8
8
  }
9
9
  export declare const Text: React.FC<TextProps>;
10
10
  export default Text;
@@ -1,11 +1,12 @@
1
+ import { HeadingSize } from '../Heading/Heading';
1
2
  interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
2
- value?: string;
3
- label?: string;
4
- labelSize?: import('../Heading/Heading').HeadingSize;
5
- errorMessage?: string;
6
3
  description?: string;
7
- optional?: boolean;
4
+ errorMessage?: string;
8
5
  inputClassName?: string;
6
+ label?: string;
7
+ labelSize?: HeadingSize;
8
+ optional?: boolean;
9
+ value?: string;
9
10
  }
10
11
  export declare const TextArea: import('react').ForwardRefExoticComponent<TextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
11
12
  export default TextArea;
@@ -1,13 +1,14 @@
1
+ import { HeadingSize } from '../Heading/Heading';
1
2
  interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
- value?: string;
3
- prefix?: string;
4
- suffix?: string;
5
- label?: string;
6
- labelSize?: import('../Heading/Heading').HeadingSize;
7
- errorMessage?: string;
8
3
  description?: string;
9
- optional?: boolean;
4
+ errorMessage?: string;
10
5
  inputClassName?: string;
6
+ label?: string;
7
+ labelSize?: HeadingSize;
8
+ optional?: boolean;
9
+ prefix?: string;
10
+ suffix?: string;
11
+ value?: string;
11
12
  }
12
13
  export declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
13
14
  export default TextInput;
@@ -1,14 +1,13 @@
1
1
  interface ToastProps {
2
2
  className?: string;
3
- children?: React.ReactNode;
4
- type?: "success" | "error" | "info" | "default";
3
+ isOpen?: boolean | number;
5
4
  message?: string;
6
- title?: string;
7
- titleClassName?: string;
8
5
  messageClassName?: string;
9
- isOpen?: boolean | number;
10
- showProgressBar?: boolean;
11
6
  onClose?: () => void;
7
+ showProgressBar?: boolean;
8
+ title?: string;
9
+ titleClassName?: string;
10
+ type?: "default" | "error" | "info" | "success";
12
11
  }
13
- export declare const Toast: ({ className, children, type, message, title, titleClassName, messageClassName, isOpen, showProgressBar, onClose, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Toast: ({ className, type, message, title, titleClassName, messageClassName, isOpen, showProgressBar, onClose, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
14
13
  export default Toast;
@@ -1 +1 @@
1
- export declare function cx(...args: (string | false | null | undefined | (string | false | null | undefined)[])[]): string;
1
+ export declare function cx(...args: ((false | null | string | undefined)[] | false | null | string | undefined)[]): string;
@@ -1,4 +1,4 @@
1
- declare function formatValue(value: number, format?: "currency" | "percentage" | "number", locale?: string): {
1
+ declare function formatValue(value: number, format?: "currency" | "number" | "percentage", locale?: string): {
2
2
  value: string;
3
3
  formatted: string;
4
4
  } | {