@tidbcloud/uikit 2.3.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/biz/AppShell/AppPageShell.cjs +104 -0
  3. package/dist/biz/AppShell/AppPageShell.d.cts +20 -0
  4. package/dist/biz/AppShell/AppPageShell.d.mts +20 -0
  5. package/dist/biz/AppShell/AppPageShell.mjs +104 -0
  6. package/dist/biz/AppShell/AppShell.cjs +83 -0
  7. package/dist/biz/AppShell/AppShell.d.cts +45 -0
  8. package/dist/biz/AppShell/AppShell.d.mts +45 -0
  9. package/dist/biz/AppShell/AppShell.mjs +83 -0
  10. package/dist/biz/AppShell/container/AppShellBody.cjs +30 -0
  11. package/dist/biz/AppShell/container/AppShellBody.d.cts +5 -0
  12. package/dist/biz/AppShell/container/AppShellBody.d.mts +5 -0
  13. package/dist/biz/AppShell/container/AppShellBody.mjs +30 -0
  14. package/dist/biz/AppShell/container/AppShellMain.cjs +36 -0
  15. package/dist/biz/AppShell/container/AppShellMain.d.cts +5 -0
  16. package/dist/biz/AppShell/container/AppShellMain.d.mts +5 -0
  17. package/dist/biz/AppShell/container/AppShellMain.mjs +36 -0
  18. package/dist/biz/AppShell/container/AppShellRoot.cjs +13 -0
  19. package/dist/biz/AppShell/container/AppShellRoot.d.cts +1 -0
  20. package/dist/biz/AppShell/container/AppShellRoot.d.mts +1 -0
  21. package/dist/biz/AppShell/container/AppShellRoot.mjs +13 -0
  22. package/dist/biz/AppShell/index.d.cts +7 -0
  23. package/dist/biz/AppShell/index.d.mts +7 -0
  24. package/dist/biz/AppShell/navbar/ExpandNavbarButton.cjs +44 -0
  25. package/dist/biz/AppShell/navbar/ExpandNavbarButton.d.cts +6 -0
  26. package/dist/biz/AppShell/navbar/ExpandNavbarButton.d.mts +6 -0
  27. package/dist/biz/AppShell/navbar/ExpandNavbarButton.mjs +44 -0
  28. package/dist/biz/AppShell/navbar/ExpandNavbarButtonPlaceholder.cjs +32 -0
  29. package/dist/biz/AppShell/navbar/ExpandNavbarButtonPlaceholder.d.cts +1 -0
  30. package/dist/biz/AppShell/navbar/ExpandNavbarButtonPlaceholder.d.mts +1 -0
  31. package/dist/biz/AppShell/navbar/ExpandNavbarButtonPlaceholder.mjs +32 -0
  32. package/dist/biz/AppShell/navbar/FooterNavItemBase.cjs +8 -0
  33. package/dist/biz/AppShell/navbar/FooterNavItemBase.d.cts +7 -0
  34. package/dist/biz/AppShell/navbar/FooterNavItemBase.d.mts +7 -0
  35. package/dist/biz/AppShell/navbar/FooterNavItemBase.mjs +8 -0
  36. package/dist/biz/AppShell/navbar/NavItemBase.cjs +21 -0
  37. package/dist/biz/AppShell/navbar/NavItemBase.d.cts +12 -0
  38. package/dist/biz/AppShell/navbar/NavItemBase.d.mts +12 -0
  39. package/dist/biz/AppShell/navbar/NavItemBase.mjs +21 -0
  40. package/dist/biz/AppShell/navbar/Navbar.cjs +61 -0
  41. package/dist/biz/AppShell/navbar/Navbar.d.cts +11 -0
  42. package/dist/biz/AppShell/navbar/Navbar.d.mts +11 -0
  43. package/dist/biz/AppShell/navbar/Navbar.mjs +61 -0
  44. package/dist/biz/AppShell/navbar/NavbarHeader.cjs +58 -0
  45. package/dist/biz/AppShell/navbar/NavbarHeader.d.cts +8 -0
  46. package/dist/biz/AppShell/navbar/NavbarHeader.d.mts +8 -0
  47. package/dist/biz/AppShell/navbar/NavbarHeader.mjs +58 -0
  48. package/dist/biz/AppShell/navbar/NavbarSection.cjs +32 -0
  49. package/dist/biz/AppShell/navbar/NavbarSection.d.cts +16 -0
  50. package/dist/biz/AppShell/navbar/NavbarSection.d.mts +16 -0
  51. package/dist/biz/AppShell/navbar/NavbarSection.mjs +32 -0
  52. package/dist/biz/AppShell/navbar/SubNavItemBase.cjs +23 -0
  53. package/dist/biz/AppShell/navbar/SubNavItemBase.d.cts +7 -0
  54. package/dist/biz/AppShell/navbar/SubNavItemBase.d.mts +7 -0
  55. package/dist/biz/AppShell/navbar/SubNavItemBase.mjs +23 -0
  56. package/dist/biz/AppShell/navbar/context/NavMenuPortal.cjs +28 -0
  57. package/dist/biz/AppShell/navbar/context/NavMenuPortal.d.cts +1 -0
  58. package/dist/biz/AppShell/navbar/context/NavMenuPortal.d.mts +1 -0
  59. package/dist/biz/AppShell/navbar/context/NavMenuPortal.mjs +28 -0
  60. package/dist/biz/AppShell/navbar/context/nav-menu-ref-context.cjs +5 -0
  61. package/dist/biz/AppShell/navbar/context/nav-menu-ref-context.d.cts +1 -0
  62. package/dist/biz/AppShell/navbar/context/nav-menu-ref-context.d.mts +1 -0
  63. package/dist/biz/AppShell/navbar/context/nav-menu-ref-context.mjs +5 -0
  64. package/dist/biz/PageShell/{index.cjs → LegacyPageShell.cjs} +2 -2
  65. package/dist/biz/PageShell/LegacyPageShell.d.cts +85 -0
  66. package/dist/biz/PageShell/LegacyPageShell.d.mts +85 -0
  67. package/dist/biz/PageShell/{index.mjs → LegacyPageShell.mjs} +2 -2
  68. package/dist/biz/PageShell/index.d.cts +1 -85
  69. package/dist/biz/PageShell/index.d.mts +1 -85
  70. package/dist/biz/PageShellBase/PageShellBaseBackButton.cjs +32 -0
  71. package/dist/biz/PageShellBase/PageShellBaseBackButton.d.cts +5 -0
  72. package/dist/biz/PageShellBase/PageShellBaseBackButton.d.mts +5 -0
  73. package/dist/biz/PageShellBase/PageShellBaseBackButton.mjs +32 -0
  74. package/dist/biz/PageShellBase/PageShellBaseBody.cjs +30 -0
  75. package/dist/biz/PageShellBase/PageShellBaseBody.d.cts +4 -0
  76. package/dist/biz/PageShellBase/PageShellBaseBody.d.mts +4 -0
  77. package/dist/biz/PageShellBase/PageShellBaseBody.mjs +30 -0
  78. package/dist/biz/PageShellBase/PageShellBaseHeader.cjs +50 -0
  79. package/dist/biz/PageShellBase/PageShellBaseHeader.d.cts +17 -0
  80. package/dist/biz/PageShellBase/PageShellBaseHeader.d.mts +17 -0
  81. package/dist/biz/PageShellBase/PageShellBaseHeader.mjs +50 -0
  82. package/dist/biz/PageShellBase/PageShellBaseRoot.cjs +14 -0
  83. package/dist/biz/PageShellBase/PageShellBaseRoot.d.cts +4 -0
  84. package/dist/biz/PageShellBase/PageShellBaseRoot.d.mts +4 -0
  85. package/dist/biz/PageShellBase/PageShellBaseRoot.mjs +14 -0
  86. package/dist/biz/PageShellBase/PageShellBaseTitle.cjs +23 -0
  87. package/dist/biz/PageShellBase/PageShellBaseTitle.d.cts +4 -0
  88. package/dist/biz/PageShellBase/PageShellBaseTitle.d.mts +4 -0
  89. package/dist/biz/PageShellBase/PageShellBaseTitle.mjs +23 -0
  90. package/dist/biz/PageShellBase/page-shell-base.cjs +25 -0
  91. package/dist/biz/PageShellBase/page-shell-base.d.cts +14 -0
  92. package/dist/biz/PageShellBase/page-shell-base.d.mts +14 -0
  93. package/dist/biz/PageShellBase/page-shell-base.mjs +25 -0
  94. package/dist/biz/index.cjs +35 -9
  95. package/dist/biz/index.d.cts +2 -0
  96. package/dist/biz/index.d.mts +2 -0
  97. package/dist/biz/index.mjs +27 -1
  98. package/dist/primitive/index.d.cts +1 -1
  99. package/dist/primitive/index.d.mts +1 -1
  100. package/dist/theme/theme.cjs +42 -2
  101. package/dist/theme/theme.mjs +42 -2
  102. package/package.json +1 -1
