@dartcom/ui-kit 10.3.6 → 10.3.9

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.
@@ -14,5 +14,8 @@ export declare const icons: {
14
14
  delete: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
15
15
  muiName: string;
16
16
  };
17
+ clear: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
18
+ muiName: string;
19
+ };
17
20
  };
18
21
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/icon/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;CAMjB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/icon/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;CAOjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwCzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAQ1C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwCzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/error-boundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAmBnD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACjC,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,CAOlD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/error-boundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAYnD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACjC,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,CAOlD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { CustomInputProps } from './types';
2
+ declare function CustomInput<T>(props: CustomInputProps<T>): import("react/jsx-runtime").JSX.Element;
3
+ export default CustomInput;
4
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/components/form/input/input.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,iBAAS,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CAqDjD;AAED,eAAe,WAAW,CAAC"}
@@ -1,21 +1,4 @@
1
- import * as React from 'react';
2
- import { StringOrNumber } from '../../lib/types';
3
- import { SxProps } from '@mui/material';
4
- interface CustomListProps<T> {
5
- items: T[];
6
- columnsCount?: number;
7
- title?: string;
8
- getContent: (item: T, index: number) => React.JSX.Element;
9
- getKey: (item: T, index: number) => StringOrNumber;
10
- onClick?: (item: T, index: number) => void;
11
- sx?: {
12
- root?: SxProps;
13
- list?: SxProps;
14
- title?: SxProps;
15
- item?: SxProps;
16
- };
17
- isShowNoData?: boolean;
18
- }
19
- declare function CustomList<T>({ items, columnsCount, getContent, title, getKey, onClick, sx, isShowNoData, }: CustomListProps<T>): import("react/jsx-runtime").JSX.Element;
1
+ import { ListProps } from './types';
2
+ declare function CustomList<T>({ items, columnsCount, getContent, title, getKey, onClick, onClear, sx, isShowNoData, }: ListProps<T>): import("react/jsx-runtime").JSX.Element;
20
3
  export default CustomList;
21
4
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAuB,OAAO,EAAc,MAAM,eAAe,CAAC;AAIzE,UAAU,eAAe,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC1D,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE3C,EAAE,CAAC,EAAE;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;IAEF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,iBAAS,UAAU,CAAC,CAAC,EAAE,EACrB,KAAK,EACL,YAAgB,EAChB,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,EAAE,EAEF,YAAmB,GACpB,EAAE,eAAe,CAAC,CAAC,CAAC,2CA0DpB;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,iBAAS,UAAU,CAAC,CAAC,EAAE,EACrB,KAAK,EACL,YAAgB,EAChB,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,EAAE,EAEF,YAAmB,GACpB,EAAE,SAAS,CAAC,CAAC,CAAC,2CA0Gd;AAED,eAAe,UAAU,CAAC"}
@@ -8,4 +8,6 @@ export declare const Empty: Story;
8
8
  export declare const EmptyAndTitle: Story;
9
9
  export declare const EmptyNoShow: Story;
10
10
  export declare const WithTitle: Story;
11
+ export declare const WithClear: Story;
12
+ export declare const EmptyWithClear: Story;
11
13
  //# sourceMappingURL=list.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.stories.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAO3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC"}
