ingred-ui 31.0.0 → 31.0.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/README.md +16 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/FileUploader/FileUploader.d.ts +1 -1
- package/dist/components/Flex/Flex.d.ts +1 -1
- package/dist/components/Flex/index.d.ts +2 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/MenuList/MenuList.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/styled.d.ts +1 -1
- package/dist/components/Spacer/index.d.ts +2 -1
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/index.es.js +412 -412
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +412 -412
- package/dist/index.js.map +1 -1
- package/dist/utils/scrollbar.d.ts +1 -1
- package/package.json +33 -46
- package/dist/utils/renderWithThemeProvider.d.ts +0 -2
package/README.md
CHANGED
|
@@ -55,13 +55,28 @@ Storybook: https://ingred-ui.netlify.app/
|
|
|
55
55
|
|
|
56
56
|
## Development
|
|
57
57
|
|
|
58
|
+
このリポジトリでは [pnpm](https://pnpm.io/) を使います(`package.json` の `packageManager` フィールド参照)。Node.js 20 以上を推奨します。
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# 初回・依存更新後
|
|
62
|
+
pnpm install
|
|
63
|
+
|
|
64
|
+
# よく使うコマンド
|
|
65
|
+
pnpm run lint
|
|
66
|
+
pnpm run test
|
|
67
|
+
pnpm run storybook
|
|
68
|
+
pnpm run build-storybook
|
|
69
|
+
pnpm run build
|
|
70
|
+
pnpm run format
|
|
71
|
+
```
|
|
72
|
+
|
|
58
73
|
### 祝日データの更新
|
|
59
74
|
|
|
60
75
|
カレンダーコンポーネントで使用される日本の祝日データは、内閣府が公開しているCSVファイルから自動的に更新されます。
|
|
61
76
|
|
|
62
77
|
```bash
|
|
63
78
|
# 手動で祝日データを更新
|
|
64
|
-
|
|
79
|
+
pnpm run update-holidays
|
|
65
80
|
```
|
|
66
81
|
|
|
67
82
|
詳細な情報については、[scripts/holiday/README.md](./scripts/holiday/README.md) を参照してください。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Property } from "csstype";
|
|
2
|
+
import type { Property } from "csstype";
|
|
3
3
|
import { InputSize, InputVariant } from "./types";
|
|
4
4
|
export type InputProps = (React.ComponentPropsWithoutRef<"input"> | React.ComponentPropsWithoutRef<"textarea">) & {
|
|
5
5
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Props as ReactSelectProps, StylesConfig } from "react-select";
|
|
2
|
+
import { Props as ReactSelectProps, StylesConfig, type MenuListProps } from "react-select";
|
|
3
3
|
import { Theme } from "../../themes";
|
|
4
4
|
export declare const getOverrideStyles: <OptionValue>(theme: Theme, error: boolean) => StylesConfig<OptionType<OptionValue>, boolean>;
|
|
5
5
|
export type OptionType<T = string> = {
|
|
6
6
|
label: string;
|
|
7
7
|
value: T;
|
|
8
8
|
};
|
|
9
|
+
export declare const ReactSelectMenuList: ({ children, innerRef, innerProps, maxHeight, }: MenuListProps<OptionType<any>, boolean>) => JSX.Element;
|
|
9
10
|
/**
|
|
10
11
|
* @deprecated このコンポーネントは非推奨です。代わりに `Select2` を使用してください。
|
|
11
12
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const MenuListInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import Spacer from "./Spacer";
|
|
2
|
+
export default Spacer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IconName } from "../Icon/Icon";
|
|
3
3
|
import { SwitchSize, SwitchVariant } from "./types";
|
|
4
|
-
import { Placement } from "@floating-ui/
|
|
4
|
+
import type { Placement } from "@floating-ui/react";
|
|
5
5
|
type Case = {
|
|
6
6
|
name: string;
|
|
7
7
|
value?: string | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Placement } from "@floating-ui/
|
|
2
|
+
import type { Placement } from "@floating-ui/react";
|
|
3
3
|
import { CSSTransitionProps } from "../../utils/reactTransitionGroup";
|
|
4
4
|
import { AutoPlacement } from "../../hooks/usePlacement";
|
|
5
5
|
export type TooltipProps = Omit<React.ComponentPropsWithoutRef<"div">, "content"> & {
|