@gears-frontx/ui-kit 0.4.1 → 0.4.2

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/README.md CHANGED
@@ -67,8 +67,8 @@ in their own render body and ship a banner on their own chunk instead.
67
67
 
68
68
  The kit components that carry a `'use client'` banner of their own: Attachment,
69
69
  Badge, Breadcrumb, Bubble, ButtonGroup, Carousel, Chart, Combobox, ContextMenu,
70
- DataGrid, DataTable, Drawer, DropdownMenu, Marker, Sidebar, StatusDot, Table,
71
- Toast.
70
+ DataGrid, DataTable, Drawer, DropdownMenu, Marker, PageHeader, Sidebar,
71
+ StatusDot, Table, Toast.
72
72
 
73
73
  Everything else — including interactive primitives like Button, Checkbox,
74
74
  Dialog, Select, Switch, RadioGroup, and Tabs — stays server-renderable; each
@@ -0,0 +1 @@
1
+ ._pageHeader_xfw9e_15{--_page-header-inset: var(--page-header-inset, var(--space-6));container-type:inline-size;container-name:page-header;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--space-4);min-width:0;padding-block:var(--space-1);padding-inline:var(--_page-header-inset);border-bottom:var(--border-width) solid var(--border);color:var(--foreground)}._sizeSm_xfw9e_33{min-height:3.5rem}._sizeDefault_xfw9e_37{min-height:4rem}._sizeLg_xfw9e_41{min-height:5rem}._borderHidden_xfw9e_47{border-bottom-color:transparent}._pageHeaderLeading_xfw9e_51{display:flex;flex-shrink:0;align-items:center;gap:var(--space-2)}._pageHeaderContent_xfw9e_58{display:grid;flex:1 1 0;min-width:0;grid-template-areas:"eyebrow eyebrow eyebrow" "title meta ." "description description description";grid-template-columns:minmax(0,max-content) minmax(0,max-content) minmax(0,1fr);align-items:center}._pageHeaderEyebrow_xfw9e_67{grid-area:eyebrow;min-width:0;margin-bottom:var(--space-1);overflow:hidden;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking);text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground)}._pageHeaderEyebrow_xfw9e_67 a{color:inherit;text-decoration:none}._pageHeaderEyebrow_xfw9e_67 a:hover{color:var(--link-foreground);text-decoration:underline}._pageHeaderEyebrow_xfw9e_67 a:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:calc(-1 * var(--border-width-focus));border-radius:var(--radius-xs)}._pageHeaderTitle_xfw9e_97{grid-area:title;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._typographyHeading_xfw9e_106{font-size:var(--text-heading-1-size);line-height:var(--text-heading-1-line-height);font-weight:var(--text-heading-1-weight);letter-spacing:var(--text-heading-1-tracking)}._typographyDisplay_xfw9e_113{font-size:var(--text-display-size);line-height:var(--text-display-line-height);font-weight:var(--text-display-weight);letter-spacing:var(--text-display-tracking)}._pageHeaderMeta_xfw9e_120{grid-area:meta;display:flex;min-width:0;align-items:center;gap:var(--space-5);margin-inline-start:var(--space-5)}._pageHeaderDescription_xfw9e_129{grid-area:description;min-width:0;margin-top:var(--space-1);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking);color:var(--muted-foreground)}._pageHeaderActions_xfw9e_140{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-inline-start:var(--space-2)}@container page-header (width < 64rem){._pageHeaderLeading_xfw9e_51,._pageHeaderContent_xfw9e_58,._pageHeaderActions_xfw9e_140{margin-block:var(--space-2)}._pageHeaderContent_xfw9e_58{grid-template-areas:"eyebrow" "title" "description" "meta";grid-template-columns:minmax(0,1fr)}._pageHeaderMeta_xfw9e_120{margin-top:var(--space-2);margin-inline-start:0}._pageHeaderActions_xfw9e_140{flex-basis:100%;margin-inline-start:0}}
@@ -0,0 +1,50 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ComponentProps } from 'react';
4
+ declare const pageHeaderVariants: (props?: ({
5
+ size?: "default" | "sm" | "lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface PageHeaderProps extends ComponentProps<'header'>, VariantProps<typeof pageHeaderVariants> {
8
+ /** Draws the rule under the header. `false` paints it transparent rather
9
+ * than dropping it, so a header without the rule keeps the height and
10
+ * the text position of one with it. A flag, not a variant value: it is
11
+ * anatomy, the way Badge's `dot` is. */
12
+ border?: boolean;
13
+ }
14
+ /** `size` is the drawn minimum height: `sm` 56, `default` 64, `lg` 80. */
15
+ export declare function PageHeader({ className, size, border, ...props }: PageHeaderProps): import("react").JSX.Element;
16
+ export type PageHeaderLeadingProps = ComponentProps<'div'>;
17
+ /** A control before the text: a back link, a view switch. */
18
+ export declare function PageHeaderLeading({ className, ...props }: PageHeaderLeadingProps): import("react").JSX.Element;
19
+ export type PageHeaderContentProps = ComponentProps<'div'>;
20
+ /** The text block: eyebrow, title, the content beside the title and the
21
+ * description. Each part takes its own grid area, so where it lands does
22
+ * not depend on which of the others are present. */
23
+ export declare function PageHeaderContent({ className, ...props }: PageHeaderContentProps): import("react").JSX.Element;
24
+ export type PageHeaderEyebrowProps = ComponentProps<'div'>;
25
+ /** A line above the title - typically a link to the parent the page
26
+ * belongs to. */
27
+ export declare function PageHeaderEyebrow({ className, ...props }: PageHeaderEyebrowProps): import("react").JSX.Element;
28
+ declare const pageHeaderTitleVariants: (props?: ({
29
+ typography?: "heading" | "display" | null | undefined;
30
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
31
+ export interface PageHeaderTitleProps extends useRender.ComponentProps<'h1'>, VariantProps<typeof pageHeaderTitleVariants> {
32
+ }
33
+ /** The page's heading: an `h1` unless `render` names another level, such
34
+ * as `render={<h2 />}` for a section under the page's own header.
35
+ * `typography` picks the ramp role - `heading` (20/28) or `display`
36
+ * (26/32), independent of the header's height. */
37
+ export declare function PageHeaderTitle({ className, typography, render, ...props }: PageHeaderTitleProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
38
+ export type PageHeaderMetaProps = ComponentProps<'div'>;
39
+ /** Content beside the title: a badge, a status, section navigation, a
40
+ * small action. */
41
+ export declare function PageHeaderMeta({ className, ...props }: PageHeaderMetaProps): import("react").JSX.Element;
42
+ export type PageHeaderDescriptionProps = ComponentProps<'div'>;
43
+ /** A short line under the title. */
44
+ export declare function PageHeaderDescription({ className, ...props }: PageHeaderDescriptionProps): import("react").JSX.Element;
45
+ export type PageHeaderActionsProps = ComponentProps<'div'>;
46
+ /** The row at the end of the header: buttons, menus, anything the page
47
+ * acts with. */
48
+ export declare function PageHeaderActions({ className, ...props }: PageHeaderActionsProps): import("react").JSX.Element;
49
+ export {};
50
+ //# sourceMappingURL=page-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/page-header/page-header.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAkB5C,QAAA,MAAM,kBAAkB;;8EAWtB,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzE;;;4CAGwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAa,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAOvF;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE3D,6DAA6D;AAC7D,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE3D;;oDAEoD;AACpD,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE3D;iBACiB;AACjB,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,QAAA,MAAM,uBAAuB;;8EAU3B,CAAC;AAEH,MAAM,WAAW,oBACf,SAAQ,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC;CAAG;AAEzF;;;kDAGkD;AAClD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,8FAMhG;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD;mBACmB;AACnB,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAE1E;AAED,MAAM,MAAM,0BAA0B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/D,oCAAoC;AACpC,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,0BAA0B,+BAExF;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE3D;gBACgB;AAChB,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF"}
@@ -0,0 +1,2 @@
1
+ export { PageHeader, type PageHeaderProps, PageHeaderActions, type PageHeaderActionsProps, PageHeaderContent, type PageHeaderContentProps, PageHeaderDescription, type PageHeaderDescriptionProps, PageHeaderEyebrow, type PageHeaderEyebrowProps, PageHeaderLeading, type PageHeaderLeadingProps, PageHeaderMeta, type PageHeaderMetaProps, PageHeaderTitle, type PageHeaderTitleProps, } from './page-header.js';
2
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/page-header/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,cAAc,EACd,KAAK,mBAAmB,EACxB,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,266 @@
1
+ # PageHeader
2
+
3
+ The bar at the top of a page or of a section of one: its title, and what
4
+ sits around the title - a control before it, a line above it, content
5
+ beside it, a description under it and actions at the end. PageHeader has
6
+ no Base UI primitive and no shadcn/ui counterpart; it is the kit's own, and
7
+ nothing in it is tied to one product - what the slots hold is the
8
+ application's. Every part is a plain styled element with no interactive
9
+ behaviour of its own.
10
+
11
+ Composition: `PageHeader` (root) → `PageHeaderLeading` (a control before the
12
+ text), `PageHeaderContent` (→ `PageHeaderEyebrow`, `PageHeaderTitle`,
13
+ `PageHeaderMeta`, `PageHeaderDescription`) and `PageHeaderActions` (the row
14
+ at the end).
15
+
16
+ ## When to use
17
+
18
+ - The header of the page of one object - a customer, an order, a
19
+ project, a document - with its name, and a badge, a status or a link
20
+ beside it.
21
+ - The header of a list or of a section inside a page: a list with its
22
+ "New …" button, a tab with its own section navigation and actions.
23
+
24
+ ## When not to use
25
+
26
+ - The application's top bar - the product identity, the global navigation
27
+ and the account menu belong to the shell, not to a page.
28
+ - A heading inside a card or a panel - use `CardHeader`/`CardTitle`.
29
+ - Tabs that switch panels below the header - the tab list may sit in
30
+ `PageHeaderMeta`, but `Tabs` still owns the panels.
31
+
32
+ ## Props (kit level)
33
+
34
+ `PageHeader`:
35
+
36
+ | Prop | Type | Default |
37
+ |------|------|---------|
38
+ | `size` | `'sm' \| 'default' \| 'lg'` - the minimum height: `sm` 56, `default` 64, `lg` 80 | `'default'` |
39
+ | `border` | `boolean` - draws the rule under the header; `false` paints it transparent, so the height and the text position stay those of a header with the rule | `true` |
40
+ | `className` | `string` - merged after the kit classes | — |
41
+
42
+ `PageHeaderTitle`:
43
+
44
+ | Prop | Type | Default |
45
+ |------|------|---------|
46
+ | `typography` | `'heading' \| 'display'` - the ramp role: `heading` is Heading 1 (20/28), `display` is the Page Title role (26/32) | `'heading'` |
47
+ | `render` | an element or a render function - replaces the `h1`, such as `render={<h2 />}` for a section's header | — |
48
+ | `className` | `string` - merged after the kit classes | — |
49
+
50
+ `PageHeaderLeading`, `PageHeaderContent`, `PageHeaderEyebrow`,
51
+ `PageHeaderMeta`, `PageHeaderDescription` and `PageHeaderActions` take no
52
+ kit-specific props - every prop is the `div`'s own, forwarded as-is.
53
+ `PageHeader` forwards the `header` element's props the same way.
54
+
55
+ ### CSS hook
56
+
57
+ | Variable | Default | What it sets |
58
+ |----------|---------|--------------|
59
+ | `--page-header-inset` | `var(--space-6)` (24) | The inset on both sides. Set `0` for a header inside a region that already has its own padding, `var(--space-4)` for a denser panel. |
60
+
61
+ ## Examples
62
+
63
+ ```tsx
64
+ import {
65
+ Badge,
66
+ Button,
67
+ PageHeader,
68
+ PageHeaderActions,
69
+ PageHeaderContent,
70
+ PageHeaderDescription,
71
+ PageHeaderEyebrow,
72
+ PageHeaderLeading,
73
+ PageHeaderMeta,
74
+ PageHeaderTitle,
75
+ Tabs,
76
+ TabsContent,
77
+ TabsList,
78
+ TabsTrigger,
79
+ } from '@gears-frontx/ui-kit';
80
+ import { ArrowLeftIcon, ArrowLeftRightIcon } from 'lucide-react';
81
+
82
+ // An object's page: the tall header with the Page Title role and a link to
83
+ // its parent, set above the page's main on the card surface
84
+ // (styles.surface: `background: var(--card);` in the page's own module)
85
+ <PageHeader size="lg" role="group" className={styles.surface}>
86
+ <PageHeaderContent>
87
+ <PageHeaderEyebrow>
88
+ <a href="/customers">Customers</a>
89
+ </PageHeaderEyebrow>
90
+ <PageHeaderTitle typography="display">Northwind Traders</PageHeaderTitle>
91
+ </PageHeaderContent>
92
+ </PageHeader>
93
+
94
+ // An account: a link beside the title
95
+ <PageHeader size="lg" role="group" className={styles.surface}>
96
+ <PageHeaderContent>
97
+ <PageHeaderTitle typography="display">Acme Corporation</PageHeaderTitle>
98
+ <PageHeaderMeta>
99
+ <Button
100
+ variant="ghost"
101
+ size="sm"
102
+ icon={<ArrowLeftRightIcon />}
103
+ render={<a href="/switch-account" />}
104
+ nativeButton={false}
105
+ >
106
+ Switch account
107
+ </Button>
108
+ </PageHeaderMeta>
109
+ </PageHeaderContent>
110
+ </PageHeader>
111
+
112
+ // The compact header: a back link and a badge beside the title
113
+ <PageHeader size="sm">
114
+ <PageHeaderLeading>
115
+ <Button
116
+ variant="ghost"
117
+ icon={<ArrowLeftIcon />}
118
+ aria-label="Back to orders"
119
+ render={<a href="/orders" />}
120
+ nativeButton={false}
121
+ />
122
+ </PageHeaderLeading>
123
+ <PageHeaderContent>
124
+ <PageHeaderTitle>Order 1042</PageHeaderTitle>
125
+ <PageHeaderMeta>
126
+ <Badge variant="outline">Paid</Badge>
127
+ </PageHeaderMeta>
128
+ </PageHeaderContent>
129
+ </PageHeader>
130
+
131
+ // A section under the page's own header: an h2, tabs and actions. One Tabs
132
+ // holds the header and the panels: the list sits in the meta, and the panels
133
+ // it switches follow the header.
134
+ <Tabs defaultValue="summary">
135
+ <PageHeader>
136
+ <PageHeaderContent>
137
+ <PageHeaderTitle render={<h2 />}>Overview</PageHeaderTitle>
138
+ <PageHeaderMeta>
139
+ <TabsList variant="line" aria-label="Overview sections">
140
+ <TabsTrigger value="summary">Summary</TabsTrigger>
141
+ <TabsTrigger value="delivery">Delivery</TabsTrigger>
142
+ </TabsList>
143
+ </PageHeaderMeta>
144
+ </PageHeaderContent>
145
+ <PageHeaderActions>
146
+ <Button variant="outline">Edit dashboard</Button>
147
+ <Button>Export</Button>
148
+ </PageHeaderActions>
149
+ </PageHeader>
150
+ <TabsContent value="summary">…</TabsContent>
151
+ <TabsContent value="delivery">…</TabsContent>
152
+ </Tabs>
153
+
154
+ // A header set inside a region that already pads its content
155
+ // (styles.header: `--page-header-inset: 0;` in the screen's own module)
156
+ <PageHeader border={false} className={styles.header}>
157
+ <PageHeaderContent>
158
+ <PageHeaderTitle render={<h2 />}>Invoices</PageHeaderTitle>
159
+ <PageHeaderDescription>12 invoices · 3 overdue</PageHeaderDescription>
160
+ </PageHeaderContent>
161
+ <PageHeaderActions>
162
+ <Button>New invoice</Button>
163
+ </PageHeaderActions>
164
+ </PageHeader>
165
+ ```
166
+
167
+ ## Parts and their spacing
168
+
169
+ The root is a row: 16 after the leading control, 24 before the actions,
170
+ centred on the drawn minimum height, with the rule under it. The heights
171
+ include the rule, and a header whose content outgrows them grows past them,
172
+ keeping 4 above and below its content so it does not touch its edges.
173
+
174
+ `PageHeaderContent` is a grid of named areas - the eyebrow above, the title
175
+ and the content beside it on one line, the description under them - so a
176
+ part lands in its place whichever of the others are present. Write them in
177
+ that order: eyebrow, title, meta, description. The title and the content
178
+ beside it are each as wide as their content, and the rest of the row is an
179
+ empty flexible column, so a long eyebrow or description does not move the
180
+ meta away from the title. When the row runs short, the title and the meta
181
+ share it: content beside the title that is narrower than its share keeps
182
+ its width and the title truncates with an ellipsis, and when both are long
183
+ each gets half.
184
+
185
+ The eyebrow and the description are on the meta role (12/16), muted, 4 from
186
+ the title. The eyebrow holds text or a plain link - a link takes its colour,
187
+ turns the link colour with an underline on hover, and draws its focus ring
188
+ inside its own box, since the eyebrow clips its overflow for the ellipsis.
189
+ A `Breadcrumb` trail does not go there.
190
+
191
+ `PageHeaderMeta` sets its children 20 apart, the same 20 that separates it
192
+ from the title. That 20 is the meta's own margin, not a gap of the grid,
193
+ so a header without a meta gives its title the whole row. `PageHeaderActions` sets its children 8 apart, does not
194
+ shrink, and wraps its controls onto further lines, 8 apart, when they do
195
+ not fit. Both take any content: buttons, menus, badges, a status, a toggle
196
+ group, section navigation.
197
+
198
+ `PageHeaderMeta` does not scroll or clip. A tab list or a set of links that
199
+ can outgrow the room beside the title goes in a block of its own with
200
+ `overflow-x: auto`, so it scrolls instead of running under the actions. A
201
+ scrolling block clips vertically too, so leave room in it for focus rings
202
+ and the tab indicator.
203
+
204
+ When the header's width inside its side insets is below 1024 - 1072
205
+ outside them at the default inset of 24 - the narrow layout applies. It is
206
+ a container query on the header itself, not the viewport. The content
207
+ beside the title moves under the description, the actions take a line of
208
+ their own, flush with the start, and the leading control stays on the
209
+ first line beside the text. Each line keeps 8 above and below it, on top
210
+ of the header's own 4, so wrapped lines touch neither the header's edges
211
+ nor each other.
212
+
213
+ ## Surface and insets
214
+
215
+ The root paints no background: it takes the surface it is set on. A header
216
+ drawn on the card surface over a differently painted page - an object's
217
+ header above the content of its page, say - sets `background: var(--card)`
218
+ in a class of its own.
219
+
220
+ `--page-header-inset` sets both sides at once. A header that has to clear a
221
+ control of the shell at one edge, such as a panel toggle over its end,
222
+ sets `padding-inline-end` in its own class instead.
223
+
224
+ The header takes its width from its parent and does not size itself to its
225
+ content: the narrow layout measures the header, so the header cannot be
226
+ measured by what it holds. In normal flow, or as a stretched item of a grid
227
+ or a flex column, that is the full width. As an item of a flex row, give it
228
+ `flex: 1` or a width of its own - without one it collapses to its side
229
+ insets.
230
+
231
+ ## Accessibility
232
+
233
+ - The title is an `h1`. A page has one: give every header below the page's
234
+ own an `h2` with `render={<h2 />}`.
235
+ - The root is a `header` element. Inside `main`, `article`, `aside`, `nav`
236
+ or `section` - or an element with role `main`, `article`,
237
+ `complementary`, `navigation` or `region` - it is not a landmark; outside
238
+ them it is a `banner`, a second one next to the application's top bar. A section's header goes
239
+ inside the page's `main`. A header the layout keeps above `main` - an
240
+ object's header over the tabs that switch between its pages, for one -
241
+ passes `role="group"`, which a `header` element allows, so it is not a
242
+ second banner.
243
+ - Navigation between pages in `PageHeaderMeta` is a `nav` with links and
244
+ `aria-current="page"` on the current one. `Tabs` belong there only when
245
+ they switch panels on the same page: a tab list is not a list of links.
246
+ The kit has no component that draws page links in the line-tabs look.
247
+ - Name an icon-only control in `PageHeaderLeading` or `PageHeaderActions`
248
+ with `aria-label`, as with any icon button.
249
+
250
+ ## Anti-patterns
251
+
252
+ - Do not put the page's section navigation in `PageHeaderActions` - it goes
253
+ in `PageHeaderMeta`, beside the title it belongs to.
254
+ - Do not put a long text in `PageHeaderMeta` - a sentence about the page is
255
+ `PageHeaderDescription`.
256
+ - Do not leave every header an `h1` - a section's header under the page's
257
+ own is an `h2`.
258
+ - Do not drop the rule with `border-bottom: none` - `border={false}` keeps
259
+ the rule's width inside the header, so the text sits exactly where it
260
+ does with the rule. A border removed in CSS moves the text by half a
261
+ rule, and makes a header whose content outgrows the minimum height one
262
+ rule shorter.
263
+ - Do not place `PageHeader` in a flex row without `flex: 1` or a width of
264
+ its own - it collapses to its side insets.
265
+ - Do not render `Tabs` with links in them for navigation between pages -
266
+ that is a `nav` of links, whatever it is drawn like.
package/dist/index.d.ts CHANGED
@@ -72,6 +72,7 @@ export * from './components/message/public.js';
72
72
  export * from './components/message-scroller/public.js';
73
73
  export * from './components/native-select/public.js';
74
74
  export * from './components/navigation-menu/public.js';
75
+ export * from './components/page-header/public.js';
75
76
  export * from './components/pagination/public.js';
76
77
  export * from './components/popover/public.js';
77
78
  export * from './components/progress/public.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAA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AqC,CAAC;AACpD,cAAc,gCAAgC,CAAC"}
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { Accordion as r, AccordionContent as t, AccordionItem as a, AccordionTrigger as n } from "./accordion.js";
2
2
  import { Alert as u, AlertAction as p, AlertDescription as l, AlertTitle as m } from "./alert.js";
3
- import { AlertDialog as b, AlertDialogAction as d, AlertDialogCancel as g, AlertDialogContent as C, AlertDialogDescription as c, AlertDialogFooter as x, AlertDialogHeader as S, AlertDialogMedia as M, AlertDialogTitle as D, AlertDialogTrigger as f } from "./alert-dialog.js";
3
+ import { AlertDialog as s, AlertDialogAction as b, AlertDialogCancel as g, AlertDialogContent as C, AlertDialogDescription as c, AlertDialogFooter as x, AlertDialogHeader as S, AlertDialogMedia as M, AlertDialogTitle as D, AlertDialogTrigger as f } from "./alert-dialog.js";
4
4
  import { AspectRatio as I } from "./aspect-ratio.js";
5
- import { Attachment as G, AttachmentAction as h, AttachmentActions as P, AttachmentContent as v, AttachmentDescription as B, AttachmentGroup as w, AttachmentMedia as F, AttachmentTitle as L, AttachmentTrigger as k, attachmentMediaVariants as H, attachmentVariants as Q } from "./attachment.js";
5
+ import { Attachment as P, AttachmentAction as G, AttachmentActions as h, AttachmentContent as v, AttachmentDescription as w, AttachmentGroup as B, AttachmentMedia as H, AttachmentTitle as L, AttachmentTrigger as F, attachmentMediaVariants as k, attachmentVariants as Q } from "./attachment.js";
6
6
  import { Avatar as V, AvatarBadge as y, AvatarFallback as E, AvatarGroup as N, AvatarGroupCount as O, AvatarImage as z } from "./avatar.js";
7
7
  import { Badge as _, badgeVariants as U } from "./badge.js";
8
8
  import { Breadcrumb as j, BreadcrumbEllipsis as q, BreadcrumbItem as J, BreadcrumbLink as X, BreadcrumbList as Y, BreadcrumbPage as Z, BreadcrumbSeparator as $ } from "./breadcrumb.js";
9
9
  import { Bubble as oe, BubbleContent as re, BubbleGroup as te, BubbleReactions as ae, bubbleReactionsVariants as ne, bubbleVariants as ie } from "./bubble.js";
10
10
  import { Button as pe, buttonVariants as le } from "./button.js";
11
- import { ButtonGroup as se, ButtonGroupSeparator as be, ButtonGroupText as de } from "./button-group.js";
11
+ import { ButtonGroup as de, ButtonGroupSeparator as se, ButtonGroupText as be } from "./button-group.js";
12
12
  import { Calendar as Ce, CalendarDayButton as ce } from "./calendar.js";
13
13
  import { Card as Se, CardAction as Me, CardContent as De, CardDescription as fe, CardFooter as Te, CardHeader as Ie, CardTitle as Ae } from "./card.js";
14
- import { Carousel as he, CarouselContent as Pe, CarouselItem as ve, CarouselNext as Be, CarouselPrevious as we, useCarousel as Fe } from "./carousel.js";
15
- import { ChartContainer as ke, ChartLegend as He, ChartLegendContent as Qe, ChartStyle as Re, ChartTooltip as Ve, ChartTooltipContent as ye } from "./chart.js";
14
+ import { Carousel as Ge, CarouselContent as he, CarouselItem as ve, CarouselNext as we, CarouselPrevious as Be, useCarousel as He } from "./carousel.js";
15
+ import { ChartContainer as Fe, ChartLegend as ke, ChartLegendContent as Qe, ChartStyle as Re, ChartTooltip as Ve, ChartTooltipContent as ye } from "./chart.js";
16
16
  import { Checkbox as Ne } from "./checkbox.js";
17
17
  import { Collapsible as ze, CollapsibleContent as Ke, CollapsibleTrigger as _e } from "./collapsible.js";
18
18
  import { Combobox as We, ComboboxChip as je, ComboboxChips as qe, ComboboxChipsInput as Je, ComboboxCollection as Xe, ComboboxContent as Ye, ComboboxEmpty as Ze, ComboboxGroup as $e, ComboboxInput as eo, ComboboxItem as oo, ComboboxLabel as ro, ComboboxList as to, ComboboxSeparator as ao, ComboboxTrigger as no, ComboboxValue as io, useComboboxAnchor as uo } from "./combobox.js";
19
19
  import { Command as lo, CommandDialog as mo, CommandEmpty as so, CommandGroup as bo, CommandInput as go, CommandItem as Co, CommandList as co, CommandSeparator as xo, CommandShortcut as So } from "./command.js";
20
- import { ContextMenu as Do, ContextMenuCheckboxItem as fo, ContextMenuContent as To, ContextMenuGroup as Io, ContextMenuItem as Ao, ContextMenuLabel as Go, ContextMenuRadioGroup as ho, ContextMenuRadioItem as Po, ContextMenuSeparator as vo, ContextMenuShortcut as Bo, ContextMenuSub as wo, ContextMenuSubContent as Fo, ContextMenuSubTrigger as Lo, ContextMenuTrigger as ko } from "./context-menu.js";
20
+ import { ContextMenu as Do, ContextMenuCheckboxItem as fo, ContextMenuContent as To, ContextMenuGroup as Io, ContextMenuItem as Ao, ContextMenuLabel as Po, ContextMenuRadioGroup as Go, ContextMenuRadioItem as ho, ContextMenuSeparator as vo, ContextMenuShortcut as wo, ContextMenuSub as Bo, ContextMenuSubContent as Ho, ContextMenuSubTrigger as Lo, ContextMenuTrigger as Fo } from "./context-menu.js";
21
21
  import { DATA_GRID_VIEW as Qo, DataGrid as Ro, useDataGridActiveView as Vo, useDataGridRecord as yo } from "./data-grid.js";
22
22
  import { DataGridEmptyStatePlugin as No } from "./data-grid/empty-state.js";
23
23
  import { DataGridOrderPlugin as zo, createDataGridOrderOption as Ko } from "./data-grid/order.js";
@@ -26,49 +26,50 @@ import { DataGridTextSearchPlugin as jo } from "./data-grid/text-search.js";
26
26
  import { DataTable as Jo, DataTableSortButton as Xo, dataTableColumnHelper as Yo, dataTableFeatures as Zo, dataTableSelectionColumn as $o } from "./data-table.js";
27
27
  import { DatePicker as or } from "./date-picker.js";
28
28
  import { Dialog as tr, DialogClose as ar, DialogContent as nr, DialogDescription as ir, DialogFooter as ur, DialogHeader as pr, DialogTitle as lr, DialogTrigger as mr } from "./dialog.js";
29
- import { DirectionProvider as br, useDirection as dr } from "@base-ui/react/direction-provider";
30
- import { Drawer as Cr, DrawerBackdrop as cr, DrawerClose as xr, DrawerContent as Sr, DrawerDescription as Mr, DrawerFooter as Dr, DrawerHeader as fr, DrawerPortal as Tr, DrawerSwipeHandle as Ir, DrawerTitle as Ar, DrawerTrigger as Gr } from "./drawer.js";
31
- import { DropdownMenu as Pr, DropdownMenuCheckboxItem as vr, DropdownMenuContent as Br, DropdownMenuGroup as wr, DropdownMenuItem as Fr, DropdownMenuLabel as Lr, DropdownMenuRadioGroup as kr, DropdownMenuRadioItem as Hr, DropdownMenuSeparator as Qr, DropdownMenuShortcut as Rr, DropdownMenuSub as Vr, DropdownMenuSubContent as yr, DropdownMenuSubTrigger as Er, DropdownMenuTrigger as Nr } from "./dropdown-menu.js";
29
+ import { DirectionProvider as sr, useDirection as br } from "@base-ui/react/direction-provider";
30
+ import { Drawer as Cr, DrawerBackdrop as cr, DrawerClose as xr, DrawerContent as Sr, DrawerDescription as Mr, DrawerFooter as Dr, DrawerHeader as fr, DrawerPortal as Tr, DrawerSwipeHandle as Ir, DrawerTitle as Ar, DrawerTrigger as Pr } from "./drawer.js";
31
+ import { DropdownMenu as hr, DropdownMenuCheckboxItem as vr, DropdownMenuContent as wr, DropdownMenuGroup as Br, DropdownMenuItem as Hr, DropdownMenuLabel as Lr, DropdownMenuRadioGroup as Fr, DropdownMenuRadioItem as kr, DropdownMenuSeparator as Qr, DropdownMenuShortcut as Rr, DropdownMenuSub as Vr, DropdownMenuSubContent as yr, DropdownMenuSubTrigger as Er, DropdownMenuTrigger as Nr } from "./dropdown-menu.js";
32
32
  import { Empty as zr, EmptyActions as Kr, EmptyContent as _r, EmptyDescription as Ur, EmptyDetail as Wr, EmptyHeader as jr, EmptyMedia as qr, EmptyTitle as Jr } from "./empty.js";
33
33
  import { Field as Yr, FieldContent as Zr, FieldDescription as $r, FieldError as et, FieldGroup as ot, FieldLabel as rt, FieldLegend as tt, FieldSeparator as at, FieldSet as nt, FieldTitle as it } from "./field.js";
34
34
  import { HoverCard as pt, HoverCardContent as lt, HoverCardTrigger as mt } from "./hover-card.js";
35
- import { Input as bt } from "./input.js";
35
+ import { Input as st } from "./input.js";
36
36
  import { InputGroup as gt, InputGroupAddon as Ct, InputGroupButton as ct, InputGroupInput as xt, InputGroupText as St, InputGroupTextarea as Mt } from "./input-group.js";
37
37
  import { InputOtp as ft, InputOtpGroup as Tt, InputOtpSeparator as It, InputOtpSlot as At } from "./input-otp.js";
38
- import { Item as ht, ItemActions as Pt, ItemContent as vt, ItemDescription as Bt, ItemFooter as wt, ItemGroup as Ft, ItemHeader as Lt, ItemMedia as kt, ItemSeparator as Ht, ItemTitle as Qt } from "./item.js";
38
+ import { Item as Gt, ItemActions as ht, ItemContent as vt, ItemDescription as wt, ItemFooter as Bt, ItemGroup as Ht, ItemHeader as Lt, ItemMedia as Ft, ItemSeparator as kt, ItemTitle as Qt } from "./item.js";
39
39
  import { Kbd as Vt, KbdGroup as yt } from "./kbd.js";
40
40
  import { Label as Nt } from "./label.js";
41
41
  import { Marker as zt, MarkerContent as Kt, MarkerIcon as _t, markerVariants as Ut } from "./marker.js";
42
42
  import { Menubar as jt, MenubarCheckboxItem as qt, MenubarContent as Jt, MenubarGroup as Xt, MenubarItem as Yt, MenubarLabel as Zt, MenubarMenu as $t, MenubarRadioGroup as ea, MenubarRadioItem as oa, MenubarSeparator as ra, MenubarShortcut as ta, MenubarSub as aa, MenubarSubContent as na, MenubarSubTrigger as ia, MenubarTrigger as ua } from "./menubar.js";
43
- import { Message as la, MessageAvatar as ma, MessageContent as sa, MessageFooter as ba, MessageGroup as da, MessageHeader as ga } from "./message.js";
43
+ import { Message as la, MessageAvatar as ma, MessageContent as da, MessageFooter as sa, MessageGroup as ba, MessageHeader as ga } from "./message.js";
44
44
  import { MessageScroller as ca, MessageScrollerButton as xa, MessageScrollerContent as Sa, MessageScrollerItem as Ma, MessageScrollerProvider as Da, MessageScrollerViewport as fa } from "./message-scroller.js";
45
- import { NativeSelect as Ia, NativeSelectOptGroup as Aa, NativeSelectOption as Ga } from "./native-select.js";
46
- import { NavigationMenu as Pa, NavigationMenuContent as va, NavigationMenuIcon as Ba, NavigationMenuIndicator as wa, NavigationMenuItem as Fa, NavigationMenuLink as La, NavigationMenuList as ka, NavigationMenuTrigger as Ha, NavigationMenuViewport as Qa, navigationMenuTriggerStyle as Ra } from "./navigation-menu.js";
47
- import { Pagination as ya, PaginationButton as Ea, PaginationContent as Na, PaginationEllipsis as Oa, PaginationItem as za, PaginationLink as Ka, PaginationNext as _a, PaginationNextButton as Ua, PaginationPrevious as Wa, PaginationPreviousButton as ja } from "./pagination.js";
48
- import { Popover as Ja, PopoverContent as Xa, PopoverDescription as Ya, PopoverHeader as Za, PopoverTitle as $a, PopoverTrigger as en } from "./popover.js";
49
- import { Progress as rn, ProgressIndicator as tn, ProgressLabel as an, ProgressTrack as nn, ProgressValue as un } from "./progress.js";
50
- import { Questionnaire as ln, QuestionnaireActions as mn, QuestionnaireChoice as sn, QuestionnaireChoiceDescription as bn, QuestionnaireChoiceInput as dn, QuestionnaireChoiceLabel as gn, QuestionnaireChoiceShortcut as Cn, QuestionnaireChoices as cn, QuestionnaireDescription as xn, QuestionnaireError as Sn, QuestionnaireInput as Mn, QuestionnaireItem as Dn, QuestionnaireNext as fn, QuestionnairePrevious as Tn, QuestionnaireProgress as In, QuestionnaireSkip as An, QuestionnaireSubmit as Gn, QuestionnaireTitle as hn } from "./questionnaire.js";
51
- import { RadioGroup as vn, RadioGroupItem as Bn } from "./radio-group.js";
52
- import { ResizableHandle as Fn, ResizablePanel as Ln, ResizablePanelGroup as kn } from "./resizable.js";
53
- import { ScrollArea as Qn, ScrollBar as Rn } from "./scroll-area.js";
54
- import { Select as yn, SelectContent as En, SelectGroup as Nn, SelectItem as On, SelectLabel as zn, SelectScrollDownButton as Kn, SelectScrollUpButton as _n, SelectSeparator as Un, SelectTrigger as Wn, SelectValue as jn } from "./select.js";
55
- import { Separator as Jn } from "./separator.js";
56
- import { Sheet as Yn, SheetClose as Zn, SheetContent as $n, SheetDescription as ei, SheetFooter as oi, SheetHeader as ri, SheetTitle as ti, SheetTrigger as ai } from "./sheet.js";
57
- import { Sidebar as ii, SidebarContent as ui, SidebarFooter as pi, SidebarGroup as li, SidebarGroupAction as mi, SidebarGroupContent as si, SidebarGroupLabel as bi, SidebarHeader as di, SidebarInput as gi, SidebarInset as Ci, SidebarMenu as ci, SidebarMenuAction as xi, SidebarMenuBadge as Si, SidebarMenuButton as Mi, SidebarMenuItem as Di, SidebarMenuSkeleton as fi, SidebarMenuSub as Ti, SidebarMenuSubButton as Ii, SidebarMenuSubItem as Ai, SidebarProvider as Gi, SidebarRail as hi, SidebarSeparator as Pi, SidebarTrigger as vi, sidebarMenuButtonVariants as Bi, useSidebar as wi } from "./sidebar.js";
58
- import { Skeleton as Li } from "./skeleton.js";
59
- import { Slider as Hi } from "./slider.js";
60
- import { Spinner as Ri } from "./spinner.js";
61
- import { StatusDot as yi, statusDotVariants as Ei } from "./status-dot.js";
62
- import { Switch as Oi } from "./switch.js";
63
- import { Table as Ki, TableBody as _i, TableCaption as Ui, TableCell as Wi, TableFooter as ji, TableHead as qi, TableHeader as Ji, TableRow as Xi } from "./table.js";
64
- import { Tabs as Zi, TabsContent as $i, TabsList as eu, TabsTrigger as ou } from "./tabs.js";
65
- import { Textarea as tu } from "./textarea.js";
66
- import { Toaster as nu, createToastManager as iu, toast as uu, useToastManager as pu } from "./toast.js";
67
- import { Toggle as mu, toggleVariants as su } from "./toggle.js";
68
- import { ToggleGroup as du, ToggleGroupItem as gu } from "./toggle-group.js";
69
- import { Tooltip as cu, TooltipContent as xu, TooltipProvider as Su, TooltipTrigger as Mu } from "./tooltip.js";
70
- import { c as fu, u as Tu, a as Iu } from "./chunks/plugins-helpers.js";
71
- import { useMessageScroller as Gu, useMessageScrollerScrollable as hu, useMessageScrollerVisibility as Pu } from "@shadcn/react/message-scroller";
45
+ import { NativeSelect as Ia, NativeSelectOptGroup as Aa, NativeSelectOption as Pa } from "./native-select.js";
46
+ import { NavigationMenu as ha, NavigationMenuContent as va, NavigationMenuIcon as wa, NavigationMenuIndicator as Ba, NavigationMenuItem as Ha, NavigationMenuLink as La, NavigationMenuList as Fa, NavigationMenuTrigger as ka, NavigationMenuViewport as Qa, navigationMenuTriggerStyle as Ra } from "./navigation-menu.js";
47
+ import { PageHeader as ya, PageHeaderActions as Ea, PageHeaderContent as Na, PageHeaderDescription as Oa, PageHeaderEyebrow as za, PageHeaderLeading as Ka, PageHeaderMeta as _a, PageHeaderTitle as Ua } from "./page-header.js";
48
+ import { Pagination as ja, PaginationButton as qa, PaginationContent as Ja, PaginationEllipsis as Xa, PaginationItem as Ya, PaginationLink as Za, PaginationNext as $a, PaginationNextButton as en, PaginationPrevious as on, PaginationPreviousButton as rn } from "./pagination.js";
49
+ import { Popover as an, PopoverContent as nn, PopoverDescription as un, PopoverHeader as pn, PopoverTitle as ln, PopoverTrigger as mn } from "./popover.js";
50
+ import { Progress as sn, ProgressIndicator as bn, ProgressLabel as gn, ProgressTrack as Cn, ProgressValue as cn } from "./progress.js";
51
+ import { Questionnaire as Sn, QuestionnaireActions as Mn, QuestionnaireChoice as Dn, QuestionnaireChoiceDescription as fn, QuestionnaireChoiceInput as Tn, QuestionnaireChoiceLabel as In, QuestionnaireChoiceShortcut as An, QuestionnaireChoices as Pn, QuestionnaireDescription as Gn, QuestionnaireError as hn, QuestionnaireInput as vn, QuestionnaireItem as wn, QuestionnaireNext as Bn, QuestionnairePrevious as Hn, QuestionnaireProgress as Ln, QuestionnaireSkip as Fn, QuestionnaireSubmit as kn, QuestionnaireTitle as Qn } from "./questionnaire.js";
52
+ import { RadioGroup as Vn, RadioGroupItem as yn } from "./radio-group.js";
53
+ import { ResizableHandle as Nn, ResizablePanel as On, ResizablePanelGroup as zn } from "./resizable.js";
54
+ import { ScrollArea as _n, ScrollBar as Un } from "./scroll-area.js";
55
+ import { Select as jn, SelectContent as qn, SelectGroup as Jn, SelectItem as Xn, SelectLabel as Yn, SelectScrollDownButton as Zn, SelectScrollUpButton as $n, SelectSeparator as ei, SelectTrigger as oi, SelectValue as ri } from "./select.js";
56
+ import { Separator as ai } from "./separator.js";
57
+ import { Sheet as ii, SheetClose as ui, SheetContent as pi, SheetDescription as li, SheetFooter as mi, SheetHeader as di, SheetTitle as si, SheetTrigger as bi } from "./sheet.js";
58
+ import { Sidebar as Ci, SidebarContent as ci, SidebarFooter as xi, SidebarGroup as Si, SidebarGroupAction as Mi, SidebarGroupContent as Di, SidebarGroupLabel as fi, SidebarHeader as Ti, SidebarInput as Ii, SidebarInset as Ai, SidebarMenu as Pi, SidebarMenuAction as Gi, SidebarMenuBadge as hi, SidebarMenuButton as vi, SidebarMenuItem as wi, SidebarMenuSkeleton as Bi, SidebarMenuSub as Hi, SidebarMenuSubButton as Li, SidebarMenuSubItem as Fi, SidebarProvider as ki, SidebarRail as Qi, SidebarSeparator as Ri, SidebarTrigger as Vi, sidebarMenuButtonVariants as yi, useSidebar as Ei } from "./sidebar.js";
59
+ import { Skeleton as Oi } from "./skeleton.js";
60
+ import { Slider as Ki } from "./slider.js";
61
+ import { Spinner as Ui } from "./spinner.js";
62
+ import { StatusDot as ji, statusDotVariants as qi } from "./status-dot.js";
63
+ import { Switch as Xi } from "./switch.js";
64
+ import { Table as Zi, TableBody as $i, TableCaption as eu, TableCell as ou, TableFooter as ru, TableHead as tu, TableHeader as au, TableRow as nu } from "./table.js";
65
+ import { Tabs as uu, TabsContent as pu, TabsList as lu, TabsTrigger as mu } from "./tabs.js";
66
+ import { Textarea as su } from "./textarea.js";
67
+ import { Toaster as gu, createToastManager as Cu, toast as cu, useToastManager as xu } from "./toast.js";
68
+ import { Toggle as Mu, toggleVariants as Du } from "./toggle.js";
69
+ import { ToggleGroup as Tu, ToggleGroupItem as Iu } from "./toggle-group.js";
70
+ import { Tooltip as Pu, TooltipContent as Gu, TooltipProvider as hu, TooltipTrigger as vu } from "./tooltip.js";
71
+ import { c as Bu, u as Hu, a as Lu } from "./chunks/plugins-helpers.js";
72
+ import { useMessageScroller as ku, useMessageScrollerScrollable as Qu, useMessageScrollerVisibility as Ru } from "@shadcn/react/message-scroller";
72
73
  export {
73
74
  r as Accordion,
74
75
  t as AccordionContent,
@@ -77,8 +78,8 @@ export {
77
78
  u as Alert,
78
79
  p as AlertAction,
79
80
  l as AlertDescription,
80
- b as AlertDialog,
81
- d as AlertDialogAction,
81
+ s as AlertDialog,
82
+ b as AlertDialogAction,
82
83
  g as AlertDialogCancel,
83
84
  C as AlertDialogContent,
84
85
  c as AlertDialogDescription,
@@ -89,15 +90,15 @@ export {
89
90
  f as AlertDialogTrigger,
90
91
  m as AlertTitle,
91
92
  I as AspectRatio,
92
- G as Attachment,
93
- h as AttachmentAction,
94
- P as AttachmentActions,
93
+ P as Attachment,
94
+ G as AttachmentAction,
95
+ h as AttachmentActions,
95
96
  v as AttachmentContent,
96
- B as AttachmentDescription,
97
- w as AttachmentGroup,
98
- F as AttachmentMedia,
97
+ w as AttachmentDescription,
98
+ B as AttachmentGroup,
99
+ H as AttachmentMedia,
99
100
  L as AttachmentTitle,
100
- k as AttachmentTrigger,
101
+ F as AttachmentTrigger,
101
102
  V as Avatar,
102
103
  y as AvatarBadge,
103
104
  E as AvatarFallback,
@@ -117,9 +118,9 @@ export {
117
118
  te as BubbleGroup,
118
119
  ae as BubbleReactions,
119
120
  pe as Button,
120
- se as ButtonGroup,
121
- be as ButtonGroupSeparator,
122
- de as ButtonGroupText,
121
+ de as ButtonGroup,
122
+ se as ButtonGroupSeparator,
123
+ be as ButtonGroupText,
123
124
  Ce as Calendar,
124
125
  ce as CalendarDayButton,
125
126
  Se as Card,
@@ -129,13 +130,13 @@ export {
129
130
  Te as CardFooter,
130
131
  Ie as CardHeader,
131
132
  Ae as CardTitle,
132
- he as Carousel,
133
- Pe as CarouselContent,
133
+ Ge as Carousel,
134
+ he as CarouselContent,
134
135
  ve as CarouselItem,
135
- Be as CarouselNext,
136
- we as CarouselPrevious,
137
- ke as ChartContainer,
138
- He as ChartLegend,
136
+ we as CarouselNext,
137
+ Be as CarouselPrevious,
138
+ Fe as ChartContainer,
139
+ ke as ChartLegend,
139
140
  Qe as ChartLegendContent,
140
141
  Re as ChartStyle,
141
142
  Ve as ChartTooltip,
@@ -173,15 +174,15 @@ export {
173
174
  To as ContextMenuContent,
174
175
  Io as ContextMenuGroup,
175
176
  Ao as ContextMenuItem,
176
- Go as ContextMenuLabel,
177
- ho as ContextMenuRadioGroup,
178
- Po as ContextMenuRadioItem,
177
+ Po as ContextMenuLabel,
178
+ Go as ContextMenuRadioGroup,
179
+ ho as ContextMenuRadioItem,
179
180
  vo as ContextMenuSeparator,
180
- Bo as ContextMenuShortcut,
181
- wo as ContextMenuSub,
182
- Fo as ContextMenuSubContent,
181
+ wo as ContextMenuShortcut,
182
+ Bo as ContextMenuSub,
183
+ Ho as ContextMenuSubContent,
183
184
  Lo as ContextMenuSubTrigger,
184
- ko as ContextMenuTrigger,
185
+ Fo as ContextMenuTrigger,
185
186
  Qo as DATA_GRID_VIEW,
186
187
  Ro as DataGrid,
187
188
  No as DataGridEmptyStatePlugin,
@@ -199,7 +200,7 @@ export {
199
200
  pr as DialogHeader,
200
201
  lr as DialogTitle,
201
202
  mr as DialogTrigger,
202
- br as DirectionProvider,
203
+ sr as DirectionProvider,
203
204
  Cr as Drawer,
204
205
  cr as DrawerBackdrop,
205
206
  xr as DrawerClose,
@@ -210,15 +211,15 @@ export {
210
211
  Tr as DrawerPortal,
211
212
  Ir as DrawerSwipeHandle,
212
213
  Ar as DrawerTitle,
213
- Gr as DrawerTrigger,
214
- Pr as DropdownMenu,
214
+ Pr as DrawerTrigger,
215
+ hr as DropdownMenu,
215
216
  vr as DropdownMenuCheckboxItem,
216
- Br as DropdownMenuContent,
217
- wr as DropdownMenuGroup,
218
- Fr as DropdownMenuItem,
217
+ wr as DropdownMenuContent,
218
+ Br as DropdownMenuGroup,
219
+ Hr as DropdownMenuItem,
219
220
  Lr as DropdownMenuLabel,
220
- kr as DropdownMenuRadioGroup,
221
- Hr as DropdownMenuRadioItem,
221
+ Fr as DropdownMenuRadioGroup,
222
+ kr as DropdownMenuRadioItem,
222
223
  Qr as DropdownMenuSeparator,
223
224
  Rr as DropdownMenuShortcut,
224
225
  Vr as DropdownMenuSub,
@@ -246,7 +247,7 @@ export {
246
247
  pt as HoverCard,
247
248
  lt as HoverCardContent,
248
249
  mt as HoverCardTrigger,
249
- bt as Input,
250
+ st as Input,
250
251
  gt as InputGroup,
251
252
  Ct as InputGroupAddon,
252
253
  ct as InputGroupButton,
@@ -257,15 +258,15 @@ export {
257
258
  Tt as InputOtpGroup,
258
259
  It as InputOtpSeparator,
259
260
  At as InputOtpSlot,
260
- ht as Item,
261
- Pt as ItemActions,
261
+ Gt as Item,
262
+ ht as ItemActions,
262
263
  vt as ItemContent,
263
- Bt as ItemDescription,
264
- wt as ItemFooter,
265
- Ft as ItemGroup,
264
+ wt as ItemDescription,
265
+ Bt as ItemFooter,
266
+ Ht as ItemGroup,
266
267
  Lt as ItemHeader,
267
- kt as ItemMedia,
268
- Ht as ItemSeparator,
268
+ Ft as ItemMedia,
269
+ kt as ItemSeparator,
269
270
  Qt as ItemTitle,
270
271
  Vt as Kbd,
271
272
  yt as KbdGroup,
@@ -290,9 +291,9 @@ export {
290
291
  ua as MenubarTrigger,
291
292
  la as Message,
292
293
  ma as MessageAvatar,
293
- sa as MessageContent,
294
- ba as MessageFooter,
295
- da as MessageGroup,
294
+ da as MessageContent,
295
+ sa as MessageFooter,
296
+ ba as MessageGroup,
296
297
  ga as MessageHeader,
297
298
  ca as MessageScroller,
298
299
  xa as MessageScrollerButton,
@@ -302,159 +303,167 @@ export {
302
303
  fa as MessageScrollerViewport,
303
304
  Ia as NativeSelect,
304
305
  Aa as NativeSelectOptGroup,
305
- Ga as NativeSelectOption,
306
- Pa as NavigationMenu,
306
+ Pa as NativeSelectOption,
307
+ ha as NavigationMenu,
307
308
  va as NavigationMenuContent,
308
- Ba as NavigationMenuIcon,
309
- wa as NavigationMenuIndicator,
310
- Fa as NavigationMenuItem,
309
+ wa as NavigationMenuIcon,
310
+ Ba as NavigationMenuIndicator,
311
+ Ha as NavigationMenuItem,
311
312
  La as NavigationMenuLink,
312
- ka as NavigationMenuList,
313
- Ha as NavigationMenuTrigger,
313
+ Fa as NavigationMenuList,
314
+ ka as NavigationMenuTrigger,
314
315
  Qa as NavigationMenuViewport,
315
- ya as Pagination,
316
- Ea as PaginationButton,
317
- Na as PaginationContent,
318
- Oa as PaginationEllipsis,
319
- za as PaginationItem,
320
- Ka as PaginationLink,
321
- _a as PaginationNext,
322
- Ua as PaginationNextButton,
323
- Wa as PaginationPrevious,
324
- ja as PaginationPreviousButton,
325
- Ja as Popover,
326
- Xa as PopoverContent,
327
- Ya as PopoverDescription,
328
- Za as PopoverHeader,
329
- $a as PopoverTitle,
330
- en as PopoverTrigger,
331
- rn as Progress,
332
- tn as ProgressIndicator,
333
- an as ProgressLabel,
334
- nn as ProgressTrack,
335
- un as ProgressValue,
336
- ln as Questionnaire,
337
- mn as QuestionnaireActions,
338
- sn as QuestionnaireChoice,
339
- bn as QuestionnaireChoiceDescription,
340
- dn as QuestionnaireChoiceInput,
341
- gn as QuestionnaireChoiceLabel,
342
- Cn as QuestionnaireChoiceShortcut,
343
- cn as QuestionnaireChoices,
344
- xn as QuestionnaireDescription,
345
- Sn as QuestionnaireError,
346
- Mn as QuestionnaireInput,
347
- Dn as QuestionnaireItem,
348
- fn as QuestionnaireNext,
349
- Tn as QuestionnairePrevious,
350
- In as QuestionnaireProgress,
351
- An as QuestionnaireSkip,
352
- Gn as QuestionnaireSubmit,
353
- hn as QuestionnaireTitle,
354
- vn as RadioGroup,
355
- Bn as RadioGroupItem,
356
- Fn as ResizableHandle,
357
- Ln as ResizablePanel,
358
- kn as ResizablePanelGroup,
359
- Qn as ScrollArea,
360
- Rn as ScrollBar,
361
- yn as Select,
362
- En as SelectContent,
363
- Nn as SelectGroup,
364
- On as SelectItem,
365
- zn as SelectLabel,
366
- Kn as SelectScrollDownButton,
367
- _n as SelectScrollUpButton,
368
- Un as SelectSeparator,
369
- Wn as SelectTrigger,
370
- jn as SelectValue,
371
- Jn as Separator,
372
- Yn as Sheet,
373
- Zn as SheetClose,
374
- $n as SheetContent,
375
- ei as SheetDescription,
376
- oi as SheetFooter,
377
- ri as SheetHeader,
378
- ti as SheetTitle,
379
- ai as SheetTrigger,
380
- ii as Sidebar,
381
- ui as SidebarContent,
382
- pi as SidebarFooter,
383
- li as SidebarGroup,
384
- mi as SidebarGroupAction,
385
- si as SidebarGroupContent,
386
- bi as SidebarGroupLabel,
387
- di as SidebarHeader,
388
- gi as SidebarInput,
389
- Ci as SidebarInset,
390
- ci as SidebarMenu,
391
- xi as SidebarMenuAction,
392
- Si as SidebarMenuBadge,
393
- Mi as SidebarMenuButton,
394
- Di as SidebarMenuItem,
395
- fi as SidebarMenuSkeleton,
396
- Ti as SidebarMenuSub,
397
- Ii as SidebarMenuSubButton,
398
- Ai as SidebarMenuSubItem,
399
- Gi as SidebarProvider,
400
- hi as SidebarRail,
401
- Pi as SidebarSeparator,
402
- vi as SidebarTrigger,
403
- Li as Skeleton,
404
- Hi as Slider,
405
- Ri as Spinner,
406
- yi as StatusDot,
407
- Oi as Switch,
408
- Ki as Table,
409
- _i as TableBody,
410
- Ui as TableCaption,
411
- Wi as TableCell,
412
- ji as TableFooter,
413
- qi as TableHead,
414
- Ji as TableHeader,
415
- Xi as TableRow,
416
- Zi as Tabs,
417
- $i as TabsContent,
418
- eu as TabsList,
419
- ou as TabsTrigger,
420
- tu as Textarea,
421
- nu as Toaster,
422
- mu as Toggle,
423
- du as ToggleGroup,
424
- gu as ToggleGroupItem,
425
- cu as Tooltip,
426
- xu as TooltipContent,
427
- Su as TooltipProvider,
428
- Mu as TooltipTrigger,
429
- H as attachmentMediaVariants,
316
+ ya as PageHeader,
317
+ Ea as PageHeaderActions,
318
+ Na as PageHeaderContent,
319
+ Oa as PageHeaderDescription,
320
+ za as PageHeaderEyebrow,
321
+ Ka as PageHeaderLeading,
322
+ _a as PageHeaderMeta,
323
+ Ua as PageHeaderTitle,
324
+ ja as Pagination,
325
+ qa as PaginationButton,
326
+ Ja as PaginationContent,
327
+ Xa as PaginationEllipsis,
328
+ Ya as PaginationItem,
329
+ Za as PaginationLink,
330
+ $a as PaginationNext,
331
+ en as PaginationNextButton,
332
+ on as PaginationPrevious,
333
+ rn as PaginationPreviousButton,
334
+ an as Popover,
335
+ nn as PopoverContent,
336
+ un as PopoverDescription,
337
+ pn as PopoverHeader,
338
+ ln as PopoverTitle,
339
+ mn as PopoverTrigger,
340
+ sn as Progress,
341
+ bn as ProgressIndicator,
342
+ gn as ProgressLabel,
343
+ Cn as ProgressTrack,
344
+ cn as ProgressValue,
345
+ Sn as Questionnaire,
346
+ Mn as QuestionnaireActions,
347
+ Dn as QuestionnaireChoice,
348
+ fn as QuestionnaireChoiceDescription,
349
+ Tn as QuestionnaireChoiceInput,
350
+ In as QuestionnaireChoiceLabel,
351
+ An as QuestionnaireChoiceShortcut,
352
+ Pn as QuestionnaireChoices,
353
+ Gn as QuestionnaireDescription,
354
+ hn as QuestionnaireError,
355
+ vn as QuestionnaireInput,
356
+ wn as QuestionnaireItem,
357
+ Bn as QuestionnaireNext,
358
+ Hn as QuestionnairePrevious,
359
+ Ln as QuestionnaireProgress,
360
+ Fn as QuestionnaireSkip,
361
+ kn as QuestionnaireSubmit,
362
+ Qn as QuestionnaireTitle,
363
+ Vn as RadioGroup,
364
+ yn as RadioGroupItem,
365
+ Nn as ResizableHandle,
366
+ On as ResizablePanel,
367
+ zn as ResizablePanelGroup,
368
+ _n as ScrollArea,
369
+ Un as ScrollBar,
370
+ jn as Select,
371
+ qn as SelectContent,
372
+ Jn as SelectGroup,
373
+ Xn as SelectItem,
374
+ Yn as SelectLabel,
375
+ Zn as SelectScrollDownButton,
376
+ $n as SelectScrollUpButton,
377
+ ei as SelectSeparator,
378
+ oi as SelectTrigger,
379
+ ri as SelectValue,
380
+ ai as Separator,
381
+ ii as Sheet,
382
+ ui as SheetClose,
383
+ pi as SheetContent,
384
+ li as SheetDescription,
385
+ mi as SheetFooter,
386
+ di as SheetHeader,
387
+ si as SheetTitle,
388
+ bi as SheetTrigger,
389
+ Ci as Sidebar,
390
+ ci as SidebarContent,
391
+ xi as SidebarFooter,
392
+ Si as SidebarGroup,
393
+ Mi as SidebarGroupAction,
394
+ Di as SidebarGroupContent,
395
+ fi as SidebarGroupLabel,
396
+ Ti as SidebarHeader,
397
+ Ii as SidebarInput,
398
+ Ai as SidebarInset,
399
+ Pi as SidebarMenu,
400
+ Gi as SidebarMenuAction,
401
+ hi as SidebarMenuBadge,
402
+ vi as SidebarMenuButton,
403
+ wi as SidebarMenuItem,
404
+ Bi as SidebarMenuSkeleton,
405
+ Hi as SidebarMenuSub,
406
+ Li as SidebarMenuSubButton,
407
+ Fi as SidebarMenuSubItem,
408
+ ki as SidebarProvider,
409
+ Qi as SidebarRail,
410
+ Ri as SidebarSeparator,
411
+ Vi as SidebarTrigger,
412
+ Oi as Skeleton,
413
+ Ki as Slider,
414
+ Ui as Spinner,
415
+ ji as StatusDot,
416
+ Xi as Switch,
417
+ Zi as Table,
418
+ $i as TableBody,
419
+ eu as TableCaption,
420
+ ou as TableCell,
421
+ ru as TableFooter,
422
+ tu as TableHead,
423
+ au as TableHeader,
424
+ nu as TableRow,
425
+ uu as Tabs,
426
+ pu as TabsContent,
427
+ lu as TabsList,
428
+ mu as TabsTrigger,
429
+ su as Textarea,
430
+ gu as Toaster,
431
+ Mu as Toggle,
432
+ Tu as ToggleGroup,
433
+ Iu as ToggleGroupItem,
434
+ Pu as Tooltip,
435
+ Gu as TooltipContent,
436
+ hu as TooltipProvider,
437
+ vu as TooltipTrigger,
438
+ k as attachmentMediaVariants,
430
439
  Q as attachmentVariants,
431
440
  U as badgeVariants,
432
441
  ne as bubbleReactionsVariants,
433
442
  ie as bubbleVariants,
434
443
  le as buttonVariants,
435
444
  Ko as createDataGridOrderOption,
436
- fu as createDataGridPlugin,
437
- iu as createToastManager,
445
+ Bu as createDataGridPlugin,
446
+ Cu as createToastManager,
438
447
  Yo as dataTableColumnHelper,
439
448
  Zo as dataTableFeatures,
440
449
  $o as dataTableSelectionColumn,
441
450
  Ut as markerVariants,
442
451
  Ra as navigationMenuTriggerStyle,
443
- Bi as sidebarMenuButtonVariants,
444
- Ei as statusDotVariants,
445
- uu as toast,
446
- su as toggleVariants,
447
- Fe as useCarousel,
452
+ yi as sidebarMenuButtonVariants,
453
+ qi as statusDotVariants,
454
+ cu as toast,
455
+ Du as toggleVariants,
456
+ He as useCarousel,
448
457
  uo as useComboboxAnchor,
449
- Tu as useDataGrid,
458
+ Hu as useDataGrid,
450
459
  Vo as useDataGridActiveView,
451
- Iu as useDataGridPluginContext,
460
+ Lu as useDataGridPluginContext,
452
461
  yo as useDataGridRecord,
453
- dr as useDirection,
454
- Gu as useMessageScroller,
455
- hu as useMessageScrollerScrollable,
456
- Pu as useMessageScrollerVisibility,
457
- wi as useSidebar,
458
- pu as useToastManager
462
+ br as useDirection,
463
+ ku as useMessageScroller,
464
+ Qu as useMessageScrollerScrollable,
465
+ Ru as useMessageScrollerVisibility,
466
+ Ei as useSidebar,
467
+ xu as useToastManager
459
468
  };
460
469
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export * from './components/page-header/public.js'
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { mergeProps as p } from "@base-ui/react/merge-props";
4
+ import { useRender as g } from "@base-ui/react/use-render";
5
+ import { cx as n, cva as s } from "class-variance-authority";
6
+ import './chunks/page-header.72nfJNkg.css';const o = "_pageHeader_xfw9e_15", H = "_sizeSm_xfw9e_33", c = "_sizeDefault_xfw9e_37", _ = "_sizeLg_xfw9e_41", f = "_borderHidden_xfw9e_47", l = "_pageHeaderLeading_xfw9e_51", y = "_pageHeaderContent_xfw9e_58", u = "_pageHeaderEyebrow_xfw9e_67", m = "_pageHeaderTitle_xfw9e_97", w = "_typographyHeading_xfw9e_106", x = "_typographyDisplay_xfw9e_113", h = "_pageHeaderMeta_xfw9e_120", z = "_pageHeaderDescription_xfw9e_129", D = "_pageHeaderActions_xfw9e_140", r = {
7
+ pageHeader: o,
8
+ sizeSm: H,
9
+ sizeDefault: c,
10
+ sizeLg: _,
11
+ borderHidden: f,
12
+ pageHeaderLeading: l,
13
+ pageHeaderContent: y,
14
+ pageHeaderEyebrow: u,
15
+ pageHeaderTitle: m,
16
+ typographyHeading: w,
17
+ typographyDisplay: x,
18
+ pageHeaderMeta: h,
19
+ pageHeaderDescription: z,
20
+ pageHeaderActions: D
21
+ }, b = s(r.pageHeader, {
22
+ variants: {
23
+ size: {
24
+ sm: r.sizeSm,
25
+ default: r.sizeDefault,
26
+ lg: r.sizeLg
27
+ }
28
+ },
29
+ defaultVariants: {
30
+ size: "default"
31
+ }
32
+ });
33
+ function A({ className: e, size: a, border: i = !0, ...d }) {
34
+ return /* @__PURE__ */ t(
35
+ "header",
36
+ {
37
+ className: n(b({ size: a }), !i && r.borderHidden, e),
38
+ ...d
39
+ }
40
+ );
41
+ }
42
+ function C({ className: e, ...a }) {
43
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderLeading, e), ...a });
44
+ }
45
+ function E({ className: e, ...a }) {
46
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderContent, e), ...a });
47
+ }
48
+ function M({ className: e, ...a }) {
49
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderEyebrow, e), ...a });
50
+ }
51
+ const v = s(r.pageHeaderTitle, {
52
+ variants: {
53
+ typography: {
54
+ heading: r.typographyHeading,
55
+ display: r.typographyDisplay
56
+ }
57
+ },
58
+ defaultVariants: {
59
+ typography: "heading"
60
+ }
61
+ });
62
+ function S({ className: e, typography: a, render: i, ...d }) {
63
+ return g({
64
+ defaultTagName: "h1",
65
+ render: i,
66
+ props: p({ className: v({ typography: a, className: e }) }, d)
67
+ });
68
+ }
69
+ function V({ className: e, ...a }) {
70
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderMeta, e), ...a });
71
+ }
72
+ function j({ className: e, ...a }) {
73
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderDescription, e), ...a });
74
+ }
75
+ function R({ className: e, ...a }) {
76
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderActions, e), ...a });
77
+ }
78
+ export {
79
+ A as PageHeader,
80
+ R as PageHeaderActions,
81
+ E as PageHeaderContent,
82
+ j as PageHeaderDescription,
83
+ M as PageHeaderEyebrow,
84
+ C as PageHeaderLeading,
85
+ V as PageHeaderMeta,
86
+ S as PageHeaderTitle
87
+ };
88
+ //# sourceMappingURL=page-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-header.js","sources":["../src/components/page-header/page-header.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './page-header.module.css';\n\n/*\n * PageHeader has no Base UI primitive and no shadcn/ui counterpart: it is\n * the kit's own layout frame for the header of a page or a section - a\n * control before the text, a line above the title, content beside it, a\n * description under it and actions at the end. The frame lays out what the\n * application puts in those slots and renders no other kit component.\n * Plain styled elements, the same shape as Card and Empty (see card.tsx).\n * No `data-slot` attributes, per the kit-wide convention.\n *\n * The title is the one part that calls a hook - useRender, for its heading\n * level, the same idiom Badge and BreadcrumbLink use - and that is what\n * puts the 'use client' banner on this file.\n */\n\nconst pageHeaderVariants = cva(styles.pageHeader, {\n variants: {\n size: {\n sm: styles.sizeSm,\n default: styles.sizeDefault,\n lg: styles.sizeLg,\n },\n },\n defaultVariants: {\n size: 'default',\n },\n});\n\nexport interface PageHeaderProps\n extends ComponentProps<'header'>, VariantProps<typeof pageHeaderVariants> {\n /** Draws the rule under the header. `false` paints it transparent rather\n * than dropping it, so a header without the rule keeps the height and\n * the text position of one with it. A flag, not a variant value: it is\n * anatomy, the way Badge's `dot` is. */\n border?: boolean;\n}\n\n/** `size` is the drawn minimum height: `sm` 56, `default` 64, `lg` 80. */\nexport function PageHeader({ className, size, border = true, ...props }: PageHeaderProps) {\n return (\n <header\n className={cx(pageHeaderVariants({ size }), !border && styles.borderHidden, className)}\n {...props}\n />\n );\n}\n\nexport type PageHeaderLeadingProps = ComponentProps<'div'>;\n\n/** A control before the text: a back link, a view switch. */\nexport function PageHeaderLeading({ className, ...props }: PageHeaderLeadingProps) {\n return <div className={cx(styles.pageHeaderLeading, className)} {...props} />;\n}\n\nexport type PageHeaderContentProps = ComponentProps<'div'>;\n\n/** The text block: eyebrow, title, the content beside the title and the\n * description. Each part takes its own grid area, so where it lands does\n * not depend on which of the others are present. */\nexport function PageHeaderContent({ className, ...props }: PageHeaderContentProps) {\n return <div className={cx(styles.pageHeaderContent, className)} {...props} />;\n}\n\nexport type PageHeaderEyebrowProps = ComponentProps<'div'>;\n\n/** A line above the title - typically a link to the parent the page\n * belongs to. */\nexport function PageHeaderEyebrow({ className, ...props }: PageHeaderEyebrowProps) {\n return <div className={cx(styles.pageHeaderEyebrow, className)} {...props} />;\n}\n\nconst pageHeaderTitleVariants = cva(styles.pageHeaderTitle, {\n variants: {\n typography: {\n heading: styles.typographyHeading,\n display: styles.typographyDisplay,\n },\n },\n defaultVariants: {\n typography: 'heading',\n },\n});\n\nexport interface PageHeaderTitleProps\n extends useRender.ComponentProps<'h1'>, VariantProps<typeof pageHeaderTitleVariants> {}\n\n/** The page's heading: an `h1` unless `render` names another level, such\n * as `render={<h2 />}` for a section under the page's own header.\n * `typography` picks the ramp role - `heading` (20/28) or `display`\n * (26/32), independent of the header's height. */\nexport function PageHeaderTitle({ className, typography, render, ...props }: PageHeaderTitleProps) {\n return useRender({\n defaultTagName: 'h1',\n render,\n props: mergeProps<'h1'>({ className: pageHeaderTitleVariants({ typography, className }) }, props),\n });\n}\n\nexport type PageHeaderMetaProps = ComponentProps<'div'>;\n\n/** Content beside the title: a badge, a status, section navigation, a\n * small action. */\nexport function PageHeaderMeta({ className, ...props }: PageHeaderMetaProps) {\n return <div className={cx(styles.pageHeaderMeta, className)} {...props} />;\n}\n\nexport type PageHeaderDescriptionProps = ComponentProps<'div'>;\n\n/** A short line under the title. */\nexport function PageHeaderDescription({ className, ...props }: PageHeaderDescriptionProps) {\n return <div className={cx(styles.pageHeaderDescription, className)} {...props} />;\n}\n\nexport type PageHeaderActionsProps = ComponentProps<'div'>;\n\n/** The row at the end of the header: buttons, menus, anything the page\n * acts with. */\nexport function PageHeaderActions({ className, ...props }: PageHeaderActionsProps) {\n return <div className={cx(styles.pageHeaderActions, className)} {...props} />;\n}\n"],"names":["pageHeaderVariants","cva","styles","PageHeader","className","size","border","props","jsx","cx","PageHeaderLeading","PageHeaderContent","PageHeaderEyebrow","pageHeaderTitleVariants","PageHeaderTitle","typography","render","useRender","mergeProps","PageHeaderMeta","PageHeaderDescription","PageHeaderActions"],"mappings":";;;;;;;;;;;;;;;;;;;;GAuBMA,IAAqBC,EAAIC,EAAO,YAAY;AAAA,EAChD,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,IAAA;AAAA,EACb;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC;AAYM,SAASC,EAAW,EAAE,WAAAC,GAAW,MAAAC,GAAM,QAAAC,IAAS,IAAM,GAAGC,KAA0B;AACxF,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGT,EAAmB,EAAE,MAAAK,EAAA,CAAM,GAAG,CAACC,KAAUJ,EAAO,cAAcE,CAAS;AAAA,MACpF,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGV;AAKO,SAASG,EAAkB,EAAE,WAAAN,GAAW,GAAGG,KAAiC;AACjF,SAAO,gBAAAC,E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AAGP,EAAO,mBAAmBE,CAAS,GAAI,GAAGG,GAAO;AAC7E;"}
package/llms.txt CHANGED
@@ -44,9 +44,9 @@ Rules for generated code:
44
44
  kit components that carry a `'use client'` banner of their own:
