ingred-ui 9.1.0 → 9.3.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.
Files changed (32) hide show
  1. package/dist/components/Select/internal/ClearIndicator/ClearIndicator.d.ts +1 -0
  2. package/dist/components/Select/internal/DropdownIndicator/DropdownIndicator.d.ts +1 -0
  3. package/dist/components/Select/internal/MultiValueRemove/MultiValueRemove.d.ts +1 -0
  4. package/dist/components/Tabs/Tabs.d.ts +15 -0
  5. package/dist/components/Tabs/Tabs.stories.d.ts +28 -0
  6. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  7. package/dist/components/Tabs/index.d.ts +1 -0
  8. package/dist/components/Tabs/internal/Tab.d.ts +12 -0
  9. package/dist/components/Tabs/styled.d.ts +11 -0
  10. package/dist/components/Toast/DefaultToast/DefaultToast.d.ts +1 -1
  11. package/dist/components/Toast/Toast.d.ts +9 -3
  12. package/dist/components/Toast/ToastProvider/ToastProvider.d.ts +1 -1
  13. package/dist/components/Toast/ToastProvider/internal/ToastContainer/ToastContainer.d.ts +1 -1
  14. package/dist/components/Toast/ToastProvider/internal/ToastContainer/styled.d.ts +1 -1
  15. package/dist/components/index.d.ts +2 -0
  16. package/dist/constants/locale.d.ts +7 -1
  17. package/dist/index.es.js +2604 -5544
  18. package/dist/index.es.js.map +1 -1
  19. package/dist/index.js +2602 -5541
  20. package/dist/index.js.map +1 -1
  21. package/dist/lib/react-toast-notification/src/ToastContainer.d.ts +8 -0
  22. package/dist/lib/react-toast-notification/src/ToastController.d.ts +31 -0
  23. package/dist/lib/react-toast-notification/src/ToastElement.d.ts +54 -0
  24. package/dist/lib/react-toast-notification/src/ToastProvider.d.ts +60 -0
  25. package/dist/lib/react-toast-notification/src/colors.d.ts +81 -0
  26. package/dist/lib/react-toast-notification/src/icons.d.ts +6 -0
  27. package/dist/lib/react-toast-notification/src/index.d.ts +6 -0
  28. package/dist/lib/react-toast-notification/src/styled.d.ts +34 -0
  29. package/dist/lib/react-toast-notification/src/types.d.ts +22 -0
  30. package/dist/lib/react-toast-notification/src/utils.d.ts +2 -0
  31. package/dist/utils/renderWithThemeProvider.d.ts +1 -0
  32. package/package.json +22 -24
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ClearIndicatorProps, GroupBase } from "react-select";
2
3
  import { OptionType } from "../../";
3
4
  declare const ClearIndicator: <T>(props: ClearIndicatorProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DropdownIndicator: ({ isDisabled, error, ...rest }: any) => JSX.Element;
2
3
  export { DropdownIndicator };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupBase } from "react-select";
2
3
  import { OptionType } from "../../";
3
4
  import { MultiValueRemoveProps } from "react-select/dist/declarations/src/components/MultiValue";
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ declare type TabsProps<T> = {
3
+ data: {
4
+ text: string;
5
+ count?: number;
6
+ value: T;
7
+ }[];
8
+ value: T;
9
+ withBadge?: boolean;
10
+ onChange?: (value: T) => void;
11
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
12
+ };
13
+ declare const Tabs: <T>(props: TabsProps<T>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<TabsProps<T>, string | React.JSXElementConstructor<any>>;
14
+ declare const _default: <T>(props: TabsProps<T>, ref: React.ForwardedRef<HTMLDivElement>) => ReturnType<typeof Tabs>;
15
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: <T>(props: {
5
+ data: {
6
+ text: string;
7
+ count?: number | undefined;
8
+ value: T;
9
+ }[];
10
+ value: T;
11
+ withBadge?: boolean | undefined;
12
+ onChange?: ((value: T) => void) | undefined;
13
+ onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
14
+ }, ref: React.ForwardedRef<HTMLDivElement>) => React.ReactElement<{
15
+ data: {
16
+ text: string;
17
+ count?: number | undefined;
18
+ value: unknown;
19
+ }[];
20
+ value: unknown;
21
+ withBadge?: boolean | undefined;
22
+ onChange?: ((value: unknown) => void) | undefined;
23
+ onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
24
+ }, string | React.JSXElementConstructor<any>>;
25
+ };
26
+ export default _default;
27
+ export declare const Example: () => JSX.Element;
28
+ export declare const WithBadge: () => JSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom/extend-expect";
@@ -0,0 +1 @@
1
+ export { default } from "./Tabs";
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ declare type TabProps = {
3
+ text: string;
4
+ count?: number;
5
+ value: any;
6
+ selected: boolean;
7
+ withBadge: boolean;
8
+ onChange?: (value: any) => void;
9
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
10
+ };
11
+ export declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare type ButtonProps = {
3
+ selected: boolean;
4
+ };
5
+ export declare const ChildContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const ChildrenContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ButtonProps, never>;
8
+ export declare const Text: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, ButtonProps, never>;
9
+ export declare const Indicator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const Border: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { ToastProps } from "react-toast-notifications";
2
+ import { ToastProps } from "../../../lib/react-toast-notification/src/ToastElement";
3
3
  declare type Props = {} & ToastProps;
