@astral/ui 4.0.0-alpha.30 → 4.0.0-alpha.32

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.
Files changed (43) hide show
  1. package/components/Banner/index.d.ts +3 -3
  2. package/components/Banner/index.js +3 -3
  3. package/components/ComplianceStatus/styles.js +23 -7
  4. package/components/DataGrid/Loader/styles.js +5 -1
  5. package/components/Fieldset/styles.js +2 -2
  6. package/components/FlowButton/styles.js +5 -0
  7. package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +1 -1
  8. package/components/InfiniteTreeList/index.d.ts +4 -4
  9. package/components/InfiniteTreeList/index.js +3 -4
  10. package/components/JsonViewer/index.d.ts +1 -1
  11. package/components/JsonViewer/index.js +1 -1
  12. package/components/NotFoundPage/styles.js +1 -0
  13. package/components/Notification/index.d.ts +5 -6
  14. package/components/Notification/index.js +4 -6
  15. package/components/PdfViewer/index.d.ts +3 -3
  16. package/components/PdfViewer/index.js +2 -3
  17. package/components/ResizingDataGrid/index.d.ts +3 -3
  18. package/components/ResizingDataGrid/index.js +3 -3
  19. package/components/ResizingDataGridInfinite/index.d.ts +1 -1
  20. package/components/ResizingDataGridInfinite/index.js +1 -1
  21. package/components/theme/components/MuiLinearProgress.js +1 -1
  22. package/node/components/Banner/index.d.ts +3 -3
  23. package/node/components/Banner/index.js +7 -17
  24. package/node/components/ComplianceStatus/styles.js +22 -6
  25. package/node/components/DataGrid/Loader/styles.js +4 -0
  26. package/node/components/Fieldset/styles.js +2 -2
  27. package/node/components/FlowButton/styles.js +5 -0
  28. package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +1 -1
  29. package/node/components/InfiniteTreeList/index.d.ts +4 -4
  30. package/node/components/InfiniteTreeList/index.js +7 -18
  31. package/node/components/JsonViewer/index.d.ts +1 -1
  32. package/node/components/JsonViewer/index.js +3 -15
  33. package/node/components/NotFoundPage/styles.js +1 -0
  34. package/node/components/Notification/index.d.ts +5 -6
  35. package/node/components/Notification/index.js +11 -20
  36. package/node/components/PdfViewer/index.d.ts +3 -3
  37. package/node/components/PdfViewer/index.js +5 -18
  38. package/node/components/ResizingDataGrid/index.d.ts +3 -3
  39. package/node/components/ResizingDataGrid/index.js +7 -17
  40. package/node/components/ResizingDataGridInfinite/index.d.ts +1 -1
  41. package/node/components/ResizingDataGridInfinite/index.js +3 -15
  42. package/node/components/theme/components/MuiLinearProgress.js +1 -1
  43. package/package.json +41 -48
@@ -1,3 +1,3 @@
1
- export * from './Banner';
2
- export * from './BannerContainer';
3
- export * from './BannerActionButton';
1
+ export { banner } from './Banner';
2
+ export { BannerContainer } from './BannerContainer';
3
+ export { BannerActionButton, type BannerActionButtonProps, } from './BannerActionButton';
@@ -1,3 +1,3 @@
1
- export * from './Banner';
2
- export * from './BannerContainer';
3
- export * from './BannerActionButton';
1
+ export { banner } from './Banner';
2
+ export { BannerContainer } from './BannerContainer';
3
+ export { BannerActionButton, } from './BannerActionButton';
@@ -1,7 +1,17 @@
1
1
  import { CircleErrorFillSm, DotOutlineSm, SuccessFillSm } from '../../icons';
2
2
  import { Loader } from '../Loader';
3
- import { styled } from '../styles';
3
+ import { keyframes, styled } from '../styles';
4
4
  import { listContainer } from '../styles/mixins';
5
+ const iconAppearAnimation = keyframes `
6
+ from {
7
+ transform: scale(0);
8
+ opacity: 0;
9
+ }
10
+ to {
11
+ transform: scale(1);
12
+ opacity: 1;
13
+ }
14
+ `;
5
15
  export const Wrapper = styled('article') `
6
16
  display: grid;
7
17
  grid-gap: ${({ theme }) => theme.spacing(2)};
@@ -9,11 +19,11 @@ export const Wrapper = styled('article') `
9
19
  padding: ${({ theme, $variant }) => $variant === 'contained' ? theme.spacing(3) : 0};
10
20
 
11
21
  background-color: ${({ theme, $background, $variant }) => $variant === 'contained' ? theme.palette[$background][100] : 'inherit'};
