@astral/ui 0.40.1 → 0.41.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/Button/Button.js CHANGED
@@ -30,13 +30,13 @@ var ButtonBase_1 = require("../ButtonBase");
30
30
  var CircularProgress_1 = require("../CircularProgress");
31
31
  var constants_1 = require("../CircularProgress/constants");
32
32
  exports.Button = (0, react_1.forwardRef)(function (props, ref) {
33
- var _a = props.variant, variant = _a === void 0 ? ButtonBase_1.ButtonVariants.CONTAINED : _a, restProps = __rest(props, ["variant"]);
33
+ var _a = props.variant, variant = _a === void 0 ? ButtonBase_1.ButtonVariants.CONTAINED : _a, _b = props.color, color = _b === void 0 ? ButtonBase_1.ButtonColors.PRIMARY : _b, restProps = __rest(props, ["variant", "color"]);
34
34
  var loadingIndicatorColor = (0, react_1.useMemo)(function () {
35
35
  if (variant !== ButtonBase_1.ButtonVariants.CONTAINED) {
36
36
  return constants_1.CircularProgressColors.PRIMARY;
37
37
  }
38
38
  return constants_1.CircularProgressColors.INVERTED;
39
39
  }, [variant]);
40
- return ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, __assign({ ref: ref }, restProps, { variant: variant, loadingIndicator: (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { color: loadingIndicatorColor, size: "small" }) })));
40
+ return ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, __assign({ ref: ref }, restProps, { variant: variant, color: color, loadingIndicator: (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { color: loadingIndicatorColor, size: "small" }) })));
41
41
  });
42
42
  exports.default = exports.Button;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DataGridColumns, DataGridRow, DataGridSort } from './types';
3
- export declare type DataGridProps<Data = DataGridRow, SortField extends keyof Data = keyof Data> = {
3
+ export declare type DataGridProps<Data extends object = DataGridRow, SortField extends keyof Data = keyof Data> = {
4
4
  /**
5
5
  * @example <DataGrid rows={[{name: 'test'}]} />
6
6
  * Массив данных для таблицы
@@ -41,7 +41,7 @@ export declare type DataGridProps<Data = DataGridRow, SortField extends keyof Da
41
41
  * @example <DataGrid onSort={({fieldId: 'test', sort: 'asc'}) => console.log('sorted')} />
42
42
  * Обработчик сортировки
43
43
  */
44
- onSort: (sorting: DataGridSort<SortField>[]) => void;
44
+ onSort?: (sorting: DataGridSort<SortField>[]) => void;
45
45
  /**
46
46
  * @example <DataGrid Footer={<DataGridPagination />} />
47
47
  * Компонент кастомного футера (н-р Pagination)
@@ -70,4 +70,4 @@ export declare type DataGridProps<Data = DataGridRow, SortField extends keyof Da
70
70
  */
71
71
  minDisplayRows?: number;
72
72
  };
73
- export declare function DataGrid<Data extends object, SortField extends keyof Data>({ columns, rows, selectedRows, sorting, maxHeight, minDisplayRows, onRowClick, onSelectRow, Footer, loading, onSort, keyId, emptyCellValue, }: DataGridProps<Data, SortField>): JSX.Element;
73
+ export declare function DataGrid<Data extends object = DataGridRow, SortField extends keyof Data = keyof Data>({ columns, rows, selectedRows, sorting, maxHeight, minDisplayRows, onRowClick, onSelectRow, Footer, loading, onSort, keyId, emptyCellValue, }: DataGridProps<Data, SortField>): JSX.Element;
@@ -5,7 +5,7 @@ export declare type DataGridHeadProps<Data = DataGridRow, SortField extends keyo
5
5
  selectable: boolean;
6
6
  onSelectAllRows: (event: ChangeEvent<HTMLInputElement>) => void;
7
7
  sorting: DataGridSort<SortField>[];
8
- onSort: (sorting: DataGridSort<SortField>[]) => void;
8
+ onSort?: (sorting: DataGridSort<SortField>[]) => void;
9
9
  uncheckedRowsCount: number;
10
10
  rowsCount: number;
11
11
  };
