ingred-ui 27.0.1 → 27.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/dist/components/FullSizeConfirmModal/FullSizeConfirmModal.stories.d.ts +54 -54
- package/dist/components/Menu/Menu.stories.d.ts +18 -18
- package/dist/components/MenuList/MenuList.stories.d.ts +18 -18
- package/dist/components/Select/internal/MultiValueRemove/MultiValueRemove.d.ts +1 -2
- package/dist/components/Snackbar/Snackbar.stories.d.ts +27 -27
- package/dist/components/Toast/Toast.stories.d.ts +36 -36
- package/dist/index.es.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +13 -8
- package/dist/components/CreatableSelect/CreatableSelect.d.ts +0 -22
- package/dist/components/CreatableSelect/CreatableSelect.stories.d.ts +0 -19
- package/dist/components/Select/Select.d.ts +0 -24
- package/dist/components/Select/Select.stories.d.ts +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ingred-ui",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "CARTA HOLDINGS, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,9 +56,10 @@
|
|
|
56
56
|
"@rollup/plugin-terser": "0.4.3",
|
|
57
57
|
"@rollup/plugin-typescript": "11.1.1",
|
|
58
58
|
"@rollup/plugin-url": "8.0.1",
|
|
59
|
-
"@storybook/addon-docs": "
|
|
60
|
-
"@storybook/addon-links": "
|
|
61
|
-
"@storybook/
|
|
59
|
+
"@storybook/addon-docs": "10.3.3",
|
|
60
|
+
"@storybook/addon-links": "10.3.3",
|
|
61
|
+
"@storybook/addon-vitest": "10.3.3",
|
|
62
|
+
"@storybook/react-vite": "10.3.3",
|
|
62
63
|
"@testing-library/jest-dom": "6.1.3",
|
|
63
64
|
"@testing-library/react": "14.1.2",
|
|
64
65
|
"@types/jest": "29.5.1",
|
|
@@ -67,9 +68,9 @@
|
|
|
67
68
|
"@types/react-transition-group": "4.4.4",
|
|
68
69
|
"@types/rollup-plugin-peer-deps-external": "2.2.1",
|
|
69
70
|
"@types/styled-components": "5.1.25",
|
|
70
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
71
71
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
72
72
|
"@typescript-eslint/parser": "7.18.0",
|
|
73
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
73
74
|
"cross-env": "7.0.3",
|
|
74
75
|
"eslint": "8.57.1",
|
|
75
76
|
"eslint-config-prettier": "9.1.0",
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
79
80
|
"eslint-plugin-react": "7.33.2",
|
|
80
81
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
81
|
-
"eslint-plugin-storybook": "
|
|
82
|
+
"eslint-plugin-storybook": "10.3.3",
|
|
82
83
|
"jest": "29.5.0",
|
|
83
84
|
"jest-environment-jsdom": "29.7.0",
|
|
84
85
|
"prettier": "3.0.0",
|
|
@@ -88,11 +89,15 @@
|
|
|
88
89
|
"rollup-plugin-imagemin": "0.5.0",
|
|
89
90
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
90
91
|
"scaffdog": "4.1.0",
|
|
91
|
-
"storybook": "
|
|
92
|
+
"storybook": "10.3.3",
|
|
92
93
|
"styled-components": "5.3.5",
|
|
93
94
|
"ts-jest": "29.1.0",
|
|
94
95
|
"typescript": "5.2.2",
|
|
95
|
-
"vite": "5.4.21"
|
|
96
|
+
"vite": "5.4.21",
|
|
97
|
+
"vitest": "^4.1.2",
|
|
98
|
+
"playwright": "^1.58.2",
|
|
99
|
+
"@vitest/browser-playwright": "^4.1.2",
|
|
100
|
+
"@vitest/coverage-v8": "^4.1.2"
|
|
96
101
|
},
|
|
97
102
|
"files": [
|
|
98
103
|
"dist",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { CreatableProps } from "react-select/creatable";
|
|
3
|
-
import { GroupBase } from "react-select/dist/declarations/src/types";
|
|
4
|
-
import { OptionType } from "../Select";
|
|
5
|
-
export type CreatableSelectProps<T> = {
|
|
6
|
-
minWidth?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
emptyMessage?: string;
|
|
10
|
-
addMessage?: string;
|
|
11
|
-
} & CreatableProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>;
|
|
12
|
-
declare const CreatableSelect: <T>(inProps: CreatableSelectProps<T>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<CreatableSelectProps<T>, string | React.JSXElementConstructor<any>>;
|
|
13
|
-
declare const _default: <T>(props: {
|
|
14
|
-
minWidth?: string | undefined;
|
|
15
|
-
placeholder?: string | undefined;
|
|
16
|
-
error?: boolean | undefined;
|
|
17
|
-
emptyMessage?: string | undefined;
|
|
18
|
-
addMessage?: string | undefined;
|
|
19
|
-
} & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<OptionType<T>, GroupBase<OptionType<T>>> & {
|
|
20
|
-
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
21
|
-
}) => ReturnType<typeof CreatableSelect>;
|
|
22
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: <T>(props: {
|
|
5
|
-
minWidth?: string | undefined;
|
|
6
|
-
placeholder?: string | undefined;
|
|
7
|
-
error?: boolean | undefined;
|
|
8
|
-
emptyMessage?: string | undefined;
|
|
9
|
-
addMessage?: string | undefined;
|
|
10
|
-
} & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<import("..").OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> & {
|
|
11
|
-
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
12
|
-
}) => React.ReactElement<import("./CreatableSelect").CreatableSelectProps<unknown>, string | React.JSXElementConstructor<any>>;
|
|
13
|
-
source: {
|
|
14
|
-
language: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
export declare const Example: () => JSX.Element;
|
|
19
|
-
export declare const MultipleSelect: () => JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Props as ReactSelectProps, StylesConfig } from "react-select";
|
|
3
|
-
import { Theme } from "../../themes";
|
|
4
|
-
export declare const getOverrideStyles: <OptionValue>(theme: Theme, error: boolean) => StylesConfig<OptionType<OptionValue>, boolean>;
|
|
5
|
-
export type OptionType<T = string> = {
|
|
6
|
-
label: string;
|
|
7
|
-
value: T;
|
|
8
|
-
};
|
|
9
|
-
export type SelectProps<OptionValue, IsMulti extends boolean> = {
|
|
10
|
-
minWidth?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
emptyMessage?: string;
|
|
14
|
-
} & ReactSelectProps<OptionType<OptionValue>, IsMulti>;
|
|
15
|
-
declare const Select: <OptionValue, IsMulti extends boolean>(inProps: SelectProps<OptionValue, IsMulti>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<SelectProps<OptionValue, IsMulti>, string | React.JSXElementConstructor<any>>;
|
|
16
|
-
declare const _default: <OptionValue, IsMulti extends boolean = false>(props: {
|
|
17
|
-
minWidth?: string | undefined;
|
|
18
|
-
placeholder?: string | undefined;
|
|
19
|
-
error?: boolean | undefined;
|
|
20
|
-
emptyMessage?: string | undefined;
|
|
21
|
-
} & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<OptionValue>> & {
|
|
22
|
-
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
23
|
-
}) => ReturnType<typeof Select>;
|
|
24
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import { OptionType } from "./Select";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: <OptionValue, IsMulti extends boolean = false>(props: {
|
|
7
|
-
minWidth?: string | undefined;
|
|
8
|
-
placeholder?: string | undefined;
|
|
9
|
-
error?: boolean | undefined;
|
|
10
|
-
emptyMessage?: string | undefined;
|
|
11
|
-
} & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<OptionValue>> & {
|
|
12
|
-
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
13
|
-
}) => React.ReactElement<import("./Select").SelectProps<unknown, boolean>, string | React.JSXElementConstructor<any>>;
|
|
14
|
-
parameters: {
|
|
15
|
-
docs: {
|
|
16
|
-
description: {
|
|
17
|
-
component: string;
|
|
18
|
-
};
|
|
19
|
-
source: {
|
|
20
|
-
language: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
26
|
-
export declare const Example: StoryObj;
|
|
27
|
-
export declare const MultipleSelect: StoryObj;
|
|
28
|
-
export declare const WithAsyncSearch: StoryObj;
|
|
29
|
-
export declare const DesignSamples: StoryObj;
|