12
- border-radius: ${({ theme }) => theme.shape.small};
22
+ border-radius: ${({ theme }) => theme.shape.medium};
13
23
  `;
14
24
  export const Inner = styled('ul') `
15
25
  display: grid;
16
- grid-gap: ${({ theme }) => theme.spacing(3)};
26
+ grid-gap: ${({ theme }) => theme.spacing(2)};
17
27
 
18
28
  ${listContainer};
19
29
  `;
@@ -33,14 +43,20 @@ export const EmptyIcon = styled(DefaultIcon) `
33
43
  color: ${({ theme }) => theme.palette.grey[800]};
34
44
  `.withComponent(DotOutlineSm);
35
45
  export const RejectIcon = styled(DefaultIcon) `
36
- color: ${({ theme }) => theme.palette.error[900]};
46
+ color: ${({ theme }) => theme.palette.error[800]};
47
+
48
+ animation: ${iconAppearAnimation} ${({ theme }) => theme.transitions.duration.short}ms ease-out;
37
49
  `.withComponent(CircleErrorFillSm);
38
50
  export const SuccessIcon = styled(DefaultIcon) `
39
- color: ${({ theme }) => theme.palette.success[900]};
51
+ color: ${({ theme }) => theme.palette.success[800]};
52
+
53
+ animation: ${iconAppearAnimation} ${({ theme }) => theme.transitions.duration.short}ms ease-out;
40
54
  `.withComponent(SuccessFillSm);
41
55
  export const StyledLoader = styled(Loader) `
42
56
  align-self: center;
43
57
 
44
- width: 14px;
45
- height: 14px;
58
+ width: 12px;
59
+ height: 12px;
60
+ margin-right: ${({ theme }) => theme.microSpacing(1)};
61
+ margin-left: ${({ theme }) => theme.microSpacing(1)};
46
62
  `;
@@ -1,4 +1,4 @@
1
- import { LinearProgress } from '@mui/material';
1
+ import { LinearProgress, linearProgressClasses } from '@mui/material';
2
2
  import { Divider } from '../../Divider';
3
3
  import { styled } from '../../styles';
4
4
  export const Backdrop = styled.div `
@@ -19,4 +19,8 @@ export const LoaderWrapper = styled.div `
19
19
  `;
20
20
  export const StyledLinearProgress = styled(LinearProgress) `
21
21
  height: 2px;
22
+
23
+ .${linearProgressClasses.barColorPrimary} {
24
+ background-color: ${({ theme }) => theme.palette.primary[800]};
25
+ }
22
26
  `;
@@ -6,7 +6,7 @@ const calcMarginStyles = (theme, gutterBottom) => {
6
6
  // для этого повышаем приоритет свойства
7
7
  if (gutterBottom) {
8
8
  return css `
9
- margin-bottom: ${theme.spacing(6)} !important;
9
+ margin-bottom: ${theme.spacing(8)} !important;
10
10
 
11
11
  ${theme.breakpoints.down('sm')} {
12
12
  margin-bottom: ${theme.spacing(4)} !important;
@@ -18,7 +18,7 @@ const calcMarginStyles = (theme, gutterBottom) => {
18
18
  `;
19
19
  }
20
20
  return css `
21
- margin-bottom: ${theme.spacing(6)};
21
+ margin-bottom: ${theme.spacing(8)};
22
22
 
23
23
  ${theme.breakpoints.down('sm')} {
24
24
  margin-bottom: ${theme.spacing(4)};
@@ -1,5 +1,6 @@
1
1
  import { Button } from '../Button';
2
2
  import { Grid } from '../Grid';
3
+ import { loaderClassnames } from '../Loader';
3
4
  import { styled } from '../styles';
4
5
  import { Typography } from '../Typography';
5
6
  export const StyledButton = styled(Button) `
@@ -16,6 +17,10 @@ export const StyledButton = styled(Button) `
16
17
  ${({ theme: { breakpoints } }) => breakpoints.down('sm')} {
17
18
  padding: ${({ theme: { spacing } }) => spacing(4, 5)};
18
19
  }
20
+
21
+ &:has(.${loaderClassnames.root}) {
22
+ justify-content: center;
23
+ }
19
24
  `;
20
25
  export const TargetTextWrapper = styled(Typography) `
21
26
  margin-bottom: ${({ theme: { spacing } }) => spacing(1)};
@@ -2,7 +2,7 @@ import { type MouseEvent } from 'react';
2
2
  import { type TooltipProps } from '../../../Tooltip';
3
3
  import { type InfiniteTreeListItemProps } from '../types';
4
4
  export declare const useLogic: ({ isDisabled, disabledReason, }: InfiniteTreeListItemProps) => {
5
- item: import("../..").FlattenTree<import("../..").InfiniteTreeListData>;
5
+ item: import("../../types").FlattenTree<import("../../types").InfiniteTreeListData>;
6
6
  handleClick: (event: MouseEvent) => void;
7
7
  itemSkeleton: import("react").ReactNode;
8
8
  isDisabled: boolean | undefined;
@@ -1,4 +1,4 @@
1
- export * from './InfiniteTreeList';
2
- export * from './types';
3
- export * from './InfiniteTreeListItem';
4
- export * from './InfiniteTreeListActions';
1
+ export { InfiniteTreeList } from './InfiniteTreeList';
2
+ export type { InfiniteTreeListProps } from './types';
3
+ export { InfiniteTreeListItem, type InfiniteTreeListItemProps, } from './InfiniteTreeListItem';
4
+ export { type InfiniteTreeListActionProps, InfiniteTreeListActions, } from './InfiniteTreeListActions';
@@ -1,4 +1,3 @@
1
- export * from './InfiniteTreeList';
2
- export * from './types';
3
- export * from './InfiniteTreeListItem';
4
- export * from './InfiniteTreeListActions';
1
+ export { InfiniteTreeList } from './InfiniteTreeList';
2
+ export { InfiniteTreeListItem, } from './InfiniteTreeListItem';
3
+ export { InfiniteTreeListActions, } from './InfiniteTreeListActions';
@@ -1,2 +1,2 @@
1
- export * from './JsonViewer';
1
+ export { JsonViewer } from './JsonViewer';
2
2
  export type { JsonViewerProps } from './types';
@@ -1 +1 @@
1
- export * from './JsonViewer';
1
+ export { JsonViewer } from './JsonViewer';
@@ -19,6 +19,7 @@ export const Header = styled(Typography) `
19
19
  }