@@ -1,85 +1 @@
1
- import { ReactNode } from 'react';
2
- import { BoxProps, GroupProps } from '../../primitive/index.mjs';
3
- export interface PageHeaderProps extends GroupProps {
4
- /**
5
- * Determines whether the header should be sticky
6
- * Default: false
7
- */
8
- sticky?: boolean;
9
- leftSection?: React.ReactNode;
10
- rightSection?: React.ReactNode;
11
- }
12
- /**
13
- * From https://github.com/tidbcloud/dbaas-ui/blob/427559c99458ccd2e8b0d6c77ed44baa603d5ef7/src/dbaas/layouts/v4/page/PageShell.tsx#L7
14
- */
15
- export interface PageShellProps {
16
- /**
17
- * @deprecated
18
- * Use wrapperProps.className instead
19
- */
20
- className?: string;
21
- /**
22
- * @deprecated
23
- * Use headerProps.className instead
24
- */
25
- headerClassName?: string;
26
- /**
27
- * @deprecated
28
- * Use bodyProps.className instead
29
- */
30
- bodyClassName?: string;
31
- /**
32
- * @deprecated
33
- * Use headerProps.sticky instead
34
- *
35
- * Determines whether the header should be sticky
36
- * Default: false
37
- */
38
- headerSticky?: boolean;
39
- /**
40
- * @deprecated
41
- * Use headerProps.rightSection instead
42
- */
43
- headerRightSection?: React.ReactNode;
44
- /**
45
- * @deprecated
46
- * Use headerProps.withBack and headerProps.onBackClick instead
47
- */
48
- headerBack?: boolean | (() => void);
49
- title?: React.ReactNode;
50
- /**
51
- * A `div` wrapper goes around header and body
52
- * Default: false
53
- */
54
- wrapped?: boolean;
55
- wrapperProps?: BoxProps & {
56
- component?: any;
57
- };
58
- headerProps?: GroupProps & {
59
- /**
60
- * Determines whether the header should be sticky,
61
- * Default: false
62
- */
63
- sticky?: boolean;
64
- /**
65
- * Right section of header
66
- */
67
- rightSection?: React.ReactNode;
68
- /**
69
- * Determines whether the back icon should be rendered
70
- */
71
- withBack?: boolean;
72
- /**
73
- * Called when the back icon is clicked
74
- */
75
- onBackClick?: () => void;
76
- };
77
- bodyProps?: BoxProps & {
78
- component?: any;
79
- };
80
- children?: ReactNode;
81
- }
82
- export declare const PageShell: {
83
- ({ className, headerClassName, bodyClassName, headerSticky, headerRightSection, headerBack, title, wrapped, wrapperProps, headerProps: { withBack, onBackClick, ...headerProps }, bodyProps, children }: PageShellProps): import("react/jsx-runtime.js").JSX.Element;
84
- Header: ({ sticky, leftSection, rightSection, children, ...restProps }: PageHeaderProps) => import("react/jsx-runtime.js").JSX.Element;
85
- };
1
+ export * from './LegacyPageShell.mjs';
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const index = require("../../icons/index.cjs");
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
+ ;/* empty css */
10
+ const clsx = require("clsx");
11
+ const ActionIcon = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.cjs");
12
+ const PageShellBaseBackButton = ({ className, onClick, ...rest }) => {
13
+ const handleClick = () => {
14
+ if (onClick) {
15
+ onClick();
16
+ } else {
17
+ history.back();
18
+ }
19
+ };
20
+ return /* @__PURE__ */ jsxRuntime.jsx(
21
+ ActionIcon.ActionIcon,
22
+ {
23
+ variant: "default",
24
+ onClick: handleClick,
25
+ "aria-label": "Navigate Back",
26
+ ...rest,
27
+ className: clsx.clsx(className, "tiui-page-shell-back-button"),
28
+ children: /* @__PURE__ */ jsxRuntime.jsx(index.IconChevronLeft, { size: 20 })
29
+ }
30
+ );
31
+ };
32
+ exports.PageShellBaseBackButton = PageShellBaseBackButton;
@@ -0,0 +1,5 @@
1
+ import { ActionIconProps } from '../../primitive/index.cjs';
2
+ export interface PageShellBaseBackButtonProps extends ActionIconProps {
3
+ onClick?: () => void;
4
+ }
5
+ export declare const PageShellBaseBackButton: ({ className, onClick, ...rest }: PageShellBaseBackButtonProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ActionIconProps } from '../../primitive/index.mjs';
2
+ export interface PageShellBaseBackButtonProps extends ActionIconProps {
3
+ onClick?: () => void;
4
+ }
5
+ export declare const PageShellBaseBackButton: ({ className, onClick, ...rest }: PageShellBaseBackButtonProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { IconChevronLeft } from "../../icons/index.mjs";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ import { clsx } from "clsx";
9
+ import { ActionIcon } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.mjs";
10
+ const PageShellBaseBackButton = ({ className, onClick, ...rest }) => {
11
+ const handleClick = () => {
12
+ if (onClick) {
13
+ onClick();
14
+ } else {
15
+ history.back();
16
+ }
17
+ };
18
+ return /* @__PURE__ */ jsx(
19
+ ActionIcon,
20
+ {
21
+ variant: "default",
22
+ onClick: handleClick,
23
+ "aria-label": "Navigate Back",
24
+ ...rest,
25
+ className: clsx(className, "tiui-page-shell-back-button"),
26
+ children: /* @__PURE__ */ jsx(IconChevronLeft, { size: 20 })
27
+ }
28
+ );
29
+ };
30
+ export {
31
+ PageShellBaseBackButton
32
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
+ const clsx = require("clsx");
10
+ const styles = require("../../utils/styles.cjs");
11
+ const Box = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.cjs");
12
+ const PageShellBaseBody = (props) => {
13
+ return /* @__PURE__ */ jsxRuntime.jsx(
14
+ Box.Box,
15
+ {
16
+ ...props,
17
+ className: clsx.clsx(props.className, "tiui-page-shell-body"),
18
+ sx: styles.mergeSxList([
19
+ {
20
+ paddingLeft: 24,
21
+ paddingRight: 24,
22
+ paddingBottom: 16,
23
+ paddingTop: 16
24
+ },
25
+ props.sx
26
+ ])
27
+ }
28
+ );
29
+ };
30
+ exports.PageShellBaseBody = PageShellBaseBody;
@@ -0,0 +1,4 @@
1
+ import { BoxComponentProps } from '../../primitive/index.cjs';
2
+ export interface PageShellBaseBodyProps extends React.PropsWithChildren<BoxComponentProps> {
3
+ }
4
+ export declare const PageShellBaseBody: (props: PageShellBaseBodyProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { BoxComponentProps } from '../../primitive/index.mjs';
2
+ export interface PageShellBaseBodyProps extends React.PropsWithChildren<BoxComponentProps> {
3
+ }
4
+ export declare const PageShellBaseBody: (props: PageShellBaseBodyProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import { clsx } from "clsx";
8
+ import { mergeSxList } from "../../utils/styles.mjs";
9
+ import { Box } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.mjs";
10
+ const PageShellBaseBody = (props) => {
11
+ return /* @__PURE__ */ jsx(
12
+ Box,
13
+ {
14
+ ...props,
15
+ className: clsx(props.className, "tiui-page-shell-body"),
16
+ sx: mergeSxList([
17
+ {
18
+ paddingLeft: 24,
19
+ paddingRight: 24,
20
+ paddingBottom: 16,
21
+ paddingTop: 16
22
+ },
23
+ props.sx
24
+ ])
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ PageShellBaseBody
30
+ };
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
+ const clsx = require("clsx");
10
+ const styles = require("../../utils/styles.cjs");
11
+ const Group = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/Group/Group.cjs");
12
+ const PageShellBaseHeader = ({
13
+ sticky,
14
+ leftSection,
15
+ rightSection,
16
+ children,
17
+ ...restProps
18
+ }) => {
19
+ return /* @__PURE__ */ jsxRuntime.jsxs(
20
+ Group.Group,
21
+ {
22
+ wrap: "nowrap",
23
+ justify: "space-between",
24
+ gap: 0,
25
+ ...restProps,
26
+ className: clsx.clsx(restProps.className, "tiui-page-shell-header"),
27
+ mod: [{ sticky }, restProps.mod],
28
+ sx: styles.mergeSxList([
29
+ {
30
+ paddingLeft: 24,
31
+ paddingRight: 24,
32
+ height: 64,
33
+ "&[data-sticky]": {
34
+ position: "sticky",
35
+ zIndex: 2,
36
+ top: 0,
37
+ left: 0
38
+ }
39
+ },
40
+ restProps.sx
41
+ ]),
42
+ children: [
43
+ leftSection,
44
+ /* @__PURE__ */ jsxRuntime.jsx(Group.Group, { wrap: "nowrap", sx: { flex: 1, marginRight: 16 }, children }),
45
+ rightSection
46
+ ]
47
+ }
48
+ );
49
+ };
50
+ exports.PageShellBaseHeader = PageShellBaseHeader;
@@ -0,0 +1,17 @@
1
+ import { GroupProps } from '../../primitive/index.cjs';
2
+ export interface PageShellBaseHeaderProps extends GroupProps {
3
+ /**
4
+ * Determines whether the header should be sticky
5
+ * Default: false
6
+ */
7
+ sticky?: boolean;
8
+ /**
9
+ * Left section of header
10
+ */
11
+ leftSection?: React.ReactNode;
12
+ /**
13
+ * Right section of header
14
+ */
15
+ rightSection?: React.ReactNode;
16
+ }
17
+ export declare const PageShellBaseHeader: ({ sticky, leftSection, rightSection, children, ...restProps }: PageShellBaseHeaderProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { GroupProps } from '../../primitive/index.mjs';
2
+ export interface PageShellBaseHeaderProps extends GroupProps {
3
+ /**
4
+ * Determines whether the header should be sticky
5
+ * Default: false
6
+ */
7
+ sticky?: boolean;
8
+ /**
9
+ * Left section of header
10
+ */
11
+ leftSection?: React.ReactNode;
12
+ /**
13
+ * Right section of header
14
+ */
15
+ rightSection?: React.ReactNode;
16
+ }
17
+ export declare const PageShellBaseHeader: ({ sticky, leftSection, rightSection, children, ...restProps }: PageShellBaseHeaderProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,50 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import { clsx } from "clsx";
8
+ import { mergeSxList } from "../../utils/styles.mjs";
9
+ import { Group } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/Group/Group.mjs";
10
+ const PageShellBaseHeader = ({
11
+ sticky,
12
+ leftSection,
13
+ rightSection,
14
+ children,
15
+ ...restProps
16
+ }) => {
17
+ return /* @__PURE__ */ jsxs(
18
+ Group,
19
+ {
20
+ wrap: "nowrap",
21
+ justify: "space-between",
22
+ gap: 0,
23
+ ...restProps,
24
+ className: clsx(restProps.className, "tiui-page-shell-header"),
25
+ mod: [{ sticky }, restProps.mod],
26
+ sx: mergeSxList([
27
+ {
28
+ paddingLeft: 24,
29
+ paddingRight: 24,
30
+ height: 64,
31
+ "&[data-sticky]": {
32
+ position: "sticky",
33
+ zIndex: 2,
34
+ top: 0,
35
+ left: 0
36
+ }
37
+ },
38
+ restProps.sx
39
+ ]),
40
+ children: [
41
+ leftSection,
42
+ /* @__PURE__ */ jsx(Group, { wrap: "nowrap", sx: { flex: 1, marginRight: 16 }, children }),
43
+ rightSection
44
+ ]
45
+ }
46
+ );
47
+ };
48
+ export {
49
+ PageShellBaseHeader
50
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
+ const clsx = require("clsx");
10
+ const Box = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.cjs");
11
+ const PageShellBaseRoot = (props) => {
12
+ return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ...props, className: clsx.clsx(props.className, "tiui-page-shell-root") });
13
+ };
14
+ exports.PageShellBaseRoot = PageShellBaseRoot;
@@ -0,0 +1,4 @@
1
+ import { BoxComponentProps } from '../../primitive/index.cjs';
2
+ export interface PageShellBaseRootProps extends React.PropsWithChildren<BoxComponentProps> {
3
+ }
4
+ export declare const PageShellBaseRoot: (props: PageShellBaseRootProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { BoxComponentProps } from '../../primitive/index.mjs';
2
+ export interface PageShellBaseRootProps extends React.PropsWithChildren<BoxComponentProps> {
3
+ }
4
+ export declare const PageShellBaseRoot: (props: PageShellBaseRootProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import { clsx } from "clsx";
8
+ import { Box } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.mjs";
9
+ const PageShellBaseRoot = (props) => {
10
+ return /* @__PURE__ */ jsx(Box, { ...props, className: clsx(props.className, "tiui-page-shell-root") });
11
+ };
12
+ export {
13
+ PageShellBaseRoot
14
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
+ const index = require("../../primitive/Typography/index.cjs");
10
+ const clsx = require("clsx");
11
+ const PageShellBaseTitle = (props) => {
12
+ return /* @__PURE__ */ jsxRuntime.jsx(
13
+ index.Typography,
14
+ {
15
+ variant: "headline-lg",
16
+ component: "div",
17
+ fw: 300,
18
+ ...props,
19
+ className: clsx.clsx(props.className, "tiui-page-shell-title")
20
+ }
21
+ );
22
+ };
23
+ exports.PageShellBaseTitle = PageShellBaseTitle;
@@ -0,0 +1,4 @@
1
+ import { TypographyProps } from '../../primitive/index.cjs';
2
+ export interface PageShellBaseTitleProps extends React.PropsWithChildren<TypographyProps> {
3
+ }
4
+ export declare const PageShellBaseTitle: (props: PageShellBaseTitleProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { TypographyProps } from '../../primitive/index.mjs';
2
+ export interface PageShellBaseTitleProps extends React.PropsWithChildren<TypographyProps> {
3
+ }
4
+ export declare const PageShellBaseTitle: (props: PageShellBaseTitleProps) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import { Typography } from "../../primitive/Typography/index.mjs";
8
+ import { clsx } from "clsx";
9
+ const PageShellBaseTitle = (props) => {
10
+ return /* @__PURE__ */ jsx(
11
+ Typography,
12
+ {
13
+ variant: "headline-lg",
14
+ component: "div",
15
+ fw: 300,
16
+ ...props,
17
+ className: clsx(props.className, "tiui-page-shell-title")
18
+ }
19
+ );
20
+ };
21
+ export {
22
+ PageShellBaseTitle
23
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const PageShellBaseBackButton = require("./PageShellBaseBackButton.cjs");
4
+ const PageShellBaseBody = require("./PageShellBaseBody.cjs");
5
+ const PageShellBaseHeader = require("./PageShellBaseHeader.cjs");
6
+ const PageShellBaseRoot = require("./PageShellBaseRoot.cjs");
7
+ const PageShellBaseTitle = require("./PageShellBaseTitle.cjs");
8
+ const Root = PageShellBaseRoot.PageShellBaseRoot;
9
+ const Header = PageShellBaseHeader.PageShellBaseHeader;
10
+ const Title = PageShellBaseTitle.PageShellBaseTitle;
11
+ const Body = PageShellBaseBody.PageShellBaseBody;
12
+ const BackButton = PageShellBaseBackButton.PageShellBaseBackButton;
13
+ const PageShellBase = {
14
+ Root,
15
+ Header,
16
+ Title,
17
+ Body,
18
+ BackButton
19
+ };
20
+ exports.PageShellBaseBackButton = PageShellBaseBackButton.PageShellBaseBackButton;
21
+ exports.PageShellBaseBody = PageShellBaseBody.PageShellBaseBody;
22
+ exports.PageShellBaseHeader = PageShellBaseHeader.PageShellBaseHeader;
23
+ exports.PageShellBaseRoot = PageShellBaseRoot.PageShellBaseRoot;
24
+ exports.PageShellBaseTitle = PageShellBaseTitle.PageShellBaseTitle;
25
+ exports.PageShellBase = PageShellBase;
@@ -0,0 +1,14 @@
1
+ import { PageShellBaseBackButton, PageShellBaseBackButtonProps } from './PageShellBaseBackButton.cjs';
2
+ import { PageShellBaseBody, PageShellBaseBodyProps } from './PageShellBaseBody.cjs';
3
+ import { PageShellBaseHeader, PageShellBaseHeaderProps } from './PageShellBaseHeader.cjs';
4
+ import { PageShellBaseRoot, PageShellBaseRootProps } from './PageShellBaseRoot.cjs';
5
+ import { PageShellBaseTitle, PageShellBaseTitleProps } from './PageShellBaseTitle.cjs';
6
+ export declare const PageShellBase: {
7
+ Root: (props: PageShellBaseRootProps) => import("react/jsx-runtime.js").JSX.Element;
8
+ Header: ({ sticky, leftSection, rightSection, children, ...restProps }: PageShellBaseHeaderProps) => import("react/jsx-runtime.js").JSX.Element;
9
+ Title: (props: PageShellBaseTitleProps) => import("react/jsx-runtime.js").JSX.Element;
10
+ Body: (props: PageShellBaseBodyProps) => import("react/jsx-runtime.js").JSX.Element;
11
+ BackButton: ({ className, onClick, ...rest }: PageShellBaseBackButtonProps) => import("react/jsx-runtime.js").JSX.Element;
12
+ };
13
+ export { PageShellBaseRoot, PageShellBaseHeader, PageShellBaseTitle, PageShellBaseBody, PageShellBaseBackButton };
14
+ export type { PageShellBaseHeaderProps, PageShellBaseRootProps, PageShellBaseTitleProps, PageShellBaseBodyProps, PageShellBaseBackButtonProps };
@@ -0,0 +1,14 @@
1
+ import { PageShellBaseBackButton, PageShellBaseBackButtonProps } from './PageShellBaseBackButton.mjs';
2
+ import { PageShellBaseBody, PageShellBaseBodyProps } from './PageShellBaseBody.mjs';
3
+ import { PageShellBaseHeader, PageShellBaseHeaderProps } from './PageShellBaseHeader.mjs';
4
+ import { PageShellBaseRoot, PageShellBaseRootProps } from './PageShellBaseRoot.mjs';
5
+ import { PageShellBaseTitle, PageShellBaseTitleProps } from './PageShellBaseTitle.mjs';
6
+ export declare const PageShellBase: {
7
+ Root: (props: PageShellBaseRootProps) => import("react/jsx-runtime.js").JSX.Element;
8
+ Header: ({ sticky, leftSection, rightSection, children, ...restProps }: PageShellBaseHeaderProps) => import("react/jsx-runtime.js").JSX.Element;
9
+ Title: (props: PageShellBaseTitleProps) => import("react/jsx-runtime.js").JSX.Element;
10
+ Body: (props: PageShellBaseBodyProps) => import("react/jsx-runtime.js").JSX.Element;
11
+ BackButton: ({ className, onClick, ...rest }: PageShellBaseBackButtonProps) => import("react/jsx-runtime.js").JSX.Element;
12
+ };
13
+ export { PageShellBaseRoot, PageShellBaseHeader, PageShellBaseTitle, PageShellBaseBody, PageShellBaseBackButton };
14
+ export type { PageShellBaseHeaderProps, PageShellBaseRootProps, PageShellBaseTitleProps, PageShellBaseBodyProps, PageShellBaseBackButtonProps };
@@ -0,0 +1,25 @@
1
+ import { PageShellBaseBackButton } from "./PageShellBaseBackButton.mjs";
2
+ import { PageShellBaseBody } from "./PageShellBaseBody.mjs";
3
+ import { PageShellBaseHeader } from "./PageShellBaseHeader.mjs";
4
+ import { PageShellBaseRoot } from "./PageShellBaseRoot.mjs";
5
+ import { PageShellBaseTitle } from "./PageShellBaseTitle.mjs";
6
+ const Root = PageShellBaseRoot;
7
+ const Header = PageShellBaseHeader;
8
+ const Title = PageShellBaseTitle;
9
+ const Body = PageShellBaseBody;
10
+ const BackButton = PageShellBaseBackButton;
11
+ const PageShellBase = {
12
+ Root,
13
+ Header,
14
+ Title,
15
+ Body,
16
+ BackButton
17
+ };
18
+ export {
19
+ PageShellBase,
20
+ PageShellBaseBackButton,
21
+ PageShellBaseBody,
22
+ PageShellBaseHeader,
23
+ PageShellBaseRoot,
24
+ PageShellBaseTitle
25
+ };