fis-component 0.1.8 → 0.1.10
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 +109 -88
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Select/index.d.ts +2 -2
- package/dist/cjs/types/src/components/Select/types.d.ts +4 -0
- package/dist/cjs/types/src/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/cjs/types/src/components/Switch/index.d.ts +4 -0
- package/dist/cjs/types/src/components/Switch/styles.d.ts +1 -0
- package/dist/cjs/types/src/components/Table/ColumnCell/index.d.ts +4 -0
- package/dist/cjs/types/src/components/Table/HeaderCell/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Tooltip/index.d.ts +1 -1
- package/dist/esm/index.js +109 -88
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Select/index.d.ts +2 -2
- package/dist/esm/types/src/components/Select/types.d.ts +4 -0
- package/dist/esm/types/src/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/esm/types/src/components/Switch/index.d.ts +4 -0
- package/dist/esm/types/src/components/Switch/styles.d.ts +1 -0
- package/dist/esm/types/src/components/Table/ColumnCell/index.d.ts +4 -0
- package/dist/esm/types/src/components/Table/HeaderCell/index.d.ts +1 -0
- package/dist/esm/types/src/components/Tooltip/index.d.ts +1 -1
- package/dist/index.d.ts +15 -2
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SelectProps } from "./types";
|
|
2
|
-
declare const FISSelect: import("react").ForwardRefExoticComponent<SelectProps<string | number> & import("react").RefAttributes<
|
|
1
|
+
import { FISSelectRef, SelectProps } from "./types";
|
|
2
|
+
declare const FISSelect: import("react").ForwardRefExoticComponent<SelectProps<string | number> & import("react").RefAttributes<FISSelectRef>>;
|
|
3
3
|
export default FISSelect;
|
|
@@ -43,4 +43,8 @@ export type MultiSelectProps<T extends string | number> = BaseSelectProps<T> & {
|
|
|
43
43
|
displayValue?: (items: SelectOptionItem<T>[]) => string;
|
|
44
44
|
};
|
|
45
45
|
export type SelectProps<T extends string | number> = SingleSelectProps<T> | MultiSelectProps<T>;
|
|
46
|
+
export interface FISSelectRef {
|
|
47
|
+
focus: () => void;
|
|
48
|
+
openDropdown: () => void;
|
|
49
|
+
}
|
|
46
50
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import FISSwitch from
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import FISSwitch from ".";
|
|
3
3
|
declare const meta: Meta<typeof FISSwitch>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof FISSwitch>;
|
|
@@ -46,6 +46,10 @@ interface SwitchProps {
|
|
|
46
46
|
* - Used to update the `isOn` state.
|
|
47
47
|
*/
|
|
48
48
|
onToggle: () => void;
|
|
49
|
+
textLabel?: string;
|
|
50
|
+
required?: boolean;
|
|
51
|
+
iconLabel?: React.ReactNode;
|
|
52
|
+
onClickIconLabel?: () => void;
|
|
49
53
|
}
|
|
50
54
|
declare const FISSwitch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
55
|
export default FISSwitch;
|
|
@@ -13,6 +13,7 @@ export declare const DivSwitchKnobSC: import("styled-components/dist/types").ISt
|
|
|
13
13
|
$isOn: boolean;
|
|
14
14
|
$size: SwitchSize;
|
|
15
15
|
}>> & string;
|
|
16
|
+
export declare const DivWrapperSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
17
|
export declare const DivSwitchContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
18
|
$size: SwitchSize;
|
|
18
19
|
$isOn: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DetailedHTMLProps, HTMLAttributes, ReactElement } from "react";
|
|
2
|
+
import { TooltipPlacement } from "antd/es/tooltip";
|
|
2
3
|
interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | "content"> {
|
|
3
4
|
className?: string;
|
|
4
5
|
textAlign?: string;
|
|
@@ -9,6 +10,9 @@ interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
9
10
|
icon?: ReactElement;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
hasBorder?: boolean;
|
|
13
|
+
tooltip?: boolean;
|
|
14
|
+
placement?: TooltipPlacement;
|
|
15
|
+
variantTooltip?: "primary" | "secondary";
|
|
12
16
|
}
|
|
13
17
|
declare const FISTableCell: import("react").ForwardRefExoticComponent<ColumnCellProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
18
|
export default FISTableCell;
|
|
@@ -9,6 +9,7 @@ interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
9
9
|
hasRightDivider?: boolean;
|
|
10
10
|
hasTruncateLabel?: boolean;
|
|
11
11
|
onlyIcon?: boolean;
|
|
12
|
+
required?: boolean;
|
|
12
13
|
}
|
|
13
14
|
declare const FISTableHeaderCell: import("react").ForwardRefExoticComponent<HeaderCellProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
15
|
export default FISTableHeaderCell;
|
|
@@ -16,7 +16,7 @@ interface TooltipProps extends Omit<TooltipPropsAntd, "variant" | "title"> {
|
|
|
16
16
|
/** Additional class names to apply to the tooltip*/
|
|
17
17
|
className?: string | undefined;
|
|
18
18
|
/** The color of the tooltip */
|
|
19
|
-
variant
|
|
19
|
+
variant?: TooltipColor;
|
|
20
20
|
/** The tooltip title, which can be a custom object or a React node */
|
|
21
21
|
title: TooltipTitleCustom | React.ReactNode;
|
|
22
22
|
/** The size of the tooltip (optional) */
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ 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
6
|
import * as dayjs from 'dayjs';
|
|
7
7
|
import dayjs__default from 'dayjs';
|
|
8
|
+
import { TooltipPlacement } from 'antd/es/tooltip';
|
|
8
9
|
import * as antd_es_date_picker_generatePicker_interface from 'antd/es/date-picker/generatePicker/interface';
|
|
9
10
|
import * as antd_es_config_provider from 'antd/es/config-provider';
|
|
10
11
|
import * as antd_es__util_statusUtils from 'antd/es/_util/statusUtils';
|
|
@@ -3466,6 +3467,10 @@ interface SwitchProps {
|
|
|
3466
3467
|
* - Used to update the `isOn` state.
|
|
3467
3468
|
*/
|
|
3468
3469
|
onToggle: () => void;
|
|
3470
|
+
textLabel?: string;
|
|
3471
|
+
required?: boolean;
|
|
3472
|
+
iconLabel?: React__default.ReactNode;
|
|
3473
|
+
onClickIconLabel?: () => void;
|
|
3469
3474
|
}
|
|
3470
3475
|
declare const FISSwitch: React__default.ForwardRefExoticComponent<SwitchProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3471
3476
|
|
|
@@ -3843,7 +3848,7 @@ interface TooltipProps extends Omit<TooltipProps$1, "variant" | "title"> {
|
|
|
3843
3848
|
/** Additional class names to apply to the tooltip*/
|
|
3844
3849
|
className?: string | undefined;
|
|
3845
3850
|
/** The color of the tooltip */
|
|
3846
|
-
variant
|
|
3851
|
+
variant?: TooltipColor;
|
|
3847
3852
|
/** The tooltip title, which can be a custom object or a React node */
|
|
3848
3853
|
title: TooltipTitleCustom | React.ReactNode;
|
|
3849
3854
|
/** The size of the tooltip (optional) */
|
|
@@ -4128,6 +4133,7 @@ interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
4128
4133
|
hasRightDivider?: boolean;
|
|
4129
4134
|
hasTruncateLabel?: boolean;
|
|
4130
4135
|
onlyIcon?: boolean;
|
|
4136
|
+
required?: boolean;
|
|
4131
4137
|
}
|
|
4132
4138
|
declare const FISTableHeaderCell: React$1.ForwardRefExoticComponent<HeaderCellProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
4133
4139
|
|
|
@@ -4141,6 +4147,9 @@ interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
4141
4147
|
icon?: ReactElement;
|
|
4142
4148
|
disabled?: boolean;
|
|
4143
4149
|
hasBorder?: boolean;
|
|
4150
|
+
tooltip?: boolean;
|
|
4151
|
+
placement?: TooltipPlacement;
|
|
4152
|
+
variantTooltip?: "primary" | "secondary";
|
|
4144
4153
|
}
|
|
4145
4154
|
declare const FISTableCell: React$1.ForwardRefExoticComponent<ColumnCellProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
4146
4155
|
|
|
@@ -4313,8 +4322,12 @@ type MultiSelectProps<T extends string | number> = BaseSelectProps<T> & {
|
|
|
4313
4322
|
displayValue?: (items: SelectOptionItem<T>[]) => string;
|
|
4314
4323
|
};
|
|
4315
4324
|
type SelectProps<T extends string | number> = SingleSelectProps<T> | MultiSelectProps<T>;
|
|
4325
|
+
interface FISSelectRef {
|
|
4326
|
+
focus: () => void;
|
|
4327
|
+
openDropdown: () => void;
|
|
4328
|
+
}
|
|
4316
4329
|
|
|
4317
|
-
declare const FISSelect: React$1.ForwardRefExoticComponent<SelectProps<string | number> & React$1.RefAttributes<
|
|
4330
|
+
declare const FISSelect: React$1.ForwardRefExoticComponent<SelectProps<string | number> & React$1.RefAttributes<FISSelectRef>>;
|
|
4318
4331
|
|
|
4319
4332
|
type NotificationBaseProps = {
|
|
4320
4333
|
title: string | React.ReactElement;
|