@@ -32,33 +32,34 @@ function DataGridHead(_a) {
32
32
  var columns = _a.columns, selectable = _a.selectable, onSelectAllRows = _a.onSelectAllRows, rowsCount = _a.rowsCount, onSort = _a.onSort, _b = _a.sorting, sorting = _b === void 0 ? [] : _b, uncheckedRowsCount = _a.uncheckedRowsCount;
33
33
  var checked = (0, react_1.useMemo)(function () { return !Boolean(uncheckedRowsCount) && rowsCount > 0; }, [uncheckedRowsCount, rowsCount]);
34
34
  var indeterminate = (0, react_1.useMemo)(function () { return uncheckedRowsCount > 0 && uncheckedRowsCount < rowsCount; }, [uncheckedRowsCount, rowsCount]);
35
- var handleSort = (0, react_1.useCallback)(function (field, sortable) {
36
- if (sortable) {
37
- var currentSort = sorting.find(function (_a) {
35
+ var handleSort = (0, react_1.useCallback)(function (field) {
36
+ if (!onSort) {
37
+ return;
38
+ }
39
+ var currentSort = sorting.find(function (_a) {
40
+ var fieldId = _a.fieldId;
41
+ return fieldId === field;
42
+ });
43
+ // если для выбранного столбца текущая сортировка ASC - меняем на DESC
44
+ if (currentSort && currentSort.sort === constants_1.SortStates.ASC) {
45
+ var newSorting = __spreadArray(__spreadArray([], sorting.filter(function (_a) {
46
+ var fieldId = _a.fieldId;
47
+ return fieldId !== field;
48
+ }), true), [
49
+ { fieldId: field, sort: constants_1.SortStates.DESC },
50
+ ], false);
51
+ return onSort(newSorting);
52
+ // если для выбранного столбца текущая сортировка DESC - убираем сортировку
53
+ }
54
+ else if (currentSort && currentSort.sort === constants_1.SortStates.DESC) {
55
+ var newSorting = sorting.filter(function (_a) {
38
56
  var fieldId = _a.fieldId;
39
- return fieldId === field;
57
+ return fieldId !== field;
40
58
  });
41
- // если для выбранного столбца текущая сортировка ASC - меняем на DESC
42
- if (currentSort && currentSort.sort === constants_1.SortStates.ASC) {
43
- var newSorting = __spreadArray(__spreadArray([], sorting.filter(function (_a) {
44
- var fieldId = _a.fieldId;
45
- return fieldId !== field;
46
- }), true), [
47
- { fieldId: field, sort: constants_1.SortStates.DESC },
48
- ], false);
49
- return onSort(newSorting);
50
- // если для выбранного столбца текущая сортировка DESC - убираем сортировку
51
- }
52
- else if (currentSort && currentSort.sort === constants_1.SortStates.DESC) {
53
- var newSorting = sorting.filter(function (_a) {
54
- var fieldId = _a.fieldId;
55
- return fieldId !== field;
56
- });
57
- return onSort(newSorting);
58
- }
59
- // если для выбранного столбца нет сортировки - добавляем сортировку ASC
60
- onSort(__spreadArray(__spreadArray([], sorting, true), [{ fieldId: field, sort: constants_1.SortStates.ASC }], false));
59
+ return onSort(newSorting);
61
60
  }
61
+ // если для выбранного столбца нет сортировки - добавляем сортировку ASC
62
+ onSort(__spreadArray(__spreadArray([], sorting, true), [{ fieldId: field, sort: constants_1.SortStates.ASC }], false));
62
63
  }, [sorting, onSort]);
63
64
  var renderColumns = (0, react_1.useMemo)(function () {
64
65
  return columns.map(function (_a) {
@@ -2,7 +2,7 @@ import { CSSProperties } from 'react';
2
2
  import { TableCellProps } from '@mui/material';
3
3
  import { DataGridRow, DataGridSort } from '../types';
4
4
  export declare type DataGridHeadColumnProps<Data = DataGridRow, SortField extends keyof Data = keyof Data> = {
5
- onSort: (field: SortField, sortable?: boolean) => void;
5
+ onSort: (field: SortField) => void;
6
6
  sorting: DataGridSort<SortField>[];
7
7
  label?: string;
8
8
  sortable?: boolean;
@@ -26,10 +26,10 @@ function DataGridHeadColumn(_a) {
26
26
  var hideSortIcon = (0, react_1.useMemo)(function () { return !Boolean(sortParams); }, [sortParams]);
27
27
  var sortDirection = (0, react_1.useMemo)(function () { return (sortParams ? sortParams.sort : constants_1.SortStates.ASC); }, [sortParams]);
28
28
  var handleSortClick = function () {
29
- if (field) {
30
- onSort(field, sortable);
29
+ if (field && sortable) {
30
+ onSort(field);
31
31
  }
32
32
  };
33
- return ((0, jsx_runtime_1.jsxs)(styled_1.StyledTableCell, __assign({ onClick: handleSortClick, align: align, width: width }, { children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, __assign({ variant: "pointer" }, { children: label })), sortable && ((0, jsx_runtime_1.jsx)(styled_1.StyledTableSortLabel, { hideSortIcon: hideSortIcon, direction: sortDirection, active: true }))] })));
33
+ return ((0, jsx_runtime_1.jsxs)(styled_1.StyledTableCell, __assign({ onClick: handleSortClick, align: align, width: width, sortable: sortable }, { children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, __assign({ variant: "pointer" }, { children: label })), sortable && ((0, jsx_runtime_1.jsx)(styled_1.StyledTableSortLabel, { hideSortIcon: hideSortIcon, direction: sortDirection, active: true }))] })));
34
34
  }
35
35
  exports.DataGridHeadColumn = DataGridHeadColumn;
@@ -35,4 +35,5 @@ export declare const StyledTableCell: import("@emotion/styled").StyledComponent<
35
35
  theme?: import("@emotion/react").Theme | undefined;
36
36
  } & {
37
37
  width?: CSSProperties['width'];
38
+ sortable?: boolean | undefined;
38
39
  }, {}, {}>;
@@ -13,8 +13,17 @@ exports.StyledTableSortLabel = (0, styles_1.styled)(Table_1.TableSortLabel)(temp
13
13
  });
14
14
  exports.StyledTableCell = (0, styles_1.styled)(Table_1.TableCell, {
15
15
  shouldForwardProp: function (prop) { return prop !== 'width'; },
16
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", ";\n\n cursor: pointer;\n\n user-select: none;\n"], ["\n width: ", ";\n\n cursor: pointer;\n\n user-select: none;\n"])), function (_a) {
16
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", ";\n\n cursor: ", ";\n padding: ", ";\n color: ", ";\n user-select: none;\n"], ["\n width: ", ";\n\n cursor: ", ";\n padding: ", ";\n color: ", ";\n user-select: none;\n"])), function (_a) {
17
17
  var _b = _a.width, width = _b === void 0 ? 'auto' : _b;
18
18
  return width;
19
+ }, function (_a) {
20
+ var sortable = _a.sortable;
21
+ return (sortable ? 'pointer' : 'initial');
22
+ }, function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.spacing(3, 4);
25
+ }, function (_a) {
26
+ var theme = _a.theme;
27
+ return theme.palette.grey[700];
19
28
  });
20
29
  var templateObject_1, templateObject_2;
@@ -17,7 +17,9 @@ var react_toastify_1 = require("react-toastify");
17
17
  var inject_style_1 = require("react-toastify/dist/inject-style");
18
18
  var constants_1 = require("../constants");
19
19
  var styled_1 = require("./styled");
20
- (0, inject_style_1.injectStyle)();
20
+ if (typeof window !== 'undefined') {
21
+ (0, inject_style_1.injectStyle)();
22
+ }
21
23
  var NotificationContainer = function (props) {
22
24
  return ((0, jsx_runtime_1.jsx)(styled_1.ToastContainerStyled, { children: (0, jsx_runtime_1.jsx)(react_toastify_1.ToastContainer, __assign({ hideProgressBar: true, pauseOnFocusLoss: true, position: constants_1.NOTIFY_POSITIONS.BOTTOM_RIGHT, newestOnTop: false, closeOnClick: false, draggable: false, rtl: false }, props, { closeButton: false, bodyClassName: "notify__body", toastClassName: "notify", progressClassName: "notify__progress", className: "notify__container" })) }));
23
25
  };
@@ -23,17 +23,17 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { LoadingButton } from '@mui/lab';
25
25
  import { forwardRef, useMemo } from 'react';
26
- import { ButtonVariants } from '../ButtonBase';
26
+ import { ButtonColors, ButtonVariants } from '../ButtonBase';
27
27
  import { CircularProgress } from '../CircularProgress';
28
28
  import { CircularProgressColors } from '../CircularProgress/constants';
29
29
  export var Button = forwardRef(function (props, ref) {
30
- var _a = props.variant, variant = _a === void 0 ? ButtonVariants.CONTAINED : _a, restProps = __rest(props, ["variant"]);
30
+ var _a = props.variant, variant = _a === void 0 ? ButtonVariants.CONTAINED : _a, _b = props.color, color = _b === void 0 ? ButtonColors.PRIMARY : _b, restProps = __rest(props, ["variant", "color"]);
31
31
  var loadingIndicatorColor = useMemo(function () {
32
32
  if (variant !== ButtonVariants.CONTAINED) {
33
33
  return CircularProgressColors.PRIMARY;
34
34
  }
35
35
  return CircularProgressColors.INVERTED;
36
36
  }, [variant]);
37
- return (_jsx(LoadingButton, __assign({ ref: ref }, restProps, { variant: variant, loadingIndicator: _jsx(CircularProgress, { color: loadingIndicatorColor, size: "small" }) })));
37
+ return (_jsx(LoadingButton, __assign({ ref: ref }, restProps, { variant: variant, color: color, loadingIndicator: _jsx(CircularProgress, { color: loadingIndicatorColor, size: "small" }) })));
38
38
  });
39
39
  export default Button;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DataGridColumns, DataGridRow, DataGridSort } from './types';
3
- export declare type DataGridProps<Data = DataGridRow, SortField extends keyof Data = keyof Data> = {
3
+ export declare type DataGridProps<Data extends object = DataGridRow, SortField extends keyof Data = keyof Data> = {
4
4
  /**
5
5
  * @example <DataGrid rows={[{name: 'test'}]} />
6
6
  * Массив данных для таблицы
@@ -41,7 +41,7 @@ export declare type DataGridProps<Data = DataGridRow, SortField extends keyof Da
41
41
  * @example <DataGrid onSort={({fieldId: 'test', sort: 'asc'}) => console.log('sorted')} />
42
42
  * Обработчик сортировки
43
43
  */
44
- onSort: (sorting: DataGridSort<SortField>[]) => void;
44
+ onSort?: (sorting: DataGridSort<SortField>[]) => void;
45
45
  /**
46
46
  * @example <DataGrid Footer={<DataGridPagination />} />
47
47
  * Компонент кастомного футера (н-р Pagination)
@@ -70,4 +70,4 @@ export declare type DataGridProps<Data = DataGridRow, SortField extends keyof Da
70
70
  */
71
71
  minDisplayRows?: number;
72
72
  };
73
- export declare function DataGrid<Data extends object, SortField extends keyof Data>({ columns, rows, selectedRows, sorting, maxHeight, minDisplayRows, onRowClick, onSelectRow, Footer, loading, onSort, keyId, emptyCellValue, }: DataGridProps<Data, SortField>): JSX.Element;
73
+ export declare function DataGrid<Data extends object = DataGridRow, SortField extends keyof Data = keyof Data>({ columns, rows, selectedRows, sorting, maxHeight, minDisplayRows, onRowClick, onSelectRow, Footer, loading, onSort, keyId, emptyCellValue, }: DataGridProps<Data, SortField>): JSX.Element;
@@ -5,7 +5,7 @@ export declare type DataGridHeadProps<Data = DataGridRow, SortField extends keyo
5
5
  selectable: boolean;
6
6
  onSelectAllRows: (event: ChangeEvent<HTMLInputElement>) => void;
7
7
  sorting: DataGridSort<SortField>[];
8
- onSort: (sorting: DataGridSort<SortField>[]) => void;
8
+ onSort?: (sorting: DataGridSort<SortField>[]) => void;
9
9
  uncheckedRowsCount: number;
10
10
  rowsCount: number;
11
11
  };
@@ -29,33 +29,34 @@ export function DataGridHead(_a) {
29
29
  var columns = _a.columns, selectable = _a.selectable, onSelectAllRows = _a.onSelectAllRows, rowsCount = _a.rowsCount, onSort = _a.onSort, _b = _a.sorting, sorting = _b === void 0 ? [] : _b, uncheckedRowsCount = _a.uncheckedRowsCount;
30
30
  var checked = useMemo(function () { return !Boolean(uncheckedRowsCount) && rowsCount > 0; }, [uncheckedRowsCount, rowsCount]);
31
31
  var indeterminate = useMemo(function () { return uncheckedRowsCount > 0 && uncheckedRowsCount < rowsCount; }, [uncheckedRowsCount, rowsCount]);
32
- var handleSort = useCallback(function (field, sortable) {
33
- if (sortable) {
34
- var currentSort = sorting.find(function (_a) {
32
+ var handleSort = useCallback(function (field) {
33
+ if (!onSort) {
34
+ return;
35
+ }
36
+ var currentSort = sorting.find(function (_a) {
37
+ var fieldId = _a.fieldId;
38
+ return fieldId === field;
39
+ });
40
+ // если для выбранного столбца текущая сортировка ASC - меняем на DESC
41
+ if (currentSort && currentSort.sort === SortStates.ASC) {
42
+ var newSorting = __spreadArray(__spreadArray([], sorting.filter(function (_a) {
43
+ var fieldId = _a.fieldId;
44
+ return fieldId !== field;
45
+ }), true), [
46
+ { fieldId: field, sort: SortStates.DESC },
47
+ ], false);
48
+ return onSort(newSorting);
49
+ // если для выбранного столбца текущая сортировка DESC - убираем сортировку
50
+ }
51
+ else if (currentSort && currentSort.sort === SortStates.DESC) {
52
+ var newSorting = sorting.filter(function (_a) {
35
53
  var fieldId = _a.fieldId;
36
- return fieldId === field;
54
+ return fieldId !== field;
37
55
  });
38
- // если для выбранного столбца текущая сортировка ASC - меняем на DESC
39
- if (currentSort && currentSort.sort === SortStates.ASC) {
40
- var newSorting = __spreadArray(__spreadArray([], sorting.filter(function (_a) {
41
- var fieldId = _a.fieldId;
42
- return fieldId !== field;
43
- }), true), [
44
- { fieldId: field, sort: SortStates.DESC },
45
- ], false);
46
- return onSort(newSorting);
47
- // если для выбранного столбца текущая сортировка DESC - убираем сортировку
48
- }
49
- else if (currentSort && currentSort.sort === SortStates.DESC) {
50
- var newSorting = sorting.filter(function (_a) {
51
- var fieldId = _a.fieldId;
52
- return fieldId !== field;
53
- });
54
- return onSort(newSorting);
55
- }
56
- // если для выбранного столбца нет сортировки - добавляем сортировку ASC
57
- onSort(__spreadArray(__spreadArray([], sorting, true), [{ fieldId: field, sort: SortStates.ASC }], false));
56
+ return onSort(newSorting);
58
57
  }
58
+ // если для выбранного столбца нет сортировки - добавляем сортировку ASC
59
+ onSort(__spreadArray(__spreadArray([], sorting, true), [{ fieldId: field, sort: SortStates.ASC }], false));
59
60
  }, [sorting, onSort]);
60
61
  var renderColumns = useMemo(function () {
61
62
  return columns.map(function (_a) {
@@ -2,7 +2,7 @@ import { CSSProperties } from 'react';
2
2
  import { TableCellProps } from '@mui/material';
3
3
  import { DataGridRow, DataGridSort } from '../types';
4
4
  export declare type DataGridHeadColumnProps<Data = DataGridRow, SortField extends keyof Data = keyof Data> = {
5
- onSort: (field: SortField, sortable?: boolean) => void;
5
+ onSort: (field: SortField) => void;
6
6
  sorting: DataGridSort<SortField>[];
7
7
  label?: string;
8
8
  sortable?: boolean;
@@ -23,9 +23,9 @@ export function DataGridHeadColumn(_a) {
23
23
  var hideSortIcon = useMemo(function () { return !Boolean(sortParams); }, [sortParams]);
24
24
  var sortDirection = useMemo(function () { return (sortParams ? sortParams.sort : SortStates.ASC); }, [sortParams]);
25
25
  var handleSortClick = function () {
26
- if (field) {
27
- onSort(field, sortable);
26
+ if (field && sortable) {
27
+ onSort(field);
28
28
  }
29
29
  };
30
- return (_jsxs(StyledTableCell, __assign({ onClick: handleSortClick, align: align, width: width }, { children: [_jsx(Typography, __assign({ variant: "pointer" }, { children: label })), sortable && (_jsx(StyledTableSortLabel, { hideSortIcon: hideSortIcon, direction: sortDirection, active: true }))] })));
30
+ return (_jsxs(StyledTableCell, __assign({ onClick: handleSortClick, align: align, width: width, sortable: sortable }, { children: [_jsx(Typography, __assign({ variant: "pointer" }, { children: label })), sortable && (_jsx(StyledTableSortLabel, { hideSortIcon: hideSortIcon, direction: sortDirection, active: true }))] })));
31
31
  }
@@ -35,4 +35,5 @@ export declare const StyledTableCell: import("@emotion/styled").StyledComponent<
35
35
  theme?: import("@emotion/react").Theme | undefined;
36
36
  } & {
37
37
  width?: CSSProperties['width'];
38
+ sortable?: boolean | undefined;
38
39
  }, {}, {}>;
@@ -10,8 +10,17 @@ export var StyledTableSortLabel = styled(TableSortLabel)(templateObject_1 || (te
10
10
  });
11
11
  export var StyledTableCell = styled(TableCell, {
12
12
  shouldForwardProp: function (prop) { return prop !== 'width'; },
13
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", ";\n\n cursor: pointer;\n\n user-select: none;\n"], ["\n width: ", ";\n\n cursor: pointer;\n\n user-select: none;\n"])), function (_a) {
13
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", ";\n\n cursor: ", ";\n padding: ", ";\n color: ", ";\n user-select: none;\n"], ["\n width: ", ";\n\n cursor: ", ";\n padding: ", ";\n color: ", ";\n user-select: none;\n"])), function (_a) {
14
14
  var _b = _a.width, width = _b === void 0 ? 'auto' : _b;
15
15
  return width;
16
+ }, function (_a) {
17
+ var sortable = _a.sortable;
18
+ return (sortable ? 'pointer' : 'initial');
19
+ }, function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.spacing(3, 4);
22
+ }, function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.palette.grey[700];
16
25
  });
17
26
  var templateObject_1, templateObject_2;
@@ -14,7 +14,9 @@ import { ToastContainer } from 'react-toastify';
14
14
  import { injectStyle } from 'react-toastify/dist/inject-style';
15
15
  import { NOTIFY_POSITIONS } from '../constants';
16
16
  import { ToastContainerStyled } from './styled';
17
- injectStyle();
17
+ if (typeof window !== 'undefined') {
18
+ injectStyle();
19
+ }
18
20
  export var NotificationContainer = function (props) {
19
21
  return (_jsx(ToastContainerStyled, { children: _jsx(ToastContainer, __assign({ hideProgressBar: true, pauseOnFocusLoss: true, position: NOTIFY_POSITIONS.BOTTOM_RIGHT, newestOnTop: false, closeOnClick: false, draggable: false, rtl: false }, props, { closeButton: false, bodyClassName: "notify__body", toastClassName: "notify", progressClassName: "notify__progress", className: "notify__container" })) }));
20
22
  };
@@ -33,6 +33,7 @@ export var MuiOutlinedInput = {
33
33
  input: function (_a) {
34
34
  var theme = _a.theme;
35
35
  return {
36
+ height: 20,
36
37
  padding: theme.spacing(2.5, 2),
37
38
  borderRadius: theme.shape.small,
38
39
  '&:disabled': {
@@ -47,14 +48,14 @@ export var MuiOutlinedInput = {
47
48
  inputSizeSmall: function (_a) {
48
49
  var theme = _a.theme;
49
50
  return {
50
- paddingBlock: theme.spacing(2),
51
- paddingInline: theme.spacing(1.5),
51
+ paddingBlock: theme.spacing(1.5),
52
+ paddingInline: theme.spacing(2),
52
53
  };
53
54
  },
54
55
  notchedOutline: function (_a) {
55
56
  var theme = _a.theme;
56
57
  return {
57
- borderWidth: '2px',
58
+ borderWidth: 2,
58
59
  borderColor: theme.palette.grey[300],
59
60
  };
60
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.40.1",
3
+ "version": "0.41.2",
4
4
  "browser": "./src/index.ts",
5
5
  "jest": {
6
6
  "moduleNameMapper": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@astral/icons": "^0.40.1",
11
+ "@astral/icons": "^0.41.2",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.9.0",
14
14
  "@emotion/server": "11.4.0",
@@ -36,6 +36,7 @@ exports.MuiOutlinedInput = {
36
36
  input: function (_a) {
37
37
  var theme = _a.theme;
38
38
  return {
39
+ height: 20,
39
40
  padding: theme.spacing(2.5, 2),
40
41
  borderRadius: theme.shape.small,
41
42
  '&:disabled': {
@@ -50,14 +51,14 @@ exports.MuiOutlinedInput = {
50
51
  inputSizeSmall: function (_a) {
51
52
  var theme = _a.theme;
52
53
  return {
53
- paddingBlock: theme.spacing(2),
54
- paddingInline: theme.spacing(1.5),
54
+ paddingBlock: theme.spacing(1.5),
55
+ paddingInline: theme.spacing(2),
55
56
  };
56
57
  },
57
58
  notchedOutline: function (_a) {
58
59
  var theme = _a.theme;
59
60
  return {
60
- borderWidth: '2px',
61
+ borderWidth: 2,
61
62
  borderColor: theme.palette.grey[300],
62
63
  };
63
64
  },