20
20
  `;
21
21
  export const Subheader = styled(Typography) `
22
+ margin-top: ${({ theme }) => theme.spacing(-2)};
22
23
  margin-bottom: ${({ theme }) => theme.spacing(2)};
23
24
  ${({ theme }) => theme.breakpoints.down('sm')} {
24
25
  font-size: ${({ theme }) => theme.typography.subtitle1.fontSize};
@@ -1,6 +1,5 @@
1
- export * from './constants';
2
- export * from './NotificationContainer';
3
- export * from './Notification';
4
- export * from './NotificationStackContainer';
5
- export * from './NotificationTemplate';
6
- export * from './types';
1
+ export { NOTIFY_POSITIONS, notifyClassnames, BANNER_CONTAINER_ID, } from './constants';
2
+ export { NotificationContainer } from './NotificationContainer';
3
+ export { notify } from './Notification';
4
+ export { NotificationStackContainer } from './NotificationStackContainer';
5
+ export type { Notify } from './types';
@@ -1,6 +1,4 @@
1
- export * from './constants';
2
- export * from './NotificationContainer';
3
- export * from './Notification';
4
- export * from './NotificationStackContainer';
5
- export * from './NotificationTemplate';
6
- export * from './types';
1
+ export { NOTIFY_POSITIONS, notifyClassnames, BANNER_CONTAINER_ID, } from './constants';
2
+ export { NotificationContainer } from './NotificationContainer';
3
+ export { notify } from './Notification';
4
+ export { NotificationStackContainer } from './NotificationStackContainer';
@@ -1,6 +1,6 @@
1
1
  import { PdfViewer } from './PdfViewer';
2
2
  export default PdfViewer;
3
3
  export { PdfViewer };
4
- export * from './constants';
5
- export * from './PdfViewerPagination';
6
- export * from './types';
4
+ export { pdfViewerClassnames } from './constants';
5
+ export { type PdfViewerPaginationProps, PdfViewerPagination, } from './PdfViewerPagination';
6
+ export type { PdfViewerOnLoadSuccessProps, PdfViewerProps } from './types';
@@ -1,6 +1,5 @@
1
1
  import { PdfViewer } from './PdfViewer';
2
2
  export default PdfViewer;
3
3
  export { PdfViewer };
4
- export * from './constants';
5
- export * from './PdfViewerPagination';
6
- export * from './types';
4
+ export { pdfViewerClassnames } from './constants';
5
+ export { PdfViewerPagination, } from './PdfViewerPagination';
@@ -1,4 +1,4 @@
1
- export * from './ResizingDataGrid';
2
- export * from './hooks/useComputedColumns';
3
- export * from './Sliders';
1
+ export { ResizingDataGrid } from './ResizingDataGrid';
2
+ export { useComputedColumns } from './hooks/useComputedColumns';
3
+ export { Sliders } from './Sliders';
4
4
  export type { ResizingColumns, ResizingDataGridProps } from './types';
@@ -1,3 +1,3 @@
1
- export * from './ResizingDataGrid';
2
- export * from './hooks/useComputedColumns';
3
- export * from './Sliders';
1
+ export { ResizingDataGrid } from './ResizingDataGrid';
2
+ export { useComputedColumns } from './hooks/useComputedColumns';
3
+ export { Sliders } from './Sliders';
@@ -1,2 +1,2 @@
1
- export * from './ResizingDataGridInfinite';
1
+ export { ResizingDataGridInfinite } from './ResizingDataGridInfinite';
2
2
  export type { ResizingDataGridInfiniteProps, ResizingColumnsInfinite, } from './types';
@@ -1 +1 @@
1
- export * from './ResizingDataGridInfinite';
1
+ export { ResizingDataGridInfinite } from './ResizingDataGridInfinite';
@@ -9,7 +9,7 @@ export const MuiLinearProgress = {
9
9
  },
10
10
  barColorPrimary({ theme }) {
11
11
  return {
12
- backgroundColor: theme.palette.primary['800'],
12
+ backgroundColor: theme.palette.success['600'],
13
13
  };
14
14
  },
15
15
  },
