@gearbox-protocol/ui-kit 4.2.1 → 4.4.0
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/dist/cjs/components/base/details-view/details-view.cjs +1 -1
- package/dist/cjs/components/base/details-view/index.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/base/details-view/details-view.js +40 -56
- package/dist/esm/components/base/details-view/index.js +8 -7
- package/dist/esm/components/base/index.js +127 -126
- package/dist/esm/components/base/manage-pane/manage-pane.js +89 -85
- package/dist/esm/components/base/tabber/tabber.js +85 -95
- package/dist/esm/components/index.js +413 -412
- package/dist/esm/index.js +459 -458
- package/dist/globals.css +1 -1
- package/dist/types/components/base/details-view/details-view.d.ts +6 -5
- package/dist/types/components/base/tabber/tabber.d.ts +1 -8
- package/package.json +1 -1
- package/dist/cjs/components/base/tabber/is-tabber.cjs +0 -1
- package/dist/esm/components/base/tabber/is-tabber.js +0 -8
- package/dist/types/components/base/tabber/is-tabber.d.ts +0 -6
|
@@ -2,154 +2,155 @@ import { AmountInput as t } from "./amount-input/amount-input.js";
|
|
|
2
2
|
import { BorrowRateBlock as a } from "./borrow-rate-block/borrow-rate-block.js";
|
|
3
3
|
import { BorrowRateBlockTest as p } from "./borrow-rate-block/constants.js";
|
|
4
4
|
import { ChartWithSideCard as f } from "./chart-with-side-card/chart-with-side-card.js";
|
|
5
|
-
import { ChartWithSideCardTest as
|
|
5
|
+
import { ChartWithSideCardTest as s } from "./chart-with-side-card/constants.js";
|
|
6
6
|
import { DetailedPageTitle as T } from "./detailed-page-title/detailed-page-title.js";
|
|
7
7
|
import { AsideAlignAnchor as d } from "./details-view/detail-aside/detail-aside-scope.js";
|
|
8
|
-
import { DetailsView as g, DetailsViewLeftPane as c, DetailsViewManagePane as u } from "./details-view/details-view.js";
|
|
8
|
+
import { DetailsView as g, DetailsViewLeftPane as c, DetailsViewManagePane as u, DetailsViewManagePaneSlot as B } from "./details-view/details-view.js";
|
|
9
9
|
import { HealthFactorBlockTest as k } from "./health-factor-block/constants.js";
|
|
10
|
-
import { HealthFactorBlock as
|
|
11
|
-
import { HistoryChart as
|
|
12
|
-
import { InfoLine as
|
|
13
|
-
import { LeverageInput as
|
|
14
|
-
import { LeveragePresetChipsTest as
|
|
15
|
-
import { LeveragePresetChips as
|
|
16
|
-
import { LiquidationParamsTableTest as
|
|
17
|
-
import { LiquidationParamsTable as
|
|
18
|
-
import { LiquidationPriceBlockTest as
|
|
19
|
-
import { LiquidationPriceBlock as
|
|
20
|
-
import { ManagePane as
|
|
21
|
-
import { MoreAccordionTest as
|
|
22
|
-
import { MoreAccordion as
|
|
23
|
-
import { NestedInfoStackTest as
|
|
24
|
-
import { NestedInfoStack as
|
|
25
|
-
import { PageHeadProvider as
|
|
26
|
-
import { PoolApyBreakdownCardTest as
|
|
27
|
-
import { PoolApyBreakdownCard as
|
|
28
|
-
import { PositionAssetsTest as
|
|
29
|
-
import { PositionAssets as
|
|
30
|
-
import { ReviewButton as
|
|
31
|
-
import { SectionHeading as
|
|
32
|
-
import { SegmentedTabs as
|
|
33
|
-
import { Stack as
|
|
34
|
-
import { StatBadge as
|
|
35
|
-
import { StrategyApyBreakdownCardTest as
|
|
10
|
+
import { HealthFactorBlock as b } from "./health-factor-block/health-factor-block.js";
|
|
11
|
+
import { HistoryChart as h } from "./history-chart/history-chart.js";
|
|
12
|
+
import { InfoLine as V, InfoList as M, PointsInfoLine as y } from "./info-list/info-list.js";
|
|
13
|
+
import { LeverageInput as I } from "./leverage-input/leverage-input.js";
|
|
14
|
+
import { LeveragePresetChipsTest as D } from "./leverage-preset-chips/constants.js";
|
|
15
|
+
import { LeveragePresetChips as q } from "./leverage-preset-chips/leverage-preset-chips.js";
|
|
16
|
+
import { LiquidationParamsTableTest as F } from "./liquidation-params-table/constants.js";
|
|
17
|
+
import { LiquidationParamsTable as U } from "./liquidation-params-table/liquidation-params-table.js";
|
|
18
|
+
import { LiquidationPriceBlockTest as z } from "./liquidation-price-block/constants.js";
|
|
19
|
+
import { LiquidationPriceBlock as j } from "./liquidation-price-block/liquidation-price-block.js";
|
|
20
|
+
import { ManagePane as J, ManagePaneActionTab as K, ManagePaneMessage as O, ManagePaneTab as Q, ManagePaneTabDropdown as X } from "./manage-pane/manage-pane.js";
|
|
21
|
+
import { MoreAccordionTest as Z } from "./more-accordion/constants.js";
|
|
22
|
+
import { MoreAccordion as $ } from "./more-accordion/more-accordion.js";
|
|
23
|
+
import { NestedInfoStackTest as oe } from "./nested-info-stack/constants.js";
|
|
24
|
+
import { NestedInfoStack as re } from "./nested-info-stack/nested-info-stack.js";
|
|
25
|
+
import { PageHeadProvider as ie, PageTitle as pe } from "./page-title/page-title.js";
|
|
26
|
+
import { PoolApyBreakdownCardTest as fe } from "./pool-apy-breakdown-card/constants.js";
|
|
27
|
+
import { PoolApyBreakdownCard as se } from "./pool-apy-breakdown-card/pool-apy-breakdown-card.js";
|
|
28
|
+
import { PositionAssetsTest as Te } from "./position-assets/constants.js";
|
|
29
|
+
import { PositionAssets as de } from "./position-assets/position-assets.js";
|
|
30
|
+
import { ReviewButton as ge } from "./review-button/review-button.js";
|
|
31
|
+
import { SectionHeading as ue } from "./section-heading/section-heading.js";
|
|
32
|
+
import { SegmentedTabs as Se } from "./segmented-tabs/segmented-tabs.js";
|
|
33
|
+
import { Stack as Le } from "./stack/stack.js";
|
|
34
|
+
import { StatBadge as Ae, StatBadgeGrid as he } from "./stat-badge/stat-badge.js";
|
|
35
|
+
import { StrategyApyBreakdownCardTest as Ve } from "./strategy-apy-breakdown-card/constants.js";
|
|
36
36
|
import { StrategyApyBreakdownCard as ye } from "./strategy-apy-breakdown-card/strategy-apy-breakdown-card.js";
|
|
37
|
-
import { Tabber as
|
|
37
|
+
import { Tabber as Ie, TabberSection as ve } from "./tabber/tabber.js";
|
|
38
38
|
import { useTitleText as He } from "./text/use-title-text.js";
|
|
39
|
-
import { TimeToLiquidationBlockTest as
|
|
40
|
-
import { TimeToLiquidationBlock as
|
|
41
|
-
import { TitleMetaTest as
|
|
42
|
-
import { TitleMeta as
|
|
43
|
-
import { TokenAmount as
|
|
44
|
-
import { TokenPairSymbolTest as
|
|
45
|
-
import { TokenPairSymbol as
|
|
46
|
-
import { NoValue as
|
|
47
|
-
import { PositionShortLabelTest as
|
|
48
|
-
import { PnlValue as
|
|
49
|
-
import { PositionShortLabel as
|
|
50
|
-
import { PositionStatusBadge as
|
|
51
|
-
import { PositionTypeBadge as
|
|
52
|
-
import { PriceImpactValue as
|
|
53
|
-
import { ApyValue as xo, HealthFactorValue as
|
|
54
|
-
import { AmountInputTest as
|
|
39
|
+
import { TimeToLiquidationBlockTest as Re } from "./time-to-liquidation-block/constants.js";
|
|
40
|
+
import { TimeToLiquidationBlock as Ne } from "./time-to-liquidation-block/time-to-liquidation-block.js";
|
|
41
|
+
import { TitleMetaTest as We } from "./title-meta/constants.js";
|
|
42
|
+
import { TitleMeta as Ge } from "./title-meta/title-meta.js";
|
|
43
|
+
import { TokenAmount as Ee } from "./token-amount/token-amount.js";
|
|
44
|
+
import { TokenPairSymbolTest as Ke } from "./token-pair-symbol/constants.js";
|
|
45
|
+
import { TokenPairSymbol as Qe } from "./token-pair-symbol/token-pair-symbol.js";
|
|
46
|
+
import { NoValue as Ye } from "../no-value/no-value.js";
|
|
47
|
+
import { PositionShortLabelTest as _e, ValueTest as $e } from "./values/constants.js";
|
|
48
|
+
import { PnlValue as oo } from "./values/pnl-value.js";
|
|
49
|
+
import { PositionShortLabel as ro } from "./values/position-short-label.js";
|
|
50
|
+
import { PositionStatusBadge as io } from "./values/position-status-badge.js";
|
|
51
|
+
import { PositionTypeBadge as mo } from "./values/position-type-badge.js";
|
|
52
|
+
import { PriceImpactValue as no } from "./values/price-impact-value.js";
|
|
53
|
+
import { ApyValue as xo, HealthFactorValue as To, LeverageValue as lo, TokenBigint as Po, UsdValue as go, UtilizationValue as co } from "./values/scalars.js";
|
|
54
|
+
import { AmountInputTest as Bo } from "./amount-input/constants.js";
|
|
55
55
|
import { DetailedPageTitleTest as ko } from "./detailed-page-title/constants.js";
|
|
56
|
-
import { DetailsViewTest as
|
|
57
|
-
import { HistoryChartTest as
|
|
58
|
-
import { InfoListTest as
|
|
56
|
+
import { DetailsViewTest as bo } from "./details-view/constants.js";
|
|
57
|
+
import { HistoryChartTest as ho } from "./history-chart/constants.js";
|
|
58
|
+
import { InfoListTest as Vo } from "./info-list/constants.js";
|
|
59
59
|
import { LeverageInputTest as yo } from "./leverage-input/constants.js";
|
|
60
|
-
import { ManagePaneTest as
|
|
61
|
-
import { PageTitleTest as
|
|
62
|
-
import { ReviewButtonTest as
|
|
63
|
-
import { SectionHeadingTest as
|
|
64
|
-
import { SegmentedTabsTest as
|
|
65
|
-
import { StackTest as
|
|
66
|
-
import { StatBadgeTest as
|
|
67
|
-
import { TabberTest as
|
|
68
|
-
import { TokenAmountTest as
|
|
60
|
+
import { ManagePaneTest as Io } from "./manage-pane/constants.js";
|
|
61
|
+
import { PageTitleTest as Do } from "./page-title/constants.js";
|
|
62
|
+
import { ReviewButtonTest as qo } from "./review-button/constants.js";
|
|
63
|
+
import { SectionHeadingTest as Fo } from "./section-heading/constants.js";
|
|
64
|
+
import { SegmentedTabsTest as Uo } from "./segmented-tabs/constants.js";
|
|
65
|
+
import { StackTest as zo } from "./stack/constants.js";
|
|
66
|
+
import { StatBadgeTest as jo } from "./stat-badge/constants.js";
|
|
67
|
+
import { TabberTest as Jo } from "./tabber/constants.js";
|
|
68
|
+
import { TokenAmountTest as Oo } from "./token-amount/constants.js";
|
|
69
69
|
export {
|
|
70
70
|
t as AmountInput,
|
|
71
|
-
|
|
71
|
+
Bo as AmountInputTest,
|
|
72
72
|
xo as ApyValue,
|
|
73
73
|
d as AsideAlignAnchor,
|
|
74
74
|
a as BorrowRateBlock,
|
|
75
75
|
p as BorrowRateBlockTest,
|
|
76
76
|
f as ChartWithSideCard,
|
|
77
|
-
|
|
77
|
+
s as ChartWithSideCardTest,
|
|
78
78
|
T as DetailedPageTitle,
|
|
79
79
|
ko as DetailedPageTitleTest,
|
|
80
80
|
g as DetailsView,
|
|
81
81
|
c as DetailsViewLeftPane,
|
|
82
82
|
u as DetailsViewManagePane,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
B as DetailsViewManagePaneSlot,
|
|
84
|
+
bo as DetailsViewTest,
|
|
85
|
+
b as HealthFactorBlock,
|
|
85
86
|
k as HealthFactorBlockTest,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
To as HealthFactorValue,
|
|
88
|
+
h as HistoryChart,
|
|
89
|
+
ho as HistoryChartTest,
|
|
90
|
+
V as InfoLine,
|
|
91
|
+
M as InfoList,
|
|
92
|
+
Vo as InfoListTest,
|
|
93
|
+
I as LeverageInput,
|
|
93
94
|
yo as LeverageInputTest,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
95
|
+
q as LeveragePresetChips,
|
|
96
|
+
D as LeveragePresetChipsTest,
|
|
97
|
+
lo as LeverageValue,
|
|
98
|
+
U as LiquidationParamsTable,
|
|
99
|
+
F as LiquidationParamsTableTest,
|
|
100
|
+
j as LiquidationPriceBlock,
|
|
101
|
+
z as LiquidationPriceBlockTest,
|
|
102
|
+
J as ManagePane,
|
|
103
|
+
K as ManagePaneActionTab,
|
|
104
|
+
O as ManagePaneMessage,
|
|
105
|
+
Q as ManagePaneTab,
|
|
106
|
+
X as ManagePaneTabDropdown,
|
|
107
|
+
Io as ManagePaneTest,
|
|
108
|
+
$ as MoreAccordion,
|
|
109
|
+
Z as MoreAccordionTest,
|
|
110
|
+
re as NestedInfoStack,
|
|
111
|
+
oe as NestedInfoStackTest,
|
|
112
|
+
Ye as NoValue,
|
|
113
|
+
ie as PageHeadProvider,
|
|
114
|
+
pe as PageTitle,
|
|
115
|
+
Do as PageTitleTest,
|
|
116
|
+
oo as PnlValue,
|
|
116
117
|
y as PointsInfoLine,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
118
|
+
se as PoolApyBreakdownCard,
|
|
119
|
+
fe as PoolApyBreakdownCardTest,
|
|
120
|
+
de as PositionAssets,
|
|
121
|
+
Te as PositionAssetsTest,
|
|
122
|
+
ro as PositionShortLabel,
|
|
123
|
+
_e as PositionShortLabelTest,
|
|
124
|
+
io as PositionStatusBadge,
|
|
125
|
+
mo as PositionTypeBadge,
|
|
126
|
+
no as PriceImpactValue,
|
|
127
|
+
ge as ReviewButton,
|
|
128
|
+
qo as ReviewButtonTest,
|
|
129
|
+
ue as SectionHeading,
|
|
130
|
+
Fo as SectionHeadingTest,
|
|
131
|
+
Se as SegmentedTabs,
|
|
132
|
+
Uo as SegmentedTabsTest,
|
|
133
|
+
Le as Stack,
|
|
134
|
+
zo as StackTest,
|
|
135
|
+
Ae as StatBadge,
|
|
136
|
+
he as StatBadgeGrid,
|
|
137
|
+
jo as StatBadgeTest,
|
|
137
138
|
ye as StrategyApyBreakdownCard,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
139
|
+
Ve as StrategyApyBreakdownCardTest,
|
|
140
|
+
Ie as Tabber,
|
|
141
|
+
ve as TabberSection,
|
|
142
|
+
Jo as TabberTest,
|
|
143
|
+
Ne as TimeToLiquidationBlock,
|
|
144
|
+
Re as TimeToLiquidationBlockTest,
|
|
145
|
+
Ge as TitleMeta,
|
|
146
|
+
We as TitleMetaTest,
|
|
147
|
+
Ee as TokenAmount,
|
|
148
|
+
Oo as TokenAmountTest,
|
|
149
|
+
Po as TokenBigint,
|
|
150
|
+
Qe as TokenPairSymbol,
|
|
151
|
+
Ke as TokenPairSymbolTest,
|
|
152
|
+
go as UsdValue,
|
|
153
|
+
co as UtilizationValue,
|
|
154
|
+
$e as ValueTest,
|
|
154
155
|
He as useTitleText
|
|
155
156
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
2
|
-
import { faEllipsis as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { SegmentedTabs as
|
|
5
|
-
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { useTitleText as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { StyledDialogContainer as
|
|
10
|
-
import { ConfirmMenu as
|
|
1
|
+
import { jsxs as r, jsx as o, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { faChevronDown as O, faEllipsis as k } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import { createContext as z, useState as B, Children as j, isValidElement as h, useRef as F, useContext as R } from "react";
|
|
4
|
+
import { SegmentedTabs as V } from "../segmented-tabs/segmented-tabs.js";
|
|
5
|
+
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as G } from "../segmented-tabs/segmented-tabs-styles.js";
|
|
6
|
+
import { Stack as s } from "../stack/stack.js";
|
|
7
|
+
import { useTitleText as L } from "../text/use-title-text.js";
|
|
8
|
+
import { Button as U } from "../../buttons/button/button.js";
|
|
9
|
+
import { StyledDialogContainer as q } from "../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
10
|
+
import { ConfirmMenu as H } from "../../confirm-menu/confirm-menu.js";
|
|
11
11
|
import "../../modal/modal.js";
|
|
12
12
|
import "@radix-ui/react-dialog";
|
|
13
13
|
import "../../dialog/dialog-container.js";
|
|
@@ -20,113 +20,117 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
20
20
|
import "../../../utils/z-index.js";
|
|
21
21
|
import "../../dialog/dialog-header.js";
|
|
22
22
|
import "../../dialog/dialog-title.js";
|
|
23
|
-
import { DialogModalContainer as
|
|
23
|
+
import { DialogModalContainer as J } from "../../dialog/dialog-modal-container.js";
|
|
24
24
|
import "viem";
|
|
25
25
|
import "../../input/input.js";
|
|
26
26
|
import "../../label/label.js";
|
|
27
|
-
import { FaIcon as
|
|
28
|
-
import { SimpleDropdown as
|
|
29
|
-
import { SimpleDropdownMenuItem as
|
|
27
|
+
import { FaIcon as w } from "../../icons/fa-icon.js";
|
|
28
|
+
import { SimpleDropdown as K } from "../../simple-dropdown/simple-dropdown.js";
|
|
29
|
+
import { SimpleDropdownMenuItem as Q } from "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
30
30
|
import { ManagePaneTest as e } from "./constants.js";
|
|
31
|
-
const
|
|
31
|
+
const I = z({
|
|
32
32
|
current: null
|
|
33
33
|
});
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
return /* @__PURE__ */
|
|
34
|
+
function W({ children: n }) {
|
|
35
|
+
const a = F(null);
|
|
36
|
+
return /* @__PURE__ */ o(I.Provider, { value: a, children: n });
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
return /* @__PURE__ */
|
|
38
|
+
function X() {
|
|
39
|
+
const n = R(I);
|
|
40
|
+
return /* @__PURE__ */ o("div", { ref: n });
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Y(n) {
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Z(n) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function $(n) {
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function tt(n) {
|
|
52
|
+
return h(n) && n.type === Y;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
54
|
+
function nt(n) {
|
|
55
|
+
return h(n) && n.type === Z;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function ot(n) {
|
|
58
|
+
return h(n) && n.type === $;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
children:
|
|
62
|
-
activeTab:
|
|
60
|
+
function Ot({
|
|
61
|
+
children: n,
|
|
62
|
+
activeTab: a,
|
|
63
63
|
onTabChange: M,
|
|
64
|
-
header:
|
|
65
|
-
footer:
|
|
66
|
-
actions:
|
|
67
|
-
testId:
|
|
64
|
+
header: P,
|
|
65
|
+
footer: S,
|
|
66
|
+
actions: m,
|
|
67
|
+
testId: A
|
|
68
68
|
}) {
|
|
69
|
-
const
|
|
69
|
+
const c = L(), [D, T] = B(null), u = j.toArray(n), C = u.filter(tt), v = u.find(nt), l = u.filter(ot), x = C.filter((t) => !t.props.hidden), y = C.find((t) => t.props.id === a)?.props.children, p = v?.props.items ?? [], i = p.find((t) => t.id === a), N = new Set(l.map((t) => t.props.id)), f = l.find((t) => t.props.id === D), b = () => T(null), g = [
|
|
70
70
|
...x.map((t) => ({
|
|
71
71
|
id: t.props.id,
|
|
72
|
-
item:
|
|
72
|
+
item: c(t.props.title),
|
|
73
73
|
disabled: t.props.disabled,
|
|
74
74
|
testId: e.tab(t.props.id)
|
|
75
75
|
})),
|
|
76
|
-
...
|
|
76
|
+
...l.map((t) => ({
|
|
77
77
|
id: t.props.id,
|
|
78
|
-
item:
|
|
78
|
+
item: c(t.props.title),
|
|
79
79
|
testId: e.tab(t.props.id)
|
|
80
80
|
}))
|
|
81
81
|
];
|
|
82
|
-
return /* @__PURE__ */ r(
|
|
83
|
-
/* @__PURE__ */ r(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
return /* @__PURE__ */ r(W, { children: [
|
|
83
|
+
/* @__PURE__ */ r(s, { gap: "md", "data-testid": A ?? e.root, children: [
|
|
84
|
+
P,
|
|
85
|
+
g.length > 0 || p.length > 0 || m ? /* @__PURE__ */ r(s, { direction: "row", align: "center", gap: "sm", children: [
|
|
86
|
+
g.length > 0 ? /* @__PURE__ */ o(
|
|
87
|
+
V,
|
|
88
88
|
{
|
|
89
|
-
items:
|
|
90
|
-
activeTab:
|
|
89
|
+
items: g,
|
|
90
|
+
activeTab: a,
|
|
91
91
|
onTabChange: (t) => {
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
|
|
92
|
+
const d = l.find((_) => _.props.id === t);
|
|
93
|
+
if (d) {
|
|
94
|
+
d.props.children != null && T(d.props.id), d.props.onClick?.();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
N.has(t) || M(t);
|
|
98
98
|
},
|
|
99
99
|
testId: e.tabs
|
|
100
100
|
}
|
|
101
101
|
) : null,
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
p.length > 0 || m ? /* @__PURE__ */ r(
|
|
103
|
+
s,
|
|
104
104
|
{
|
|
105
105
|
direction: "row",
|
|
106
106
|
align: "center",
|
|
107
107
|
gap: "sm",
|
|
108
|
-
className: "ml-auto",
|
|
108
|
+
className: "ml-auto min-w-0",
|
|
109
109
|
children: [
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
p.length > 0 ? /* @__PURE__ */ o(
|
|
111
|
+
K,
|
|
112
112
|
{
|
|
113
|
-
title: /* @__PURE__ */
|
|
114
|
-
|
|
113
|
+
title: /* @__PURE__ */ o(
|
|
114
|
+
U,
|
|
115
115
|
{
|
|
116
116
|
type: "button",
|
|
117
|
-
variant: "ghost",
|
|
117
|
+
variant: i ? "neutral" : "ghost",
|
|
118
118
|
size: "md",
|
|
119
|
-
className:
|
|
120
|
-
"aria-
|
|
119
|
+
className: i ? "min-w-0" : G,
|
|
120
|
+
"aria-current": i ? "step" : void 0,
|
|
121
|
+
"aria-label": i ? void 0 : "More actions",
|
|
121
122
|
"data-testid": e.dropdown,
|
|
122
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: i ? /* @__PURE__ */ r(E, { children: [
|
|
124
|
+
/* @__PURE__ */ o("span", { className: "truncate", children: i.title }),
|
|
125
|
+
/* @__PURE__ */ o(w, { icon: O, className: "!size-3" })
|
|
126
|
+
] }) : /* @__PURE__ */ o(w, { icon: k, className: "size-4" })
|
|
123
127
|
}
|
|
124
128
|
),
|
|
125
129
|
asChild: !0,
|
|
126
130
|
placement: "bottom",
|
|
127
131
|
align: "end",
|
|
128
|
-
children:
|
|
129
|
-
|
|
132
|
+
children: p.map((t) => /* @__PURE__ */ o(
|
|
133
|
+
Q,
|
|
130
134
|
{
|
|
131
135
|
onSelect: t.onSelect,
|
|
132
136
|
children: t.title
|
|
@@ -135,54 +139,54 @@ function _t({
|
|
|
135
139
|
))
|
|
136
140
|
}
|
|
137
141
|
) : null,
|
|
138
|
-
|
|
142
|
+
m
|
|
139
143
|
]
|
|
140
144
|
}
|
|
141
145
|
) : null
|
|
142
146
|
] }) : null,
|
|
143
147
|
/* @__PURE__ */ r(
|
|
144
|
-
|
|
148
|
+
q,
|
|
145
149
|
{
|
|
146
150
|
"data-testid": e.body,
|
|
147
151
|
"data-aside-form-top": !0,
|
|
148
152
|
children: [
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
|
|
153
|
+
/* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(X, {}) }),
|
|
154
|
+
y
|
|
151
155
|
]
|
|
152
156
|
}
|
|
153
157
|
),
|
|
154
|
-
|
|
158
|
+
S
|
|
155
159
|
] }),
|
|
156
|
-
|
|
157
|
-
|
|
160
|
+
f?.props.children != null ? /* @__PURE__ */ o(
|
|
161
|
+
J,
|
|
158
162
|
{
|
|
159
163
|
show: !0,
|
|
160
164
|
onClickOutside: b,
|
|
161
165
|
dialog: { padding: "xl" },
|
|
162
166
|
children: /* @__PURE__ */ r("div", { "data-testid": e.actionDialog, children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
167
|
+
/* @__PURE__ */ o(
|
|
168
|
+
H,
|
|
165
169
|
{
|
|
166
170
|
onClose: b,
|
|
167
|
-
title:
|
|
171
|
+
title: c(f.props.title)
|
|
168
172
|
}
|
|
169
173
|
),
|
|
170
|
-
|
|
174
|
+
f.props.children
|
|
171
175
|
] })
|
|
172
176
|
}
|
|
173
177
|
) : null
|
|
174
178
|
] });
|
|
175
179
|
}
|
|
176
|
-
function
|
|
177
|
-
children:
|
|
180
|
+
function kt({
|
|
181
|
+
children: n
|
|
178
182
|
}) {
|
|
179
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ o(s, { gap: "sm", "data-testid": e.message, children: n });
|
|
180
184
|
}
|
|
181
185
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
Ot as ManagePane,
|
|
187
|
+
$ as ManagePaneActionTab,
|
|
188
|
+
kt as ManagePaneMessage,
|
|
189
|
+
Y as ManagePaneTab,
|
|
190
|
+
Z as ManagePaneTabDropdown,
|
|
187
191
|
e as ManagePaneTest
|
|
188
192
|
};
|