visits-style 1.3.0 → 1.4.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.
Files changed (77) hide show
  1. package/README.md +14 -7
  2. package/dist/components/Accordion/index.d.ts +12 -13
  3. package/dist/components/AppBar/index.d.ts +19 -20
  4. package/dist/components/Card/index.d.ts +17 -18
  5. package/dist/components/Modal/index.d.ts +33 -30
  6. package/dist/components/Popover/index.d.ts +38 -40
  7. package/dist/components/Portal/index.d.ts +8 -8
  8. package/dist/components/Spinner/index.d.ts +12 -12
  9. package/dist/components/Toast/ToastItem.d.ts +2 -0
  10. package/dist/components/Toast/index.d.ts +2 -39
  11. package/dist/components/Toast/types.d.ts +38 -0
  12. package/dist/components/Tooltip/index.d.ts +30 -27
  13. package/dist/components/index.d.ts +11 -10
  14. package/dist/elements/Box/index.d.ts +10 -10
  15. package/dist/elements/Button/ButtonGroup.d.ts +2 -2
  16. package/dist/elements/Button/TextButton.d.ts +18 -18
  17. package/dist/elements/Button/index.d.ts +16 -16
  18. package/dist/elements/Content/index.d.ts +2 -2
  19. package/dist/elements/Divider/index.d.ts +2 -2
  20. package/dist/elements/Grid/Col.d.ts +11 -11
  21. package/dist/elements/Grid/Container.d.ts +6 -6
  22. package/dist/elements/Grid/Row.d.ts +3 -3
  23. package/dist/elements/Icons/Approved.d.ts +2 -2
  24. package/dist/elements/Icons/ArrowDown.d.ts +2 -2
  25. package/dist/elements/Icons/ChevronLeftRound.d.ts +2 -2
  26. package/dist/elements/Icons/ChevronRightRound.d.ts +2 -2
  27. package/dist/elements/Icons/Close.d.ts +2 -2
  28. package/dist/elements/Icons/FileRound.d.ts +2 -2
  29. package/dist/elements/Icons/Pencil.d.ts +2 -2
  30. package/dist/elements/Icons/PencilSimple.d.ts +2 -2
  31. package/dist/elements/Icons/Plus.d.ts +2 -2
  32. package/dist/elements/Icons/Refresh.d.ts +2 -2
  33. package/dist/elements/Icons/User.d.ts +2 -2
  34. package/dist/elements/Icons/index.d.ts +11 -11
  35. package/dist/elements/Placeholder/index.d.ts +2 -2
  36. package/dist/elements/Progress/index.d.ts +18 -19
  37. package/dist/elements/Table/index.d.ts +11 -11
  38. package/dist/elements/Tag/index.d.ts +15 -16
  39. package/dist/elements/index.d.ts +14 -15
  40. package/dist/forms/Checkbox/index.d.ts +8 -8
  41. package/dist/forms/Field/index.d.ts +7 -8
  42. package/dist/forms/HelpMessage.d.ts +7 -7
  43. package/dist/forms/Radio/index.d.ts +8 -8
  44. package/dist/forms/Select/index.d.ts +27 -27
  45. package/dist/forms/Switch/index.d.ts +21 -21
  46. package/dist/forms/TextInput/index.d.ts +22 -23
  47. package/dist/forms/Textarea/index.d.ts +11 -11
  48. package/dist/forms/index.d.ts +7 -7
  49. package/dist/hooks/useForceUpdate.d.ts +1 -1
  50. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
  51. package/dist/hooks/useScrollFix.d.ts +1 -1
  52. package/dist/index.cjs.js +2389 -0
  53. package/dist/index.d.ts +7 -7
  54. package/dist/index.es.js +2389 -0
  55. package/dist/styles/normalize.d.ts +3 -3
  56. package/dist/theme.d.ts +3 -3
  57. package/dist/types.d.ts +36 -36
  58. package/dist/utils/arrow.d.ts +1 -1
  59. package/dist/utils/boxShadow.d.ts +1 -1
  60. package/dist/utils/disabledColor.d.ts +2 -2
  61. package/dist/utils/findColorInvert.d.ts +2 -2
  62. package/dist/utils/hambuger.d.ts +1 -1
  63. package/dist/utils/index.d.ts +6 -6
  64. package/dist/utils/isClient.d.ts +2 -2
  65. package/dist/utils/media.d.ts +10 -10
  66. package/dist/utils/setAlign.d.ts +3 -3
  67. package/dist/utils/setSize.d.ts +4 -4
  68. package/dist/utils/wrapEvent.d.ts +2 -2
  69. package/package.json +20 -65
  70. package/dist/index.js +0 -8
  71. package/dist/utils/__test__/findColorInvert.test.d.ts +0 -1
  72. package/dist/visits-style.cjs.development.js +0 -2598
  73. package/dist/visits-style.cjs.development.js.map +0 -1
  74. package/dist/visits-style.cjs.production.min.js +0 -2
  75. package/dist/visits-style.cjs.production.min.js.map +0 -1
  76. package/dist/visits-style.esm.js +0 -2539
  77. package/dist/visits-style.esm.js.map +0 -1