@@ -1,3 +1,3 @@
1
- export * from './Banner';
2
- export * from './BannerContainer';
3
- export * from './BannerActionButton';
1
+ export { banner } from './Banner';
2
+ export { BannerContainer } from './BannerContainer';
3
+ export { BannerActionButton, type BannerActionButtonProps, } from './BannerActionButton';
@@ -1,19 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Banner"), exports);
18
- __exportStar(require("./BannerContainer"), exports);
19
- __exportStar(require("./BannerActionButton"), exports);
3
+ exports.BannerActionButton = exports.BannerContainer = exports.banner = void 0;
4
+ var Banner_1 = require("./Banner");
5
+ Object.defineProperty(exports, "banner", { enumerable: true, get: function () { return Banner_1.banner; } });
6
+ var BannerContainer_1 = require("./BannerContainer");
7
+ Object.defineProperty(exports, "BannerContainer", { enumerable: true, get: function () { return BannerContainer_1.BannerContainer; } });
8
+ var BannerActionButton_1 = require("./BannerActionButton");
9
+ Object.defineProperty(exports, "BannerActionButton", { enumerable: true, get: function () { return BannerActionButton_1.BannerActionButton; } });
@@ -5,6 +5,16 @@ const icons_1 = require("../../icons");
5
5
  const Loader_1 = require("../Loader");
6
6
  const styles_1 = require("../styles");
7
7
  const mixins_1 = require("../styles/mixins");
8
+ const iconAppearAnimation = (0, styles_1.keyframes) `
9
+ from {
10
+ transform: scale(0);
11
+ opacity: 0;
12
+ }
13
+ to {
14
+ transform: scale(1);
15
+ opacity: 1;
16
+ }
17
+ `;
8
18
  exports.Wrapper = (0, styles_1.styled)('article') `
9
19
  display: grid;
10
20
  grid-gap: ${({ theme }) => theme.spacing(2)};
@@ -12,11 +22,11 @@ exports.Wrapper = (0, styles_1.styled)('article') `
12
22
  padding: ${({ theme, $variant }) => $variant === 'contained' ? theme.spacing(3) : 0};
13
23
 
14
24
  background-color: ${({ theme, $background, $variant }) => $variant === 'contained' ? theme.palette[$background][100] : 'inherit'};
15
- border-radius: ${({ theme }) => theme.shape.small};
25
+ border-radius: ${({ theme }) => theme.shape.medium};
16
26
  `;
17
27
  exports.Inner = (0, styles_1.styled)('ul') `
18
28
  display: grid;
19
- grid-gap: ${({ theme }) => theme.spacing(3)};
29
+ grid-gap: ${({ theme }) => theme.spacing(2)};
20
30
 
21
31
  ${mixins_1.listContainer};
22
32
  `;
@@ -36,14 +46,20 @@ exports.EmptyIcon = (0, styles_1.styled)(DefaultIcon) `
36
46
  color: ${({ theme }) => theme.palette.grey[800]};
37
47
  `.withComponent(icons_1.DotOutlineSm);
38
48
  exports.RejectIcon = (0, styles_1.styled)(DefaultIcon) `
39
- color: ${({ theme }) => theme.palette.error[900]};
49
+ color: ${({ theme }) => theme.palette.error[800]};
50
+
51
+ animation: ${iconAppearAnimation} ${({ theme }) => theme.transitions.duration.short}ms ease-out;
40
52
  `.withComponent(icons_1.CircleErrorFillSm);
41
53
  exports.SuccessIcon = (0, styles_1.styled)(DefaultIcon) `
