@wallarm-org/design-system 0.49.0-rc-feature-page.1 → 0.49.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.
@@ -12,6 +12,7 @@ const RemotePageContent = ()=>{
12
12
  const pageTitle = lastSegment?.label ?? '';
13
13
  const fullPath = breadcrumbSegments.map((s)=>s.label).join(' / ');
14
14
  return /*#__PURE__*/ jsxs(Page, {
15
+ title: pageTitle,
15
16
  fixedHeight: true,
16
17
  children: [
17
18
  /*#__PURE__*/ jsx(PageHeader, {
@@ -3,6 +3,7 @@ import { type TestableProps } from '../../utils/testId';
3
3
  export interface PageProps extends HTMLAttributes<HTMLDivElement>, TestableProps {
4
4
  ref?: Ref<HTMLDivElement>;
5
5
  name?: string;
6
+ title?: string;
6
7
  fullSize?: boolean;
7
8
  fixedHeight?: boolean;
8
9
  children?: ReactNode;
@@ -1,9 +1,9 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import { cn } from "../../utils/cn.js";
4
4
  import { TestIdProvider } from "../../utils/testId.js";
5
5
  import { usePageHost } from "./PageHostContext.js";
6
- const Page = ({ ref, name, fullSize, fixedHeight, children, className, 'data-testid': testId, ...props })=>{
6
+ const Page = ({ ref, name, title, fullSize, fixedHeight, children, className, 'data-testid': testId, ...props })=>{
7
7
  const host = usePageHost();
8
8
  useEffect(()=>{
9
9
  host?.setLayout({
@@ -17,16 +17,21 @@ const Page = ({ ref, name, fullSize, fixedHeight, children, className, 'data-tes
17
17
  fullSize,
18
18
  fixedHeight
19
19
  ]);
20
- return /*#__PURE__*/ jsx(TestIdProvider, {
20
+ return /*#__PURE__*/ jsxs(TestIdProvider, {
21
21
  value: testId,
22
- children: /*#__PURE__*/ jsx("div", {
23
- ...props,
24
- ref: ref,
25
- "data-testid": testId,
26
- "data-slot": "page",
27
- className: cn('flex flex-col', fixedHeight && 'h-full', className),
28
- children: children
29
- })
22
+ children: [
23
+ title && /*#__PURE__*/ jsx("title", {
24
+ children: title
25
+ }),
26
+ /*#__PURE__*/ jsx("div", {
27
+ ...props,
28
+ ref: ref,
29
+ "data-testid": testId,
30
+ "data-slot": "page",
31
+ className: cn('flex flex-col', fixedHeight && 'h-full', className),
32
+ children: children
33
+ })
34
+ ]
30
35
  });
31
36
  };
32
37
  Page.displayName = 'Page';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.48.0",
3
- "generatedAt": "2026-05-28T00:13:35.451Z",
3
+ "generatedAt": "2026-05-28T00:36:49.945Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "Accordion",
@@ -30697,6 +30697,11 @@
30697
30697
  "type": "string | undefined",
30698
30698
  "required": false
30699
30699
  },
30700
+ {
30701
+ "name": "title",
30702
+ "type": "string | undefined",
30703
+ "required": false
30704
+ },
30700
30705
  {
30701
30706
  "name": "fullSize",
30702
30707
  "type": "boolean | undefined",
@@ -30802,11 +30807,6 @@
30802
30807
  "type": "number | undefined",
30803
30808
  "required": false
30804
30809
  },
30805
- {
30806
- "name": "title",
30807
- "type": "string | undefined",
30808
- "required": false
30809
- },
30810
30810
  {
30811
30811
  "name": "translate",
30812
30812
  "type": "\"yes\" | \"no\" | undefined",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wallarm-org/design-system",
3
- "version": "0.49.0-rc-feature-page.1",
3
+ "version": "0.49.0",
4
4
  "description": "Core design system library with React components and Storybook documentation",
5
5
  "publishConfig": {
6
6
  "access": "public",