@zenkigen-inc/component-ui 1.20.4 → 1.21.0
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/index.d.mts +136 -10
- package/dist/index.d.ts +136 -10
- package/dist/index.js +2245 -1024
- package/dist/index.mjs +2157 -939
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -6,14 +6,31 @@ import { tokens } from '@zenkigen-inc/component-config';
|
|
|
6
6
|
import { useFloating } from '@floating-ui/react';
|
|
7
7
|
import { tagLightColors } from '@zenkigen-inc/component-theme';
|
|
8
8
|
|
|
9
|
+
type AvatarSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
10
|
+
|
|
9
11
|
type Props$x = {
|
|
10
|
-
size?:
|
|
12
|
+
size?: AvatarSize;
|
|
11
13
|
userId?: number;
|
|
12
14
|
firstName?: string;
|
|
13
15
|
lastName?: string;
|
|
14
16
|
isDisabled?: boolean;
|
|
15
17
|
};
|
|
16
|
-
declare function Avatar({ size, ...props }: Props$x): react.JSX.Element;
|
|
18
|
+
declare function Avatar({ size: sizeProp, ...props }: Props$x): react.JSX.Element;
|
|
19
|
+
|
|
20
|
+
type RenderSurplusContext = {
|
|
21
|
+
remain: number;
|
|
22
|
+
total: number;
|
|
23
|
+
defaultBadge: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
type AvatarGroupProps = {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
size?: AvatarSize;
|
|
28
|
+
max?: number;
|
|
29
|
+
total?: number;
|
|
30
|
+
renderSurplus?: (ctx: RenderSurplusContext) => ReactNode;
|
|
31
|
+
'aria-label'?: string;
|
|
32
|
+
};
|
|
33
|
+
declare function AvatarGroup({ children, size, max: maxProp, total, renderSurplus, 'aria-label': ariaLabel, }: AvatarGroupProps): react.JSX.Element;
|
|
17
34
|
|
|
18
35
|
type BreadcrumbProps = {
|
|
19
36
|
/** パンくずとして表示する要素。通常は複数の Breadcrumb.Item を渡す。 */
|
|
@@ -79,6 +96,87 @@ type Props$w = {
|
|
|
79
96
|
};
|
|
80
97
|
declare function Checkbox({ name, value, id, isChecked, isIndeterminate, isDisabled, onChange, label, color, size, }: Props$w): react.JSX.Element;
|
|
81
98
|
|
|
99
|
+
type TextInputErrorMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
100
|
+
declare const TextInputErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
|
|
102
|
+
type TextInputHelperMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
103
|
+
declare const TextInputHelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
|
|
105
|
+
type ComboboxSize = 'medium' | 'large';
|
|
106
|
+
type ComboboxVariant = 'outline' | 'text';
|
|
107
|
+
type ComboboxChangeMeta = {
|
|
108
|
+
label: string;
|
|
109
|
+
};
|
|
110
|
+
type ComboboxProps = PropsWithChildren<{
|
|
111
|
+
/** 選択値(controlled) */
|
|
112
|
+
value: string | null;
|
|
113
|
+
/** 選択変更時のコールバック */
|
|
114
|
+
onChange: (value: string | null, meta: ComboboxChangeMeta | null) => void;
|
|
115
|
+
/** 入力テキスト(controlled) */
|
|
116
|
+
inputValue: string;
|
|
117
|
+
/** 入力変更時のコールバック */
|
|
118
|
+
onInputChange: (value: string) => void;
|
|
119
|
+
/** popup の開閉状態(任意、controlled) */
|
|
120
|
+
isOpen?: boolean;
|
|
121
|
+
/** 開閉変更時のコールバック */
|
|
122
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
123
|
+
/** サイズ */
|
|
124
|
+
size?: ComboboxSize;
|
|
125
|
+
/** バリアント */
|
|
126
|
+
variant?: ComboboxVariant;
|
|
127
|
+
/** プレースホルダー */
|
|
128
|
+
placeholder?: string;
|
|
129
|
+
/** エラー状態 */
|
|
130
|
+
isError?: boolean;
|
|
131
|
+
/** 無効状態 */
|
|
132
|
+
isDisabled?: boolean;
|
|
133
|
+
/** 幅 */
|
|
134
|
+
width?: CSSProperties['width'];
|
|
135
|
+
/** 最大幅 */
|
|
136
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
137
|
+
/** 候補リストの最大高さ */
|
|
138
|
+
listMaxHeight?: CSSProperties['height'];
|
|
139
|
+
/** true のとき候補リストの幅を input と一致させる。false のときコンテンツに応じて広がる(min: input 幅, max: ビューポート幅) */
|
|
140
|
+
matchListToTrigger?: boolean;
|
|
141
|
+
}>;
|
|
142
|
+
type ComboboxInputProps = PropsWithChildren<{
|
|
143
|
+
/** input の autoFocus */
|
|
144
|
+
autoFocus?: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
type ComboboxListProps = PropsWithChildren<{
|
|
147
|
+
/** 候補リストの最大高さ(Combobox の listMaxHeight を上書き) */
|
|
148
|
+
maxHeight?: CSSProperties['height'];
|
|
149
|
+
}>;
|
|
150
|
+
type ComboboxItemProps = {
|
|
151
|
+
/** 選択値として使う文字列(必須) */
|
|
152
|
+
value: string;
|
|
153
|
+
/** input 表示・選択時の復元用文字列(必須)。1 行 truncate 表示で自動レンダリングされる */
|
|
154
|
+
label: string;
|
|
155
|
+
/** 個別アイテムの無効化 */
|
|
156
|
+
isDisabled?: boolean;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare function ComboboxInput({ autoFocus, children }: ComboboxInputProps): react.JSX.Element;
|
|
160
|
+
|
|
161
|
+
declare function ComboboxItem({ value, label, isDisabled }: ComboboxItemProps): react.JSX.Element;
|
|
162
|
+
|
|
163
|
+
declare function ComboboxList({ children, maxHeight: maxHeightProp }: ComboboxListProps): react.JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare function ComboboxLoading(): react.JSX.Element;
|
|
166
|
+
declare function ComboboxEmpty(): react.JSX.Element;
|
|
167
|
+
|
|
168
|
+
declare function ComboboxBase({ children, value, onChange, inputValue, onInputChange, isOpen: isOpenProp, onOpenChange, size, variant, placeholder, isError, isDisabled, width, maxWidth, listMaxHeight, matchListToTrigger, }: ComboboxProps): react.JSX.Element;
|
|
169
|
+
declare const Combobox: typeof ComboboxBase & {
|
|
170
|
+
Input: typeof ComboboxInput;
|
|
171
|
+
List: typeof ComboboxList;
|
|
172
|
+
Item: typeof ComboboxItem;
|
|
173
|
+
Loading: typeof ComboboxLoading;
|
|
174
|
+
Empty: typeof ComboboxEmpty;
|
|
175
|
+
HelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
ErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
177
|
+
displayName: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
82
180
|
/**
|
|
83
181
|
* DatePicker のエラーメッセージを表示するコンポーネントのプロパティ
|
|
84
182
|
*
|
|
@@ -459,14 +557,8 @@ type Props$i = {
|
|
|
459
557
|
};
|
|
460
558
|
declare function PaginationSelect({ totalSize, currentPage, sizePerPage, countLabel, pageLabel, optionListMaxHeight, onClickPrevButton, onClickNextButton, onChange, }: Props$i): react.JSX.Element;
|
|
461
559
|
|
|
462
|
-
type TextInputErrorMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
463
|
-
declare const TextInputErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
464
|
-
|
|
465
|
-
type TextInputHelperMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
466
|
-
declare const TextInputHelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
467
|
-
|
|
468
560
|
type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> & {
|
|
469
|
-
size?: 'medium' | 'large';
|
|
561
|
+
size?: 'medium' | 'large' | 'x-large';
|
|
470
562
|
variant?: 'outline' | 'text';
|
|
471
563
|
value: string;
|
|
472
564
|
isError?: boolean;
|
|
@@ -716,6 +808,40 @@ type Props$8 = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type
|
|
|
716
808
|
};
|
|
717
809
|
declare function SortButton({ size, width, label, sortOrder, isDisabled, onClick, 'aria-label': ariaLabel, ...rest }: Props$8): react.JSX.Element;
|
|
718
810
|
|
|
811
|
+
type StepsSize = 'small' | 'medium' | 'large';
|
|
812
|
+
type StepsOrientation = 'horizontal' | 'vertical';
|
|
813
|
+
type StepsTextOrientation = 'horizontal' | 'vertical';
|
|
814
|
+
type StepsVariant = 'subtle' | 'solid';
|
|
815
|
+
type StepProgress = 'completed' | 'current' | 'upcoming';
|
|
816
|
+
type StepState = {
|
|
817
|
+
progress: StepProgress;
|
|
818
|
+
};
|
|
819
|
+
type StepsProps = {
|
|
820
|
+
children: ReactNode;
|
|
821
|
+
currentStep?: number;
|
|
822
|
+
defaultCurrentStep?: number;
|
|
823
|
+
size?: StepsSize;
|
|
824
|
+
orientation?: StepsOrientation;
|
|
825
|
+
textOrientation?: StepsTextOrientation;
|
|
826
|
+
variant?: StepsVariant;
|
|
827
|
+
'aria-label'?: string;
|
|
828
|
+
};
|
|
829
|
+
type StepsItemProps = {
|
|
830
|
+
label: ReactNode;
|
|
831
|
+
description?: ReactNode;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
declare function StepsItem({ label, description }: StepsItemProps): react.JSX.Element;
|
|
835
|
+
declare namespace StepsItem {
|
|
836
|
+
var displayName: string;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare function StepsRoot({ children, currentStep, defaultCurrentStep, size, orientation, textOrientation, variant, 'aria-label': ariaLabel, }: StepsProps): react.JSX.Element | null;
|
|
840
|
+
type StepsComponent = typeof StepsRoot & {
|
|
841
|
+
Item: typeof StepsItem;
|
|
842
|
+
};
|
|
843
|
+
declare const Steps: StepsComponent;
|
|
844
|
+
|
|
719
845
|
type Props$7 = {
|
|
720
846
|
children?: ReactNode;
|
|
721
847
|
/** レイアウトタイプ */
|
|
@@ -929,4 +1055,4 @@ type TooltipProps = {
|
|
|
929
1055
|
};
|
|
930
1056
|
declare function Tooltip({ children, content, size, maxWidth, verticalPosition, horizontalAlign, isDisabledHover, portalTarget, }: TooltipProps): react.JSX.Element;
|
|
931
1057
|
|
|
932
|
-
export { Avatar, Breadcrumb, Button, Checkbox, type ColorVariant, DatePicker, type DatePickerProps, type DatePickerTimeZone, Divider, Dropdown, type DropdownHorizontalAlign, type DropdownItemType, type DropdownVerticalPosition, EvaluationStar, FileInput, type FileInputRef, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Pagination, PaginationSelect, PasswordInput, Popover, PopoverContent, type PopoverContextValue, type PopoverPlacement, PopoverTrigger, Popup, Radio, Search, SegmentedControl, Select, type SelectOption, SelectSort, SortButton, type SortOrder, Tab, TabItem, Table, TableCell, TableRow, Tag, type TagColor, TextArea, TextInput, Toast, ToastProvider, Toggle, Tooltip, type UseRovingFocusProps, type UseRovingFocusReturn, useOutsideClick, useRovingFocus, useToast };
|
|
1058
|
+
export { Avatar, AvatarGroup, Breadcrumb, Button, Checkbox, type ColorVariant, Combobox, type ComboboxChangeMeta, type ComboboxInputProps, type ComboboxItemProps, type ComboboxListProps, type ComboboxProps, type ComboboxSize, type ComboboxVariant, DatePicker, type DatePickerProps, type DatePickerTimeZone, Divider, Dropdown, type DropdownHorizontalAlign, type DropdownItemType, type DropdownVerticalPosition, EvaluationStar, FileInput, type FileInputRef, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Pagination, PaginationSelect, PasswordInput, Popover, PopoverContent, type PopoverContextValue, type PopoverPlacement, PopoverTrigger, Popup, Radio, type RenderSurplusContext, Search, SegmentedControl, Select, type SelectOption, SelectSort, SortButton, type SortOrder, type StepProgress, type StepState, Steps, type StepsOrientation, type StepsProps, type StepsSize, type StepsTextOrientation, type StepsVariant, Tab, TabItem, Table, TableCell, TableRow, Tag, type TagColor, TextArea, TextInput, Toast, ToastProvider, Toggle, Tooltip, type UseRovingFocusProps, type UseRovingFocusReturn, useOutsideClick, useRovingFocus, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,31 @@ import { tokens } from '@zenkigen-inc/component-config';
|
|
|
6
6
|
import { useFloating } from '@floating-ui/react';
|
|
7
7
|
import { tagLightColors } from '@zenkigen-inc/component-theme';
|
|
8
8
|
|
|
9
|
+
type AvatarSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
10
|
+
|
|
9
11
|
type Props$x = {
|
|
10
|
-
size?:
|
|
12
|
+
size?: AvatarSize;
|
|
11
13
|
userId?: number;
|
|
12
14
|
firstName?: string;
|
|
13
15
|
lastName?: string;
|
|
14
16
|
isDisabled?: boolean;
|
|
15
17
|
};
|
|
16
|
-
declare function Avatar({ size, ...props }: Props$x): react.JSX.Element;
|
|
18
|
+
declare function Avatar({ size: sizeProp, ...props }: Props$x): react.JSX.Element;
|
|
19
|
+
|
|
20
|
+
type RenderSurplusContext = {
|
|
21
|
+
remain: number;
|
|
22
|
+
total: number;
|
|
23
|
+
defaultBadge: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
type AvatarGroupProps = {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
size?: AvatarSize;
|
|
28
|
+
max?: number;
|
|
29
|
+
total?: number;
|
|
30
|
+
renderSurplus?: (ctx: RenderSurplusContext) => ReactNode;
|
|
31
|
+
'aria-label'?: string;
|
|
32
|
+
};
|
|
33
|
+
declare function AvatarGroup({ children, size, max: maxProp, total, renderSurplus, 'aria-label': ariaLabel, }: AvatarGroupProps): react.JSX.Element;
|
|
17
34
|
|
|
18
35
|
type BreadcrumbProps = {
|
|
19
36
|
/** パンくずとして表示する要素。通常は複数の Breadcrumb.Item を渡す。 */
|
|
@@ -79,6 +96,87 @@ type Props$w = {
|
|
|
79
96
|
};
|
|
80
97
|
declare function Checkbox({ name, value, id, isChecked, isIndeterminate, isDisabled, onChange, label, color, size, }: Props$w): react.JSX.Element;
|
|
81
98
|
|
|
99
|
+
type TextInputErrorMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
100
|
+
declare const TextInputErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
|
|
102
|
+
type TextInputHelperMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
103
|
+
declare const TextInputHelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
|
|
105
|
+
type ComboboxSize = 'medium' | 'large';
|
|
106
|
+
type ComboboxVariant = 'outline' | 'text';
|
|
107
|
+
type ComboboxChangeMeta = {
|
|
108
|
+
label: string;
|
|
109
|
+
};
|
|
110
|
+
type ComboboxProps = PropsWithChildren<{
|
|
111
|
+
/** 選択値(controlled) */
|
|
112
|
+
value: string | null;
|
|
113
|
+
/** 選択変更時のコールバック */
|
|
114
|
+
onChange: (value: string | null, meta: ComboboxChangeMeta | null) => void;
|
|
115
|
+
/** 入力テキスト(controlled) */
|
|
116
|
+
inputValue: string;
|
|
117
|
+
/** 入力変更時のコールバック */
|
|
118
|
+
onInputChange: (value: string) => void;
|
|
119
|
+
/** popup の開閉状態(任意、controlled) */
|
|
120
|
+
isOpen?: boolean;
|
|
121
|
+
/** 開閉変更時のコールバック */
|
|
122
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
123
|
+
/** サイズ */
|
|
124
|
+
size?: ComboboxSize;
|
|
125
|
+
/** バリアント */
|
|
126
|
+
variant?: ComboboxVariant;
|
|
127
|
+
/** プレースホルダー */
|
|
128
|
+
placeholder?: string;
|
|
129
|
+
/** エラー状態 */
|
|
130
|
+
isError?: boolean;
|
|
131
|
+
/** 無効状態 */
|
|
132
|
+
isDisabled?: boolean;
|
|
133
|
+
/** 幅 */
|
|
134
|
+
width?: CSSProperties['width'];
|
|
135
|
+
/** 最大幅 */
|
|
136
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
137
|
+
/** 候補リストの最大高さ */
|
|
138
|
+
listMaxHeight?: CSSProperties['height'];
|
|
139
|
+
/** true のとき候補リストの幅を input と一致させる。false のときコンテンツに応じて広がる(min: input 幅, max: ビューポート幅) */
|
|
140
|
+
matchListToTrigger?: boolean;
|
|
141
|
+
}>;
|
|
142
|
+
type ComboboxInputProps = PropsWithChildren<{
|
|
143
|
+
/** input の autoFocus */
|
|
144
|
+
autoFocus?: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
type ComboboxListProps = PropsWithChildren<{
|
|
147
|
+
/** 候補リストの最大高さ(Combobox の listMaxHeight を上書き) */
|
|
148
|
+
maxHeight?: CSSProperties['height'];
|
|
149
|
+
}>;
|
|
150
|
+
type ComboboxItemProps = {
|
|
151
|
+
/** 選択値として使う文字列(必須) */
|
|
152
|
+
value: string;
|
|
153
|
+
/** input 表示・選択時の復元用文字列(必須)。1 行 truncate 表示で自動レンダリングされる */
|
|
154
|
+
label: string;
|
|
155
|
+
/** 個別アイテムの無効化 */
|
|
156
|
+
isDisabled?: boolean;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare function ComboboxInput({ autoFocus, children }: ComboboxInputProps): react.JSX.Element;
|
|
160
|
+
|
|
161
|
+
declare function ComboboxItem({ value, label, isDisabled }: ComboboxItemProps): react.JSX.Element;
|
|
162
|
+
|
|
163
|
+
declare function ComboboxList({ children, maxHeight: maxHeightProp }: ComboboxListProps): react.JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare function ComboboxLoading(): react.JSX.Element;
|
|
166
|
+
declare function ComboboxEmpty(): react.JSX.Element;
|
|
167
|
+
|
|
168
|
+
declare function ComboboxBase({ children, value, onChange, inputValue, onInputChange, isOpen: isOpenProp, onOpenChange, size, variant, placeholder, isError, isDisabled, width, maxWidth, listMaxHeight, matchListToTrigger, }: ComboboxProps): react.JSX.Element;
|
|
169
|
+
declare const Combobox: typeof ComboboxBase & {
|
|
170
|
+
Input: typeof ComboboxInput;
|
|
171
|
+
List: typeof ComboboxList;
|
|
172
|
+
Item: typeof ComboboxItem;
|
|
173
|
+
Loading: typeof ComboboxLoading;
|
|
174
|
+
Empty: typeof ComboboxEmpty;
|
|
175
|
+
HelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
ErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
177
|
+
displayName: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
82
180
|
/**
|
|
83
181
|
* DatePicker のエラーメッセージを表示するコンポーネントのプロパティ
|
|
84
182
|
*
|
|
@@ -459,14 +557,8 @@ type Props$i = {
|
|
|
459
557
|
};
|
|
460
558
|
declare function PaginationSelect({ totalSize, currentPage, sizePerPage, countLabel, pageLabel, optionListMaxHeight, onClickPrevButton, onClickNextButton, onChange, }: Props$i): react.JSX.Element;
|
|
461
559
|
|
|
462
|
-
type TextInputErrorMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
463
|
-
declare const TextInputErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
464
|
-
|
|
465
|
-
type TextInputHelperMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
466
|
-
declare const TextInputHelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
467
|
-
|
|
468
560
|
type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> & {
|
|
469
|
-
size?: 'medium' | 'large';
|
|
561
|
+
size?: 'medium' | 'large' | 'x-large';
|
|
470
562
|
variant?: 'outline' | 'text';
|
|
471
563
|
value: string;
|
|
472
564
|
isError?: boolean;
|
|
@@ -716,6 +808,40 @@ type Props$8 = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type
|
|
|
716
808
|
};
|
|
717
809
|
declare function SortButton({ size, width, label, sortOrder, isDisabled, onClick, 'aria-label': ariaLabel, ...rest }: Props$8): react.JSX.Element;
|
|
718
810
|
|
|
811
|
+
type StepsSize = 'small' | 'medium' | 'large';
|
|
812
|
+
type StepsOrientation = 'horizontal' | 'vertical';
|
|
813
|
+
type StepsTextOrientation = 'horizontal' | 'vertical';
|
|
814
|
+
type StepsVariant = 'subtle' | 'solid';
|
|
815
|
+
type StepProgress = 'completed' | 'current' | 'upcoming';
|
|
816
|
+
type StepState = {
|
|
817
|
+
progress: StepProgress;
|
|
818
|
+
};
|
|
819
|
+
type StepsProps = {
|
|
820
|
+
children: ReactNode;
|
|
821
|
+
currentStep?: number;
|
|
822
|
+
defaultCurrentStep?: number;
|
|
823
|
+
size?: StepsSize;
|
|
824
|
+
orientation?: StepsOrientation;
|
|
825
|
+
textOrientation?: StepsTextOrientation;
|
|
826
|
+
variant?: StepsVariant;
|
|
827
|
+
'aria-label'?: string;
|
|
828
|
+
};
|
|
829
|
+
type StepsItemProps = {
|
|
830
|
+
label: ReactNode;
|
|
831
|
+
description?: ReactNode;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
declare function StepsItem({ label, description }: StepsItemProps): react.JSX.Element;
|
|
835
|
+
declare namespace StepsItem {
|
|
836
|
+
var displayName: string;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare function StepsRoot({ children, currentStep, defaultCurrentStep, size, orientation, textOrientation, variant, 'aria-label': ariaLabel, }: StepsProps): react.JSX.Element | null;
|
|
840
|
+
type StepsComponent = typeof StepsRoot & {
|
|
841
|
+
Item: typeof StepsItem;
|
|
842
|
+
};
|
|
843
|
+
declare const Steps: StepsComponent;
|
|
844
|
+
|
|
719
845
|
type Props$7 = {
|
|
720
846
|
children?: ReactNode;
|
|
721
847
|
/** レイアウトタイプ */
|
|
@@ -929,4 +1055,4 @@ type TooltipProps = {
|
|
|
929
1055
|
};
|
|
930
1056
|
declare function Tooltip({ children, content, size, maxWidth, verticalPosition, horizontalAlign, isDisabledHover, portalTarget, }: TooltipProps): react.JSX.Element;
|
|
931
1057
|
|
|
932
|
-
export { Avatar, Breadcrumb, Button, Checkbox, type ColorVariant, DatePicker, type DatePickerProps, type DatePickerTimeZone, Divider, Dropdown, type DropdownHorizontalAlign, type DropdownItemType, type DropdownVerticalPosition, EvaluationStar, FileInput, type FileInputRef, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Pagination, PaginationSelect, PasswordInput, Popover, PopoverContent, type PopoverContextValue, type PopoverPlacement, PopoverTrigger, Popup, Radio, Search, SegmentedControl, Select, type SelectOption, SelectSort, SortButton, type SortOrder, Tab, TabItem, Table, TableCell, TableRow, Tag, type TagColor, TextArea, TextInput, Toast, ToastProvider, Toggle, Tooltip, type UseRovingFocusProps, type UseRovingFocusReturn, useOutsideClick, useRovingFocus, useToast };
|
|
1058
|
+
export { Avatar, AvatarGroup, Breadcrumb, Button, Checkbox, type ColorVariant, Combobox, type ComboboxChangeMeta, type ComboboxInputProps, type ComboboxItemProps, type ComboboxListProps, type ComboboxProps, type ComboboxSize, type ComboboxVariant, DatePicker, type DatePickerProps, type DatePickerTimeZone, Divider, Dropdown, type DropdownHorizontalAlign, type DropdownItemType, type DropdownVerticalPosition, EvaluationStar, FileInput, type FileInputRef, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Pagination, PaginationSelect, PasswordInput, Popover, PopoverContent, type PopoverContextValue, type PopoverPlacement, PopoverTrigger, Popup, Radio, type RenderSurplusContext, Search, SegmentedControl, Select, type SelectOption, SelectSort, SortButton, type SortOrder, type StepProgress, type StepState, Steps, type StepsOrientation, type StepsProps, type StepsSize, type StepsTextOrientation, type StepsVariant, Tab, TabItem, Table, TableCell, TableRow, Tag, type TagColor, TextArea, TextInput, Toast, ToastProvider, Toggle, Tooltip, type UseRovingFocusProps, type UseRovingFocusReturn, useOutsideClick, useRovingFocus, useToast };
|