@bitrise/bitkit-v2 0.3.547 → 0.3.548
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/AGENTS.md +1 -1
- package/dist/components/BitkitPageHeader/BitkitPageHeader.d.ts +1 -0
- package/dist/components/BitkitPageHeader/BitkitPageHeader.js +2 -1
- package/dist/components/BitkitPageHeader/BitkitPageHeader.js.map +1 -1
- package/dist/components/BitkitPageHeader/usePageHeaderBottom.d.ts +7 -0
- package/dist/components/BitkitPageHeader/usePageHeaderBottom.js +38 -0
- package/dist/components/BitkitPageHeader/usePageHeaderBottom.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/main.js +2 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -83,7 +83,7 @@ import { BitkitProvider, BitkitButton } from '@bitrise/bitkit-v2';
|
|
|
83
83
|
- **Don't rebuild what Bitkit has.** Before hand-building a dialog, select, search input, list, table, tabs or empty state from Chakra primitives or HTML, look for the Bitkit component in the MCP. Raw Chakra is for layout and text (`Box`, `Stack`, `Text`) only — never Chakra's own `Button`, `Input`, `Dialog` and the like: the Bitkit theme styles them, so they look right, but they lack Bitkit's API and behaviour.
|
|
84
84
|
- **A whole page starts from the page-level components** — `BitkitPageHeader`, `BitkitPageSubheader`, `BitkitContentWrapper`, `BitkitUISideNav`, `BitkitPageFooter` — not from a hand-built frame. Before building or changing a page layout, read the `Docs/Page Layout` page: content widths, alignment, spacing and heading levels.
|
|
85
85
|
- **Clear a pinned `BitkitUIHeader` with `uiHeaderBottom`** — anything that has to start below it on a page without a sticky page header (a sticky row's `insetBlockStart`, a `scrollMarginTop`) uses `uiHeaderBottom`, which the header measures itself, banner and anything pushing it down included. Don't add up the header's and banners' heights by hand.
|
|
86
|
-
- **The page header sticks** — pass `sticky` to `BitkitPageHeader`, and to a `BitkitPageSidebar` below it; rows that stick under it use `pageHeaderBottom`. End the breadcrumb with a `BitkitBreadcrumb.CurrentItem` carrying the title, and use `CurrentItem` for nothing else. Don't wire your own scroll detection, and don't size the header's actions by hand: they follow the header. In JS, `useUiHeaderBottom()`
|
|
86
|
+
- **The page header sticks** — pass `sticky` to `BitkitPageHeader`, and to a `BitkitPageSidebar` below it; rows that stick under it use `pageHeaderBottom`. End the breadcrumb with a `BitkitBreadcrumb.CurrentItem` carrying the title, and use `CurrentItem` for nothing else. Don't wire your own scroll detection, and don't size the header's actions by hand: they follow the header. In JS, `usePageHeaderBottom()` and `useUiHeaderBottom()` give `pageHeaderBottom` and `uiHeaderBottom` as numbers.
|
|
87
87
|
- **Handle every state of a data view.** Anything that shows data needs a loading state (see *Skeleton loading*), an empty state (`BitkitEmptyState`) and an error state (`BitkitAlert`, or `createBitkitToast` for a failed action).
|
|
88
88
|
- **Don't override a Bitkit component's styling** — no `border`, `borderRadius`, `background`, `boxShadow` or `color` fighting its design — and don't pass an empty or placeholder value just to satisfy a required prop. Layout props (`width`, `flex`, `margin*`, …) are fine.
|
|
89
89
|
- **When Bitkit doesn't fit, it's a design-system gap, not a styling task.** Stop and tell the user; the gap gets fixed in Bitkit, once. At Bitrise, report it in #engineering-domain-frontend.
|
|
@@ -156,4 +156,5 @@ export interface BitkitPageHeaderProps extends Omit<BoxProps, 'title'> {
|
|
|
156
156
|
}
|
|
157
157
|
declare const BitkitPageHeader: import('react').ForwardRefExoticComponent<BitkitPageHeaderProps & import('react').RefAttributes<HTMLElement>>;
|
|
158
158
|
export { pageHeaderBottom } from './pageHeaderBottom';
|
|
159
|
+
export { default as usePageHeaderBottom } from './usePageHeaderBottom';
|
|
159
160
|
export default BitkitPageHeader;
|
|
@@ -7,6 +7,7 @@ import BitkitOverflowTooltip from "../BitkitOverflowTooltip/BitkitOverflowToolti
|
|
|
7
7
|
import "../BitkitUIHeader/usePublishedBottom.js";
|
|
8
8
|
import { pageHeaderBottom } from "./pageHeaderBottom.js";
|
|
9
9
|
import useSelfSticky from "./useSelfSticky.js";
|
|
10
|
+
import usePageHeaderBottom from "./usePageHeaderBottom.js";
|
|
10
11
|
import { useSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
11
12
|
import { forwardRef } from "react";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -161,6 +162,6 @@ var BitkitPageHeader = forwardRef((props, ref) => {
|
|
|
161
162
|
] });
|
|
162
163
|
});
|
|
163
164
|
BitkitPageHeader.displayName = "BitkitPageHeader";
|
|
164
|
-
export { BitkitPageHeader as default, pageHeaderBottom };
|
|
165
|
+
export { BitkitPageHeader as default, pageHeaderBottom, usePageHeaderBottom };
|
|
165
166
|
|
|
166
167
|
//# sourceMappingURL=BitkitPageHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitPageHeader.js","names":["_Fragment"],"sources":["../../../lib/components/BitkitPageHeader/BitkitPageHeader.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { Text } from '@chakra-ui/react/text';\nimport { forwardRef, type ReactNode } from 'react';\n\nimport IconMenuHamburger from '../../icons/IconMenuHamburger';\nimport { ControlSizeContext } from '../../utilities/ControlSizeContext';\nimport { isEmptyNode } from '../../utilities/isEmptyNode';\nimport useIsTruncated from '../../utilities/useIsTruncated';\nimport { type BitkitContentWidth } from '../BitkitContentWrapper/BitkitContentWrapper';\nimport BitkitIconButton from '../BitkitIconButton/BitkitIconButton';\nimport BitkitOverflowTooltip from '../BitkitOverflowTooltip/BitkitOverflowTooltip';\nimport { uiHeaderBottom } from '../BitkitUIHeader/usePublishedBottom';\nimport useSelfSticky from './useSelfSticky';\n\nexport interface BitkitPageHeaderProps extends Omit<BoxProps, 'title'> {\n /**\n * Avatar, app icon or thumbnail rendered before the title. Hidden in the collapsed layout.\n *\n * Belongs to the sub-page layouts: the design's main-page header is a title and its subtitle with\n * no avatar, so pass this alongside a `breadcrumb`.\n *\n * Size it to match the design's two sub-page cards, since the node is yours to build: `size=\"40\"`\n * (8px radius) against a bare title, and `size=\"48\"` (10px radius) once `secondaryText` is\n * present — the same avatar the `app` and `user` content shapes use.\n */\n avatar?: ReactNode;\n /** Badge rendered next to the title. Hidden in the collapsed layout. */\n badge?: ReactNode;\n /**\n * Breadcrumb trail above the title — pass a `BitkitBreadcrumb`. Its presence is what switches the\n * header from the design's main-page layout to a sub-page one, so there is no separate page-type\n * prop: the recipe's own `hasBreadcrumb` variant is derived from it.\n *\n * The two layouts carry more than the trail. A main-page header is a title and its subtitle —\n * top-level pages and product overviews — with no avatar and no `app`/`user` content shape. Those\n * belong to sub-pages, so pass them together with a trail.\n */\n breadcrumb?: ReactNode;\n /**\n * Trailing action buttons. Stacked full-width below the title on mobile, primary action on top.\n *\n * The collapsed row is built for `size=\"sm\"` buttons and the expanded header for `size=\"md\"`.\n * A `sticky` or `minimal` header sizes its actions itself, unless they set a size of their own.\n *\n * `minimal` sizes them `sm` on mobile too, where it doesn't collapse: a little small in the\n * expanded mobile layout, but the design draws no mobile frame for it, so `sm` is the closer of\n * the two. Pass a flat `size` to override, not a responsive one: Bitkit icons render a different\n * SVG asset per size, so `BitkitButton` resolves `size` in JS and a `{ base, tablet }` object\n * matches no key.\n */\n children?: ReactNode;\n /**\n * Shape of the title block, mirroring the design's `content` property. `title` is a page title\n * with an optional subtitle; `app` and `user` are the tighter entity layouts — a larger avatar\n * centred against a smaller title and 14px secondary text. They differ only in the gap between\n * the avatar and the text, 16 and 12 respectively.\n */\n contentVariant?: 'title' | 'app' | 'user';\n /**\n * Lines the header's content up with the page content below it: pass the `BitkitContentWrapper`'s value. The title,\n * the actions and the tabs are capped at that width and centred, while the background and the bottom border still run\n * edge to edge. `layout/maxWidth/full` keeps the same 32px inset without a cap. Without it the header keeps the default inset, which\n * lines up with a sidebar below it.\n */\n contentWidth?: BitkitContentWidth;\n /**\n * Inline controls between the trail and the actions — a view switcher, filters, a settings menu.\n * Their presence spreads the row into three groups instead of the usual trail-and-actions pair,\n * which is the shape the design file calls `PageHeader-WFE`.\n *\n * Belongs to the collapsed row, so it is honoured by `variant=\"minimal\"` *and* by a stuck\n * `sticky` header — the two produce the same row — and ignored in the expanded layouts, which the\n * design draws no controls in.\n */\n controls?: ReactNode;\n /**\n * Makes the header stick by itself: from `tablet` it sticks right below a pinned\n * `BitkitUIHeader` (`uiHeaderBottom`), collapses into the compact row once scrolled to it, and\n * its actions shrink to `sm` unless they set a size of their own. No scroll detection on the\n * page's side.\n *\n * End the `breadcrumb` with a `BitkitBreadcrumb.CurrentItem` carrying the title, always, and use\n * `CurrentItem` for nothing else: the expanded header hides it (the title is its heading there),\n * the collapsed row shows it. Render the header as a direct child of the page's column, not inside\n * a wrapper (it would stick to the wrapper) or a `gap` stack (its sentinel and spacer would take\n * gaps).\n */\n sticky?: boolean;\n /**\n * Opens the page's sidebar on mobile. Its presence switches the header to the design's\n * `hasSidebar` layout below `tablet`: the title shrinks beside a menu button, and the\n * `sectionTitle` takes over as the large heading under a rule, with the actions below it. Wire it\n * to a `BitkitPageSidebar`'s `open` / `onOpenChange`. From `tablet` the button is hidden and the\n * header is the ordinary one — the sidebar is beside the page there.\n */\n onMenuClick?: () => void;\n /**\n * Descriptive text below the title. Hidden in the collapsed layout.\n *\n * A string, like `title`, so it can be truncated to one line and carried in full by the tooltip\n * that appears when it does not fit.\n */\n secondaryText?: string;\n /**\n * Draws the line along the header's bottom edge. Set it to `false` for a header that flows\n * straight into the page, and the bottom padding goes with the line: the header's background is\n * the page's, so without the line that padding would only be a margin the page cannot shrink. The\n * page spaces its content from the header itself.\n *\n * The collapsed row keeps its padding, which centres the row rather than spacing the page, and from\n * `tablet` a stuck `sticky` header keeps its line as well, since content scrolls under it. Below\n * `tablet` the header doesn't stick, so there the line goes too.\n *\n * Ignored with `tabs`, whose list sits on that edge. That includes `variant=\"minimal\"`, which hides\n * the tab list from `tablet`: the line stays although no tabs show above it.\n */\n showDivider?: boolean;\n /**\n * The sidebar section the page is showing, for the `hasSidebar` layout — see `onMenuClick`. It\n * is the page's visible `h2` on mobile, where the sidebar that would name it is behind the menu\n * button. Not rendered from `tablet`, and never without `onMenuClick`.\n */\n sectionTitle?: string;\n /**\n * Tab bar along the bottom edge — pass a `BitkitTabs.List`. Hidden in the collapsed layout.\n *\n * The node is rendered inside the header, so tab panels cannot be siblings of the row. To drive\n * page content from it, put `BitkitTabs.Root` around the header *and* the content, and pass only\n * the list here — `BitkitTabs.List` reads its Root from context and throws without an ancestor:\n *\n * ```tsx\n * <BitkitTabs.Root defaultValue=\"overview\">\n * <BitkitPageHeader tabs={<BitkitTabs.List>…</BitkitTabs.List>} title=\"Build Hub\" />\n * <BitkitTabs.ContentGroup>\n * <BitkitTabs.Content padding=\"32\" value=\"overview\">…</BitkitTabs.Content>\n * </BitkitTabs.ContentGroup>\n * </BitkitTabs.Root>\n * ```\n *\n * Only the row is hidden when the header collapses — the panels live outside it and keep\n * rendering, so the page never blanks.\n */\n tabs?: ReactNode;\n /**\n * The page title, as a string. Everything passed here lands inside the `h1`, so it is the\n * heading's accessible name and nothing else belongs in it — the avatar, badge and secondary\n * text each have their own slot. Required: it is what gives the header a page heading at every\n * breakpoint.\n *\n * Truncated to a single line with an ellipsis. When it does not fit, hovering or focusing it\n * shows the full string in a tooltip — so a long title never grows the header.\n *\n * In the collapsed layout (`minimal` or a stuck `sticky` header) *with* a `breadcrumb`, the design shows the\n * title in the trail rather than as a heading, so end the breadcrumb with a\n * `BitkitBreadcrumb.CurrentItem` carrying it — the title is then rendered as a visually hidden\n * `h1`, since `Breadcrumb.CurrentLink` is a link and not a heading. Below `tablet` the header\n * never collapses and the visible heading is used instead (`BitkitBreadcrumb` drops its\n * `CurrentItem` on mobile).\n */\n title: string;\n /**\n * `minimal` collapses the header to the single breadcrumb row used by sub-pages that don't repeat\n * their title as a heading. Like `sticky`, it only collapses from `tablet` up. Its actions are\n * `sm` — see `children`.\n */\n variant?: 'default' | 'minimal';\n}\n\nconst BitkitPageHeader = forwardRef<HTMLElement, BitkitPageHeaderProps>((props, ref) => {\n const {\n avatar,\n badge,\n breadcrumb,\n children,\n contentVariant,\n contentWidth,\n controls,\n css,\n onMenuClick,\n secondaryText,\n sectionTitle,\n showDivider = true,\n sticky,\n tabs,\n title,\n variant,\n ...rest\n } = props;\n\n const { headerRef, isStuck, sentinelRef, spacerHeight } = useSelfSticky(ref, Boolean(sticky));\n\n // Which slots the collapsed row drops, and whether it collapses at all, is decided entirely by\n // the recipe's `tablet`-scoped styles. Nothing here branches on the viewport: a breakpoint hook\n // would render the wrong layout on first paint, since Chakra's `useMediaQuery` returns its\n // fallback until after mount.\n\n // A slot's presence is its own toggle, so all of them share one emptiness test rather than plain\n // truthiness: an array whose entries all render nothing — `items.map()` where every branch is\n // `null` — is still truthy, and would otherwise render a wrapper that only contributes gap. For\n // `controls` it would also spread the row into three groups around an empty middle one.\n const hasAvatar = !isEmptyNode(avatar);\n const hasBadge = !isEmptyNode(badge);\n const hasBreadcrumb = !isEmptyNode(breadcrumb);\n const hasActions = !isEmptyNode(children);\n const hasSecondaryText = !isEmptyNode(secondaryText);\n const hasSidebar = onMenuClick !== undefined;\n const hasSectionTitle = hasSidebar && !isEmptyNode(sectionTitle);\n const hasTabs = !isEmptyNode(tabs);\n\n // `BitkitOverflowTooltip` does no measuring of its own — it shows the tooltip unless told not to,\n // so each truncating text reports whether it is actually clipped and suppresses its own tooltip\n // when it is not. Keyed on the text so a change re-measures without waiting for a resize.\n const { isTruncated: isTitleTruncated, ref: titleRef } = useIsTruncated<HTMLHeadingElement>(title);\n const { isTruncated: isSecondaryTruncated, ref: secondaryRef } = useIsTruncated<HTMLParagraphElement>(secondaryText);\n\n // The design only draws inline controls in the collapsed row, so they are ignored in the\n // expanded layouts rather than left to land somewhere undesigned. `minimal` and a stuck header\n // produce that row through the same `collapsedSlots`, so both have to honour them.\n const isCollapsed = variant === 'minimal' || isStuck;\n const showControls = !isEmptyNode(controls) && isCollapsed;\n\n // The collapsed row takes `sm` actions, a sticky header's expanded one `md`. A plain header leaves\n // them to the consumer.\n const actionSize = isCollapsed ? 'sm' : sticky ? 'md' : undefined;\n\n // The collapsed row with a trail makes the title block `srOnly`, which is a 1px box — so the\n // measurement reports \"truncated\" for a heading nobody can see. Left alone that puts a tab stop\n // on an invisible element and opens a tooltip against it. The trail already carries the title as\n // its current item in exactly that layout, so there is nothing to surface anyway.\n const canShowTitleTooltip = isTitleTruncated && !(isCollapsed && hasBreadcrumb);\n\n const recipe = useSlotRecipe({ key: 'pageHeader' });\n const styles = recipe({\n contentVariant,\n hasBreadcrumb,\n hasControls: showControls,\n hasDivider: showDivider || hasTabs,\n hasSidebar,\n alignsToContent: Boolean(contentWidth),\n isSticky: isStuck,\n variant,\n });\n\n // The controls are the middle of three groups, so they follow whichever element holds the left\n // slot: the trail when there is one, otherwise the title — which lives inside `contentBlock`, so\n // they have to go in there with it rather than beside it.\n const controlsNode = showControls ? <Box css={styles.controls}>{controls}</Box> : null;\n\n // With a sidebar the menu button shares the title's row, so the block gets a wrapper the content\n // row treats as the title block. Other headers keep their DOM.\n const titleBlock = (\n <Box css={styles.titleBlock}>\n {hasAvatar && <Box css={styles.avatar}>{avatar}</Box>}\n\n <Box css={styles.textBlock}>\n <Box css={styles.titleRow}>\n {/*\n `bottom-start` rather than the tooltip's default `right`: these texts are\n full-width rows, so a right-hand tooltip lands over the actions. Opening below and\n aligned to the text's start keeps it clear of them and lines it up with the text\n it repeats.\n */}\n <BitkitOverflowTooltip disabled={!canShowTitleTooltip} placement=\"bottom-start\" text={title}>\n {/*\n `tabIndex` only while truncated: the tooltip trigger is rendered `asChild`, so an\n `h1` stays unfocusable and the full title would be mouse-only. Adding the tab\n stop unconditionally would put one in every header for no benefit.\n */}\n <Text as=\"h1\" css={styles.title} ref={titleRef} tabIndex={canShowTitleTooltip ? 0 : undefined}>\n {title}\n </Text>\n </BitkitOverflowTooltip>\n {hasBadge && <Box css={styles.badge}>{badge}</Box>}\n </Box>\n\n {hasSecondaryText && secondaryText !== undefined && (\n <BitkitOverflowTooltip disabled={!isSecondaryTruncated} placement=\"bottom-start\" text={secondaryText}>\n <Text css={styles.secondaryText} ref={secondaryRef} tabIndex={isSecondaryTruncated ? 0 : undefined}>\n {secondaryText}\n </Text>\n </BitkitOverflowTooltip>\n )}\n </Box>\n </Box>\n );\n\n const header = (\n <Box\n as=\"header\"\n css={[styles.root, css]}\n ref={headerRef}\n {...(sticky && {\n insetBlockStart: uiHeaderBottom,\n position: { base: 'static', tablet: 'sticky' },\n zIndex: 'pageHeader',\n })}\n {...rest}\n >\n <Box css={styles.headerBlock} maxWidth={contentWidth}>\n {hasBreadcrumb && (\n <Box\n css={[\n styles.breadcrumb,\n // A self-sticky header takes a trail that always ends in the title (`CurrentItem`): the\n // collapsed row shows it there, the expanded one already has the title as its heading.\n sticky && !isCollapsed && { '& li:has([aria-current=\"page\"])': { display: 'none' } },\n ]}\n >\n {breadcrumb}\n </Box>\n )}\n\n {hasBreadcrumb && controlsNode}\n\n <Box css={styles.contentBlock}>\n {hasSidebar ? (\n <Box css={styles.titleBar}>\n {titleBlock}\n <Box css={styles.menuButton}>\n <BitkitIconButton\n icon={IconMenuHamburger}\n label=\"Open navigation\"\n onClick={onMenuClick}\n size=\"sm\"\n variant=\"secondary\"\n />\n </Box>\n </Box>\n ) : (\n titleBlock\n )}\n\n {hasSectionTitle && (\n <Box css={styles.sectionBlock}>\n <Text as=\"h2\" css={styles.sectionTitle}>\n {sectionTitle}\n </Text>\n </Box>\n )}\n\n {!hasBreadcrumb && controlsNode}\n\n {hasActions && (\n <Box css={styles.actionBlock}>\n <ControlSizeContext.Provider value={actionSize}>{children}</ControlSizeContext.Provider>\n </Box>\n )}\n </Box>\n </Box>\n\n {hasTabs && (\n <Box css={styles.tabs} maxWidth={contentWidth}>\n {tabs}\n </Box>\n )}\n </Box>\n );\n\n // The header keeps its place in the tree either way, so switching `sticky` doesn't remount it.\n return (\n <>\n {sticky && <Box aria-hidden ref={sentinelRef} />}\n {header}\n {/* Holds the height the header gave up by collapsing, so the content below doesn't jump. */}\n {sticky && <Box aria-hidden display={{ base: 'none', tablet: 'block' }} height={`${spacerHeight}px`} />}\n </>\n );\n});\n\nexport { pageHeaderBottom } from './pageHeaderBottom';\n\nBitkitPageHeader.displayName = 'BitkitPageHeader';\n\nexport default BitkitPageHeader;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"BitkitPageHeader.js","names":["_Fragment"],"sources":["../../../lib/components/BitkitPageHeader/BitkitPageHeader.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { Text } from '@chakra-ui/react/text';\nimport { forwardRef, type ReactNode } from 'react';\n\nimport IconMenuHamburger from '../../icons/IconMenuHamburger';\nimport { ControlSizeContext } from '../../utilities/ControlSizeContext';\nimport { isEmptyNode } from '../../utilities/isEmptyNode';\nimport useIsTruncated from '../../utilities/useIsTruncated';\nimport { type BitkitContentWidth } from '../BitkitContentWrapper/BitkitContentWrapper';\nimport BitkitIconButton from '../BitkitIconButton/BitkitIconButton';\nimport BitkitOverflowTooltip from '../BitkitOverflowTooltip/BitkitOverflowTooltip';\nimport { uiHeaderBottom } from '../BitkitUIHeader/usePublishedBottom';\nimport useSelfSticky from './useSelfSticky';\n\nexport interface BitkitPageHeaderProps extends Omit<BoxProps, 'title'> {\n /**\n * Avatar, app icon or thumbnail rendered before the title. Hidden in the collapsed layout.\n *\n * Belongs to the sub-page layouts: the design's main-page header is a title and its subtitle with\n * no avatar, so pass this alongside a `breadcrumb`.\n *\n * Size it to match the design's two sub-page cards, since the node is yours to build: `size=\"40\"`\n * (8px radius) against a bare title, and `size=\"48\"` (10px radius) once `secondaryText` is\n * present — the same avatar the `app` and `user` content shapes use.\n */\n avatar?: ReactNode;\n /** Badge rendered next to the title. Hidden in the collapsed layout. */\n badge?: ReactNode;\n /**\n * Breadcrumb trail above the title — pass a `BitkitBreadcrumb`. Its presence is what switches the\n * header from the design's main-page layout to a sub-page one, so there is no separate page-type\n * prop: the recipe's own `hasBreadcrumb` variant is derived from it.\n *\n * The two layouts carry more than the trail. A main-page header is a title and its subtitle —\n * top-level pages and product overviews — with no avatar and no `app`/`user` content shape. Those\n * belong to sub-pages, so pass them together with a trail.\n */\n breadcrumb?: ReactNode;\n /**\n * Trailing action buttons. Stacked full-width below the title on mobile, primary action on top.\n *\n * The collapsed row is built for `size=\"sm\"` buttons and the expanded header for `size=\"md\"`.\n * A `sticky` or `minimal` header sizes its actions itself, unless they set a size of their own.\n *\n * `minimal` sizes them `sm` on mobile too, where it doesn't collapse: a little small in the\n * expanded mobile layout, but the design draws no mobile frame for it, so `sm` is the closer of\n * the two. Pass a flat `size` to override, not a responsive one: Bitkit icons render a different\n * SVG asset per size, so `BitkitButton` resolves `size` in JS and a `{ base, tablet }` object\n * matches no key.\n */\n children?: ReactNode;\n /**\n * Shape of the title block, mirroring the design's `content` property. `title` is a page title\n * with an optional subtitle; `app` and `user` are the tighter entity layouts — a larger avatar\n * centred against a smaller title and 14px secondary text. They differ only in the gap between\n * the avatar and the text, 16 and 12 respectively.\n */\n contentVariant?: 'title' | 'app' | 'user';\n /**\n * Lines the header's content up with the page content below it: pass the `BitkitContentWrapper`'s value. The title,\n * the actions and the tabs are capped at that width and centred, while the background and the bottom border still run\n * edge to edge. `layout/maxWidth/full` keeps the same 32px inset without a cap. Without it the header keeps the default inset, which\n * lines up with a sidebar below it.\n */\n contentWidth?: BitkitContentWidth;\n /**\n * Inline controls between the trail and the actions — a view switcher, filters, a settings menu.\n * Their presence spreads the row into three groups instead of the usual trail-and-actions pair,\n * which is the shape the design file calls `PageHeader-WFE`.\n *\n * Belongs to the collapsed row, so it is honoured by `variant=\"minimal\"` *and* by a stuck\n * `sticky` header — the two produce the same row — and ignored in the expanded layouts, which the\n * design draws no controls in.\n */\n controls?: ReactNode;\n /**\n * Makes the header stick by itself: from `tablet` it sticks right below a pinned\n * `BitkitUIHeader` (`uiHeaderBottom`), collapses into the compact row once scrolled to it, and\n * its actions shrink to `sm` unless they set a size of their own. No scroll detection on the\n * page's side.\n *\n * End the `breadcrumb` with a `BitkitBreadcrumb.CurrentItem` carrying the title, always, and use\n * `CurrentItem` for nothing else: the expanded header hides it (the title is its heading there),\n * the collapsed row shows it. Render the header as a direct child of the page's column, not inside\n * a wrapper (it would stick to the wrapper) or a `gap` stack (its sentinel and spacer would take\n * gaps).\n */\n sticky?: boolean;\n /**\n * Opens the page's sidebar on mobile. Its presence switches the header to the design's\n * `hasSidebar` layout below `tablet`: the title shrinks beside a menu button, and the\n * `sectionTitle` takes over as the large heading under a rule, with the actions below it. Wire it\n * to a `BitkitPageSidebar`'s `open` / `onOpenChange`. From `tablet` the button is hidden and the\n * header is the ordinary one — the sidebar is beside the page there.\n */\n onMenuClick?: () => void;\n /**\n * Descriptive text below the title. Hidden in the collapsed layout.\n *\n * A string, like `title`, so it can be truncated to one line and carried in full by the tooltip\n * that appears when it does not fit.\n */\n secondaryText?: string;\n /**\n * Draws the line along the header's bottom edge. Set it to `false` for a header that flows\n * straight into the page, and the bottom padding goes with the line: the header's background is\n * the page's, so without the line that padding would only be a margin the page cannot shrink. The\n * page spaces its content from the header itself.\n *\n * The collapsed row keeps its padding, which centres the row rather than spacing the page, and from\n * `tablet` a stuck `sticky` header keeps its line as well, since content scrolls under it. Below\n * `tablet` the header doesn't stick, so there the line goes too.\n *\n * Ignored with `tabs`, whose list sits on that edge. That includes `variant=\"minimal\"`, which hides\n * the tab list from `tablet`: the line stays although no tabs show above it.\n */\n showDivider?: boolean;\n /**\n * The sidebar section the page is showing, for the `hasSidebar` layout — see `onMenuClick`. It\n * is the page's visible `h2` on mobile, where the sidebar that would name it is behind the menu\n * button. Not rendered from `tablet`, and never without `onMenuClick`.\n */\n sectionTitle?: string;\n /**\n * Tab bar along the bottom edge — pass a `BitkitTabs.List`. Hidden in the collapsed layout.\n *\n * The node is rendered inside the header, so tab panels cannot be siblings of the row. To drive\n * page content from it, put `BitkitTabs.Root` around the header *and* the content, and pass only\n * the list here — `BitkitTabs.List` reads its Root from context and throws without an ancestor:\n *\n * ```tsx\n * <BitkitTabs.Root defaultValue=\"overview\">\n * <BitkitPageHeader tabs={<BitkitTabs.List>…</BitkitTabs.List>} title=\"Build Hub\" />\n * <BitkitTabs.ContentGroup>\n * <BitkitTabs.Content padding=\"32\" value=\"overview\">…</BitkitTabs.Content>\n * </BitkitTabs.ContentGroup>\n * </BitkitTabs.Root>\n * ```\n *\n * Only the row is hidden when the header collapses — the panels live outside it and keep\n * rendering, so the page never blanks.\n */\n tabs?: ReactNode;\n /**\n * The page title, as a string. Everything passed here lands inside the `h1`, so it is the\n * heading's accessible name and nothing else belongs in it — the avatar, badge and secondary\n * text each have their own slot. Required: it is what gives the header a page heading at every\n * breakpoint.\n *\n * Truncated to a single line with an ellipsis. When it does not fit, hovering or focusing it\n * shows the full string in a tooltip — so a long title never grows the header.\n *\n * In the collapsed layout (`minimal` or a stuck `sticky` header) *with* a `breadcrumb`, the design shows the\n * title in the trail rather than as a heading, so end the breadcrumb with a\n * `BitkitBreadcrumb.CurrentItem` carrying it — the title is then rendered as a visually hidden\n * `h1`, since `Breadcrumb.CurrentLink` is a link and not a heading. Below `tablet` the header\n * never collapses and the visible heading is used instead (`BitkitBreadcrumb` drops its\n * `CurrentItem` on mobile).\n */\n title: string;\n /**\n * `minimal` collapses the header to the single breadcrumb row used by sub-pages that don't repeat\n * their title as a heading. Like `sticky`, it only collapses from `tablet` up. Its actions are\n * `sm` — see `children`.\n */\n variant?: 'default' | 'minimal';\n}\n\nconst BitkitPageHeader = forwardRef<HTMLElement, BitkitPageHeaderProps>((props, ref) => {\n const {\n avatar,\n badge,\n breadcrumb,\n children,\n contentVariant,\n contentWidth,\n controls,\n css,\n onMenuClick,\n secondaryText,\n sectionTitle,\n showDivider = true,\n sticky,\n tabs,\n title,\n variant,\n ...rest\n } = props;\n\n const { headerRef, isStuck, sentinelRef, spacerHeight } = useSelfSticky(ref, Boolean(sticky));\n\n // Which slots the collapsed row drops, and whether it collapses at all, is decided entirely by\n // the recipe's `tablet`-scoped styles. Nothing here branches on the viewport: a breakpoint hook\n // would render the wrong layout on first paint, since Chakra's `useMediaQuery` returns its\n // fallback until after mount.\n\n // A slot's presence is its own toggle, so all of them share one emptiness test rather than plain\n // truthiness: an array whose entries all render nothing — `items.map()` where every branch is\n // `null` — is still truthy, and would otherwise render a wrapper that only contributes gap. For\n // `controls` it would also spread the row into three groups around an empty middle one.\n const hasAvatar = !isEmptyNode(avatar);\n const hasBadge = !isEmptyNode(badge);\n const hasBreadcrumb = !isEmptyNode(breadcrumb);\n const hasActions = !isEmptyNode(children);\n const hasSecondaryText = !isEmptyNode(secondaryText);\n const hasSidebar = onMenuClick !== undefined;\n const hasSectionTitle = hasSidebar && !isEmptyNode(sectionTitle);\n const hasTabs = !isEmptyNode(tabs);\n\n // `BitkitOverflowTooltip` does no measuring of its own — it shows the tooltip unless told not to,\n // so each truncating text reports whether it is actually clipped and suppresses its own tooltip\n // when it is not. Keyed on the text so a change re-measures without waiting for a resize.\n const { isTruncated: isTitleTruncated, ref: titleRef } = useIsTruncated<HTMLHeadingElement>(title);\n const { isTruncated: isSecondaryTruncated, ref: secondaryRef } = useIsTruncated<HTMLParagraphElement>(secondaryText);\n\n // The design only draws inline controls in the collapsed row, so they are ignored in the\n // expanded layouts rather than left to land somewhere undesigned. `minimal` and a stuck header\n // produce that row through the same `collapsedSlots`, so both have to honour them.\n const isCollapsed = variant === 'minimal' || isStuck;\n const showControls = !isEmptyNode(controls) && isCollapsed;\n\n // The collapsed row takes `sm` actions, a sticky header's expanded one `md`. A plain header leaves\n // them to the consumer.\n const actionSize = isCollapsed ? 'sm' : sticky ? 'md' : undefined;\n\n // The collapsed row with a trail makes the title block `srOnly`, which is a 1px box — so the\n // measurement reports \"truncated\" for a heading nobody can see. Left alone that puts a tab stop\n // on an invisible element and opens a tooltip against it. The trail already carries the title as\n // its current item in exactly that layout, so there is nothing to surface anyway.\n const canShowTitleTooltip = isTitleTruncated && !(isCollapsed && hasBreadcrumb);\n\n const recipe = useSlotRecipe({ key: 'pageHeader' });\n const styles = recipe({\n contentVariant,\n hasBreadcrumb,\n hasControls: showControls,\n hasDivider: showDivider || hasTabs,\n hasSidebar,\n alignsToContent: Boolean(contentWidth),\n isSticky: isStuck,\n variant,\n });\n\n // The controls are the middle of three groups, so they follow whichever element holds the left\n // slot: the trail when there is one, otherwise the title — which lives inside `contentBlock`, so\n // they have to go in there with it rather than beside it.\n const controlsNode = showControls ? <Box css={styles.controls}>{controls}</Box> : null;\n\n // With a sidebar the menu button shares the title's row, so the block gets a wrapper the content\n // row treats as the title block. Other headers keep their DOM.\n const titleBlock = (\n <Box css={styles.titleBlock}>\n {hasAvatar && <Box css={styles.avatar}>{avatar}</Box>}\n\n <Box css={styles.textBlock}>\n <Box css={styles.titleRow}>\n {/*\n `bottom-start` rather than the tooltip's default `right`: these texts are\n full-width rows, so a right-hand tooltip lands over the actions. Opening below and\n aligned to the text's start keeps it clear of them and lines it up with the text\n it repeats.\n */}\n <BitkitOverflowTooltip disabled={!canShowTitleTooltip} placement=\"bottom-start\" text={title}>\n {/*\n `tabIndex` only while truncated: the tooltip trigger is rendered `asChild`, so an\n `h1` stays unfocusable and the full title would be mouse-only. Adding the tab\n stop unconditionally would put one in every header for no benefit.\n */}\n <Text as=\"h1\" css={styles.title} ref={titleRef} tabIndex={canShowTitleTooltip ? 0 : undefined}>\n {title}\n </Text>\n </BitkitOverflowTooltip>\n {hasBadge && <Box css={styles.badge}>{badge}</Box>}\n </Box>\n\n {hasSecondaryText && secondaryText !== undefined && (\n <BitkitOverflowTooltip disabled={!isSecondaryTruncated} placement=\"bottom-start\" text={secondaryText}>\n <Text css={styles.secondaryText} ref={secondaryRef} tabIndex={isSecondaryTruncated ? 0 : undefined}>\n {secondaryText}\n </Text>\n </BitkitOverflowTooltip>\n )}\n </Box>\n </Box>\n );\n\n const header = (\n <Box\n as=\"header\"\n css={[styles.root, css]}\n ref={headerRef}\n {...(sticky && {\n insetBlockStart: uiHeaderBottom,\n position: { base: 'static', tablet: 'sticky' },\n zIndex: 'pageHeader',\n })}\n {...rest}\n >\n <Box css={styles.headerBlock} maxWidth={contentWidth}>\n {hasBreadcrumb && (\n <Box\n css={[\n styles.breadcrumb,\n // A self-sticky header takes a trail that always ends in the title (`CurrentItem`): the\n // collapsed row shows it there, the expanded one already has the title as its heading.\n sticky && !isCollapsed && { '& li:has([aria-current=\"page\"])': { display: 'none' } },\n ]}\n >\n {breadcrumb}\n </Box>\n )}\n\n {hasBreadcrumb && controlsNode}\n\n <Box css={styles.contentBlock}>\n {hasSidebar ? (\n <Box css={styles.titleBar}>\n {titleBlock}\n <Box css={styles.menuButton}>\n <BitkitIconButton\n icon={IconMenuHamburger}\n label=\"Open navigation\"\n onClick={onMenuClick}\n size=\"sm\"\n variant=\"secondary\"\n />\n </Box>\n </Box>\n ) : (\n titleBlock\n )}\n\n {hasSectionTitle && (\n <Box css={styles.sectionBlock}>\n <Text as=\"h2\" css={styles.sectionTitle}>\n {sectionTitle}\n </Text>\n </Box>\n )}\n\n {!hasBreadcrumb && controlsNode}\n\n {hasActions && (\n <Box css={styles.actionBlock}>\n <ControlSizeContext.Provider value={actionSize}>{children}</ControlSizeContext.Provider>\n </Box>\n )}\n </Box>\n </Box>\n\n {hasTabs && (\n <Box css={styles.tabs} maxWidth={contentWidth}>\n {tabs}\n </Box>\n )}\n </Box>\n );\n\n // The header keeps its place in the tree either way, so switching `sticky` doesn't remount it.\n return (\n <>\n {sticky && <Box aria-hidden ref={sentinelRef} />}\n {header}\n {/* Holds the height the header gave up by collapsing, so the content below doesn't jump. */}\n {sticky && <Box aria-hidden display={{ base: 'none', tablet: 'block' }} height={`${spacerHeight}px`} />}\n </>\n );\n});\n\nexport { pageHeaderBottom } from './pageHeaderBottom';\nexport { default as usePageHeaderBottom } from './usePageHeaderBottom';\n\nBitkitPageHeader.displayName = 'BitkitPageHeader';\n\nexport default BitkitPageHeader;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pageHeaderBottom` as a number of px, for JS that needs one, such as an `IntersectionObserver`
|
|
3
|
+
* margin or a scroll offset. It follows the same rules as the CSS value: under a `sticky` page
|
|
4
|
+
* header from `tablet`, otherwise under the pinned `BitkitUIHeader`. CSS takes `pageHeaderBottom`.
|
|
5
|
+
*/
|
|
6
|
+
declare const usePageHeaderBottom: () => number;
|
|
7
|
+
export default usePageHeaderBottom;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import breakpoints from "../../theme/breakpoints.js";
|
|
2
|
+
import useUiHeaderBottom from "../BitkitUIHeader/useUiHeaderBottom.js";
|
|
3
|
+
import { getPageHeaderCollapsedHeightPx, stickyPageHeaderMarker } from "./pageHeaderBottom.js";
|
|
4
|
+
import { useSyncExternalStore } from "react";
|
|
5
|
+
import { useMediaQuery } from "@chakra-ui/react/hooks";
|
|
6
|
+
// lib/components/BitkitPageHeader/usePageHeaderBottom.ts
|
|
7
|
+
var read = () => document.documentElement.hasAttribute(stickyPageHeaderMarker);
|
|
8
|
+
var readOnServer = () => false;
|
|
9
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
10
|
+
var observer;
|
|
11
|
+
var subscribe = (listener) => {
|
|
12
|
+
listeners.add(listener);
|
|
13
|
+
if (!observer) {
|
|
14
|
+
observer = new MutationObserver(() => listeners.forEach((notify) => notify()));
|
|
15
|
+
observer.observe(document.documentElement, { attributeFilter: [stickyPageHeaderMarker] });
|
|
16
|
+
}
|
|
17
|
+
return () => {
|
|
18
|
+
listeners.delete(listener);
|
|
19
|
+
if (listeners.size === 0) {
|
|
20
|
+
observer?.disconnect();
|
|
21
|
+
observer = void 0;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* `pageHeaderBottom` as a number of px, for JS that needs one, such as an `IntersectionObserver`
|
|
27
|
+
* margin or a scroll offset. It follows the same rules as the CSS value: under a `sticky` page
|
|
28
|
+
* header from `tablet`, otherwise under the pinned `BitkitUIHeader`. CSS takes `pageHeaderBottom`.
|
|
29
|
+
*/
|
|
30
|
+
var usePageHeaderBottom = () => {
|
|
31
|
+
const uiHeaderBottomPx = useUiHeaderBottom();
|
|
32
|
+
const hasStickyHeader = useSyncExternalStore(subscribe, read, readOnServer);
|
|
33
|
+
const [isFromTablet] = useMediaQuery([`(min-width: ${breakpoints.tablet})`]);
|
|
34
|
+
return hasStickyHeader && isFromTablet ? uiHeaderBottomPx + getPageHeaderCollapsedHeightPx() : uiHeaderBottomPx;
|
|
35
|
+
};
|
|
36
|
+
export { usePageHeaderBottom as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=usePageHeaderBottom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageHeaderBottom.js","names":[],"sources":["../../../lib/components/BitkitPageHeader/usePageHeaderBottom.ts"],"sourcesContent":["import { useMediaQuery } from '@chakra-ui/react/hooks';\nimport { useSyncExternalStore } from 'react';\n\nimport breakpoints from '../../theme/breakpoints';\nimport useUiHeaderBottom from '../BitkitUIHeader/useUiHeaderBottom';\nimport { getPageHeaderCollapsedHeightPx, stickyPageHeaderMarker } from './pageHeaderBottom';\n\nconst read = () => document.documentElement.hasAttribute(stickyPageHeaderMarker);\nconst readOnServer = () => false;\n\n// One observer for every caller, connected while anyone listens.\nconst listeners = new Set<() => void>();\nlet observer: MutationObserver | undefined;\n\nconst subscribe = (listener: () => void) => {\n listeners.add(listener);\n if (!observer) {\n observer = new MutationObserver(() => listeners.forEach((notify) => notify()));\n observer.observe(document.documentElement, { attributeFilter: [stickyPageHeaderMarker] });\n }\n return () => {\n listeners.delete(listener);\n if (listeners.size === 0) {\n observer?.disconnect();\n observer = undefined;\n }\n };\n};\n\n/**\n * `pageHeaderBottom` as a number of px, for JS that needs one, such as an `IntersectionObserver`\n * margin or a scroll offset. It follows the same rules as the CSS value: under a `sticky` page\n * header from `tablet`, otherwise under the pinned `BitkitUIHeader`. CSS takes `pageHeaderBottom`.\n */\nconst usePageHeaderBottom = () => {\n const uiHeaderBottomPx = useUiHeaderBottom();\n const hasStickyHeader = useSyncExternalStore(subscribe, read, readOnServer);\n const [isFromTablet] = useMediaQuery([`(min-width: ${breakpoints.tablet})`]);\n\n return hasStickyHeader && isFromTablet ? uiHeaderBottomPx + getPageHeaderCollapsedHeightPx() : uiHeaderBottomPx;\n};\n\nexport default usePageHeaderBottom;\n"],"mappings":";;;;;;AAOA,IAAM,aAAa,SAAS,gBAAgB,aAAa,sBAAsB;AAC/E,IAAM,qBAAqB;AAG3B,IAAM,4BAAY,IAAI,IAAgB;AACtC,IAAI;AAEJ,IAAM,aAAa,aAAyB;CAC1C,UAAU,IAAI,QAAQ;CACtB,IAAI,CAAC,UAAU;EACb,WAAW,IAAI,uBAAuB,UAAU,SAAS,WAAW,OAAO,CAAC,CAAC;EAC7E,SAAS,QAAQ,SAAS,iBAAiB,EAAE,iBAAiB,CAAC,sBAAsB,EAAE,CAAC;CAC1F;CACA,aAAa;EACX,UAAU,OAAO,QAAQ;EACzB,IAAI,UAAU,SAAS,GAAG;GACxB,UAAU,WAAW;GACrB,WAAW,KAAA;EACb;CACF;AACF;;;;;;AAOA,IAAM,4BAA4B;CAChC,MAAM,mBAAmB,kBAAkB;CAC3C,MAAM,kBAAkB,qBAAqB,WAAW,MAAM,YAAY;CAC1E,MAAM,CAAC,gBAAgB,cAAc,CAAC,eAAe,YAAY,OAAO,EAAE,CAAC;CAE3E,OAAO,mBAAmB,eAAe,mBAAmB,+BAA+B,IAAI;AACjG"}
|
|
@@ -59,7 +59,7 @@ export { default as BitkitNumberInput, type BitkitNumberInputProps } from './Bit
|
|
|
59
59
|
export { default as BitkitOverflowContent, type BitkitOverflowContentProps, } from './BitkitOverflowContent/BitkitOverflowContent';
|
|
60
60
|
export { default as BitkitOverflowTooltip, type BitkitOverflowTooltipProps, } from './BitkitOverflowTooltip/BitkitOverflowTooltip';
|
|
61
61
|
export { default as BitkitPageFooter, type BitkitPageFooterItemProps, type BitkitPageFooterProps, } from './BitkitPageFooter/BitkitPageFooter';
|
|
62
|
-
export { default as BitkitPageHeader, type BitkitPageHeaderProps, pageHeaderBottom, } from './BitkitPageHeader/BitkitPageHeader';
|
|
62
|
+
export { default as BitkitPageHeader, type BitkitPageHeaderProps, pageHeaderBottom, usePageHeaderBottom, } from './BitkitPageHeader/BitkitPageHeader';
|
|
63
63
|
export { default as BitkitPageSidebar, type BitkitPageSidebarBodyProps, type BitkitPageSidebarDividerProps, type BitkitPageSidebarDrawerHeaderProps, type BitkitPageSidebarFooterProps, type BitkitPageSidebarGroupHeadingProps, type BitkitPageSidebarItemProps, type BitkitPageSidebarProgressItemProps, type BitkitPageSidebarProjectProps, type BitkitPageSidebarProps, type BitkitPageSidebarSectionProps, type BitkitPageSidebarTitleProps, } from './BitkitPageSidebar/BitkitPageSidebar';
|
|
64
64
|
export { default as BitkitPageSubheader, type BitkitPageSubheaderProps, } from './BitkitPageSubheader/BitkitPageSubheader';
|
|
65
65
|
export { default as BitkitPagination, type BitkitPaginationLabels, type BitkitPaginationProps, } from './BitkitPagination/BitkitPagination';
|
package/dist/main.js
CHANGED
|
@@ -369,6 +369,7 @@ import BitkitPageFooter_default from "./components/BitkitPageFooter/BitkitPageFo
|
|
|
369
369
|
import { uiHeaderBottom } from "./components/BitkitUIHeader/usePublishedBottom.js";
|
|
370
370
|
import useUiHeaderBottom from "./components/BitkitUIHeader/useUiHeaderBottom.js";
|
|
371
371
|
import { pageHeaderBottom } from "./components/BitkitPageHeader/pageHeaderBottom.js";
|
|
372
|
+
import usePageHeaderBottom from "./components/BitkitPageHeader/usePageHeaderBottom.js";
|
|
372
373
|
import BitkitPageHeader from "./components/BitkitPageHeader/BitkitPageHeader.js";
|
|
373
374
|
import BitkitPageSidebar_default from "./components/BitkitPageSidebar/BitkitPageSidebar.js";
|
|
374
375
|
import BitkitPageSubheader from "./components/BitkitPageSubheader/BitkitPageSubheader.js";
|
|
@@ -408,4 +409,4 @@ import { uiSideNavRailWidth } from "./theme/slot-recipes/UISideNav.recipe.js";
|
|
|
408
409
|
import BitkitUISideNav_default from "./components/BitkitUISideNav/BitkitUISideNav.js";
|
|
409
410
|
import Provider from "./providers/BitkitProvider.js";
|
|
410
411
|
import bitkitTheme from "./theme/index.js";
|
|
411
|
-
export { BitbotLogoWithText, BitkitAccordion_default as BitkitAccordion, BitkitActionBar, BitkitActionMenu_default as BitkitActionMenu, BitkitAlert, BitkitAvatar, BitkitBadge, BitkitBreadcrumb, BitkitButton, BitkitCalendar, BitkitCheckbox, BitkitCheckboxGroup, BitkitCloseButton, BitkitCodeSnippet, BitkitCollapsible, BitkitColorButton, BitkitCombobox_default as BitkitCombobox, BitkitContentWrapper_default as BitkitContentWrapper, BitkitControlButton, BitkitDataWidget, BitkitDatePicker, BitkitDefinitionTooltip, BitkitDialog_default as BitkitDialog, BitkitDraggableCard, BitkitDrawer, BitkitEmptyState, BitkitExpandableCard, BitkitField, BitkitFileInput, BitkitFilter_default as BitkitFilter, BitkitFormDialog_default as BitkitFormDialog, BitkitGroupHeading, BitkitHeading, BitkitIconButton, BitkitInlineLoading, BitkitLabel, BitkitLabelTooltip, BitkitLabeledData, BitkitLightbox, BitkitLink, BitkitLinkButton, BitkitLinkCard, BitkitList_default as BitkitList, BitkitMarkdown, BitkitMarkdownCard, BitkitMultiselect_default as BitkitMultiselect, BitkitMultiselectMenu, BitkitNativeSelect, BitkitNoteCard, BitkitNumberInput, BitkitOverflowContent, BitkitOverflowTooltip, BitkitPageFooter_default as BitkitPageFooter, BitkitPageHeader, BitkitPageSidebar_default as BitkitPageSidebar, BitkitPageSubheader, BitkitPagination, BitkitPaginationLoadMore, BitkitPinInput, BitkitPopover, BitkitProductThumbnail, BitkitProgressBar, BitkitPromoBanner, Provider as BitkitProvider, BitkitRadio, BitkitRadioGroup, BitkitRibbon, BitkitSearchInput, BitkitSectionHeading, BitkitSegmentedControl_default as BitkitSegmentedControl, BitkitSelect_default as BitkitSelect, BitkitSelectMenu, BitkitSelectMenuAction, BitkitSelectableTag_default as BitkitSelectableTag, BitkitSettingsCard_default as BitkitSettingsCard, BitkitSkeletonGroup, BitkitSpinner, BitkitSplitButton_default as BitkitSplitButton, BitkitStat, BitkitSteps_default as BitkitSteps, BitkitStepsCard_default as BitkitStepsCard, BitkitStepsDialog_default as BitkitStepsDialog, BitkitSwitch, BitkitTable, BitkitTableCard, BitkitTabs, BitkitTag, BitkitTagsInput, BitkitTextArea, BitkitTextInput, BitkitToggleButton, BitkitToggletip, BitkitTooltip, BitkitTour, BitkitTreeView, BitkitUIHeader_default as BitkitUIHeader, BitkitUISideNav_default as BitkitUISideNav, IconAbortCircle, IconAbortCircleFilled, IconAddons, IconAgent, IconAnchor, IconAndroid, IconApp, IconAppSettings, IconAppStore, IconAppStoreColor, IconApple, IconArchive, IconArchiveDelete, IconArchiveRestore, IconArrowBackAndDown, IconArrowBackAndUp, IconArrowDown, IconArrowForwardAndDown, IconArrowForwardAndUp, IconArrowLeft, IconArrowNortheast, IconArrowNorthwest, IconArrowRight, IconArrowUp, IconArrowsHorizontal, IconArrowsVertical, IconAutomation, IconAws, IconAwsColor, IconBadge3RdParty, IconBadgeBitrise, IconBadgeUpgrade, IconBadgeVersionOk, IconBazel, IconBell, IconBitbot, IconBitbotError, IconBitbotIntercomWhite, IconBitbucket, IconBitbucketColor, IconBitbucketNeutral, IconBitbucketWhite, IconBlockCircle, IconBook, IconBoxArrowDown, IconBoxDot, IconBoxLinesOverflow, IconBoxLinesWrap, IconBranch, IconBrowserstackColor, IconBug, IconBuild, IconBuildCache, IconBuildCacheFilled, IconBuildEnvSetup, IconBuildHub, IconBuildHubFilled, IconCalendar, IconChangePlan, IconChat, IconCheck, IconCheckCircle, IconCheckCircleFilled, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCi, IconCiFilled, IconCircle, IconCircleDashed, IconCircleHalfFilled, IconClaude, IconClaudeColor, IconClock, IconCode, IconCodePush, IconCodeSigning, IconCoffee, IconCommit, IconConfigure, IconConnectedAccounts, IconContainer, IconCopilot, IconCopy, IconCordova, IconCpu, IconCreditcard, IconCredits, IconCross, IconCrossCircle, IconCrossCircleFilled, IconCrown, IconCursor, IconCycle, IconDashboard, IconDashboardFilled, IconDeployment, IconDetails, IconDoc, IconDollar, IconDot, IconDotnet, IconDotnetColor, IconDotnetText, IconDotnetTextColor, IconDoubleCircle, IconDownload, IconDragHandle, IconEc2Ami, IconEnterprise, IconErrorCircle, IconErrorCircleFilled, IconExpand, IconExtraBuildCapacity, IconEye, IconEyeSlash, IconFastlane, IconFile, IconFileDoc, IconFilePdf, IconFilePlist, IconFileYml, IconFileZip, IconFilter, IconFlag, IconFlutter, IconFolder, IconFullscreen, IconFullscreenExit, IconGauge, IconGit, IconGithub, IconGitlab, IconGitlabColor, IconGitlabWhite, IconGlobe, IconGo, IconGoogleColor, IconGooglePlay, IconGooglePlayColor, IconGradle, IconGraph, IconGroup, IconHashtag, IconHeadset, IconHeart, IconHistory, IconHourglass, IconImage, IconInfoCircle, IconInfoCircleFilled, IconInsights, IconInsightsFilled, IconInstall, IconInteraction, IconInvoice, IconIonic, IconJapanese, IconJava, IconJavaColor, IconJavaDuke, IconJavaDukeColor, IconKey, IconKiroColor, IconKotlin, IconKotlinColor, IconKotlinWhite, IconLaptop, IconLaunchdarkly, IconLegacyApp, IconLightbulb, IconLink, IconLinux, IconLock, IconLockOpen, IconLogin, IconLogout, IconMacos, IconMagicWand, IconMagnifier, IconMail, IconMcp, IconMedal, IconMemory, IconMenuGrid, IconMenuHamburger, IconMessage, IconMessageAlert, IconMessageQuestion, IconMicrophone, IconMinus, IconMinusCircle, IconMinusCircleFilled, IconMobile, IconMobileLandscape, IconModeDark, IconModeLight, IconModeSystem, IconMonitorChart, IconMoreHorizontal, IconMoreVertical, IconNews, IconNextjs, IconNodejs, IconOpenInNew, IconOther, IconOutsideContributor, IconOverview, IconPause, IconPencil, IconPeople, IconPercent, IconPerson, IconPersonWithDesk, IconPin, IconPlay, IconPlus, IconPlusCircle, IconPlusCircleFilled, IconPower, IconProject, IconProjectSettings, IconPull, IconPush, IconPuzzle, IconPython, IconPythonColor, IconQuestionCircle, IconQuestionCircleFilled, IconReact, IconRefresh, IconRegex, IconRelease, IconReleaseFilled, IconRemoteAccess, IconRename, IconReplace, IconResponsiveness, IconReviewerApproved, IconReviewerAssigned, IconReviewerRejected, IconRuby, IconRubyColor, IconSave, IconSecurityShield, IconSettings, IconSettingsFilled, IconShuffle, IconSiren, IconSkip, IconSkipCircle, IconSkipCircleFilled, IconSlack, IconSlackColor, IconSparkle, IconSparkleFilled, IconSpinnerOnDisabled, IconSpinnerPurple, IconSpinnerPurpleDouble, IconSpinnerWhite, IconStability, IconStack, IconStar, IconStep, IconStop, IconStopwatch, IconTabPlus, IconTag, IconTasks, IconTeams, IconTeamsColor, IconTemplateCode, IconTerminal, IconTerminalFilled, IconTestQuarantine, IconThemeDarkToggle, IconThumbDown, IconThumbUp, IconTimeline, IconTools, IconTrash, IconTrigger, IconUbuntu, IconUbuntuColor, IconUnity3D, IconUnpin, IconUpload, IconValidateShield, IconVideo, IconVsCode, IconWarning, IconWarningYellow, IconWebUi, IconWebhooks, IconWindsurf, IconWorkflow, IconWorkflowFlow, IconXTwitter, IconXamarin, IconXcode, ResponsiveProvider, bitkitIcon, bitkitTheme as bitriseTheme, createBitkitToast, createTreeCollection, dismissBitkitToast, pageHeaderBottom, rem, uiHeaderBottom, uiHeaderHeight, uiHeaderHeightPx, uiSideNavRailWidth, useBitkitTour, useResponsive, useStepsDialog, useUISideNav, useUiHeaderBottom };
|
|
412
|
+
export { BitbotLogoWithText, BitkitAccordion_default as BitkitAccordion, BitkitActionBar, BitkitActionMenu_default as BitkitActionMenu, BitkitAlert, BitkitAvatar, BitkitBadge, BitkitBreadcrumb, BitkitButton, BitkitCalendar, BitkitCheckbox, BitkitCheckboxGroup, BitkitCloseButton, BitkitCodeSnippet, BitkitCollapsible, BitkitColorButton, BitkitCombobox_default as BitkitCombobox, BitkitContentWrapper_default as BitkitContentWrapper, BitkitControlButton, BitkitDataWidget, BitkitDatePicker, BitkitDefinitionTooltip, BitkitDialog_default as BitkitDialog, BitkitDraggableCard, BitkitDrawer, BitkitEmptyState, BitkitExpandableCard, BitkitField, BitkitFileInput, BitkitFilter_default as BitkitFilter, BitkitFormDialog_default as BitkitFormDialog, BitkitGroupHeading, BitkitHeading, BitkitIconButton, BitkitInlineLoading, BitkitLabel, BitkitLabelTooltip, BitkitLabeledData, BitkitLightbox, BitkitLink, BitkitLinkButton, BitkitLinkCard, BitkitList_default as BitkitList, BitkitMarkdown, BitkitMarkdownCard, BitkitMultiselect_default as BitkitMultiselect, BitkitMultiselectMenu, BitkitNativeSelect, BitkitNoteCard, BitkitNumberInput, BitkitOverflowContent, BitkitOverflowTooltip, BitkitPageFooter_default as BitkitPageFooter, BitkitPageHeader, BitkitPageSidebar_default as BitkitPageSidebar, BitkitPageSubheader, BitkitPagination, BitkitPaginationLoadMore, BitkitPinInput, BitkitPopover, BitkitProductThumbnail, BitkitProgressBar, BitkitPromoBanner, Provider as BitkitProvider, BitkitRadio, BitkitRadioGroup, BitkitRibbon, BitkitSearchInput, BitkitSectionHeading, BitkitSegmentedControl_default as BitkitSegmentedControl, BitkitSelect_default as BitkitSelect, BitkitSelectMenu, BitkitSelectMenuAction, BitkitSelectableTag_default as BitkitSelectableTag, BitkitSettingsCard_default as BitkitSettingsCard, BitkitSkeletonGroup, BitkitSpinner, BitkitSplitButton_default as BitkitSplitButton, BitkitStat, BitkitSteps_default as BitkitSteps, BitkitStepsCard_default as BitkitStepsCard, BitkitStepsDialog_default as BitkitStepsDialog, BitkitSwitch, BitkitTable, BitkitTableCard, BitkitTabs, BitkitTag, BitkitTagsInput, BitkitTextArea, BitkitTextInput, BitkitToggleButton, BitkitToggletip, BitkitTooltip, BitkitTour, BitkitTreeView, BitkitUIHeader_default as BitkitUIHeader, BitkitUISideNav_default as BitkitUISideNav, IconAbortCircle, IconAbortCircleFilled, IconAddons, IconAgent, IconAnchor, IconAndroid, IconApp, IconAppSettings, IconAppStore, IconAppStoreColor, IconApple, IconArchive, IconArchiveDelete, IconArchiveRestore, IconArrowBackAndDown, IconArrowBackAndUp, IconArrowDown, IconArrowForwardAndDown, IconArrowForwardAndUp, IconArrowLeft, IconArrowNortheast, IconArrowNorthwest, IconArrowRight, IconArrowUp, IconArrowsHorizontal, IconArrowsVertical, IconAutomation, IconAws, IconAwsColor, IconBadge3RdParty, IconBadgeBitrise, IconBadgeUpgrade, IconBadgeVersionOk, IconBazel, IconBell, IconBitbot, IconBitbotError, IconBitbotIntercomWhite, IconBitbucket, IconBitbucketColor, IconBitbucketNeutral, IconBitbucketWhite, IconBlockCircle, IconBook, IconBoxArrowDown, IconBoxDot, IconBoxLinesOverflow, IconBoxLinesWrap, IconBranch, IconBrowserstackColor, IconBug, IconBuild, IconBuildCache, IconBuildCacheFilled, IconBuildEnvSetup, IconBuildHub, IconBuildHubFilled, IconCalendar, IconChangePlan, IconChat, IconCheck, IconCheckCircle, IconCheckCircleFilled, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCi, IconCiFilled, IconCircle, IconCircleDashed, IconCircleHalfFilled, IconClaude, IconClaudeColor, IconClock, IconCode, IconCodePush, IconCodeSigning, IconCoffee, IconCommit, IconConfigure, IconConnectedAccounts, IconContainer, IconCopilot, IconCopy, IconCordova, IconCpu, IconCreditcard, IconCredits, IconCross, IconCrossCircle, IconCrossCircleFilled, IconCrown, IconCursor, IconCycle, IconDashboard, IconDashboardFilled, IconDeployment, IconDetails, IconDoc, IconDollar, IconDot, IconDotnet, IconDotnetColor, IconDotnetText, IconDotnetTextColor, IconDoubleCircle, IconDownload, IconDragHandle, IconEc2Ami, IconEnterprise, IconErrorCircle, IconErrorCircleFilled, IconExpand, IconExtraBuildCapacity, IconEye, IconEyeSlash, IconFastlane, IconFile, IconFileDoc, IconFilePdf, IconFilePlist, IconFileYml, IconFileZip, IconFilter, IconFlag, IconFlutter, IconFolder, IconFullscreen, IconFullscreenExit, IconGauge, IconGit, IconGithub, IconGitlab, IconGitlabColor, IconGitlabWhite, IconGlobe, IconGo, IconGoogleColor, IconGooglePlay, IconGooglePlayColor, IconGradle, IconGraph, IconGroup, IconHashtag, IconHeadset, IconHeart, IconHistory, IconHourglass, IconImage, IconInfoCircle, IconInfoCircleFilled, IconInsights, IconInsightsFilled, IconInstall, IconInteraction, IconInvoice, IconIonic, IconJapanese, IconJava, IconJavaColor, IconJavaDuke, IconJavaDukeColor, IconKey, IconKiroColor, IconKotlin, IconKotlinColor, IconKotlinWhite, IconLaptop, IconLaunchdarkly, IconLegacyApp, IconLightbulb, IconLink, IconLinux, IconLock, IconLockOpen, IconLogin, IconLogout, IconMacos, IconMagicWand, IconMagnifier, IconMail, IconMcp, IconMedal, IconMemory, IconMenuGrid, IconMenuHamburger, IconMessage, IconMessageAlert, IconMessageQuestion, IconMicrophone, IconMinus, IconMinusCircle, IconMinusCircleFilled, IconMobile, IconMobileLandscape, IconModeDark, IconModeLight, IconModeSystem, IconMonitorChart, IconMoreHorizontal, IconMoreVertical, IconNews, IconNextjs, IconNodejs, IconOpenInNew, IconOther, IconOutsideContributor, IconOverview, IconPause, IconPencil, IconPeople, IconPercent, IconPerson, IconPersonWithDesk, IconPin, IconPlay, IconPlus, IconPlusCircle, IconPlusCircleFilled, IconPower, IconProject, IconProjectSettings, IconPull, IconPush, IconPuzzle, IconPython, IconPythonColor, IconQuestionCircle, IconQuestionCircleFilled, IconReact, IconRefresh, IconRegex, IconRelease, IconReleaseFilled, IconRemoteAccess, IconRename, IconReplace, IconResponsiveness, IconReviewerApproved, IconReviewerAssigned, IconReviewerRejected, IconRuby, IconRubyColor, IconSave, IconSecurityShield, IconSettings, IconSettingsFilled, IconShuffle, IconSiren, IconSkip, IconSkipCircle, IconSkipCircleFilled, IconSlack, IconSlackColor, IconSparkle, IconSparkleFilled, IconSpinnerOnDisabled, IconSpinnerPurple, IconSpinnerPurpleDouble, IconSpinnerWhite, IconStability, IconStack, IconStar, IconStep, IconStop, IconStopwatch, IconTabPlus, IconTag, IconTasks, IconTeams, IconTeamsColor, IconTemplateCode, IconTerminal, IconTerminalFilled, IconTestQuarantine, IconThemeDarkToggle, IconThumbDown, IconThumbUp, IconTimeline, IconTools, IconTrash, IconTrigger, IconUbuntu, IconUbuntuColor, IconUnity3D, IconUnpin, IconUpload, IconValidateShield, IconVideo, IconVsCode, IconWarning, IconWarningYellow, IconWebUi, IconWebhooks, IconWindsurf, IconWorkflow, IconWorkflowFlow, IconXTwitter, IconXamarin, IconXcode, ResponsiveProvider, bitkitIcon, bitkitTheme as bitriseTheme, createBitkitToast, createTreeCollection, dismissBitkitToast, pageHeaderBottom, rem, uiHeaderBottom, uiHeaderHeight, uiHeaderHeightPx, uiSideNavRailWidth, useBitkitTour, usePageHeaderBottom, useResponsive, useStepsDialog, useUISideNav, useUiHeaderBottom };
|