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 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
- yarn update-holidays
79
+ pnpm run update-holidays
65
80
  ```
66
81
 
67
82
  詳細な情報については、[scripts/holiday/README.md](./scripts/holiday/README.md) を参照してください。
@@ -1,4 +1,4 @@
1
- import { Property } from "csstype";
1
+ import type { Property } from "csstype";
2
2
  import { FlexProps } from "../Flex/Flex";
3
3
  import { SpacerProps } from "../../utils/spacer";
4
4
  export type CardProps = SpacerProps & FlexProps & {
@@ -1,2 +1,3 @@
1
- export { default } from "./Card";
1
+ import Card from "./Card";
2
+ export default Card;
2
3
  export type { CardProps } from "./Card";
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { Property } from "csstype";
2
+ import type { Property } from "csstype";
3
3
  export type FileUploaderProps = {
4
4
  description?: string;
5
5
  title?: string;
@@ -1,4 +1,4 @@
1
- import { Property } from "csstype";
1
+ import type { Property } from "csstype";
2
2
  type TLengthStyledSystem = string | 0 | number;
3
3
  export type FlexProps = {
4
4
  display?: "flex" | "inline-flex";
@@ -1,2 +1,3 @@
1
- export { default } from "./Flex";
1
+ import Flex from "./Flex";
2
+ export default Flex;
2
3
  export type { FlexProps } from "./Flex";
@@ -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,5 +1,5 @@
1
1
  import React from "react";
2
- import { Property } from "csstype";
2
+ import type { Property } from "csstype";
3
3
  import { Theme } from "../../themes";
4
4
  import { IconName } from "../Icon";
5
5
  export type ContentType = "default" | "warning" | "disabled";
@@ -1,4 +1,4 @@
1
- import { Placement } from "@floating-ui/core";
1
+ import type { Placement } from "@floating-ui/react";
2
2
  import * as React from "react";
3
3
  import { ModalProps } from "../Modal";
4
4
  import { AutoPlacement } from "../../hooks/usePlacement";
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { Property } from "csstype";
2
+ import type { Property } from "csstype";
3
3
  export type ScrollAreaProps = React.ComponentPropsWithoutRef<"div"> & {
4
4
  height?: Property.Height;
5
5
  maxHeight?: Property.MaxHeight;
@@ -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 ReactSelectMenuList: any;
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
- export { default } from "./Spacer";
1
+ import Spacer from "./Spacer";
2
+ export default Spacer;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { Property } from "csstype";
2
+ import type { Property } from "csstype";
3
3
  export type SpinnerProps = {
4
4
  width?: Property.Width;
5
5
  };
@@ -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/core";
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/core";
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"> & {