fis-component 0.1.14 → 0.1.16
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 +102 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/assets/icons/DownloadIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/index.d.ts +1 -0
- package/dist/cjs/types/src/components/MenuSelect/types.d.ts +1 -0
- package/dist/cjs/types/src/components/SplitButton/SplitButton.stories.d.ts +1 -0
- package/dist/cjs/types/src/components/SplitButton/index.d.ts +2 -0
- package/dist/cjs/types/src/components/SplitButton/styles.d.ts +1 -0
- package/dist/cjs/types/src/components/SplitButton/types.d.ts +7 -0
- package/dist/esm/index.js +102 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/assets/icons/DownloadIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/index.d.ts +1 -0
- package/dist/esm/types/src/components/MenuSelect/types.d.ts +1 -0
- package/dist/esm/types/src/components/SplitButton/SplitButton.stories.d.ts +1 -0
- package/dist/esm/types/src/components/SplitButton/index.d.ts +2 -0
- package/dist/esm/types/src/components/SplitButton/styles.d.ts +1 -0
- package/dist/esm/types/src/components/SplitButton/types.d.ts +7 -0
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ export { default as ArrowUpIcon } from "./ArrowUpIcon";
|
|
|
28
28
|
export { default as CloseChipIcon } from "./CloseChipIcon";
|
|
29
29
|
export { default as TimeIcon } from "./TimeIcon";
|
|
30
30
|
export { default as DateIcon } from "./DateIcon";
|
|
31
|
+
export { default as DownloadIcon } from "./DownloadIcon";
|
|
31
32
|
export { default as ChevronSelectorIcon } from "./ChevronSelector";
|
|
32
33
|
export { default as EditIcon } from "./EditIcon";
|
|
33
34
|
export { default as DeleteIcon } from "./DeleteIcon";
|
|
@@ -33,6 +33,7 @@ export interface MenuProps {
|
|
|
33
33
|
focusSearchInput?: boolean;
|
|
34
34
|
onPopupScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
|
35
35
|
normalizeTextSearch?: boolean;
|
|
36
|
+
renderOption?: (item: MenuItem) => React.ReactNode;
|
|
36
37
|
}
|
|
37
38
|
export interface MenuState {
|
|
38
39
|
search: string;
|
|
@@ -14,5 +14,7 @@ declare const FISSplitButton: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
onIconClick?: () => void;
|
|
15
15
|
} & {
|
|
16
16
|
className?: string;
|
|
17
|
+
menuProps?: import("./types").SplitButtonMenuProps;
|
|
18
|
+
portal?: boolean;
|
|
17
19
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
20
|
export default FISSplitButton;
|
|
@@ -8,6 +8,7 @@ export type SplitButtonProps = {
|
|
|
8
8
|
$loading?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare const DivContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SplitButtonProps>> & string;
|
|
11
|
+
export declare const DivDropdownMenuSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
12
|
export declare const ButtonItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, SplitButtonProps>> & string;
|
|
12
13
|
export declare const ButtonIconItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, SplitButtonProps>> & string;
|
|
13
14
|
export declare const DivIconItemSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SplitButtonProps>> & string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { MenuItem, MenuProps, MenuSize } from "../MenuSelect/types";
|
|
2
3
|
export type SplitButtonSize = "xs" | "sm" | "md" | "lg";
|
|
3
4
|
export type SplitButtonVariant = "primary" | "secondary" | "tertiary" | "primary-white" | "secondary-white";
|
|
4
5
|
export type SplitButtonItemProps = {
|
|
@@ -16,6 +17,12 @@ export type SplitButtonIconProps = {
|
|
|
16
17
|
activeIcon?: boolean;
|
|
17
18
|
onIconClick?: () => void;
|
|
18
19
|
} & ComponentPropsWithoutRef<"button">;
|
|
20
|
+
export type SplitButtonMenuProps = Omit<MenuProps, "size"> & {
|
|
21
|
+
size?: MenuSize;
|
|
22
|
+
onMenuItemClick?: (item: MenuItem) => void;
|
|
23
|
+
};
|
|
19
24
|
export type SplitButtonProps = SplitButtonItemProps & SplitButtonIconProps & {
|
|
20
25
|
className?: string;
|
|
26
|
+
menuProps?: SplitButtonMenuProps;
|
|
27
|
+
portal?: boolean;
|
|
21
28
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -3895,6 +3895,7 @@ interface MenuProps {
|
|
|
3895
3895
|
focusSearchInput?: boolean;
|
|
3896
3896
|
onPopupScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
|
3897
3897
|
normalizeTextSearch?: boolean;
|
|
3898
|
+
renderOption?: (item: MenuItem) => React.ReactNode;
|
|
3898
3899
|
}
|
|
3899
3900
|
|
|
3900
3901
|
declare const FISMenuSelect: React__default.FC<MenuProps>;
|
|
@@ -4252,6 +4253,10 @@ declare namespace FISProgressLinear {
|
|
|
4252
4253
|
|
|
4253
4254
|
type SplitButtonSize = "xs" | "sm" | "md" | "lg";
|
|
4254
4255
|
type SplitButtonVariant = "primary" | "secondary" | "tertiary" | "primary-white" | "secondary-white";
|
|
4256
|
+
type SplitButtonMenuProps = Omit<MenuProps, "size"> & {
|
|
4257
|
+
size?: MenuSize;
|
|
4258
|
+
onMenuItemClick?: (item: MenuItem) => void;
|
|
4259
|
+
};
|
|
4255
4260
|
|
|
4256
4261
|
declare const FISSplitButton: React__default.ForwardRefExoticComponent<{
|
|
4257
4262
|
label: string;
|
|
@@ -4268,6 +4273,8 @@ declare const FISSplitButton: React__default.ForwardRefExoticComponent<{
|
|
|
4268
4273
|
onIconClick?: () => void;
|
|
4269
4274
|
} & {
|
|
4270
4275
|
className?: string;
|
|
4276
|
+
menuProps?: SplitButtonMenuProps;
|
|
4277
|
+
portal?: boolean;
|
|
4271
4278
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
4272
4279
|
|
|
4273
4280
|
type SelectSize = "xs" | "sm" | "md" | "lg";
|