fis-component 0.0.22 → 0.0.23
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 +72 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/cjs/types/src/components/{GroupButton/GroupButton.stories.d.ts → ButtonGroup/ButtonGroup.stories.d.ts} +2 -2
- package/dist/{esm/types/src/components/GroupButton → cjs/types/src/components/ButtonGroup}/index.d.ts +2 -2
- package/dist/cjs/types/src/components/{GroupRadio → RadioGroup}/index.d.ts +2 -2
- package/dist/cjs/types/src/index.d.ts +3 -1
- package/dist/esm/index.js +70 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/esm/types/src/components/{GroupButton/GroupButton.stories.d.ts → ButtonGroup/ButtonGroup.stories.d.ts} +2 -2
- package/dist/{cjs/types/src/components/GroupButton → esm/types/src/components/ButtonGroup}/index.d.ts +2 -2
- package/dist/esm/types/src/components/{GroupRadio → RadioGroup}/index.d.ts +2 -2
- package/dist/esm/types/src/index.d.ts +3 -1
- package/dist/index.d.ts +42 -2
- package/package.json +1 -1
- /package/dist/cjs/types/src/components/{GroupButton → ButtonGroup}/styles.d.ts +0 -0
- /package/dist/cjs/types/src/components/{GroupCheckbox/GroupCheckbox.stories.d.ts → CheckboxGroup/CheckboxGroup.stories.d.ts} +0 -0
- /package/dist/cjs/types/src/components/{GroupCheckbox → CheckboxGroup}/index.d.ts +0 -0
- /package/dist/cjs/types/src/components/{GroupCheckbox → CheckboxGroup}/styles.d.ts +0 -0
- /package/dist/cjs/types/src/components/{GroupRadio/GroupRadio.stories.d.ts → RadioGroup/RadioGroup.stories.d.ts} +0 -0
- /package/dist/cjs/types/src/components/{GroupRadio → RadioGroup}/styles.d.ts +0 -0
- /package/dist/esm/types/src/components/{GroupButton → ButtonGroup}/styles.d.ts +0 -0
- /package/dist/esm/types/src/components/{GroupCheckbox/GroupCheckbox.stories.d.ts → CheckboxGroup/CheckboxGroup.stories.d.ts} +0 -0
- /package/dist/esm/types/src/components/{GroupCheckbox → CheckboxGroup}/index.d.ts +0 -0
- /package/dist/esm/types/src/components/{GroupCheckbox → CheckboxGroup}/styles.d.ts +0 -0
- /package/dist/esm/types/src/components/{GroupRadio/GroupRadio.stories.d.ts → RadioGroup/RadioGroup.stories.d.ts} +0 -0
- /package/dist/esm/types/src/components/{GroupRadio → RadioGroup}/styles.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Meta } from "@storybook/react";
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("
|
|
4
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").AvatarProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import FISButtonGroup from ".";
|
|
3
|
+
declare const meta: Meta<typeof FISButtonGroup>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
@@ -28,5 +28,5 @@ export interface GroupButtonProps {
|
|
|
28
28
|
/** List of button options */
|
|
29
29
|
options: ButtonOption[];
|
|
30
30
|
}
|
|
31
|
-
declare const
|
|
32
|
-
export default
|
|
31
|
+
declare const FISButtonGroup: React.FC<GroupButtonProps>;
|
|
32
|
+
export default FISButtonGroup;
|
|
@@ -16,6 +16,6 @@ type RadioGroupProps<T extends Value> = {
|
|
|
16
16
|
onFocus?: () => void;
|
|
17
17
|
onBlur?: () => void;
|
|
18
18
|
};
|
|
19
|
-
declare function
|
|
20
|
-
export default
|
|
19
|
+
declare function FISRadioGroup<T extends Value>({ className, groupLabel, options, name, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: RadioGroupProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default FISRadioGroup;
|
|
21
21
|
export type { RadioGroupProps };
|
|
@@ -3,10 +3,12 @@ export type { ThemeType } from "./styles/design-system";
|
|
|
3
3
|
export { default as FISButton } from "./components/Button";
|
|
4
4
|
export { default as FISLinkButton } from "./components/LinkButton";
|
|
5
5
|
export { default as FISIconButton } from "./components/IconButton";
|
|
6
|
-
export { default as
|
|
6
|
+
export { default as FISButtonGroup } from "./components/ButtonGroup";
|
|
7
7
|
export { default as FISBreadcrumb } from "./components/Breadcrumb";
|
|
8
8
|
export { default as FISRadio } from "./components/Radio";
|
|
9
|
+
export { default as FISRadioGroup } from "./components/RadioGroup";
|
|
9
10
|
export { default as FISCheckbox } from "./components/Checkbox";
|
|
11
|
+
export { default as FISCheckboxGroup } from "./components/CheckboxGroup";
|
|
10
12
|
export { default as FISInputField } from "./components/Input/InputField";
|
|
11
13
|
export { default as FISInputText } from "./components/Input/InputText";
|
|
12
14
|
export { default as FISInputLabel } from "./components/Input/InputLabel";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, JSX } from 'react';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
interface ThemeProviderProps {
|
|
6
7
|
theme?: DefaultTheme;
|
|
@@ -2827,7 +2828,7 @@ interface GroupButtonProps {
|
|
|
2827
2828
|
/** List of button options */
|
|
2828
2829
|
options: ButtonOption[];
|
|
2829
2830
|
}
|
|
2830
|
-
declare const
|
|
2831
|
+
declare const FISButtonGroup: React__default.FC<GroupButtonProps>;
|
|
2831
2832
|
|
|
2832
2833
|
interface BreadcrumbItemProps extends ComponentPropsWithoutRef<"button"> {
|
|
2833
2834
|
icon?: React__default.ReactNode;
|
|
@@ -2860,6 +2861,26 @@ declare const FISRadio: React__default.ForwardRefExoticComponent<Omit<Omit<React
|
|
|
2860
2861
|
inputRef?: Ref<HTMLInputElement>;
|
|
2861
2862
|
} & React__default.RefAttributes<HTMLLabelElement>>;
|
|
2862
2863
|
|
|
2864
|
+
type Value$1 = string | number;
|
|
2865
|
+
type Option$1<T> = {
|
|
2866
|
+
value: T;
|
|
2867
|
+
label: string;
|
|
2868
|
+
};
|
|
2869
|
+
type RadioGroupProps<T extends Value$1> = {
|
|
2870
|
+
className?: string;
|
|
2871
|
+
groupLabel: string;
|
|
2872
|
+
options: Option$1<T>[] | readonly Option$1<T>[];
|
|
2873
|
+
value: T | null;
|
|
2874
|
+
direction?: "row" | "column";
|
|
2875
|
+
name?: string;
|
|
2876
|
+
disabled?: boolean;
|
|
2877
|
+
getOptionDisabled?: (option: Option$1<T>) => boolean;
|
|
2878
|
+
onChange: (nextValue: T) => void;
|
|
2879
|
+
onFocus?: () => void;
|
|
2880
|
+
onBlur?: () => void;
|
|
2881
|
+
};
|
|
2882
|
+
declare function FISRadioGroup<T extends Value$1>({ className, groupLabel, options, name, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: RadioGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
2883
|
+
|
|
2863
2884
|
type CheckboxSize = "sm" | "md";
|
|
2864
2885
|
type CheckboxVariant = "primary" | "secondary" | "tertiary";
|
|
2865
2886
|
declare const FISCheckbox: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
@@ -2885,6 +2906,25 @@ declare const FISCheckbox: React__default.ForwardRefExoticComponent<Omit<React__
|
|
|
2885
2906
|
inputRef?: Ref<HTMLInputElement>;
|
|
2886
2907
|
} & React__default.RefAttributes<HTMLLabelElement>>;
|
|
2887
2908
|
|
|
2909
|
+
type Value = string | number;
|
|
2910
|
+
type Option<T> = {
|
|
2911
|
+
value: T;
|
|
2912
|
+
label: string;
|
|
2913
|
+
};
|
|
2914
|
+
type CheckboxGroupProps<T extends Value> = {
|
|
2915
|
+
className?: string;
|
|
2916
|
+
groupLabel: string;
|
|
2917
|
+
options: Option<T>[] | readonly Option<T>[];
|
|
2918
|
+
value: T[];
|
|
2919
|
+
direction?: "row" | "column";
|
|
2920
|
+
disabled?: boolean;
|
|
2921
|
+
getOptionDisabled?: (option: Option<T>) => boolean;
|
|
2922
|
+
onChange: (nextValue: T[]) => void;
|
|
2923
|
+
onFocus?: () => void;
|
|
2924
|
+
onBlur?: () => void;
|
|
2925
|
+
};
|
|
2926
|
+
declare function FISCheckboxGroup<T extends Value>({ className, groupLabel, options, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: CheckboxGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
2927
|
+
|
|
2888
2928
|
type InputTypeSuffix = "icon" | "suffix" | "dropdown";
|
|
2889
2929
|
type InputSize$2 = "md" | "lg";
|
|
2890
2930
|
interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onClick"> {
|
|
@@ -3006,4 +3046,4 @@ interface InputStepperProps extends Omit<React__default.ComponentPropsWithoutRef
|
|
|
3006
3046
|
}
|
|
3007
3047
|
declare const FISInputStepper: React__default.ForwardRefExoticComponent<InputStepperProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3008
3048
|
|
|
3009
|
-
export { FISAvatar, FISBreadcrumb, FISButton, FISCheckbox,
|
|
3049
|
+
export { FISAvatar, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISIconButton, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISLinkButton, FISRadio, FISRadioGroup, FISTextArea, FISThemeProvider, type ThemeType };
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|