4
4
  declare const DefaultToast: React.FunctionComponent<Props>;
5
5
  export default DefaultToast;
@@ -1,9 +1,15 @@
1
1
  import React from "react";
2
- import { useToasts, ToastProps as DefaultToastProps } from "react-toast-notifications";
2
+ import { ToastProps as DefaultToastProps } from "../../lib/react-toast-notification/src";
3
3
  export declare type ToastProps = DefaultToastProps;
4
4
  declare const Toast: {
5
5
  (props: Partial<ToastProps>): JSX.Element;
6
- Provider: React.FunctionComponent<import("react-toast-notifications").ToastProviderProps>;
7
- useToasts: typeof useToasts;
6
+ Provider: React.FunctionComponent<import("../../lib/react-toast-notification/src").ToastProviderProps>;
7
+ useToasts: () => {
8
+ addToast: import("../../lib/react-toast-notification/src/types").AddFn;
9
+ removeToast: import("../../lib/react-toast-notification/src/types").RemoveFn;
10
+ removeAllToasts: () => void;
11
+ updateToast: import("../../lib/react-toast-notification/src/types").UpdateFn;
12
+ toastStack: import("../../lib/react-toast-notification/src/types").ToastType[];
13
+ };
8
14
  };
9
15
  export default Toast;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { ToastProviderProps as DefaultToastProviderProps } from "react-toast-notifications";
2
+ import { ToastProviderProps as DefaultToastProviderProps } from "../../../lib/react-toast-notification/src";
3
3
  export declare type ToastProviderProps = DefaultToastProviderProps;
4
4
  declare const ToastProvider: React.FunctionComponent<ToastProviderProps>;
5
5
  export default ToastProvider;
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
- import { ToastContainerProps } from "react-toast-notifications";
2
+ import { ToastContainerProps } from "../../../../../lib/react-toast-notification/src";
3
3
  declare const ToastContainer: React.FunctionComponent<ToastContainerProps>;
4
4
  export default ToastContainer;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const ToastContainer: import("styled-components").StyledComponent<import("react").ComponentType<import("react-toast-notifications").ToastContainerProps>, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const ToastContainer: import("styled-components").StyledComponent<({ hasToasts, placement, ...props }: import("../../../../../lib/react-toast-notification/src").ToastContainerProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -88,6 +88,8 @@ export { default as SplitAnnotation } from "./SplitAnnotation";
88
88
  export * from "./SplitAnnotation";
89
89
  export { default as Switch } from "./Switch";
90
90
  export * from "./Switch";
91
+ export { default as Tabs } from "./Tabs";
92
+ export * from "./Tabs";
91
93
  export { default as Table } from "./Table";
92
94
  export * from "./Table";
93
95
  export { default as TextField } from "./TextField";
@@ -1,4 +1,4 @@
1
- import { ConfirmModalProps, FileUploaderProps, ItemEmptyProps, MultipleFilterProps, ToggleButtonProps } from "..";
1
+ import { ConfirmModalProps, FileUploaderProps, ItemEmptyProps, MultipleFilterProps, ToggleButtonProps, DatePickerProps, DateRangePickerProps } from "..";
2
2
  import { SelectProps } from "../components";
3
3
  import { CreatableSelectProps } from "../components/CreatableSelect";
4
4
  import { EditFilterCardProps } from "../components/MultipleFilter/internal/EditFilterCard/EditFilterCard";
@@ -32,6 +32,12 @@ export interface Localization {
32
32
  EditFilterCard?: {
33
33
  defaultProps: Pick<EditFilterCardProps, "editButtonTitle" | "inputErrorText" | "formPlaceholder" | "sectionTitle" | "conditionTitle">;
34
34
  };
35
+ DatePicker?: {
36
+ defaultProps: Pick<DatePickerProps, "displayFormat" | "monthFormat">;
37
+ };
38
+ DateRangePicker?: {
39
+ defaultProps: Pick<DateRangePickerProps, "displayFormat" | "monthFormat">;
40
+ };
35
41
  };
36
42
  }
37
43
  export declare const jaJP: Localization;