fis-component 0.0.45 → 0.0.47

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.
@@ -2,12 +2,13 @@ import { DateRangeProps } from ".";
2
2
  declare const meta: {
3
3
  title: string;
4
4
  component: {
5
- ({ placeholder, label, required, message, negative, positive, ...rest }: DateRangeProps): import("react/jsx-runtime").JSX.Element;
5
+ ({ placeholder, label, required, message, negative, positive, disabled, ...rest }: DateRangeProps): import("react/jsx-runtime").JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  tags: string[];
9
9
  args: {
10
10
  label: string;
11
+ disabled: false;
11
12
  required: true;
12
13
  message: string;
13
14
  negative: false;
@@ -1,14 +1,27 @@
1
1
  export type DateRangeProps = {
2
2
  className?: string;
3
- placeholder?: [string, string];
4
3
  label?: string;
5
4
  required?: boolean;
5
+ disabled?: boolean;
6
6
  message?: string;
7
7
  negative?: boolean;
8
8
  positive?: boolean;
9
- };
9
+ placeholder?: [string, string];
10
+ } & React.ComponentProps<typeof RangePicker>;
11
+ declare const RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
12
+ locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
13
+ size?: import("antd/es/button").ButtonSize;
14
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
15
+ bordered?: boolean;
16
+ status?: import("antd/es/_util/statusUtils").InputStatus;
17
+ variant?: import("antd/es/config-provider").Variant;
18
+ dropdownClassName?: string;
19
+ popupClassName?: string;
20
+ rootClassName?: string;
21
+ popupStyle?: React.CSSProperties;
22
+ } & import("react").RefAttributes<import("rc-picker").PickerRef>>;
10
23
  declare const FISDateRange: {
11
- ({ placeholder, label, required, message, negative, positive, ...rest }: DateRangeProps): import("react/jsx-runtime").JSX.Element;
24
+ ({ placeholder, label, required, message, negative, positive, disabled, ...rest }: DateRangeProps): import("react/jsx-runtime").JSX.Element;
12
25
  displayName: string;
13
26
  };
14
27
  export default FISDateRange;
@@ -1,6 +1,7 @@
1
1
  interface DateRangeProps {
2
2
  $negative?: boolean;
3
3
  $positive?: boolean;
4
+ $disabled?: boolean;
4
5
  }
5
6
  export declare const DivDateRangeContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DateRangeProps>> & string;
6
7
  export declare const DivSeparatorIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DateRangeProps>> & string;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,12 @@ import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, ForwardedRef,
3
3
  import { DefaultTheme } from 'styled-components';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { TooltipProps as TooltipProps$1, CollapseProps, TableProps as TableProps$1, PaginationProps as PaginationProps$1 } from 'antd';
6
+ import * as antd_es_config_provider from 'antd/es/config-provider';
7
+ import * as antd_es__util_statusUtils from 'antd/es/_util/statusUtils';
8
+ import * as antd_es_button from 'antd/es/button';
9
+ import * as antd_es_date_picker_generatePicker from 'antd/es/date-picker/generatePicker';
10
+ import * as rc_picker from 'rc-picker';
11
+ import * as dayjs from 'dayjs';
6
12
  import * as antd_es_notification_interface from 'antd/es/notification/interface';
7
13
 
8
14
  interface ThemeProviderProps {
@@ -4105,15 +4111,28 @@ declare const FISSorter: ({ columnKey, onSort, sortedInfo, colorActive, UpIcon,
4105
4111
 
4106
4112
  type DateRangeProps = {
4107
4113
  className?: string;
4108
- placeholder?: [string, string];
4109
4114
  label?: string;
4110
4115
  required?: boolean;
4116
+ disabled?: boolean;
4111
4117
  message?: string;
4112
4118
  negative?: boolean;
4113
4119
  positive?: boolean;
4114
- };
4120
+ placeholder?: [string, string];
4121
+ } & React.ComponentProps<typeof RangePicker>;
4122
+ declare const RangePicker: React$1.ForwardRefExoticComponent<Omit<rc_picker.RangePickerProps<dayjs.Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
4123
+ locale?: antd_es_date_picker_generatePicker.PickerLocale;
4124
+ size?: antd_es_button.ButtonSize;
4125
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
4126
+ bordered?: boolean;
4127
+ status?: antd_es__util_statusUtils.InputStatus;
4128
+ variant?: antd_es_config_provider.Variant;
4129
+ dropdownClassName?: string;
4130
+ popupClassName?: string;
4131
+ rootClassName?: string;
4132
+ popupStyle?: React.CSSProperties;
4133
+ } & React$1.RefAttributes<rc_picker.PickerRef>>;
4115
4134
  declare const FISDateRange: {
4116
- ({ placeholder, label, required, message, negative, positive, ...rest }: DateRangeProps): react_jsx_runtime.JSX.Element;
4135
+ ({ placeholder, label, required, message, negative, positive, disabled, ...rest }: DateRangeProps): react_jsx_runtime.JSX.Element;
4117
4136
  displayName: string;
4118
4137
  };
4119
4138
 
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.45",
4
+ "version": "0.0.47",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",