fis-component 0.1.19 → 0.1.21
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/cjs/index.js +28 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Collapse/Collapse.stories.d.ts +1 -0
- package/dist/cjs/types/src/components/Pagination/Pagination.stories.d.ts +11 -0
- package/dist/cjs/types/src/components/Pagination/index.d.ts +3 -0
- package/dist/cjs/types/src/components/Table/Table/Table.stories.d.ts +2 -1
- package/dist/cjs/types/src/components/Table/Table/index.d.ts +3 -2
- package/dist/cjs/types/src/index.d.ts +2 -0
- package/dist/esm/index.js +28 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Collapse/Collapse.stories.d.ts +1 -0
- package/dist/esm/types/src/components/Pagination/Pagination.stories.d.ts +11 -0
- package/dist/esm/types/src/components/Pagination/index.d.ts +3 -0
- package/dist/esm/types/src/components/Table/Table/Table.stories.d.ts +2 -1
- package/dist/esm/types/src/components/Table/Table/index.d.ts +3 -2
- package/dist/esm/types/src/index.d.ts +2 -0
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import FISCollapse from ".";
|
|
|
3
3
|
declare const _default: Meta<typeof FISCollapse>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").CustomCollapseProps>;
|
|
6
|
+
export declare const TitleOnly: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").CustomCollapseProps>;
|
|
6
7
|
export declare const MultiplePanels: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").CustomCollapseProps>;
|
|
7
8
|
export declare const StartIconPosition: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").CustomCollapseProps>;
|
|
8
9
|
export declare const LargeSize: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").CustomCollapseProps>;
|
|
@@ -40,6 +40,17 @@ declare const meta: {
|
|
|
40
40
|
defaultValue: boolean;
|
|
41
41
|
description: string;
|
|
42
42
|
};
|
|
43
|
+
scrollToFirstRowOnChange: {
|
|
44
|
+
control: {
|
|
45
|
+
type: "boolean";
|
|
46
|
+
};
|
|
47
|
+
defaultValue: boolean;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
tableRef: {
|
|
51
|
+
control: false;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
43
54
|
onIconPageRecordClick: {
|
|
44
55
|
action: string;
|
|
45
56
|
description: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PaginationProps as AntdPaginationProps } from "antd";
|
|
3
|
+
import type { FISTableRef } from "../Table/Table";
|
|
3
4
|
export interface PaginationProps extends AntdPaginationProps {
|
|
4
5
|
minimize?: boolean;
|
|
5
6
|
recordCounted?: boolean;
|
|
7
|
+
scrollToFirstRowOnChange?: boolean;
|
|
8
|
+
tableRef?: React.RefObject<FISTableRef>;
|
|
6
9
|
onIconPageRecordClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
10
|
}
|
|
8
11
|
declare const FISPagination: React.FC<PaginationProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<import(".").TableProps & import("react").RefAttributes<
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import(".").TableProps & import("react").RefAttributes<import("rc-table").Reference>>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
className: string;
|
|
@@ -38,3 +38,4 @@ type Story = StoryObj<typeof meta>;
|
|
|
38
38
|
export declare const Default: Story;
|
|
39
39
|
export declare const RowSelection: () => import("react/jsx-runtime").JSX.Element;
|
|
40
40
|
export declare const CompactOperations: () => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const WithPagination: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { TableProps as AntdTableProps } from "antd";
|
|
1
|
+
import { Table, TableProps as AntdTableProps } from "antd";
|
|
2
2
|
export interface TableProps extends Omit<AntdTableProps<any>, "columns" | "dataSource"> {
|
|
3
3
|
className?: string;
|
|
4
4
|
dataSource: AntdTableProps<any>["dataSource"];
|
|
5
5
|
columns: AntdTableProps<any>["columns"];
|
|
6
6
|
verticalHeader?: "top" | "bottom" | "center";
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
export type FISTableRef = React.ElementRef<typeof Table>;
|
|
9
|
+
declare const FISTable: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<import("rc-table").Reference>>;
|
|
9
10
|
export default FISTable;
|
|
@@ -33,6 +33,7 @@ export { default as FISChipButton } from "./components/ChipButton";
|
|
|
33
33
|
export { default as FISInputTime } from "./components/Input/InputTime";
|
|
34
34
|
export { default as FISInputDate } from "./components/Input/InputDate";
|
|
35
35
|
export { default as FISTable } from "./components/Table/Table";
|
|
36
|
+
export type { FISTableRef, TableProps as FISTableProps, } from "./components/Table/Table";
|
|
36
37
|
export { default as FISTableHeaderCell } from "./components/Table/HeaderCell";
|
|
37
38
|
export { default as FISTableCell } from "./components/Table/ColumnCell";
|
|
38
39
|
export { default as FISSorter } from "./components/Table/Sorter/FISSorter";
|
|
@@ -46,4 +47,5 @@ export { default as FISSelectItem } from "./components/SelectItem";
|
|
|
46
47
|
export { default as useNotification } from "./components/Notification/useNotification";
|
|
47
48
|
export { default as useToast } from "./components/Toast/useToast";
|
|
48
49
|
export { default as FISPagination } from "./components/Pagination";
|
|
50
|
+
export type { PaginationProps as FISPaginationProps, } from "./components/Pagination";
|
|
49
51
|
export { default as FISText } from "./components/Text";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, ForwardedRef, CSSProperties, JSX as JSX$1, FC, DetailedHTMLProps, HTMLAttributes, ReactElement, ComponentType } from 'react';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { TooltipProps as TooltipProps$1, DropdownProps, MenuProps as MenuProps$1, CollapseProps, TableProps as TableProps$1, PaginationProps as PaginationProps$1 } from 'antd';
|
|
5
|
+
import { TooltipProps as TooltipProps$1, DropdownProps, MenuProps as MenuProps$1, CollapseProps, Table, TableProps as TableProps$1, PaginationProps as PaginationProps$1 } from 'antd';
|
|
6
6
|
import * as dayjs from 'dayjs';
|
|
7
7
|
import dayjs__default from 'dayjs';
|
|
8
|
+
import * as rc_table from 'rc-table';
|
|
8
9
|
import { TooltipPlacement } from 'antd/es/tooltip';
|
|
9
10
|
import * as antd_es_date_picker_generatePicker_interface from 'antd/es/date-picker/generatePicker/interface';
|
|
10
11
|
import * as antd_es_config_provider from 'antd/es/config-provider';
|
|
@@ -4328,7 +4329,8 @@ interface TableProps extends Omit<TableProps$1<any>, "columns" | "dataSource"> {
|
|
|
4328
4329
|
columns: TableProps$1<any>["columns"];
|
|
4329
4330
|
verticalHeader?: "top" | "bottom" | "center";
|
|
4330
4331
|
}
|
|
4331
|
-
|
|
4332
|
+
type FISTableRef = React.ElementRef<typeof Table>;
|
|
4333
|
+
declare const FISTable: React$1.ForwardRefExoticComponent<TableProps & React$1.RefAttributes<rc_table.Reference>>;
|
|
4332
4334
|
|
|
4333
4335
|
interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
|
|
4334
4336
|
className?: string;
|
|
@@ -4588,6 +4590,8 @@ declare const useToast: () => ToastContextType;
|
|
|
4588
4590
|
interface PaginationProps extends PaginationProps$1 {
|
|
4589
4591
|
minimize?: boolean;
|
|
4590
4592
|
recordCounted?: boolean;
|
|
4593
|
+
scrollToFirstRowOnChange?: boolean;
|
|
4594
|
+
tableRef?: React__default.RefObject<FISTableRef>;
|
|
4591
4595
|
onIconPageRecordClick?: (event: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
4592
4596
|
}
|
|
4593
4597
|
declare const FISPagination: React__default.FC<PaginationProps>;
|
|
@@ -4601,4 +4605,4 @@ interface FISTextPropsI extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
4601
4605
|
declare const FISText: React__default.ForwardRefExoticComponent<FISTextPropsI & React__default.RefAttributes<any>>;
|
|
4602
4606
|
|
|
4603
4607
|
export { FISAlertBanner, FISAvatar, FISBadge, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISChipButton, FISCollapse, FISCombobox, FISDateRange, FISDivider, FISIconButton, FISInputArea, FISInputDate, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISInputTime, FISLinkButton, FISMenuItem, FISMenuSection, FISMenuSelect, FISMenuSelectDropdown, FISPagination, FISProgressCircular, FISProgressLinear, FISRadio, RadioGroup as FISRadioGroup, FISSegmented, FISSelect, FISSelectItem, FISSorter, FISSplitButton, FISSwitch, FISTab, FISTable, FISTableCell, FISTableHeaderCell, FISText, FISThemeProvider, FISToast, FISTooltip, SegmentedPanelItem, TabPanelItem, useNotification, useToast };
|
|
4604
|
-
export type { FISMenuData, FISMenuSelectDropdownProps, ThemeType$2 as ThemeType };
|
|
4608
|
+
export type { FISMenuData, FISMenuSelectDropdownProps, PaginationProps as FISPaginationProps, TableProps as FISTableProps, FISTableRef, ThemeType$2 as ThemeType };
|