@maxhub/max-ui 0.4.0 → 0.6.0
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/Avatar/parts/AvatarOnlineDot/AvatarOnlineDot.d.ts.map +1 -1
- package/dist/components/CellAction/CellAction.d.ts +2 -0
- package/dist/components/CellAction/CellAction.d.ts.map +1 -1
- package/dist/components/CellAction/index.d.ts +1 -1
- package/dist/components/CellAction/index.d.ts.map +1 -1
- package/dist/components/CellInput/CellInput.d.ts +2 -0
- package/dist/components/CellInput/CellInput.d.ts.map +1 -1
- package/dist/components/CellInput/index.d.ts +1 -1
- package/dist/components/CellInput/index.d.ts.map +1 -1
- package/dist/components/CellSimple/CellSimple.d.ts +2 -0
- package/dist/components/CellSimple/CellSimple.d.ts.map +1 -1
- package/dist/components/CellSimple/index.d.ts +1 -1
- package/dist/components/CellSimple/index.d.ts.map +1 -1
- package/dist/components/ClearableInput/ClearableInput.d.ts +9 -0
- package/dist/components/ClearableInput/ClearableInput.d.ts.map +1 -0
- package/dist/components/ClearableInput/index.d.ts +2 -0
- package/dist/components/ClearableInput/index.d.ts.map +1 -0
- package/dist/components/Container/Container.d.ts +7 -0
- package/dist/components/Container/Container.d.ts.map +1 -0
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +9 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/components/ContextMenu/context.d.ts +12 -0
- package/dist/components/ContextMenu/context.d.ts.map +1 -0
- package/dist/components/ContextMenu/helpers.d.ts +20 -0
- package/dist/components/ContextMenu/helpers.d.ts.map +1 -0
- package/dist/components/ContextMenu/index.d.ts +3 -0
- package/dist/components/ContextMenu/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuActionBar/ContextMenuActionBar.d.ts +9 -0
- package/dist/components/ContextMenu/parts/ContextMenuActionBar/ContextMenuActionBar.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuActionBar/index.d.ts +2 -0
- package/dist/components/ContextMenu/parts/ContextMenuActionBar/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuContent/ContextMenuContent.d.ts +4 -0
- package/dist/components/ContextMenu/parts/ContextMenuContent/ContextMenuContent.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuContent/index.d.ts +2 -0
- package/dist/components/ContextMenu/parts/ContextMenuContent/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuDivider/ContextMenuDivider.d.ts +7 -0
- package/dist/components/ContextMenu/parts/ContextMenuDivider/ContextMenuDivider.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuDivider/index.d.ts +2 -0
- package/dist/components/ContextMenu/parts/ContextMenuDivider/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuList/ContextMenuList.d.ts +11 -0
- package/dist/components/ContextMenu/parts/ContextMenuList/ContextMenuList.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuList/index.d.ts +2 -0
- package/dist/components/ContextMenu/parts/ContextMenuList/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuRow/ContextMenuRow.d.ts +13 -0
- package/dist/components/ContextMenu/parts/ContextMenuRow/ContextMenuRow.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuRow/index.d.ts +2 -0
- package/dist/components/ContextMenu/parts/ContextMenuRow/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuSubmenu/ContextMenuSubmenu.d.ts +19 -0
- package/dist/components/ContextMenu/parts/ContextMenuSubmenu/ContextMenuSubmenu.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/ContextMenuSubmenu/index.d.ts +2 -0
- package/dist/components/ContextMenu/parts/ContextMenuSubmenu/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/parts/index.d.ts +7 -0
- package/dist/components/ContextMenu/parts/index.d.ts.map +1 -0
- package/dist/components/ContextMenu/types.d.ts +77 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +0 -3
- package/dist/components/Dot/Dot.d.ts.map +1 -1
- package/dist/components/EllipsisText/EllipsisText.d.ts +14 -0
- package/dist/components/EllipsisText/EllipsisText.d.ts.map +1 -0
- package/dist/components/EllipsisText/index.d.ts +2 -0
- package/dist/components/EllipsisText/index.d.ts.map +1 -0
- package/dist/components/Flex/Flex.d.ts +19 -0
- package/dist/components/Flex/Flex.d.ts.map +1 -0
- package/dist/components/Flex/index.d.ts +2 -0
- package/dist/components/Flex/index.d.ts.map +1 -0
- package/dist/components/Grid/Grid.d.ts +17 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/Panel/Panel.d.ts +9 -0
- package/dist/components/Panel/Panel.d.ts.map +1 -0
- package/dist/components/Panel/index.d.ts +2 -0
- package/dist/components/Panel/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +5 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/Ripple/Ripple.d.ts +5 -0
- package/dist/components/Ripple/Ripple.d.ts.map +1 -0
- package/dist/components/Ripple/index.d.ts +2 -0
- package/dist/components/Ripple/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +8 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/Segmented/Segmented.d.ts +14 -0
- package/dist/components/Segmented/Segmented.d.ts.map +1 -0
- package/dist/components/Segmented/index.d.ts +2 -0
- package/dist/components/Segmented/index.d.ts.map +1 -0
- package/dist/components/Snackbar/SnackbarContainer.d.ts +8 -0
- package/dist/components/Snackbar/SnackbarContainer.d.ts.map +1 -0
- package/dist/components/Snackbar/SnackbarItem.d.ts +7 -0
- package/dist/components/Snackbar/SnackbarItem.d.ts.map +1 -0
- package/dist/components/Snackbar/SnackbarProvider.d.ts +10 -0
- package/dist/components/Snackbar/SnackbarProvider.d.ts.map +1 -0
- package/dist/components/Snackbar/context.d.ts +3 -0
- package/dist/components/Snackbar/context.d.ts.map +1 -0
- package/dist/components/Snackbar/index.d.ts +5 -0
- package/dist/components/Snackbar/index.d.ts.map +1 -0
- package/dist/components/Snackbar/types.d.ts +38 -0
- package/dist/components/Snackbar/types.d.ts.map +1 -0
- package/dist/components/SvgButton/SvgButton.d.ts +6 -0
- package/dist/components/SvgButton/SvgButton.d.ts.map +1 -0
- package/dist/components/SvgButton/index.d.ts +2 -0
- package/dist/components/SvgButton/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +16 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tappable/Tappable.d.ts +13 -0
- package/dist/components/Tappable/Tappable.d.ts.map +1 -0
- package/dist/components/Tappable/helpers.d.ts +11 -0
- package/dist/components/Tappable/helpers.d.ts.map +1 -0
- package/dist/components/Tappable/index.d.ts +2 -0
- package/dist/components/Tappable/index.d.ts.map +1 -0
- package/dist/components/ToolButton/ToolButton.d.ts +0 -3
- package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/compositions/Profile/Profile.d.ts +6 -0
- package/dist/compositions/Profile/Profile.d.ts.map +1 -0
- package/dist/compositions/Profile/index.d.ts +2 -0
- package/dist/compositions/Profile/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-snackbar.d.ts +2 -0
- package/dist/hooks/use-snackbar.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/Button/Button.d.ts.map +1 -1
- package/dist/src/components/Button/helpers.d.ts.map +1 -1
- package/dist/src/components/CellAction/CellAction.d.ts +1 -1
- package/dist/src/components/CellAction/CellAction.d.ts.map +1 -1
- package/dist/src/components/CellSimple/CellSimple.d.ts +0 -2
- package/dist/src/components/CellSimple/CellSimple.d.ts.map +1 -1
- package/dist/src/components/CellSimple/index.d.ts +1 -1
- package/dist/src/components/CellSimple/index.d.ts.map +1 -1
- package/dist/src/components/Dot/Dot.d.ts +10 -0
- package/dist/src/components/Dot/Dot.d.ts.map +1 -0
- package/dist/src/components/Dot/index.d.ts +2 -0
- package/dist/src/components/Dot/index.d.ts.map +1 -0
- package/dist/src/components/IconButton/helpers.d.ts.map +1 -1
- package/dist/src/components/Switch/Switch.d.ts +3 -0
- package/dist/src/components/Switch/Switch.d.ts.map +1 -1
- package/dist/src/components/ToolButton/ToolButton.d.ts +14 -0
- package/dist/src/components/ToolButton/ToolButton.d.ts.map +1 -0
- package/dist/src/components/ToolButton/index.d.ts +2 -0
- package/dist/src/components/ToolButton/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAIxD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEhD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,KAAK,CAAC;IACvD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,KAAK,oHA0BhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface RadioProps extends Omit<ComponentProps<'input'>, 'type'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const Radio: import("react").ForwardRefExoticComponent<Omit<RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAIxD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAAG;AAE5E,eAAO,MAAM,KAAK,sHAwBhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface RippleProps extends ComponentProps<'span'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const Ripple: import("react").ForwardRefExoticComponent<Omit<RippleProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
//# sourceMappingURL=Ripple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ripple.d.ts","sourceRoot":"","sources":["../../../src/components/Ripple/Ripple.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAiC,MAAM,OAAO,CAAC;AAK3E,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAE9D,eAAO,MAAM,MAAM,sHAkEjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Ripple/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type InnerClassNamesProp } from '../../types';
|
|
3
|
+
export type SearchInputElementKey = 'input' | 'clearButton' | 'body';
|
|
4
|
+
export interface SearchInputProps extends ComponentProps<'input'> {
|
|
5
|
+
innerClassNames?: InnerClassNamesProp<SearchInputElementKey>;
|
|
6
|
+
}
|
|
7
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAIxD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,CAAC;AAErE,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC/D,eAAe,CAAC,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAA;CAC7D;AAED,eAAO,MAAM,WAAW,4HAiCtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InnerClassNamesProp } from "../../types";
|
|
2
|
+
export type SegmentedElementKey = 'list' | 'item';
|
|
3
|
+
export interface SegmentedItem {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SegmentedProps {
|
|
8
|
+
items: SegmentedItem[];
|
|
9
|
+
activeItem: string;
|
|
10
|
+
onClick: (id: string) => void;
|
|
11
|
+
innerClassNames?: InnerClassNamesProp<SegmentedElementKey>;
|
|
12
|
+
}
|
|
13
|
+
export declare const Segmented: ({ items, activeItem, onClick, innerClassNames }: SegmentedProps) => import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Segmented.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Segmented.d.ts","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAClD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;CAC3D;AAED,eAAO,MAAM,SAAS,GAAI,iDAA+C,cAAc,gCA0DtF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Segmented/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAC,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SnackbarItemProps } from './SnackbarItem';
|
|
2
|
+
import type { SnackbarQueueItem } from './types';
|
|
3
|
+
export interface SnackbarContainerProps {
|
|
4
|
+
queue: SnackbarQueueItem[];
|
|
5
|
+
onExited?: SnackbarItemProps['onExited'];
|
|
6
|
+
}
|
|
7
|
+
export declare function SnackbarContainer({ queue, onExited }: SnackbarContainerProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SnackbarContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/SnackbarContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC1C;AA0ED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,+BA2B5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
import type { SnackbarQueueItem } from './types';
|
|
3
|
+
export interface SnackbarItemProps extends SnackbarQueueItem, Omit<HTMLProps<HTMLDivElement>, 'id'> {
|
|
4
|
+
onExited?: (id: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const SnackbarItem: import("react").ForwardRefExoticComponent<Omit<SnackbarItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
//# sourceMappingURL=SnackbarItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarItem.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/SnackbarItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,SAAS,EAAc,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IACjG,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,2HAuDvB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type SnackbarPlacement } from './types';
|
|
3
|
+
export interface SnackbarProviderProps extends PropsWithChildren {
|
|
4
|
+
/** Максимум одновременно видимых уведомлений в каждой позиции */
|
|
5
|
+
queueSize?: number;
|
|
6
|
+
createId?: () => string;
|
|
7
|
+
defaultPlacement?: SnackbarPlacement;
|
|
8
|
+
}
|
|
9
|
+
export declare function SnackbarProvider({ children, queueSize, createId, defaultPlacement }: SnackbarProviderProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=SnackbarProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/SnackbarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAIjG,OAAO,EAIL,KAAK,iBAAiB,EACC,MAAM,SAAS,CAAC;AAWzC,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;CACtC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAa,EACb,QAA0B,EAC1B,gBAAkC,EACnC,EAAE,qBAAqB,+BAwFvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,eAAe,2DAA6D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SnackbarContainer, type SnackbarContainerProps } from './SnackbarContainer';
|
|
2
|
+
export { SnackbarItem, type SnackbarItemProps } from './SnackbarItem';
|
|
3
|
+
export { SnackbarProvider, type SnackbarProviderProps } from './SnackbarProvider';
|
|
4
|
+
export type { SnackbarContextValue, SnackbarOffset, SnackbarParams, SnackbarPlacement, SnackbarQueueItem } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type SnackbarPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3
|
+
export type SnackbarOffset = number | string;
|
|
4
|
+
export interface SnackbarParams {
|
|
5
|
+
/** Идентификатор снэкбара */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Основной текст */
|
|
8
|
+
text: ReactNode;
|
|
9
|
+
/** Дополнительный мелкий текст */
|
|
10
|
+
caption?: ReactNode;
|
|
11
|
+
/** React-узел перед текстом (иконка, элемент) */
|
|
12
|
+
before?: ReactNode;
|
|
13
|
+
/** React-узел после текста (кнопка, иконка действия) */
|
|
14
|
+
after?: ReactNode;
|
|
15
|
+
/** Время показа в мс. По умолчанию 5000 */
|
|
16
|
+
duration?: number;
|
|
17
|
+
/** Позиция. По умолчанию берётся из SnackbarProvider (`bottom-center`) */
|
|
18
|
+
placement?: SnackbarPlacement;
|
|
19
|
+
/**
|
|
20
|
+
* Отступ от верхнего или нижнего края в зависимости от placement.
|
|
21
|
+
* Число трактуется как px, строка — как CSS-значение.
|
|
22
|
+
* Safe area добавляется отдельно.
|
|
23
|
+
*/
|
|
24
|
+
offset?: SnackbarOffset;
|
|
25
|
+
}
|
|
26
|
+
export type SnackbarQueueItem = Omit<SnackbarParams, 'id' | 'placement'> & {
|
|
27
|
+
id: string;
|
|
28
|
+
placement: SnackbarPlacement;
|
|
29
|
+
/** Внутренний флаг: элемент уходит — проигрываем анимацию выхода перед удалением */
|
|
30
|
+
leaving?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type ShowSnackbarCallback = (params: SnackbarParams) => void;
|
|
33
|
+
export type CloseSnackbarCallback = (id: string) => void;
|
|
34
|
+
export interface SnackbarContextValue {
|
|
35
|
+
showSnackbar: ShowSnackbarCallback;
|
|
36
|
+
closeSnackbar: CloseSnackbarCallback;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,6BAA6B;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,iDAAiD;IACjD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,wDAAwD;IACxD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,WAAW,CAAC,GAAG;IACzE,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,iBAAiB,CAAC;IAC7B,oFAAoF;IACpF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;AACpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,oBAAoB,CAAC;IACnC,aAAa,EAAE,qBAAqB,CAAC;CACtC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type AsChildProp } from '../../types';
|
|
3
|
+
export interface SvgButtonProps extends ComponentProps<'button'>, AsChildProp {
|
|
4
|
+
}
|
|
5
|
+
export declare const SvgButton: import("react").ForwardRefExoticComponent<Omit<SvgButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
//# sourceMappingURL=SvgButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgButton.d.ts","sourceRoot":"","sources":["../../../src/components/SvgButton/SvgButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;CAAG;AAEhF,eAAO,MAAM,SAAS,2HAYpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SvgButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { InnerClassNamesProp } from "../../types";
|
|
2
|
+
export type TabsElementKey = 'list' | 'item' | 'indicator' | 'closeButton';
|
|
3
|
+
export interface TabsItem {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
indicator?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsProps {
|
|
9
|
+
items: TabsItem[];
|
|
10
|
+
activeItem: string;
|
|
11
|
+
onClick: (id: string) => void;
|
|
12
|
+
onCancel?: (id: string) => void;
|
|
13
|
+
innerClassNames?: InnerClassNamesProp<TabsElementKey>;
|
|
14
|
+
}
|
|
15
|
+
export declare const Tabs: ({ items, activeItem, onCancel, onClick, innerClassNames }: TabsProps) => import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAIrD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,CAAC;AAC3E,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAA;CACtD;AAED,eAAO,MAAM,IAAI,GAAI,2DAAyD,SAAS,gCA+EtF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,cAAc,EAAC,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type AllHTMLAttributes, type ElementType, type ReactNode } from 'react';
|
|
2
|
+
import { type AsChildProp, type MergeProps } from '../../types';
|
|
3
|
+
type TappableOwnProps = {
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
parentChildren?: ReactNode;
|
|
6
|
+
} & AsChildProp;
|
|
7
|
+
export type TappableProps = MergeProps<AllHTMLAttributes<HTMLElement>, TappableOwnProps>;
|
|
8
|
+
export declare const Tappable: import("react").ForwardRefExoticComponent<Omit<AllHTMLAttributes<HTMLElement>, "asChild" | "parentChildren" | "as"> & {
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
parentChildren?: ReactNode;
|
|
11
|
+
} & AsChildProp & import("react").RefAttributes<HTMLElement>>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=Tappable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tappable.d.ts","sourceRoot":"","sources":["../../../src/components/Tappable/Tappable.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAExC,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAKhE,KAAK,gBAAgB,GAAG;IACtB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,cAAc,CAAC,EAAE,SAAS,CAAA;CAC3B,GAAG,WAAW,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAEzF,eAAO,MAAM,QAAQ;SANd,WAAW;qBACC,SAAS;6DA8C1B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AllHTMLAttributes } from 'react';
|
|
2
|
+
import { type AsChildProp } from '../../types';
|
|
3
|
+
interface ExpectedProps extends AsChildProp {
|
|
4
|
+
onClick?: AllHTMLAttributes<HTMLElement>['onClick'];
|
|
5
|
+
href?: AllHTMLAttributes<HTMLElement>['href'];
|
|
6
|
+
children?: AllHTMLAttributes<HTMLElement>['children'];
|
|
7
|
+
parentChildren?: AllHTMLAttributes<HTMLElement>['children'];
|
|
8
|
+
}
|
|
9
|
+
export declare const checkComponentHasAction: ({ onClick, href, children, asChild, parentChildren }: ExpectedProps) => boolean;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/Tappable/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAkB,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,UAAU,aAAc,SAAQ,WAAW;IACzC,OAAO,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,IAAI,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;IAC7C,QAAQ,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,CAAA;IACrD,cAAc,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,CAAA;CAC5D;AAED,eAAO,MAAM,uBAAuB,GAAI,sDAAiE,aAAa,KAAG,OAQxH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tappable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -7,8 +7,5 @@ export interface ToolButtonProps extends ComponentProps<'button'>, AsChildProp {
|
|
|
7
7
|
innerClassNames?: InnerClassNamesProp<ToolButtonElementKey>;
|
|
8
8
|
appearance?: ToolButtonAppearance;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Компонент будет удален в грядущей минорной версии.
|
|
12
|
-
*/
|
|
13
10
|
export declare const ToolButton: import("react").ForwardRefExoticComponent<Omit<ToolButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
11
|
//# sourceMappingURL=ToolButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToolButton/ToolButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToolButton/ToolButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKzE,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,WAAW,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;IAC5E,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,eAAe,CAAC,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC3D,UAAU,CAAC,EAAE,oBAAoB,CAAA;CAClC;AAED,eAAO,MAAM,UAAU,4HAwDrB,CAAC"}
|
|
@@ -5,12 +5,17 @@ export * from './CellHeader';
|
|
|
5
5
|
export * from './CellInput';
|
|
6
6
|
export * from './CellList';
|
|
7
7
|
export * from './CellSimple';
|
|
8
|
+
export * from './ContextMenu';
|
|
8
9
|
export * from './Counter';
|
|
9
10
|
export * from './IconButton';
|
|
10
11
|
export * from './Input';
|
|
11
12
|
export * from './MaxUI';
|
|
13
|
+
export * from './Radio';
|
|
14
|
+
export * from './Segmented';
|
|
15
|
+
export * from './Snackbar';
|
|
12
16
|
export * from './Spinner';
|
|
13
17
|
export * from './Switch';
|
|
18
|
+
export * from './Tabs';
|
|
14
19
|
export * from './Textarea';
|
|
15
20
|
export * from './Typography';
|
|
16
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../src/compositions/Profile/Profile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC,eAAO,MAAM,OAAO;QAAO,SAAS;;CAqKnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compositions/Profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-snackbar.d.ts","sourceRoot":"","sources":["../../src/hooks/use-snackbar.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,sCAI1B"}
|