@wallarm-org/design-system 2.3.2 → 2.4.0-rc-feature-page-header-group.1
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/dist/components/Page/PageContent.js +1 -1
- package/dist/components/Page/PageDescription.d.ts +5 -0
- package/dist/components/{SettingsHeader/SettingsHeaderDescription.js → Page/PageDescription.js} +4 -4
- package/dist/components/Page/PageHeaderGroup.d.ts +6 -0
- package/dist/components/{SettingsHeader/SettingsHeaderFilters.js → Page/PageHeaderGroup.js} +6 -6
- package/dist/components/Page/PageToolbar.d.ts +6 -0
- package/dist/components/{SettingsHeader/SettingsHeaderBreadcrumbs.js → Page/PageToolbar.js} +6 -6
- package/dist/components/Page/index.d.ts +3 -0
- package/dist/components/Page/index.js +3 -0
- package/dist/components/RemoteShell/RemoteShell.js +1 -1
- package/dist/components/Table/TableMasterCellActions.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/metadata/components.json +1225 -2346
- package/package.json +1 -1
- package/dist/components/SettingsHeader/SettingsHeader.d.ts +0 -7
- package/dist/components/SettingsHeader/SettingsHeader.js +0 -63
- package/dist/components/SettingsHeader/SettingsHeaderActions.d.ts +0 -6
- package/dist/components/SettingsHeader/SettingsHeaderActions.js +0 -51
- package/dist/components/SettingsHeader/SettingsHeaderBreadcrumbs.d.ts +0 -6
- package/dist/components/SettingsHeader/SettingsHeaderDescription.d.ts +0 -5
- package/dist/components/SettingsHeader/SettingsHeaderFilters.d.ts +0 -6
- package/dist/components/SettingsHeader/SettingsHeaderHeading.d.ts +0 -6
- package/dist/components/SettingsHeader/SettingsHeaderHeading.js +0 -51
- package/dist/components/SettingsHeader/SettingsHeaderTitle.d.ts +0 -5
- package/dist/components/SettingsHeader/SettingsHeaderTitle.js +0 -51
- package/dist/components/SettingsHeader/index.d.ts +0 -7
- package/dist/components/SettingsHeader/index.js +0 -7
|
@@ -24,7 +24,7 @@ const PageContent = (t0)=>{
|
|
|
24
24
|
const testId = useTestId("content");
|
|
25
25
|
let t1;
|
|
26
26
|
if ($[5] !== className) {
|
|
27
|
-
t1 = cn("flex-1 min-h-0 overflow-auto px-24 pt-8 pb-24", "[:is([data-slot=page-header],[data-slot=
|
|
27
|
+
t1 = cn("flex-1 min-h-0 overflow-auto px-24 pt-8 pb-24", "[:is([data-slot=page-header],[data-slot=page-toolbar])+&]:pt-6", className);
|
|
28
28
|
$[5] = className;
|
|
29
29
|
$[6] = t1;
|
|
30
30
|
} else t1 = $[6];
|
package/dist/components/{SettingsHeader/SettingsHeaderDescription.js → Page/PageDescription.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import { useTestId } from "../../utils/testId.js";
|
|
5
|
-
const
|
|
5
|
+
const PageDescription = (t0)=>{
|
|
6
6
|
const $ = c(13);
|
|
7
7
|
let children;
|
|
8
8
|
let className;
|
|
@@ -34,7 +34,7 @@ const SettingsHeaderDescription = (t0)=>{
|
|
|
34
34
|
...props,
|
|
35
35
|
ref: ref,
|
|
36
36
|
"data-testid": testId,
|
|
37
|
-
"data-slot": "
|
|
37
|
+
"data-slot": "page-description",
|
|
38
38
|
className: t1,
|
|
39
39
|
children: children
|
|
40
40
|
});
|
|
@@ -47,5 +47,5 @@ const SettingsHeaderDescription = (t0)=>{
|
|
|
47
47
|
} else t2 = $[12];
|
|
48
48
|
return t2;
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
export {
|
|
50
|
+
PageDescription.displayName = "PageDescription";
|
|
51
|
+
export { PageDescription };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FC, HTMLAttributes, Ref } from 'react';
|
|
2
|
+
export interface PageHeaderGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
|
+
}
|
|
5
|
+
/** Stacks `PageTitle` and `PageDescription` so they sit as one item beside `PageActions`. */
|
|
6
|
+
export declare const PageHeaderGroup: FC<PageHeaderGroupProps>;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import { useTestId } from "../../utils/testId.js";
|
|
5
|
-
const
|
|
5
|
+
const PageHeaderGroup = (t0)=>{
|
|
6
6
|
const $ = c(13);
|
|
7
7
|
let children;
|
|
8
8
|
let className;
|
|
@@ -21,10 +21,10 @@ const SettingsHeaderFilters = (t0)=>{
|
|
|
21
21
|
props = $[3];
|
|
22
22
|
ref = $[4];
|
|
23
23
|
}
|
|
24
|
-
const testId = useTestId("
|
|
24
|
+
const testId = useTestId("header-group");
|
|
25
25
|
let t1;
|
|
26
26
|
if ($[5] !== className) {
|
|
27
|
-
t1 = cn("flex
|
|
27
|
+
t1 = cn("flex flex-col min-w-0", className);
|
|
28
28
|
$[5] = className;
|
|
29
29
|
$[6] = t1;
|
|
30
30
|
} else t1 = $[6];
|
|
@@ -34,7 +34,7 @@ const SettingsHeaderFilters = (t0)=>{
|
|
|
34
34
|
...props,
|
|
35
35
|
ref: ref,
|
|
36
36
|
"data-testid": testId,
|
|
37
|
-
"data-slot": "
|
|
37
|
+
"data-slot": "page-header-group",
|
|
38
38
|
className: t1,
|
|
39
39
|
children: children
|
|
40
40
|
});
|
|
@@ -47,5 +47,5 @@ const SettingsHeaderFilters = (t0)=>{
|
|
|
47
47
|
} else t2 = $[12];
|
|
48
48
|
return t2;
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
export {
|
|
50
|
+
PageHeaderGroup.displayName = "PageHeaderGroup";
|
|
51
|
+
export { PageHeaderGroup };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FC, HTMLAttributes, Ref } from 'react';
|
|
2
|
+
export interface PageToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
|
+
}
|
|
5
|
+
/** Row of filters (search, segmented tabs, …) placed between `PageHeader` and `PageContent`. */
|
|
6
|
+
export declare const PageToolbar: FC<PageToolbarProps>;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import { useTestId } from "../../utils/testId.js";
|
|
5
|
-
const
|
|
5
|
+
const PageToolbar = (t0)=>{
|
|
6
6
|
const $ = c(13);
|
|
7
7
|
let children;
|
|
8
8
|
let className;
|
|
@@ -21,10 +21,10 @@ const SettingsHeaderBreadcrumbs = (t0)=>{
|
|
|
21
21
|
props = $[3];
|
|
22
22
|
ref = $[4];
|
|
23
23
|
}
|
|
24
|
-
const testId = useTestId("
|
|
24
|
+
const testId = useTestId("toolbar");
|
|
25
25
|
let t1;
|
|
26
26
|
if ($[5] !== className) {
|
|
27
|
-
t1 = cn("
|
|
27
|
+
t1 = cn("flex items-center gap-12 px-24 pb-8 has-[+[data-slot=page-content]]:pb-6", className);
|
|
28
28
|
$[5] = className;
|
|
29
29
|
$[6] = t1;
|
|
30
30
|
} else t1 = $[6];
|
|
@@ -34,7 +34,7 @@ const SettingsHeaderBreadcrumbs = (t0)=>{
|
|
|
34
34
|
...props,
|
|
35
35
|
ref: ref,
|
|
36
36
|
"data-testid": testId,
|
|
37
|
-
"data-slot": "
|
|
37
|
+
"data-slot": "page-toolbar",
|
|
38
38
|
className: t1,
|
|
39
39
|
children: children
|
|
40
40
|
});
|
|
@@ -47,5 +47,5 @@ const SettingsHeaderBreadcrumbs = (t0)=>{
|
|
|
47
47
|
} else t2 = $[12];
|
|
48
48
|
return t2;
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
export {
|
|
50
|
+
PageToolbar.displayName = "PageToolbar";
|
|
51
|
+
export { PageToolbar };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { Page, type PageProps } from './Page.js';
|
|
2
2
|
export { PageActions, type PageActionsProps } from './PageActions.js';
|
|
3
3
|
export { PageContent, type PageContentProps } from './PageContent.js';
|
|
4
|
+
export { PageDescription, type PageDescriptionProps } from './PageDescription.js';
|
|
4
5
|
export { PageHeader, type PageHeaderProps } from './PageHeader.js';
|
|
6
|
+
export { PageHeaderGroup, type PageHeaderGroupProps } from './PageHeaderGroup.js';
|
|
5
7
|
export { type PageHostContextValue, PageHostProvider, type PageLayoutOptions, usePageHost, } from './PageHostContext.js';
|
|
6
8
|
export { PageTitle, type PageTitleProps } from './PageTitle.js';
|
|
9
|
+
export { PageToolbar, type PageToolbarProps } from './PageToolbar.js';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { Page } from "./Page.js";
|
|
2
2
|
export { PageActions } from "./PageActions.js";
|
|
3
3
|
export { PageContent } from "./PageContent.js";
|
|
4
|
+
export { PageDescription } from "./PageDescription.js";
|
|
4
5
|
export { PageHeader } from "./PageHeader.js";
|
|
6
|
+
export { PageHeaderGroup } from "./PageHeaderGroup.js";
|
|
5
7
|
export { PageHostProvider, usePageHost } from "./PageHostContext.js";
|
|
6
8
|
export { PageTitle } from "./PageTitle.js";
|
|
9
|
+
export { PageToolbar } from "./PageToolbar.js";
|
|
@@ -204,7 +204,7 @@ const RemoteShell = (t0)=>{
|
|
|
204
204
|
const navCtxValue = t10;
|
|
205
205
|
let t11;
|
|
206
206
|
if ($[49] !== className) {
|
|
207
|
-
t11 = cn('grid h-full overflow-hidden overscroll-none [grid-template-areas:"panel_breadcrumb""panel_content"] [grid-template-columns:auto_1fr] [grid-template-rows:auto_1fr]', "[&:has([data-slot=page-header]
|
|
207
|
+
t11 = cn('grid h-full overflow-hidden overscroll-none [grid-template-areas:"panel_breadcrumb""panel_content"] [grid-template-columns:auto_1fr] [grid-template-rows:auto_1fr]', "[&:has([data-slot=page-header])_[data-slot=remote-shell-breadcrumb]]:pb-4", "[&:has([data-slot=remote-shell-breadcrumb])_[data-slot=page-header]]:pt-4", className);
|
|
208
208
|
$[49] = className;
|
|
209
209
|
$[50] = t11;
|
|
210
210
|
} else t11 = $[50];
|
|
@@ -6,7 +6,7 @@ const TableMasterCellActions = (t0)=>{
|
|
|
6
6
|
const { children } = t0;
|
|
7
7
|
let t1;
|
|
8
8
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9
|
-
t1 = cn("shrink-0 pl-4 pr-4 flex items-center gap-2", "opacity-0 pointer-events-none", "group-hover/row:opacity-100 group-hover/row:pointer-events-auto", "group-data-[
|
|
9
|
+
t1 = cn("shrink-0 pl-4 pr-4 flex items-center gap-2", "opacity-0 pointer-events-none", "group-hover/row:opacity-100 group-hover/row:pointer-events-auto", "group-data-[preview-active]/row:opacity-100 group-data-[preview-active]/row:pointer-events-auto", "has-[[data-state=open]]:opacity-100 has-[[data-state=open]]:pointer-events-auto", "[&_[data-state=open]]:overlay [&_[data-state=open]]:overlay-states-primary-hover");
|
|
10
10
|
$[0] = t1;
|
|
11
11
|
} else t1 = $[0];
|
|
12
12
|
let t2;
|
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export { NavRail, NavRailBody, type NavRailBodyProps, NavRailFooter, type NavRai
|
|
|
60
60
|
export { NumberInput, type NumberInputProps } from './components/NumberInput/index.js';
|
|
61
61
|
export { NumericBadge, type NumericBadgeProps, } from './components/NumericBadge/index.js';
|
|
62
62
|
export { OverflowTooltip, OverflowTooltipContent, type OverflowTooltipContentProps, type OverflowTooltipProps, } from './components/OverflowTooltip/index.js';
|
|
63
|
-
export { Page, PageActions, type PageActionsProps, PageContent, type PageContentProps, PageHeader, type PageHeaderProps, type PageHostContextValue, PageHostProvider, type PageLayoutOptions, type PageProps, PageTitle, type PageTitleProps, usePageHost, } from './components/Page/index.js';
|
|
63
|
+
export { Page, PageActions, type PageActionsProps, PageContent, type PageContentProps, PageDescription, type PageDescriptionProps, PageHeader, PageHeaderGroup, type PageHeaderGroupProps, type PageHeaderProps, type PageHostContextValue, PageHostProvider, type PageLayoutOptions, type PageProps, PageTitle, type PageTitleProps, PageToolbar, type PageToolbarProps, usePageHost, } from './components/Page/index.js';
|
|
64
64
|
export { Pagination, type PaginationAlign, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationList, type PaginationListProps, PaginationNext, type PaginationNextProps, type PaginationPage, type PaginationPageChangeDetails, PaginationPageSize, type PaginationPageSizeChangeDetails, type PaginationPageSizeProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, type PaginationSize, usePaginationSizeContext, } from './components/Pagination/index.js';
|
|
65
65
|
export { type CopyFormatData, formatAsFilter, ParameterPath, type ParameterPathProps, } from './components/ParameterPath/index.js';
|
|
66
66
|
export { PasswordComplexity, type PasswordComplexityItem, type PasswordComplexityItemId, type PasswordComplexityProps, passwordValidators, } from './components/PasswordComplexity/index.js';
|
|
@@ -79,7 +79,6 @@ export { SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabs
|
|
|
79
79
|
export { createListCollection, Select, SelectButton, SelectClearTrigger, SelectContent, type SelectDataItem, SelectEmptyState, type SelectEmptyStateProps, SelectFooter, type SelectFooterProps, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionHint, type SelectOptionHintProps, SelectOptionIndicator, SelectOptionText, SelectPositioner, type SelectPositionerProps, SelectSearchInput, SelectSeparator, selectFooterVariants, type UseSelectSearchOptions, type UseSelectSearchResult, useSelectSearch, } from './components/Select/index.js';
|
|
80
80
|
export { Selection, SelectionAll, type SelectionAllProps, SelectionBulkBar, type SelectionBulkBarPlacement, type SelectionBulkBarProps, type SelectionContextValue, SelectionItem, type SelectionItemProps, type SelectionProps, useSelectionContext, } from './components/Selection/index.js';
|
|
81
81
|
export { Separator, type SeparatorProps } from './components/Separator/index.js';
|
|
82
|
-
export { SettingsHeader, SettingsHeaderActions, type SettingsHeaderActionsProps, SettingsHeaderBreadcrumbs, type SettingsHeaderBreadcrumbsProps, SettingsHeaderDescription, type SettingsHeaderDescriptionProps, SettingsHeaderFilters, type SettingsHeaderFiltersProps, SettingsHeaderHeading, type SettingsHeaderHeadingProps, type SettingsHeaderProps, SettingsHeaderTitle, type SettingsHeaderTitleProps, } from './components/SettingsHeader/index.js';
|
|
83
82
|
export { Skeleton, type SkeletonProps } from './components/Skeleton/index.js';
|
|
84
83
|
export { Slider, SliderControl, type SliderControlProps, SliderInput, type SliderInputProps, type SliderMark, SliderMarks, type SliderMarksProps, type SliderProps, SliderThumb, type SliderThumbProps, SliderValue, type SliderValueProps, } from './components/Slider/index.js';
|
|
85
84
|
export { SplashScreen, type SplashScreenProps } from './components/SplashScreen/index.js';
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ export { NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, Nav
|
|
|
49
49
|
export { NumberInput } from "./components/NumberInput/index.js";
|
|
50
50
|
export { NumericBadge } from "./components/NumericBadge/index.js";
|
|
51
51
|
export { OverflowTooltip, OverflowTooltipContent } from "./components/OverflowTooltip/index.js";
|
|
52
|
-
export { Page, PageActions, PageContent, PageHeader, PageHostProvider, PageTitle, usePageHost } from "./components/Page/index.js";
|
|
52
|
+
export { Page, PageActions, PageContent, PageDescription, PageHeader, PageHeaderGroup, PageHostProvider, PageTitle, PageToolbar, usePageHost } from "./components/Page/index.js";
|
|
53
53
|
export { Pagination, PaginationEllipsis, PaginationItem, PaginationList, PaginationNext, PaginationPageSize, PaginationPrevious, usePaginationSizeContext } from "./components/Pagination/index.js";
|
|
54
54
|
export { ParameterPath, formatAsFilter } from "./components/ParameterPath/index.js";
|
|
55
55
|
export { PasswordComplexity, passwordValidators } from "./components/PasswordComplexity/index.js";
|
|
@@ -68,7 +68,6 @@ export { SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabs
|
|
|
68
68
|
export { Select, SelectButton, SelectClearTrigger, SelectContent, SelectEmptyState, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionHint, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, createListCollection, selectFooterVariants, useSelectSearch } from "./components/Select/index.js";
|
|
69
69
|
export { Selection, SelectionAll, SelectionBulkBar, SelectionItem, useSelectionContext } from "./components/Selection/index.js";
|
|
70
70
|
export { Separator } from "./components/Separator/index.js";
|
|
71
|
-
export { SettingsHeader, SettingsHeaderActions, SettingsHeaderBreadcrumbs, SettingsHeaderDescription, SettingsHeaderFilters, SettingsHeaderHeading, SettingsHeaderTitle } from "./components/SettingsHeader/index.js";
|
|
72
71
|
export { Skeleton } from "./components/Skeleton/index.js";
|
|
73
72
|
export { Slider, SliderControl, SliderInput, SliderMarks, SliderThumb, SliderValue } from "./components/Slider/index.js";
|
|
74
73
|
export { SplashScreen } from "./components/SplashScreen/index.js";
|