42
- color: ${({ theme }) => theme.palette.success[900]};
54
+ color: ${({ theme }) => theme.palette.success[800]};
55
+
56
+ animation: ${iconAppearAnimation} ${({ theme }) => theme.transitions.duration.short}ms ease-out;
43
57
  `.withComponent(icons_1.SuccessFillSm);
44
58
  exports.StyledLoader = (0, styles_1.styled)(Loader_1.Loader) `
45
59
  align-self: center;
46
60
 
47
- width: 14px;
48
- height: 14px;
61
+ width: 12px;
62
+ height: 12px;
63
+ margin-right: ${({ theme }) => theme.microSpacing(1)};
64
+ margin-left: ${({ theme }) => theme.microSpacing(1)};
49
65
  `;
@@ -22,4 +22,8 @@ exports.LoaderWrapper = styles_1.styled.div `
22
22
  `;
23
23
  exports.StyledLinearProgress = (0, styles_1.styled)(material_1.LinearProgress) `
24
24
  height: 2px;
25
+
26
+ .${material_1.linearProgressClasses.barColorPrimary} {
27
+ background-color: ${({ theme }) => theme.palette.primary[800]};
28
+ }
25
29
  `;
@@ -9,7 +9,7 @@ const calcMarginStyles = (theme, gutterBottom) => {
9
9
  // для этого повышаем приоритет свойства
10
10
  if (gutterBottom) {
11
11
  return (0, styles_1.css) `
12
- margin-bottom: ${theme.spacing(6)} !important;
12
+ margin-bottom: ${theme.spacing(8)} !important;
13
13
 
