@primer/react 0.0.0-20260827022203 → 0.0.0-20260911162708
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/CHANGELOG.md +39 -5
- package/dist/ActionBar/ActionBar.js +2 -2
- package/dist/ActionList/Description.js +3 -3
- package/dist/ActionList/Divider.js +2 -2
- package/dist/ActionList/Group.js +5 -5
- package/dist/ActionList/GroupHeadingTrailingAction.js +2 -2
- package/dist/ActionList/Heading.js +4 -4
- package/dist/ActionList/Item.js +4 -4
- package/dist/ActionList/List.js +3 -3
- package/dist/ActionList/Selection.js +2 -2
- package/dist/ActionList/TrailingAction.js +3 -3
- package/dist/ActionList/Visuals.js +3 -3
- package/dist/ActionMenu/ActionMenu.js +2 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.js +3 -3
- package/dist/Autocomplete/Autocomplete.js +2 -2
- package/dist/Autocomplete/AutocompleteInput.js +7 -2
- package/dist/Autocomplete/AutocompleteMenu.js +82 -76
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -3
- package/dist/Avatar/Avatar.js +3 -3
- package/dist/AvatarStack/AvatarStack.js +3 -3
- package/dist/Banner/Banner.js +3 -3
- package/dist/BaseStyles.js +2 -2
- package/dist/Blankslate/Blankslate.js +3 -3
- package/dist/BranchName/BranchName.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +3 -3
- package/dist/Button/Button.js +2 -2
- package/dist/Button/ButtonBase.js +4 -4
- package/dist/Button/IconButton.js +3 -3
- package/dist/Button/LinkButton.js +2 -2
- package/dist/ButtonGroup/ButtonGroup.js +3 -3
- package/dist/Card/Card.js +3 -3
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
- package/dist/CircleBadge/CircleBadge.js +2 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +2 -2
- package/dist/CounterLabel/CounterLabel.js +3 -3
- package/dist/DataTable/DataTable.js +1 -1
- package/dist/DataTable/ErrorDialog.js +1 -1
- package/dist/DataTable/Pagination.js +5 -5
- package/dist/DataTable/Table-50e68700.css +2 -0
- package/dist/DataTable/Table-50e68700.css.map +1 -0
- package/dist/DataTable/Table.d.ts +1 -0
- package/dist/DataTable/Table.js +74 -44
- package/dist/DataTable/Table.module.css.js +7 -2
- package/dist/DataTable/TableGroup.d.ts +41 -0
- package/dist/DataTable/TableGroup.js +155 -0
- package/dist/DataTable/TableGroupContext.js +5 -0
- package/dist/DataTable/index.d.ts +3 -1
- package/dist/DataTable/index.js +2 -0
- package/dist/DataTable/useTable.js +1 -1
- package/dist/Details/Details.js +3 -3
- package/dist/Dialog/Dialog.js +3 -3
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +2 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -1
- package/dist/Flash/Flash.js +3 -3
- package/dist/FormControl/FormControl.js +4 -4
- package/dist/FormControl/FormControlCaption.js +2 -2
- package/dist/FormControl/FormControlLabel.js +1 -1
- package/dist/FormControl/FormControlLeadingVisual.js +1 -1
- package/dist/FormControl/_FormControlContext.js +1 -1
- package/dist/FormControl/_FormControlValidation.js +1 -1
- package/dist/Header/Header.js +3 -3
- package/dist/Heading/Heading.js +3 -3
- package/dist/Hidden/Hidden.js +2 -2
- package/dist/InlineMessage/InlineMessage.js +2 -2
- package/dist/KeybindingHint/KeybindingHint.js +3 -3
- package/dist/KeybindingHint/components/Chord.js +4 -4
- package/dist/KeybindingHint/components/Key.js +1 -1
- package/dist/KeybindingHint/components/Sequence.js +3 -3
- package/dist/Label/Label.js +3 -3
- package/dist/LabelGroup/LabelGroup.js +2 -2
- package/dist/Link/Link.js +3 -3
- package/dist/NavList/NavList.js +6 -6
- package/dist/Octicon/Octicon.js +2 -2
- package/dist/Overlay/Overlay.js +2 -2
- package/dist/PageHeader/PageHeader.js +4 -4
- package/dist/PageLayout/DragHandle.js +2 -2
- package/dist/PageLayout/PageLayout.js +3 -3
- package/dist/PageLayout/usePaneWidth.js +1 -1
- package/dist/Pagehead/Pagehead.js +2 -2
- package/dist/Pagination/Pagination.js +4 -4
- package/dist/Popover/Popover.js +3 -3
- package/dist/Portal/Portal.js +1 -1
- package/dist/ProgressBar/ProgressBar.js +3 -3
- package/dist/Radio/Radio.js +3 -3
- package/dist/RadioGroup/RadioGroup.js +1 -1
- package/dist/RelativeTime/RelativeTime.js +1 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +3 -3
- package/dist/SegmentedControl/SegmentedControl-e68d4197.css +2 -0
- package/dist/SegmentedControl/SegmentedControl-e68d4197.css.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts +5 -1
- package/dist/SegmentedControl/SegmentedControl.js +204 -167
- package/dist/SegmentedControl/SegmentedControl.module.css.js +8 -4
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +12 -0
- package/dist/SegmentedControl/SegmentedControlAction.js +111 -0
- package/dist/SegmentedControl/SegmentedControlActionContext.js +5 -0
- package/dist/SegmentedControl/SegmentedControlButton.js +2 -2
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +9 -0
- package/dist/SegmentedControl/SegmentedControlDivider.js +24 -0
- package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -2
- package/dist/SegmentedControl/index.d.ts +3 -1
- package/dist/Select/Select.js +3 -3
- package/dist/SelectPanel/SelectPanel.js +3 -3
- package/dist/SelectPanel/SelectPanelMessage.js +2 -2
- package/dist/SideNav.js +2 -2
- package/dist/Skeleton/SkeletonBox.js +3 -3
- package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -2
- package/dist/SkeletonText/SkeletonText.js +2 -2
- package/dist/Spinner/Spinner.js +3 -3
- package/dist/SplitPageLayout/SplitPageLayout.js +1 -1
- package/dist/Stack/Stack.js +3 -3
- package/dist/StateLabel/StateLabel.js +3 -3
- package/dist/SubNav/SubNav.js +3 -3
- package/dist/TabNav/TabNav.js +3 -3
- package/dist/Text/Text.js +2 -2
- package/dist/TextInput/TextInput.js +5 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.js +3 -3
- package/dist/Textarea/Textarea.js +4 -4
- package/dist/ThemeProvider.js +2 -2
- package/dist/Timeline/Timeline.js +3 -3
- package/dist/ToggleSwitch/ToggleSwitch.js +4 -4
- package/dist/Token/IssueLabelToken.js +3 -3
- package/dist/Token/Token.js +3 -3
- package/dist/Token/TokenBase.js +3 -3
- package/dist/Token/_RemoveTokenButton.js +1 -1
- package/dist/Token/_TokenTextContainer.js +2 -2
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/TooltipV2/Tooltip.js +16 -9
- package/dist/TopicTag/TopicTag.js +2 -2
- package/dist/TopicTag/TopicTagGroup.js +2 -2
- package/dist/TreeView/TreeView.js +9 -9
- package/dist/TreeView/useRovingTabIndex.js +1 -1
- package/dist/TreeView/useTreeItemCache.js +1 -1
- package/dist/TreeView/useTypeahead.js +1 -1
- package/dist/Truncate/Truncate.js +2 -2
- package/dist/UnderlineNav/UnderlineNav.js +3 -3
- package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +2 -2
- package/dist/_VisuallyHidden.js +2 -2
- package/dist/deprecated/ActionList/Divider.js +1 -1
- package/dist/deprecated/ActionList/Group.js +1 -1
- package/dist/deprecated/ActionList/Header.js +2 -2
- package/dist/deprecated/ActionList/Item.js +4 -4
- package/dist/deprecated/ActionList/List.js +3 -3
- package/dist/deprecated/ActionMenu.js +2 -2
- package/dist/deprecated/DialogV1/Dialog.js +4 -4
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +2 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +3 -3
- package/dist/experimental/IssueLabel/IssueLabel.js +2 -2
- package/dist/experimental/SelectPanel2/SelectPanel.js +6 -6
- package/dist/experimental/Tabs/Tabs.js +23 -26
- package/dist/experimental/Tabs/useTab.js +1 -1
- package/dist/experimental/Tabs/useTabList.js +17 -21
- package/dist/experimental/Tabs/useTabPanel.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +14 -19
- package/dist/experimental/index.d.ts +5 -4
- package/dist/experimental/index.js +1 -1
- package/dist/hooks/useDetails.js +1 -1
- package/dist/hooks/useDialog.js +1 -1
- package/dist/hooks/useMedia.js +1 -1
- package/dist/hooks/useMenuInitialFocus.js +1 -1
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -1
- package/dist/hooks/useMergedRefs.js +1 -1
- package/dist/hooks/useMnemonics.js +1 -1
- package/dist/hooks/useOpenAndCloseFocus.js +1 -1
- package/dist/hooks/useOverflow.js +5 -5
- package/dist/hooks/useOverlay.js +1 -1
- package/dist/hooks/useProvidedStateOrCreate.js +1 -1
- package/dist/hooks/useRefObjectAsForwardedRef.js +1 -1
- package/dist/hooks/useRenderForcingRef.js +1 -1
- package/dist/hooks/useScrollFlash.js +1 -1
- package/dist/hooks/useSyncedState.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/internal/components/ButtonReset.js +2 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +4 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +3 -3
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +3 -3
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -2
- package/dist/internal/components/ConditionalWrapper.js +1 -1
- package/dist/internal/components/InputLabel.js +2 -2
- package/dist/internal/components/InputValidation.js +2 -2
- package/dist/internal/components/OverflowObserverProvider.js +2 -2
- package/dist/internal/components/TextInputInnerAction.js +4 -4
- package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
- package/dist/internal/components/TextInputWrapper.js +3 -3
- package/dist/internal/components/ThemeProviderBase.js +1 -1
- package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css +2 -0
- package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css.map +1 -0
- package/dist/internal/components/UnderlineTabbedInterface.js +3 -3
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
- package/dist/internal/components/UnstyledTextInput.js +3 -3
- package/dist/internal/components/ValidationAnimationContainer.js +2 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -1
- package/dist/internal/hooks/useEffectOnce.js +1 -1
- package/dist/internal/hooks/useOverflowObserver.js +1 -1
- package/dist/internal/hooks/useThemeProvider.js +1 -1
- package/dist/live-region/Announce.js +2 -2
- package/dist/live-region/AriaAlert.d.ts +1 -1
- package/dist/live-region/AriaAlert.js +1 -1
- package/dist/live-region/AriaStatus.js +1 -1
- package/dist/next/ThemeProvider.js +1 -1
- package/dist/utils/descendant-registry.js +2 -2
- package/dist/utils/react-compiler-runtime.js +32 -0
- package/generated/components.json +175 -8
- package/package.json +8 -8
- package/dist/DataTable/Table-7f5cb3e4.css +0 -2
- package/dist/DataTable/Table-7f5cb3e4.css.map +0 -1
- package/dist/SegmentedControl/SegmentedControl-4ef72733.css +0 -2
- package/dist/SegmentedControl/SegmentedControl-4ef72733.css.map +0 -1
- package/dist/internal/components/UnderlineTabbedInterface-798ef3cb.css +0 -2
- package/dist/internal/components/UnderlineTabbedInterface-798ef3cb.css.map +0 -1
package/dist/Banner/Banner.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
3
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
3
4
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
@@ -5,10 +6,9 @@ import { IconButton } from "../Button/IconButton.js";
|
|
|
5
6
|
import { ButtonComponent } from "../Button/Button.js";
|
|
6
7
|
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
7
8
|
import Banner_module_css_default from "./Banner.module.css.js";
|
|
8
|
-
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { forwardRef } from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { AlertIcon, CheckCircleIcon, InfoIcon, StopIcon, XIcon } from "@primer/octicons-react";
|
|
13
13
|
//#region src/Banner/Banner.tsx
|
|
14
14
|
const BannerContext = /*#__PURE__*/ React.createContext(void 0);
|
package/dist/BaseStyles.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { c } from "./utils/react-compiler-runtime.js";
|
|
1
2
|
import BaseStyles_module_css_default from "./BaseStyles.module.css.js";
|
|
2
|
-
import {
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { clsx } from "clsx";
|
|
4
5
|
import "focus-visible";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/BaseStyles.tsx
|
|
7
7
|
function BaseStyles(t0) {
|
|
8
8
|
const $ = c(20);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { ButtonComponent } from "../Button/Button.js";
|
|
2
3
|
import Link from "../Link/Link.js";
|
|
3
4
|
import { Provider, useBlankslate } from "./BlankslateContext.js";
|
|
4
5
|
import Blankslate_module_css_default from "./Blankslate.module.css.js";
|
|
5
|
-
import { c } from "react-compiler-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
6
|
import "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
//#region src/Blankslate/Blankslate.tsx
|
|
10
10
|
function Blankslate(t0) {
|
|
11
11
|
const $ = c(25);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
2
3
|
import BranchName_module_css_default from "./BranchName.module.css.js";
|
|
3
|
-
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/BranchName/BranchName.tsx
|
|
7
7
|
function BranchName(props, ref) {
|
|
8
8
|
const $ = c(13);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { useOnOutsideClick } from "../hooks/useOnOutsideClick.js";
|
|
2
3
|
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
3
4
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
@@ -7,10 +8,9 @@ import { IconButton } from "../Button/IconButton.js";
|
|
|
7
8
|
import { ActionList } from "../ActionList/index.js";
|
|
8
9
|
import Breadcrumbs_module_css_default from "./Breadcrumbs.module.css.js";
|
|
9
10
|
import Details from "../Details/Details.js";
|
|
10
|
-
import { c } from "react-compiler-runtime";
|
|
11
|
-
import { clsx } from "clsx";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
11
|
import React, { useRef, useState } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { clsx } from "clsx";
|
|
14
14
|
import { KebabHorizontalIcon } from "@primer/octicons-react";
|
|
15
15
|
//#region src/Breadcrumbs/Breadcrumbs.tsx
|
|
16
16
|
const BreadcrumbsList = (t0) => {
|
package/dist/Button/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { ButtonBase } from "./ButtonBase.js";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { forwardRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/Button/Button.tsx
|
|
6
6
|
const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(7);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
3
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
3
4
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
4
5
|
import Spinner from "../Spinner/Spinner.js";
|
|
5
6
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
6
7
|
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
7
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
8
8
|
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { forwardRef } from "react";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { isElement } from "react-is";
|
|
13
13
|
//#region src/Button/ButtonBase.tsx
|
|
14
14
|
const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /*#__PURE__*/ jsx("span", {
|
|
@@ -53,7 +53,7 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
53
53
|
"aria-labelledby": loading ? [`${uuid}-label`, ariaLabelledBy].filter((labelID) => Boolean(labelID)).join(" ") : ariaLabelledBy,
|
|
54
54
|
id,
|
|
55
55
|
onClick: loading ? void 0 : onClick,
|
|
56
|
-
children: Icon ? loading ? /*#__PURE__*/ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /*#__PURE__*/ jsx(Icon, {}) : /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs("span", {
|
|
56
|
+
children: Icon ? loading ? /*#__PURE__*/ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /*#__PURE__*/ jsx(Icon, {}) : /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("span", {
|
|
57
57
|
"data-component": "buttonContent",
|
|
58
58
|
"data-align": alignContent,
|
|
59
59
|
className: ButtonBase_module_css_default.ButtonContent,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
2
3
|
import { ButtonBase } from "./ButtonBase.js";
|
|
3
4
|
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
4
5
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
5
6
|
import { TooltipContext as TooltipContext$1 } from "../Tooltip/TooltipContext.js";
|
|
6
|
-
import { c } from "react-compiler-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
7
|
import React, { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
10
|
//#region src/Button/IconButton.tsx
|
|
11
11
|
const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
12
12
|
const $ = c(36);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { ButtonBase } from "./ButtonBase.js";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { forwardRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/Button/LinkButton.tsx
|
|
6
6
|
const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(9);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
3
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
3
4
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
4
5
|
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
5
6
|
import ButtonGroup_module_css_default from "./ButtonGroup.module.css.js";
|
|
6
|
-
import { c } from "react-compiler-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
7
|
import React, { useRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
10
|
//#region src/ButtonGroup/ButtonGroup.tsx
|
|
11
11
|
const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forwardRef) {
|
|
12
12
|
const $ = c(20);
|
package/dist/Card/Card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
2
3
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
3
4
|
import Card_module_css_default from "./Card.module.css.js";
|
|
4
|
-
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
import React, { createContext, forwardRef, useContext } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Card/Card.tsx
|
|
9
9
|
const CardContext = /*#__PURE__*/ createContext({});
|
|
10
10
|
function CardComponent(props, ref) {
|
|
@@ -5,9 +5,9 @@ import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
|
5
5
|
import shared_module_css_default from "./shared.module.css.js";
|
|
6
6
|
import { CheckboxGroupContext } from "../CheckboxGroup/CheckboxGroupContext.js";
|
|
7
7
|
import Checkbox_module_css_default from "./Checkbox.module.css.js";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
8
|
import React, { useContext, useEffect, useRef } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { clsx } from "clsx";
|
|
11
11
|
//#region src/Checkbox/Checkbox.tsx
|
|
12
12
|
/**
|
|
13
13
|
* An accessible, native checkbox component
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { useRenderForcingRef } from "../hooks/useRenderForcingRef.js";
|
|
2
3
|
import { isSlot } from "../utils/is-slot.js";
|
|
3
4
|
import CheckboxOrRadioGroupCaption from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js";
|
|
@@ -7,9 +8,8 @@ import CheckboxOrRadioGroup_default from "../internal/components/CheckboxOrRadio
|
|
|
7
8
|
import { CheckboxGroupContext } from "./CheckboxGroupContext.js";
|
|
8
9
|
import Checkbox from "../Checkbox/Checkbox.js";
|
|
9
10
|
import FormControl_default from "../FormControl/FormControl.js";
|
|
10
|
-
import { c } from "react-compiler-runtime";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
import React from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
//#region src/CheckboxGroup/CheckboxGroup.tsx
|
|
14
14
|
const CheckboxGroup = (t0) => {
|
|
15
15
|
const $ = c(24);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import Octicon from "../Octicon/Octicon.js";
|
|
2
3
|
import isNumeric from "../utils/isNumeric.js";
|
|
3
4
|
import CircleBadge_module_css_default from "./CircleBadge.module.css.js";
|
|
4
|
-
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/CircleBadge/CircleBadge.tsx
|
|
8
8
|
const variantSizes = {
|
|
9
9
|
small: 56,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { Dialog } from "../Dialog/Dialog.js";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/ConfirmationDialog/ConfirmationDialog.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Props to customize the ConfirmationDialog.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
2
2
|
import CounterLabel_module_css_default from "./CounterLabel.module.css.js";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
3
|
import { forwardRef } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/CounterLabel/CounterLabel.tsx
|
|
7
7
|
const CounterLabel = /*#__PURE__*/ forwardRef(({ variant, scheme, className, children, ["data-component"]: dataComponent, ...rest }, forwardedRef) => {
|
|
8
8
|
const label = /*#__PURE__*/ jsxs(VisuallyHidden, { children: [
|
|
@@ -17,7 +17,7 @@ const CounterLabel = /*#__PURE__*/ forwardRef(({ variant, scheme, className, chi
|
|
|
17
17
|
["data-variant"]: inferredVariant,
|
|
18
18
|
...rest
|
|
19
19
|
};
|
|
20
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("span", {
|
|
20
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("span", {
|
|
21
21
|
...counterProps,
|
|
22
22
|
"data-component": dataComponent !== null && dataComponent !== void 0 ? dataComponent : "CounterLabel",
|
|
23
23
|
className: clsx(className, CounterLabel_module_css_default.CounterLabel),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { useTable } from "./useTable.js";
|
|
2
3
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, TableSortHeader } from "./Table.js";
|
|
3
|
-
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/DataTable/DataTable.tsx
|
|
6
6
|
function defaultGetRowId(row) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import { ConfirmationDialog } from "../ConfirmationDialog/ConfirmationDialog.js";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/DataTable/ErrorDialog.tsx
|
|
5
5
|
function ErrorDialog(t0) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
3
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
2
4
|
import { warning } from "../utils/warning.js";
|
|
3
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
4
5
|
import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
5
6
|
import { buildPaginationModel } from "../Pagination/model.js";
|
|
6
7
|
import { Button } from "../internal/components/ButtonReset.js";
|
|
7
8
|
import Pagination_module_css_default from "./Pagination.module.css.js";
|
|
8
|
-
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import { useState } from "react";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { ChevronLeftIcon, ChevronRightIcon } from "@primer/octicons-react";
|
|
13
13
|
//#region src/DataTable/Pagination.tsx
|
|
14
14
|
const defaultShowPages = { narrow: false };
|
|
@@ -309,7 +309,7 @@ function Range(t0) {
|
|
|
309
309
|
} else t5 = $[10];
|
|
310
310
|
let t6;
|
|
311
311
|
if ($[11] !== t1 || $[12] !== t5) {
|
|
312
|
-
t6 = /*#__PURE__*/ jsxs(Fragment, { children: [t1, t5] });
|
|
312
|
+
t6 = /*#__PURE__*/ jsxs(Fragment$1, { children: [t1, t5] });
|
|
313
313
|
$[11] = t1;
|
|
314
314
|
$[12] = t5;
|
|
315
315
|
$[13] = t6;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-DataTable-TableContainer-hn0p3{column-gap:var(--base-size-8,.5rem);display:grid;grid-template-areas:"title actions" "divider divider" "subtitle subtitle" "filter filter" "table table" "footer footer";grid-template-columns:1fr 1fr}.prc-DataTable-TableTitle-nM43N{align-self:center;font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-semibold,600);grid-area:title;line-height:20px}.prc-DataTable-TableSubtitle--L6Ho,.prc-DataTable-TableTitle-nM43N{color:var(--fgColor-default,#1f2328);margin:0}.prc-DataTable-TableSubtitle--L6Ho{font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-normal,400);grid-area:subtitle;line-height:var(--text-title-lineHeight-small,1.5)}.prc-DataTable-TableActions-fkc2b{align-items:center;column-gap:var(--base-size-8,.5rem);display:flex;grid-area:actions;justify-self:end}.prc-DataTable-TableDivider-TRc3b{background-color:var(--borderColor-default,#d1d9e0);grid-area:divider;height:1px;margin-block-end:var(--base-size-8,.5rem);margin-block-start:var(--base-size-16,1rem);width:100%}.prc-DataTable-TableActions-fkc2b+.prc-DataTable-TableOverflowWrapper-bSqT-,.prc-DataTable-TableSubtitle--L6Ho+.prc-DataTable-TableOverflowWrapper-bSqT-,.prc-DataTable-TableTitle-nM43N+.prc-DataTable-TableOverflowWrapper-bSqT-{margin-block-start:var(--base-size-8,.5rem)}.prc-DataTable-Table-7ux1n,.prc-DataTable-TableOverflowWrapper-bSqT-{grid-area:table}.prc-DataTable-Table-7ux1n{--table-border-radius:0.375rem;--table-cell-padding:var(--cell-padding-block,0.5rem) var(--cell-padding-inline,0.75rem);--table-font-size:0.75rem;background-color:var(--bgColor-default,#fff);border-collapse:separate;border-spacing:0;display:grid;font-size:var(--table-font-size);grid-template-columns:var(--grid-template-columns);line-height:1.66667;width:100%}.prc-DataTable-Table-7ux1n:where([data-cell-padding=condensed]){--cell-padding-block:0.25rem;--cell-padding-inline:0.5rem}.prc-DataTable-Table-7ux1n:where([data-cell-padding=normal]){--cell-padding-block:0.5rem;--cell-padding-inline:0.75rem}.prc-DataTable-Table-7ux1n:where([data-cell-padding=spacious]){--cell-padding-block:0.75rem;--cell-padding-inline:1rem}.prc-DataTable-TableCell-Fk4ve:first-child,.prc-DataTable-TableHeader-eyTab:first-child{border-inline-start:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0)}.prc-DataTable-TableCell-Fk4ve:last-child,.prc-DataTable-TableHeader-eyTab:last-child{border-inline-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0)}.prc-DataTable-TableCell-Fk4ve,.prc-DataTable-TableHeader-eyTab{align-items:center;border-block-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);display:flex;padding:var(--table-cell-padding);text-align:start}.prc-DataTable-TableCell-Fk4ve:where([data-cell-align=end]),.prc-DataTable-TableHeader-eyTab:where([data-cell-align=end]){display:flex;justify-content:flex-end;text-align:end}.prc-DataTable-TableHeader-eyTab[data-cell-align=end] .prc-DataTable-TableSortButton--aq0y{display:flex;flex-direction:row-reverse}.prc-DataTable-TableHead-4FaBf .prc-DataTable-TableRow-Icc7F:first-of-type .prc-DataTable-TableHeader-eyTab{border-block-start:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0)}.prc-DataTable-TableHead-4FaBf .prc-DataTable-TableRow-Icc7F:first-of-type .prc-DataTable-TableHeader-eyTab:first-child{border-top-left-radius:var(--table-border-radius)}.prc-DataTable-TableHead-4FaBf .prc-DataTable-TableRow-Icc7F:first-of-type .prc-DataTable-TableHeader-eyTab:last-child{border-top-right-radius:var(--table-border-radius)}.prc-DataTable-TableOverflowWrapper-bSqT-:last-child .prc-DataTable-Table-7ux1n .prc-DataTable-TableBody-QKQy2:last-of-type .prc-DataTable-TableRow-Icc7F:last-of-type .prc-DataTable-TableCell-Fk4ve:first-child{border-bottom-left-radius:var(--table-border-radius)}.prc-DataTable-TableOverflowWrapper-bSqT-:last-child .prc-DataTable-Table-7ux1n .prc-DataTable-TableBody-QKQy2:last-of-type .prc-DataTable-TableRow-Icc7F:last-of-type .prc-DataTable-TableCell-Fk4ve:last-child{border-bottom-right-radius:var(--table-border-radius)}.prc-DataTable-TableRow-Icc7F>:first-child .prc-DataTable-TableCellSkeletonItem-bGhwZ,.prc-DataTable-TableRow-Icc7F>:first-child:not(.prc-DataTable-TableCellSkeleton-DMdM5){padding-inline-start:var(--base-size-16,1rem)}.prc-DataTable-TableRow-Icc7F>:last-child .prc-DataTable-TableCellSkeletonItem-bGhwZ,.prc-DataTable-TableRow-Icc7F>:last-child:not(.prc-DataTable-TableCellSkeleton-DMdM5){padding-inline-end:var(--base-size-16,1rem)}.prc-DataTable-TableHeader-eyTab{background-color:var(--bgColor-muted,#f6f8fa);border-block-start:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);color:var(--fgColor-muted,#59636e);font-weight:var(--base-text-weight-semibold,600)}.prc-DataTable-TableHeader-eyTab:where([aria-sort=ascending]),.prc-DataTable-TableHeader-eyTab:where([aria-sort=descending]){color:var(--fgColor-default,#1f2328)}.prc-DataTable-TableSortIcon-wHvJw{visibility:hidden}.prc-DataTable-TableHeader-eyTab .prc-DataTable-TableSortButton--aq0y:focus .prc-DataTable-TableSortIcon--ascending-Lpx6z,.prc-DataTable-TableHeader-eyTab:hover .prc-DataTable-TableSortIcon--ascending-Lpx6z,.prc-DataTable-TableHeader-eyTab[aria-sort=ascending] .prc-DataTable-TableSortIcon--ascending-Lpx6z,.prc-DataTable-TableHeader-eyTab[aria-sort=descending] .prc-DataTable-TableSortIcon--descending-hHJGo{visibility:visible}.prc-DataTable-TableRow-Icc7F:hover .prc-DataTable-TableCell-Fk4ve:not(.prc-DataTable-TableCellSkeleton-DMdM5){background-color:var(--control-transparent-bgColor-hover,#818b981a)}.prc-DataTable-TableCell-Fk4ve:where([scope=row]){align-items:center;color:var(--fgColor-default,#1f2328);display:flex;font-weight:var(--base-text-weight-semibold,600)}.prc-DataTable-TableCellSkeleton-DMdM5{padding:0}.prc-DataTable-TableCellSkeletonItems-Ljhq5{display:flex;flex-direction:column;width:100%}.prc-DataTable-TableCellSkeletonItem-bGhwZ{padding:var(--table-cell-padding)}.prc-DataTable-TableCellSkeletonItem-bGhwZ:nth-of-type(5n+1){--skeleton-item-width:85%}.prc-DataTable-TableCellSkeletonItem-bGhwZ:nth-of-type(5n+2){--skeleton-item-width:67.5%}.prc-DataTable-TableCellSkeletonItem-bGhwZ:nth-of-type(5n+3){--skeleton-item-width:80%}.prc-DataTable-TableCellSkeletonItem-bGhwZ:nth-of-type(5n+4){--skeleton-item-width:60%}.prc-DataTable-TableCellSkeletonItem-bGhwZ:nth-of-type(5n+5){--skeleton-item-width:75%}.prc-DataTable-TableCellSkeletonItem-bGhwZ [data-component=SkeletonText]{width:var(--skeleton-item-width)}.prc-DataTable-TableCellSkeletonItem-bGhwZ:not(:last-of-type){border-block-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0)}.prc-DataTable-TableSortButton--aq0y{column-gap:.5rem}.prc-DataTable-TableBody-QKQy2,.prc-DataTable-TableGroupHeaderBody-K-YqR,.prc-DataTable-TableHead-4FaBf,.prc-DataTable-TableRow-Icc7F{display:contents}@supports (grid-template-columns:subgrid){.prc-DataTable-TableBody-QKQy2,.prc-DataTable-TableGroupHeaderBody-K-YqR,.prc-DataTable-TableHead-4FaBf,.prc-DataTable-TableRow-Icc7F{display:grid;grid-column:-1/1;grid-template-columns:subgrid}}.prc-DataTable-TableGroupHeaderCell-vnb30{background-color:var(--bgColor-muted,#f6f8fa);border-block-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);border-inline-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);border-inline-start:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);color:var(--fgColor-muted,#59636e);grid-column:1/-1;padding:var(--table-cell-padding);text-align:start}.prc-DataTable-TableGroupHeaderCell-vnb30,.prc-DataTable-TableGroupHeaderContent-H9FbA{align-items:baseline;column-gap:var(--base-size-8,.5rem);display:flex}.prc-DataTable-TableGroupHeaderLabel--c-od{color:var(--fgColor-default,#1f2328);font-weight:var(--base-text-weight-semibold,600)}.prc-DataTable-PlaceholderText-8bHo7,.prc-DataTable-TableGroupHeaderCount-6r8Pj{color:var(--fgColor-muted,#59636e)}
|
|
2
|
+
/*# sourceMappingURL=Table-50e68700.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DataTable/Table.module.css.js"],"names":[],"mappings":"AACA,oCAUE,mCAA8B,CAT9B,YAAa,CAEb,uHAMiB,CAPjB,6BASF,CAGA,gCAQE,iBAAkB,CANlB,8CAAuC,CACvC,gDAA6C,CAI7C,eAAgB,CAFhB,gBAIF,CAGA,mEANE,oCAA6B,CAL7B,QAkBF,CAPA,mCAEE,4CAAsC,CACtC,8CAA2C,CAG3C,kBAAmB,CAFnB,kDAGF,CAGA,kCAGE,kBAAmB,CADnB,mCAA8B,CAD9B,YAAa,CAGb,iBAAkB,CAClB,gBACF,CAGA,kCAIE,mDAA4C,CAC5C,iBAAkB,CAHlB,UAAW,CAKX,yCAAoC,CADpC,2CAAuC,CALvC,UAOF,CAGA,mOAGE,2CACF,CAOA,qEAJE,eAsCF,CAlCA,2BAEE,8BAA+B,CAC/B,wFAA2F,CAC3F,yBAA0B,CAW1B,4CAAwC,CADxC,wBAAyB,CAFzB,gBAAiB,CANjB,YAAa,CAGb,gCAAiC,CAQjC,kDAAmD,CANnD,mBAA0B,CAJ1B,UA2BF,CAdE,gEACE,4BAA6B,CAC7B,4BACF,CAEA,6DACE,2BAA4B,CAC5B,6BACF,CAEA,+DACE,4BAA6B,CAC7B,0BACF,CAIF,wFAEE,6FACF,CAEA,sFAEE,2FACF,CAEA,gEAME,kBAAmB,CACnB,0FAA0E,CAL1E,YAAa,CAEb,iCAAkC,CAClC,gBAGF,CAEA,0HAEE,YAAa,CAEb,wBAAyB,CADzB,cAEF,CAEA,2FACE,YAAa,CACb,0BACF,CAEA,4GACE,4FACF,CAIA,wHAEE,iDACF,CAGA,uHAEE,kDACF,CAGA,kNAEE,oDACF,CAGA,iNAEE,qDACF,CAMA,6KAEE,6CACF,CAEA,2KAEE,2CACF,CAGA,iCAGE,6CAAsC,CACtC,4FAA4E,CAF5E,kCAA2B,CAD3B,gDAIF,CAEA,6HAEE,oCACF,CAGA,mCACE,iBACF,CASA,yZAEE,kBACF,CAGA,+GACE,mEACF,CAGA,kDAIE,kBAAmB,CADnB,oCAA6B,CAF7B,YAAa,CACb,gDAGF,CAGA,uCACE,SACF,CAEA,4CACE,YAAa,CAEb,qBAAsB,CADtB,UAEF,CAEA,2CAEE,iCAqBF,CAnBE,6DACE,yBACF,CAEA,6DACE,2BACF,CAEA,6DACE,yBACF,CAEA,6DACE,yBACF,CAEA,6DACE,yBACF,CAGF,yEACE,gCACF,CAEA,8DACE,0FACF,CAEA,qCACE,gBACF,CAGA,sIAIE,gBACF,CAEA,0CACE,sIAIE,YAAa,CAEb,gBAAkB,CADlB,6BAEF,CACF,CAEA,0CASE,6CAAsC,CAGtC,0FAA0E,CAD1E,2FAA2E,CAD3E,6FAA6E,CAF7E,kCAA2B,CAN3B,gBAAmB,CAInB,iCAAkC,CAClC,gBAMF,CAEA,uFAZE,oBAAqB,CACrB,mCAA8B,CAH9B,YAkBF,CAEA,2CAEE,oCAA6B,CAD7B,gDAEF,CAMA,gFACE,kCACF","file":"Table-50e68700.css","sourcesContent":["/* Container ---------------------------------------------------------------- */\n.TableContainer {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-areas:\n 'title actions'\n 'divider divider'\n 'subtitle subtitle'\n 'filter filter'\n 'table table'\n 'footer footer';\n column-gap: var(--base-size-8);\n}\n\n/* TableTitle */\n.TableTitle {\n margin: 0;\n font-size: var(--text-body-size-medium);\n font-weight: var(--base-text-weight-semibold);\n /* stylelint-disable-next-line primer/typography */\n line-height: 20px;\n color: var(--fgColor-default);\n grid-area: title;\n align-self: center;\n}\n\n/* TableSubtitle */\n.TableSubtitle {\n margin: 0;\n font-size: var(--text-body-size-small);\n font-weight: var(--base-text-weight-normal);\n line-height: var(--text-title-lineHeight-small);\n color: var(--fgColor-default);\n grid-area: subtitle;\n}\n\n/* TableActions */\n.TableActions {\n display: flex;\n column-gap: var(--base-size-8);\n align-items: center;\n grid-area: actions;\n justify-self: end;\n}\n\n/* TableDivider */\n.TableDivider {\n width: 100%;\n height: 1px;\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-default);\n grid-area: divider;\n margin-block-start: var(--base-size-16);\n margin-block-end: var(--base-size-8);\n}\n\n/* Spacing before the table */\n.TableTitle + .TableOverflowWrapper,\n.TableSubtitle + .TableOverflowWrapper,\n.TableActions + .TableOverflowWrapper {\n margin-block-start: var(--base-size-8);\n}\n\n.TableOverflowWrapper {\n grid-area: table;\n}\n\n/* Table -------------------------------------------------------------------- */\n.Table {\n /* Default table styles */\n --table-border-radius: 0.375rem;\n --table-cell-padding: var(--cell-padding-block, 0.5rem) var(--cell-padding-inline, 0.75rem);\n --table-font-size: 0.75rem;\n\n display: grid;\n width: 100%;\n /* stylelint-disable-next-line primer/typography */\n font-size: var(--table-font-size);\n /* stylelint-disable-next-line primer/typography */\n line-height: calc(20 / 12);\n border-spacing: 0;\n /* stylelint-disable-next-line primer/borders */\n border-collapse: separate;\n background-color: var(--bgColor-default);\n grid-area: table;\n grid-template-columns: var(--grid-template-columns);\n\n /* Density modes: condensed, normal, spacious */\n &:where([data-cell-padding='condensed']) {\n --cell-padding-block: 0.25rem;\n --cell-padding-inline: 0.5rem;\n }\n\n &:where([data-cell-padding='normal']) {\n --cell-padding-block: 0.5rem;\n --cell-padding-inline: 0.75rem;\n }\n\n &:where([data-cell-padding='spacious']) {\n --cell-padding-block: 0.75rem;\n --cell-padding-inline: 1rem;\n }\n}\n\n/* Borders */\n.TableCell:first-child,\n.TableHeader:first-child {\n border-inline-start: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.TableCell:last-child,\n.TableHeader:last-child {\n border-inline-end: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.TableHeader,\n.TableCell {\n display: flex;\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--table-cell-padding);\n text-align: start;\n align-items: center;\n border-block-end: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.TableHeader:where([data-cell-align='end']),\n.TableCell:where([data-cell-align='end']) {\n display: flex;\n text-align: end;\n justify-content: flex-end;\n}\n\n.TableHeader[data-cell-align='end'] .TableSortButton {\n display: flex;\n flex-direction: row-reverse;\n}\n\n.TableHead .TableRow:first-of-type .TableHeader {\n border-block-start: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n/* Border radius */\n/* stylelint-disable-next-line selector-max-specificity */\n.TableHead .TableRow:first-of-type .TableHeader:first-child {\n /* stylelint-disable-next-line primer/borders */\n border-top-left-radius: var(--table-border-radius);\n}\n\n/* stylelint-disable-next-line selector-max-specificity */\n.TableHead .TableRow:first-of-type .TableHeader:last-child {\n /* stylelint-disable-next-line primer/borders */\n border-top-right-radius: var(--table-border-radius);\n}\n\n/* stylelint-disable-next-line selector-max-compound-selectors,selector-max-specificity */\n.TableOverflowWrapper:last-child .Table .TableBody:last-of-type .TableRow:last-of-type .TableCell:first-child {\n /* stylelint-disable-next-line primer/borders */\n border-bottom-left-radius: var(--table-border-radius);\n}\n\n/* stylelint-disable-next-line selector-max-compound-selectors,selector-max-specificity */\n.TableOverflowWrapper:last-child .Table .TableBody:last-of-type .TableRow:last-of-type .TableCell:last-child {\n /* stylelint-disable-next-line primer/borders */\n border-bottom-right-radius: var(--table-border-radius);\n}\n\n/**\n * Offset padding to make sure type aligns regardless of cell padding\n * selection\n */\n.TableRow > *:first-child:not(.TableCellSkeleton),\n.TableRow > *:first-child .TableCellSkeletonItem {\n padding-inline-start: var(--base-size-16);\n}\n\n.TableRow > *:last-child:not(.TableCellSkeleton),\n.TableRow > *:last-child .TableCellSkeletonItem {\n padding-inline-end: var(--base-size-16);\n}\n\n/* TableHeader */\n.TableHeader {\n font-weight: var(--base-text-weight-semibold);\n color: var(--fgColor-muted);\n background-color: var(--bgColor-muted);\n border-block-start: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.TableHeader:where([aria-sort='descending']),\n.TableHeader:where([aria-sort='ascending']) {\n color: var(--fgColor-default);\n}\n\n/* Control visibility of sort icons */\n.TableSortIcon {\n visibility: hidden;\n}\n\n/* The ASC icon is visible if the header is sortable and is hovered or focused */\n.TableHeader:hover .TableSortIcon--ascending,\n.TableHeader .TableSortButton:focus .TableSortIcon--ascending {\n visibility: visible;\n}\n\n/* Each sort icon is visible if the TableHeader is currently in the corresponding sort state */\n.TableHeader[aria-sort='ascending'] .TableSortIcon--ascending,\n.TableHeader[aria-sort='descending'] .TableSortIcon--descending {\n visibility: visible;\n}\n\n/* TableRow */\n.TableRow:hover .TableCell:not(.TableCellSkeleton) {\n background-color: var(--control-transparent-bgColor-hover);\n}\n\n/* TableCell */\n.TableCell:where([scope='row']) {\n display: flex;\n font-weight: var(--base-text-weight-semibold);\n color: var(--fgColor-default);\n align-items: center;\n}\n\n/* TableCellSkeleton */\n.TableCellSkeleton {\n padding: 0;\n}\n\n.TableCellSkeletonItems {\n display: flex;\n width: 100%;\n flex-direction: column;\n}\n\n.TableCellSkeletonItem {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--table-cell-padding);\n\n &:nth-of-type(5n + 1) {\n --skeleton-item-width: 85%;\n }\n\n &:nth-of-type(5n + 2) {\n --skeleton-item-width: 67.5%;\n }\n\n &:nth-of-type(5n + 3) {\n --skeleton-item-width: 80%;\n }\n\n &:nth-of-type(5n + 4) {\n --skeleton-item-width: 60%;\n }\n\n &:nth-of-type(5n + 5) {\n --skeleton-item-width: 75%;\n }\n}\n\n.TableCellSkeletonItem [data-component='SkeletonText'] {\n width: var(--skeleton-item-width);\n}\n\n.TableCellSkeletonItem:not(:last-of-type) {\n border-block-end: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.TableSortButton {\n column-gap: 0.5rem;\n}\n\n/* Grid layout */\n.TableHead,\n.TableBody,\n.TableGroupHeaderBody,\n.TableRow {\n display: contents;\n}\n\n@supports (grid-template-columns: subgrid) {\n .TableHead,\n .TableBody,\n .TableGroupHeaderBody,\n .TableRow {\n display: grid;\n grid-template-columns: subgrid;\n grid-column: -1 /1;\n }\n}\n\n.TableGroupHeaderCell {\n display: flex;\n grid-column: 1 / -1;\n align-items: baseline;\n column-gap: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--table-cell-padding);\n text-align: start;\n color: var(--fgColor-muted);\n background-color: var(--bgColor-muted);\n border-inline-start: var(--borderWidth-thin) solid var(--borderColor-default);\n border-inline-end: var(--borderWidth-thin) solid var(--borderColor-default);\n border-block-end: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.TableGroupHeaderContent {\n display: flex;\n align-items: baseline;\n column-gap: var(--base-size-8);\n}\n\n.TableGroupHeaderLabel {\n font-weight: var(--base-text-weight-semibold);\n color: var(--fgColor-default);\n}\n\n.TableGroupHeaderCount {\n color: var(--fgColor-muted);\n}\n\n.PlaceholderText {\n color: var(--fgColor-muted);\n}\n"]}
|
package/dist/DataTable/Table.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
1
2
|
import Text_default from "../Text/Text.js";
|
|
2
3
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
3
4
|
import { ScrollableRegion } from "../ScrollableRegion/ScrollableRegion.js";
|
|
@@ -5,15 +6,15 @@ import { SkeletonText } from "../SkeletonText/SkeletonText.js";
|
|
|
5
6
|
import { SortDirection } from "./sorting.js";
|
|
6
7
|
import { useTableLayout } from "./useTable.js";
|
|
7
8
|
import { Button } from "../internal/components/ButtonReset.js";
|
|
9
|
+
import { TableGroupContext } from "./TableGroupContext.js";
|
|
8
10
|
import Table_module_css_default from "./Table.module.css.js";
|
|
9
|
-
import {
|
|
11
|
+
import React, { useContext } from "react";
|
|
12
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
13
|
import { clsx } from "clsx";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import React from "react";
|
|
13
14
|
import { SortAscIcon, SortDescIcon } from "@primer/octicons-react";
|
|
14
15
|
//#region src/DataTable/Table.tsx
|
|
15
16
|
const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
16
|
-
const $ = c(
|
|
17
|
+
const $ = c(24);
|
|
17
18
|
let className;
|
|
18
19
|
let gridTemplateColumns;
|
|
19
20
|
let labelledby;
|
|
@@ -35,6 +36,7 @@ const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
|
35
36
|
t1 = $[5];
|
|
36
37
|
}
|
|
37
38
|
const cellPadding = t1 === void 0 ? "normal" : t1;
|
|
39
|
+
const inheritedGroup = useContext(TableGroupContext);
|
|
38
40
|
let t2;
|
|
39
41
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
40
42
|
t2 = clsx("TableOverflowWrapper", Table_module_css_default.TableOverflowWrapper);
|
|
@@ -84,7 +86,18 @@ const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
|
84
86
|
$[19] = t6;
|
|
85
87
|
$[20] = t7;
|
|
86
88
|
} else t7 = $[20];
|
|
87
|
-
|
|
89
|
+
const table = t7;
|
|
90
|
+
let t8;
|
|
91
|
+
if ($[21] !== inheritedGroup || $[22] !== table) {
|
|
92
|
+
t8 = inheritedGroup ? /*#__PURE__*/ jsx(TableGroupContext.Provider, {
|
|
93
|
+
value: void 0,
|
|
94
|
+
children: table
|
|
95
|
+
}) : table;
|
|
96
|
+
$[21] = inheritedGroup;
|
|
97
|
+
$[22] = table;
|
|
98
|
+
$[23] = t8;
|
|
99
|
+
} else t8 = $[23];
|
|
100
|
+
return t8;
|
|
88
101
|
});
|
|
89
102
|
function TableHead(t0) {
|
|
90
103
|
const $ = c(3);
|
|
@@ -168,7 +181,7 @@ function TableHeader(t0) {
|
|
|
168
181
|
return t2;
|
|
169
182
|
}
|
|
170
183
|
function TableSortHeader(t0) {
|
|
171
|
-
const $ = c(
|
|
184
|
+
const $ = c(24);
|
|
172
185
|
let align;
|
|
173
186
|
let children;
|
|
174
187
|
let direction;
|
|
@@ -190,6 +203,7 @@ function TableSortHeader(t0) {
|
|
|
190
203
|
rest = $[5];
|
|
191
204
|
}
|
|
192
205
|
const ariaSort = direction === "DESC" ? "descending" : direction === "ASC" ? "ascending" : void 0;
|
|
206
|
+
const sortAction = direction === SortDirection.ASC ? "Sort descending" : "Sort ascending";
|
|
193
207
|
let t1;
|
|
194
208
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
195
209
|
t1 = clsx("TableSortButton", Table_module_css_default.TableSortButton);
|
|
@@ -205,7 +219,7 @@ function TableSortHeader(t0) {
|
|
|
205
219
|
} else t2 = $[8];
|
|
206
220
|
let t3;
|
|
207
221
|
if ($[9] !== direction) {
|
|
208
|
-
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/
|
|
222
|
+
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/ jsx(Fragment$1, { children: /*#__PURE__*/ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }) }) : null;
|
|
209
223
|
$[9] = direction;
|
|
210
224
|
$[10] = t3;
|
|
211
225
|
} else t3 = $[10];
|
|
@@ -216,11 +230,12 @@ function TableSortHeader(t0) {
|
|
|
216
230
|
$[12] = t4;
|
|
217
231
|
} else t4 = $[12];
|
|
218
232
|
let t5;
|
|
219
|
-
if ($[13] !== children || $[14] !==
|
|
233
|
+
if ($[13] !== children || $[14] !== sortAction || $[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
|
|
220
234
|
t5 = /*#__PURE__*/ jsxs(Button, {
|
|
221
235
|
type: "button",
|
|
222
236
|
className: t1,
|
|
223
237
|
"data-component": "Table.SortHeader.Button",
|
|
238
|
+
"aria-description": sortAction,
|
|
224
239
|
onClick: t2,
|
|
225
240
|
children: [
|
|
226
241
|
children,
|
|
@@ -229,13 +244,14 @@ function TableSortHeader(t0) {
|
|
|
229
244
|
]
|
|
230
245
|
});
|
|
231
246
|
$[13] = children;
|
|
232
|
-
$[14] =
|
|
233
|
-
$[15] =
|
|
234
|
-
$[16] =
|
|
235
|
-
$[17] =
|
|
236
|
-
|
|
247
|
+
$[14] = sortAction;
|
|
248
|
+
$[15] = t2;
|
|
249
|
+
$[16] = t3;
|
|
250
|
+
$[17] = t4;
|
|
251
|
+
$[18] = t5;
|
|
252
|
+
} else t5 = $[18];
|
|
237
253
|
let t6;
|
|
238
|
-
if ($[
|
|
254
|
+
if ($[19] !== align || $[20] !== ariaSort || $[21] !== rest || $[22] !== t5) {
|
|
239
255
|
t6 = /*#__PURE__*/ jsx(TableHeader, {
|
|
240
256
|
...rest,
|
|
241
257
|
"aria-sort": ariaSort,
|
|
@@ -243,12 +259,12 @@ function TableSortHeader(t0) {
|
|
|
243
259
|
"data-component": "Table.SortHeader",
|
|
244
260
|
children: t5
|
|
245
261
|
});
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
} else t6 = $[
|
|
262
|
+
$[19] = align;
|
|
263
|
+
$[20] = ariaSort;
|
|
264
|
+
$[21] = rest;
|
|
265
|
+
$[22] = t5;
|
|
266
|
+
$[23] = t6;
|
|
267
|
+
} else t6 = $[23];
|
|
252
268
|
return t6;
|
|
253
269
|
}
|
|
254
270
|
function TableRow(t0) {
|
|
@@ -285,56 +301,70 @@ function TableRow(t0) {
|
|
|
285
301
|
return t2;
|
|
286
302
|
}
|
|
287
303
|
function TableCell(t0) {
|
|
288
|
-
const $ = c(
|
|
304
|
+
const $ = c(21);
|
|
289
305
|
let align;
|
|
290
306
|
let children;
|
|
291
307
|
let className;
|
|
308
|
+
let headers;
|
|
292
309
|
let rest;
|
|
293
310
|
let scope;
|
|
294
311
|
if ($[0] !== t0) {
|
|
295
|
-
({align, className, children, scope, ...rest} = t0);
|
|
312
|
+
({align, className, children, scope, headers, ...rest} = t0);
|
|
296
313
|
$[0] = t0;
|
|
297
314
|
$[1] = align;
|
|
298
315
|
$[2] = children;
|
|
299
316
|
$[3] = className;
|
|
300
|
-
$[4] =
|
|
301
|
-
$[5] =
|
|
317
|
+
$[4] = headers;
|
|
318
|
+
$[5] = rest;
|
|
319
|
+
$[6] = scope;
|
|
302
320
|
} else {
|
|
303
321
|
align = $[1];
|
|
304
322
|
children = $[2];
|
|
305
323
|
className = $[3];
|
|
306
|
-
|
|
307
|
-
|
|
324
|
+
headers = $[4];
|
|
325
|
+
rest = $[5];
|
|
326
|
+
scope = $[6];
|
|
308
327
|
}
|
|
309
328
|
const BaseComponent = scope ? "th" : "td";
|
|
310
329
|
const role = scope ? "rowheader" : "cell";
|
|
330
|
+
const group = useContext(TableGroupContext);
|
|
311
331
|
let t1;
|
|
312
|
-
if ($[
|
|
313
|
-
t1 =
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
|
|
332
|
+
if ($[7] !== (group === null || group === void 0 ? void 0 : group.headerId) || $[8] !== headers) {
|
|
333
|
+
t1 = [group === null || group === void 0 ? void 0 : group.headerId, headers].filter(Boolean).join(" ") || void 0;
|
|
334
|
+
$[7] = group === null || group === void 0 ? void 0 : group.headerId;
|
|
335
|
+
$[8] = headers;
|
|
336
|
+
$[9] = t1;
|
|
337
|
+
} else t1 = $[9];
|
|
338
|
+
const resolvedHeaders = t1;
|
|
317
339
|
let t2;
|
|
318
|
-
if ($[
|
|
319
|
-
t2 =
|
|
340
|
+
if ($[10] !== className) {
|
|
341
|
+
t2 = clsx("TableCell", className, Table_module_css_default.TableCell);
|
|
342
|
+
$[10] = className;
|
|
343
|
+
$[11] = t2;
|
|
344
|
+
} else t2 = $[11];
|
|
345
|
+
let t3;
|
|
346
|
+
if ($[12] !== BaseComponent || $[13] !== align || $[14] !== children || $[15] !== resolvedHeaders || $[16] !== rest || $[17] !== role || $[18] !== scope || $[19] !== t2) {
|
|
347
|
+
t3 = /*#__PURE__*/ jsx(BaseComponent, {
|
|
320
348
|
...rest,
|
|
321
|
-
className:
|
|
349
|
+
className: t2,
|
|
322
350
|
scope,
|
|
323
351
|
role,
|
|
324
352
|
"data-cell-align": align,
|
|
325
353
|
"data-component": "Table.Cell",
|
|
354
|
+
headers: resolvedHeaders,
|
|
326
355
|
children
|
|
327
356
|
});
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
336
|
-
|
|
337
|
-
|
|
357
|
+
$[12] = BaseComponent;
|
|
358
|
+
$[13] = align;
|
|
359
|
+
$[14] = children;
|
|
360
|
+
$[15] = resolvedHeaders;
|
|
361
|
+
$[16] = rest;
|
|
362
|
+
$[17] = role;
|
|
363
|
+
$[18] = scope;
|
|
364
|
+
$[19] = t2;
|
|
365
|
+
$[20] = t3;
|
|
366
|
+
} else t3 = $[20];
|
|
367
|
+
return t3;
|
|
338
368
|
}
|
|
339
369
|
function TableCellPlaceholder(t0) {
|
|
340
370
|
const $ = c(2);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Table-
|
|
1
|
+
import "./Table-50e68700.css";
|
|
2
2
|
//#region src/DataTable/Table.module.css.js
|
|
3
3
|
var Table_module_css_default = {
|
|
4
4
|
"TableContainer": "prc-DataTable-TableContainer-hn0p3",
|
|
@@ -20,7 +20,12 @@ var Table_module_css_default = {
|
|
|
20
20
|
"TableSortIcon--ascending": "prc-DataTable-TableSortIcon--ascending-Lpx6z",
|
|
21
21
|
"TableSortIcon--descending": "prc-DataTable-TableSortIcon--descending-hHJGo",
|
|
22
22
|
"TableCellSkeletonItems": "prc-DataTable-TableCellSkeletonItems-Ljhq5",
|
|
23
|
-
"
|
|
23
|
+
"TableGroupHeaderBody": "prc-DataTable-TableGroupHeaderBody-K-YqR",
|
|
24
|
+
"TableGroupHeaderCell": "prc-DataTable-TableGroupHeaderCell-vnb30",
|
|
25
|
+
"TableGroupHeaderContent": "prc-DataTable-TableGroupHeaderContent-H9FbA",
|
|
26
|
+
"TableGroupHeaderLabel": "prc-DataTable-TableGroupHeaderLabel--c-od",
|
|
27
|
+
"PlaceholderText": "prc-DataTable-PlaceholderText-8bHo7",
|
|
28
|
+
"TableGroupHeaderCount": "prc-DataTable-TableGroupHeaderCount-6r8Pj"
|
|
24
29
|
};
|
|
25
30
|
//#endregion
|
|
26
31
|
export { Table_module_css_default as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/DataTable/TableGroup.d.ts
|
|
4
|
+
type TableGroupProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Provide a custom class name for the group header section
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Provide a stable identifier exposed on both group sections as `data-group-id`
|
|
11
|
+
*/
|
|
12
|
+
id: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* Provide a label for the group header
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Specify the number of member rows in the group
|
|
19
|
+
*/
|
|
20
|
+
rowCount: number;
|
|
21
|
+
/**
|
|
22
|
+
* Provide an accessible name for the group header
|
|
23
|
+
*/
|
|
24
|
+
'aria-label'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Specify the number of columns spanned by the group header
|
|
27
|
+
*/
|
|
28
|
+
colSpan: number;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
};
|
|
31
|
+
declare function TableGroup({
|
|
32
|
+
className,
|
|
33
|
+
id,
|
|
34
|
+
label,
|
|
35
|
+
rowCount,
|
|
36
|
+
colSpan,
|
|
37
|
+
children,
|
|
38
|
+
'aria-label': ariaLabel
|
|
39
|
+
}: TableGroupProps): React.JSX.Element;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { TableGroup, TableGroupProps };
|