@primer/react 38.40.2-rc.fdfbe71e5 → 38.41.0-rc.61d283273
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 +11 -1
- package/dist/ActionBar/ActionBar.js +30 -33
- package/dist/ActionList/{ActionList-1ff5220c.css → ActionList-64885d7a.css} +2 -2
- package/dist/ActionList/ActionList-64885d7a.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/ActionList/Description.js +2 -2
- package/dist/ActionList/Divider.js +1 -1
- package/dist/ActionList/Group.js +12 -12
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -10
- package/dist/ActionList/Heading.js +1 -1
- package/dist/ActionList/Item.js +19 -19
- package/dist/ActionList/LinkItem.js +4 -4
- package/dist/ActionList/List.js +2 -2
- package/dist/ActionList/Selection.js +6 -6
- package/dist/ActionList/TrailingAction.js +3 -3
- package/dist/ActionList/Visuals.js +9 -9
- package/dist/ActionList/index.d.ts +1 -1
- package/dist/ActionList/shared.d.ts +1 -1
- package/dist/ActionMenu/ActionMenu.js +8 -11
- package/dist/AnchoredOverlay/AnchoredOverlay.js +4 -4
- package/dist/Autocomplete/Autocomplete.js +3 -3
- package/dist/Autocomplete/AutocompleteInput.js +1 -1
- package/dist/Autocomplete/AutocompleteMenu.js +111 -106
- package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
- package/dist/Avatar/Avatar.js +1 -1
- package/dist/AvatarStack/AvatarStack.js +3 -3
- package/dist/Banner/Banner.js +21 -21
- package/dist/BaseStyles.js +1 -1
- package/dist/Blankslate/Blankslate.js +10 -11
- package/dist/BranchName/BranchName.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +20 -29
- package/dist/Button/Button.js +1 -1
- package/dist/Button/ButtonBase-c8dab214.css +2 -0
- package/dist/Button/ButtonBase-c8dab214.css.map +1 -0
- package/dist/Button/ButtonBase.js +12 -9
- package/dist/Button/ButtonBase.module.css.js +1 -1
- package/dist/Button/IconButton.js +3 -3
- package/dist/Button/LinkButton.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +2 -3
- package/dist/Card/Card.js +16 -16
- package/dist/Checkbox/Checkbox.js +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
- package/dist/CircleBadge/CircleBadge.js +2 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -5
- package/dist/CounterLabel/CounterLabel.js +2 -2
- package/dist/DataTable/DataTable.js +7 -8
- package/dist/DataTable/ErrorDialog.js +1 -1
- package/dist/DataTable/Pagination.js +23 -23
- package/dist/DataTable/Table.js +25 -27
- package/dist/DataTable/TableGroup.js +10 -10
- package/dist/Details/Details.js +2 -2
- package/dist/Dialog/Dialog.js +20 -23
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/FeatureFlags/FeatureFlags.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +18 -19
- package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +10 -11
- package/dist/Flash/Flash.js +1 -4
- package/dist/FormControl/FormControl.js +8 -8
- package/dist/FormControl/FormControlCaption.js +1 -1
- package/dist/FormControl/FormControlLabel.js +1 -1
- package/dist/FormControl/FormControlLeadingVisual.js +1 -1
- package/dist/FormControl/_FormControlValidation.js +1 -1
- package/dist/Header/Header.js +3 -3
- package/dist/Heading/Heading.js +1 -1
- package/dist/Hidden/Hidden.js +1 -1
- package/dist/InlineMessage/InlineMessage.js +11 -11
- package/dist/KeybindingHint/KeybindingHint.js +3 -3
- package/dist/KeybindingHint/components/Chord.js +3 -3
- package/dist/KeybindingHint/components/Key.js +3 -3
- package/dist/KeybindingHint/components/Sequence.js +1 -1
- package/dist/KeybindingHint/platform.js +0 -8
- package/dist/Label/Label.js +1 -1
- package/dist/LabelGroup/LabelGroup.js +18 -18
- package/dist/Link/Link.js +1 -1
- package/dist/NavList/NavList.js +24 -24
- package/dist/Octicon/Octicon.js +1 -4
- package/dist/Overlay/Overlay.js +3 -3
- package/dist/PageHeader/PageHeader.js +21 -21
- package/dist/PageLayout/DragHandle.js +1 -1
- package/dist/PageLayout/PageLayout.js +26 -26
- package/dist/PageLayout/usePaneWidth.js +0 -5
- package/dist/Pagehead/Pagehead.js +1 -1
- package/dist/Pagination/Pagination.js +9 -10
- package/dist/Popover/Popover.js +3 -3
- package/dist/ProgressBar/ProgressBar.js +3 -3
- package/dist/Radio/Radio.js +1 -1
- package/dist/RadioGroup/RadioGroup.js +2 -2
- package/dist/RelativeTime/RelativeTime.js +1 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/SegmentedControl/SegmentedControlAction.js +6 -6
- package/dist/SegmentedControl/SegmentedControlButton.js +8 -8
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +5 -5
- package/dist/Select/Select.js +9 -9
- package/dist/SelectPanel/SelectPanel.js +24 -27
- package/dist/SelectPanel/SelectPanelMessage.js +5 -5
- package/dist/SideNav.js +2 -2
- package/dist/Skeleton/SkeletonBox.js +1 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
- package/dist/SkeletonText/SkeletonText.js +3 -3
- package/dist/Spinner/Spinner.js +5 -5
- package/dist/SplitPageLayout/SplitPageLayout.js +6 -6
- package/dist/Stack/Stack.js +2 -2
- package/dist/StateLabel/StateLabel.js +2 -2
- package/dist/SubNav/SubNav.js +5 -5
- package/dist/TabNav/TabNav.js +4 -10
- package/dist/Text/Text.js +1 -1
- package/dist/TextInput/TextInput.js +13 -13
- package/dist/TextInputWithTokens/TextInputWithTokens.js +12 -15
- package/dist/Textarea/Textarea.js +7 -7
- package/dist/ThemeProvider.js +1 -2
- package/dist/Timeline/Timeline.js +11 -14
- package/dist/ToggleSwitch/ToggleSwitch.js +18 -18
- package/dist/Token/IssueLabelToken.js +3 -3
- package/dist/Token/Token.js +7 -7
- package/dist/Token/TokenBase.js +1 -1
- package/dist/Token/_RemoveTokenButton.js +4 -5
- package/dist/Token/_TokenTextContainer.js +1 -1
- package/dist/Tooltip/Tooltip.js +2 -5
- package/dist/TooltipV2/Tooltip.js +7 -7
- package/dist/TopicTag/TopicTag.js +1 -1
- package/dist/TopicTag/TopicTagGroup.js +1 -1
- package/dist/TreeView/TreeView.js +52 -59
- package/dist/TreeView/useRovingTabIndex.js +1 -0
- package/dist/TreeView/useTypeahead.js +3 -3
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +18 -18
- package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/_VisuallyHidden.js +1 -1
- package/dist/deprecated/ActionList/Divider.js +1 -1
- package/dist/deprecated/ActionList/Group.js +2 -5
- package/dist/deprecated/ActionList/Header.js +2 -5
- package/dist/deprecated/ActionList/Item.js +17 -20
- package/dist/deprecated/ActionList/List.js +4 -13
- package/dist/deprecated/ActionMenu.js +4 -6
- package/dist/deprecated/DialogV1/Dialog.js +5 -5
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +4 -4
- package/dist/experimental/IssueLabel/IssueLabel.js +4 -4
- package/dist/experimental/SelectPanel2/SelectPanel.js +42 -49
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -9
- package/dist/experimental/index.js +1 -1
- package/dist/hooks/useMergedRefs.js +0 -12
- package/dist/hooks/useResponsiveValue.js +0 -5
- package/dist/hooks/useSlots.js +0 -48
- package/dist/internal/components/ButtonReset.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +9 -9
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +4 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
- package/dist/internal/components/ConditionalWrapper.js +2 -2
- package/dist/internal/components/InputLabel.js +3 -3
- package/dist/internal/components/InputValidation.js +4 -4
- package/dist/internal/components/OverflowObserverProvider.js +1 -1
- package/dist/internal/components/TextInputInnerAction.js +6 -6
- package/dist/internal/components/TextInputInnerVisualSlot.js +5 -5
- package/dist/internal/components/TextInputWrapper.js +2 -2
- package/dist/internal/components/ThemeProviderBase.js +3 -3
- package/dist/internal/components/UnderlineTabbedInterface.js +11 -11
- package/dist/internal/components/UnstyledTextInput.js +1 -1
- package/dist/internal/components/ValidationAnimationContainer.js +2 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/live-region/Announce.js +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 +1 -7
- package/dist/utils/modern-polymorphic.js +0 -10
- package/generated/components.json +13 -3
- package/generated/hooks.json +1 -1
- package/package.json +3 -3
- package/dist/ActionList/ActionList-1ff5220c.css.map +0 -1
- package/dist/Button/ButtonBase-014fae23.css +0 -2
- package/dist/Button/ButtonBase-014fae23.css.map +0 -1
|
@@ -72,7 +72,7 @@ const Root = (t0) => {
|
|
|
72
72
|
} else t11 = $[6];
|
|
73
73
|
let t12;
|
|
74
74
|
if ($[7] !== rest) {
|
|
75
|
-
t12 =
|
|
75
|
+
t12 = /* @__PURE__ */ jsx("div", {
|
|
76
76
|
className: t11,
|
|
77
77
|
children: rest
|
|
78
78
|
});
|
|
@@ -81,7 +81,7 @@ const Root = (t0) => {
|
|
|
81
81
|
} else t12 = $[8];
|
|
82
82
|
let t13;
|
|
83
83
|
if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t12) {
|
|
84
|
-
t13 =
|
|
84
|
+
t13 = /* @__PURE__ */ jsxs("div", {
|
|
85
85
|
ref: sidebarContentWrapperRef,
|
|
86
86
|
className: PageLayout_module_css_default.PageLayoutWrapper,
|
|
87
87
|
"data-width": containerWidth,
|
|
@@ -99,7 +99,7 @@ const Root = (t0) => {
|
|
|
99
99
|
} else t13 = $[13];
|
|
100
100
|
let t14;
|
|
101
101
|
if ($[14] !== className || $[15] !== dataComponent || $[16] !== padding || $[17] !== slots.sidebar || $[18] !== style || $[19] !== t13 || $[20] !== t8) {
|
|
102
|
-
t14 =
|
|
102
|
+
t14 = /* @__PURE__ */ jsxs(RootWrapper, {
|
|
103
103
|
style,
|
|
104
104
|
padding,
|
|
105
105
|
className,
|
|
@@ -118,7 +118,7 @@ const Root = (t0) => {
|
|
|
118
118
|
} else t14 = $[21];
|
|
119
119
|
let t15;
|
|
120
120
|
if ($[22] !== memoizedContextValue || $[23] !== t14) {
|
|
121
|
-
t15 =
|
|
121
|
+
t15 = /* @__PURE__ */ jsx(PageLayoutContext.Provider, {
|
|
122
122
|
value: memoizedContextValue,
|
|
123
123
|
children: t14
|
|
124
124
|
});
|
|
@@ -152,7 +152,7 @@ const RootWrapper = /*#__PURE__*/ memo((t0) => {
|
|
|
152
152
|
const t5 = hasSidebar || void 0;
|
|
153
153
|
let t6;
|
|
154
154
|
if ($[5] !== children || $[6] !== dataComponent || $[7] !== t3 || $[8] !== t4 || $[9] !== t5) {
|
|
155
|
-
t6 =
|
|
155
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
156
156
|
style: t3,
|
|
157
157
|
className: t4,
|
|
158
158
|
"data-component": dataComponent,
|
|
@@ -206,7 +206,7 @@ const HorizontalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
206
206
|
const t7 = t6;
|
|
207
207
|
let t8;
|
|
208
208
|
if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t7) {
|
|
209
|
-
t8 =
|
|
209
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
210
210
|
className: t2,
|
|
211
211
|
"data-component": "PageLayout.HorizontalDivider",
|
|
212
212
|
...t3,
|
|
@@ -246,7 +246,7 @@ const VerticalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
246
246
|
} else t4 = $[5];
|
|
247
247
|
let t5;
|
|
248
248
|
if ($[6] !== children || $[7] !== style || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
|
|
249
|
-
t5 =
|
|
249
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
250
250
|
className: t2,
|
|
251
251
|
"data-component": "PageLayout.VerticalDivider",
|
|
252
252
|
...t3,
|
|
@@ -279,7 +279,7 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
279
279
|
const t4 = t3;
|
|
280
280
|
let t5;
|
|
281
281
|
if ($[2] !== currentWidth || $[3] !== currentWidthRef || $[4] !== dragMaxWidthRef || $[5] !== dragStartClientXRef || $[6] !== dragStartWidthRef || $[7] !== getDefaultWidth || $[8] !== getMaxPaneWidth || $[9] !== handleRef || $[10] !== maxPaneWidth || $[11] !== minPaneWidth || $[12] !== position || $[13] !== resizable || $[14] !== saveWidth || $[15] !== sidebarContentWrapperRef || $[16] !== sidebarRef) {
|
|
282
|
-
t5 = resizable ?
|
|
282
|
+
t5 = resizable ? /* @__PURE__ */ jsx(DragHandle, {
|
|
283
283
|
handleRef,
|
|
284
284
|
dragTargetRef: sidebarRef,
|
|
285
285
|
contentWrapperRef: sidebarContentWrapperRef,
|
|
@@ -353,7 +353,7 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
353
353
|
} else t5 = $[17];
|
|
354
354
|
let t6;
|
|
355
355
|
if ($[18] !== position || $[19] !== t1 || $[20] !== t4 || $[21] !== t5) {
|
|
356
|
-
t6 =
|
|
356
|
+
t6 = /* @__PURE__ */ jsx(VerticalDivider, {
|
|
357
357
|
variant: t1,
|
|
358
358
|
position,
|
|
359
359
|
className: PageLayout_module_css_default.SidebarVerticalDivider,
|
|
@@ -422,7 +422,7 @@ const Header = (t0) => {
|
|
|
422
422
|
const t14 = t13;
|
|
423
423
|
let t15;
|
|
424
424
|
if ($[12] !== children || $[13] !== t14) {
|
|
425
|
-
t15 =
|
|
425
|
+
t15 = /* @__PURE__ */ jsx("div", {
|
|
426
426
|
className: PageLayout_module_css_default.HeaderContent,
|
|
427
427
|
style: t14,
|
|
428
428
|
children
|
|
@@ -441,7 +441,7 @@ const Header = (t0) => {
|
|
|
441
441
|
const t18 = t17;
|
|
442
442
|
let t19;
|
|
443
443
|
if ($[17] !== dividerProp || $[18] !== t18) {
|
|
444
|
-
t19 =
|
|
444
|
+
t19 = /* @__PURE__ */ jsx(HorizontalDivider, {
|
|
445
445
|
variant: dividerProp,
|
|
446
446
|
className: PageLayout_module_css_default.HeaderHorizontalDivider,
|
|
447
447
|
style: t18
|
|
@@ -452,7 +452,7 @@ const Header = (t0) => {
|
|
|
452
452
|
} else t19 = $[19];
|
|
453
453
|
let t20;
|
|
454
454
|
if ($[20] !== dataComponent || $[21] !== label || $[22] !== labelledBy || $[23] !== t11 || $[24] !== t15 || $[25] !== t19 || $[26] !== t7 || $[27] !== t8) {
|
|
455
|
-
t20 =
|
|
455
|
+
t20 = /* @__PURE__ */ jsxs("header", {
|
|
456
456
|
"aria-label": label,
|
|
457
457
|
"aria-labelledby": labelledBy,
|
|
458
458
|
"data-component": dataComponent,
|
|
@@ -506,7 +506,7 @@ const Content = (t0) => {
|
|
|
506
506
|
const t10 = t9;
|
|
507
507
|
let t11;
|
|
508
508
|
if ($[6] !== children || $[7] !== t10 || $[8] !== width) {
|
|
509
|
-
t11 =
|
|
509
|
+
t11 = /* @__PURE__ */ jsx("div", {
|
|
510
510
|
className: PageLayout_module_css_default.Content,
|
|
511
511
|
"data-width": width,
|
|
512
512
|
style: t10,
|
|
@@ -519,7 +519,7 @@ const Content = (t0) => {
|
|
|
519
519
|
} else t11 = $[9];
|
|
520
520
|
let t12;
|
|
521
521
|
if ($[10] !== Component || $[11] !== contentWrapperRef || $[12] !== dataComponent || $[13] !== label || $[14] !== labelledBy || $[15] !== style || $[16] !== t11 || $[17] !== t6 || $[18] !== t7) {
|
|
522
|
-
t12 =
|
|
522
|
+
t12 = /* @__PURE__ */ jsx(Component, {
|
|
523
523
|
ref: contentWrapperRef,
|
|
524
524
|
"aria-label": label,
|
|
525
525
|
"aria-labelledby": labelledBy,
|
|
@@ -701,7 +701,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
701
701
|
const t31 = t30;
|
|
702
702
|
let t32;
|
|
703
703
|
if ($[39] !== positionProp || $[40] !== t28 || $[41] !== t31) {
|
|
704
|
-
t32 =
|
|
704
|
+
t32 = /* @__PURE__ */ jsx(HorizontalDivider, {
|
|
705
705
|
variant: t28,
|
|
706
706
|
className: PageLayout_module_css_default.PaneHorizontalDivider,
|
|
707
707
|
style: t31,
|
|
@@ -754,7 +754,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
754
754
|
const t44 = t43;
|
|
755
755
|
let t45;
|
|
756
756
|
if ($[55] !== children || $[56] !== dataComponent || $[57] !== labelProp || $[58] !== mergedPaneRef || $[59] !== t33 || $[60] !== t34 || $[61] !== t35 || $[62] !== t36 || $[63] !== t44) {
|
|
757
|
-
t45 =
|
|
757
|
+
t45 = /* @__PURE__ */ jsx("div", {
|
|
758
758
|
ref: mergedPaneRef,
|
|
759
759
|
suppressHydrationWarning: t33,
|
|
760
760
|
...t34,
|
|
@@ -802,7 +802,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
802
802
|
const t49 = t48;
|
|
803
803
|
let t50;
|
|
804
804
|
if ($[71] !== contentWrapperRef || $[72] !== currentWidth || $[73] !== currentWidthRef || $[74] !== getDefaultWidth || $[75] !== getMaxPaneWidth || $[76] !== maxPaneWidth || $[77] !== minPaneWidth || $[78] !== paneRef || $[79] !== position || $[80] !== resizable || $[81] !== saveWidth) {
|
|
805
|
-
t50 = resizable ?
|
|
805
|
+
t50 = resizable ? /* @__PURE__ */ jsx(DragHandle, {
|
|
806
806
|
handleRef,
|
|
807
807
|
dragTargetRef: paneRef,
|
|
808
808
|
contentWrapperRef,
|
|
@@ -872,7 +872,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
872
872
|
} else t50 = $[82];
|
|
873
873
|
let t51;
|
|
874
874
|
if ($[83] !== positionProp || $[84] !== resizable || $[85] !== t46 || $[86] !== t49 || $[87] !== t50) {
|
|
875
|
-
t51 =
|
|
875
|
+
t51 = /* @__PURE__ */ jsx(VerticalDivider, {
|
|
876
876
|
variant: t46,
|
|
877
877
|
draggable: resizable,
|
|
878
878
|
position: positionProp,
|
|
@@ -889,7 +889,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
889
889
|
} else t51 = $[88];
|
|
890
890
|
let t52;
|
|
891
891
|
if ($[89] !== t19 || $[90] !== t24 || $[91] !== t25 || $[92] !== t26 || $[93] !== t27 || $[94] !== t32 || $[95] !== t45 || $[96] !== t51) {
|
|
892
|
-
t52 =
|
|
892
|
+
t52 = /* @__PURE__ */ jsxs("div", {
|
|
893
893
|
className: t19,
|
|
894
894
|
style: t24,
|
|
895
895
|
...t25,
|
|
@@ -1001,7 +1001,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1001
1001
|
const t18 = responsiveVariant !== "default" ? responsiveVariant : void 0;
|
|
1002
1002
|
let t19;
|
|
1003
1003
|
if ($[20] !== currentWidth || $[21] !== currentWidthRef || $[22] !== divider || $[23] !== getDefaultWidth || $[24] !== getMaxPaneWidth || $[25] !== maxPaneWidth || $[26] !== minPaneWidth || $[27] !== position || $[28] !== resizable || $[29] !== saveWidth || $[30] !== sidebarRef) {
|
|
1004
|
-
t19 = position === "end" &&
|
|
1004
|
+
t19 = position === "end" && /* @__PURE__ */ jsx(SidebarDivider, {
|
|
1005
1005
|
position,
|
|
1006
1006
|
divider,
|
|
1007
1007
|
resizable,
|
|
@@ -1073,7 +1073,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1073
1073
|
const t31 = t30;
|
|
1074
1074
|
let t32;
|
|
1075
1075
|
if ($[44] !== children || $[45] !== dataComponent || $[46] !== labelProp || $[47] !== mergedSidebarRef || $[48] !== t20 || $[49] !== t21 || $[50] !== t22 || $[51] !== t23 || $[52] !== t31) {
|
|
1076
|
-
t32 =
|
|
1076
|
+
t32 = /* @__PURE__ */ jsx("div", {
|
|
1077
1077
|
ref: mergedSidebarRef,
|
|
1078
1078
|
suppressHydrationWarning: t20,
|
|
1079
1079
|
...t21,
|
|
@@ -1098,7 +1098,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1098
1098
|
} else t32 = $[53];
|
|
1099
1099
|
let t33;
|
|
1100
1100
|
if ($[54] !== currentWidth || $[55] !== currentWidthRef || $[56] !== divider || $[57] !== getDefaultWidth || $[58] !== getMaxPaneWidth || $[59] !== maxPaneWidth || $[60] !== minPaneWidth || $[61] !== position || $[62] !== resizable || $[63] !== saveWidth || $[64] !== sidebarRef) {
|
|
1101
|
-
t33 = position === "start" &&
|
|
1101
|
+
t33 = position === "start" && /* @__PURE__ */ jsx(SidebarDivider, {
|
|
1102
1102
|
position,
|
|
1103
1103
|
divider,
|
|
1104
1104
|
resizable,
|
|
@@ -1130,7 +1130,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1130
1130
|
} else t33 = $[65];
|
|
1131
1131
|
let t34;
|
|
1132
1132
|
if ($[66] !== position || $[67] !== t12 || $[68] !== t15 || $[69] !== t16 || $[70] !== t17 || $[71] !== t18 || $[72] !== t19 || $[73] !== t32 || $[74] !== t33) {
|
|
1133
|
-
t34 =
|
|
1133
|
+
t34 = /* @__PURE__ */ jsxs("div", {
|
|
1134
1134
|
className: t12,
|
|
1135
1135
|
style: t15,
|
|
1136
1136
|
...t16,
|
|
@@ -1211,7 +1211,7 @@ const Footer = (t0) => {
|
|
|
1211
1211
|
const t14 = t13;
|
|
1212
1212
|
let t15;
|
|
1213
1213
|
if ($[12] !== dividerProp || $[13] !== t14) {
|
|
1214
|
-
t15 =
|
|
1214
|
+
t15 = /* @__PURE__ */ jsx(HorizontalDivider, {
|
|
1215
1215
|
className: PageLayout_module_css_default.FooterHorizontalDivider,
|
|
1216
1216
|
style: t14,
|
|
1217
1217
|
variant: dividerProp
|
|
@@ -1230,7 +1230,7 @@ const Footer = (t0) => {
|
|
|
1230
1230
|
const t18 = t17;
|
|
1231
1231
|
let t19;
|
|
1232
1232
|
if ($[17] !== children || $[18] !== t18) {
|
|
1233
|
-
t19 =
|
|
1233
|
+
t19 = /* @__PURE__ */ jsx("div", {
|
|
1234
1234
|
className: PageLayout_module_css_default.FooterContent,
|
|
1235
1235
|
style: t18,
|
|
1236
1236
|
children
|
|
@@ -1241,7 +1241,7 @@ const Footer = (t0) => {
|
|
|
1241
1241
|
} else t19 = $[19];
|
|
1242
1242
|
let t20;
|
|
1243
1243
|
if ($[20] !== dataComponent || $[21] !== label || $[22] !== labelledBy || $[23] !== t11 || $[24] !== t15 || $[25] !== t19 || $[26] !== t7 || $[27] !== t8) {
|
|
1244
|
-
t20 =
|
|
1244
|
+
t20 = /* @__PURE__ */ jsxs("footer", {
|
|
1245
1245
|
"aria-label": label,
|
|
1246
1246
|
"aria-labelledby": labelledBy,
|
|
1247
1247
|
"data-component": dataComponent,
|
|
@@ -5,11 +5,6 @@ import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
|
5
5
|
import React, { startTransition } from "react";
|
|
6
6
|
//#region src/PageLayout/usePaneWidth.ts
|
|
7
7
|
/**
|
|
8
|
-
* Width value for the pane - defines constraints and defaults only.
|
|
9
|
-
* - `PaneWidth`: Preset size ('small' | 'medium' | 'large')
|
|
10
|
-
* - `CustomWidthOptions`: Explicit min/default/max constraints
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
8
|
* Default value for --pane-max-width-diff CSS variable.
|
|
14
9
|
* Imported from CSS to ensure JS fallback matches the CSS default.
|
|
15
10
|
*/
|
|
@@ -28,7 +28,7 @@ const Pagehead = (t0) => {
|
|
|
28
28
|
} else t2 = $[5];
|
|
29
29
|
let t3;
|
|
30
30
|
if ($[6] !== BaseComponent || $[7] !== rest || $[8] !== t2) {
|
|
31
|
-
t3 =
|
|
31
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
32
32
|
className: t2,
|
|
33
33
|
"data-component": "Pagehead",
|
|
34
34
|
...rest
|
|
@@ -2,8 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
3
3
|
import { buildComponentData, buildPaginationModel } from "./model.js";
|
|
4
4
|
import Pagination_module_css_default from "./Pagination.module.css.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "@primer/octicons-react";
|
|
9
8
|
//#region src/Pagination/Pagination.tsx
|
|
@@ -17,19 +16,19 @@ const PageLabel = (t0) => {
|
|
|
17
16
|
const { children, direction } = t0;
|
|
18
17
|
let t1;
|
|
19
18
|
if ($[0] !== direction) {
|
|
20
|
-
t1 = direction === "page-prev" ?
|
|
19
|
+
t1 = direction === "page-prev" ? /* @__PURE__ */ jsx(ChevronLeftIcon, { "data-component": "Pagination.PreviousPageIcon" }) : null;
|
|
21
20
|
$[0] = direction;
|
|
22
21
|
$[1] = t1;
|
|
23
22
|
} else t1 = $[1];
|
|
24
23
|
let t2;
|
|
25
24
|
if ($[2] !== direction) {
|
|
26
|
-
t2 = direction === "page-next" ?
|
|
25
|
+
t2 = direction === "page-next" ? /* @__PURE__ */ jsx(ChevronRightIcon, { "data-component": "Pagination.NextPageIcon" }) : null;
|
|
27
26
|
$[2] = direction;
|
|
28
27
|
$[3] = t2;
|
|
29
28
|
} else t2 = $[3];
|
|
30
29
|
let t3;
|
|
31
30
|
if ($[4] !== children || $[5] !== t1 || $[6] !== t2) {
|
|
32
|
-
t3 =
|
|
31
|
+
t3 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33
32
|
t1,
|
|
34
33
|
children,
|
|
35
34
|
t2
|
|
@@ -71,7 +70,7 @@ function usePaginationPages(t0) {
|
|
|
71
70
|
const { props, key, content } = buildComponentData(page, hrefBuilder, pageChange(page.num));
|
|
72
71
|
if (renderPage && props.as !== "span") return renderPage({
|
|
73
72
|
key,
|
|
74
|
-
children:
|
|
73
|
+
children: /* @__PURE__ */ jsx(PageLabel, {
|
|
75
74
|
direction: key,
|
|
76
75
|
children: content
|
|
77
76
|
}),
|
|
@@ -82,11 +81,11 @@ function usePaginationPages(t0) {
|
|
|
82
81
|
});
|
|
83
82
|
const Component = props.as || "a";
|
|
84
83
|
const dataComponentAttribute = props.rel === "prev" ? "Pagination.PreviousPage" : props.rel === "next" ? "Pagination.NextPage" : "Pagination.Page";
|
|
85
|
-
return
|
|
84
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
86
85
|
className: clsx(Pagination_module_css_default.Page),
|
|
87
86
|
"data-component": dataComponentAttribute,
|
|
88
87
|
...props,
|
|
89
|
-
children:
|
|
88
|
+
children: /* @__PURE__ */ jsx(PageLabel, {
|
|
90
89
|
direction: key,
|
|
91
90
|
children: content
|
|
92
91
|
})
|
|
@@ -185,7 +184,7 @@ function Pagination(t0) {
|
|
|
185
184
|
} else t8 = $[23];
|
|
186
185
|
let t9;
|
|
187
186
|
if ($[24] !== pageElements || $[25] !== t8) {
|
|
188
|
-
t9 =
|
|
187
|
+
t9 = /* @__PURE__ */ jsx("div", {
|
|
189
188
|
className: Pagination_module_css_default.TablePaginationSteps,
|
|
190
189
|
"data-hidden-viewport-ranges": t8,
|
|
191
190
|
children: pageElements
|
|
@@ -196,7 +195,7 @@ function Pagination(t0) {
|
|
|
196
195
|
} else t9 = $[26];
|
|
197
196
|
let t10;
|
|
198
197
|
if ($[27] !== rest || $[28] !== t7 || $[29] !== t9) {
|
|
199
|
-
t10 =
|
|
198
|
+
t10 = /* @__PURE__ */ jsx("nav", {
|
|
200
199
|
className: t7,
|
|
201
200
|
"aria-label": "Pagination",
|
|
202
201
|
"data-component": "Pagination",
|
package/dist/Popover/Popover.js
CHANGED
|
@@ -43,7 +43,7 @@ const Popover = /*#__PURE__*/ React.forwardRef(function Popover(t0, forwardRef)
|
|
|
43
43
|
} else t5 = $[7];
|
|
44
44
|
let t6;
|
|
45
45
|
if ($[8] !== caret || $[9] !== forwardRef || $[10] !== props || $[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
|
|
46
|
-
t6 =
|
|
46
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
47
47
|
...props,
|
|
48
48
|
ref: forwardRef,
|
|
49
49
|
"data-component": "Popover",
|
|
@@ -62,7 +62,7 @@ const Popover = /*#__PURE__*/ React.forwardRef(function Popover(t0, forwardRef)
|
|
|
62
62
|
} else t6 = $[14];
|
|
63
63
|
let t7;
|
|
64
64
|
if ($[15] !== t2 || $[16] !== t6) {
|
|
65
|
-
t7 =
|
|
65
|
+
t7 = /* @__PURE__ */ jsx(PopoverContext.Provider, {
|
|
66
66
|
value: t2,
|
|
67
67
|
children: t6
|
|
68
68
|
});
|
|
@@ -147,7 +147,7 @@ const PopoverContent = (t0) => {
|
|
|
147
147
|
} else t7 = $[16];
|
|
148
148
|
let t8;
|
|
149
149
|
if ($[17] !== height || $[18] !== props || $[19] !== t7 || $[20] !== width) {
|
|
150
|
-
t8 =
|
|
150
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
151
151
|
ref: divRef,
|
|
152
152
|
"data-component": "Popover.Content",
|
|
153
153
|
"data-width": width,
|
|
@@ -91,7 +91,7 @@ const Item = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
|
|
|
91
91
|
} else t4 = $[24];
|
|
92
92
|
let t5;
|
|
93
93
|
if ($[25] !== ariaAttributes || $[26] !== ariaLabel || $[27] !== forwardRef || $[28] !== rest || $[29] !== t3 || $[30] !== t4) {
|
|
94
|
-
t5 =
|
|
94
|
+
t5 = /* @__PURE__ */ jsx("span", {
|
|
95
95
|
"data-component": "ProgressBar.Item",
|
|
96
96
|
className: t3,
|
|
97
97
|
...rest,
|
|
@@ -171,7 +171,7 @@ const ProgressBar = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
|
|
|
171
171
|
const t5 = inline ? "inline" : "block";
|
|
172
172
|
let t6;
|
|
173
173
|
if ($[16] !== animated || $[17] !== ariaLabel || $[18] !== ariaValueNow || $[19] !== ariaValueText || $[20] !== bg || $[21] !== children || $[22] !== progress || $[23] !== validChildren) {
|
|
174
|
-
t6 = validChildren ? children :
|
|
174
|
+
t6 = validChildren ? children : /* @__PURE__ */ jsx(Item, {
|
|
175
175
|
"data-animated": animated,
|
|
176
176
|
progress,
|
|
177
177
|
"aria-label": ariaLabel,
|
|
@@ -191,7 +191,7 @@ const ProgressBar = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
|
|
|
191
191
|
} else t6 = $[24];
|
|
192
192
|
let t7;
|
|
193
193
|
if ($[25] !== barSize || $[26] !== forwardRef || $[27] !== rest || $[28] !== t4 || $[29] !== t5 || $[30] !== t6) {
|
|
194
|
-
t7 =
|
|
194
|
+
t7 = /* @__PURE__ */ jsx("span", {
|
|
195
195
|
ref: forwardRef,
|
|
196
196
|
"data-component": "ProgressBar",
|
|
197
197
|
className: t4,
|
package/dist/Radio/Radio.js
CHANGED
|
@@ -67,7 +67,7 @@ const Radio = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
67
67
|
} else t4 = $[14];
|
|
68
68
|
let t5;
|
|
69
69
|
if ($[15] !== checked || $[16] !== disabled || $[17] !== handleOnChange || $[18] !== name || $[19] !== ref || $[20] !== required || $[21] !== rest || $[22] !== t3 || $[23] !== t4 || $[24] !== value) {
|
|
70
|
-
t5 =
|
|
70
|
+
t5 = /* @__PURE__ */ jsx("input", {
|
|
71
71
|
type: "radio",
|
|
72
72
|
value,
|
|
73
73
|
name,
|
|
@@ -70,7 +70,7 @@ const RadioGroup = (t0) => {
|
|
|
70
70
|
} else t3 = $[15];
|
|
71
71
|
let t4;
|
|
72
72
|
if ($[16] !== children || $[17] !== disabled || $[18] !== rest) {
|
|
73
|
-
t4 =
|
|
73
|
+
t4 = /* @__PURE__ */ jsx(CheckboxOrRadioGroup_default, {
|
|
74
74
|
disabled,
|
|
75
75
|
"data-component": "RadioGroup",
|
|
76
76
|
...rest,
|
|
@@ -83,7 +83,7 @@ const RadioGroup = (t0) => {
|
|
|
83
83
|
} else t4 = $[19];
|
|
84
84
|
let t5;
|
|
85
85
|
if ($[20] !== t3 || $[21] !== t4) {
|
|
86
|
-
t5 =
|
|
86
|
+
t5 = /* @__PURE__ */ jsx(RadioGroupContext.Provider, {
|
|
87
87
|
value: t3,
|
|
88
88
|
children: t4
|
|
89
89
|
});
|
|
@@ -52,7 +52,7 @@ function RelativeTime(t0) {
|
|
|
52
52
|
} else t2 = $[10];
|
|
53
53
|
let t3;
|
|
54
54
|
if ($[11] !== date || $[12] !== props || $[13] !== t1 || $[14] !== t2) {
|
|
55
|
-
t3 =
|
|
55
|
+
t3 = /* @__PURE__ */ jsx(RelativeTimeComponent, {
|
|
56
56
|
...props,
|
|
57
57
|
date,
|
|
58
58
|
"no-title": t1,
|
|
@@ -51,7 +51,7 @@ function ScrollableRegion(t0) {
|
|
|
51
51
|
} else t2 = $[11];
|
|
52
52
|
let t3;
|
|
53
53
|
if ($[12] !== children || $[13] !== regionProps || $[14] !== rest || $[15] !== t2) {
|
|
54
|
-
t3 =
|
|
54
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
55
55
|
...rest,
|
|
56
56
|
...regionProps,
|
|
57
57
|
ref,
|
|
@@ -90,22 +90,22 @@ const Root = (t0) => {
|
|
|
90
90
|
$[12] = t3;
|
|
91
91
|
} else t3 = $[12];
|
|
92
92
|
const hasDropdownVariant = t3;
|
|
93
|
-
const dropdownContent = hasDropdownVariant &&
|
|
93
|
+
const dropdownContent = hasDropdownVariant && /* @__PURE__ */ jsx("div", {
|
|
94
94
|
className: SegmentedControl_module_css_default.DropdownContainer,
|
|
95
95
|
...getResponsiveAttributes("variant", variant),
|
|
96
|
-
children:
|
|
96
|
+
children: /* @__PURE__ */ jsxs(ActionMenu, { children: [/* @__PURE__ */ jsx(ActionMenu.Button, {
|
|
97
97
|
"aria-label": ariaLabel && `${getChildText(selectedChild)}, ${ariaLabel}`,
|
|
98
98
|
leadingVisual: getChildIcon(selectedChild),
|
|
99
99
|
children: getChildText(selectedChild)
|
|
100
|
-
}),
|
|
100
|
+
}), /* @__PURE__ */ jsx(ActionMenu.Overlay, {
|
|
101
101
|
"aria-labelledby": ariaLabelledby,
|
|
102
|
-
children:
|
|
102
|
+
children: /* @__PURE__ */ jsxs(ActionList, {
|
|
103
103
|
selectionVariant: "single",
|
|
104
104
|
children: [segmentChildren.map((child_2, index_0) => {
|
|
105
105
|
var _segmentIndices$get;
|
|
106
106
|
if (/*#__PURE__*/ React.isValidElement(child_2) && isSlot(child_2, SegmentedControlDivider)) {
|
|
107
107
|
var _child_2$key;
|
|
108
|
-
return
|
|
108
|
+
return /* @__PURE__ */ jsx(ActionList.Divider, {
|
|
109
109
|
className: child_2.props.className,
|
|
110
110
|
style: child_2.props.style
|
|
111
111
|
}, (_child_2$key = child_2.key) !== null && _child_2$key !== void 0 ? _child_2$key : `segmented-control-divider-${index_0}`);
|
|
@@ -113,7 +113,7 @@ const Root = (t0) => {
|
|
|
113
113
|
const ChildIcon = getChildIcon(child_2);
|
|
114
114
|
if (!/*#__PURE__*/ React.isValidElement(child_2)) return null;
|
|
115
115
|
const segmentIndex = (_segmentIndices$get = segmentIndices.get(child_2)) !== null && _segmentIndices$get !== void 0 ? _segmentIndices$get : -1;
|
|
116
|
-
return
|
|
116
|
+
return /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
117
117
|
selected: segmentIndex === selectedIndex,
|
|
118
118
|
onSelect: (event) => {
|
|
119
119
|
isUncontrolled && setSelectedIndexInternalState(segmentIndex);
|
|
@@ -126,7 +126,7 @@ const Root = (t0) => {
|
|
|
126
126
|
getChildText(child_2)
|
|
127
127
|
]
|
|
128
128
|
}, `segmented-control-action-btn-${index_0}`);
|
|
129
|
-
}), actionChild &&
|
|
129
|
+
}), actionChild && /* @__PURE__ */ jsx(SegmentedControlActionContext.Provider, {
|
|
130
130
|
value: "menu",
|
|
131
131
|
children: actionChild
|
|
132
132
|
})]
|
|
@@ -186,7 +186,7 @@ const Root = (t0) => {
|
|
|
186
186
|
});
|
|
187
187
|
let t9;
|
|
188
188
|
if ($[19] !== ariaLabel || $[20] !== ariaLabelledby || $[21] !== rest || $[22] !== size || $[23] !== t4 || $[24] !== t5 || $[25] !== t6 || $[26] !== t8) {
|
|
189
|
-
t9 =
|
|
189
|
+
t9 = /* @__PURE__ */ jsx("ul", {
|
|
190
190
|
"aria-label": ariaLabel,
|
|
191
191
|
"aria-labelledby": ariaLabelledby,
|
|
192
192
|
ref: segmentedControlContainerRef,
|
|
@@ -211,10 +211,10 @@ const Root = (t0) => {
|
|
|
211
211
|
const segmentedControlContent = t9;
|
|
212
212
|
let t10;
|
|
213
213
|
if ($[28] !== actionChild || $[29] !== variant) {
|
|
214
|
-
t10 = actionChild &&
|
|
214
|
+
t10 = actionChild && /* @__PURE__ */ jsx("div", {
|
|
215
215
|
className: SegmentedControl_module_css_default.InlineAction,
|
|
216
216
|
...getResponsiveAttributes("variant", variant),
|
|
217
|
-
children:
|
|
217
|
+
children: /* @__PURE__ */ jsx(SegmentedControlActionContext.Provider, {
|
|
218
218
|
value: "inline",
|
|
219
219
|
children: actionChild
|
|
220
220
|
})
|
|
@@ -226,7 +226,7 @@ const Root = (t0) => {
|
|
|
226
226
|
const inlineActionContent = t10;
|
|
227
227
|
let t11;
|
|
228
228
|
if ($[31] !== actionChild || $[32] !== dropdownContent || $[33] !== fullWidth || $[34] !== hasDropdownVariant || $[35] !== inlineActionContent || $[36] !== segmentedControlContent || $[37] !== size) {
|
|
229
|
-
t11 = hasDropdownVariant || actionChild ?
|
|
229
|
+
t11 = hasDropdownVariant || actionChild ? /* @__PURE__ */ jsxs("div", {
|
|
230
230
|
className: SegmentedControl_module_css_default.DropdownGroup,
|
|
231
231
|
"data-size": size,
|
|
232
232
|
...getResponsiveAttributes("full-width", fullWidth),
|
|
@@ -275,13 +275,13 @@ function _temp6(childArg) {
|
|
|
275
275
|
const leadingVisual = (_childArg$props$leadi = childArg.props.leadingVisual) !== null && _childArg$props$leadi !== void 0 ? _childArg$props$leadi : childArg.props.leadingIcon;
|
|
276
276
|
if (leadingVisual) {
|
|
277
277
|
if (isElement(leadingVisual)) return leadingVisual;
|
|
278
|
-
return
|
|
278
|
+
return /* @__PURE__ */ jsx(leadingVisual, {});
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
if (/*#__PURE__*/ React.isValidElement(childArg) && (childArg.type === SegmentedControlIconButton || isSlot(childArg, SegmentedControlIconButton))) {
|
|
282
282
|
if (isElement(childArg.props.icon)) return childArg.props.icon;
|
|
283
283
|
const Icon = childArg.props.icon;
|
|
284
|
-
return
|
|
284
|
+
return /* @__PURE__ */ jsx(Icon, {});
|
|
285
285
|
}
|
|
286
286
|
return null;
|
|
287
287
|
}
|
|
@@ -21,7 +21,7 @@ const SegmentedControlMenuAction = (t0) => {
|
|
|
21
21
|
}
|
|
22
22
|
let t1;
|
|
23
23
|
if ($[3] !== children || $[4] !== props) {
|
|
24
|
-
t1 =
|
|
24
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
25
25
|
...props,
|
|
26
26
|
"data-component": "SegmentedControl.Action",
|
|
27
27
|
children
|
|
@@ -38,7 +38,7 @@ const SegmentedControlAction = (props) => {
|
|
|
38
38
|
if (useContext(SegmentedControlActionContext) === "menu") {
|
|
39
39
|
let t0;
|
|
40
40
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41
|
-
t0 =
|
|
41
|
+
t0 = /* @__PURE__ */ jsx(ActionList.Divider, {});
|
|
42
42
|
$[0] = t0;
|
|
43
43
|
} else t0 = $[0];
|
|
44
44
|
let t1;
|
|
@@ -52,13 +52,13 @@ const SegmentedControlAction = (props) => {
|
|
|
52
52
|
} else t1 = $[2];
|
|
53
53
|
let t2;
|
|
54
54
|
if ($[3] !== Icon) {
|
|
55
|
-
t2 =
|
|
55
|
+
t2 = /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(Icon, {}) });
|
|
56
56
|
$[3] = Icon;
|
|
57
57
|
$[4] = t2;
|
|
58
58
|
} else t2 = $[4];
|
|
59
59
|
let t3;
|
|
60
60
|
if ($[5] !== disabled || $[6] !== label || $[7] !== loading || $[8] !== t1 || $[9] !== t2) {
|
|
61
|
-
t3 =
|
|
61
|
+
t3 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t0, /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
62
62
|
role: "menuitem",
|
|
63
63
|
disabled,
|
|
64
64
|
loading,
|
|
@@ -83,10 +83,10 @@ const SegmentedControlAction = (props) => {
|
|
|
83
83
|
} else t0 = $[12];
|
|
84
84
|
let t1;
|
|
85
85
|
if ($[13] !== Icon || $[14] !== disabled || $[15] !== label || $[16] !== loading || $[17] !== t0) {
|
|
86
|
-
t1 =
|
|
86
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
87
87
|
className: SegmentedControl_module_css_default.ActionItem,
|
|
88
88
|
"data-component": "SegmentedControl.Action",
|
|
89
|
-
children:
|
|
89
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
90
90
|
"aria-label": label,
|
|
91
91
|
className: SegmentedControl_module_css_default.ActionButton,
|
|
92
92
|
disabled,
|
|
@@ -77,9 +77,9 @@ const SegmentedControlButton = (t0) => {
|
|
|
77
77
|
} else t5 = $[15];
|
|
78
78
|
let t6;
|
|
79
79
|
if ($[16] !== LeadingVisual) {
|
|
80
|
-
t6 = LeadingVisual &&
|
|
80
|
+
t6 = LeadingVisual && /* @__PURE__ */ jsx("div", {
|
|
81
81
|
className: SegmentedControl_module_css_default.LeadingIcon,
|
|
82
|
-
children: isElement(LeadingVisual) ? LeadingVisual :
|
|
82
|
+
children: isElement(LeadingVisual) ? LeadingVisual : /* @__PURE__ */ jsx(LeadingVisual, {})
|
|
83
83
|
});
|
|
84
84
|
$[16] = LeadingVisual;
|
|
85
85
|
$[17] = t6;
|
|
@@ -91,7 +91,7 @@ const SegmentedControlButton = (t0) => {
|
|
|
91
91
|
} else t7 = $[18];
|
|
92
92
|
let t8;
|
|
93
93
|
if ($[19] !== children) {
|
|
94
|
-
t8 =
|
|
94
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
95
95
|
className: t7,
|
|
96
96
|
"data-text": children,
|
|
97
97
|
children
|
|
@@ -101,16 +101,16 @@ const SegmentedControlButton = (t0) => {
|
|
|
101
101
|
} else t8 = $[20];
|
|
102
102
|
let t9;
|
|
103
103
|
if ($[21] !== count) {
|
|
104
|
-
t9 = count !== void 0 &&
|
|
104
|
+
t9 = count !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
105
105
|
className: SegmentedControl_module_css_default.Counter,
|
|
106
|
-
children:
|
|
106
|
+
children: /* @__PURE__ */ jsx(CounterLabel, { children: count })
|
|
107
107
|
});
|
|
108
108
|
$[21] = count;
|
|
109
109
|
$[22] = t9;
|
|
110
110
|
} else t9 = $[22];
|
|
111
111
|
let t10;
|
|
112
112
|
if ($[23] !== t6 || $[24] !== t8 || $[25] !== t9) {
|
|
113
|
-
t10 =
|
|
113
|
+
t10 = /* @__PURE__ */ jsxs("span", {
|
|
114
114
|
className: t5,
|
|
115
115
|
children: [
|
|
116
116
|
t6,
|
|
@@ -125,7 +125,7 @@ const SegmentedControlButton = (t0) => {
|
|
|
125
125
|
} else t10 = $[26];
|
|
126
126
|
let t11;
|
|
127
127
|
if ($[27] !== rest || $[28] !== selected || $[29] !== t10 || $[30] !== t3 || $[31] !== t4) {
|
|
128
|
-
t11 =
|
|
128
|
+
t11 = /* @__PURE__ */ jsx("button", {
|
|
129
129
|
"aria-pressed": selected,
|
|
130
130
|
"aria-disabled": t3,
|
|
131
131
|
className: t4,
|
|
@@ -142,7 +142,7 @@ const SegmentedControlButton = (t0) => {
|
|
|
142
142
|
} else t11 = $[32];
|
|
143
143
|
let t12;
|
|
144
144
|
if ($[33] !== t11 || $[34] !== t2) {
|
|
145
|
-
t12 =
|
|
145
|
+
t12 = /* @__PURE__ */ jsx("li", {
|
|
146
146
|
className: t1,
|
|
147
147
|
"data-selected": t2,
|
|
148
148
|
"data-component": "SegmentedControl.Button",
|
|
@@ -6,7 +6,7 @@ const SegmentedControlDivider = (t0) => {
|
|
|
6
6
|
const { className, style } = t0;
|
|
7
7
|
let t1;
|
|
8
8
|
if ($[0] !== className || $[1] !== style) {
|
|
9
|
-
t1 =
|
|
9
|
+
t1 = /* @__PURE__ */ jsx("li", {
|
|
10
10
|
"aria-hidden": "true",
|
|
11
11
|
className,
|
|
12
12
|
"data-component": "SegmentedControl.Divider",
|