ingred-ui 21.1.0 → 21.2.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.
@@ -25,6 +25,10 @@ type ContextMenu2Props = {
25
25
  * コンテキストメニューの幅(省略時は幅が内容にフィットする)
26
26
  */
27
27
  width?: number;
28
+ /**
29
+ * コンテキストメニューの最小幅
30
+ */
31
+ minWidth?: number;
28
32
  /**
29
33
  * メニュー内の項目。ContextMenu2*** のコンポーネントのみで構成する前提
30
34
  */
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  ref?: React.Ref<HTMLButtonElement> | undefined;
10
10
  }, "button">;
11
11
  width?: number | undefined;
12
+ minWidth?: number | undefined;
12
13
  children: React.ReactNode;
13
14
  onOpenChange?: ((open: boolean) => void) | undefined;
14
15
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -3,6 +3,7 @@ type Theme = {
3
3
  colors?: "danger" | undefined;
4
4
  };
5
5
  export declare const ContextMenu2ButtonItem: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
6
+ pressed?: boolean | undefined;
6
7
  prepend?: ReactNode;
7
8
  children: ReactNode;
8
9
  closeOnClick?: boolean | undefined;
@@ -0,0 +1,15 @@
1
+ import React, { type ReactElement, type ReactNode } from "react";
2
+ export declare const FilterInputContext: React.Context<{
3
+ isSmall: boolean;
4
+ }>;
5
+ type FilterInputAbstractProps = {
6
+ selectedIndex: number;
7
+ selectOptions: {
8
+ icon: ReactElement;
9
+ label: string;
10
+ }[];
11
+ children?: ReactNode;
12
+ onSelectChange: (index: number) => void;
13
+ };
14
+ export declare const FilterInputAbstract: ({ selectedIndex, selectOptions, onSelectChange, children, }: FilterInputAbstractProps) => JSX.Element;
15
+ export {};
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { StoryObj } from "@storybook/react";
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ selectedIndex, selectOptions, onSelectChange, children, }: {
6
+ selectedIndex: number;
7
+ selectOptions: {
8
+ icon: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
9
+ label: string;
10
+ }[];
11
+ children?: React.ReactNode;
12
+ onSelectChange: (index: number) => void;
13
+ }) => JSX.Element;
14
+ argTypes: {};
15
+ };
16
+ export default meta;
17
+ /**
18
+ * Internal use only!
19
+ * このコンポーネントは内部利用専用です。プロダクトには利用しないでください。
20
+ */
21
+ export declare const Default: StoryObj<typeof meta>;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,2 @@
1
+ export declare const FilterInputAbstract: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const DropDownTrigger: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,14 @@
1
+ import { type ReactElement } from "react";
2
+ type FilterTagInputProps = {
3
+ value: string;
4
+ values: string[];
5
+ selectedIndex: number;
6
+ selectOptions: {
7
+ icon: ReactElement;
8
+ label: string;
9
+ }[];
10
+ onChange: (value: string) => void;
11
+ onSelectChange: (index: number) => void;
12
+ };
13
+ export declare const FilterSelectInput: ({ value, values, selectedIndex, selectOptions, onChange, onSelectChange, }: FilterTagInputProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { StoryObj } from "@storybook/react";
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ value, values, selectedIndex, selectOptions, onChange, onSelectChange, }: {
6
+ value: string;
7
+ values: string[];
8
+ selectedIndex: number;
9
+ selectOptions: {
10
+ icon: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
11
+ label: string;
12
+ }[];
13
+ onChange: (value: string) => void;
14
+ onSelectChange: (index: number) => void;
15
+ }) => JSX.Element;
16
+ argTypes: {};
17
+ };
18
+ export default meta;
19
+ /**
20
+ * 入力内容をリストから選択させるフィルターの入力です。
21
+ * 利用方法は、FilterTagInput の story 内の説明を参照してください。
22
+ *
23
+ * 自動で横 100% に広がります。必要に応じて、親要素の幅を指定してください。
24
+ */
25
+ export declare const Default: StoryObj<typeof meta>;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1 @@
1
+ export { FilterSelectInput } from "./FilterSelectInput";
@@ -0,0 +1,4 @@
1
+ export declare const SelectContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Select: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const SelectLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SelectIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const FilterTagInput: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const DropDownTrigger: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
4
2
  export declare const InlineField: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
3
  export declare const InlineFieldInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
4
  export declare const OverflowIndicator: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;