fis-component 0.0.74 → 0.0.77

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.
@@ -15,3 +15,4 @@ export declare const Disabled: import("@storybook/core/csf").AnnotatedStoryFn<im
15
15
  export declare const NumberType: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, NumberSelectStoryProps>;
16
16
  export declare const CustomMaxHeight: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
17
17
  export declare const TextEllipsis: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
18
+ export declare const PlaceholderDemo: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
@@ -9,10 +9,11 @@ export interface SelectOption<T = string | number> {
9
9
  value: T;
10
10
  }[];
11
11
  }
12
- type BaseSelectProps<T extends string | number> = Partial<InputLabelProps> & Omit<MenuProps, "groups" | "multi" | "selectedValues" | "onChangeSelected" | "onClickMenu" | "size"> & Omit<SelectFieldProps, "value" | "onChange"> & {
12
+ type BaseSelectProps<T extends string | number> = Partial<InputLabelProps> & Omit<MenuProps, "groups" | "multi" | "selectedValues" | "onChangeSelected" | "onClickMenu" | "size" | "placeholder"> & Omit<SelectFieldProps, "value" | "onChange"> & {
13
13
  options: SelectOption<T>[];
14
14
  message?: string;
15
15
  disabled?: boolean;
16
+ placeholder?: string;
16
17
  placeholderSearch?: string;
17
18
  positive?: boolean;
18
19
  multiDisplayText?: (count: number) => string;
@@ -1,10 +1,10 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes, ReactElement } from "react";
2
- interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
2
+ interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | "content"> {
3
3
  className?: string;
4
- textAlign?: "left" | "right";
4
+ textAlign?: string;
5
5
  contentWrapText?: boolean;
6
6
  variant?: string;
7
- content?: string;
7
+ content?: React.ReactNode;
8
8
  description?: string;
9
9
  icon?: ReactElement;
10
10
  disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -4102,12 +4102,12 @@ interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
4102
4102
  }
4103
4103
  declare const FISTableHeaderCell: React$1.ForwardRefExoticComponent<HeaderCellProps & React$1.RefAttributes<HTMLLabelElement>>;
4104
4104
 
4105
- interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
4105
+ interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | "content"> {
4106
4106
  className?: string;
4107
- textAlign?: "left" | "right";
4107
+ textAlign?: string;
4108
4108
  contentWrapText?: boolean;
4109
4109
  variant?: string;
4110
- content?: string;
4110
+ content?: React.ReactNode;
4111
4111
  description?: string;
4112
4112
  icon?: ReactElement;
4113
4113
  disabled?: boolean;
@@ -4249,10 +4249,11 @@ interface SelectOption<T = string | number> {
4249
4249
  value: T;
4250
4250
  }[];
4251
4251
  }
4252
- type BaseSelectProps<T extends string | number> = Partial<InputLabelProps> & Omit<MenuProps, "groups" | "multi" | "selectedValues" | "onChangeSelected" | "onClickMenu" | "size"> & Omit<SelectFieldProps, "value" | "onChange"> & {
4252
+ type BaseSelectProps<T extends string | number> = Partial<InputLabelProps> & Omit<MenuProps, "groups" | "multi" | "selectedValues" | "onChangeSelected" | "onClickMenu" | "size" | "placeholder"> & Omit<SelectFieldProps, "value" | "onChange"> & {
4253
4253
  options: SelectOption<T>[];
4254
4254
  message?: string;
4255
4255
  disabled?: boolean;
4256
+ placeholder?: string;
4256
4257
  placeholderSearch?: string;
4257
4258
  positive?: boolean;
4258
4259
  multiDisplayText?: (count: number) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.74",
4
+ "version": "0.0.77",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",