1
+ {"version":3,"file":"list.stories.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAQ3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAwBvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAwB5B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { StringOrNumber } from '../../lib/types';
2
+ import { SystemStyleObject, Theme } from '@mui/system';
3
+ export type ListProps<T> = {
4
+ items: T[];
5
+ columnsCount?: number;
6
+ title?: string;
7
+ getContent: (item: T, index: number) => React.JSX.Element;
8
+ getKey: (item: T, index: number) => StringOrNumber;
9
+ onClick?: (item: T, index: number) => void;
10
+ onClear?: () => void;
11
+ sx?: {
12
+ root?: SystemStyleObject<Theme>;
13
+ list?: SystemStyleObject<Theme>;
14
+ title?: SystemStyleObject<Theme>;
15
+ item?: SystemStyleObject<Theme>;
16
+ };
17
+ isShowNoData?: boolean;
18
+ };
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/list/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC1D,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC;IAEnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,EAAE,CAAC,EAAE;QACH,IAAI,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;IAEF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -4,6 +4,4 @@ declare const meta: Meta<typeof Loader>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
- export declare const Primary: Story;
8
- export declare const Error: Story;
9
7
  //# sourceMappingURL=card.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/loader/card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAO7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC"}
1
+ {"version":3,"file":"card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/loader/card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAS5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAQ7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC"}
@@ -1,5 +1,3 @@
1
1
  import { CircularProgressProps } from '@mui/material';
2
- export type LoaderProps = {
3
- color?: CircularProgressProps['color'];
4
- };
2
+ export type LoaderProps = CircularProgressProps & {};
5
3
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/loader/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;CACxC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/loader/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG,qBAAqB,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,15 +1,16 @@
1
1
  'use strict';
2
2
 
3
+ var material = require('@mui/material');
3
4
  var React = require('react');
4
5
  var require$$2 = require('react-dom');
5
6
  var jsxRuntime = require('react/jsx-runtime');
6
7
  var axios = require('axios');
7
8
  var xDatePickers = require('@mui/x-date-pickers');
8
9
  var AdapterDateFns = require('@mui/x-date-pickers/AdapterDateFns');
9
- var material = require('@mui/material');
10
10
  var styles$2 = require('@mui/material/styles');
11
11
  var ArrowDownwardIcon = require('@mui/icons-material/ArrowDownward');
12
12
  var IconButton$1 = require('@mui/material/IconButton');
13
+ var ClearIcon = require('@mui/icons-material/Clear');
13
14
  var DeleteIcon = require('@mui/icons-material/Delete');
14
15
  var EditIcon = require('@mui/icons-material/Edit');
15
16
  var MovingIcon = require('@mui/icons-material/Moving');
@@ -65,6 +66,18 @@ exports.Operations = void 0;
65
66
  Operations["DELETE"] = "delete";
66
67
  })(exports.Operations || (exports.Operations = {}));
67
68
 
