@zenkigen-inc/component-ui 1.20.4 → 1.21.1
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 +142 -10
- package/dist/index.d.ts +142 -10
- package/dist/index.js +2239 -1020
- package/dist/index.mjs +2155 -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,93 @@ 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
|
+
/**
|
|
120
|
+
* クリアボタンのクリック時に呼ばれるコールバック。
|
|
121
|
+
* このコールバックを渡したときのみクリアボタンが表示される(TextInput と同一仕様)。
|
|
122
|
+
* 値のクリア(`onChange(null, null)` / `onInputChange('')`)は利用者側で行う。
|
|
123
|
+
*/
|
|
124
|
+
onClickClearButton?: () => void;
|
|
125
|
+
/** popup の開閉状態(任意、controlled) */
|
|
126
|
+
isOpen?: boolean;
|
|
127
|
+
/** 開閉変更時のコールバック */
|
|
128
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
129
|
+
/** サイズ */
|
|
130
|
+
size?: ComboboxSize;
|
|
131
|
+
/** バリアント */
|
|
132
|
+
variant?: ComboboxVariant;
|
|
133
|
+
/** プレースホルダー */
|
|
134
|
+
placeholder?: string;
|
|
135
|
+
/** エラー状態 */
|
|
136
|
+
isError?: boolean;
|
|
137
|
+
/** 無効状態 */
|
|
138
|
+
isDisabled?: boolean;
|
|
139
|
+
/** 幅 */
|
|
140
|
+
width?: CSSProperties['width'];
|
|
141
|
+
/** 最大幅 */
|
|
142
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
143
|
+
/** 候補リストの最大高さ */
|
|
144
|
+
listMaxHeight?: CSSProperties['height'];
|
|
145
|
+
/** true のとき候補リストの幅を input と一致させる。false のときコンテンツに応じて広がる(min: input 幅, max: ビューポート幅) */
|
|
146
|
+
matchListToTrigger?: boolean;
|
|
147
|
+
}>;
|
|
148
|
+
type ComboboxInputProps = PropsWithChildren<{
|
|
149
|
+
/** input の autoFocus */
|
|
150
|
+
autoFocus?: boolean;
|
|
151
|
+
}>;
|
|
152
|
+
type ComboboxListProps = PropsWithChildren<{
|
|
153
|
+
/** 候補リストの最大高さ(Combobox の listMaxHeight を上書き) */
|
|
154
|
+
maxHeight?: CSSProperties['height'];
|
|
155
|
+
}>;
|
|
156
|
+
type ComboboxItemProps = {
|
|
157
|
+
/** 選択値として使う文字列(必須) */
|
|
158
|
+
value: string;
|
|
159
|
+
/** input 表示・選択時の復元用文字列(必須)。1 行 truncate 表示で自動レンダリングされる */
|
|
160
|
+
label: string;
|
|
161
|
+
/** 個別アイテムの無効化 */
|
|
162
|
+
isDisabled?: boolean;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
declare function ComboboxInput({ autoFocus, children }: ComboboxInputProps): react.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare function ComboboxItem({ value, label, isDisabled }: ComboboxItemProps): react.JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare function ComboboxList({ children, maxHeight: maxHeightProp }: ComboboxListProps): react.JSX.Element;
|
|
170
|
+
|
|
171
|
+
declare function ComboboxLoading(): react.JSX.Element;
|
|
172
|
+
declare function ComboboxEmpty(): react.JSX.Element;
|
|
173
|
+
|
|
174
|
+
declare function ComboboxBase({ children, value, onChange, inputValue, onInputChange, onClickClearButton, isOpen: isOpenProp, onOpenChange, size, variant, placeholder, isError, isDisabled, width, maxWidth, listMaxHeight, matchListToTrigger, }: ComboboxProps): react.JSX.Element;
|
|
175
|
+
declare const Combobox: typeof ComboboxBase & {
|
|
176
|
+
Input: typeof ComboboxInput;
|
|
177
|
+
List: typeof ComboboxList;
|
|
178
|
+
Item: typeof ComboboxItem;
|
|
179
|
+
Loading: typeof ComboboxLoading;
|
|
180
|
+
Empty: typeof ComboboxEmpty;
|
|
181
|
+
HelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
182
|
+
ErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
183
|
+
displayName: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
82
186
|
/**
|
|
83
187
|
* DatePicker のエラーメッセージを表示するコンポーネントのプロパティ
|
|
84
188
|
*
|
|
@@ -459,14 +563,8 @@ type Props$i = {
|
|
|
459
563
|
};
|
|
460
564
|
declare function PaginationSelect({ totalSize, currentPage, sizePerPage, countLabel, pageLabel, optionListMaxHeight, onClickPrevButton, onClickNextButton, onChange, }: Props$i): react.JSX.Element;
|
|
461
565
|
|
|
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
566
|
type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> & {
|
|
469
|
-
size?: 'medium' | 'large';
|
|
567
|
+
size?: 'medium' | 'large' | 'x-large';
|
|
470
568
|
variant?: 'outline' | 'text';
|
|
471
569
|
value: string;
|
|
472
570
|
isError?: boolean;
|
|
@@ -716,6 +814,40 @@ type Props$8 = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type
|
|
|
716
814
|
};
|
|
717
815
|
declare function SortButton({ size, width, label, sortOrder, isDisabled, onClick, 'aria-label': ariaLabel, ...rest }: Props$8): react.JSX.Element;
|
|
718
816
|
|
|
817
|
+
type StepsSize = 'small' | 'medium' | 'large';
|
|
818
|
+
type StepsOrientation = 'horizontal' | 'vertical';
|
|
819
|
+
type StepsTextOrientation = 'horizontal' | 'vertical';
|
|
820
|
+
type StepsVariant = 'subtle' | 'solid';
|
|
821
|
+
type StepProgress = 'completed' | 'current' | 'upcoming';
|
|
822
|
+
type StepState = {
|
|
823
|
+
progress: StepProgress;
|
|
824
|
+
};
|
|
825
|
+
type StepsProps = {
|
|
826
|
+
children: ReactNode;
|
|
827
|
+
currentStep?: number;
|
|
828
|
+
defaultCurrentStep?: number;
|
|
829
|
+
size?: StepsSize;
|
|
830
|
+
orientation?: StepsOrientation;
|
|
831
|
+
textOrientation?: StepsTextOrientation;
|
|
832
|
+
variant?: StepsVariant;
|
|
833
|
+
'aria-label'?: string;
|
|
834
|
+
};
|
|
835
|
+
type StepsItemProps = {
|
|
836
|
+
label: ReactNode;
|
|
837
|
+
description?: ReactNode;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
declare function StepsItem({ label, description }: StepsItemProps): react.JSX.Element;
|
|
841
|
+
declare namespace StepsItem {
|
|
842
|
+
var displayName: string;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
declare function StepsRoot({ children, currentStep, defaultCurrentStep, size, orientation, textOrientation, variant, 'aria-label': ariaLabel, }: StepsProps): react.JSX.Element | null;
|
|
846
|
+
type StepsComponent = typeof StepsRoot & {
|
|
847
|
+
Item: typeof StepsItem;
|
|
848
|
+
};
|
|
849
|
+
declare const Steps: StepsComponent;
|
|
850
|
+
|
|
719
851
|
type Props$7 = {
|
|
720
852
|
children?: ReactNode;
|
|
721
853
|
/** レイアウトタイプ */
|
|
@@ -929,4 +1061,4 @@ type TooltipProps = {
|
|
|
929
1061
|
};
|
|
930
1062
|
declare function Tooltip({ children, content, size, maxWidth, verticalPosition, horizontalAlign, isDisabledHover, portalTarget, }: TooltipProps): react.JSX.Element;
|
|
931
1063
|
|
|
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 };
|
|
1064
|
+
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,93 @@ 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
|
+
/**
|
|
120
|
+
* クリアボタンのクリック時に呼ばれるコールバック。
|
|
121
|
+
* このコールバックを渡したときのみクリアボタンが表示される(TextInput と同一仕様)。
|
|
122
|
+
* 値のクリア(`onChange(null, null)` / `onInputChange('')`)は利用者側で行う。
|
|
123
|
+
*/
|
|
124
|
+
onClickClearButton?: () => void;
|
|
125
|
+
/** popup の開閉状態(任意、controlled) */
|
|
126
|
+
isOpen?: boolean;
|
|
127
|
+
/** 開閉変更時のコールバック */
|
|
128
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
129
|
+
/** サイズ */
|
|
130
|
+
size?: ComboboxSize;
|
|
131
|
+
/** バリアント */
|
|
132
|
+
variant?: ComboboxVariant;
|
|
133
|
+
/** プレースホルダー */
|
|
134
|
+
placeholder?: string;
|
|
135
|
+
/** エラー状態 */
|
|
136
|
+
isError?: boolean;
|
|
137
|
+
/** 無効状態 */
|
|
138
|
+
isDisabled?: boolean;
|
|
139
|
+
/** 幅 */
|
|
140
|
+
width?: CSSProperties['width'];
|
|
141
|
+
/** 最大幅 */
|
|
142
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
143
|
+
/** 候補リストの最大高さ */
|
|
144
|
+
listMaxHeight?: CSSProperties['height'];
|
|
145
|
+
/** true のとき候補リストの幅を input と一致させる。false のときコンテンツに応じて広がる(min: input 幅, max: ビューポート幅) */
|
|
146
|
+
matchListToTrigger?: boolean;
|
|
147
|
+
}>;
|
|
148
|
+
type ComboboxInputProps = PropsWithChildren<{
|
|
149
|
+
/** input の autoFocus */
|
|
150
|
+
autoFocus?: boolean;
|
|
151
|
+
}>;
|
|
152
|
+
type ComboboxListProps = PropsWithChildren<{
|
|
153
|
+
/** 候補リストの最大高さ(Combobox の listMaxHeight を上書き) */
|
|
154
|
+
maxHeight?: CSSProperties['height'];
|
|
155
|
+
}>;
|
|
156
|
+
type ComboboxItemProps = {
|
|
157
|
+
/** 選択値として使う文字列(必須) */
|
|
158
|
+
value: string;
|
|
159
|
+
/** input 表示・選択時の復元用文字列(必須)。1 行 truncate 表示で自動レンダリングされる */
|
|
160
|
+
label: string;
|
|
161
|
+
/** 個別アイテムの無効化 */
|
|
162
|
+
isDisabled?: boolean;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
declare function ComboboxInput({ autoFocus, children }: ComboboxInputProps): react.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare function ComboboxItem({ value, label, isDisabled }: ComboboxItemProps): react.JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare function ComboboxList({ children, maxHeight: maxHeightProp }: ComboboxListProps): react.JSX.Element;
|
|
170
|
+
|
|
171
|
+
declare function ComboboxLoading(): react.JSX.Element;
|
|
172
|
+
declare function ComboboxEmpty(): react.JSX.Element;
|
|
173
|
+
|
|
174
|
+
declare function ComboboxBase({ children, value, onChange, inputValue, onInputChange, onClickClearButton, isOpen: isOpenProp, onOpenChange, size, variant, placeholder, isError, isDisabled, width, maxWidth, listMaxHeight, matchListToTrigger, }: ComboboxProps): react.JSX.Element;
|
|
175
|
+
declare const Combobox: typeof ComboboxBase & {
|
|
176
|
+
Input: typeof ComboboxInput;
|
|
177
|
+
List: typeof ComboboxList;
|
|
178
|
+
Item: typeof ComboboxItem;
|
|
179
|
+
Loading: typeof ComboboxLoading;
|
|
180
|
+
Empty: typeof ComboboxEmpty;
|
|
181
|
+
HelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
182
|
+
ErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
|
|
183
|
+
displayName: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
82
186
|
/**
|
|
83
187
|
* DatePicker のエラーメッセージを表示するコンポーネントのプロパティ
|
|
84
188
|
*
|
|
@@ -459,14 +563,8 @@ type Props$i = {
|
|
|
459
563
|
};
|
|
460
564
|
declare function PaginationSelect({ totalSize, currentPage, sizePerPage, countLabel, pageLabel, optionListMaxHeight, onClickPrevButton, onClickNextButton, onChange, }: Props$i): react.JSX.Element;
|
|
461
565
|
|
|
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
566
|
type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> & {
|
|
469
|
-
size?: 'medium' | 'large';
|
|
567
|
+
size?: 'medium' | 'large' | 'x-large';
|
|
470
568
|
variant?: 'outline' | 'text';
|
|
471
569
|
value: string;
|
|
472
570
|
isError?: boolean;
|
|
@@ -716,6 +814,40 @@ type Props$8 = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type
|
|
|
716
814
|
};
|
|
717
815
|
declare function SortButton({ size, width, label, sortOrder, isDisabled, onClick, 'aria-label': ariaLabel, ...rest }: Props$8): react.JSX.Element;
|
|
718
816
|
|
|
817
|
+
type StepsSize = 'small' | 'medium' | 'large';
|
|
818
|
+
type StepsOrientation = 'horizontal' | 'vertical';
|
|
819
|
+
type StepsTextOrientation = 'horizontal' | 'vertical';
|
|
820
|
+
type StepsVariant = 'subtle' | 'solid';
|
|
821
|
+
type StepProgress = 'completed' | 'current' | 'upcoming';
|
|
822
|
+
type StepState = {
|
|
823
|
+
progress: StepProgress;
|
|
824
|
+
};
|
|
825
|
+
type StepsProps = {
|
|
826
|
+
children: ReactNode;
|
|
827
|
+
currentStep?: number;
|
|
828
|
+
defaultCurrentStep?: number;
|
|
829
|
+
size?: StepsSize;
|
|
830
|
+
orientation?: StepsOrientation;
|
|
831
|
+
textOrientation?: StepsTextOrientation;
|
|
832
|
+
variant?: StepsVariant;
|
|
833
|
+
'aria-label'?: string;
|
|
834
|
+
};
|
|
835
|
+
type StepsItemProps = {
|
|
836
|
+
label: ReactNode;
|
|
837
|
+
description?: ReactNode;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
declare function StepsItem({ label, description }: StepsItemProps): react.JSX.Element;
|
|
841
|
+
declare namespace StepsItem {
|
|
842
|
+
var displayName: string;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
declare function StepsRoot({ children, currentStep, defaultCurrentStep, size, orientation, textOrientation, variant, 'aria-label': ariaLabel, }: StepsProps): react.JSX.Element | null;
|
|
846
|
+
type StepsComponent = typeof StepsRoot & {
|
|
847
|
+
Item: typeof StepsItem;
|
|
848
|
+
};
|
|
849
|
+
declare const Steps: StepsComponent;
|
|
850
|
+
|
|
719
851
|
type Props$7 = {
|
|
720
852
|
children?: ReactNode;
|
|
721
853
|
/** レイアウトタイプ */
|
|
@@ -929,4 +1061,4 @@ type TooltipProps = {
|
|
|
929
1061
|
};
|
|
930
1062
|
declare function Tooltip({ children, content, size, maxWidth, verticalPosition, horizontalAlign, isDisabledHover, portalTarget, }: TooltipProps): react.JSX.Element;
|
|
931
1063
|
|
|
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 };
|
|
1064
|
+
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 };
|