45
45
  Attachment, Badge, Breadcrumb, Bubble, ButtonGroup, Carousel, Chart,
46
46
  Combobox, ContextMenu, DataGrid, DataTable, Drawer, DropdownMenu, Marker,
47
- Sidebar, StatusDot, Table, Toast. Each calls a hook directly in its own
48
- render body, so it always renders on the client, wherever it is imported
49
- from.
47
+ PageHeader, Sidebar, StatusDot, Table, Toast. Each calls a hook directly in
48
+ its own render body, so it always renders on the client, wherever it is
49
+ imported from.
50
50
  - The kit paints the page itself from its tokens and sets `color-scheme`: with
51
51
  no `data-theme` attribute anywhere, `prefers-color-scheme: dark` alone
52
52
  yields a correct, legible dark page (background, text, and UA-owned
@@ -317,6 +317,16 @@ Rules for generated code:
317
317
  NavigationMenuList/NavigationMenuItem/NavigationMenuTrigger/
318
318
  NavigationMenuContent/NavigationMenuLink); one shared popup/Viewport
319
319
  morphs to each active item's measured size.
320
+ - [PageHeader](dist/docs/page-header.md): the bar at the top of a page or
321
+ a section (PageHeader/PageHeaderLeading/PageHeaderContent/
322
+ PageHeaderEyebrow/PageHeaderTitle/PageHeaderMeta/PageHeaderDescription/
323
+ PageHeaderActions); no Base UI primitive; `size` sm|default|lg (56/64/80
324
+ minimum height), `border={false}` paints the rule transparent, so the
325
+ height stays the same; `PageHeaderTitle` is an `h1` (`render={<h2 />}`
326
+ for a section) with
327
+ `typography` heading|display; Leading, Meta and Actions take any content;
328
+ `--page-header-inset` sets the side inset (default `--space-6`); a header
329
+ kept above `main` passes `role="group"` so it is not a second banner.
320
330
  - [Pagination](dist/docs/pagination.md): page-number navigation from real
321
331
  anchors (Pagination/PaginationContent/PaginationItem/PaginationLink/
322
332
  PaginationPrevious/PaginationNext/PaginationEllipsis); `isActive` paints
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gears-frontx/ui-kit",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Standard React component base for FrontX templates - Base UI behavior, CSS Modules styling on semantic tokens, CVA variants",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",