@max-ts/components 0.2.0 → 0.2.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/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.mjs +2 -2
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.mjs +35 -34
- package/lib/components/Select/styles.d.ts +1 -1
- package/lib/components/Select/styles.mjs +18 -16
- package/lib/components/Tag/styles.mjs +2 -2
- package/lib/theme/palette/palette.mjs +18 -18
- package/package.json +2 -3
- package/lib/_virtual/jsx-runtime.cjs +0 -1
- package/lib/_virtual/jsx-runtime2.cjs +0 -1
- package/lib/_virtual/react-jsx-runtime.development.cjs +0 -1
- package/lib/_virtual/react-jsx-runtime.production.cjs +0 -1
- package/lib/components/Accordion/Accordion.cjs +0 -1
- package/lib/components/Accordion/styles.cjs +0 -17
- package/lib/components/ActionCell/ActionCell.cjs +0 -1
- package/lib/components/ActionCell/MainAction/MainAction.cjs +0 -1
- package/lib/components/ActionCell/SecondaryAction/SecondaryActions.cjs +0 -1
- package/lib/components/ActionCell/styles.cjs +0 -4
- package/lib/components/ActionCell/useLogic/useLogic.cjs +0 -1
- package/lib/components/AsyncAutocomplete/AsyncAutocomplete.cjs +0 -1
- package/lib/components/AsyncAutocomplete/constants.cjs +0 -1
- package/lib/components/AsyncAutocomplete/useLogic/useLogic.cjs +0 -1
- package/lib/components/Autocomplete/Autocomplete.cjs +0 -1
- package/lib/components/Autocomplete/constants.cjs +0 -1
- package/lib/components/Autocomplete/enums.cjs +0 -1
- package/lib/components/Autocomplete/styles.cjs +0 -7
- package/lib/components/Autocomplete/useLogic/useLogic.cjs +0 -1
- package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.cjs +0 -1
- package/lib/components/Badge/Badge.cjs +0 -1
- package/lib/components/Badge/styles.cjs +0 -21
- package/lib/components/BottomDrawer/BottomDrawer.cjs +0 -1
- package/lib/components/BottomDrawer/constants.cjs +0 -1
- package/lib/components/BottomDrawer/styles.cjs +0 -26
- package/lib/components/Button/Button.cjs +0 -1
- package/lib/components/Button/constants.cjs +0 -1
- package/lib/components/Button/enums.cjs +0 -1
- package/lib/components/Button/styles.cjs +0 -10
- package/lib/components/Button/useLogic/useLogic.cjs +0 -1
- package/lib/components/Checkbox/Checkbox.cjs +0 -1
- package/lib/components/Checkbox/icons.cjs +0 -1
- package/lib/components/Checkbox/styles.cjs +0 -59
- package/lib/components/CheckboxField/CheckboxField.cjs +0 -1
- package/lib/components/CheckboxField/styles.cjs +0 -5
- package/lib/components/Chevron/Chevron.cjs +0 -1
- package/lib/components/Chevron/styles.cjs +0 -6
- package/lib/components/CircularProgress/CircularProgress.cjs +0 -1
- package/lib/components/CircularProgress/constants.cjs +0 -1
- package/lib/components/CircularProgress/useLogic/useLogic.cjs +0 -1
- package/lib/components/Collapse/Collapse.cjs +0 -1
- package/lib/components/ConfigProvider/ConfigProvider.cjs +0 -2
- package/lib/components/ConfirmAction/ConfirmAction.cjs +0 -1
- package/lib/components/ConfirmAction/constants.cjs +0 -1
- package/lib/components/ConfirmAction/styles.cjs +0 -10
- package/lib/components/ConfirmAction/useLogic/useLogic.cjs +0 -1
- package/lib/components/ConfirmDialog/ConfirmDialog.cjs +0 -1
- package/lib/components/ConfirmDialog/styles.cjs +0 -5
- package/lib/components/ConfirmDialog/useLogic/useLogic.cjs +0 -1
- package/lib/components/Container/Container.cjs +0 -1
- package/lib/components/Container/styles.cjs +0 -19
- package/lib/components/ContentState/ContentState.cjs +0 -1
- package/lib/components/ContentState/styles.cjs +0 -9
- package/lib/components/CopyTypography/CopyTypography.cjs +0 -1
- package/lib/components/CopyTypography/enums.cjs +0 -1
- package/lib/components/CopyTypography/styles.cjs +0 -18
- package/lib/components/CopyTypography/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/Body/Body.cjs +0 -1
- package/lib/components/DataGrid/Body/styles.cjs +0 -9
- package/lib/components/DataGrid/Body/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/Cell/Cell.cjs +0 -1
- package/lib/components/DataGrid/Cell/styles.cjs +0 -11
- package/lib/components/DataGrid/Cell/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/DataGrid.cjs +0 -1
- package/lib/components/DataGrid/DataGridContext/DataGridContext.cjs +0 -1
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.cjs +0 -1
- package/lib/components/DataGrid/Head/Head.cjs +0 -1
- package/lib/components/DataGrid/Head/styles.cjs +0 -12
- package/lib/components/DataGrid/Head/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/HeadCell/HeadCell.cjs +0 -1
- package/lib/components/DataGrid/HeadCell/styles.cjs +0 -21
- package/lib/components/DataGrid/HeadCell/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/Loader/Loader.cjs +0 -1
- package/lib/components/DataGrid/Loader/styles.cjs +0 -16
- package/lib/components/DataGrid/NoData/NoData.cjs +0 -1
- package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.cjs +0 -1
- package/lib/components/DataGrid/Row/NestedChildren/styles.cjs +0 -54
- package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/Row/Row.cjs +0 -1
- package/lib/components/DataGrid/Row/RowContext/RowContext.cjs +0 -1
- package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.cjs +0 -1
- package/lib/components/DataGrid/Row/constants.cjs +0 -1
- package/lib/components/DataGrid/Row/styles.cjs +0 -80
- package/lib/components/DataGrid/Row/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.cjs +0 -1
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.cjs +0 -1
- package/lib/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.cjs +0 -1
- package/lib/components/DataGrid/constants.cjs +0 -1
- package/lib/components/DataGrid/enums.cjs +0 -1
- package/lib/components/DataGrid/styles.cjs +0 -22
- package/lib/components/DataGrid/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.cjs +0 -1
- package/lib/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.cjs +0 -1
- package/lib/components/DataGrid/utils/alignToJustifyContent/constants.cjs +0 -1
- package/lib/components/DataGridActionCell/DataGridActionCell.cjs +0 -1
- package/lib/components/DataGridActionCell/MainAction/MainAction.cjs +0 -1
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.cjs +0 -1
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.cjs +0 -1
- package/lib/components/DataGridActionCell/styles.cjs +0 -4
- package/lib/components/DataGridActionCell/useLogic/useLogic.cjs +0 -1
- package/lib/components/DataGridPagination/DataGridPagination.cjs +0 -1
- package/lib/components/DataGridPagination/constants.cjs +0 -1
- package/lib/components/DataGridPagination/styles.cjs +0 -18
- package/lib/components/DataGridPagination/useLogic/useLogic.cjs +0 -1
- package/lib/components/Description/Description.cjs +0 -1
- package/lib/components/Description/DescriptionContext/DescriptionContext.cjs +0 -1
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.cjs +0 -1
- package/lib/components/Description/Name/Name.cjs +0 -1
- package/lib/components/Description/Name/styles.cjs +0 -18
- package/lib/components/Description/Value/Value.cjs +0 -1
- package/lib/components/Description/Value/styles.cjs +0 -35
- package/lib/components/Description/Value/useLogic/useLogic.cjs +0 -1
- package/lib/components/Description/constants.cjs +0 -1
- package/lib/components/Description/styles.cjs +0 -17
- package/lib/components/Description/useLogic/useLogic.cjs +0 -1
- package/lib/components/DescriptionList/DescriptionList.cjs +0 -1
- package/lib/components/DescriptionList/styles.cjs +0 -30
- package/lib/components/DescriptionList/utils/getTooltipProps/getTooltipProps.cjs +0 -1
- package/lib/components/Dialog/Dialog.cjs +0 -1
- package/lib/components/Dialog/constants.cjs +0 -1
- package/lib/components/Dialog/styles.cjs +0 -9
- package/lib/components/DialogActions/DialogActions.cjs +0 -1
- package/lib/components/DialogActions/styles.cjs +0 -12
- package/lib/components/DialogContent/DialogContent.cjs +0 -1
- package/lib/components/DialogContent/styles.cjs +0 -7
- package/lib/components/DialogContentText/DialogContentText.cjs +0 -1
- package/lib/components/DialogContentText/styles.cjs +0 -3
- package/lib/components/DialogHeader/DialogHeader.cjs +0 -1
- package/lib/components/DialogHeader/styles.cjs +0 -20
- package/lib/components/DialogTitle/DialogTitle.cjs +0 -1
- package/lib/components/Divider/Divider.cjs +0 -1
- package/lib/components/DropdownButton/DropdownButton.cjs +0 -1
- package/lib/components/ErrorBoundary/ErrorBoundary.cjs +0 -1
- package/lib/components/ErrorBoundary/constants.cjs +0 -1
- package/lib/components/ErrorBoundary/enums.cjs +0 -1
- package/lib/components/Filename/Filename.cjs +0 -1
- package/lib/components/Filename/styles.cjs +0 -11
- package/lib/components/Filename/useLogic/useLogic.cjs +0 -1
- package/lib/components/Filename/useLogic/utils/findExtension/constants.cjs +0 -1
- package/lib/components/Filename/useLogic/utils/findExtension/findExtension.cjs +0 -1
- package/lib/components/Filename/useLogic/utils/truncateString/constants.cjs +0 -1
- package/lib/components/Filename/useLogic/utils/truncateString/truncateString.cjs +0 -1
- package/lib/components/FormControl/FormControl.cjs +0 -1
- package/lib/components/FormControlLabel/FormControlLabel.cjs +0 -1
- package/lib/components/FormControlLabel/styles.cjs +0 -8
- package/lib/components/FormHelperText/FormHelperText.cjs +0 -1
- package/lib/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.cjs +0 -1
- package/lib/components/FormHelperText/FormHelperTextContent/styles.cjs +0 -14
- package/lib/components/FormLabel/FormLabel.cjs +0 -1
- package/lib/components/FormLabel/styles.cjs +0 -4
- package/lib/components/GuidTypography/GuidTypography.cjs +0 -1
- package/lib/components/IconButton/IconButton.cjs +0 -1
- package/lib/components/IconButton/styles.cjs +0 -11
- package/lib/components/IconDropdownButton/IconDropdownButton.cjs +0 -1
- package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.cjs +0 -1
- package/lib/components/Link/Link.cjs +0 -1
- package/lib/components/Link/styles.cjs +0 -35
- package/lib/components/List/List.cjs +0 -1
- package/lib/components/ListItem/ListItem.cjs +0 -1
- package/lib/components/ListItem/constants.cjs +0 -1
- package/lib/components/ListItem/styles.cjs +0 -11
- package/lib/components/ListItemButton/ListItemButton.cjs +0 -1
- package/lib/components/ListItemIcon/ListItemIcon.cjs +0 -1
- package/lib/components/ListItemIcon/styles.cjs +0 -3
- package/lib/components/ListItemText/ListItemText.cjs +0 -1
- package/lib/components/ListSubheader/ListSubheader.cjs +0 -1
- package/lib/components/Menu/Menu.cjs +0 -1
- package/lib/components/MenuItem/MenuItem.cjs +0 -1
- package/lib/components/MenuList/MenuList.cjs +0 -1
- package/lib/components/MenuList/styles.cjs +0 -8
- package/lib/components/NavMenu/Item/Item.cjs +0 -1
- package/lib/components/NavMenu/Item/ItemButton/ItemButton.cjs +0 -1
- package/lib/components/NavMenu/Item/ItemButton/styles.cjs +0 -105
- package/lib/components/NavMenu/Item/List/List.cjs +0 -1
- package/lib/components/NavMenu/NavMenu.cjs +0 -1
- package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.cjs +0 -1
- package/lib/components/OverflowTypography/OverflowTypography.cjs +0 -1
- package/lib/components/OverflowTypography/hooks/useOverflowed/useOverflowed.cjs +0 -1
- package/lib/components/OverflowTypography/styles.cjs +0 -20
- package/lib/components/OverflowTypography/useLogic/useLogic.cjs +0 -1
- package/lib/components/OverflowTypography/utils/truncateString/truncateString.cjs +0 -1
- package/lib/components/Pagination/Pagination.cjs +0 -1
- package/lib/components/Paper/Paper.cjs +0 -1
- package/lib/components/Placeholder/Image/Image.cjs +0 -1
- package/lib/components/Placeholder/Image/styles.cjs +0 -17
- package/lib/components/Placeholder/Placeholder.cjs +0 -1
- package/lib/components/Placeholder/constants.cjs +0 -1
- package/lib/components/Placeholder/styles.cjs +0 -59
- package/lib/components/Popover/Popover.cjs +0 -1
- package/lib/components/ProgressBar/ProgressBar.cjs +0 -1
- package/lib/components/Radio/Icon/Icon.cjs +0 -1
- package/lib/components/Radio/Radio.cjs +0 -1
- package/lib/components/Radio/constants.cjs +0 -1
- package/lib/components/Radio/styles.cjs +0 -57
- package/lib/components/RadioField/RadioField.cjs +0 -1
- package/lib/components/RadioField/styles.cjs +0 -4
- package/lib/components/RadioGroup/RadioGroup.cjs +0 -1
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContext.cjs +0 -1
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.cjs +0 -1
- package/lib/components/RadioGroupField/RadioGroupField.cjs +0 -1
- package/lib/components/SearchField/SearchField.cjs +0 -1
- package/lib/components/SearchField/styles.cjs +0 -23
- package/lib/components/Select/Select.cjs +0 -1
- package/lib/components/Select/constants.cjs +0 -1
- package/lib/components/Select/styles.cjs +0 -44
- package/lib/components/Select/useLogic/useLogic.cjs +0 -1
- package/lib/components/Skeleton/Skeleton.cjs +0 -1
- package/lib/components/Skeleton/styles.cjs +0 -14
- package/lib/components/Switch/Switch.cjs +0 -1
- package/lib/components/Switch/styles.cjs +0 -12
- package/lib/components/Tab/Tab.cjs +0 -1
- package/lib/components/Tab/styles.cjs +0 -20
- package/lib/components/Tabs/Tabs.cjs +0 -1
- package/lib/components/Tabs/styles.cjs +0 -16
- package/lib/components/Tag/Tag.cjs +0 -1
- package/lib/components/Tag/enums.cjs +0 -1
- package/lib/components/Tag/styles.cjs +0 -79
- package/lib/components/TagBadge/TagBadge.cjs +0 -1
- package/lib/components/TagBadge/styles.cjs +0 -11
- package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.cjs +0 -1
- package/lib/components/TagsList/Tag/Tag.cjs +0 -1
- package/lib/components/TagsList/Tag/styles.cjs +0 -10
- package/lib/components/TagsList/Tag/useLogic/useLogic.cjs +0 -1
- package/lib/components/TagsList/TagsList.cjs +0 -1
- package/lib/components/TagsList/styles.cjs +0 -4
- package/lib/components/TagsList/useLogic/useLogic.cjs +0 -1
- package/lib/components/TagsList/utils/getElementByText/getElementByText.cjs +0 -1
- package/lib/components/TagsList/utils/getKey/getKey.cjs +0 -1
- package/lib/components/TextArea/TextArea.cjs +0 -1
- package/lib/components/TextField/TextField.cjs +0 -1
- package/lib/components/Tooltip/Tooltip.cjs +0 -1
- package/lib/components/Tooltip/constants.cjs +0 -1
- package/lib/components/Tooltip/styles.cjs +0 -37
- package/lib/components/Typography/Typography.cjs +0 -1
- package/lib/components/Typography/enums.cjs +0 -1
- package/lib/components/Typography/hooks/useTypographyColor/useTypographyColor.cjs +0 -1
- package/lib/components/Typography/styles.cjs +0 -3
- package/lib/hooks/useMenu/useMenu.cjs +0 -1
- package/lib/hooks/usePopover/usePopover.cjs +0 -1
- package/lib/hooks/useToggle/useToggle.cjs +0 -1
- package/lib/hooks/useViewportType/useViewportType.cjs +0 -1
- package/lib/index.cjs +0 -1
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -23
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -9
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs +0 -1
- package/lib/theme/baseTheme/baseTheme.cjs +0 -1
- package/lib/theme/breakpoints.cjs +0 -1
- package/lib/theme/components/MuiAlert.cjs +0 -1
- package/lib/theme/components/MuiAutocomplete.cjs +0 -1
- package/lib/theme/components/MuiButton.cjs +0 -1
- package/lib/theme/components/MuiButtonBase.cjs +0 -1
- package/lib/theme/components/MuiCircularProgress.cjs +0 -1
- package/lib/theme/components/MuiDialog.cjs +0 -1
- package/lib/theme/components/MuiDialogActions.cjs +0 -1
- package/lib/theme/components/MuiDialogContent.cjs +0 -1
- package/lib/theme/components/MuiDialogTitle.cjs +0 -1
- package/lib/theme/components/MuiDrawer.cjs +0 -1
- package/lib/theme/components/MuiFormHelperText.cjs +0 -1
- package/lib/theme/components/MuiFormLabel.cjs +0 -1
- package/lib/theme/components/MuiInputLabel.cjs +0 -1
- package/lib/theme/components/MuiLinearProgress.cjs +0 -1
- package/lib/theme/components/MuiListItemButton.cjs +0 -1
- package/lib/theme/components/MuiListItemText.cjs +0 -1
- package/lib/theme/components/MuiMenu.cjs +0 -1
- package/lib/theme/components/MuiMenuItem.cjs +0 -1
- package/lib/theme/components/MuiOutlinedInput.cjs +0 -1
- package/lib/theme/components/MuiPaginationItem.cjs +0 -1
- package/lib/theme/components/MuiPaper.cjs +0 -1
- package/lib/theme/components/MuiStep.cjs +0 -1
- package/lib/theme/components/MuiStepConnector.cjs +0 -1
- package/lib/theme/components/MuiStepLabel.cjs +0 -1
- package/lib/theme/components/MuiSwitch.cjs +0 -1
- package/lib/theme/components/MuiTab.cjs +0 -1
- package/lib/theme/components/MuiTableCell.cjs +0 -1
- package/lib/theme/components/MuiTableHead.cjs +0 -1
- package/lib/theme/components/MuiTableRow.cjs +0 -1
- package/lib/theme/components/MuiTabs.cjs +0 -1
- package/lib/theme/components/MuiTextField.cjs +0 -1
- package/lib/theme/components/MuiToggleButton.cjs +0 -1
- package/lib/theme/components/MuiToggleButtonGroup.cjs +0 -1
- package/lib/theme/components/MuiTypography.cjs +0 -1
- package/lib/theme/components/components.cjs +0 -30
- package/lib/theme/constants.cjs +0 -1
- package/lib/theme/elevation.cjs +0 -1
- package/lib/theme/hooks/useTheme/index.cjs +0 -1
- package/lib/theme/palette/componentsColors/componentsColors.cjs +0 -1
- package/lib/theme/palette/componentsColors/linkColors/linkColors.cjs +0 -1
- package/lib/theme/palette/palette.cjs +0 -1
- package/lib/theme/shape.cjs +0 -1
- package/lib/theme/typography.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@mui/material"),n=require("react"),h=require("react-use"),v=o=>{const c=n.useRef(null),t=o&&typeof o!="function"?o:c,[u,l]=n.useState(!1),f=h.useFirstMountState(),i=([{target:e,contentRect:r}])=>{const s=Math.round(r.height)<e.scrollHeight,g=e.scrollWidth>Math.round(r.width);l(s||g)};return n.useLayoutEffect(()=>{if(t?.current){const e=t.current,r={target:e,contentRect:e.getBoundingClientRect()};if(!f){const s=new ResizeObserver(a.debounce(i,500));return s.observe(e),()=>s.unobserve(e)}i([r])}},[t.current]),{isOverflowed:u,ref:t}};exports.useOverflowed=v;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),i=require("../Typography/Typography.cjs"),l=t.styled(i.Typography,{shouldForwardProp:e=>e!=="rowsCount"&&e!=="hasMultipleRows"})`
|
|
2
|
-
/* stylelint-disable-next-line */
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
/* stylelint-disable-next-line */
|
|
5
|
-
display: ${({hasMultipleRows:e})=>e?"-webkit-box":""};
|
|
6
|
-
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
|
|
9
|
-
text-overflow: ellipsis;
|
|
10
|
-
white-space: ${({hasMultipleRows:e})=>e?"initial":"nowrap"};
|
|
11
|
-
-webkit-box-orient: ${({hasMultipleRows:e})=>e?"vertical":""};
|
|
12
|
-
-webkit-line-clamp: ${({rowsCount:e})=>e};
|
|
13
|
-
`,o=t.styled(i.Typography,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: ${({$align:e})=>e};
|
|
16
|
-
|
|
17
|
-
width: 100%;
|
|
18
|
-
|
|
19
|
-
white-space: nowrap;
|
|
20
|
-
`;exports.StyledTypography=l;exports.Wrapper=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../hooks/useOverflowed/useOverflowed.cjs"),u=require("../utils/truncateString/truncateString.cjs"),f=({children:e,visibleLastSymbolsCount:r,ref:c})=>{const{ref:i,isOverflowed:t}=a.useOverflowed(c),n=e&&typeof e=="string",{firstPartLabel:o,secondPartLabel:s}=n&&t&&r?u.truncateString(r,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:n&&t&&!!r,isOverflowed:t,ref:i,firstPartLabel:o,secondPartLabel:s}};exports.useLogic=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(t,e)=>{const r=e.slice(0,-t),c=e.slice(-t);return{firstPartLabel:r,secondPartLabel:c}};exports.truncateString=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs"),i=require("@mui/material"),n=({...e})=>t.j.jsx(i.Pagination,{shape:"rounded",...e});exports.Pagination=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_virtual/jsx-runtime.cjs"),t=require("@mui/material"),a=e=>r.j.jsx(t.Paper,{...e});exports.Paper=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles.cjs"),t=e.Wrapper,s=e.Wrapper.withComponent;exports.Image=t;exports.setDefaultImageStyles=s;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@mui/material"),r=require("../constants.cjs"),e=o.styled("img",{shouldForwardProp:t=>t!=="size"})`
|
|
2
|
-
display: block;
|
|
3
|
-
|
|
4
|
-
width: ${({width:t})=>t||"auto"};
|
|
5
|
-
max-width: 100%;
|
|
6
|
-
height: ${({height:t})=>t||"auto"};
|
|
7
|
-
margin: auto auto
|
|
8
|
-
${({theme:t,size:a})=>a===r.SIZE.Small?t.spacing(4):t.spacing(6)};
|
|
9
|
-
|
|
10
|
-
color: ${({theme:t})=>t.palette.grey[900]};
|
|
11
|
-
|
|
12
|
-
object-fit: contain;
|
|
13
|
-
|
|
14
|
-
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
15
|
-
margin: auto auto ${({theme:t})=>t.spacing(8)};
|
|
16
|
-
}
|
|
17
|
-
`;exports.Wrapper=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_virtual/jsx-runtime.cjs"),d=require("react"),f=require("../ConfigProvider/ConfigProvider.cjs"),s=require("./Image/Image.cjs"),l=require("./constants.cjs"),t=require("./styles.cjs"),m=({className:j,title:g,imgSrc:a,imgAlt:I,description:i,Actions:c,size:e="small",imgWidth:u,renderImage:n})=>{const o=d.useContext(f.ConfigContext).components?.placeholder?.defaultProps?.renderImage,h=d.useMemo(()=>n&&s.setDefaultImageStyles(n)||o&&s.setDefaultImageStyles(o)||s.Image,[n,o]);return r.j.jsxs(t.Wrapper,{$size:e,className:j,children:[r.j.jsxs(t.InnerContainer,{$size:e,children:[a&&r.j.jsx(h,{src:a,alt:I,width:u||l.IMAGE_WIDTH[e],height:u?"auto":l.IMAGE_HEIGHT[e],size:e}),r.j.jsx(t.Title,{$size:e,variant:l.TITLE_HEADER_LEVEL[e],children:g}),i&&r.j.jsx(t.Description,{$size:e,component:"div",variant:"body1",children:i})]}),c&&r.j.jsx(t.Footer,{children:c})]})};exports.Placeholder=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E={Small:"small",Medium:"medium",Large:"large"},e={[E.Small]:"239px",[E.Medium]:"323px",[E.Large]:"458px"},l={[E.Small]:"119px",[E.Medium]:"161px",[E.Large]:"229px"},I={[E.Small]:"384px",[E.Medium]:"400px",[E.Large]:"460px"},a={[E.Small]:"h5",[E.Medium]:"h4",[E.Large]:"h3"};exports.IMAGE_HEIGHT=l;exports.IMAGE_WIDTH=e;exports.MAX_INNER_WIDTH=I;exports.SIZE=E;exports.TITLE_HEADER_LEVEL=a;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@mui/material"),a=require("../Typography/Typography.cjs"),n=require("./constants.cjs"),r=t=>t!=="$size",i=o.styled("div",{shouldForwardProp:r})`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: ${({theme:t,$size:e})=>e===n.SIZE.Small?t.spacing(4):t.spacing(6)};
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
padding: ${({theme:t})=>t.spacing(4)};
|
|
11
|
-
|
|
12
|
-
background-color: ${({theme:t})=>t.palette.background.paper};
|
|
13
|
-
|
|
14
|
-
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
15
|
-
display: grid;
|
|
16
|
-
grid-template-columns: 100%;
|
|
17
|
-
grid-template-rows: 1fr max-content;
|
|
18
|
-
gap: ${({theme:t})=>t.spacing(4)};
|
|
19
|
-
}
|
|
20
|
-
`,p=o.styled("div",{shouldForwardProp:r})`
|
|
21
|
-
max-width: ${({$size:t})=>n.MAX_INNER_WIDTH[t]};
|
|
22
|
-
margin: 0 auto;
|
|
23
|
-
`,s=o.styled(a.Typography,{shouldForwardProp:r})`
|
|
24
|
-
margin-bottom: ${({theme:t,$size:e})=>e===n.SIZE.Small?t.spacing(2):t.spacing(4)};
|
|
25
|
-
|
|
26
|
-
text-align: center;
|
|
27
|
-
|
|
28
|
-
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
29
|
-
margin-bottom: ${({theme:t})=>t.spacing(4)};
|
|
30
|
-
|
|
31
|
-
font-size: ${({theme:t})=>t.typography.pxToRem(20)};
|
|
32
|
-
font-weight: ${({theme:t})=>t.typography.fontWeightMedium};
|
|
33
|
-
color: ${({theme:t})=>t.palette.text.secondary};
|
|
34
|
-
}
|
|
35
|
-
`,c=o.styled(a.Typography,{shouldForwardProp:r})`
|
|
36
|
-
display: block;
|
|
37
|
-
|
|
38
|
-
font-size: ${({$size:t,theme:e})=>t===n.SIZE.Large?e.typography.pxToRem(16):e.typography.body1.fontSize};
|
|
39
|
-
text-align: center;
|
|
40
|
-
|
|
41
|
-
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
42
|
-
font-size: ${({theme:t})=>t.typography.body1.fontSize};
|
|
43
|
-
color: ${({theme:t})=>t.palette.text.secondary};
|
|
44
|
-
}
|
|
45
|
-
`,l=o.styled("footer")`
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-wrap: wrap;
|
|
48
|
-
gap: ${({theme:t})=>t.spacing(2)};
|
|
49
|
-
justify-content: center;
|
|
50
|
-
|
|
51
|
-
color: ${({theme:t})=>t.palette.grey[900]};
|
|
52
|
-
|
|
53
|
-
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
gap: ${({theme:t})=>t.spacing(3)};
|
|
56
|
-
|
|
57
|
-
margin-top: auto;
|
|
58
|
-
}
|
|
59
|
-
`;exports.Description=c;exports.Footer=l;exports.InnerContainer=p;exports.Title=s;exports.Wrapper=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/jsx-runtime.cjs"),p=require("@mui/material"),a=require("../../hooks/useViewportType/useViewportType.cjs");require("react");const j=require("../BottomDrawer/BottomDrawer.cjs"),n=({children:e,onClose:r,open:t,title:i,...u})=>{const{isMobile:s}=a.useViewportType();return s?o.j.jsx(j.BottomDrawer,{title:i,onClose:r,open:t,children:e}):o.j.jsx(p.Popover,{open:t,onClose:r,...u,children:e})};exports.Popover=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../_virtual/jsx-runtime.cjs"),s=require("@mui/material"),i=({className:e,value:r})=>{const t=Math.max(0,Math.min(r,100));return a.j.jsx(s.LinearProgress,{className:e,variant:"determinate",value:t})};exports.ProgressBar=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/jsx-runtime.cjs"),i=require("@mui/material"),c=require("../constants.cjs"),s=({...r})=>e.j.jsxs(i.SvgIcon,{viewBox:"0 0 24 24",...r,children:[e.j.jsx("circle",{cx:"12",cy:"12",r:"10",className:c.DEFAULT_ICON_CLASSES.outerCircle}),e.j.jsx("circle",{cx:"12",cy:"12",r:"8",className:c.DEFAULT_ICON_CLASSES.innerCircle})]}),l=({...r})=>e.j.jsxs(i.SvgIcon,{viewBox:"0 0 24 24",...r,children:[e.j.jsx("circle",{cx:"12",cy:"12",r:"10",className:c.CHECKED_ICON_CLASSES.outerCircle}),e.j.jsx("circle",{cx:"12",cy:"12",r:"4",className:c.CHECKED_ICON_CLASSES.innerCircle})]});exports.CheckedCircleIcon=l;exports.DefaultIcon=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs"),r=require("./Icon/Icon.cjs"),s=require("./styles.cjs"),c=({icon:t=e.j.jsx(r.DefaultIcon,{}),checkedIcon:o=e.j.jsx(r.CheckedCircleIcon,{}),...i})=>e.j.jsx(s.StyledRadio,{icon:t,checkedIcon:o,...i});exports.Radio=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={innerCircle:"RadioIcon-innerCircle",outerCircle:"RadioIcon-outerCircle"},C={innerCircle:"RadioCheckedIcon-innerCircle",outerCircle:"RadioCheckedIcon-outerCircle"};exports.CHECKED_ICON_CLASSES=C;exports.DEFAULT_ICON_CLASSES=e;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@mui/material"),r=require("./constants.cjs"),l=e=>o.css`
|
|
2
|
-
&.MuiRadio-root:not(.Mui-disabled) {
|
|
3
|
-
color: ${e.palette.red[800]};
|
|
4
|
-
|
|
5
|
-
&:hover {
|
|
6
|
-
& > svg {
|
|
7
|
-
color: ${e.palette.red[700]};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`,i=o.styled(o.Radio,{shouldForwardProp:e=>e!=="isError"})`
|
|
12
|
-
padding: 5px;
|
|
13
|
-
|
|
14
|
-
color: ${({theme:e})=>e.palette.grey[300]};
|
|
15
|
-
|
|
16
|
-
border-radius: unset;
|
|
17
|
-
|
|
18
|
-
& > svg > .${r.DEFAULT_ICON_CLASSES.innerCircle} {
|
|
19
|
-
fill: ${({theme:e})=>e.palette.common.white};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
background: none;
|
|
24
|
-
|
|
25
|
-
& > svg > .${r.DEFAULT_ICON_CLASSES.innerCircle} {
|
|
26
|
-
fill: ${({theme:e})=>e.palette.grey[100]};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.Mui-disabled:not(.Mui-checked) {
|
|
31
|
-
color: ${({theme:e})=>e.palette.grey[200]};
|
|
32
|
-
|
|
33
|
-
& > svg > .${r.DEFAULT_ICON_CLASSES.innerCircle} {
|
|
34
|
-
fill: ${({theme:e})=>e.palette.grey[200]};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.Mui-checked {
|
|
39
|
-
color: ${({theme:e})=>e.palette.primary.main};
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
& > svg {
|
|
43
|
-
color: ${({theme:e})=>e.palette.primary[700]};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.Mui-disabled {
|
|
48
|
-
color: ${({theme:e})=>e.palette.grey[400]};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
& > svg > .${r.CHECKED_ICON_CLASSES.innerCircle} {
|
|
52
|
-
fill: ${({theme:e})=>e.palette.common.white};
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
${({isError:e,theme:t})=>e&&l(t)}
|
|
57
|
-
`;exports.StyledRadio=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs"),a=require("../Radio/Radio.cjs"),u=require("../Tooltip/Tooltip.cjs"),d=require("./styles.cjs"),j=({id:o,disabled:t,label:r,isError:i,disabledReason:l,formControlLabelProps:n,...s})=>e.j.jsx(u.Tooltip,{title:t&&l,placement:"bottom-start",withoutContainer:!1,children:e.j.jsx(d.StyledFormControlLabel,{...n,label:r,control:e.j.jsx(a.Radio,{...s,isError:i}),disabled:t})},o);exports.RadioField=j;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_virtual/jsx-runtime.cjs"),c=require("@mui/material"),p=require("react"),j=require("../FormControl/FormControl.cjs"),q=require("../FormLabel/FormLabel.cjs"),m=require("../Tooltip/Tooltip.cjs");require("./RadioGroupContext/RadioGroupContext.cjs");const x=require("./RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.cjs"),b=t=>{const{children:l,groupLabel:e,errorText:u,isError:o,required:d,formControlProps:n,row:s,...a}=t,i=p.useId();return r.j.jsx(m.Tooltip,{title:o&&u,placement:"right-start",followCursor:!0,children:r.j.jsxs(j.FormControl,{...n,children:[e&&r.j.jsx(q.FormLabel,{id:i,required:d,children:e}),r.j.jsx(c.RadioGroup,{...a,"aria-labelledby":i,row:s,children:r.j.jsx(x.RadioGroupContextProvider,{isError:o,children:l})})]})})};exports.RadioGroup=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext({isError:!1});exports.RadioGroupContext=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../RadioGroupContext.cjs"),i=({children:e,isError:o})=>r.j.jsx(t.RadioGroupContext.Provider,{value:{isError:o},children:e});exports.RadioGroupContextProvider=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/jsx-runtime.cjs"),o=require("react"),t=require("../RadioField/RadioField.cjs");require("@mui/material"),require("../FormLabel/styles.cjs"),require("../Tooltip/styles.cjs");const u=require("../RadioGroup/RadioGroupContext/RadioGroupContext.cjs"),d=e=>{const{isError:r}=o.useContext(u.RadioGroupContext);return i.j.jsx(t.RadioField,{...e,isError:r})};exports.RadioGroupField=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../_virtual/jsx-runtime.cjs"),l=require("react"),r=require("./styles.cjs"),C=l.forwardRef(({margin:s="none",placeholder:d="Поиск",onChange:u,disabled:c,value:S,defaultValue:j,...v},f)=>{const[a,o]=l.useState(`${j||S||""}`),e=l.useRef(null),h=t=>{o(t.target.value),u?.(t)},b=()=>{o(""),e.current&&(e.current.value="");const t=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(t,"target",{writable:!0,value:e.current}),u?.(t),e.current?.focus()},y=()=>{e.current?.focus()},i=!!a.length;return n.j.jsx(r.StyledTextField,{margin:s,placeholder:d,startAdornment:n.j.jsx(r.StyledSearchIcon,{onClick:y}),disabled:c,endAdornment:n.j.jsx(r.StyledIconButton,{variant:"text",onClick:b,disabled:c||!i,$isActive:i,children:n.j.jsx(r.StyledCloseFillSm,{})}),onChange:h,value:a,ref:f,inputRef:e,...v})});exports.SearchField=C;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),l=require("lucide-react"),o=require("../IconButton/IconButton.cjs"),r=require("../TextField/TextField.cjs"),i=t.styled(l.Search)`
|
|
2
|
-
color: ${({theme:e})=>e.palette.grey[600]};
|
|
3
|
-
`,c=t.styled(o.IconButton,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
|
|
4
|
-
opacity: ${({$isActive:e})=>e?1:0};
|
|
5
|
-
|
|
6
|
-
&:hover {
|
|
7
|
-
background-color: transparent;
|
|
8
|
-
|
|
9
|
-
svg {
|
|
10
|
-
fill: ${({theme:e})=>e.palette.grey[700]};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`,d=t.styled(r.TextField)`
|
|
14
|
-
& .MuiFormHelperText-root {
|
|
15
|
-
/* TODO Убрать после реализации https://track.astral.ru/soft/browse/UIKIT-1333 */
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
`,n=t.styled(l.CircleX)`
|
|
19
|
-
width: 16px;
|
|
20
|
-
height: 16px;
|
|
21
|
-
|
|
22
|
-
fill: ${({theme:e})=>e.palette.grey[500]};
|
|
23
|
-
`;exports.StyledCloseFillSm=n;exports.StyledIconButton=c;exports.StyledSearchIcon=i;exports.StyledTextField=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs"),g=require("@mui/material"),P=require("../CircularProgress/CircularProgress.cjs"),R=require("../FormHelperText/FormHelperText.cjs");require("react"),require("../FormHelperText/FormHelperTextContent/styles.cjs");const k=require("../MenuItem/MenuItem.cjs"),M=require("../TagsList/TagsList.cjs"),m=require("lucide-react"),v=require("./constants.cjs"),t=require("./styles.cjs"),w=require("./useLogic/useLogic.cjs"),D=({onClick:l,disabled:n,ref:o})=>e.j.jsx(t.StyledIconButton,{disabled:n,ref:o,onClick:l,variant:"text",title:v.CLEAR_TEXT,"aria-label":v.CLEAR_TEXT,children:e.j.jsx(t.StyledCloseFillSm,{})}),H=({required:l,getOptionLabel:n=i=>i,placeholder:o,helperText:S,hideHelperText:q=!1,loading:u,success:p,children:j,disabled:c,error:d,label:x,fullWidth:C,onChange:s,isShowClearButton:A,...h})=>{const{isOpened:i,isShowingClearButton:T,isNoData:f,onClearAll:I,openSelect:a,closeSelect:E,resetButtonRef:L}=w.useLogic({...h,children:j,onChange:s,isShowClearButton:A}),B=r=>{if(Array.isArray(r)&&r.length){const F=y=>s?.(y?{target:{value:y}}:{target:{value:[]}},void 0);return e.j.jsx(M.TagsList,{data:r,keyId:"value",getOptionLabel:n,onChange:F,onClick:a})}return(Array.isArray(r)||typeof r=="string")&&!r.length?o:n(r)};return e.j.jsxs(g.FormControl,{error:d,fullWidth:C,children:[x&&e.j.jsx(g.InputLabel,{htmlFor:"grouped-select",required:l,children:x}),e.j.jsxs(t.StyledSelect,{...h,open:i,disabled:c,onOpen:a,onClose:E,renderValue:B,IconComponent:()=>null,displayEmpty:!0,fullWidth:C,onChange:s,endAdornment:e.j.jsxs(t.EndAdornmentWrapper,{children:[T&&e.j.jsx(D,{disabled:c,ref:L,onClick:I}),e.j.jsx(t.StyledIconButton,{variant:"text",disabled:c,onClick:a,children:i?e.j.jsx(m.ChevronUp,{}):e.j.jsx(m.ChevronDown,{})})]}),children:[e.j.jsx(t.Placeholder,{value:"",children:o}),u&&e.j.jsx(t.ProgressWrapper,{children:e.j.jsx(P.CircularProgress,{color:"primary"})}),!u&&j,!u&&f&&e.j.jsx(k.MenuItem,{disabled:!0,children:"Нет данных"})]}),!q&&e.j.jsx(R.FormHelperText,{error:d,success:p,children:S})]})};exports.Select=H;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Очистить";exports.CLEAR_TEXT=e;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),r=require("lucide-react"),l=require("../IconButton/IconButton.cjs"),n=require("../MenuItem/MenuItem.cjs"),o=t.styled("div")`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
|
|
6
|
-
min-height: 64px;
|
|
7
|
-
|
|
8
|
-
.MuiCircularProgress-root {
|
|
9
|
-
margin-top: ${({theme:e})=>e.spacing(5)};
|
|
10
|
-
|
|
11
|
-
color: ${({theme:e})=>e.palette.grey[900]};
|
|
12
|
-
}
|
|
13
|
-
`,i=t.styled(n.MenuItem)`
|
|
14
|
-
display: none;
|
|
15
|
-
`,s=t.styled(l.IconButton)`
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: transparent;
|
|
20
|
-
|
|
21
|
-
svg {
|
|
22
|
-
fill: ${({theme:e})=>e.palette.grey[700]};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
27
|
-
width: 32px;
|
|
28
|
-
height: 32px;
|
|
29
|
-
}
|
|
30
|
-
`,a=t.styled(r.CircleX)`
|
|
31
|
-
width: 16px;
|
|
32
|
-
height: 16px;
|
|
33
|
-
|
|
34
|
-
fill: ${({theme:e})=>e.palette.grey[500]};
|
|
35
|
-
`,c=t.styled("div")`
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
|
|
39
|
-
margin-left: auto;
|
|
40
|
-
`,d=t.styled(t.Select)`
|
|
41
|
-
.${t.selectClasses.select} {
|
|
42
|
-
padding-right: ${({theme:e})=>e.spacing(2)} !important;
|
|
43
|
-
}
|
|
44
|
-
`;exports.EndAdornmentWrapper=c;exports.Placeholder=i;exports.ProgressWrapper=o;exports.StyledCloseFillSm=a;exports.StyledIconButton=s;exports.StyledSelect=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react");function y({value:e,onChange:o,children:s,open:r,defaultOpen:c,multiple:l,isShowClearButton:i=!0}){const[u,n]=t.useState(c||r||!1),a=t.useRef(null),g=()=>n(!0),f=()=>n(!1),p=()=>{const h={target:{value:l?[]:""}};o?.call({},h)},S=i&&!(!e||Array.isArray(e)&&e.length===0||typeof e=="string"&&e.length===0),d=!t.Children.count(s);return{isOpened:u,isNoData:d,isShowingClearButton:S,resetButtonRef:a,openSelect:g,closeSelect:f,onClearAll:p}}exports.useLogic=y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs"),o=require("./styles.cjs"),l=e=>t.j.jsx(o.StyledSkeleton,{...e});exports.Skeleton=l;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mui/material"),l=e.styled(e.Skeleton)`
|
|
2
|
-
/* stylelint-disable-next-line */
|
|
3
|
-
background-color: ${({theme:t})=>e.alpha(t.palette.grey[900],.12)};
|
|
4
|
-
|
|
5
|
-
/* TODO: Заменить на значения из темы в рамках
|
|
6
|
-
https://track.astral.ru/soft/browse/UIKIT-1400 */
|
|
7
|
-
&.${e.skeletonClasses.text} {
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&.${e.skeletonClasses.rounded} {
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
}
|
|
14
|
-
`;exports.StyledSkeleton=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs"),i=require("react"),u=require("./styles.cjs"),s=i.forwardRef((e,r)=>t.j.jsx(u.StyledSwitch,{ref:r,...e}));exports.Switch=s;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mui/material"),s=e.styled(e.Switch)`
|
|
2
|
-
.Mui-focusVisible {
|
|
3
|
-
border: 2px solid ${({theme:t})=>t.palette.primary[400]};
|
|
4
|
-
}
|
|
5
|
-
${`.${e.switchClasses.track}`}::before {
|
|
6
|
-
display: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
${`.${e.switchClasses.track}`}::after {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
`;exports.StyledSwitch=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs"),r=require("./styles.cjs"),s=e=>t.j.jsx(r.StyledTab,{...e});exports.Tab=s;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),r=t.styled(t.Tab)`
|
|
2
|
-
min-height: 36px;
|
|
3
|
-
margin-right: ${({theme:e})=>e.spacing(4)};
|
|
4
|
-
padding: 0;
|
|
5
|
-
|
|
6
|
-
line-height: 20px;
|
|
7
|
-
color: ${({theme:e})=>e.palette.grey[900]};
|
|
8
|
-
|
|
9
|
-
&:last-child {
|
|
10
|
-
margin-right: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&:hover {
|
|
14
|
-
color: ${({theme:e})=>e.palette.primary[800]};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:active {
|
|
18
|
-
color: ${({theme:e})=>e.palette.primary[900]};
|
|
19
|
-
}
|
|
20
|
-
`;exports.StyledTab=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs"),s=require("@mui/material"),i=require("./styles.cjs"),j=({nextFeatureFlags:t,...r})=>t?.hasBottomDivider?e.j.jsxs(i.Container,{children:[e.j.jsx(s.Tabs,{...r}),e.j.jsx(i.Divider,{})]}):e.j.jsx(s.Tabs,{...r});exports.Tabs=j;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mui/material"),i=e.styled("div")`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: flex-start;
|
|
5
|
-
|
|
6
|
-
width: 100%;
|
|
7
|
-
`,o=e.styled("div")`
|
|
8
|
-
position: relative;
|
|
9
|
-
z-index: -1;
|
|
10
|
-
bottom: 2px;
|
|
11
|
-
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 2px;
|
|
14
|
-
|
|
15
|
-
background-color: ${t=>t.theme.palette.grey[200]};
|
|
16
|
-
`;exports.Container=i;exports.Divider=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs"),j=require("react"),d=require("lucide-react");require("@mui/material"),require("remeda"),require("clsx"),require("../Button/styles.cjs");const q=require("../../theme/hooks/useTheme/index.cjs"),r=require("./styles.cjs"),m=j.forwardRef(({color:o="grey",variant:t="contained",deleteIcon:s,size:l="small",label:a,startAddon:u,endAddon:i,...n},c)=>{q.useTheme();const g=e.j.jsxs(r.LabelContainer,{children:[u&&e.j.jsx(u,{color:r.getBadgeColor({variant:t,tagColor:o})}),a,i&&e.j.jsx(i,{color:r.getBadgeColor({variant:t,tagColor:o})})]});return e.j.jsx(r.StyledTag,{ref:c,customColor:o,customVariant:t,customSize:l,label:g,...n,deleteIcon:s||e.j.jsx(d.X,{})})});exports.Tag=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(e=>(e.DEFAULT="default",e.PRIMARY="primary",e.ERROR="error",e.GREY="grey",e.SUCCESS="success",e.WARNING="warning",e))(r||{}),t=(e=>(e.CONTAINED="contained",e.LIGHT="light",e.TEXT="text",e))(t||{}),u=(e=>(e.DEFAULT="default",e.HOVER="hover",e.ACTIVE="active",e))(u||{});exports.TagColors=r;exports.TagStates=u;exports.TagVariants=t;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@mui/material"),s=require("../Container/Container.cjs"),a=require("./enums.cjs"),d={small:"20px",medium:"24px",large:"32px"},u=e=>{const{tagColor:r,variant:t}=e;return t===a.TagVariants.CONTAINED?"white":{[a.TagColors.PRIMARY]:"primary",[a.TagColors.ERROR]:"error",[a.TagColors.GREY]:"grey",[a.TagColors.SUCCESS]:"success",[a.TagColors.WARNING]:"warning",[a.TagColors.DEFAULT]:"grey"}[r||"default"]},y=({theme:e,rounded:r})=>r?"100px":e.shape.small,f=({theme:e,rounded:r})=>r?"100px":`0 ${e.shape.small} ${e.shape.small} 0`,g=({theme:e,customColor:r,customVariant:t,disabled:n})=>{if(n)return e.palette.grey[100];if(t==="text")return"transparent";const l={contained:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],grey:e.palette.grey[300],default:e.palette.background.element},light:{primary:e.palette.primary[100],error:e.palette.red[100],success:e.palette.green[100],warning:e.palette.yellow[100],grey:e.palette.grey[100],default:e.palette.background.element}};return t&&r?l[t][r]:!t&&r?l.contained[r]:e.palette.grey[300]},o=({theme:e,customColor:r,customVariant:t,disabled:n})=>{if(n)return e.palette.text.disabled;if(t==="text")return e.palette.grey[900];const l={contained:{primary:e.palette.primary.contrastText,error:e.palette.error.contrastText,success:e.palette.warning.contrastText,warning:e.palette.success.contrastText,default:e.palette.text.primary,grey:e.palette.grey[900]},light:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],default:e.palette.text.primary,grey:e.palette.grey[900]}};return!t&&!r?e.palette.grey[900]:!t&&r!=="grey"?e.palette.common.white:r?t&&r?l[t][r]:e.palette.text.primary:l.contained.default},x=({theme:e,rounded:r,customSize:t})=>{if(r)return e.spacing(0,2);switch(t){case"small":return e.spacing(0,1);case"medium":case"large":return e.spacing(0,2)}},p=({theme:e,iconState:r,customVariant:t,customColor:n})=>{const l={contained:{primary:e.palette.primary[600],error:e.palette.red[600],success:e.palette.green[600],warning:e.palette.yellow[600],grey:e.palette.grey[100],default:e.palette.grey[300]},light:{primary:e.palette.primary[300],error:e.palette.red[300],success:e.palette.green[300],warning:e.palette.yellow[300],grey:e.palette.grey[300],default:e.palette.grey[300]}};if(r!=="default"){if((t==="contained"||t==="light")&&n)return l[t][n||"default"];if(t==="text")return l.light.grey}return"transparent"},i=({customVariant:e,customColor:r,theme:t})=>e==="contained"&&r!=="grey"&&r!=="default"?t.palette.common.white:t.palette.grey[900],T=c.styled(c.Chip,{shouldForwardProp:e=>e!=="customColor"&&e!=="customVariant"&&e!=="rounded"&&e!=="customSize"})`
|
|
2
|
-
user-select: none;
|
|
3
|
-
|
|
4
|
-
height: ${({customSize:e})=>d[e]};
|
|
5
|
-
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
|
|
8
|
-
background-color: ${g};
|
|
9
|
-
border-radius: ${y};
|
|
10
|
-
|
|
11
|
-
&:hover {
|
|
12
|
-
color: ${o};
|
|
13
|
-
|
|
14
|
-
background-color: ${g};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:active {
|
|
18
|
-
color: ${o};
|
|
19
|
-
|
|
20
|
-
background-color: ${g};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.MuiChip-label {
|
|
24
|
-
padding: ${x};
|
|
25
|
-
|
|
26
|
-
color: ${o};
|
|
27
|
-
|
|
28
|
-
&:hover {
|
|
29
|
-
color: ${o};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:active {
|
|
33
|
-
color: ${o};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.MuiChip-deleteIcon {
|
|
38
|
-
width: 20px;
|
|
39
|
-
height: 20px;
|
|
40
|
-
margin: 0;
|
|
41
|
-
|
|
42
|
-
color: ${i};
|
|
43
|
-
|
|
44
|
-
background: ${e=>p({...e,iconState:a.TagStates.DEFAULT})};
|
|
45
|
-
border-radius: ${f};
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
color: ${i};
|
|
49
|
-
|
|
50
|
-
background: ${e=>p({...e,iconState:a.TagStates.HOVER})};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:active {
|
|
54
|
-
color: ${i};
|
|
55
|
-
|
|
56
|
-
background: ${e=>p({...e,iconState:a.TagStates.ACTIVE})};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.Mui-disabled {
|
|
61
|
-
opacity: 1;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.MuiChip-avatar {
|
|
65
|
-
width: 16px;
|
|
66
|
-
height: 16px;
|
|
67
|
-
margin: 2px;
|
|
68
|
-
|
|
69
|
-
color: ${o};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.MuiChip-icon {
|
|
73
|
-
width: 16px;
|
|
74
|
-
height: 16px;
|
|
75
|
-
}
|
|
76
|
-
`,C=c.styled(s.Container)`
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: flex-start;
|
|
79
|
-
`;exports.LabelContainer=C;exports.StyledTag=T;exports.getBadgeColor=u;exports.getDeleteIconColor=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/jsx-runtime.cjs"),l=require("./styles.cjs"),d=require("./utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.cjs"),i=({color:e="primary",checked:r,disabled:a,checkedColor:g,...t})=>o.j.jsx(l.StyledBadge,{withBorder:!1,color:d.getCheckableTagBadgeBgColor({disabled:a,checked:r,checkedColor:g,color:e}),...t});exports.TagBadge=i;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mui/material"),t=require("../Badge/Badge.cjs"),a=e.styled(t.Badge)`
|
|
2
|
-
vertical-align: text-top;
|
|
3
|
-
|
|
4
|
-
&span.MuiBadge-badge {
|
|
5
|
-
position: static;
|
|
6
|
-
transform: none;
|
|
7
|
-
|
|
8
|
-
box-sizing: content-box;
|
|
9
|
-
height: 16px;
|
|
10
|
-
}
|
|
11
|
-
`;exports.StyledBadge=a;
|
package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=({disabled:e,checked:r,checkedColor:t,color:g})=>e?"grey":r?t||"white":g;exports.getCheckableTagBadgeBgColor=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../_virtual/jsx-runtime.cjs"),n=require("./styles.cjs"),u=require("./useLogic/useLogic.cjs"),c=e=>{const{onMouseDown:s}=u.useLogic(),{shrinks:r,isDisabled:o,...t}=e;return i.j.jsx(n.StyledTag,{$shrinks:r,color:"grey",disabled:o,...t,onMouseDown:s})};exports.Tag=c;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),i=require("../../Tag/Tag.cjs"),r=t.styled(i.Tag,{shouldForwardProp:e=>e!=="$shrinks"})`
|
|
2
|
-
min-width: ${({$shrinks:e})=>e?"30px":"unset"};
|
|
3
|
-
max-width: 246px;
|
|
4
|
-
|
|
5
|
-
& {
|
|
6
|
-
.MuiBox-root {
|
|
7
|
-
display: inline;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;exports.StyledTag=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({onMouseDown:o=>{o.stopPropagation()}});exports.useLogic=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs"),n=require("./Tag/Tag.cjs"),d=require("./styles.cjs"),y=require("./useLogic/useLogic.cjs"),b=require("./utils/getKey/getKey.cjs"),q=t=>{const{maxItems:r,tagsContainerRef:o,visibleOptions:l,getTagProps:u}=y.useLogic(t),{className:c,data:e,keyId:j,isDisabled:a,onClick:i}=t;return s.j.jsxs(d.Wrapper,{className:c,ref:o,children:[l?.map((g,m)=>{const T=u(g,m);return s.j.jsx(n.Tag,{isDisabled:a,onClick:i,...T},b.getKey(g,j))}),e&&r<e.length&&s.j.jsx(n.Tag,{isDisabled:a,label:`+${e.length-r}`,onClick:i},"more")]})};exports.TagsList=q;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),R=require("../utils/getElementByText/getElementByText.cjs"),W=({data:t=[],keyId:w,getOptionLabel:h,onChange:y})=>{const[l,a]=d.useState(1),f=d.useRef(!1),u=d.useRef(null),b=(e,o,s)=>{const i=h(t[0]);document.body.appendChild(e);let c=0,n=0;for(let r=1;r<t.length;r+=1){const g=e.firstChild?.cloneNode(!0),x=h(t[r]),C=R.getElementByText(g,i);if(!C)throw new Error("Could not find text node");C.textContent=x,e.appendChild(g);const T=g.getBoundingClientRect().width+s;if(c+T>o)break;n+=1,c+=T}return document.body.removeChild(e),n},m=()=>{const e=u.current;if(!e)throw new Error("Tags container ref is not set");const o=window.getComputedStyle(e),s=Number.parseInt(o.columnGap),i=e.firstElementChild?.getBoundingClientRect().width||0,c=e.getBoundingClientRect().width-i,n=e.cloneNode(!0);for(;n.lastElementChild&&n.children.length>1;)n.removeChild(n.lastElementChild);n.style.visibility="hidden";const r=b(n,c,s);a(1+r)};d.useLayoutEffect(()=>{typeof window>"u"||!t||!t.length||(m(),f.current=!0)},[t]),d.useEffect(()=>{if(typeof window>"u"||!t||!t.length)return;if(!u.current)throw new Error("Tags container ref is not set");const e=new ResizeObserver(()=>{if(f.current){f.current=!1;return}m()});return e.observe(u.current),()=>e.disconnect()},[t]);const p=(e,o)=>{const s=h(e),i=o===l-1&&l<=t.length;return{label:s,shrinks:i,onDelete:()=>{const n=t?.filter(r=>typeof r=="string"?r!==e:r[w]!==e[w]);y(n?.length?n:[])}}},E=t?.slice(0,l);return{maxItems:l,visibleOptions:E,tagsContainerRef:u,getTagProps:p}};exports.useLogic=W;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(e,n)=>{if(e.innerHTML===n)return e;for(let t=0;t<e.children.length;t+=1){const l=r(e.children[t],n);if(l)return l}return null};exports.getElementByText=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e,r)=>{if(typeof e=="string")return e;const t=e[r];return typeof t=="number"?t.toString():t};exports.getKey=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_virtual/jsx-runtime.cjs"),i=require("../TextField/TextField.cjs"),u=({rows:e=7,...t})=>r.j.jsx(i.TextField,{multiline:!0,rows:e,...t});exports.TextArea=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs"),T=require("@mui/material"),l=require("react"),o=require("../FormHelperText/FormHelperTextContent/FormHelperTextContent.cjs"),C=({success:r,error:u,helperText:e,fullWidth:a=!1,startAdornment:s,endAdornment:j,slotProps:m,maxLength:d,trimmed:c=!0,onBlur:x,...i})=>{const f=l.useMemo(()=>{if(r)return"success"},[r]),g=l.useMemo(()=>r?t.j.jsx(o.FormHelperTextContent,{success:!0,children:e}):u?t.j.jsx(o.FormHelperTextContent,{error:!0,children:e}):e||t.j.jsx(t.j.Fragment,{}),[e,r,u]),F=n=>{if(c){const q=n.target.value?.trim();i.onChange?.({...n,target:{...n.target,value:q}})}x?.(n)};return t.j.jsx(T.TextField,{variant:"outlined",fullWidth:a,error:u,color:f,helperText:g,slotProps:{htmlInput:{maxLength:d},input:{startAdornment:s,endAdornment:j},...m},onBlur:F,...i})};exports.TextField=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs"),p=require("./constants.cjs"),r=require("./styles.cjs"),c=o=>{const{title:i,placement:n="top",size:s=p.TooltipSizes.MEDIUM,withoutContainer:l=!0,children:t,...u}=o;return e.j.jsx(r.StyledTooltip,{title:i,size:s,placement:n,arrow:!0,...u,children:l?t:e.j.jsx(r.ContentWrapper,{children:t})})};exports.Tooltip=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(e=>(e.MEDIUM="medium",e.SMALL="small",e))(r||{});exports.TooltipSizes=r;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/jsx-runtime.cjs"),o=require("@mui/material"),p=require("./constants.cjs"),a=o.styled(({className:t,...e})=>i.j.jsx(o.Tooltip,{...e,classes:{popper:t}}))`
|
|
2
|
-
& .${o.tooltipClasses.tooltip} {
|
|
3
|
-
margin: 0;
|
|
4
|
-
|
|
5
|
-
font-size: ${({size:t,theme:e})=>t===p.TooltipSizes.SMALL?e.typography.caption.fontSize:e.typography.body1.fontSize};
|
|
6
|
-
font-weight: ${({theme:t})=>t.typography.fontWeightRegular};
|
|
7
|
-
line-height: ${({size:t,theme:e})=>t===p.TooltipSizes.SMALL?e.typography.caption.lineHeight:e.typography.body1.lineHeight};
|
|
8
|
-
white-space: pre-line;
|
|
9
|
-
|
|
10
|
-
background-color: ${({theme:t})=>t.palette.grey[900]};
|
|
11
|
-
border-radius: ${({theme:t})=>t.shape.small};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
& .${o.tooltipClasses.arrow} {
|
|
15
|
-
font-size: ${({theme:t})=>t.typography.caption.fontSize};
|
|
16
|
-
color: ${({theme:t})=>t.palette.grey[900]};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&&[data-popper-placement*='top'] .${o.tooltipClasses.tooltip} {
|
|
20
|
-
margin-bottom: ${({theme:t})=>t.spacing(2)};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&&[data-popper-placement*='bottom'] .${o.tooltipClasses.tooltip} {
|
|
24
|
-
margin-top: ${({theme:t})=>t.spacing(2)};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&&[data-popper-placement*='left'] .${o.tooltipClasses.tooltip} {
|
|
28
|
-
margin-right: ${({theme:t})=>t.spacing(2)};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&&[data-popper-placement*='right'] .${o.tooltipClasses.tooltip} {
|
|
32
|
-
margin-left: ${({theme:t})=>t.spacing(2)};
|
|
33
|
-
}
|
|
34
|
-
`,l=o.styled("div")`
|
|
35
|
-
display: inherit;
|
|
36
|
-
flex-direction: inherit;
|
|
37
|
-
`;exports.ContentWrapper=l;exports.StyledTooltip=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../_virtual/jsx-runtime.cjs"),n=require("./hooks/useTypographyColor/useTypographyColor.cjs"),i=require("./styles.cjs"),s=r=>{},u=({children:r,color:o,colorIntensity:t="800",component:p,...e})=>{const y=n.useTypographyColor({color:o,colorIntensity:t});return s(e.variant),a.j.jsx(i.TypographyWrapper,{...e,component:p,color:y,children:r})};exports.Typography=u;
|