@primer/react 38.37.1-rc.f8f4193e4 → 38.38.0-rc.8cc0fbde1
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 +9 -1
- package/dist/ActionBar/ActionBar.js +2 -2
- package/dist/ActionList/Description.js +2 -2
- package/dist/ActionList/Divider.js +1 -1
- package/dist/ActionList/Group.js +4 -4
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -1
- package/dist/ActionList/Heading.js +3 -3
- package/dist/ActionList/Item.js +3 -3
- package/dist/ActionList/List.js +2 -2
- package/dist/ActionList/Selection.js +1 -1
- package/dist/ActionList/TrailingAction.js +2 -2
- package/dist/ActionList/Visuals.js +2 -2
- package/dist/ActionMenu/ActionMenu.js +2 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.js +3 -3
- package/dist/Autocomplete/Autocomplete.js +1 -1
- package/dist/Autocomplete/AutocompleteInput.js +7 -2
- package/dist/Autocomplete/AutocompleteMenu.js +81 -75
- package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
- package/dist/Avatar/Avatar.js +2 -2
- package/dist/AvatarStack/AvatarStack.js +2 -2
- package/dist/Banner/Banner.js +2 -2
- package/dist/BaseStyles.js +1 -1
- package/dist/Blankslate/Blankslate.js +2 -2
- package/dist/BranchName/BranchName.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/Button/Button.js +1 -1
- package/dist/Button/ButtonBase.js +4 -4
- package/dist/Button/IconButton.js +2 -2
- package/dist/Button/LinkButton.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/Card/Card.js +2 -2
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/CircleBadge/CircleBadge.js +1 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -1
- package/dist/CounterLabel/CounterLabel.js +3 -3
- package/dist/DataTable/Pagination.js +4 -4
- package/dist/DataTable/Table.js +3 -3
- package/dist/Details/Details.js +2 -2
- package/dist/Dialog/Dialog.js +3 -3
- package/dist/FeatureFlags/FeatureFlags.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +2 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -1
- package/dist/FilteredActionList/useAnnouncements.js +1 -1
- package/dist/Flash/Flash.js +2 -2
- package/dist/FormControl/FormControl.js +3 -3
- package/dist/FormControl/FormControlCaption.js +1 -1
- package/dist/Header/Header.js +2 -2
- package/dist/Heading/Heading.js +2 -2
- package/dist/Hidden/Hidden.js +1 -1
- package/dist/InlineMessage/InlineMessage.js +1 -1
- package/dist/KeybindingHint/KeybindingHint.js +2 -2
- package/dist/KeybindingHint/components/Chord.js +3 -3
- package/dist/KeybindingHint/components/Sequence.js +3 -3
- package/dist/Label/Label.js +2 -2
- package/dist/LabelGroup/LabelGroup.js +2 -2
- package/dist/Link/Link.js +2 -2
- package/dist/NavList/NavList.js +5 -5
- package/dist/Octicon/Octicon.js +1 -1
- package/dist/Overlay/Overlay.js +2 -2
- package/dist/PageHeader/PageHeader.js +3 -3
- package/dist/PageLayout/DragHandle.js +1 -1
- package/dist/PageLayout/PageLayout.js +2 -2
- package/dist/Pagehead/Pagehead.js +1 -1
- package/dist/Pagination/Pagination.js +3 -3
- package/dist/Popover/Popover.js +2 -2
- package/dist/ProgressBar/ProgressBar.js +2 -2
- package/dist/Radio/Radio.js +2 -2
- package/dist/ScrollableRegion/ScrollableRegion.js +2 -2
- package/dist/SegmentedControl/SegmentedControl.js +3 -3
- package/dist/SegmentedControl/SegmentedControlButton.js +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +1 -1
- package/dist/Select/Select.js +2 -2
- package/dist/SelectPanel/SelectPanel.js +4 -4
- package/dist/SelectPanel/SelectPanelMessage.js +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/Skeleton/SkeletonBox.js +2 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
- package/dist/SkeletonText/SkeletonText.js +1 -1
- package/dist/Spinner/Spinner.js +2 -2
- package/dist/Stack/Stack.js +2 -2
- package/dist/StateLabel/StateLabel.js +2 -2
- package/dist/SubNav/SubNav.js +2 -2
- package/dist/TabNav/TabNav.js +2 -2
- package/dist/Text/Text.js +1 -1
- package/dist/TextInput/TextInput.js +5 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.js +2 -2
- package/dist/Textarea/Textarea.js +3 -3
- package/dist/ThemeProvider.js +1 -1
- package/dist/Timeline/Timeline.js +2 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +3 -3
- package/dist/Token/IssueLabelToken.js +2 -2
- package/dist/Token/Token.js +2 -2
- package/dist/Token/TokenBase.js +2 -2
- package/dist/Token/_RemoveTokenButton.js +1 -1
- package/dist/Token/_TokenTextContainer.js +1 -1
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/TooltipV2/Tooltip.js +4 -4
- package/dist/TopicTag/TopicTag.js +1 -1
- package/dist/TopicTag/TopicTagGroup.js +1 -1
- package/dist/TreeView/TreeView.js +9 -9
- package/dist/Truncate/Truncate.js +2 -2
- package/dist/UnderlineNav/UnderlineNav.js +2 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/_VisuallyHidden.js +1 -1
- package/dist/deprecated/ActionList/Header.js +1 -1
- package/dist/deprecated/ActionList/Item.js +3 -3
- package/dist/deprecated/ActionList/List.js +2 -2
- package/dist/deprecated/ActionMenu.js +1 -1
- package/dist/deprecated/DialogV1/Dialog.js +3 -3
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +2 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +6 -6
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -6
- package/dist/experimental/index.d.ts +3 -3
- package/dist/experimental/index.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/internal/components/ButtonReset.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +3 -3
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
- package/dist/internal/components/InputLabel.js +1 -1
- package/dist/internal/components/InputValidation.js +1 -1
- package/dist/internal/components/OverflowObserverProvider.js +1 -1
- package/dist/internal/components/TextInputInnerAction.js +3 -3
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -1
- package/dist/internal/components/TextInputWrapper.js +2 -2
- 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 +2 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
- package/dist/internal/components/UnstyledTextInput.js +2 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -1
- package/dist/live-region/Announce.js +2 -2
- package/dist/live-region/AriaAlert.d.ts +1 -1
- package/dist/utils/descendant-registry.js +1 -1
- package/generated/components.json +73 -0
- package/package.json +2 -2
- package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css +0 -2
- package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css.map +0 -1
package/dist/Radio/Radio.js
CHANGED
|
@@ -2,9 +2,9 @@ import { RadioGroupContext } from "../RadioGroup/RadioGroupContext.js";
|
|
|
2
2
|
import shared_module_css_default from "../Checkbox/shared.module.css.js";
|
|
3
3
|
import Radio_module_css_default from "./Radio.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
5
|
import React, { useContext } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Radio/Radio.tsx
|
|
9
9
|
/**
|
|
10
10
|
* An accessible, native radio component for selecting one option from a list.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useOverflow } from "../hooks/useOverflow.js";
|
|
2
2
|
import ScrollableRegion_module_css_default from "./ScrollableRegion.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/ScrollableRegion/ScrollableRegion.tsx
|
|
8
8
|
function ScrollableRegion(t0) {
|
|
9
9
|
const $ = c(17);
|
|
@@ -6,9 +6,9 @@ import SegmentedControl_module_css_default from "./SegmentedControl.module.css.j
|
|
|
6
6
|
import SegmentedControlButton from "./SegmentedControlButton.js";
|
|
7
7
|
import { SegmentedControlIconButton } from "./SegmentedControlIconButton.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { useRef, useState } 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/SegmentedControl/SegmentedControl.tsx
|
|
14
14
|
const Root = (t0) => {
|
|
@@ -209,7 +209,7 @@ const Root = (t0) => {
|
|
|
209
209
|
const segmentedControlContent = t9;
|
|
210
210
|
let t10;
|
|
211
211
|
if ($[50] !== dropdownContent || $[51] !== hasDropdownVariant || $[52] !== segmentedControlContent) {
|
|
212
|
-
t10 = hasDropdownVariant ? /*#__PURE__*/ jsxs(Fragment, { children: [dropdownContent, segmentedControlContent] }) : segmentedControlContent;
|
|
212
|
+
t10 = hasDropdownVariant ? /*#__PURE__*/ jsxs(Fragment$1, { children: [dropdownContent, segmentedControlContent] }) : segmentedControlContent;
|
|
213
213
|
$[50] = dropdownContent;
|
|
214
214
|
$[51] = hasDropdownVariant;
|
|
215
215
|
$[52] = segmentedControlContent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
2
2
|
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
import { isElement } from "react-is";
|
|
7
7
|
//#region src/SegmentedControl/SegmentedControlButton.tsx
|
|
8
8
|
const SegmentedControlButton = (t0) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
2
2
|
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
3
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
|
import { isElement } from "react-is";
|
|
7
7
|
//#region src/SegmentedControl/SegmentedControlIconButton.tsx
|
|
8
8
|
const SegmentedControlIconButton = (t0) => {
|
package/dist/Select/Select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
|
|
2
2
|
import Select_module_css_default from "./Select.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
4
|
import React from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/Select/Select.tsx
|
|
8
8
|
const ArrowIndicatorSVG = (t0) => {
|
|
9
9
|
const $ = c(3);
|
|
@@ -16,10 +16,10 @@ import { FilteredActionListLoadingTypes } from "../FilteredActionList/constants.
|
|
|
16
16
|
import { FilteredActionList } from "../FilteredActionList/index.js";
|
|
17
17
|
import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
|
|
18
18
|
import { SelectPanelMessage } from "./SelectPanelMessage.js";
|
|
19
|
-
import { clsx } from "clsx";
|
|
20
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
22
19
|
import { announce, announceFromElement } from "@primer/live-region-element";
|
|
20
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
21
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { clsx } from "clsx";
|
|
23
23
|
import { SearchIcon, TriangleDownIcon, XIcon } from "@primer/octicons-react";
|
|
24
24
|
import { debounce } from "@github/mini-throttle";
|
|
25
25
|
//#region src/SelectPanel/SelectPanel.tsx
|
|
@@ -460,7 +460,7 @@ function Panel({ open, onOpenChange, renderAnchor = defaultRenderAnchor, anchorR
|
|
|
460
460
|
availablePanelHeight,
|
|
461
461
|
preventBubbling
|
|
462
462
|
]);
|
|
463
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(AnchoredOverlay, {
|
|
463
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(AnchoredOverlay, {
|
|
464
464
|
renderAnchor: renderMenuAnchor,
|
|
465
465
|
anchorRef,
|
|
466
466
|
align,
|
|
@@ -2,8 +2,8 @@ import Text_default from "../Text/Text.js";
|
|
|
2
2
|
import Octicon from "../Octicon/Octicon.js";
|
|
3
3
|
import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
import { AlertIcon } from "@primer/octicons-react";
|
|
8
8
|
//#region src/SelectPanel/SelectPanelMessage.tsx
|
|
9
9
|
const SelectPanelMessage = (t0) => {
|
package/dist/SideNav.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Link from "./Link/Link.js";
|
|
2
2
|
import SideNav_module_css_default from "./SideNav.module.css.js";
|
|
3
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/SideNav.tsx
|
|
7
7
|
function SideNav(t0) {
|
|
8
8
|
const $ = c(10);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import SkeletonBox_module_css_default from "./SkeletonBox.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import React, { useEffect, useState } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/Skeleton/SkeletonBox.tsx
|
|
7
7
|
const SkeletonBox = /*#__PURE__*/ React.forwardRef(function SkeletonBox(t0, ref) {
|
|
8
8
|
const $ = c(25);
|
|
@@ -2,8 +2,8 @@ import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
|
2
2
|
import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
|
|
3
3
|
import SkeletonAvatar_module_css_default from "./SkeletonAvatar.module.css.js";
|
|
4
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/SkeletonAvatar/SkeletonAvatar.tsx
|
|
8
8
|
function SkeletonAvatar(t0) {
|
|
9
9
|
const $ = c(26);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
|
|
2
2
|
import SkeletonText_module_css_default from "./SkeletonText.module.css.js";
|
|
3
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/SkeletonText/SkeletonText.tsx
|
|
7
7
|
function SkeletonText(t0) {
|
|
8
8
|
const $ = c(32);
|
package/dist/Spinner/Spinner.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useId as useId$1 } from "../hooks/useId.js";
|
|
|
3
3
|
import Spinner_module_css_default from "./Spinner.module.css.js";
|
|
4
4
|
import { useMedia } from "../hooks/useMedia.js";
|
|
5
5
|
import { c } from "react-compiler-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
6
|
import { useEffect, useState } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
//#region src/Spinner/Spinner.tsx
|
|
10
10
|
const ANIMATION_DURATION_MS = 1e3;
|
|
11
11
|
const sizeMap = {
|
package/dist/Stack/Stack.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
2
2
|
import Stack_module_css_default from "./Stack.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/Stack/Stack.tsx
|
|
8
8
|
const Stack = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
9
9
|
const $ = c(45);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Octicon from "../Octicon/Octicon.js";
|
|
2
2
|
import StateLabel_module_css_default from "./StateLabel.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
4
|
import { forwardRef } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
import { AlertIcon, ArchiveIcon, GitMergeIcon, GitMergeQueueIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, IssueClosedIcon, IssueDraftIcon, IssueOpenedIcon, ShieldCheckIcon, ShieldIcon, ShieldSlashIcon, ShieldXIcon, SkipIcon } from "@primer/octicons-react";
|
|
8
8
|
//#region src/StateLabel/StateLabel.tsx
|
|
9
9
|
const octiconMap = {
|
package/dist/SubNav/SubNav.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import SubNav_module_css_default from "./SubNav.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
3
|
import React from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/SubNav/SubNav.tsx
|
|
7
7
|
const SubNav = /*#__PURE__*/ React.forwardRef(function SubNav(t0, forwardRef) {
|
|
8
8
|
const $ = c(20);
|
package/dist/TabNav/TabNav.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
2
2
|
import TabNav_module_css_default from "./TabNav.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import React, { useRef, useState } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/TabNav/TabNav.tsx
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated
|
package/dist/Text/Text.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Text_module_css_default from "./Text.module.css.js";
|
|
2
2
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
3
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/Text/Text.tsx
|
|
7
7
|
function Text(props, ref) {
|
|
8
8
|
const $ = c(17);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
3
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
3
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
4
4
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
5
5
|
import Text_default from "../Text/Text.js";
|
|
6
6
|
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
@@ -11,9 +11,9 @@ import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
|
|
|
11
11
|
import TextInputAction from "../internal/components/TextInputInnerAction.js";
|
|
12
12
|
import UnstyledTextInput from "../internal/components/UnstyledTextInput.js";
|
|
13
13
|
import { getCharacterCountState } from "../utils/character-counter.js";
|
|
14
|
-
import { clsx } from "clsx";
|
|
15
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
14
|
import React, { useCallback, useId, useRef, useState } from "react";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { clsx } from "clsx";
|
|
17
17
|
import { isValidElementType } from "react-is";
|
|
18
18
|
import { AlertFillIcon } from "@primer/octicons-react";
|
|
19
19
|
//#region src/TextInput/TextInput.tsx
|
|
@@ -64,7 +64,7 @@ const TextInput = /*#__PURE__*/ React.forwardRef(({ icon: IconComponent, leading
|
|
|
64
64
|
const characterCountId = useId();
|
|
65
65
|
const characterCountStaticMessageId = useId();
|
|
66
66
|
const isValid = isOverLimit ? "error" : validationStatus;
|
|
67
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs(TextInputWrapper, {
|
|
67
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs(TextInputWrapper, {
|
|
68
68
|
block,
|
|
69
69
|
className: wrapperClasses,
|
|
70
70
|
validationStatus: isValid,
|
|
@@ -123,7 +123,7 @@ const TextInput = /*#__PURE__*/ React.forwardRef(({ icon: IconComponent, leading
|
|
|
123
123
|
}),
|
|
124
124
|
trailingAction
|
|
125
125
|
]
|
|
126
|
-
}), characterLimit && /*#__PURE__*/ jsxs(Fragment, { children: [
|
|
126
|
+
}), characterLimit && /*#__PURE__*/ jsxs(Fragment$1, { children: [
|
|
127
127
|
/*#__PURE__*/ jsx(AriaStatus, {
|
|
128
128
|
announceOnShow: false,
|
|
129
129
|
delayMs: 500,
|
|
@@ -9,9 +9,9 @@ import UnstyledTextInput from "../internal/components/UnstyledTextInput.js";
|
|
|
9
9
|
import Token from "../Token/Token.js";
|
|
10
10
|
import TextInputWithTokens_module_css_default from "./TextInputWithTokens.module.css.js";
|
|
11
11
|
import { c } from "react-compiler-runtime";
|
|
12
|
-
import { clsx } from "clsx";
|
|
13
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
12
|
import React, { useRef, useState } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { clsx } from "clsx";
|
|
15
15
|
import { isFocusable } from "@primer/behaviors/utils";
|
|
16
16
|
import { FocusKeys } from "@primer/behaviors";
|
|
17
17
|
import { isValidElementType } from "react-is";
|
|
@@ -6,9 +6,9 @@ import { TextInputBaseWrapper } from "../internal/components/TextInputWrapper.js
|
|
|
6
6
|
import { getCharacterCountState } from "../utils/character-counter.js";
|
|
7
7
|
import TextArea_module_css_default from "./TextArea.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { useId, useState } from "react";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { AlertFillIcon } from "@primer/octicons-react";
|
|
13
13
|
const DEFAULT_TEXTAREA_RESIZE = "both";
|
|
14
14
|
/**
|
|
@@ -185,7 +185,7 @@ const Textarea = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
185
185
|
$[77] = t11;
|
|
186
186
|
$[78] = t12;
|
|
187
187
|
} else t12 = $[78];
|
|
188
|
-
t5 = /*#__PURE__*/ jsxs(Fragment, { children: [t12, characterLimit && /*#__PURE__*/ jsxs(Fragment, { children: [
|
|
188
|
+
t5 = /*#__PURE__*/ jsxs(Fragment$1, { children: [t12, characterLimit && /*#__PURE__*/ jsxs(Fragment$1, { children: [
|
|
189
189
|
/*#__PURE__*/ jsx(AriaStatus, {
|
|
190
190
|
announceOnShow: false,
|
|
191
191
|
delayMs: 500,
|
package/dist/ThemeProvider.js
CHANGED
|
@@ -2,8 +2,8 @@ import theme from "./theme.js";
|
|
|
2
2
|
import { ThemeProviderBase } from "./internal/components/ThemeProviderBase.js";
|
|
3
3
|
import { useThemeProvider } from "./internal/hooks/useThemeProvider.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
//#region src/ThemeProvider.tsx
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
2
2
|
import Timeline_module_css_default from "./Timeline.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/Timeline/Timeline.tsx
|
|
8
8
|
function resolveClipSidebar(clipSidebar) {
|
|
9
9
|
if (clipSidebar === true || clipSidebar === "both") return "both";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
2
3
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
4
|
import Spinner from "../Spinner/Spinner.js";
|
|
4
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
5
5
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
6
6
|
import useSafeTimeout from "../hooks/useSafeTimeout.js";
|
|
7
7
|
import ToggleSwitch_module_css_default from "./ToggleSwitch.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { useEffect } from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
//#region src/ToggleSwitch/ToggleSwitch.tsx
|
|
13
13
|
const CircleIcon = (t0) => {
|
|
14
14
|
const $ = c(4);
|
|
@@ -5,9 +5,9 @@ import RemoveTokenButton from "./_RemoveTokenButton.js";
|
|
|
5
5
|
import TokenTextContainer from "./_TokenTextContainer.js";
|
|
6
6
|
import IssueLabelToken_module_css_default from "./IssueLabelToken.module.css.js";
|
|
7
7
|
import { c } from "react-compiler-runtime";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
8
|
import { forwardRef } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { clsx } from "clsx";
|
|
11
11
|
import { parseToHsla, parseToRgba } from "color2k";
|
|
12
12
|
//#region src/Token/IssueLabelToken.tsx
|
|
13
13
|
const IssueLabelToken = /*#__PURE__*/ forwardRef((props, forwardedRef) => {
|
package/dist/Token/Token.js
CHANGED
|
@@ -6,9 +6,9 @@ import RemoveTokenButton from "./_RemoveTokenButton.js";
|
|
|
6
6
|
import TokenTextContainer from "./_TokenTextContainer.js";
|
|
7
7
|
import Token_module_css_default from "./Token.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import { forwardRef } from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
//#region src/Token/Token.tsx
|
|
13
13
|
const tokenBorderWidthPx = 1;
|
|
14
14
|
const LeadingVisualContainer = (t0) => {
|
package/dist/Token/TokenBase.js
CHANGED
|
@@ -2,9 +2,9 @@ import TokenBase_module_css_default from "./TokenBase.module.css.js";
|
|
|
2
2
|
import { defaultTokenSize } from "./constants.js";
|
|
3
3
|
import { isTokenInteractive } from "./utils.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
5
|
import React from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Token/TokenBase.tsx
|
|
9
9
|
const TokenBase = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
10
10
|
const $ = c(25);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultTokenSize } from "./constants.js";
|
|
2
2
|
import _RemoveTokenButton_module_css_default from "./_RemoveTokenButton.module.css.js";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
import { XIcon } from "@primer/octicons-react";
|
|
6
6
|
//#region src/Token/_RemoveTokenButton.tsx
|
|
7
7
|
const RemoveTokenButton = ({ "aria-label": ariaLabel, isParentInteractive, size = defaultTokenSize, className, borderOffset = 0, as: _as, children: _children, ...rest }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _TokenTextContainer_module_css_default from "./_TokenTextContainer.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/Token/_TokenTextContainer.tsx
|
|
6
6
|
const TokenTextContainer = (t0) => {
|
|
7
7
|
const $ = c(13);
|
package/dist/Tooltip/Tooltip.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
2
2
|
import { TooltipContext } from "./TooltipContext.js";
|
|
3
3
|
import Tooltip_module_css_default from "./Tooltip.module.css.js";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import React, { useMemo } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/Tooltip/Tooltip.tsx
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated
|
|
@@ -12,9 +12,9 @@ import { KeybindingHint } from "../KeybindingHint/KeybindingHint.js";
|
|
|
12
12
|
import { getAccessibleKeybindingHintString } from "../KeybindingHint/utils.js";
|
|
13
13
|
import useSafeTimeout from "../hooks/useSafeTimeout.js";
|
|
14
14
|
import { TooltipContext } from "./TooltipContext.js";
|
|
15
|
-
import { clsx } from "clsx";
|
|
16
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
15
|
import React, { Children, useEffect, useMemo, useRef, useState } from "react";
|
|
16
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { clsx } from "clsx";
|
|
18
18
|
import { getAnchoredPosition } from "@primer/behaviors";
|
|
19
19
|
import { apply, isSupported } from "@oddbird/popover-polyfill/fn";
|
|
20
20
|
//#region src/TooltipV2/Tooltip.tsx
|
|
@@ -164,7 +164,7 @@ const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type =
|
|
|
164
164
|
const keybindingHints = Array.isArray(keybindingHint) ? keybindingHint : [keybindingHint];
|
|
165
165
|
return /*#__PURE__*/ jsx(TooltipContext.Provider, {
|
|
166
166
|
value,
|
|
167
|
-
children: /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ React.isValidElement(child) && /*#__PURE__*/ React.cloneElement(child, {
|
|
167
|
+
children: /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ React.isValidElement(child) && /*#__PURE__*/ React.cloneElement(child, {
|
|
168
168
|
ref: appliedTriggerRef,
|
|
169
169
|
"aria-describedby": (() => {
|
|
170
170
|
if (type !== "description") return child.props["aria-describedby"];
|
|
@@ -216,7 +216,7 @@ const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type =
|
|
|
216
216
|
onMouseEnter: openTooltip,
|
|
217
217
|
onMouseLeave: closeTooltip,
|
|
218
218
|
id: hasAriaLabel || keybindingHints.length === 0 ? tooltipId : void 0,
|
|
219
|
-
children: keybindingHints.length > 0 ? /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs("span", {
|
|
219
|
+
children: keybindingHints.length > 0 ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("span", {
|
|
220
220
|
id: hasAriaLabel ? void 0 : tooltipId,
|
|
221
221
|
children: [text, /*#__PURE__*/ jsxs(VisuallyHidden, { children: [
|
|
222
222
|
"(",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TopicTag_module_css_default from "./TopicTag.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/TopicTag/TopicTag.tsx
|
|
6
6
|
function TopicTag(t0) {
|
|
7
7
|
var _as;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TopicTagGroup_module_css_default from "./TopicTagGroup.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/TopicTag/TopicTagGroup.tsx
|
|
6
6
|
function TopicTagGroup(t0) {
|
|
7
7
|
const $ = c(10);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
2
3
|
import { isSlot } from "../utils/is-slot.js";
|
|
3
4
|
import { useSlots } from "../hooks/useSlots.js";
|
|
4
5
|
import Spinner from "../Spinner/Spinner.js";
|
|
5
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
6
6
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
7
7
|
import Text_default from "../Text/Text.js";
|
|
8
8
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
@@ -22,9 +22,9 @@ import { getFirstChildElement, useRovingTabIndex } from "./useRovingTabIndex.js"
|
|
|
22
22
|
import { useTypeahead } from "./useTypeahead.js";
|
|
23
23
|
import { SkeletonAvatar } from "../SkeletonAvatar/SkeletonAvatar.js";
|
|
24
24
|
import { SkeletonText } from "../SkeletonText/SkeletonText.js";
|
|
25
|
-
import { clsx } from "clsx";
|
|
26
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
27
25
|
import React, { useCallback, useEffect } from "react";
|
|
26
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { clsx } from "clsx";
|
|
28
28
|
import { ChevronDownIcon, ChevronRightIcon, FileDirectoryFillIcon, FileDirectoryOpenFillIcon } from "@primer/octicons-react";
|
|
29
29
|
//#region src/TreeView/TreeView.tsx
|
|
30
30
|
const RootContext = /*#__PURE__*/ React.createContext({
|
|
@@ -100,7 +100,7 @@ const Root = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, chil
|
|
|
100
100
|
expandedStateCache,
|
|
101
101
|
scrollElementIntoView
|
|
102
102
|
},
|
|
103
|
-
children: /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
|
|
103
|
+
children: /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
|
|
104
104
|
announceOnShow: true,
|
|
105
105
|
children: ariaLiveMessage
|
|
106
106
|
}) }), /*#__PURE__*/ jsx("ul", {
|
|
@@ -269,7 +269,7 @@ const ItemImpl = fixedForwardRef(({ id: itemId, containIntrinsicSize, current: i
|
|
|
269
269
|
slots.trailingVisual
|
|
270
270
|
]
|
|
271
271
|
}),
|
|
272
|
-
secondaryActions ? /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(TrailingAction, {
|
|
272
|
+
secondaryActions ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(TrailingAction, {
|
|
273
273
|
items: secondaryActions,
|
|
274
274
|
shortcutText: trailingActionShortcutText
|
|
275
275
|
}), actionCommandPressed ? /*#__PURE__*/ jsx(ActionDialog, {
|
|
@@ -469,7 +469,7 @@ function useSubTree(children) {
|
|
|
469
469
|
const LeadingVisual = (props) => {
|
|
470
470
|
const { isExpanded, leadingVisualId } = React.useContext(ItemContext);
|
|
471
471
|
const children = typeof props.children === "function" ? props.children({ isExpanded }) : props.children;
|
|
472
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("div", {
|
|
472
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("div", {
|
|
473
473
|
className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
|
|
474
474
|
"aria-hidden": true,
|
|
475
475
|
id: leadingVisualId,
|
|
@@ -484,7 +484,7 @@ LeadingVisual.displayName = "TreeView.LeadingVisual";
|
|
|
484
484
|
const TrailingVisual = (props) => {
|
|
485
485
|
const { isExpanded, trailingVisualId } = React.useContext(ItemContext);
|
|
486
486
|
const children = typeof props.children === "function" ? props.children({ isExpanded }) : props.children;
|
|
487
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("div", {
|
|
487
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("div", {
|
|
488
488
|
className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
|
|
489
489
|
"aria-hidden": true,
|
|
490
490
|
id: trailingVisualId,
|
|
@@ -499,7 +499,7 @@ TrailingVisual.displayName = "TreeView.TrailingVisual";
|
|
|
499
499
|
const LeadingAction = (props) => {
|
|
500
500
|
const { isExpanded } = React.useContext(ItemContext);
|
|
501
501
|
const children = typeof props.children === "function" ? props.children({ isExpanded }) : props.children;
|
|
502
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("div", {
|
|
502
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("div", {
|
|
503
503
|
className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
|
|
504
504
|
"aria-hidden": true,
|
|
505
505
|
children: props.label
|
|
@@ -513,7 +513,7 @@ LeadingAction.displayName = "TreeView.LeadingAction";
|
|
|
513
513
|
const TrailingAction = (props) => {
|
|
514
514
|
const { trailingActionId, itemId } = React.useContext(ItemContext);
|
|
515
515
|
const { items, shortcutText } = props;
|
|
516
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs("div", {
|
|
516
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("div", {
|
|
517
517
|
id: trailingActionId,
|
|
518
518
|
className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
|
|
519
519
|
children: ["- ", shortcutText]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Truncate_module_css_default from "./Truncate.module.css.js";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
2
|
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/Truncate/Truncate.tsx
|
|
6
6
|
const Truncate = /*#__PURE__*/ React.forwardRef(function Truncate({ as: Component = "div", children, className, title, inline, expandable, maxWidth = 125, style, ...rest }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Component, {
|
|
@@ -12,9 +12,9 @@ import { UnderlineNavContext } from "./UnderlineNavContext.js";
|
|
|
12
12
|
import { UnderlineNavItemsRegistry } from "./UnderlineNavItemsRegistry.js";
|
|
13
13
|
import { getValidChildren, isCurrent } from "./utils.js";
|
|
14
14
|
import { c } from "react-compiler-runtime";
|
|
15
|
-
import { clsx } from "clsx";
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
15
|
import { forwardRef, useRef, useState } from "react";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { clsx } from "clsx";
|
|
18
18
|
//#region src/UnderlineNav/UnderlineNav.tsx
|
|
19
19
|
const UnderlineNav = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
20
20
|
const $ = c(52);
|
|
@@ -4,8 +4,8 @@ import { UnderlineNavContext } from "./UnderlineNavContext.js";
|
|
|
4
4
|
import { UnderlineNavItemsRegistry } from "./UnderlineNavItemsRegistry.js";
|
|
5
5
|
import UnderlineNavItem_module_css_default from "./UnderlineNavItem.module.css.js";
|
|
6
6
|
import { c } from "react-compiler-runtime";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { forwardRef, useContext, useRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/UnderlineNav/UnderlineNavItem.tsx
|
|
10
10
|
const UnderlineNavItem = /*#__PURE__*/ forwardRef((allProps, forwardedRef) => {
|
|
11
11
|
var _leadingVisual;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import VisuallyHidden_module_css_default from "./VisuallyHidden.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/VisuallyHidden/VisuallyHidden.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Provides a component that implements the "visually hidden" technique. This is
|
package/dist/_VisuallyHidden.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _VisuallyHidden_module_css_default from "./_VisuallyHidden.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/_VisuallyHidden.tsx
|
|
6
6
|
function VisuallyHidden(t0) {
|
|
7
7
|
const $ = c(14);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Header_module_css_default from "./Header.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/deprecated/ActionList/Header.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Contract for props passed to the `Header` component.
|