@zenkigen-inc/component-ui 1.18.0 → 1.18.2

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 CHANGED
@@ -1,18 +1,19 @@
1
1
  import * as react from 'react';
2
- import react__default, { PropsWithChildren, ElementType, ComponentPropsWithoutRef, CSSProperties, ReactNode, ChangeEvent, MouseEvent, MutableRefObject, ReactElement, RefObject, InputHTMLAttributes, FormEvent, ButtonHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
+ import react__default, { PropsWithChildren, ElementType, ComponentPropsWithoutRef, CSSProperties, ReactNode, ChangeEvent, MouseEvent, MutableRefObject, ReactElement, RefObject, HTMLAttributes, InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes, FormEvent, ButtonHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
+ import * as _zenkigen_inc_component_icons from '@zenkigen-inc/component-icons';
3
4
  import { IconName } from '@zenkigen-inc/component-icons';
4
5
  import { iconColors, tagLightColors } from '@zenkigen-inc/component-theme';
5
6
  import { tokens } from '@zenkigen-inc/component-config';
6
7
  import { useFloating } from '@floating-ui/react';
7
8
 
8
- type Props$z = {
9
+ type Props$y = {
9
10
  size?: 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
10
11
  userId?: number;
11
12
  firstName?: string;
12
13
  lastName?: string;
13
14
  isDisabled?: boolean;
14
15
  };
15
- declare function Avatar({ size, ...props }: Props$z): react.JSX.Element;
16
+ declare function Avatar({ size, ...props }: Props$y): react.JSX.Element;
16
17
 
17
18
  declare function Breadcrumb({ children }: PropsWithChildren): react.JSX.Element;
18
19
  declare namespace Breadcrumb {
@@ -27,6 +28,12 @@ type AsProp<T extends ElementAs> = {
27
28
  elementAs?: T;
28
29
  };
29
30
  type PolymorphicPropsWithoutRef<T extends ElementAs, P extends object> = PropsWithChildren<P> & ComponentPropsWithoutRef<T> & AsProp<T>;
31
+ type DeprecatedClassNameProp<T extends ElementAs> = {
32
+ /**
33
+ * @deprecated 外部から className を渡してスタイルを上書きすることは非推奨です。
34
+ */
35
+ className?: ComponentPropsWithoutRef<T>['className'];
36
+ };
30
37
  type BaseProps$1<T extends ElementAs> = PolymorphicPropsWithoutRef<T, {
31
38
  size?: Size$3;
32
39
  width?: CSSProperties['width'];
@@ -36,13 +43,13 @@ type BaseProps$1<T extends ElementAs> = PolymorphicPropsWithoutRef<T, {
36
43
  after?: ReactNode;
37
44
  borderRadius?: CSSProperties['borderRadius'];
38
45
  justifyContent?: JustifyContent;
39
- }>;
46
+ }> & DeprecatedClassNameProp<T>;
40
47
  type PublicProps<T extends ElementAs> = BaseProps$1<T> & {
41
48
  variant?: Variant$1;
42
49
  };
43
50
  declare const Button: <T extends ElementAs = "button">(props: PublicProps<T>) => react.JSX.Element;
44
51
 
45
- type Props$y = {
52
+ type Props$x = {
46
53
  name?: string;
47
54
  value?: string;
48
55
  id?: string;
@@ -53,13 +60,13 @@ type Props$y = {
53
60
  label?: string;
54
61
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
55
62
  };
56
- declare function Checkbox({ name, value, id, isChecked, isIndeterminate, isDisabled, onChange, label, color, }: Props$y): react.JSX.Element;
63
+ declare function Checkbox({ name, value, id, isChecked, isIndeterminate, isDisabled, onChange, label, color, }: Props$x): react.JSX.Element;
57
64
 
58
- type Props$x = {
65
+ type Props$w = {
59
66
  color?: 'gray' | 'red';
60
67
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
61
68
  };
62
- declare function DropdownItem({ children, color, onClick }: PropsWithChildren<Props$x>): react.JSX.Element;
69
+ declare function DropdownItem({ children, color, onClick }: PropsWithChildren<Props$w>): react.JSX.Element;
63
70
 
64
71
  type DropdownItemType = {
65
72
  id: string;
@@ -70,15 +77,15 @@ type DropdownItemType = {
70
77
  type DropdownVerticalPosition = 'top' | 'bottom';
71
78
  type DropdownHorizontalAlign = 'left' | 'center' | 'right';
72
79
 
73
- type Props$w = {
80
+ type Props$v = {
74
81
  maxHeight?: CSSProperties['height'];
75
82
  isNoPadding?: boolean;
76
83
  verticalPosition?: DropdownVerticalPosition;
77
84
  horizontalAlign?: DropdownHorizontalAlign;
78
85
  };
79
- declare function DropdownMenu({ children, maxHeight, isNoPadding, verticalPosition, horizontalAlign, }: PropsWithChildren<Props$w>): false | react.JSX.Element;
86
+ declare function DropdownMenu({ children, maxHeight, isNoPadding, verticalPosition, horizontalAlign, }: PropsWithChildren<Props$v>): false | react.JSX.Element;
80
87
 
81
- type Props$v = {
88
+ type Props$u = {
82
89
  size?: 'x-small' | 'small' | 'medium' | 'large';
83
90
  variant?: 'text' | 'outline';
84
91
  title?: string;
@@ -94,19 +101,19 @@ type Props$v = {
94
101
  label: string;
95
102
  icon?: IconName;
96
103
  });
97
- declare function Dropdown({ children, target, label, icon, size, variant, title, isDisabled, isArrowHidden, portalTargetRef, }: PropsWithChildren<Props$v>): react.JSX.Element;
104
+ declare function Dropdown({ children, target, label, icon, size, variant, title, isDisabled, isArrowHidden, portalTargetRef, }: PropsWithChildren<Props$u>): react.JSX.Element;
98
105
  declare namespace Dropdown {
99
106
  var Menu: typeof DropdownMenu;
100
107
  var Item: typeof DropdownItem;
101
108
  }
102
109
 
103
- type Props$u = {
110
+ type Props$t = {
104
111
  value: number;
105
112
  isEditable?: boolean;
106
113
  onChangeRating?: (newRating: number) => void | null;
107
114
  size?: 'medium' | 'large';
108
115
  };
109
- declare function EvaluationStar({ value, isEditable, onChangeRating, size }: Props$u): react.JSX.Element;
116
+ declare function EvaluationStar({ value, isEditable, onChangeRating, size }: Props$t): react.JSX.Element;
110
117
 
111
118
  type Size$2 = 'small' | 'medium' | 'large';
112
119
  declare const ERROR_TYPES: {
@@ -154,13 +161,13 @@ type FileInputRef = {
154
161
  declare const FileInput: react.ForwardRefExoticComponent<FileInputProps & react.RefAttributes<FileInputRef>>;
155
162
 
156
163
  type Level = 1 | 2 | 3 | 4 | 5;
157
- type Props$t = {
164
+ type Props$s = {
158
165
  level: Level;
159
166
  before?: ReactNode;
160
167
  after?: ReactNode;
161
168
  children?: ReactNode;
162
169
  };
163
- declare function Heading(props: Props$t): react.JSX.Element;
170
+ declare function Heading(props: Props$s): react.JSX.Element;
164
171
 
165
172
  declare const useOutsideClick: <T extends HTMLElement = HTMLElement>(ref: RefObject<T | null>, handler: (event: Event) => void, enabled?: boolean) => void;
166
173
 
@@ -231,7 +238,7 @@ type ColorToken = UserColorToken | TextColorToken | LinkColorToken | BackgroundC
231
238
 
232
239
  type Size$1 = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
233
240
  type Color = keyof typeof iconColors;
234
- type Props$s = {
241
+ type Props$r = {
235
242
  name: IconName;
236
243
  size?: Size$1;
237
244
  color?: Color;
@@ -239,11 +246,11 @@ type Props$s = {
239
246
  isDisabled?: boolean;
240
247
  className?: string;
241
248
  };
242
- declare const Icon: ({ size, isDisabled, ...props }: Props$s) => react.JSX.Element;
249
+ declare const Icon: ({ size, isDisabled, ...props }: Props$r) => react.JSX.Element;
243
250
 
244
251
  type Size = 'small' | 'medium' | 'large';
245
252
  type Variant = 'outline' | 'text';
246
- type Props$r = {
253
+ type Props$q = {
247
254
  /** 表示するアイコン名 */
248
255
  icon: IconName;
249
256
  /** ボタンのサイズ */
@@ -263,28 +270,28 @@ type Props$r = {
263
270
  } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'className'>) | ({
264
271
  isAnchor?: false;
265
272
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'disabled' | 'className'>));
266
- declare function IconButton({ icon, size, variant, isNoPadding, isDisabled, isSelected, ...props }: Props$r): react.JSX.Element;
273
+ declare function IconButton({ icon, size, variant, isNoPadding, isDisabled, isSelected, ...props }: Props$q): react.JSX.Element;
267
274
 
268
- type Props$q = {
275
+ type Props$p = {
269
276
  size?: 'small' | 'medium' | 'large';
270
277
  position?: 'fixed' | 'absolute' | 'static';
271
278
  height?: string;
272
279
  };
273
- declare function Loading({ size, position, height }: Props$q): react.JSX.Element;
280
+ declare function Loading({ size, position, height }: Props$p): react.JSX.Element;
274
281
 
275
282
  declare function ModalBody({ children }: PropsWithChildren): react.JSX.Element;
276
283
 
277
- type Props$p = {
284
+ type Props$o = {
278
285
  isNoBorder?: boolean;
279
286
  };
280
- declare function ModalFooter({ children, isNoBorder }: PropsWithChildren<Props$p>): react__default.JSX.Element;
287
+ declare function ModalFooter({ children, isNoBorder }: PropsWithChildren<Props$o>): react__default.JSX.Element;
281
288
 
282
- type Props$o = {
289
+ type Props$n = {
283
290
  isNoBorder?: boolean;
284
291
  };
285
- declare function ModalHeader({ children, isNoBorder }: PropsWithChildren<Props$o>): react.JSX.Element;
292
+ declare function ModalHeader({ children, isNoBorder }: PropsWithChildren<Props$n>): react.JSX.Element;
286
293
 
287
- type Props$n = {
294
+ type Props$m = {
288
295
  width?: CSSProperties['width'];
289
296
  height?: CSSProperties['height'];
290
297
  maxWidth?: CSSProperties['maxWidth'];
@@ -292,14 +299,14 @@ type Props$n = {
292
299
  onClose?: () => void;
293
300
  portalTargetRef?: MutableRefObject<HTMLElement | null>;
294
301
  };
295
- declare function Modal({ children, width, height, maxWidth, isOpen, onClose, portalTargetRef, }: PropsWithChildren<Props$n>): react.JSX.Element | null;
302
+ declare function Modal({ children, width, height, maxWidth, isOpen, onClose, portalTargetRef, }: PropsWithChildren<Props$m>): react.JSX.Element | null;
296
303
  declare namespace Modal {
297
304
  var Body: typeof ModalBody;
298
305
  var Header: typeof ModalHeader;
299
306
  var Footer: typeof ModalFooter;
300
307
  }
301
308
 
302
- type Props$m = {
309
+ type Props$l = {
303
310
  state?: 'success' | 'warning' | 'information' | 'attention' | 'default';
304
311
  size?: 'small' | 'medium';
305
312
  children?: ReactNode;
@@ -309,9 +316,9 @@ type Props$m = {
309
316
  showClose: true;
310
317
  onClickClose: () => void;
311
318
  });
312
- declare function NotificationInline({ state, size, ...props }: Props$m): react.JSX.Element;
319
+ declare function NotificationInline({ state, size, ...props }: Props$l): react.JSX.Element;
313
320
 
314
- type Props$l = {
321
+ type Props$k = {
315
322
  /** 現在のページ番号 */
316
323
  currentPage: number;
317
324
  /** トータルのページ数 */
@@ -321,9 +328,9 @@ type Props$l = {
321
328
  /** ボタンが押されたときのイベントハンドラ */
322
329
  onClick: (value: number) => void;
323
330
  };
324
- declare function Pagination({ currentPage, totalPage, sideNumPagesToShow, onClick }: Props$l): react.JSX.Element;
331
+ declare function Pagination({ currentPage, totalPage, sideNumPagesToShow, onClick }: Props$k): react.JSX.Element | null;
325
332
 
326
- type Props$k = {
333
+ type Props$j = {
327
334
  /** トータル件数 */
328
335
  totalSize: number;
329
336
  /** ページあたり件数 */
@@ -343,20 +350,33 @@ type Props$k = {
343
350
  /** Selectが切り替わった時のイベントハンドラ */
344
351
  onChange: (value: number) => void;
345
352
  };
346
- declare function PaginationSelect({ totalSize, currentPage, sizePerPage, countLabel, pageLabel, optionListMaxHeight, onClickPrevButton, onClickNextButton, onChange, }: Props$k): react.JSX.Element;
353
+ declare function PaginationSelect({ totalSize, currentPage, sizePerPage, countLabel, pageLabel, optionListMaxHeight, onClickPrevButton, onClickNextButton, onChange, }: Props$j): react.JSX.Element;
354
+
355
+ type TextInputErrorMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
356
+ declare const TextInputErrorMessage: react.ForwardRefExoticComponent<TextInputErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
347
357
 
348
- declare const TextInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
349
- size?: "medium" | "large";
358
+ type TextInputHelperMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
359
+ declare const TextInputHelperMessage: react.ForwardRefExoticComponent<TextInputHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
360
+
361
+ type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> & {
362
+ size?: 'medium' | 'large';
350
363
  value: string;
351
364
  isError?: boolean;
352
365
  onClickClearButton?: () => void;
353
- } & {
354
- /** 入力欄の末尾に表示する要素。例: アイコンやテキスト(内部実装用) */
355
- after?: ReactNode;
356
- } & react.RefAttributes<HTMLInputElement>>;
366
+ };
357
367
 
358
- type Props$j = Omit<ComponentPropsWithoutRef<typeof TextInput>, 'type' | 'onClickClearButton'>;
359
- declare const PasswordInput: react.ForwardRefExoticComponent<Props$j & react.RefAttributes<HTMLInputElement>>;
368
+ type TextInputComponent = ForwardRefExoticComponent<TextInputProps & RefAttributes<HTMLInputElement>> & {
369
+ HelperMessage: typeof TextInputHelperMessage;
370
+ ErrorMessage: typeof TextInputErrorMessage;
371
+ };
372
+ declare const TextInput: TextInputComponent;
373
+
374
+ type Props$i = Omit<ComponentPropsWithoutRef<typeof TextInput>, 'type' | 'onClickClearButton' | 'className'>;
375
+ declare const PasswordInput: ForwardRefExoticComponent<Props$i & RefAttributes<HTMLInputElement>> & {
376
+ HelperMessage: ForwardRefExoticComponent<TextInputHelperMessageProps & RefAttributes<HTMLDivElement>>;
377
+ ErrorMessage: ForwardRefExoticComponent<TextInputErrorMessageProps & RefAttributes<HTMLDivElement>>;
378
+ displayName: string;
379
+ };
360
380
 
361
381
  /**
362
382
  * Popoverが閉じられる理由を定義する型
@@ -386,14 +406,14 @@ type PopoverContextValue = {
386
406
  onClose?: (event: PopoverCloseEvent) => void;
387
407
  };
388
408
 
389
- type Props$i = {
409
+ type Props$h = {
390
410
  isOpen: boolean;
391
411
  placement?: PopoverPlacement;
392
412
  offset?: number;
393
413
  onClose?: (event: PopoverCloseEvent) => void;
394
414
  anchorRef?: React.RefObject<HTMLElement | null>;
395
415
  };
396
- declare function Popover({ isOpen, children, placement, offset: offsetValue, onClose, anchorRef, }: PropsWithChildren<Props$i>): react.JSX.Element;
416
+ declare function Popover({ isOpen, children, placement, offset: offsetValue, onClose, anchorRef, }: PropsWithChildren<Props$h>): react.JSX.Element;
397
417
  declare namespace Popover {
398
418
  var Trigger: react.ForwardRefExoticComponent<{
399
419
  children: React.ReactElement;
@@ -417,25 +437,25 @@ declare function PopupBody({ children }: PropsWithChildren): react.JSX.Element;
417
437
 
418
438
  declare function PopupFooter({ children }: PropsWithChildren): react__default.JSX.Element;
419
439
 
420
- type Props$h = PropsWithChildren<{
440
+ type Props$g = PropsWithChildren<{
421
441
  before?: ReactNode;
422
442
  }>;
423
- declare function PopupHeader({ children, before }: Props$h): react.JSX.Element;
443
+ declare function PopupHeader({ children, before }: Props$g): react.JSX.Element;
424
444
 
425
- type Props$g = {
445
+ type Props$f = {
426
446
  isOpen?: boolean;
427
447
  width?: CSSProperties['width'];
428
448
  height?: CSSProperties['height'];
429
449
  onClose?: () => void;
430
450
  };
431
- declare function Popup({ children, isOpen: controlledIsOpen, width, height, onClose }: PropsWithChildren<Props$g>): react.JSX.Element | null;
451
+ declare function Popup({ children, isOpen: controlledIsOpen, width, height, onClose }: PropsWithChildren<Props$f>): react.JSX.Element | null;
432
452
  declare namespace Popup {
433
453
  var Body: typeof PopupBody;
434
454
  var Header: typeof PopupHeader;
435
455
  var Footer: typeof PopupFooter;
436
456
  }
437
457
 
438
- type Props$f = {
458
+ type Props$e = {
439
459
  name?: string;
440
460
  value?: string;
441
461
  id?: string;
@@ -444,9 +464,9 @@ type Props$f = {
444
464
  isDisabled?: boolean;
445
465
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
446
466
  };
447
- declare function Radio({ name, value, id, label, isChecked, isDisabled, onChange }: Props$f): react.JSX.Element;
467
+ declare function Radio({ name, value, id, label, isChecked, isDisabled, onChange }: Props$e): react.JSX.Element;
448
468
 
449
- type Props$e = {
469
+ type Props$d = {
450
470
  size?: 'medium' | 'large';
451
471
  placeholder?: string;
452
472
  width?: string;
@@ -455,7 +475,7 @@ type Props$e = {
455
475
  onSubmit?: (e: FormEvent<HTMLFormElement>) => void;
456
476
  onClickClearButton?: () => void;
457
477
  };
458
- declare const Search: react.ForwardRefExoticComponent<Props$e & react.RefAttributes<HTMLDivElement>>;
478
+ declare const Search: react.ForwardRefExoticComponent<Props$d & react.RefAttributes<HTMLDivElement>>;
459
479
 
460
480
  type BaseProps = Omit<ComponentPropsWithoutRef<'button'>, 'onClick' | 'className'> & {
461
481
  value: string;
@@ -499,12 +519,12 @@ type SelectOption = {
499
519
  icon?: IconName;
500
520
  };
501
521
 
502
- type Props$d = {
522
+ type Props$c = {
503
523
  option: SelectOption;
504
524
  };
505
- declare function SelectItem({ option }: Props$d): react.JSX.Element;
525
+ declare function SelectItem({ option }: Props$c): react.JSX.Element;
506
526
 
507
- type Props$c = {
527
+ type Props$b = {
508
528
  size?: 'x-small' | 'small' | 'medium' | 'large';
509
529
  variant?: 'outline' | 'text';
510
530
  width?: CSSProperties['width'];
@@ -518,14 +538,14 @@ type Props$c = {
518
538
  isOptionSelected?: boolean;
519
539
  onChange?: (option: SelectOption | null) => void;
520
540
  };
521
- declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isError, isOptionSelected, onChange, optionListMaxHeight, }: PropsWithChildren<Props$c>): react.JSX.Element;
541
+ declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isError, isOptionSelected, onChange, optionListMaxHeight, }: PropsWithChildren<Props$b>): react.JSX.Element;
522
542
  declare namespace Select {
523
543
  var Option: typeof SelectItem;
524
544
  }
525
545
 
526
546
  type SortOrder = 'ascend' | 'descend' | null;
527
547
 
528
- type Props$b = {
548
+ type Props$a = {
529
549
  size?: 'x-small' | 'small' | 'medium' | 'large';
530
550
  variant?: 'outline' | 'text';
531
551
  width?: CSSProperties['width'];
@@ -536,9 +556,9 @@ type Props$b = {
536
556
  onChange?: (value: SortOrder) => void;
537
557
  onClickDeselect?: () => void;
538
558
  };
539
- declare function SelectSort({ size, variant, width, label, sortOrder, isDisabled, isSortKey, onChange, onClickDeselect, }: Props$b): react.JSX.Element;
559
+ declare function SelectSort({ size, variant, width, label, sortOrder, isDisabled, isSortKey, onChange, onClickDeselect, }: Props$a): react.JSX.Element;
540
560
 
541
- type Props$a = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type' | 'disabled' | 'onClick' | 'aria-disabled' | 'aria-label'> & {
561
+ type Props$9 = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type' | 'disabled' | 'onClick' | 'aria-disabled' | 'aria-label'> & {
542
562
  size?: 'x-small' | 'small' | 'medium' | 'large';
543
563
  width?: CSSProperties['width'];
544
564
  label: string;
@@ -547,54 +567,56 @@ type Props$a = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'type
547
567
  'aria-label': string;
548
568
  onClick?: () => void;
549
569
  };
550
- declare function SortButton({ size, width, label, sortOrder, isDisabled, onClick, 'aria-label': ariaLabel, ...rest }: Props$a): react.JSX.Element;
570
+ declare function SortButton({ size, width, label, sortOrder, isDisabled, onClick, 'aria-label': ariaLabel, ...rest }: Props$9): react.JSX.Element;
551
571
 
552
- type Props$9 = {
572
+ type Props$8 = {
553
573
  children?: ReactNode;
554
574
  /** レイアウトタイプ */
555
575
  layout?: 'auto' | 'equal';
556
576
  };
557
- declare function Tab({ children, layout }: Props$9): react.JSX.Element;
577
+ declare function Tab({ children, layout }: Props$8): react.JSX.Element;
558
578
  declare namespace Tab {
559
- var Item: ({ isSelected, ...props }: {
579
+ var Item: ({ isSelected, isDisabled, icon, ...props }: {
560
580
  id: string;
561
581
  isSelected?: boolean;
562
582
  isDisabled?: boolean;
583
+ icon?: _zenkigen_inc_component_icons.IconName;
563
584
  children?: ReactNode;
564
585
  onClick: (id: string) => void;
565
586
  }) => react.JSX.Element;
566
587
  }
567
588
 
568
- type Props$8 = {
589
+ type Props$7 = {
569
590
  id: string;
570
591
  isSelected?: boolean;
571
592
  isDisabled?: boolean;
593
+ icon?: IconName;
572
594
  children?: ReactNode;
573
595
  onClick: (id: string) => void;
574
596
  };
575
- declare const TabItem: ({ isSelected, ...props }: Props$8) => react.JSX.Element;
597
+ declare const TabItem: ({ isSelected, isDisabled, icon, ...props }: Props$7) => react.JSX.Element;
576
598
 
577
- type Props$7 = {
599
+ type Props$6 = {
578
600
  children?: ReactNode;
579
601
  className?: string;
580
602
  isHeader?: boolean;
581
603
  };
582
- declare function TableCell({ children, className, isHeader }: Props$7): react.JSX.Element;
604
+ declare function TableCell({ children, className, isHeader }: Props$6): react.JSX.Element;
583
605
 
584
- type Props$6 = {
606
+ type Props$5 = {
585
607
  children?: ReactNode;
586
608
  isHoverBackgroundVisible?: boolean;
587
609
  };
588
- declare function TableRow({ children, isHoverBackgroundVisible }: Props$6): react.JSX.Element;
610
+ declare function TableRow({ children, isHoverBackgroundVisible }: Props$5): react.JSX.Element;
589
611
 
590
- type Props$5 = {
612
+ type Props$4 = {
591
613
  width?: CSSProperties['width'];
592
614
  templateRows?: CSSProperties['gridTemplateRows'];
593
615
  templateColumns?: CSSProperties['gridTemplateColumns'];
594
616
  autoColumns?: CSSProperties['gridAutoColumns'];
595
617
  autoRows?: CSSProperties['gridAutoRows'];
596
618
  };
597
- declare function Table({ width, templateRows, templateColumns, autoColumns, autoRows, children, }: PropsWithChildren<Props$5>): react.JSX.Element;
619
+ declare function Table({ width, templateRows, templateColumns, autoColumns, autoRows, children, }: PropsWithChildren<Props$4>): react.JSX.Element;
598
620
  declare namespace Table {
599
621
  var Row: typeof TableRow;
600
622
  var Cell: typeof TableCell;
@@ -603,7 +625,7 @@ declare namespace Table {
603
625
  type TagColor = keyof typeof tagLightColors;
604
626
  type ColorVariant = 'normal' | 'light';
605
627
 
606
- type Props$4 = {
628
+ type Props$3 = {
607
629
  id: string;
608
630
  children: string;
609
631
  color: TagColor;
@@ -617,13 +639,17 @@ type Props$4 = {
617
639
  onDelete?: never;
618
640
  size?: 'x-small' | 'small' | 'medium';
619
641
  });
620
- declare function Tag({ id, children, color, variant, size, isEditable, onDelete }: Props$4): react.JSX.Element;
642
+ declare function Tag({ id, children, color, variant, size, isEditable, onDelete }: Props$3): react.JSX.Element;
621
643
 
622
- type Props$3 = TextareaHTMLAttributes<HTMLTextAreaElement> & {
644
+ type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'className'> & {
623
645
  size?: 'medium' | 'large';
624
646
  value: string;
625
647
  height?: CSSProperties['height'];
626
648
  isError?: boolean;
649
+ /**
650
+ * @deprecated 外部から className を渡してスタイルを上書きすることは非推奨です。
651
+ */
652
+ className?: string;
627
653
  } & ({
628
654
  autoHeight: true;
629
655
  maxHeight?: CSSProperties['maxHeight'];
@@ -633,7 +659,18 @@ type Props$3 = TextareaHTMLAttributes<HTMLTextAreaElement> & {
633
659
  maxHeight?: never;
634
660
  isResizable?: boolean;
635
661
  });
636
- declare const TextArea: react.ForwardRefExoticComponent<Props$3 & react.RefAttributes<HTMLTextAreaElement>>;
662
+
663
+ type TextAreaErrorMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
664
+ declare const TextAreaErrorMessage: react.ForwardRefExoticComponent<TextAreaErrorMessageProps & react.RefAttributes<HTMLDivElement>>;
665
+
666
+ type TextAreaHelperMessageProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
667
+ declare const TextAreaHelperMessage: react.ForwardRefExoticComponent<TextAreaHelperMessageProps & react.RefAttributes<HTMLDivElement>>;
668
+
669
+ type TextAreaComponent = ForwardRefExoticComponent<TextAreaProps & RefAttributes<HTMLTextAreaElement>> & {
670
+ HelperMessage: typeof TextAreaHelperMessage;
671
+ ErrorMessage: typeof TextAreaErrorMessage;
672
+ };
673
+ declare const TextArea: TextAreaComponent;
637
674
 
638
675
  type ToastState = 'success' | 'error' | 'warning' | 'information';
639
676