@astral/ui 4.88.0 → 4.89.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.
- package/components/GuidTypography/GuidTypography.d.ts +2 -8
- package/components/GuidTypography/GuidTypography.js +12 -7
- package/components/GuidTypography/index.d.ts +2 -1
- package/components/GuidTypography/public.d.ts +2 -1
- package/components/GuidTypography/types.d.ts +16 -0
- package/components/GuidTypography/types.js +1 -0
- package/components/GuidTypography/useLogic/index.d.ts +1 -0
- package/components/GuidTypography/useLogic/index.js +1 -0
- package/components/GuidTypography/useLogic/useLogic.d.ts +638 -0
- package/components/GuidTypography/useLogic/useLogic.js +18 -0
- package/components/JsonViewer/NodeValue/styles.d.ts +2 -0
- package/components/PageHeader/HeaderContent/styles.js +7 -2
- package/components/Tabs/Tabs.d.ts +1 -1
- package/components/Tabs/Tabs.js +4 -2
- package/components/Tabs/constants.d.ts +3 -0
- package/components/Tabs/constants.js +4 -0
- package/components/Tabs/index.d.ts +2 -1
- package/components/Tabs/index.js +2 -1
- package/components/Tabs/public.d.ts +1 -0
- package/components/Tabs/public.js +1 -0
- package/node/components/GuidTypography/GuidTypography.d.ts +2 -8
- package/node/components/GuidTypography/GuidTypography.js +11 -6
- package/node/components/GuidTypography/index.d.ts +2 -1
- package/node/components/GuidTypography/public.d.ts +2 -1
- package/node/components/GuidTypography/types.d.ts +16 -0
- package/node/components/GuidTypography/types.js +2 -0
- package/node/components/GuidTypography/useLogic/index.d.ts +1 -0
- package/node/components/GuidTypography/useLogic/index.js +17 -0
- package/node/components/GuidTypography/useLogic/useLogic.d.ts +638 -0
- package/node/components/GuidTypography/useLogic/useLogic.js +22 -0
- package/node/components/JsonViewer/NodeValue/styles.d.ts +2 -0
- package/node/components/PageHeader/HeaderContent/styles.js +7 -2
- package/node/components/Tabs/Tabs.d.ts +1 -1
- package/node/components/Tabs/Tabs.js +4 -2
- package/node/components/Tabs/constants.d.ts +3 -0
- package/node/components/Tabs/constants.js +7 -0
- package/node/components/Tabs/index.d.ts +2 -1
- package/node/components/Tabs/index.js +4 -1
- package/node/components/Tabs/public.d.ts +1 -0
- package/node/components/Tabs/public.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLogic = void 0;
|
|
4
|
+
const personalDataSecurity_1 = require("../../personalDataSecurity");
|
|
5
|
+
const useLogic = ({ className, isHidePersonalData, tooltipProps, canCopy, copyParams, ...restProps }) => {
|
|
6
|
+
const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
|
|
7
|
+
isEnabled: isHidePersonalData,
|
|
8
|
+
});
|
|
9
|
+
const guidText = typeof restProps.children === 'string' ? restProps.children : undefined;
|
|
10
|
+
const resolvedCopyText = copyParams?.copyText ?? guidText;
|
|
11
|
+
return {
|
|
12
|
+
className,
|
|
13
|
+
isHidePersonalData,
|
|
14
|
+
tooltipProps,
|
|
15
|
+
canCopy,
|
|
16
|
+
copyParams,
|
|
17
|
+
restProps,
|
|
18
|
+
resolvedCopyText,
|
|
19
|
+
hidePersonalDataClassname,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
exports.useLogic = useLogic;
|
|
@@ -1050,6 +1050,8 @@ export declare const GuidValue: import("@emotion/styled/dist/declarations/src/ty
|
|
|
1050
1050
|
children?: import("react").ReactNode;
|
|
1051
1051
|
} & {
|
|
1052
1052
|
isHidePersonalData?: boolean | undefined;
|
|
1053
|
+
canCopy?: boolean | undefined;
|
|
1054
|
+
copyParams?: import("../../CopyTypography").CopyTypographyProps | undefined;
|
|
1053
1055
|
} & {
|
|
1054
1056
|
theme?: import("@emotion/react").Theme | undefined;
|
|
1055
1057
|
} & {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DesktopTitleWrapper = exports.PageSubheader = exports.TabsWrapper = exports.BreadcrumbsWrapper = void 0;
|
|
4
4
|
const styled_1 = require("../../styled");
|
|
5
|
+
const Tabs_1 = require("../../Tabs");
|
|
5
6
|
exports.BreadcrumbsWrapper = styled_1.styled.div `
|
|
6
7
|
grid-column: 2;
|
|
7
8
|
grid-row: 1;
|
|
@@ -16,10 +17,14 @@ exports.TabsWrapper = styled_1.styled.div `
|
|
|
16
17
|
grid-column: 1 / -1;
|
|
17
18
|
grid-row: 4;
|
|
18
19
|
|
|
19
|
-
padding-top: ${({ theme }) => theme.spacing(
|
|
20
|
+
padding-top: ${({ theme }) => theme.spacing(4)};
|
|
20
21
|
|
|
21
22
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
22
|
-
padding: ${({ theme }) => theme.spacing(0,
|
|
23
|
+
padding: ${({ theme }) => theme.spacing(0, 0, 4, 0)};
|
|
24
|
+
|
|
25
|
+
.${Tabs_1.tabsClassnames.root} {
|
|
26
|
+
margin: ${({ theme }) => theme.spacing(0, 4)};
|
|
27
|
+
}
|
|
23
28
|
}
|
|
24
29
|
`;
|
|
25
30
|
exports.PageSubheader = styled_1.styled.div `
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TabsProps as MuiTabsProps } from '@mui/material/Tabs';
|
|
2
2
|
import { type WithoutEmotionSpecific } from '../types/WithoutEmotionSpecific';
|
|
3
3
|
export type TabsProps = WithoutEmotionSpecific<MuiTabsProps>;
|
|
4
|
-
export declare const Tabs: ({ ...tabsProps }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Tabs: ({ className, ...tabsProps }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Tabs = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const useScrollToActiveElement_1 = require("../useScrollToActiveElement");
|
|
6
|
+
const classNames_1 = require("../utils/classNames");
|
|
7
|
+
const constants_1 = require("./constants");
|
|
6
8
|
const styles_1 = require("./styles");
|
|
7
|
-
const Tabs = ({ ...tabsProps }) => {
|
|
9
|
+
const Tabs = ({ className, ...tabsProps }) => {
|
|
8
10
|
const { containerRef } = (0, useScrollToActiveElement_1.useScrollToActiveElement)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.Container, { children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledTabs, { ...tabsProps, ref: containerRef }), (0, jsx_runtime_1.jsx)(styles_1.Divider, {})] }) }));
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.Container, { children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledTabs, { ...tabsProps, ref: containerRef, className: (0, classNames_1.classNames)(className, constants_1.tabsClassnames.root) }), (0, jsx_runtime_1.jsx)(styles_1.Divider, {})] }) }));
|
|
10
12
|
};
|
|
11
13
|
exports.Tabs = Tabs;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tabsClassnames = void 0;
|
|
4
|
+
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
|
+
exports.tabsClassnames = {
|
|
6
|
+
root: (0, createUIKitClassname_1.createUIKitClassname)('tabs-root'),
|
|
7
|
+
};
|
|
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
exports.tabsClassnames = void 0;
|
|
18
|
+
var constants_1 = require("./constants");
|
|
19
|
+
Object.defineProperty(exports, "tabsClassnames", { enumerable: true, get: function () { return constants_1.tabsClassnames; } });
|
|
18
20
|
__exportStar(require("./Tab"), exports);
|
|
21
|
+
__exportStar(require("./Tabs"), exports);
|
|
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.tabsClassnames = void 0;
|
|
18
|
+
var constants_1 = require("./constants");
|
|
19
|
+
Object.defineProperty(exports, "tabsClassnames", { enumerable: true, get: function () { return constants_1.tabsClassnames; } });
|
|
17
20
|
__exportStar(require("./Tab"), exports);
|
|
18
21
|
__exportStar(require("./Tabs"), exports);
|