@max-ts/components 0.0.2 → 0.1.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/.storybook/main.ts +14 -14
- package/.turbo/turbo-build.log +13 -495
- package/.turbo/turbo-type$colon$check.log +1 -756
- package/CHANGELOG.md +6 -0
- package/dist/components/Autocomplete/styles.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +4 -4
- package/dist/components/Button/useLogic/useLogic.d.ts +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +37 -0
- package/dist/components/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/ConfirmDialog/styles.d.ts +9 -0
- package/dist/components/ConfirmDialog/useLogic/index.d.ts +1 -0
- package/dist/components/ConfirmDialog/useLogic/useLogic.d.ts +10 -0
- package/dist/components/DataGrid/Row/NestedChildren/styles.d.ts +1 -1
- package/dist/components/DataGrid/Row/styles.d.ts +1 -1
- package/dist/components/DropdownButton/DropdownButton.d.ts +9 -0
- package/dist/components/DropdownButton/index.d.ts +1 -0
- package/dist/components/Filename/Filename.d.ts +21 -0
- package/dist/components/Filename/index.d.ts +1 -0
- package/dist/components/Filename/styles.d.ts +17 -0
- package/dist/components/Filename/useLogic/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/useLogic.d.ts +16 -0
- package/dist/components/Filename/useLogic/utils/findExtension/constants.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/findExtension/findExtension.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/findExtension/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/truncateString/constants.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/truncateString/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/truncateString/truncateString.d.ts +4 -0
- package/dist/components/FormLabel/FormLabel.d.ts +4 -0
- package/dist/components/FormLabel/index.d.ts +1 -0
- package/dist/components/FormLabel/styles.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +2 -2
- package/dist/components/IconButton/styles.d.ts +2 -2
- package/dist/components/ListItemButton/ListItemButton.d.ts +2 -2
- package/dist/components/MenuItem/MenuItem.d.ts +1 -1
- package/dist/components/MenuList/types.d.ts +2 -2
- package/dist/components/NavMenu/Item/ItemButton/ItemButton.d.ts +1 -1
- package/dist/components/NavMenu/Item/ItemButton/styles.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/Radio/Icon/Icon.d.ts +6 -0
- package/dist/components/Radio/Icon/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +9 -0
- package/dist/components/Radio/constants.d.ts +8 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/styles.d.ts +5 -0
- package/dist/components/RadioField/RadioField.d.ts +25 -0
- package/dist/components/RadioField/index.d.ts +1 -0
- package/dist/components/RadioField/styles.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +30 -0
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContext.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.d.ts +6 -0
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroupContext/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroupField/RadioGroupField.d.ts +8 -0
- package/dist/components/RadioGroupField/index.d.ts +1 -0
- package/dist/components/SearchField/styles.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/styles.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/styles.d.ts +1 -0
- package/dist/components/Tab/Tab.d.ts +7 -0
- package/dist/components/Tab/index.d.ts +1 -0
- package/dist/components/Tab/styles.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +13 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/styles.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useToggle/index.d.ts +1 -0
- package/dist/hooks/useToggle/useToggle.d.ts +43 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +150 -150
- package/package.json +1 -1
- package/rslib.config.ts +26 -26
- package/src/components/Accordion/Accordion.stories.tsx +2 -0
- package/src/components/ActionCell/ActionCell.stories.tsx +1 -0
- package/src/components/ActionCell/MainAction/MainAction.tsx +1 -0
- package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +1 -0
- package/src/components/Autocomplete/Autocomplete.stories.tsx +1 -0
- package/src/components/Badge/Badge.stories.tsx +1 -0
- package/src/components/BottomDrawer/BottomDrawer.stories.tsx +2 -1
- package/src/components/Button/Button.stories.tsx +2 -1
- package/src/components/Button/Button.tsx +9 -10
- package/src/components/Button/useLogic/useLogic.ts +2 -5
- package/src/components/Checkbox/Checkbox.stories.tsx +1 -3
- package/src/components/CheckboxField/CheckboxField.stories.tsx +1 -0
- package/src/components/Chevron/Chevron.stories.tsx +1 -0
- package/src/components/CircularProgress/CircularProgress.stories.tsx +1 -0
- package/src/components/Collapse/Collapse.stories.tsx +1 -0
- package/src/components/ConfirmAction/ConfirmAction.stories.tsx +1 -3
- package/src/components/ConfirmDialog/ConfirmDialog.stories.tsx +69 -0
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +83 -0
- package/src/components/ConfirmDialog/index.ts +1 -0
- package/src/components/ConfirmDialog/styles.ts +8 -0
- package/src/components/ConfirmDialog/useLogic/index.ts +1 -0
- package/src/components/ConfirmDialog/useLogic/useLogic.ts +23 -0
- package/src/components/ContentState/ContentState.stories.tsx +1 -0
- package/src/components/CopyTypography/CopyTypography.stories.tsx +1 -2
- package/src/components/DataGrid/DataGrid.stories.tsx +1 -0
- package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +1 -0
- package/src/components/DataGridPagination/DataGridPagination.stories.tsx +1 -0
- package/src/components/Description/Description.stories.tsx +1 -0
- package/src/components/DescriptionList/DescriptionList.stories.tsx +1 -0
- package/src/components/Dialog/Dialog.stories.tsx +1 -0
- package/src/components/DialogActions/DialogActions.stories.tsx +1 -3
- package/src/components/DialogContent/DialogContent.stories.tsx +1 -3
- package/src/components/DialogContentText/DialogContentText.stories.tsx +1 -0
- package/src/components/DialogHeader/DialogHeader.stories.tsx +1 -0
- package/src/components/Divider/Divider.stories.tsx +1 -0
- package/src/components/DropdownButton/DropdownButton.stories.tsx +191 -0
- package/src/components/DropdownButton/DropdownButton.tsx +46 -0
- package/src/components/DropdownButton/index.ts +1 -0
- package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +1 -0
- package/src/components/Filename/Filename.stories.tsx +244 -0
- package/src/components/Filename/Filename.tsx +57 -0
- package/src/components/Filename/index.ts +1 -0
- package/src/components/Filename/styles.ts +18 -0
- package/src/components/Filename/useLogic/index.ts +1 -0
- package/src/components/Filename/useLogic/useLogic.ts +36 -0
- package/src/components/Filename/useLogic/utils/findExtension/constants.ts +16 -0
- package/src/components/Filename/useLogic/utils/findExtension/findExtension.ts +17 -0
- package/src/components/Filename/useLogic/utils/findExtension/index.ts +1 -0
- package/src/components/Filename/useLogic/utils/index.ts +1 -0
- package/src/components/Filename/useLogic/utils/truncateString/constants.ts +1 -0
- package/src/components/Filename/useLogic/utils/truncateString/index.ts +1 -0
- package/src/components/Filename/useLogic/utils/truncateString/truncateString.ts +24 -0
- package/src/components/FormLabel/FormLabel.tsx +11 -0
- package/src/components/FormLabel/index.ts +1 -0
- package/src/components/FormLabel/styles.ts +6 -0
- package/src/components/GuidTypography/GuidTypography.stories.tsx +1 -0
- package/src/components/IconButton/IconButton.stories.tsx +1 -1
- package/src/components/IconButton/IconButton.tsx +11 -16
- package/src/components/IconButton/styles.ts +24 -24
- package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +1 -0
- package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +1 -0
- package/src/components/Link/Link.stories.tsx +1 -0
- package/src/components/List/List.stories.tsx +1 -0
- package/src/components/ListItem/ListItem.stories.tsx +1 -0
- package/src/components/ListItemButton/ListItemButton.stories.tsx +1 -0
- package/src/components/ListItemButton/ListItemButton.tsx +3 -9
- package/src/components/ListItemIcon/ListItemIcon.stories.tsx +1 -0
- package/src/components/ListItemText/ListItemText.stories.tsx +1 -0
- package/src/components/ListSubheader/ListSubheader.stories.tsx +1 -0
- package/src/components/Menu/Menu.stories.tsx +1 -0
- package/src/components/MenuItem/MenuItem.stories.tsx +1 -0
- package/src/components/MenuItem/MenuItem.tsx +1 -2
- package/src/components/MenuList/MenuList.stories.tsx +1 -0
- package/src/components/MenuList/types.ts +3 -8
- package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +1 -2
- package/src/components/NavMenu/NavMenu.stories.tsx +1 -0
- package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +1 -0
- package/src/components/OverflowTypography/OverflowTypography.stories.tsx +1 -8
- package/src/components/Pagination/Pagination.stories.tsx +1 -0
- package/src/components/Placeholder/Placeholder.stories.tsx +1 -0
- package/src/components/Popover/Popover.stories.tsx +1 -0
- package/src/components/ProgressBar/ProgressBar.stories.tsx +31 -0
- package/src/components/ProgressBar/ProgressBar.tsx +26 -0
- package/src/components/ProgressBar/index.ts +1 -0
- package/src/components/Radio/Icon/Icon.tsx +37 -0
- package/src/components/Radio/Icon/index.ts +1 -0
- package/src/components/Radio/Radio.stories.tsx +32 -0
- package/src/components/Radio/Radio.tsx +24 -0
- package/src/components/Radio/constants.ts +9 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/Radio/styles.ts +70 -0
- package/src/components/RadioField/RadioField.stories.tsx +74 -0
- package/src/components/RadioField/RadioField.tsx +55 -0
- package/src/components/RadioField/index.ts +1 -0
- package/src/components/RadioField/styles.ts +10 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +60 -0
- package/src/components/RadioGroup/RadioGroup.tsx +79 -0
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContext.ts +9 -0
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.tsx +18 -0
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.ts +1 -0
- package/src/components/RadioGroup/RadioGroupContext/index.ts +3 -0
- package/src/components/RadioGroup/index.ts +3 -0
- package/src/components/RadioGroupField/RadioGroupField.tsx +17 -0
- package/src/components/RadioGroupField/index.ts +1 -0
- package/src/components/Select/Select.stories.tsx +0 -4
- package/src/components/Skeleton/Skeleton.stories.tsx +78 -0
- package/src/components/Skeleton/Skeleton.tsx +31 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Skeleton/styles.ts +16 -0
- package/src/components/Switch/Switch.stories.tsx +179 -0
- package/src/components/Switch/Switch.tsx +14 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Switch/styles.ts +14 -0
- package/src/components/Tab/Tab.stories.tsx +53 -0
- package/src/components/Tab/Tab.tsx +20 -0
- package/src/components/Tab/index.ts +1 -0
- package/src/components/Tab/styles.ts +22 -0
- package/src/components/Tabs/Tabs.stories.tsx +74 -0
- package/src/components/Tabs/Tabs.tsx +27 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tabs/styles.ts +20 -0
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/TagBadge/TagBadge.stories.tsx +1 -5
- package/src/components/TextArea/TextArea.stories.tsx +81 -0
- package/src/components/TextArea/TextArea.tsx +12 -0
- package/src/components/TextArea/index.ts +1 -0
- package/src/components/TextField/TextField.stories.tsx +1 -4
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -4
- package/src/components/Typography/Typography.stories.tsx +2 -4
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useToggle/index.ts +1 -0
- package/src/hooks/useToggle/useToggle.ts +76 -0
- package/test.tsx +1 -0
- package/tsconfig.json +3 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TabProps as MuiTabProps } from '@mui/material';
|
|
2
|
+
import type { ElementType } from 'react';
|
|
3
|
+
import type { WithoutEmotionSpecific } from '../types';
|
|
4
|
+
export type TabProps<TComponent extends ElementType, TComponentProps = object> = WithoutEmotionSpecific<MuiTabProps<TComponent, TComponentProps>> & {
|
|
5
|
+
component?: TComponent;
|
|
6
|
+
};
|
|
7
|
+
export declare const Tab: <TComponent extends ElementType = "div", TComponentProps = object>(props: TabProps<TComponent, TComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tab';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "sx" | "className" | "style" | "tabIndex" | "children" | "classes" | "label" | "action" | "disabled" | "value" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "icon" | "wrapped" | "iconPosition"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TabsProps as MuiTabsProps } from '@mui/material';
|
|
2
|
+
import type { WithoutEmotionSpecific } from '../types';
|
|
3
|
+
export type TabsProps = WithoutEmotionSpecific<MuiTabsProps> & {
|
|
4
|
+
nextFeatureFlags?: {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* Флаг включения нижнего разделителя
|
|
8
|
+
* В мажорном релизе, флаг будет удален
|
|
9
|
+
*/
|
|
10
|
+
hasBottomDivider: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const Tabs: ({ nextFeatureFlags, ...tabsProps }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const Divider: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextArea';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useToggle';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* тип обозначающий какой угодно рест аргументов
|
|
3
|
+
*/
|
|
4
|
+
type Arguments = unknown[];
|
|
5
|
+
/**
|
|
6
|
+
* хэндлер принимающий на вход неизвестное количество аргументов, неизвестного вида
|
|
7
|
+
*/
|
|
8
|
+
type Handler<Args extends Arguments> = (...a: Args) => void;
|
|
9
|
+
/**
|
|
10
|
+
* хэндлер на открытие с неизвестным количеством аргументов, неизвестного вида
|
|
11
|
+
*/
|
|
12
|
+
type OpenHandler<Args extends Arguments> = Handler<Args>;
|
|
13
|
+
/**
|
|
14
|
+
* хэндлер на закрытие с неизвестным количеством аргументов, неизвестного вида
|
|
15
|
+
*/
|
|
16
|
+
type CloseHandler<Args extends Arguments> = Handler<Args>;
|
|
17
|
+
type UseToggleResultTuple<CloseArgs extends Arguments, OpenArgs extends Arguments> = [
|
|
18
|
+
/**
|
|
19
|
+
* флаг активности состояния
|
|
20
|
+
*/
|
|
21
|
+
boolean,
|
|
22
|
+
OpenHandler<OpenArgs>,
|
|
23
|
+
CloseHandler<CloseArgs>
|
|
24
|
+
];
|
|
25
|
+
type UseToggleOptions<CloseArgs extends Arguments, OpenArgs extends Arguments> = {
|
|
26
|
+
/**
|
|
27
|
+
* изначальное состояние активности
|
|
28
|
+
*/
|
|
29
|
+
initialState?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* коллбэк на открытие
|
|
32
|
+
*/
|
|
33
|
+
onActive?: OpenHandler<OpenArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* коллбэк на закрытие
|
|
36
|
+
*/
|
|
37
|
+
onInactive?: CloseHandler<CloseArgs>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* хук хранящий стейт активности, и предоставляющий методы переключения с проксируемыми аргументами, позволяет уменьшить бойлерплейт код
|
|
41
|
+
*/
|
|
42
|
+
export declare const useToggle: <CloseArgs extends Arguments, OpenArgs extends Arguments>(params?: UseToggleOptions<CloseArgs, OpenArgs>) => UseToggleResultTuple<CloseArgs, OpenArgs>;
|
|
43
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Head:()=>Head,Accordion:()=>Accordion,Placeholder:()=>Placeholder,LOADING_BUTTON_CLASSNAME:()=>LOADING_BUTTON_CLASSNAME,DialogTitle:()=>DialogTitle,CircularProgress:()=>CircularProgress,createTheme:()=>createTheme,FormHelperTextContent:()=>FormHelperTextContent,INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT:()=>INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,Dialog:()=>Dialog,ROOT_ACTION_CELL_WIDTH:()=>ROOT_ACTION_CELL_WIDTH,elevation:()=>elevation_elevation,usePopover:()=>usePopover,MenuItem:()=>MenuItem,AsyncAutocomplete:()=>AsyncAutocomplete,useTheme:()=>useTheme,setDefaultImageStyles:()=>setDefaultImageStyles,ListItem:()=>ListItem,DialogContent:()=>DialogContent,GuidTypography:()=>GuidTypography,Container:()=>Container,Link:()=>Link,List:()=>List,Paper:()=>Paper,FormControlLabel:()=>FormControlLabel,useMenu:()=>useMenu,ConfigProvider:()=>ConfigProvider,CheckboxField:()=>CheckboxField,ButtonColors:()=>enums_ButtonColors,Divider:()=>Divider,ErrorBoundary:()=>ErrorBoundary,MIN_DISPLAY_ROWS_BY_DEFAULT:()=>MIN_DISPLAY_ROWS_BY_DEFAULT,RowContext:()=>RowContext,RowContextProvider:()=>RowContextProvider,SPACING:()=>SPACING,OutdatedReleasePlaceholder:()=>OutdatedReleasePlaceholder,ListItemButton:()=>ListItemButton,Badge:()=>Badge,InternalErrorPlaceholder:()=>InternalErrorPlaceholder,DEFAULT_ROWS_COUNT:()=>DEFAULT_ROWS_COUNT,FormHelperText:()=>FormHelperText,MenuList:()=>MenuList,EXPANDED_LEVEL_BY_DEFAULT:()=>EXPANDED_LEVEL_BY_DEFAULT,Select:()=>Select,TREE_LINE_WIDTH:()=>TREE_LINE_WIDTH,componentsColors:()=>componentsColors,ButtonStates:()=>enums_ButtonStates,ListSubheader:()=>ListSubheader,DataGrid:()=>DataGrid,DialogActions:()=>DialogActions,ConfigContext:()=>ConfigContext,DataGridActionCell:()=>DataGridActionCell,DESCRIPTION_ROOT_CLASSNAME:()=>DESCRIPTION_ROOT_CLASSNAME,ButtonVariants:()=>enums_ButtonVariants,SearchField:()=>SearchField,DialogHeader:()=>DialogHeader,ListItemIcon:()=>ListItemIcon,ContentState:()=>ContentState,IconDropdownButton:()=>IconDropdownButton,Collapse:()=>Collapse,DEFAULT_SYMBOL:()=>DEFAULT_SYMBOL,DialogContentText:()=>DialogContentText,FormControl:()=>FormControl,IconButton:()=>IconButton,Row:()=>Row,MIN_ROW_HEIGHT:()=>MIN_ROW_HEIGHT,Pagination:()=>Pagination,CopyTypography:()=>CopyTypography,TagBadge:()=>TagBadge,BottomDrawer:()=>BottomDrawer,ActionCell:()=>ActionCell,DescriptionList:()=>DescriptionList,TextField:()=>TextField,Variant:()=>enums_Variant,NavMenu:()=>NavMenu,getPalette:()=>getPalette,Typography:()=>Typography,shape:()=>shape,Tag:()=>Tag,TagsList:()=>TagsList,SortStates:()=>enums_SortStates,ConfirmAction:()=>ConfirmAction,Image:()=>Image,ButtonSizes:()=>enums_ButtonSizes,Chevron:()=>Chevron,DataGridPagination:()=>DataGridPagination,Menu:()=>Menu,Autocomplete:()=>Autocomplete,Button:()=>Button,Description:()=>Description_Description,DEFAULT_SEPARATOR:()=>DEFAULT_SEPARATOR,OverflowTypography:()=>OverflowTypography,ListItemText:()=>ListItemText,useViewportType:()=>useViewportType,Tooltip:()=>Tooltip,Checkbox:()=>Checkbox,Popover:()=>Popover});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react");var external_react_default=__webpack_require__.n(external_react_namespaceObject);let material_namespaceObject=require("@mui/material"),external_lucide_react_namespaceObject=require("lucide-react"),ChevronIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Head:()=>Head,Accordion:()=>Accordion,Placeholder:()=>Placeholder,LOADING_BUTTON_CLASSNAME:()=>LOADING_BUTTON_CLASSNAME,DialogTitle:()=>DialogTitle,CircularProgress:()=>CircularProgress,createTheme:()=>createTheme,FormHelperTextContent:()=>FormHelperTextContent,INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT:()=>INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,Dialog:()=>Dialog,ROOT_ACTION_CELL_WIDTH:()=>ROOT_ACTION_CELL_WIDTH,elevation:()=>elevation_elevation,usePopover:()=>usePopover,MenuItem:()=>MenuItem,AsyncAutocomplete:()=>AsyncAutocomplete,useTheme:()=>useTheme,setDefaultImageStyles:()=>setDefaultImageStyles,ListItem:()=>ListItem,DialogContent:()=>DialogContent,GuidTypography:()=>GuidTypography,Container:()=>Container,Link:()=>Link,List:()=>List,Paper:()=>Paper,FormControlLabel:()=>FormControlLabel,useMenu:()=>useMenu,ConfigProvider:()=>ConfigProvider,CheckboxField:()=>CheckboxField,ButtonColors:()=>enums_ButtonColors,Divider:()=>Divider,ErrorBoundary:()=>ErrorBoundary,MIN_DISPLAY_ROWS_BY_DEFAULT:()=>MIN_DISPLAY_ROWS_BY_DEFAULT,RowContext:()=>RowContext,RowContextProvider:()=>RowContextProvider,SPACING:()=>SPACING,OutdatedReleasePlaceholder:()=>OutdatedReleasePlaceholder,ListItemButton:()=>ListItemButton,Badge:()=>Badge,InternalErrorPlaceholder:()=>InternalErrorPlaceholder,DEFAULT_ROWS_COUNT:()=>DEFAULT_ROWS_COUNT,FormHelperText:()=>FormHelperText,MenuList:()=>MenuList,EXPANDED_LEVEL_BY_DEFAULT:()=>EXPANDED_LEVEL_BY_DEFAULT,Select:()=>Select,TREE_LINE_WIDTH:()=>TREE_LINE_WIDTH,componentsColors:()=>componentsColors,ButtonStates:()=>enums_ButtonStates,ListSubheader:()=>ListSubheader,DataGrid:()=>DataGrid,DialogActions:()=>DialogActions,ConfigContext:()=>ConfigContext,DataGridActionCell:()=>DataGridActionCell,DESCRIPTION_ROOT_CLASSNAME:()=>DESCRIPTION_ROOT_CLASSNAME,ButtonVariants:()=>enums_ButtonVariants,SearchField:()=>SearchField,DialogHeader:()=>DialogHeader,ListItemIcon:()=>ListItemIcon,ContentState:()=>ContentState,IconDropdownButton:()=>IconDropdownButton,Collapse:()=>Collapse,DEFAULT_SYMBOL:()=>DEFAULT_SYMBOL,DialogContentText:()=>DialogContentText,FormControl:()=>FormControl,IconButton:()=>IconButton,Row:()=>Row,MIN_ROW_HEIGHT:()=>MIN_ROW_HEIGHT,Pagination:()=>Pagination,CopyTypography:()=>CopyTypography,TagBadge:()=>TagBadge,BottomDrawer:()=>BottomDrawer,ActionCell:()=>ActionCell,DescriptionList:()=>DescriptionList,TextField:()=>TextField,Variant:()=>enums_Variant,NavMenu:()=>NavMenu,getPalette:()=>getPalette,Typography:()=>Typography,shape:()=>shape,useToggle:()=>useToggle,Tag:()=>Tag,TagsList:()=>TagsList,SortStates:()=>enums_SortStates,ConfirmAction:()=>ConfirmAction,Image:()=>Image,ButtonSizes:()=>enums_ButtonSizes,Chevron:()=>Chevron,DataGridPagination:()=>DataGridPagination,Menu:()=>Menu,Autocomplete:()=>Autocomplete,Button:()=>Button,Description:()=>Description_Description,DEFAULT_SEPARATOR:()=>DEFAULT_SEPARATOR,OverflowTypography:()=>OverflowTypography,ListItemText:()=>ListItemText,useViewportType:()=>useViewportType,Tooltip:()=>Tooltip,Checkbox:()=>Checkbox,Popover:()=>Popover});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react");var external_react_default=__webpack_require__.n(external_react_namespaceObject);let material_namespaceObject=require("@mui/material"),external_lucide_react_namespaceObject=require("lucide-react"),ChevronIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
|
|
2
2
|
transform: rotateZ(${({isActive:e})=>180*!!e}deg);
|
|
3
3
|
|
|
4
4
|
transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
40
40
|
width: ${getButtonHeightMobile};
|
|
41
41
|
}
|
|
42
|
-
`,IconButton=e=>{let{variant:t=enums_ButtonVariants.Contained,loading:a,children:r,...n}=e,i=(0,external_react_namespaceObject.useMemo)(()=>t===enums_ButtonVariants.Contained?"inverted":"primary",[t]);return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledButton,{loading:a,variant:t,tabIndex:a?-1:0,...n,children:a?(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{size:"small",color:i}):r})},useViewportType=()=>{let e=(0,material_namespaceObject.useTheme)();return{isMobile:(0,material_namespaceObject.useMediaQuery)(e.breakpoints.down("sm"))}};function useMenu(e=null){let[t,a]=(0,external_react_namespaceObject.useState)(!1),r=(0,external_react_namespaceObject.useRef)(null);return(0,external_react_namespaceObject.useEffect)(()=>{e&&("function"==typeof e?e(r.current):e.current=r.current)},[e]),{open:t,anchorRef:r,handleCloseMenu:()=>a(!1),handleOpenMenu:()=>a(!0)}}let usePopover=()=>{let[e,t]=(0,external_react_namespaceObject.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}},OFFSET_TOP_SCREEN="16px",DEFAULT_HEADER_HEIGHT=56,StyledDrawer=(0,material_namespaceObject.styled)(material_namespaceObject.Drawer)`
|
|
42
|
+
`,IconButton=e=>{let{variant:t=enums_ButtonVariants.Contained,loading:a,children:r,...n}=e,i=(0,external_react_namespaceObject.useMemo)(()=>t===enums_ButtonVariants.Contained?"inverted":"primary",[t]);return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledButton,{loading:a,variant:t,tabIndex:a?-1:0,...n,children:a?(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{size:"small",color:i}):r})},useViewportType=()=>{let e=(0,material_namespaceObject.useTheme)();return{isMobile:(0,material_namespaceObject.useMediaQuery)(e.breakpoints.down("sm"))}};function useMenu(e=null){let[t,a]=(0,external_react_namespaceObject.useState)(!1),r=(0,external_react_namespaceObject.useRef)(null);return(0,external_react_namespaceObject.useEffect)(()=>{e&&("function"==typeof e?e(r.current):e.current=r.current)},[e]),{open:t,anchorRef:r,handleCloseMenu:()=>a(!1),handleOpenMenu:()=>a(!0)}}let usePopover=()=>{let[e,t]=(0,external_react_namespaceObject.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}},useToggle=e=>{let{initialState:t=!1,onInactive:a,onActive:r}=e||{},[n,i]=(0,external_react_namespaceObject.useState)(t);return[n,(...e)=>{i(!0),r?.(...e)},(...e)=>{i(!1),a?.(...e)}]},OFFSET_TOP_SCREEN="16px",DEFAULT_HEADER_HEIGHT=56,StyledDrawer=(0,material_namespaceObject.styled)(material_namespaceObject.Drawer)`
|
|
43
43
|
${`.${material_namespaceObject.paperClasses.root}`} {
|
|
44
44
|
max-height: calc(100vh - ${OFFSET_TOP_SCREEN});
|
|
45
45
|
|