@namuna-nur/ui-kit 1.3.2 → 1.3.3

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.
@@ -1,4 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { PlateProps } from '..';
2
3
  import * as Toggle from '@radix-ui/react-toggle';
3
- import * as React from 'react';
4
4
  export declare const Plate: React.ForwardRefExoticComponent<Omit<Toggle.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & PlateProps & React.RefAttributes<HTMLButtonElement>>;
@@ -21,15 +21,16 @@ export type PlateTokens = {
21
21
  };
22
22
  export type PlateDataTypes = {
23
23
  label: string;
24
- value: string;
24
+ value: string | number;
25
25
  href?: string;
26
26
  };
27
27
  export type PlateProps = {
28
+ id?: string;
28
29
  title: string;
29
30
  className?: string;
30
31
  data: PlateDataTypes[];
31
32
  statusValue?: string;
32
- onStatusChange?: (status: string) => void;
33
+ onStatusChange?: (id: string, status: string) => void;
33
34
  actions?: React.ReactNode;
34
35
  flatType?: string;
35
36
  statusOptions?: StatusSelectOptionsType[];
@@ -13,6 +13,7 @@ export declare const SearchInput: import('react').ForwardRefExoticComponent<impo
13
13
  searchResults?: string[];
14
14
  onResultClick?: (result: string) => void;
15
15
  isSearchIcon?: boolean;
16
+ isSearchResultDisabled?: boolean;
16
17
  classNames?: {
17
18
  base?: string;
18
19
  input?: string;
@@ -16,6 +16,7 @@ export type SearchInputProps = InputHTMLAttributes<HTMLInputElement> & {
16
16
  searchResults?: string[];
17
17
  onResultClick?: (result: string) => void;
18
18
  isSearchIcon?: boolean;
19
+ isSearchResultDisabled?: boolean;
19
20
  classNames?: {
20
21
  base?: string;
21
22
  input?: string;
@@ -1,2 +1,2 @@
1
1
  import { TableProps } from '..';
2
- export declare function Table<T extends object>({ className, columns, data, select, setSelect, onRowClick, isCheckboxVisible, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Table<T extends object>({ className, columns, data, select, setSelect, isCheckboxVisible, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -14,6 +14,5 @@ export type TableProps<T> = {
14
14
  className?: string;
15
15
  select?: string[];
16
16
  setSelect?: (val: string[] | ((prev: string[]) => string[])) => void;
17
- onRowClick?: (row: string) => void;
18
17
  isCheckboxVisible?: boolean;
19
18
  };