@@ -1,6 +1,6 @@
1
- interface Props {
2
- /** */
3
- fluid?: boolean;
4
- }
5
- declare const _default: import("styled-components").StyledComponent<"div", any, Props, never>;
6
- export default _default;
1
+ export interface Props {
2
+ /** */
3
+ fluid?: boolean;
4
+ }
5
+ declare const _default: import("styled-components").StyledComponent<"div", any, Props, never>;
6
+ export default _default;
@@ -1,3 +1,3 @@
1
- import { HTMLAttributes } from 'react';
2
- declare const _default: import("styled-components").StyledComponent<"div", any, HTMLAttributes<HTMLDivElement>, never>;
3
- export default _default;
1
+ import { HTMLAttributes } from 'react';
2
+ declare const _default: import("styled-components").StyledComponent<"div", any, HTMLAttributes<HTMLDivElement>, never>;
3
+ export default _default;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function Approved(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function Approved(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function ChevronDown(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function ChevronDown(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function ChevronLeftRound(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function ChevronLeftRound(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function ChevronRightRound(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function ChevronRightRound(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function Close(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function Close(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function FileRound(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function FileRound(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function Pencil(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function Pencil(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function PencilSimple(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function PencilSimple(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function Plus(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function Plus(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function Refresh(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function Refresh(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { SVGAttributes } from 'react';
2
- export default function User(props: SVGAttributes<SVGSVGElement>): JSX.Element;
1
+ import { SVGAttributes } from 'react';
2
+ export default function User(props: SVGAttributes<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
- export { default as IconApproved } from './Approved';
2
- export { default as IconChevronLeftRound } from './ChevronLeftRound';
3
- export { default as IconChevronRightRound } from './ChevronRightRound';
4
- export { default as IconFileRound } from './FileRound';
5
- export { default as IconPencil } from './Pencil';
6
- export { default as IconPencilSimple } from './PencilSimple';
7
- export { default as IconUser } from './User';
8
- export { default as IconClose } from './Close';
9
- export { default as IconRefresh } from './Refresh';
10
- export { default as IconPlus } from './Plus';
11
- export { default as IconArrowDown } from './ArrowDown';
1
+ export { default as IconApproved } from './Approved';
2
+ export { default as IconChevronLeftRound } from './ChevronLeftRound';
3
+ export { default as IconChevronRightRound } from './ChevronRightRound';
4
+ export { default as IconFileRound } from './FileRound';
5
+ export { default as IconPencil } from './Pencil';
6
+ export { default as IconPencilSimple } from './PencilSimple';
7
+ export { default as IconUser } from './User';
8
+ export { default as IconClose } from './Close';
9
+ export { default as IconRefresh } from './Refresh';
10
+ export { default as IconPlus } from './Plus';
11
+ export { default as IconArrowDown } from './ArrowDown';
@@ -1,2 +1,2 @@
1
- declare const _default: import("styled-components").StyledComponent<"span", any, {}, never>;
2
- export default _default;
1
+ declare const _default: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export default _default;
@@ -1,19 +1,18 @@
1
- import { HTMLAttributes } from 'react';
2
- import { ColorType, SizeType } from '../../types';
3
- interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
4
- /** 現状の進捗 */
5
- value: number;
6
- /** 進捗の最大値 */
7
- max: number;
8
- /** バーのサイズ */
9
- size?: SizeType;
10
- /** sizeを使わないときの縦幅を指定する */
11
- height?: string;
12
- /**
13
- * バーの色
14
- * @default 'primary'
15
- */
16
- color?: ColorType;
17
- }
18
- export default function Progress({ value, max, color, ...rest }: ProgressProps): JSX.Element;
19
- export {};
1
+ import { HTMLAttributes } from 'react';
2
+ import { ColorType, SizeType } from '../../types';
3
+ export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** 現状の進捗 */
5
+ value: number;
6
+ /** 進捗の最大値 */
7
+ max: number;
8
+ /** バーのサイズ */
9
+ size?: SizeType;
10
+ /** sizeを使わないときの縦幅を指定する */
11
+ height?: string;
12
+ /**
13
+ * バーの色
14
+ * @default 'primary'
15
+ */
16
+ color?: ColorType;
17
+ }
18
+ export default function Progress({ value, max, color, ...rest }: ProgressProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
- import { SizeType } from '../../types';
2
- interface Props {
3
- size?: SizeType;
4
- full?: boolean;
5
- headerStyle?: any;
6
- bordered?: boolean;
7
- striped?: boolean;
8
- hover?: boolean;
9
- }
10
- declare const _default: import("styled-components").StyledComponent<"table", any, Props, never>;
11
- export default _default;
1
+ import { SizeType } from '../../types';
2
+ export interface Props {
3
+ size?: SizeType;
4
+ full?: boolean;
5
+ headerStyle?: any;
6
+ bordered?: boolean;
7
+ striped?: boolean;
8
+ hover?: boolean;
9
+ }
10
+ declare const _default: import("styled-components").StyledComponent<"table", any, Props, never>;
11
+ export default _default;
@@ -1,16 +1,15 @@
1
- import { HTMLAttributes } from 'react';
2
- import { ColorType } from '../../types';
3
- interface Props extends HTMLAttributes<HTMLDivElement> {
4
- /** タグの内容 */
5
- children: any;
6
- /** Xボタンの追加+クリック時のイベントハンドラー */
7
- onClose?: () => void;
8
- /** クリック時のイベントハンドラー */
9
- onClick?: () => void;
10
- /** 色の指定 */
11
- color?: ColorType;
12
- /** 丸くする */
13
- round?: boolean;
14
- }
15
- export default function Tag({ children, onClose, ...rest }: Props): JSX.Element;
16
- export {};
1
+ import { HTMLAttributes } from 'react';
2
+ import { ColorType } from '../../types';
3
+ export interface Props extends HTMLAttributes<HTMLDivElement> {
4
+ /** タグの内容 */
5
+ children: any;
6
+ /** Xボタンの追加+クリック時のイベントハンドラー */
7
+ onClose?: () => void;
8
+ /** クリック時のイベントハンドラー */
9
+ onClick?: () => void;
10
+ /** 色の指定 */
11
+ color?: ColorType;
12
+ /** 丸くする */
13
+ round?: boolean;
14
+ }
15
+ export default function Tag({ children, onClose, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,14 @@
1
- export { default as Container } from './Grid/Container';
2
- export { default as Row } from './Grid/Row';
3
- export { default as Col } from './Grid/Col';
4
- export { default as Content } from './Content';
5
- export { default as Placeholder } from './Placeholder';
6
- export * from './Content';
7
- export { default as Button } from './Button';
8
- export { default as TextButton } from './Button/TextButton';
9
- export { default as ButtonGroup } from './Button/ButtonGroup';
10
- export { default as Table } from './Table';
11
- export { default as Box } from './Box';
12
- export { default as Progress } from './Progress';
13
- export { default as Divider } from './Divider';
14
- export { default as Tag } from './Tag';
15
- export * from './Icons';
1
+ export { default as Container, type Props as ContainerProps } from './Grid/Container';
2
+ export { default as Row } from './Grid/Row';
3
+ export { default as Col, type ColProps } from './Grid/Col';
4
+ export { default as Content } from './Content';
5
+ export { default as Placeholder } from './Placeholder';
6
+ export { default as Button, type ButtonProps } from './Button';
7
+ export { default as TextButton, type Props as TextButtonProps } from './Button/TextButton';
8
+ export { default as ButtonGroup } from './Button/ButtonGroup';
9
+ export { default as Table, type Props as TableProps } from './Table';
10
+ export { default as Box, type Props as BoxProps } from './Box';
11
+ export { default as Progress, type ProgressProps } from './Progress';
12
+ export { default as Divider } from './Divider';
13
+ export { default as Tag, type Props as TagProps } from './Tag';
14
+ export * from './Icons';
@@ -1,8 +1,8 @@
1
- import React, { InputHTMLAttributes } from 'react';
2
- interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
- children?: any;
4
- checked?: boolean;
5
- indeterminate?: boolean;
6
- }
7
- declare const Checkbox: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement | null>>;
8
- export default Checkbox;
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ export interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
+ children?: any;
4
+ checked?: boolean;
5
+ indeterminate?: boolean;
6
+ }
7
+ declare const Checkbox: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement | null>>;
8
+ export default Checkbox;
@@ -1,8 +1,7 @@
1
- import { ReactNode, HTMLAttributes } from 'react';
2
- interface Props extends HTMLAttributes<HTMLDivElement> {
3
- label?: string;
4
- children: ReactNode;
5
- required?: boolean;
6
- }
7
- export default function Field({ label, children, required, ...rest }: Props): JSX.Element;
8
- export {};
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ export interface Props extends HTMLAttributes<HTMLDivElement> {
3
+ label?: string;
4
+ children: ReactNode;
5
+ required?: boolean;
6
+ }
7
+ export default function Field({ label, children, required, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- interface Props {
2
- help?: string;
3
- error?: string;
4
- noErrorMessage?: boolean;
5
- }
6
- export default function HelpMessage({ help, error, noErrorMessage }: Props): JSX.Element | null;
7
- export {};
1
+ interface Props {
2
+ help?: string;
3
+ error?: string;
4
+ noErrorMessage?: boolean;
5
+ }
6
+ export default function HelpMessage({ help, error, noErrorMessage }: Props): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -1,8 +1,8 @@
1
- import React, { InputHTMLAttributes } from 'react';
2
- interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
- value: string | number;
4
- children?: any;
5
- checked?: boolean;
6
- }
7
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
8
- export default _default;
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ export interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
+ value: string | number;
4
+ children?: any;
5
+ checked?: boolean;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
8
+ export default _default;
@@ -1,27 +1,27 @@
1
- import React, { SelectHTMLAttributes } from 'react';
2
- import { SizeType } from '../../types';
3
- declare type ItemType = {
4
- id: string | number;
5
- name: string;
6
- [key: string]: any;
7
- } | string;
8
- interface Props extends SelectHTMLAttributes<HTMLSelectElement> {
9
- placeholder?: string;
10
- /** { id: string | number, name: string, ...rest } | string */
11
- options: ItemType[];
12
- outline?: boolean;
13
- /** エラーの発生時の表示テキスト */
14
- error?: string | any;
15
- /** 捕捉テキスト */
16
- help?: string | any;
17
- /** selectのサイズ */
18
- inputSize?: SizeType;
19
- /** optionのカスタムrender */
20
- render?: (label: string) => any;
21
- /** placehoderを選択可能にする */
22
- optional?: boolean;
23
- /** エラーが発生しても、エラーメッセージを出さないようにする */
24
- noErrorMessage?: boolean;
25
- }
26
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
27
- export default _default;
1
+ import React, { SelectHTMLAttributes } from 'react';
2
+ import { SizeType } from '../../types';
3
+ type ItemType = {
4
+ id: string | number;
5
+ name: string;
6
+ [key: string]: any;
7
+ } | string;
8
+ export interface Props extends SelectHTMLAttributes<HTMLSelectElement> {
9
+ placeholder?: string;
10
+ /** { id: string | number, name: string, ...rest } | string */
11
+ options: ItemType[];
12
+ outline?: boolean;
13
+ /** エラーの発生時の表示テキスト */
14
+ error?: string | any;
15
+ /** 捕捉テキスト */
16
+ help?: string | any;
17
+ /** selectのサイズ */
18
+ inputSize?: SizeType;
19
+ /** optionのカスタムrender */
20
+ render?: (label: string) => any;
21
+ /** placehoderを選択可能にする */
22
+ optional?: boolean;
23
+ /** エラーが発生しても、エラーメッセージを出さないようにする */
24
+ noErrorMessage?: boolean;
25
+ }
26
+ declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
27
+ export default _default;
@@ -1,21 +1,21 @@
1
- import React, { InputHTMLAttributes } from 'react';
2
- interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
- /** trueの場合にON/OFFのラベルを表示します */
4
- showLabel?: boolean;
5
- /** ONの時に、色を指定します。 */
6
- background?: string;
7
- /** 丸の色を設定します。 */
8
- anchorColor?: string;
9
- /**
10
- * ONになるときのラベル
11
- * @default 'ON'
12
- */
13
- onLabel?: string;
14
- /**
15
- * OFFになるときのラベル
16
- * @default 'OFF'
17
- */
18
- offLabel?: string;
19
- }
20
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
21
- export default _default;
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ export interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
+ /** trueの場合にON/OFFのラベルを表示します */
4
+ showLabel?: boolean;
5
+ /** ONの時に、色を指定します。 */
6
+ background?: string;
7
+ /** 丸の色を設定します。 */
8
+ anchorColor?: string;
9
+ /**
10
+ * ONになるときのラベル
11
+ * @default 'ON'
12
+ */
13
+ onLabel?: string;
14
+ /**
15
+ * OFFになるときのラベル
16
+ * @default 'OFF'
17
+ */
18
+ offLabel?: string;
19
+ }
20
+ declare const Switch: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
21
+ export default Switch;
@@ -1,23 +1,22 @@
1
- import React, { InputHTMLAttributes } from 'react';
2
- interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
- placeholder?: string;
4
- /**
5
- * 'text' | 'number' | 'password' | 'email' | 'tel' | 'search'
6
- * @default 'text'
7
- */
8
- type?: 'text' | 'number' | 'password' | 'email' | 'tel' | 'search';
9
- /** エラーの発生時の表示テキスト */
10
- error?: string | any;
11
- /** 捕捉テキスト */
12
- help?: string | any;
13
- /** ボックス系のデザインでする */
14
- outline?: boolean;
15
- /** 左側のアイコン */
16
- leftIcon?: any;
17
- /** 右側のアイコン */
18
- rightIcon?: any;
19
- /** エラーが発生しても、エラーメッセージを出さないようにする */
20
- noErrorMessage?: boolean;
21
- }
22
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
23
- export default _default;
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ export interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
+ /**
4
+ * 'text' | 'number' | 'password' | 'email' | 'tel' | 'search'
5
+ * @default 'text'
6
+ */
7
+ type?: 'text' | 'number' | 'password' | 'email' | 'tel' | 'search';
8
+ /** エラーの発生時の表示テキスト */
9
+ error?: string;
10
+ /** 捕捉テキスト */
11
+ help?: string;
12
+ /** ボックス系のデザインでする */
13
+ outline?: boolean;
14
+ /** 左側のアイコン */
15
+ leftIcon?: React.ReactNode;
16
+ /** 右側のアイコン */
17
+ rightIcon?: React.ReactNode;
18
+ /** エラーが発生しても、エラーメッセージを出さないようにする */
19
+ noErrorMessage?: boolean;
20
+ }
21
+ declare const TextInput: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
22
+ export default TextInput;
@@ -1,11 +1,11 @@
1
- import React, { TextareaHTMLAttributes } from 'react';
2
- interface Props extends TextareaHTMLAttributes<HTMLTextAreaElement> {
3
- /** エラーの発生時の表示テキスト */
4
- error?: string | any;
5
- /** 捕捉テキスト */
6
- help?: string | any;
7
- /** エラーが発生しても、エラーメッセージを出さないようにする */
8
- noErrorMessage?: boolean;
9
- }
10
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
11
- export default _default;
1
+ import React, { TextareaHTMLAttributes } from 'react';
2
+ export interface Props extends TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ /** エラーの発生時の表示テキスト */
4
+ error?: string | any;
5
+ /** 捕捉テキスト */
6
+ help?: string | any;
7
+ /** エラーが発生しても、エラーメッセージを出さないようにする */
8
+ noErrorMessage?: boolean;
9
+ }
10
+ declare const Textarea: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLTextAreaElement>>;
11
+ export default Textarea;
@@ -1,7 +1,7 @@
1
- export { default as Field } from './Field';
2
- export { default as TextInput } from './TextInput';
3
- export { default as Textarea } from './Textarea';
4
- export { default as Checkbox } from './Checkbox';
5
- export { default as Select } from './Select';
6
- export { default as Radio } from './Radio';
7
- export { default as Switch } from './Switch';
1
+ export { default as Field, type Props as FieldProps } from './Field';
2
+ export { default as TextInput, type Props as TextInputProps } from './TextInput';
3
+ export { default as Textarea, type Props as TextareaProps } from './Textarea';
4
+ export { default as Checkbox, type Props as CheckboxProps } from './Checkbox';
5
+ export { default as Select, type Props as SelectProps } from './Select';
6
+ export { default as Radio, type Props as RadioProps } from './Radio';
7
+ export { default as Switch, type Props as SwitchProps } from './Switch';
@@ -1 +1 @@
1
- export default function useForceUpdate(): () => void;
1
+ export default function useForceUpdate(): () => void;
@@ -1,3 +1,3 @@
1
- import { useLayoutEffect } from 'react';
2
- declare const _default: typeof useLayoutEffect;
3
- export default _default;
1
+ import { useLayoutEffect } from 'react';
2
+ declare const _default: typeof useLayoutEffect;
3
+ export default _default;
@@ -1 +1 @@
1
- export default function useScrollFix(show?: boolean): void;
1
+ export default function useScrollFix(show?: boolean): void;