69
+ const useDeviceType = () => {
70
+ const theme = material.useTheme();
71
+ const isMobile = material.useMediaQuery(theme.breakpoints.down('sm'));
72
+ const isTablet = material.useMediaQuery(theme.breakpoints.between('sm', 'md'));
73
+ const isDesktop = material.useMediaQuery(theme.breakpoints.up('md'));
74
+ return {
75
+ isMobile,
76
+ isTablet,
77
+ isDesktop,
78
+ };
79
+ };
80
+
68
81
  const _testApiKeys = {
69
82
  valid: '18c38ab326d12f428e90be50a5141fc8949de497df7f7e0c1796d58e99d006f3',
70
83
  dateExpired: '8cbc5e15e61e649daf57c3a08422ae372c101afb4759036a3864a9fa588ef717',
@@ -16490,13 +16503,7 @@ const copyInformation = async (json) => {
16490
16503
  const jsonString = JSON.stringify(json, null, 2);
16491
16504
  const isSuccess = await navigator.clipboard
16492
16505
  .writeText(jsonString)
16493
- .then(() => {
16494
- showSnackbar({
16495
- message: 'Данные были успешно скопированы в буфер обмена',
16496
- variant: 'success',
16497
- });
16498
- return true;
16499
- })
16506
+ .then(() => true)
16500
16507
  .catch(() => false);
16501
16508
  return isSuccess;
16502
16509
  };
@@ -26782,8 +26789,8 @@ const Provider = (props) => {
26782
26789
  return (jsxRuntime.jsx(xDatePickers.LocalizationProvider, { ...props, dateAdapter: AdapterDateFns.AdapterDateFns, adapterLocale: ru }));
26783
26790
  };
26784
26791
 
26785
- const Loader = ({ color = 'inherit' }) => {
26786
- return jsxRuntime.jsx(material.CircularProgress, { color: color });
26792
+ const Loader = (props) => {
26793
+ return jsxRuntime.jsx(material.CircularProgress, { ...props });
26787
26794
  };
26788
26795
 
26789
26796
  const DartcomInitializeProvider = ({ children, configOptions }) => {
@@ -29530,19 +29537,25 @@ const icons = {
29530
29537
  move: MovingIcon,
29531
29538
  save: SaveIcon,
29532
29539
  delete: DeleteIcon,
29540
+ clear: ClearIcon,
29533
29541
  };
29534
29542
 
29543
+ const StyledIconButton = material.styled(material.IconButton)(() => {
29544
+ return {
29545
+ padding: 0,
29546
+ };
29547
+ });
29535
29548
  const IconButton = ({ title, iconProps, ...props }) => {
29536
29549
  const buttonId = React__namespace.useId();
29537
29550
  const Icon = icons[iconProps.name];
29538
29551
  const iconColor = iconProps.color ?? 'primary';
29539
29552
  if (title) {
29540
- return (jsxRuntime.jsx(material.Tooltip, { title: title, children: jsxRuntime.jsx(material.IconButton, { id: buttonId, ...props, onClick: (event) => {
29553
+ return (jsxRuntime.jsx(material.Tooltip, { title: title, children: jsxRuntime.jsx(StyledIconButton, { id: buttonId, ...props, onClick: (event) => {
29541
29554
  event.stopPropagation();
29542
29555
  props.onClick?.(event);
29543
29556
  }, children: jsxRuntime.jsx(Icon, { fontSize: "medium", color: iconColor }) }) }));
29544
29557
  }
29545
- return (jsxRuntime.jsx(material.IconButton, { id: buttonId, ...props, onClick: (event) => {
29558
+ return (jsxRuntime.jsx(StyledIconButton, { id: buttonId, ...props, onClick: (event) => {
29546
29559
  event.stopPropagation();
29547
29560
  props.onClick?.(event);
29548
29561
  }, children: jsxRuntime.jsx(Icon, { fontSize: "medium", color: iconColor }) }));
@@ -32263,25 +32276,54 @@ const NoData = ({ text = 'Нет данных' }) => {
32263
32276
  }, children: text }));
32264
32277
  };
32265
32278
 
32266
- function CustomList({ items, columnsCount = 1, getContent, title, getKey, onClick, sx, isShowNoData = true, }) {
32267
- const isNoData = items.length === 0;
32268
- return (jsxRuntime.jsxs(material.Box, { sx: {
32269
- display: 'grid',
32270
- gridTemplateColumns: '1fr',
32271
- gap: '15px',
32272
- ...sx?.root,
32273
- }, children: [title ? (jsxRuntime.jsx(material.Typography, { variant: "h6", noWrap: true, sx: {
32274
- textAlign: 'center',
32275
- fontWeight: 700,
32276
- ...sx?.title,
32277
- }, children: title })) : null, isNoData ? (jsxRuntime.jsx(React__namespace.Fragment, { children: isShowNoData ? jsxRuntime.jsx(NoData, {}) : null })) : (jsxRuntime.jsx(material.List, { sx: {
32278
- display: 'grid',
32279
- gridTemplateColumns: `repeat(${columnsCount}, 1fr)`,
32280
- gap: '15px',
32281
- ...sx?.list,
32282
- }, disablePadding: true, children: items.map((item, index) => (jsxRuntime.jsx(material.ListItem, { onClick: () => onClick?.(item, index), sx: {
32283
- ...sx?.item,
32284
- }, disablePadding: true, children: getContent(item, index) }, getKey(item, index)))) }))] }));
32279
+ function CustomList({ items, columnsCount = 1, getContent, title, getKey, onClick, onClear, sx, isShowNoData = true, }) {
32280
+ const isData = React__namespace.useMemo(() => {
32281
+ const isData = items.length > 0;
32282
+ return isData;
32283
+ }, [items.length]);
32284
+ const isShowClear = React__namespace.useMemo(() => {
32285
+ const isShowClear = Boolean(onClear) && isData;
32286
+ return isShowClear;
32287
+ }, [onClear, isData]);
32288
+ return (jsxRuntime.jsxs(material.Box, { sx: ({ spacing, breakpoints }) => {
32289
+ return {
32290
+ display: 'grid',
32291
+ gridTemplateColumns: '1fr',
32292
+ gap: spacing(2),
32293
+ ...sx?.root,
32294
+ [breakpoints.down('sm')]: {
32295
+ gap: spacing(1),
32296
+ },
32297
+ };
32298
+ }, children: [title || onClear ? (jsxRuntime.jsxs(material.Box, { sx: ({ spacing }) => {
32299
+ return {
32300
+ display: 'flex',
32301
+ alignItems: 'center',
32302
+ justifyContent: 'center',
32303
+ gap: spacing(1),
32304
+ };
32305
+ }, children: [title ? (jsxRuntime.jsx(material.Typography, { variant: "h6", noWrap: true, sx: {
32306
+ textAlign: 'center',
32307
+ fontWeight: 700,
32308
+ ...sx?.title,
32309
+ }, children: title })) : null, isShowClear ? (jsxRuntime.jsx(IconButton, { iconProps: {
32310
+ name: 'clear',
32311
+ color: 'warning',
32312
+ }, onClick: onClear })) : null] })) : null, isData ? (jsxRuntime.jsx(material.List, { sx: ({ spacing, breakpoints }) => {
32313
+ return {
32314
+ display: 'grid',
32315
+ gridTemplateColumns: `repeat(${columnsCount}, 1fr)`,
32316
+ gap: spacing(2),
32317
+ ...sx?.list,
32318
+ [breakpoints.down('sm')]: {
32319
+ gap: spacing(1),
32320
+ },
32321
+ };
32322
+ }, disablePadding: true, children: items.map((item, index) => (jsxRuntime.jsx(material.ListItem, { onClick: () => onClick?.(item, index), sx: () => {
32323
+ return {
32324
+ ...sx?.item,
32325
+ };
32326
+ }, disablePadding: true, children: getContent(item, index) }, getKey(item, index)))) })) : (jsxRuntime.jsx(React__namespace.Fragment, { children: isShowNoData ? jsxRuntime.jsx(NoData, {}) : null }))] }));
32285
32327
  }
32286
32328
 
32287
32329
  function useCombinedRefs() {
@@ -39338,8 +39380,8 @@ function C(r = [], e = []) {
39338
39380
  return r.length !== e.length || r.some((t, o) => !Object.is(t, e[o]));
39339
39381
  }
39340
39382
 
39341
- const ErrorFallback = ({ error, resetErrorBoundary, }) => {
39342
- return (jsxRuntime.jsxs(material.Box, { role: "alert", sx: { padding: '20px', background: '#fee' }, children: [jsxRuntime.jsx(material.Typography, { variant: "h2", children: "\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F" }), jsxRuntime.jsx(material.Typography, { variant: "body1", color: "error", children: error.message }), jsxRuntime.jsx(Button, { onClick: resetErrorBoundary, children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })] }));
39383
+ const ErrorFallback = ({ resetErrorBoundary }) => {
39384
+ return (jsxRuntime.jsxs(material.Box, { role: "alert", sx: { padding: '20px', background: '#fee' }, children: [jsxRuntime.jsx(material.Typography, { variant: "h2", children: "\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F" }), jsxRuntime.jsx(Button, { onClick: resetErrorBoundary, children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })] }));
39343
39385
  };
39344
39386
  const CustomErrorBoundary = ({ children, FallbackComponent = ErrorFallback }) => {
39345
39387
  return (jsxRuntime.jsx(m, { FallbackComponent: FallbackComponent, children: children }));
@@ -47895,6 +47937,7 @@ exports.trafficSignConfig = trafficSignConfig;
47895
47937
  exports.trafficSignalConfig = trafficSignalConfig;
47896
47938
  exports.trafficSigns = trafficSigns;
47897
47939
  exports.trafficSignsDop = trafficSignsDop;
47940
+ exports.useDeviceType = useDeviceType;
47898
47941
  exports.useFormContext = useFormContext;
47899
47942
  exports.useGetUser = useGetUser;
47900
47943
  exports.useLazyGetUser = useLazyGetUser;