14
14
  ${theme.breakpoints.down('sm')} {
15
15
  margin-bottom: ${theme.spacing(4)} !important;
@@ -21,7 +21,7 @@ const calcMarginStyles = (theme, gutterBottom) => {
21
21
  `;
22
22
  }
23
23
  return (0, styles_1.css) `
24
- margin-bottom: ${theme.spacing(6)};
24
+ margin-bottom: ${theme.spacing(8)};
25
25
 
26
26
  ${theme.breakpoints.down('sm')} {
27
27
  margin-bottom: ${theme.spacing(4)};
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledGrid = exports.TargetTextWrapper = exports.StyledButton = void 0;
4
4
  const Button_1 = require("../Button");
5
5
  const Grid_1 = require("../Grid");
6
+ const Loader_1 = require("../Loader");
6
7
  const styles_1 = require("../styles");
7
8
  const Typography_1 = require("../Typography");
8
9
  exports.StyledButton = (0, styles_1.styled)(Button_1.Button) `
@@ -19,6 +20,10 @@ exports.StyledButton = (0, styles_1.styled)(Button_1.Button) `
19
20
  ${({ theme: { breakpoints } }) => breakpoints.down('sm')} {
20
21
  padding: ${({ theme: { spacing } }) => spacing(4, 5)};
21
22
  }
23
+
24
+ &:has(.${Loader_1.loaderClassnames.root}) {
25
+ justify-content: center;
26
+ }
22
27
  `;
23
28
  exports.TargetTextWrapper = (0, styles_1.styled)(Typography_1.Typography) `
24
29
  margin-bottom: ${({ theme: { spacing } }) => spacing(1)};
@@ -2,7 +2,7 @@ import { type MouseEvent } from 'react';
2
2
  import { type TooltipProps } from '../../../Tooltip';
3
3
  import { type InfiniteTreeListItemProps } from '../types';
4
4
  export declare const useLogic: ({ isDisabled, disabledReason, }: InfiniteTreeListItemProps) => {
5
- item: import("../..").FlattenTree<import("../..").InfiniteTreeListData>;
5
+ item: import("../../types").FlattenTree<import("../../types").InfiniteTreeListData>;
6
6
  handleClick: (event: MouseEvent) => void;
7
7
  itemSkeleton: import("react").ReactNode;
8
8
  isDisabled: boolean | undefined;
@@ -1,4 +1,4 @@
1
- export * from './InfiniteTreeList';
2
- export * from './types';
3
- export * from './InfiniteTreeListItem';
4
- export * from './InfiniteTreeListActions';
1
+ export { InfiniteTreeList } from './InfiniteTreeList';
2
+ export type { InfiniteTreeListProps } from './types';
3
+ export { InfiniteTreeListItem, type InfiniteTreeListItemProps, } from './InfiniteTreeListItem';
4
+ export { type InfiniteTreeListActionProps, InfiniteTreeListActions, } from './InfiniteTreeListActions';
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./InfiniteTreeList"), exports);
18
- __exportStar(require("./types"), exports);
19
- __exportStar(require("./InfiniteTreeListItem"), exports);
20
- __exportStar(require("./InfiniteTreeListActions"), exports);
3
+ exports.InfiniteTreeListActions = exports.InfiniteTreeListItem = exports.InfiniteTreeList = void 0;
4
+ var InfiniteTreeList_1 = require("./InfiniteTreeList");
5
+ Object.defineProperty(exports, "InfiniteTreeList", { enumerable: true, get: function () { return InfiniteTreeList_1.InfiniteTreeList; } });
6
+ var InfiniteTreeListItem_1 = require("./InfiniteTreeListItem");
7
+ Object.defineProperty(exports, "InfiniteTreeListItem", { enumerable: true, get: function () { return InfiniteTreeListItem_1.InfiniteTreeListItem; } });
8
+ var InfiniteTreeListActions_1 = require("./InfiniteTreeListActions");
9
+ Object.defineProperty(exports, "InfiniteTreeListActions", { enumerable: true, get: function () { return InfiniteTreeListActions_1.InfiniteTreeListActions; } });
@@ -1,2 +1,2 @@
1
- export * from './JsonViewer';
1
+ export { JsonViewer } from './JsonViewer';
2
2
  export type { JsonViewerProps } from './types';
@@ -1,17 +1,5 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./JsonViewer"), exports);
3
+ exports.JsonViewer = void 0;
4
+ var JsonViewer_1 = require("./JsonViewer");
5
+ Object.defineProperty(exports, "JsonViewer", { enumerable: true, get: function () { return JsonViewer_1.JsonViewer; } });
@@ -22,6 +22,7 @@ exports.Header = (0, styles_1.styled)(Typography_1.Typography) `
22
22
  }
23
23
  `;
24
24
  exports.Subheader = (0, styles_1.styled)(Typography_1.Typography) `
25
+ margin-top: ${({ theme }) => theme.spacing(-2)};
25
26
  margin-bottom: ${({ theme }) => theme.spacing(2)};
26
27
  ${({ theme }) => theme.breakpoints.down('sm')} {
27
28
  font-size: ${({ theme }) => theme.typography.subtitle1.fontSize};
@@ -1,6 +1,5 @@
1
- export * from './constants';
2
- export * from './NotificationContainer';
3
- export * from './Notification';
4
- export * from './NotificationStackContainer';
5
- export * from './NotificationTemplate';
6
- export * from './types';
1
+ export { NOTIFY_POSITIONS, notifyClassnames, BANNER_CONTAINER_ID, } from './constants';
2
+ export { NotificationContainer } from './NotificationContainer';
3
+ export { notify } from './Notification';
4
+ export { NotificationStackContainer } from './NotificationStackContainer';
5
+ export type { Notify } from './types';
@@ -1,22 +1,13 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constants"), exports);
18
- __exportStar(require("./NotificationContainer"), exports);
19
- __exportStar(require("./Notification"), exports);
20
- __exportStar(require("./NotificationStackContainer"), exports);
21
- __exportStar(require("./NotificationTemplate"), exports);
22
- __exportStar(require("./types"), exports);
3
+ exports.NotificationStackContainer = exports.notify = exports.NotificationContainer = exports.BANNER_CONTAINER_ID = exports.notifyClassnames = exports.NOTIFY_POSITIONS = void 0;
4
+ var constants_1 = require("./constants");
5
+ Object.defineProperty(exports, "NOTIFY_POSITIONS", { enumerable: true, get: function () { return constants_1.NOTIFY_POSITIONS; } });
6
+ Object.defineProperty(exports, "notifyClassnames", { enumerable: true, get: function () { return constants_1.notifyClassnames; } });
7
+ Object.defineProperty(exports, "BANNER_CONTAINER_ID", { enumerable: true, get: function () { return constants_1.BANNER_CONTAINER_ID; } });
8
+ var NotificationContainer_1 = require("./NotificationContainer");
9
+ Object.defineProperty(exports, "NotificationContainer", { enumerable: true, get: function () { return NotificationContainer_1.NotificationContainer; } });
10
+ var Notification_1 = require("./Notification");
11
+ Object.defineProperty(exports, "notify", { enumerable: true, get: function () { return Notification_1.notify; } });
12
+ var NotificationStackContainer_1 = require("./NotificationStackContainer");
13
+ Object.defineProperty(exports, "NotificationStackContainer", { enumerable: true, get: function () { return NotificationStackContainer_1.NotificationStackContainer; } });
@@ -1,6 +1,6 @@
1
1
  import { PdfViewer } from './PdfViewer';
2
2
  export default PdfViewer;
3
3
  export { PdfViewer };
4
- export * from './constants';
5
- export * from './PdfViewerPagination';
6
- export * from './types';
4
+ export { pdfViewerClassnames } from './constants';
5
+ export { type PdfViewerPaginationProps, PdfViewerPagination, } from './PdfViewerPagination';
6
+ export type { PdfViewerOnLoadSuccessProps, PdfViewerProps } from './types';
@@ -1,23 +1,10 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.PdfViewer = void 0;
3
+ exports.PdfViewerPagination = exports.pdfViewerClassnames = exports.PdfViewer = void 0;
18
4
  const PdfViewer_1 = require("./PdfViewer");
19
5
  Object.defineProperty(exports, "PdfViewer", { enumerable: true, get: function () { return PdfViewer_1.PdfViewer; } });
20
6
  exports.default = PdfViewer_1.PdfViewer;
21
- __exportStar(require("./constants"), exports);
22
- __exportStar(require("./PdfViewerPagination"), exports);
23
- __exportStar(require("./types"), exports);
7
+ var constants_1 = require("./constants");
8
+ Object.defineProperty(exports, "pdfViewerClassnames", { enumerable: true, get: function () { return constants_1.pdfViewerClassnames; } });
9
+ var PdfViewerPagination_1 = require("./PdfViewerPagination");
10
+ Object.defineProperty(exports, "PdfViewerPagination", { enumerable: true, get: function () { return PdfViewerPagination_1.PdfViewerPagination; } });
@@ -1,4 +1,4 @@
1
- export * from './ResizingDataGrid';
2
- export * from './hooks/useComputedColumns';
3
- export * from './Sliders';
1
+ export { ResizingDataGrid } from './ResizingDataGrid';
2
+ export { useComputedColumns } from './hooks/useComputedColumns';
3
+ export { Sliders } from './Sliders';
4
4
  export type { ResizingColumns, ResizingDataGridProps } from './types';
@@ -1,19 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ResizingDataGrid"), exports);
18
- __exportStar(require("./hooks/useComputedColumns"), exports);
19
- __exportStar(require("./Sliders"), exports);
3
+ exports.Sliders = exports.useComputedColumns = exports.ResizingDataGrid = void 0;
4
+ var ResizingDataGrid_1 = require("./ResizingDataGrid");
5
+ Object.defineProperty(exports, "ResizingDataGrid", { enumerable: true, get: function () { return ResizingDataGrid_1.ResizingDataGrid; } });
6
+ var useComputedColumns_1 = require("./hooks/useComputedColumns");
7
+ Object.defineProperty(exports, "useComputedColumns", { enumerable: true, get: function () { return useComputedColumns_1.useComputedColumns; } });
8
+ var Sliders_1 = require("./Sliders");
9
+ Object.defineProperty(exports, "Sliders", { enumerable: true, get: function () { return Sliders_1.Sliders; } });
@@ -1,2 +1,2 @@
1
- export * from './ResizingDataGridInfinite';
1
+ export { ResizingDataGridInfinite } from './ResizingDataGridInfinite';
2
2
  export type { ResizingDataGridInfiniteProps, ResizingColumnsInfinite, } from './types';
@@ -1,17 +1,5 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ResizingDataGridInfinite"), exports);
3
+ exports.ResizingDataGridInfinite = void 0;
4
+ var ResizingDataGridInfinite_1 = require("./ResizingDataGridInfinite");
5
+ Object.defineProperty(exports, "ResizingDataGridInfinite", { enumerable: true, get: function () { return ResizingDataGridInfinite_1.ResizingDataGridInfinite; } });
@@ -12,7 +12,7 @@ exports.MuiLinearProgress = {
12
12
  },
13
13
  barColorPrimary({ theme }) {
14
14
  return {
15
- backgroundColor: theme.palette.primary['800'],
15
+ backgroundColor: theme.palette.success['600'],
16
16
  };
17
17
  },
18
18
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.0.0-alpha.30",
3
+ "version": "4.0.0-alpha.32",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {
@@ -51,68 +51,61 @@
51
51
  "default": "./server/index.js",
52
52
  "import": "./server/index.js"
53
53
  },
54
- "./next": {
55
- "module": "./next.js",
56
- "require": "./node/next.js",
57
- "types": "./next.d.ts",
58
- "default": "./next.js",
59
- "import": "./next.js"
60
- },
61
54
  "./components/PdfViewer": {
62
- "module": "./components/PdfViewer.js",
63
- "require": "./node/components/PdfViewer.js",
64
- "types": "./components/PdfViewer.d.ts",
65
- "default": "./components/PdfViewer.js",
66
- "import": "./components/PdfViewer.js"
55
+ "module": "./components/PdfViewer/index.js",
56
+ "require": "./node/components/PdfViewer/index.js",
57
+ "types": "./components/PdfViewer/index.d.ts",
58
+ "default": "./components/PdfViewer/index.js",
59
+ "import": "./components/PdfViewer/index.js"
67
60
  },
68
61
  "./components/JsonViewer": {
69
- "module": "./components/JsonViewer.js",
70
- "require": "./node/components/JsonViewer.js",
71
- "types": "./components/JsonViewer.d.ts",
72
- "default": "./components/JsonViewer.js",
73
- "import": "./components/JsonViewer.js"
62
+ "module": "./components/JsonViewer/index.js",
63
+ "require": "./node/components/JsonViewer/index.js",
64
+ "types": "./components/JsonViewer/index.d.ts",
65
+ "default": "./components/JsonViewer/index.js",
66
+ "import": "./components/JsonViewer/index.js"
74
67
  },
75
68
  "./components/Notification": {
76
- "module": "./components/Notification.js",
77
- "require": "./node/components/Notification.js",
78
- "types": "./components/Notification.d.ts",
79
- "default": "./components/Notification.js",
80
- "import": "./components/Notification.js"
69
+ "module": "./components/Notification/index.js",
70
+ "require": "./node/components/Notification/index.js",
71
+ "types": "./components/Notification/index.d.ts",
72
+ "default": "./components/Notification/index.js",
73
+ "import": "./components/Notification/index.js"
81
74
  },
82
75
  "./components/LegacyNotification": {
83
- "module": "./components/LegacyNotification.js",
84
- "require": "./node/components/LegacyNotification.js",
85
- "types": "./components/LegacyNotification.d.ts",
86
- "default": "./components/LegacyNotification.js",
87
- "import": "./components/LegacyNotification.js"
76
+ "module": "./components/LegacyNotification/index.js",
77
+ "require": "./node/components/LegacyNotification/index.js",
78
+ "types": "./components/LegacyNotification/index.d.ts",
79
+ "default": "./components/LegacyNotification/index.js",
80
+ "import": "./components/LegacyNotification/index.js"
88
81
  },
89
82
  "./components/Banner": {
90
- "module": "./components/Banner.js",
91
- "require": "./node/components/Banner.js",
92
- "types": "./components/Banner.d.ts",
93
- "default": "./components/Banner.js",
94
- "import": "./components/Banner.js"
83
+ "module": "./components/Banner/index.js",
84
+ "require": "./node/components/Banner/index.js",
85
+ "types": "./components/Banner/index.d.ts",
86
+ "default": "./components/Banner/index.js",
87
+ "import": "./components/Banner/index.js"
95
88
  },
96
89
  "./components/unstable/ResizingDataGrid": {
97
- "module": "./components/ResizingDataGrid.js",
98
- "require": "./node/components/ResizingDataGrid.js",
99
- "types": "./components/ResizingDataGrid.d.ts",
100
- "default": "./components/ResizingDataGrid.js",
101
- "import": "./components/ResizingDataGrid.js"
90
+ "module": "./components/ResizingDataGrid/index.js",
91
+ "require": "./node/components/ResizingDataGrid/index.js",
92
+ "types": "./components/ResizingDataGrid/index.d.ts",
93
+ "default": "./components/ResizingDataGrid/index.js",
94
+ "import": "./components/ResizingDataGrid/index.js"
102
95
  },
103
96
  "./components/unstable/ResizingDataGridInfinite": {
104
- "module": "./components/ResizingDataGridInfinite.js",
105
- "require": "./node/components/ResizingDataGridInfinite.js",
106
- "types": "./components/ResizingDataGridInfinite.d.ts",
107
- "default": "./components/ResizingDataGridInfinite.js",
108
- "import": "./components/ResizingDataGridInfinite.js"
97
+ "module": "./components/ResizingDataGridInfinite/index.js",
98
+ "require": "./node/components/ResizingDataGridInfinite/index.js",
99
+ "types": "./components/ResizingDataGridInfinite/index.d.ts",
100
+ "default": "./components/ResizingDataGridInfinite/index.js",
101
+ "import": "./components/ResizingDataGridInfinite/index.js"
109
102
  },
110
103
  "./components/InfiniteTreeList": {
111
- "module": "./components/InfiniteTreeList.js",
112
- "require": "./node/components/InfiniteTreeList.js",
113
- "types": "./components/InfiniteTreeList.d.ts",
114
- "default": "./components/InfiniteTreeList.js",
115
- "import": "./components/InfiniteTreeList.js"
104
+ "module": "./components/InfiniteTreeList/index.js",
105
+ "require": "./node/components/InfiniteTreeList/index.js",
106
+ "types": "./components/InfiniteTreeList/index.d.ts",
107
+ "default": "./components/InfiniteTreeList/index.js",
108
+ "import": "./components/InfiniteTreeList/index.js"
116
109
  }
117
110
  },
118
111
  "author": "Astral.Soft",