@stridge/kit 0.1.0-alpha.51 → 0.1.0-alpha.53
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/KitProvider.d.ts +11 -0
- package/dist/KitProvider.js +1 -1
- package/dist/_internal/activity/driver/index.d.ts +3 -0
- package/dist/_internal/activity/driver/index.js +1 -0
- package/dist/_internal/drivers/stridge/index.d.ts +2 -1
- package/dist/_internal/drivers/stridge/index.js +1 -1
- package/dist/_internal/drivers/stridge-mock/index.d.ts +2 -1
- package/dist/_internal/drivers/stridge-mock/index.js +1 -1
- package/dist/activity/compound/index.d.ts +19 -0
- package/dist/activity/compound/index.js +1 -0
- package/dist/activity/dialog/index.d.ts +3 -0
- package/dist/activity/dialog/index.js +1 -0
- package/dist/activity/widgets/index.d.ts +4 -0
- package/dist/activity/widgets/index.js +1 -0
- package/dist/deposit/compound/index.d.ts +9 -9
- package/dist/deposit/widgets/index.d.ts +3 -3
- package/dist/deposit/widgets/index.js +1 -1
- package/dist/drivers/stridge/createStridgeActivityDriver.d.ts +44 -0
- package/dist/drivers/stridge/createStridgeActivityDriver.js +1 -0
- package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
- package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
- package/dist/drivers/stridge-mock/createStridgeMockActivityDriver.d.ts +44 -0
- package/dist/drivers/stridge-mock/createStridgeMockActivityDriver.js +1 -0
- package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +0 -2
- package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +1 -2
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
- package/dist/drivers/stridge-mock/fixtures.js +1 -1
- package/dist/flows/activity/compound/ActivityFlow.d.ts +46 -0
- package/dist/flows/activity/compound/ActivityFlow.js +1 -0
- package/dist/flows/activity/compound/components/Boundary.d.ts +29 -0
- package/dist/flows/activity/compound/components/Boundary.js +1 -0
- package/dist/flows/activity/compound/components/Steps.d.ts +24 -0
- package/dist/flows/activity/compound/components/Steps.js +1 -0
- package/dist/flows/activity/dialog/ActivityDialog.d.ts +38 -0
- package/dist/flows/activity/dialog/ActivityDialog.js +1 -0
- package/dist/flows/activity/dialog/ActivityFlowBoundary.d.ts +1 -0
- package/dist/flows/activity/dialog/ActivityFlowBoundary.js +1 -0
- package/dist/flows/activity/driver/context.d.ts +38 -0
- package/dist/flows/activity/driver/context.js +1 -0
- package/dist/flows/activity/driver/types.d.ts +58 -0
- package/dist/flows/activity/orchestrator/controller.d.ts +11 -0
- package/dist/flows/activity/orchestrator/controller.js +1 -0
- package/dist/flows/activity/orchestrator/index.d.ts +4 -0
- package/dist/flows/activity/orchestrator/index.js +1 -0
- package/dist/flows/activity/orchestrator/reducer.d.ts +1 -0
- package/dist/flows/activity/orchestrator/reducer.js +1 -0
- package/dist/flows/activity/orchestrator/types.d.ts +71 -0
- package/dist/flows/activity/orchestrator/useActivity.d.ts +94 -0
- package/dist/flows/activity/orchestrator/useActivity.js +1 -0
- package/dist/flows/activity/widgets/ActivityDetail.d.ts +41 -0
- package/dist/flows/activity/widgets/ActivityDetail.js +1 -0
- package/dist/flows/activity/widgets/ActivityList.d.ts +38 -0
- package/dist/flows/activity/widgets/ActivityList.js +1 -0
- package/dist/flows/activity/widgets/useStandaloneActivitySource.js +1 -0
- package/dist/flows/deposit/dialog/DepositBootstrapErrorState.js +1 -1
- package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
- package/dist/flows/deposit/driver/transformers/settlementToPayload.js +1 -1
- package/dist/flows/deposit/driver/types.d.ts +1 -38
- package/dist/flows/deposit/orchestrator/controller.js +1 -1
- package/dist/flows/deposit/orchestrator/reducer.js +1 -1
- package/dist/flows/deposit/orchestrator/types.d.ts +43 -29
- package/dist/flows/deposit/widgets/{activity-history/DepositHistoryDetail.d.ts → activity/DepositActivityDetail.d.ts} +11 -11
- package/dist/flows/deposit/widgets/activity/DepositActivityDetail.js +1 -0
- package/dist/flows/deposit/widgets/activity/DepositActivityList.d.ts +38 -0
- package/dist/flows/deposit/widgets/activity/DepositActivityList.js +1 -0
- package/dist/flows/deposit/widgets/activity/index.d.ts +2 -0
- package/dist/flows/deposit/widgets/activity/index.js +1 -0
- package/dist/flows/deposit/widgets/activity/useDepositActivitySource.js +1 -0
- package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
- package/dist/flows/deposit/widgets/asset-picker/AssetPicker.js +1 -1
- package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.d.ts +7 -6
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
- package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -1
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.d.ts +4 -3
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.js +1 -1
- package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
- package/dist/flows/withdraw/driver/types.d.ts +0 -34
- package/dist/flows/withdraw/orchestrator/controller.js +1 -1
- package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
- package/dist/flows/withdraw/orchestrator/types.d.ts +44 -30
- package/dist/flows/withdraw/widgets/{activity-history/WithdrawHistoryDetail.d.ts → activity/WithdrawActivityDetail.d.ts} +11 -11
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityDetail.js +1 -0
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityList.d.ts +36 -0
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityList.js +1 -0
- package/dist/flows/withdraw/widgets/activity/index.d.ts +2 -0
- package/dist/flows/withdraw/widgets/activity/index.js +1 -0
- package/dist/flows/withdraw/widgets/activity/useWithdrawActivitySource.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Body.d.ts +7 -6
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.d.ts +4 -4
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.js +1 -1
- package/dist/format/index.d.ts +2 -1
- package/dist/format/index.js +1 -1
- package/dist/i18n/locales/ar.js +1 -1
- package/dist/i18n/locales/es.js +1 -1
- package/dist/i18n/locales/source-keys.d.ts +1 -1
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/scope/KitScope.d.ts +9 -0
- package/dist/scope/KitScope.js +1 -1
- package/dist/scope/context.d.ts +7 -0
- package/dist/shared/format/formatSmartRelative.d.ts +25 -0
- package/dist/shared/format/formatSmartRelative.js +1 -0
- package/dist/shared/format/formatUsd.js +1 -1
- package/dist/shared/icons/{HistoryIcon.d.ts → ActivityIcon.d.ts} +4 -4
- package/dist/shared/icons/{HistoryIcon.js → ActivityIcon.js} +1 -1
- package/dist/shared/orchestrator/activityOpenInput.d.ts +21 -0
- package/dist/shared/orchestrator/createActivityReducers.js +1 -0
- package/dist/shared/orchestrator/index.d.ts +2 -0
- package/dist/shared/orchestrator/index.js +1 -1
- package/dist/shared/orchestrator/resolveActivityEntry.d.ts +1 -0
- package/dist/shared/orchestrator/resolveActivityEntry.js +1 -0
- package/dist/shared/presentation/index.js +1 -0
- package/dist/shared/presentation/types.d.ts +30 -0
- package/dist/shared/presentation/types.js +1 -0
- package/dist/shared/presentation/useResolvedSurfaceKind.js +1 -0
- package/dist/shared/ui/AdaptiveSurface/AdaptiveSurface.d.ts +52 -0
- package/dist/shared/ui/AdaptiveSurface/AdaptiveSurface.js +1 -0
- package/dist/shared/ui/AdaptiveSurface/index.d.ts +2 -0
- package/dist/shared/ui/AdaptiveSurface/index.js +1 -0
- package/dist/shared/ui/Card/Card.d.ts +12 -9
- package/dist/shared/ui/Card/Card.js +1 -1
- package/dist/shared/ui/Card/Card.styles.js +1 -1
- package/dist/shared/ui/Dialog/Dialog.d.ts +10 -8
- package/dist/shared/ui/Dialog/Dialog.js +1 -1
- package/dist/shared/ui/Drawer/Drawer.d.ts +135 -0
- package/dist/shared/ui/Drawer/Drawer.js +1 -0
- package/dist/shared/ui/Drawer/Drawer.slots.d.ts +19 -0
- package/dist/shared/ui/Drawer/Drawer.slots.js +1 -0
- package/dist/shared/ui/Drawer/Drawer.styles.js +1 -0
- package/dist/shared/ui/Drawer/index.d.ts +2 -0
- package/dist/shared/ui/Drawer/index.js +1 -0
- package/dist/shared/ui/SelectableTile/SelectableTile.d.ts +1 -1
- package/dist/shared/ui/surfaceContext.d.ts +9 -0
- package/dist/shared/ui/surfaceContext.js +1 -0
- package/dist/shared/widgets/activity/ActivityTrigger.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/ActivityTrigger.styles.js +1 -1
- package/dist/shared/widgets/activity/adapters/settlementToWidgetProps.js +1 -0
- package/dist/shared/widgets/activity/compound/Activity.d.ts +95 -0
- package/dist/shared/widgets/activity/compound/Activity.js +1 -0
- package/dist/shared/widgets/activity/compound/Activity.slots.d.ts +22 -0
- package/dist/shared/widgets/activity/compound/Activity.slots.js +1 -0
- package/dist/shared/widgets/activity/compound/Activity.styles.js +1 -0
- package/dist/shared/widgets/{activity-history/compound/ActivityHistoryDetail.d.ts → activity/compound/ActivityDetail.d.ts} +24 -17
- package/dist/shared/widgets/activity/compound/ActivityDetail.js +1 -0
- package/dist/shared/widgets/activity/compound/Row.slots.d.ts +21 -0
- package/dist/shared/widgets/activity/compound/Row.slots.js +1 -0
- package/dist/shared/widgets/activity/compound/Row.styles.js +1 -0
- package/dist/shared/widgets/{activity-history/compound/components/HistoryHeader.d.ts → activity/compound/components/ActivityHeader.d.ts} +8 -8
- package/dist/shared/widgets/activity/compound/components/ActivityHeader.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/compound/components/Empty.d.ts +3 -3
- package/dist/shared/widgets/activity/compound/components/Empty.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/compound/components/ErrorView.d.ts +7 -7
- package/dist/shared/widgets/activity/compound/components/ErrorView.js +1 -0
- package/dist/shared/widgets/activity/compound/components/List.d.ts +23 -0
- package/dist/shared/widgets/activity/compound/components/List.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/compound/components/Row.d.ts +13 -16
- package/dist/shared/widgets/activity/compound/components/Row.js +1 -0
- package/dist/shared/widgets/activity/compound/components/StatusPip.js +1 -0
- package/dist/shared/widgets/activity/compound/context.d.ts +95 -0
- package/dist/shared/widgets/activity/compound/context.js +1 -0
- package/dist/shared/widgets/activity/compound/index.d.ts +8 -0
- package/dist/shared/widgets/activity/compound/index.js +1 -0
- package/dist/shared/widgets/activity/payloads.d.ts +108 -0
- package/dist/shared/widgets/activity/transformers/activityResponseToPayload.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Header.d.ts +1 -1
- package/dist/shared/widgets/amount-entry/compound/types.d.ts +2 -3
- package/dist/shared/widgets/asset-picker/compound/components/Header.d.ts +1 -1
- package/dist/shared/widgets/asset-picker/compound/types.d.ts +2 -2
- package/dist/stridge/StridgeProvider.d.ts +10 -6
- package/dist/stridge/StridgeProvider.js +1 -1
- package/dist/stridge/stubs.js +1 -1
- package/dist/styles/index.css +89 -0
- package/dist/types.d.ts +2 -1
- package/dist/ui/index.d.ts +5 -1
- package/dist/ui/index.js +1 -1
- package/dist/withdraw/compound/index.d.ts +6 -6
- package/dist/withdraw/widgets/index.d.ts +3 -3
- package/dist/withdraw/widgets/index.js +1 -1
- package/package.json +14 -6
- package/dist/activity-history/compound/index.d.ts +0 -9
- package/dist/activity-history/compound/index.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/DepositHistoryDetail.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/DepositHistoryList.d.ts +0 -38
- package/dist/flows/deposit/widgets/activity-history/DepositHistoryList.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/index.d.ts +0 -2
- package/dist/flows/deposit/widgets/activity-history/index.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/useDepositActivityHistorySource.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryDetail.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryList.d.ts +0 -36
- package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryList.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/index.d.ts +0 -2
- package/dist/flows/withdraw/widgets/activity-history/index.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/useWithdrawActivityHistorySource.js +0 -1
- package/dist/shared/widgets/activity-history/ActivityTrigger.js +0 -1
- package/dist/shared/widgets/activity-history/adapters/settlementToWidgetProps.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.d.ts +0 -95
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.slots.d.ts +0 -22
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.slots.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.styles.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistoryDetail.js +0 -1
- package/dist/shared/widgets/activity-history/compound/Row.slots.d.ts +0 -21
- package/dist/shared/widgets/activity-history/compound/Row.slots.js +0 -1
- package/dist/shared/widgets/activity-history/compound/Row.styles.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/Empty.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/ErrorView.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/HistoryHeader.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/List.d.ts +0 -23
- package/dist/shared/widgets/activity-history/compound/components/List.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/Row.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/StatusPip.js +0 -1
- package/dist/shared/widgets/activity-history/compound/context.d.ts +0 -79
- package/dist/shared/widgets/activity-history/compound/context.js +0 -1
- package/dist/shared/widgets/activity-history/payloads.d.ts +0 -81
- package/dist/shared/widgets/activity-history/transformers/historyResponseToPayload.js +0 -1
- /package/dist/shared/widgets/{activity-history → activity}/index.js +0 -0
- /package/dist/shared/widgets/{activity-history → activity}/transformers/resolveDirection.js +0 -0
package/dist/styles/index.css
CHANGED
|
@@ -66,6 +66,9 @@
|
|
|
66
66
|
--stridge-kit-z-tooltip: 1070;
|
|
67
67
|
--stridge-kit-overlay: oklch(0% 0 0 / .4);
|
|
68
68
|
--stridge-kit-dialog-width: 480px;
|
|
69
|
+
--stridge-kit-drawer-max-block-size: calc(100% - 2rem);
|
|
70
|
+
--stridge-kit-drawer-handle-size: 36px;
|
|
71
|
+
--stridge-kit-drawer-handle-thickness: 4px;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
:root, [data-stridge-scope] {
|
|
@@ -196,6 +199,7 @@
|
|
|
196
199
|
--stridge-kit-card-border: oklch(29.55% .01 285.72);
|
|
197
200
|
--stridge-kit-card-border-frame: oklch(27.07% .01 285.77);
|
|
198
201
|
--stridge-kit-card-shadow: 0 30px 80px oklch(0% 0 0 / .6), 0 2px 6px oklch(0% 0 0 / .4);
|
|
202
|
+
--stridge-kit-drawer-handle-color: oklch(52.95% .01 286.13 / .55);
|
|
199
203
|
--stridge-kit-skeleton-base: oklch(29.55% .01 285.72);
|
|
200
204
|
--stridge-kit-skeleton-highlight: oklch(35.16% .01 285.67);
|
|
201
205
|
--stridge-kit-attribution-prefix-color: oklch(62% .005 286);
|
|
@@ -257,6 +261,7 @@
|
|
|
257
261
|
--stridge-kit-card-border: oklch(91% 0 286);
|
|
258
262
|
--stridge-kit-card-border-frame: oklch(91% 0 286);
|
|
259
263
|
--stridge-kit-card-shadow: 0 30px 80px oklch(0% 0 0 / .16), 0 2px 6px oklch(0% 0 0 / .08);
|
|
264
|
+
--stridge-kit-drawer-handle-color: oklch(60% .01 286 / .4);
|
|
260
265
|
--stridge-kit-skeleton-base: oklch(91% 0 286);
|
|
261
266
|
--stridge-kit-skeleton-highlight: oklch(95% 0 286);
|
|
262
267
|
--stridge-kit-attribution-prefix-color: oklch(50% .01 286);
|
|
@@ -396,6 +401,10 @@
|
|
|
396
401
|
border-color: var(--stridge-kit-border);
|
|
397
402
|
}
|
|
398
403
|
|
|
404
|
+
.x1l0rsgs {
|
|
405
|
+
border-inline-width: 1px;
|
|
406
|
+
}
|
|
407
|
+
|
|
399
408
|
.x6i6fhv {
|
|
400
409
|
border-radius: .375rem;
|
|
401
410
|
}
|
|
@@ -604,6 +613,14 @@
|
|
|
604
613
|
gap: var(--stridge-kit-space-2);
|
|
605
614
|
}
|
|
606
615
|
|
|
616
|
+
.x10no89f {
|
|
617
|
+
inset-block: 0;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.x17y0mx6 {
|
|
621
|
+
inset-inline: 0;
|
|
622
|
+
}
|
|
623
|
+
|
|
607
624
|
.x10im51j {
|
|
608
625
|
margin-block: 0;
|
|
609
626
|
}
|
|
@@ -612,6 +629,10 @@
|
|
|
612
629
|
margin-inline: 22px;
|
|
613
630
|
}
|
|
614
631
|
|
|
632
|
+
.xvueqy4 {
|
|
633
|
+
margin-inline: auto;
|
|
634
|
+
}
|
|
635
|
+
|
|
615
636
|
.x1mqxmvn {
|
|
616
637
|
margin-inline: calc(var(--stridge-kit-space-1) * -1);
|
|
617
638
|
}
|
|
@@ -1144,6 +1165,10 @@
|
|
|
1144
1165
|
background-color: var(--stridge-kit-skeleton-base);
|
|
1145
1166
|
}
|
|
1146
1167
|
|
|
1168
|
+
.x1p0xf7o {
|
|
1169
|
+
background-color: var(--stridge-kit-drawer-handle-color);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1147
1172
|
.xfhhmty {
|
|
1148
1173
|
background-color: var(--stridge-kit-destructive-soft);
|
|
1149
1174
|
}
|
|
@@ -1196,10 +1221,18 @@
|
|
|
1196
1221
|
border-start-end-radius: var(--stridge-kit-radius-md);
|
|
1197
1222
|
}
|
|
1198
1223
|
|
|
1224
|
+
.x1af6ir8 {
|
|
1225
|
+
border-start-end-radius: var(--stridge-kit-card-radius-frame);
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1199
1228
|
.x1d6sz28 {
|
|
1200
1229
|
border-start-start-radius: var(--stridge-kit-radius-md);
|
|
1201
1230
|
}
|
|
1202
1231
|
|
|
1232
|
+
.x8htq0b {
|
|
1233
|
+
border-start-start-radius: var(--stridge-kit-card-radius-frame);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1203
1236
|
.x1gsh91t {
|
|
1204
1237
|
box-shadow: 0 0 0 1.5px var(--stridge-kit-tile-surface);
|
|
1205
1238
|
}
|
|
@@ -1672,6 +1705,10 @@
|
|
|
1672
1705
|
justify-content: center;
|
|
1673
1706
|
}
|
|
1674
1707
|
|
|
1708
|
+
.x13a6bvl {
|
|
1709
|
+
justify-content: flex-end;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1675
1712
|
.x1nhvcw1 {
|
|
1676
1713
|
justify-content: flex-start;
|
|
1677
1714
|
}
|
|
@@ -1844,6 +1881,10 @@
|
|
|
1844
1881
|
opacity: 0;
|
|
1845
1882
|
}
|
|
1846
1883
|
|
|
1884
|
+
.x1hc1fzr {
|
|
1885
|
+
opacity: 1;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1847
1888
|
.x1clqncf {
|
|
1848
1889
|
order: -1;
|
|
1849
1890
|
}
|
|
@@ -1944,6 +1985,10 @@
|
|
|
1944
1985
|
padding-inline-start: var(--stridge-kit-space-2);
|
|
1945
1986
|
}
|
|
1946
1987
|
|
|
1988
|
+
.x67bb7w {
|
|
1989
|
+
pointer-events: auto;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1947
1992
|
.x47corl {
|
|
1948
1993
|
pointer-events: none;
|
|
1949
1994
|
}
|
|
@@ -2108,6 +2153,10 @@
|
|
|
2108
2153
|
transform: translate(-50%, -50%);
|
|
2109
2154
|
}
|
|
2110
2155
|
|
|
2156
|
+
.xacbhai {
|
|
2157
|
+
transform: translateY(var(--drawer-swipe-movement-y, 0px));
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2111
2160
|
.xx6bhzk {
|
|
2112
2161
|
transition-duration: .15s;
|
|
2113
2162
|
}
|
|
@@ -2128,6 +2177,10 @@
|
|
|
2128
2177
|
transition-duration: var(--stridge-kit-duration-fast);
|
|
2129
2178
|
}
|
|
2130
2179
|
|
|
2180
|
+
.x1s4mzch {
|
|
2181
|
+
transition-duration: var(--stridge-kit-duration-slow);
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2131
2184
|
.x11vqxbs {
|
|
2132
2185
|
transition-property: background-color, border-color, box-shadow;
|
|
2133
2186
|
}
|
|
@@ -2196,6 +2249,10 @@
|
|
|
2196
2249
|
transition-timing-function: ease-out;
|
|
2197
2250
|
}
|
|
2198
2251
|
|
|
2252
|
+
.xr4whw6 {
|
|
2253
|
+
transition-timing-function: var(--stridge-kit-ease-enter);
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2199
2256
|
.x1xv5090 {
|
|
2200
2257
|
transition-timing-function: var(--stridge-kit-ease-out);
|
|
2201
2258
|
}
|
|
@@ -2365,6 +2422,10 @@
|
|
|
2365
2422
|
color: var(--stridge-kit-muted-foreground);
|
|
2366
2423
|
}
|
|
2367
2424
|
|
|
2425
|
+
.x1i2unn7:is([data-starting-style], [data-ending-style]) {
|
|
2426
|
+
opacity: 0;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2368
2429
|
.x11ayl2i:focus-visible {
|
|
2369
2430
|
outline-color: var(--stridge-kit-ring);
|
|
2370
2431
|
}
|
|
@@ -2389,6 +2450,10 @@
|
|
|
2389
2450
|
text-underline-offset: 2px;
|
|
2390
2451
|
}
|
|
2391
2452
|
|
|
2453
|
+
.xjvuu2i:is([data-starting-style], [data-ending-style]) {
|
|
2454
|
+
transform: translateY(100%);
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2392
2457
|
.x1yi73pz:has( > input:focus-visible, > textarea:focus-visible) {
|
|
2393
2458
|
box-shadow: var(--stridge-kit-shadow-ring-focus);
|
|
2394
2459
|
}
|
|
@@ -2533,6 +2598,10 @@
|
|
|
2533
2598
|
.x12w9bfk.x12w9bfk {
|
|
2534
2599
|
transition-duration: 0s;
|
|
2535
2600
|
}
|
|
2601
|
+
|
|
2602
|
+
.x4wkmsb.x4wkmsb {
|
|
2603
|
+
transition-property: none;
|
|
2604
|
+
}
|
|
2536
2605
|
}
|
|
2537
2606
|
|
|
2538
2607
|
@container field-group (width >= 32rem) {
|
|
@@ -2729,6 +2798,10 @@
|
|
|
2729
2798
|
height: var(--collapsible-panel-height);
|
|
2730
2799
|
}
|
|
2731
2800
|
|
|
2801
|
+
.xl3s093 {
|
|
2802
|
+
height: var(--stridge-kit-drawer-handle-thickness);
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2732
2805
|
.x1nrll8i {
|
|
2733
2806
|
left: 50%;
|
|
2734
2807
|
}
|
|
@@ -2833,10 +2906,18 @@
|
|
|
2833
2906
|
max-height: calc(100% - 2rem);
|
|
2834
2907
|
}
|
|
2835
2908
|
|
|
2909
|
+
.x17geuhg {
|
|
2910
|
+
max-height: min(60vh, 500px);
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2836
2913
|
.x1ko6lg0 {
|
|
2837
2914
|
max-height: min(var(--available-height),200px);
|
|
2838
2915
|
}
|
|
2839
2916
|
|
|
2917
|
+
.x96tae4 {
|
|
2918
|
+
max-height: var(--stridge-kit-drawer-max-block-size);
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2840
2921
|
.x193iq5w {
|
|
2841
2922
|
max-width: 100%;
|
|
2842
2923
|
}
|
|
@@ -3169,6 +3250,10 @@
|
|
|
3169
3250
|
width: max-content;
|
|
3170
3251
|
}
|
|
3171
3252
|
|
|
3253
|
+
.x19k59d4 {
|
|
3254
|
+
width: var(--stridge-kit-drawer-handle-size);
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3172
3257
|
.x1g31smg:first-child {
|
|
3173
3258
|
border-top-width: 0;
|
|
3174
3259
|
}
|
|
@@ -3383,6 +3468,10 @@
|
|
|
3383
3468
|
transform: rotate(90deg);
|
|
3384
3469
|
}
|
|
3385
3470
|
|
|
3471
|
+
.xsqp3co[data-swiping] {
|
|
3472
|
+
transition-duration: 0s;
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3386
3475
|
@media (prefers-reduced-motion: reduce) {
|
|
3387
3476
|
.xgx5xwo.xgx5xwo[data-closed], .xslpr3k.xslpr3k[data-open] {
|
|
3388
3477
|
animation-duration: 0s;
|
package/dist/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ConfirmDepositPhase, DepositActions, DepositController, DepositMethod,
|
|
|
6
6
|
import { ReceiveOptionDto, ReceiveOptionsResponse, WithdrawableBalanceDto, WithdrawableBalancesResponse, WithdrawalQuoteDto, WithdrawalQuoteResponse, WithdrawalSettlementDto, WithdrawalSettlementResponse } from "./flows/withdraw/driver/dto.js";
|
|
7
7
|
import { ReceiveChainPayload, ReceiveTokenOptionPayload, WithdrawableBalanceItemPayload, WithdrawalQuoteBreakdownPayload, WithdrawalQuotePayload, WithdrawalReceiveAssetPayload, WithdrawalSettlementFailurePayload, WithdrawalSettlementPayload, WithdrawalSettlementPendingPayload, WithdrawalSettlementSuccessPayload } from "./flows/withdraw/driver/payloads.js";
|
|
8
8
|
import { WithdrawSnapshot } from "./flows/withdraw/driver/types.js";
|
|
9
|
+
import { Presentation, PresentationConfig, PresentationMode } from "./shared/presentation/types.js";
|
|
9
10
|
import { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme } from "./scope/context.js";
|
|
10
11
|
import { KitStorageAdapter, KitStoragePersistence } from "./storage/types.js";
|
|
11
12
|
import { KitStorage } from "./storage/createKitStorage.js";
|
|
@@ -13,4 +14,4 @@ import { WithdrawActions, WithdrawController, WithdrawEvent, WithdrawState, With
|
|
|
13
14
|
import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient } from "./flows/withdraw/bindings/WithdrawBindings.js";
|
|
14
15
|
import { BannerAckBucket } from "./banners/useBannerAck.js";
|
|
15
16
|
import { STEPS_WITH_OWN_SETTLEMENT_VIEW, stepRendersSettlement } from "./flows/deposit/orchestrator/steps.js";
|
|
16
|
-
export { type AcceptedAssetPayload, type AddressItemPayload, type AssetPayload, type BalanceItemPayload, type BannerAckBucket, type BrandPayload, type ChainPayload, type ConfirmDepositPhase, type DepositActions, type DepositController, type DepositMethod, type DepositSnapshot, type DepositState, type DepositStateName, type Entity, type FailureInfo, type GatewayEvent, type KitConfig, type KitDirection, type KitRadius, type KitStorage, type KitStorageAdapter, type KitStoragePersistence, type KitTarget, type KitTheme, type OpenInput, type QuoteBreakdownPayload, type QuotePayload, type QuoteRoutePayload, type ReceiveChainPayload, type ReceiveOptionDto, type ReceiveOptionsResponse, type ReceiveTokenOptionPayload, type ResolvedOpenInput, type RetryTargetSpec, STEPS_WITH_OWN_SETTLEMENT_VIEW, type SettlementFailureKind, type SettlementFailurePayload, type SettlementPayload, type SettlementPendingPayload, type SettlementSuccessPayload, type SourceWalletPayload, type TargetPayload, type TxRef, type WalletInfo, type WalletPayload, type WithdrawActions, type WithdrawBalanceInput, type WithdrawBindings, type WithdrawController, type WithdrawEvent, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient, type WithdrawableBalanceDto, type WithdrawableBalanceItemPayload, type WithdrawableBalancesResponse, type WithdrawalFormSnapshot, type WithdrawalQuoteBreakdownPayload, type WithdrawalQuoteDto, type WithdrawalQuotePayload, type WithdrawalQuoteResponse, type WithdrawalReceiveAssetPayload, type WithdrawalSettlementDto, type WithdrawalSettlementFailurePayload, type WithdrawalSettlementPayload, type WithdrawalSettlementPendingPayload, type WithdrawalSettlementResponse, type WithdrawalSettlementSuccessPayload, stepRendersSettlement };
|
|
17
|
+
export { type AcceptedAssetPayload, type AddressItemPayload, type AssetPayload, type BalanceItemPayload, type BannerAckBucket, type BrandPayload, type ChainPayload, type ConfirmDepositPhase, type DepositActions, type DepositController, type DepositMethod, type DepositSnapshot, type DepositState, type DepositStateName, type Entity, type FailureInfo, type GatewayEvent, type KitConfig, type KitDirection, type KitRadius, type KitStorage, type KitStorageAdapter, type KitStoragePersistence, type KitTarget, type KitTheme, type OpenInput, type Presentation, type PresentationConfig, type PresentationMode, type QuoteBreakdownPayload, type QuotePayload, type QuoteRoutePayload, type ReceiveChainPayload, type ReceiveOptionDto, type ReceiveOptionsResponse, type ReceiveTokenOptionPayload, type ResolvedOpenInput, type RetryTargetSpec, STEPS_WITH_OWN_SETTLEMENT_VIEW, type SettlementFailureKind, type SettlementFailurePayload, type SettlementPayload, type SettlementPendingPayload, type SettlementSuccessPayload, type SourceWalletPayload, type TargetPayload, type TxRef, type WalletInfo, type WalletPayload, type WithdrawActions, type WithdrawBalanceInput, type WithdrawBindings, type WithdrawController, type WithdrawEvent, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient, type WithdrawableBalanceDto, type WithdrawableBalanceItemPayload, type WithdrawableBalancesResponse, type WithdrawalFormSnapshot, type WithdrawalQuoteBreakdownPayload, type WithdrawalQuoteDto, type WithdrawalQuotePayload, type WithdrawalQuoteResponse, type WithdrawalReceiveAssetPayload, type WithdrawalSettlementDto, type WithdrawalSettlementFailurePayload, type WithdrawalSettlementPayload, type WithdrawalSettlementPendingPayload, type WithdrawalSettlementResponse, type WithdrawalSettlementSuccessPayload, stepRendersSettlement };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Presentation, PresentationConfig, PresentationMode } from "../shared/presentation/types.js";
|
|
1
2
|
import { WalletRow, WalletRowDensity, WalletRowProps } from "../shared/ui/WalletRow/WalletRow.js";
|
|
2
3
|
import { WALLET_ROW_SLOTS, WalletRowSlot } from "../shared/ui/WalletRow/WalletRow.slots.js";
|
|
4
|
+
import { AdaptiveSurface, AdaptiveSurfaceProps } from "../shared/ui/AdaptiveSurface/AdaptiveSurface.js";
|
|
3
5
|
import { Alert, AlertVariant } from "../shared/ui/Alert/Alert.js";
|
|
4
6
|
import { ALERT_SLOTS, AlertSlot } from "../shared/ui/Alert/Alert.slots.js";
|
|
5
7
|
import { AmountInput } from "../shared/ui/AmountInput/AmountInput.js";
|
|
@@ -17,6 +19,8 @@ import { Details } from "../shared/ui/Details/Details.js";
|
|
|
17
19
|
import { DETAILS_SLOTS, DetailsSlot } from "../shared/ui/Details/Details.slots.js";
|
|
18
20
|
import { Dialog, useIsInsideDialogContent } from "../shared/ui/Dialog/Dialog.js";
|
|
19
21
|
import { DIALOG_SLOTS, DialogSlot } from "../shared/ui/Dialog/Dialog.slots.js";
|
|
22
|
+
import { Drawer } from "../shared/ui/Drawer/Drawer.js";
|
|
23
|
+
import { DRAWER_SLOTS, DrawerSlot } from "../shared/ui/Drawer/Drawer.slots.js";
|
|
20
24
|
import { ExternalLink } from "../shared/ui/ExternalLink/ExternalLink.js";
|
|
21
25
|
import { EXTERNAL_LINK_SLOTS, ExternalLinkSlot } from "../shared/ui/ExternalLink/ExternalLink.slots.js";
|
|
22
26
|
import { Field, FieldOrientation } from "../shared/ui/Field/Field.js";
|
|
@@ -47,4 +51,4 @@ import { TokenLogoProps } from "../shared/ui/TokenLogo/types.js";
|
|
|
47
51
|
import { TokenLogo } from "../shared/ui/TokenLogo/TokenLogo.js";
|
|
48
52
|
import { Tooltip, TooltipVariant } from "../shared/ui/Tooltip/Tooltip.js";
|
|
49
53
|
import { TOOLTIP_SLOTS, TooltipSlot } from "../shared/ui/Tooltip/Tooltip.slots.js";
|
|
50
|
-
export { ALERT_SLOTS, AMOUNT_INPUT_SLOTS, Alert, AlertSlot, AlertVariant, AmountInput, AmountInputSlot, BADGE_SLOTS, BUTTON_SLOTS, Badge, BadgeColor, BadgeRoundness, BadgeSize, BadgeSlot, BadgeVariant, Button, ButtonSize, ButtonSlot, ButtonVariant, CARD_SLOTS, COLLAPSIBLE_SLOTS, Card, CardSlot, CardVariant, Collapsible, CollapsibleSlot, DETAILS_SLOTS, DIALOG_SLOTS, Details, DetailsSlot, Dialog, DialogSlot, EXTERNAL_LINK_SLOTS, ExternalLink, ExternalLinkSlot, FIELD_SLOTS, Field, FieldOrientation, FieldSlot, HtmlTags, ICON_BUTTON_SLOTS, IMAGE_SLOTS, INPUT_GROUP_SLOTS, IconButton, IconButtonSize, IconButtonSlot, Image, ImageGroupProps, ImageOverlayProps, ImageProps, ImageShape, ImageSize, ImageSlot, InputGroup, InputGroupAddonAlign, InputGroupSlot, LtrAtom, LtrAtomProps, SCROLL_AREA_SLOTS, SELECTABLE_TILE_SLOTS, SELECT_SLOTS, SKELETON_SLOTS, STEPS_SLOTS, ScrollArea, ScrollAreaSlot, Select, SelectSlot, SelectVariant, SelectableTile, SelectableTileGroup, SelectableTileGroupProps, SelectableTileShape, SelectableTileSlot, Skeleton, SkeletonSlot, Step, Steps, StepsSlot, TEXT_SLOTS, TOOLTIP_SLOTS, TextAlign, TextColor, TextComponent, TextFactory, TextFont, TextFontWeight, TextLeading, TextProps, TextSize, TextSlot, TextTracking, TextTransform, TokenLogo, TokenLogoProps, Tooltip, TooltipSlot, TooltipVariant, WALLET_ROW_SLOTS, WalletRow, WalletRowDensity, WalletRowProps, WalletRowSlot, formatAmountForInput, parseAmountInputValue, text, useIsInsideDialogContent };
|
|
54
|
+
export { ALERT_SLOTS, AMOUNT_INPUT_SLOTS, AdaptiveSurface, AdaptiveSurfaceProps, Alert, AlertSlot, AlertVariant, AmountInput, AmountInputSlot, BADGE_SLOTS, BUTTON_SLOTS, Badge, BadgeColor, BadgeRoundness, BadgeSize, BadgeSlot, BadgeVariant, Button, ButtonSize, ButtonSlot, ButtonVariant, CARD_SLOTS, COLLAPSIBLE_SLOTS, Card, CardSlot, CardVariant, Collapsible, CollapsibleSlot, DETAILS_SLOTS, DIALOG_SLOTS, DRAWER_SLOTS, Details, DetailsSlot, Dialog, DialogSlot, Drawer, DrawerSlot, EXTERNAL_LINK_SLOTS, ExternalLink, ExternalLinkSlot, FIELD_SLOTS, Field, FieldOrientation, FieldSlot, HtmlTags, ICON_BUTTON_SLOTS, IMAGE_SLOTS, INPUT_GROUP_SLOTS, IconButton, IconButtonSize, IconButtonSlot, Image, ImageGroupProps, ImageOverlayProps, ImageProps, ImageShape, ImageSize, ImageSlot, InputGroup, InputGroupAddonAlign, InputGroupSlot, LtrAtom, LtrAtomProps, Presentation, PresentationConfig, PresentationMode, SCROLL_AREA_SLOTS, SELECTABLE_TILE_SLOTS, SELECT_SLOTS, SKELETON_SLOTS, STEPS_SLOTS, ScrollArea, ScrollAreaSlot, Select, SelectSlot, SelectVariant, SelectableTile, SelectableTileGroup, SelectableTileGroupProps, SelectableTileShape, SelectableTileSlot, Skeleton, SkeletonSlot, Step, Steps, StepsSlot, TEXT_SLOTS, TOOLTIP_SLOTS, TextAlign, TextColor, TextComponent, TextFactory, TextFont, TextFontWeight, TextLeading, TextProps, TextSize, TextSlot, TextTracking, TextTransform, TokenLogo, TokenLogoProps, Tooltip, TooltipSlot, TooltipVariant, WALLET_ROW_SLOTS, WalletRow, WalletRowDensity, WalletRowProps, WalletRowSlot, formatAmountForInput, parseAmountInputValue, text, useIsInsideDialogContent };
|
package/dist/ui/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EXTERNAL_LINK_SLOTS as e}from"../shared/ui/ExternalLink/ExternalLink.slots.js";import{ExternalLink as t}from"../shared/ui/ExternalLink/ExternalLink.js";import"../shared/ui/ExternalLink/index.js";import{BUTTON_SLOTS as n}from"../shared/ui/Button/Button.slots.js";import{Button as r}from"../shared/ui/Button/Button.js";import"../shared/ui/Button/index.js";import{ICON_BUTTON_SLOTS as i}from"../shared/ui/IconButton/IconButton.slots.js";import{IconButton as a}from"../shared/ui/IconButton/IconButton.js";import"../shared/ui/IconButton/index.js";import{SCROLL_AREA_SLOTS as o}from"../shared/ui/ScrollArea/ScrollArea.slots.js";import{ScrollArea as s}from"../shared/ui/ScrollArea/ScrollArea.js";import"../shared/ui/ScrollArea/index.js";import{DIALOG_SLOTS as c}from"../shared/ui/Dialog/Dialog.slots.js";import{Dialog as l,useIsInsideDialogContent as u}from"../shared/ui/Dialog/Dialog.js";import"../shared/ui/Dialog/index.js";import{
|
|
1
|
+
import{EXTERNAL_LINK_SLOTS as e}from"../shared/ui/ExternalLink/ExternalLink.slots.js";import{ExternalLink as t}from"../shared/ui/ExternalLink/ExternalLink.js";import"../shared/ui/ExternalLink/index.js";import{BUTTON_SLOTS as n}from"../shared/ui/Button/Button.slots.js";import{Button as r}from"../shared/ui/Button/Button.js";import"../shared/ui/Button/index.js";import{ICON_BUTTON_SLOTS as i}from"../shared/ui/IconButton/IconButton.slots.js";import{IconButton as a}from"../shared/ui/IconButton/IconButton.js";import"../shared/ui/IconButton/index.js";import{SCROLL_AREA_SLOTS as o}from"../shared/ui/ScrollArea/ScrollArea.slots.js";import{ScrollArea as s}from"../shared/ui/ScrollArea/ScrollArea.js";import"../shared/ui/ScrollArea/index.js";import{DIALOG_SLOTS as c}from"../shared/ui/Dialog/Dialog.slots.js";import{Dialog as l,useIsInsideDialogContent as u}from"../shared/ui/Dialog/Dialog.js";import"../shared/ui/Dialog/index.js";import{DRAWER_SLOTS as d}from"../shared/ui/Drawer/Drawer.slots.js";import{Drawer as f}from"../shared/ui/Drawer/Drawer.js";import"../shared/ui/Drawer/index.js";import{AdaptiveSurface as p}from"../shared/ui/AdaptiveSurface/AdaptiveSurface.js";import"../shared/ui/AdaptiveSurface/index.js";import{ALERT_SLOTS as m}from"../shared/ui/Alert/Alert.slots.js";import{Alert as h}from"../shared/ui/Alert/Alert.js";import"../shared/ui/Alert/index.js";import{AMOUNT_INPUT_SLOTS as g}from"../shared/ui/AmountInput/AmountInput.slots.js";import{formatAmountForInput as _,parseAmountInputValue as v}from"../shared/ui/AmountInput/utils.js";import{AmountInput as y}from"../shared/ui/AmountInput/AmountInput.js";import"../shared/ui/AmountInput/index.js";import{BADGE_SLOTS as b}from"../shared/ui/Badge/Badge.slots.js";import{Badge as x}from"../shared/ui/Badge/Badge.js";import"../shared/ui/Badge/index.js";import{CARD_SLOTS as S}from"../shared/ui/Card/Card.slots.js";import{Card as C}from"../shared/ui/Card/Card.js";import"../shared/ui/Card/index.js";import{COLLAPSIBLE_SLOTS as w}from"../shared/ui/Collapsible/Collapsible.slots.js";import{Collapsible as T}from"../shared/ui/Collapsible/Collapsible.js";import"../shared/ui/Collapsible/index.js";import{DETAILS_SLOTS as E}from"../shared/ui/Details/Details.slots.js";import{Details as D}from"../shared/ui/Details/Details.js";import"../shared/ui/Details/index.js";import{FIELD_SLOTS as O}from"../shared/ui/Field/Field.slots.js";import{Field as k}from"../shared/ui/Field/Field.js";import"../shared/ui/Field/index.js";import{IMAGE_SLOTS as A}from"../shared/ui/Image/Image.slots.js";import{Image as j}from"../shared/ui/Image/Image.js";import"../shared/ui/Image/index.js";import{INPUT_GROUP_SLOTS as M}from"../shared/ui/InputGroup/InputGroup.slots.js";import{InputGroup as N}from"../shared/ui/InputGroup/InputGroup.js";import"../shared/ui/InputGroup/index.js";import{LtrAtom as P}from"../shared/ui/LtrAtom/LtrAtom.js";import"../shared/ui/LtrAtom/index.js";import{SELECT_SLOTS as F}from"../shared/ui/Select/Select.slots.js";import{Select as I}from"../shared/ui/Select/Select.js";import"../shared/ui/Select/index.js";import{SELECTABLE_TILE_SLOTS as L}from"../shared/ui/SelectableTile/SelectableTile.slots.js";import{SelectableTile as R}from"../shared/ui/SelectableTile/SelectableTile.js";import{SelectableTileGroup as z}from"../shared/ui/SelectableTile/SelectableTileGroup.js";import"../shared/ui/SelectableTile/index.js";import{SKELETON_SLOTS as B}from"../shared/ui/Skeleton/Skeleton.slots.js";import{Skeleton as V}from"../shared/ui/Skeleton/Skeleton.js";import"../shared/ui/Skeleton/index.js";import{STEPS_SLOTS as H}from"../shared/ui/Steps/Steps.slots.js";import{Step as U,Steps as W}from"../shared/ui/Steps/Steps.js";import"../shared/ui/Steps/index.js";import{TEXT_SLOTS as G}from"../shared/ui/Text/Text.slots.js";import{text as K}from"../shared/ui/Text/Text.js";import"../shared/ui/Text/index.js";import{TokenLogo as q}from"../shared/ui/TokenLogo/TokenLogo.js";import"../shared/ui/TokenLogo/index.js";import{TOOLTIP_SLOTS as J}from"../shared/ui/Tooltip/Tooltip.slots.js";import{Tooltip as Y}from"../shared/ui/Tooltip/Tooltip.js";import"../shared/ui/Tooltip/index.js";import{WALLET_ROW_SLOTS as X}from"../shared/ui/WalletRow/WalletRow.slots.js";import{WalletRow as Z}from"../shared/ui/WalletRow/WalletRow.js";import"../shared/ui/WalletRow/index.js";export{m as ALERT_SLOTS,g as AMOUNT_INPUT_SLOTS,p as AdaptiveSurface,h as Alert,y as AmountInput,b as BADGE_SLOTS,n as BUTTON_SLOTS,x as Badge,r as Button,S as CARD_SLOTS,w as COLLAPSIBLE_SLOTS,C as Card,T as Collapsible,E as DETAILS_SLOTS,c as DIALOG_SLOTS,d as DRAWER_SLOTS,D as Details,l as Dialog,f as Drawer,e as EXTERNAL_LINK_SLOTS,t as ExternalLink,O as FIELD_SLOTS,k as Field,i as ICON_BUTTON_SLOTS,A as IMAGE_SLOTS,M as INPUT_GROUP_SLOTS,a as IconButton,j as Image,N as InputGroup,P as LtrAtom,o as SCROLL_AREA_SLOTS,L as SELECTABLE_TILE_SLOTS,F as SELECT_SLOTS,B as SKELETON_SLOTS,H as STEPS_SLOTS,s as ScrollArea,I as Select,R as SelectableTile,z as SelectableTileGroup,V as Skeleton,U as Step,W as Steps,G as TEXT_SLOTS,J as TOOLTIP_SLOTS,q as TokenLogo,Y as Tooltip,X as WALLET_ROW_SLOTS,Z as WalletRow,_ as formatAmountForInput,v as parseAmountInputValue,K as text,u as useIsInsideDialogContent};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdown, ConfirmTransferBreakdownPercentRow, ConfirmTransferBreakdownProps, ConfirmTransferBreakdownTextRow, ConfirmTransferBreakdownUsdRow, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps, ConfirmTransferToken, ConfirmTransferTransfer } from "../../shared/widgets/confirm-transfer/compound/types.js";
|
|
2
2
|
import { ConfirmTransfer } from "../../shared/widgets/confirm-transfer/compound/ConfirmTransfer.js";
|
|
3
3
|
import { CONFIRM_TRANSFER_SLOTS, ConfirmTransferSlot } from "../../shared/widgets/confirm-transfer/compound/ConfirmTransfer.slots.js";
|
|
4
|
-
import { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken } from "../../shared/widgets/amount-entry/compound/types.js";
|
|
5
|
-
import { AmountEntry } from "../../shared/widgets/amount-entry/compound/AmountEntry.js";
|
|
6
|
-
import { AMOUNT_ENTRY_SLOTS, AmountEntrySlot } from "../../shared/widgets/amount-entry/compound/AmountEntry.slots.js";
|
|
7
|
-
import { AssetOption, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerToken } from "../../shared/widgets/asset-picker/compound/types.js";
|
|
8
|
-
import { AssetPicker } from "../../shared/widgets/asset-picker/compound/AssetPicker.js";
|
|
9
|
-
import { ASSET_PICKER_SLOTS, AssetPickerSlot } from "../../shared/widgets/asset-picker/compound/AssetPicker.slots.js";
|
|
10
4
|
import { ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef } from "../../shared/widgets/error-state/compound/types.js";
|
|
11
5
|
import { ErrorState } from "../../shared/widgets/error-state/compound/ErrorState.js";
|
|
12
6
|
import { ERROR_STATE_SLOTS, ErrorStateSlot } from "../../shared/widgets/error-state/compound/ErrorState.slots.js";
|
|
@@ -16,6 +10,12 @@ import { PROCESSING_STATE_SLOTS, ProcessingStateSlot } from "../../shared/widget
|
|
|
16
10
|
import { SuccessStateActionsProps, SuccessStateAsset, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateExplorer, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateSourceWallet, SuccessStateStatusPillProps, SuccessStateTxRef } from "../../shared/widgets/success-state/compound/types.js";
|
|
17
11
|
import { SuccessState } from "../../shared/widgets/success-state/compound/SuccessState.js";
|
|
18
12
|
import { SUCCESS_STATE_SLOTS, SuccessStateSlot } from "../../shared/widgets/success-state/compound/SuccessState.slots.js";
|
|
13
|
+
import { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken } from "../../shared/widgets/amount-entry/compound/types.js";
|
|
14
|
+
import { AmountEntry } from "../../shared/widgets/amount-entry/compound/AmountEntry.js";
|
|
15
|
+
import { AMOUNT_ENTRY_SLOTS, AmountEntrySlot } from "../../shared/widgets/amount-entry/compound/AmountEntry.slots.js";
|
|
16
|
+
import { AssetOption, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerToken } from "../../shared/widgets/asset-picker/compound/types.js";
|
|
17
|
+
import { AssetPicker } from "../../shared/widgets/asset-picker/compound/AssetPicker.js";
|
|
18
|
+
import { ASSET_PICKER_SLOTS, AssetPickerSlot } from "../../shared/widgets/asset-picker/compound/AssetPicker.slots.js";
|
|
19
19
|
import { WithdrawStepsProps } from "../../flows/withdraw/widgets/withdraw/compound/components/Steps.js";
|
|
20
20
|
import { Withdraw } from "../../flows/withdraw/widgets/withdraw/compound/Withdraw.js";
|
|
21
21
|
import { WITHDRAW_SLOTS, WithdrawSlot } from "../../flows/withdraw/widgets/withdraw/compound/Withdraw.slots.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WithdrawActivityDetail } from "../../flows/withdraw/widgets/activity/WithdrawActivityDetail.js";
|
|
2
|
+
import { WithdrawActivityList } from "../../flows/withdraw/widgets/activity/WithdrawActivityList.js";
|
|
3
3
|
import { WithdrawError } from "../../flows/withdraw/widgets/withdraw-error/WithdrawError.js";
|
|
4
4
|
import { WithdrawForm } from "../../flows/withdraw/widgets/withdraw-form/WithdrawForm.js";
|
|
5
5
|
import { WithdrawInProgress } from "../../flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js";
|
|
6
6
|
import { WithdrawSuccess } from "../../flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js";
|
|
7
|
-
export {
|
|
7
|
+
export { WithdrawActivityDetail, WithdrawActivityList, WithdrawError, WithdrawForm, WithdrawInProgress, WithdrawSuccess };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{WithdrawActivityDetail as e}from"../../flows/withdraw/widgets/activity/WithdrawActivityDetail.js";import{WithdrawActivityList as t}from"../../flows/withdraw/widgets/activity/WithdrawActivityList.js";import"../../flows/withdraw/widgets/activity/index.js";import{WithdrawError as n}from"../../flows/withdraw/widgets/withdraw-error/WithdrawError.js";import"../../flows/withdraw/widgets/withdraw-error/index.js";import{WithdrawForm as r}from"../../flows/withdraw/widgets/withdraw-form/WithdrawForm.js";import"../../flows/withdraw/widgets/withdraw-form/index.js";import{WithdrawInProgress as i}from"../../flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js";import"../../flows/withdraw/widgets/withdraw-in-progress/index.js";import{WithdrawSuccess as a}from"../../flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js";import"../../flows/withdraw/widgets/withdraw-success/index.js";export{e as WithdrawActivityDetail,t as WithdrawActivityList,n as WithdrawError,r as WithdrawForm,i as WithdrawInProgress,a as WithdrawSuccess};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stridge/kit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -42,9 +42,17 @@
|
|
|
42
42
|
"types": "./dist/withdraw/widgets/index.d.ts",
|
|
43
43
|
"import": "./dist/withdraw/widgets/index.js"
|
|
44
44
|
},
|
|
45
|
-
"./activity
|
|
46
|
-
"types": "./dist/activity
|
|
47
|
-
"import": "./dist/activity
|
|
45
|
+
"./activity/compound": {
|
|
46
|
+
"types": "./dist/activity/compound/index.d.ts",
|
|
47
|
+
"import": "./dist/activity/compound/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./activity/dialog": {
|
|
50
|
+
"types": "./dist/activity/dialog/index.d.ts",
|
|
51
|
+
"import": "./dist/activity/dialog/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./activity/widgets": {
|
|
54
|
+
"types": "./dist/activity/widgets/index.d.ts",
|
|
55
|
+
"import": "./dist/activity/widgets/index.js"
|
|
48
56
|
},
|
|
49
57
|
"./ui": {
|
|
50
58
|
"types": "./dist/ui/index.d.ts",
|
|
@@ -151,8 +159,8 @@
|
|
|
151
159
|
},
|
|
152
160
|
"scripts": {
|
|
153
161
|
"build": "pnpm run i18n:compile && tsdown",
|
|
154
|
-
"check:api": "api-extractor run && api-extractor run --config api-extractor.i18n.json && api-extractor run --config api-extractor.events.json && api-extractor run --config api-extractor.
|
|
155
|
-
"check:api:update": "api-extractor run --local && api-extractor run --local --config api-extractor.i18n.json && api-extractor run --local --config api-extractor.events.json && api-extractor run --local --config api-extractor.
|
|
162
|
+
"check:api": "api-extractor run && api-extractor run --config api-extractor.i18n.json && api-extractor run --config api-extractor.events.json && api-extractor run --config api-extractor.deposit.widgets.json && api-extractor run --config api-extractor.withdraw.widgets.json && api-extractor run --config api-extractor.activity.compound.json && api-extractor run --config api-extractor.activity.dialog.json && api-extractor run --config api-extractor.activity.widgets.json",
|
|
163
|
+
"check:api:update": "api-extractor run --local && api-extractor run --local --config api-extractor.i18n.json && api-extractor run --local --config api-extractor.events.json && api-extractor run --local --config api-extractor.deposit.widgets.json && api-extractor run --local --config api-extractor.withdraw.widgets.json && api-extractor run --local --config api-extractor.activity.compound.json && api-extractor run --local --config api-extractor.activity.dialog.json && api-extractor run --local --config api-extractor.activity.widgets.json",
|
|
156
164
|
"check:attw": "attw --pack . --profile esm-only --exclude-entrypoints ./styles.css",
|
|
157
165
|
"check:isolation": "depcruise src",
|
|
158
166
|
"check:publint": "publint",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ActivityHistoryPayload, ActivityHistoryRowPayload } from "../../shared/widgets/activity-history/payloads.js";
|
|
2
|
-
import { ActivityHistoryHeader, ActivityHistoryListHeader } from "../../shared/widgets/activity-history/compound/components/HistoryHeader.js";
|
|
3
|
-
import { ActivityHistoryRowProps } from "../../shared/widgets/activity-history/compound/components/Row.js";
|
|
4
|
-
import { ActivityHistory } from "../../shared/widgets/activity-history/compound/ActivityHistory.js";
|
|
5
|
-
import { ACTIVITY_HISTORY_SLOTS, ActivityHistorySlot } from "../../shared/widgets/activity-history/compound/ActivityHistory.slots.js";
|
|
6
|
-
import { ActivityHistoryDetail } from "../../shared/widgets/activity-history/compound/ActivityHistoryDetail.js";
|
|
7
|
-
import { ActivityHistorySourceProvider, ActivityHistorySourceValue, useActivityHistorySource } from "../../shared/widgets/activity-history/compound/context.js";
|
|
8
|
-
import { ACTIVITY_HISTORY_ROW_SLOTS, ActivityHistoryRowSlot } from "../../shared/widgets/activity-history/compound/Row.slots.js";
|
|
9
|
-
export { ACTIVITY_HISTORY_ROW_SLOTS, ACTIVITY_HISTORY_SLOTS, ActivityHistory, ActivityHistoryDetail, ActivityHistoryHeader, ActivityHistoryListHeader, type ActivityHistoryPayload, type ActivityHistoryRowPayload, type ActivityHistoryRowProps, type ActivityHistoryRowSlot, type ActivityHistorySlot, ActivityHistorySourceProvider, type ActivityHistorySourceValue, useActivityHistorySource };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ACTIVITY_HISTORY_SLOTS as e}from"../../shared/widgets/activity-history/compound/ActivityHistory.slots.js";import{ActivityHistorySourceProvider as t,useActivityHistorySource as n}from"../../shared/widgets/activity-history/compound/context.js";import{ActivityHistoryHeader as r,ActivityHistoryListHeader as i}from"../../shared/widgets/activity-history/compound/components/HistoryHeader.js";import{ACTIVITY_HISTORY_ROW_SLOTS as a}from"../../shared/widgets/activity-history/compound/Row.slots.js";import{ActivityHistory as o}from"../../shared/widgets/activity-history/compound/ActivityHistory.js";import{ActivityHistoryDetail as s}from"../../shared/widgets/activity-history/compound/ActivityHistoryDetail.js";export{a as ACTIVITY_HISTORY_ROW_SLOTS,e as ACTIVITY_HISTORY_SLOTS,o as ActivityHistory,s as ActivityHistoryDetail,r as ActivityHistoryHeader,i as ActivityHistoryListHeader,t as ActivityHistorySourceProvider,n as useActivityHistorySource};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{ActivityHistorySourceProvider as e}from"../../../../shared/widgets/activity-history/compound/context.js";import{ActivityHistoryDetail as t}from"../../../../shared/widgets/activity-history/compound/ActivityHistoryDetail.js";import"../../../../activity-history/compound/index.js";import{useDepositActivityHistorySource as n}from"./useDepositActivityHistorySource.js";import{jsx as r}from"react/jsx-runtime";function i({children:i}){let{sourceValue:a,step:o}=n();return o!==`historyDetail`||!a?null:r(e,{value:a,children:r(t,{children:i})})}(function(e){e.Processing=t.Processing,e.Succeeded=t.Succeeded,e.Failed=t.Failed})(i||={});export{i as DepositHistoryDetail};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ActivityHistoryEmpty } from "../../../../shared/widgets/activity-history/compound/components/Empty.js";
|
|
2
|
-
import { ActivityHistoryErrorView } from "../../../../shared/widgets/activity-history/compound/components/ErrorView.js";
|
|
3
|
-
import { ActivityHistoryHeader, ActivityHistoryListHeader } from "../../../../shared/widgets/activity-history/compound/components/HistoryHeader.js";
|
|
4
|
-
import { ActivityHistoryList } from "../../../../shared/widgets/activity-history/compound/components/List.js";
|
|
5
|
-
import { ActivityHistoryRow } from "../../../../shared/widgets/activity-history/compound/components/Row.js";
|
|
6
|
-
import { ComponentProps, ReactNode } from "react";
|
|
7
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
//#region src/flows/deposit/widgets/activity-history/DepositHistoryList.d.ts
|
|
10
|
-
interface DepositHistoryListOwnProps {
|
|
11
|
-
/**
|
|
12
|
-
* Optional custom composition forwarded to the underlying `<ActivityHistory>` compound.
|
|
13
|
-
* Defaults to the compound's `<Header /> + <List />` shape.
|
|
14
|
-
*/
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Orchestrated activity-history list wrapper for the deposit dialog. Bridges the deposit
|
|
19
|
-
* flow's snapshot + actions + FSM state into the cross-flow `<ActivityHistory>` compound's
|
|
20
|
-
* source value. Renders `null` while the FSM is not on `historyList` — the dialog's step
|
|
21
|
-
* router only matches the active step, but the no-op guard keeps the component safe to mount
|
|
22
|
-
* in custom dialog compositions that skip the step router.
|
|
23
|
-
*/
|
|
24
|
-
declare function DepositHistoryList({
|
|
25
|
-
children,
|
|
26
|
-
...props
|
|
27
|
-
}: ComponentProps<"div"> & DepositHistoryListOwnProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
28
|
-
declare namespace DepositHistoryList {
|
|
29
|
-
type Props = ComponentProps<"div"> & DepositHistoryListOwnProps;
|
|
30
|
-
const Header: typeof ActivityHistoryHeader;
|
|
31
|
-
const ListHeader: typeof ActivityHistoryListHeader;
|
|
32
|
-
const List: typeof ActivityHistoryList;
|
|
33
|
-
const Row: typeof ActivityHistoryRow;
|
|
34
|
-
const Empty: typeof ActivityHistoryEmpty;
|
|
35
|
-
const ErrorView: typeof ActivityHistoryErrorView;
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { DepositHistoryList };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{ActivityHistorySourceProvider as e}from"../../../../shared/widgets/activity-history/compound/context.js";import{ActivityHistory as t}from"../../../../shared/widgets/activity-history/compound/ActivityHistory.js";import"../../../../activity-history/compound/index.js";import{useDepositActivityHistorySource as n}from"./useDepositActivityHistorySource.js";import{jsx as r}from"react/jsx-runtime";function i({children:i,...a}){let{sourceValue:o,step:s}=n();return s!==`historyList`||!o?null:r(e,{value:o,children:r(t,{...a,children:i})})}(function(e){e.Header=t.Header,e.ListHeader=t.ListHeader,e.List=t.List,e.Row=t.Row,e.Empty=t.Empty,e.ErrorView=t.ErrorView})(i||={});export{i as DepositHistoryList};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./DepositHistoryDetail.js";import"./DepositHistoryList.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{useDepositDriverInstance as e,useDepositSnapshot as t}from"../../driver/context.js";import{useLingui as n}from"../../../../shared/i18n/useLingui.js";import"../../../../i18n/index.js";import{useDepositActions as r,useDepositEffectiveState as i}from"../../orchestrator/controller.js";import{defaultBlockExplorers as a}from"../../../../shared/utils/explorers.js";import{useCallback as o,useMemo as s}from"react";function c(){let c=t(),l=r(),u=e(),d=i(),{i18n:f}=n(),p=o(e=>{u.refreshHistory?.(e)},[u]),m=d.name===`historyList`||d.name===`historyDetail`,h=d.name===`historyDetail`?d.ctx.settlementId:void 0;return{sourceValue:s(()=>{if(!m)return null;let e=c.wallet,t=e.status===`ready`||e.status===`stale`?e.payload.address.value:`0x0000000000000000000000000000000000000000`,n=c.brand,r=n.status===`ready`||n.status===`stale`?n.payload.name:void 0,i={i18n:f,sourceWallet:{name:`Wallet`,address:t},explorers:a(),...r?{brandName:r}:{}};return{entity:c.history,refresh:p,selectSettlement:l.selectSettlement,back:l.back,...h===void 0?{}:{settlementId:h},settlementContext:i}},[c,l,m,h,f,p]),settlementId:h,step:d.name===`historyList`?`historyList`:d.name===`historyDetail`?`historyDetail`:`other`}}export{c as useDepositActivityHistorySource};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{ActivityHistorySourceProvider as e}from"../../../../shared/widgets/activity-history/compound/context.js";import{ActivityHistoryDetail as t}from"../../../../shared/widgets/activity-history/compound/ActivityHistoryDetail.js";import"../../../../activity-history/compound/index.js";import{useWithdrawActivityHistorySource as n}from"./useWithdrawActivityHistorySource.js";import{jsx as r}from"react/jsx-runtime";function i({children:i}){let{sourceValue:a,step:o}=n();return o!==`historyDetail`||!a?null:r(e,{value:a,children:r(t,{children:i})})}(function(e){e.Processing=t.Processing,e.Succeeded=t.Succeeded,e.Failed=t.Failed})(i||={});export{i as WithdrawHistoryDetail};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ActivityHistoryEmpty } from "../../../../shared/widgets/activity-history/compound/components/Empty.js";
|
|
2
|
-
import { ActivityHistoryErrorView } from "../../../../shared/widgets/activity-history/compound/components/ErrorView.js";
|
|
3
|
-
import { ActivityHistoryHeader, ActivityHistoryListHeader } from "../../../../shared/widgets/activity-history/compound/components/HistoryHeader.js";
|
|
4
|
-
import { ActivityHistoryList } from "../../../../shared/widgets/activity-history/compound/components/List.js";
|
|
5
|
-
import { ActivityHistoryRow } from "../../../../shared/widgets/activity-history/compound/components/Row.js";
|
|
6
|
-
import { ComponentProps, ReactNode } from "react";
|
|
7
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
//#region src/flows/withdraw/widgets/activity-history/WithdrawHistoryList.d.ts
|
|
10
|
-
interface WithdrawHistoryListOwnProps {
|
|
11
|
-
/**
|
|
12
|
-
* Optional custom composition forwarded to the underlying `<ActivityHistory>` compound.
|
|
13
|
-
* Defaults to the compound's `<Header /> + <List />` shape.
|
|
14
|
-
*/
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Orchestrated activity-history list wrapper for the withdraw dialog. Mirrors
|
|
19
|
-
* {@link import("#/flows/deposit/widgets/activity-history").DepositHistoryList}. Renders
|
|
20
|
-
* `null` while the FSM is not on `historyList`.
|
|
21
|
-
*/
|
|
22
|
-
declare function WithdrawHistoryList({
|
|
23
|
-
children,
|
|
24
|
-
...props
|
|
25
|
-
}: ComponentProps<"div"> & WithdrawHistoryListOwnProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
26
|
-
declare namespace WithdrawHistoryList {
|
|
27
|
-
type Props = ComponentProps<"div"> & WithdrawHistoryListOwnProps;
|
|
28
|
-
const Header: typeof ActivityHistoryHeader;
|
|
29
|
-
const ListHeader: typeof ActivityHistoryListHeader;
|
|
30
|
-
const List: typeof ActivityHistoryList;
|
|
31
|
-
const Row: typeof ActivityHistoryRow;
|
|
32
|
-
const Empty: typeof ActivityHistoryEmpty;
|
|
33
|
-
const ErrorView: typeof ActivityHistoryErrorView;
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { WithdrawHistoryList };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{ActivityHistorySourceProvider as e}from"../../../../shared/widgets/activity-history/compound/context.js";import{ActivityHistory as t}from"../../../../shared/widgets/activity-history/compound/ActivityHistory.js";import"../../../../activity-history/compound/index.js";import{useWithdrawActivityHistorySource as n}from"./useWithdrawActivityHistorySource.js";import{jsx as r}from"react/jsx-runtime";function i({children:i,...a}){let{sourceValue:o,step:s}=n();return s!==`historyList`||!o?null:r(e,{value:o,children:r(t,{...a,children:i})})}(function(e){e.Header=t.Header,e.ListHeader=t.ListHeader,e.List=t.List,e.Row=t.Row,e.Empty=t.Empty,e.ErrorView=t.ErrorView})(i||={});export{i as WithdrawHistoryList};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./WithdrawHistoryDetail.js";import"./WithdrawHistoryList.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../shared/i18n/useLingui.js";import"../../../../i18n/index.js";import{useWithdrawDriverInstance as t,useWithdrawSnapshot as n}from"../../driver/context.js";import{useWithdrawActions as r,useWithdrawEffectiveState as i}from"../../orchestrator/controller.js";import"../../orchestrator/index.js";import{defaultBlockExplorers as a}from"../../../../shared/utils/explorers.js";import{useCallback as o,useMemo as s}from"react";function c(){let c=n(),l=r(),u=t(),d=i(),{i18n:f}=e(),p=o(e=>{u.refreshHistory?.(e)},[u]),m=d.name===`historyList`||d.name===`historyDetail`,h=d.name===`historyDetail`?d.ctx.settlementId:void 0;return{sourceValue:s(()=>{if(!m)return null;let e={i18n:f,sourceWallet:{name:`Wallet`,address:`0x0000000000000000000000000000000000000000`},explorers:a()};return{entity:c.history,refresh:p,selectSettlement:l.selectSettlement,back:l.back,...h===void 0?{}:{settlementId:h},settlementContext:e}},[c,l,m,h,f,p]),settlementId:h,step:d.name===`historyList`?`historyList`:d.name===`historyDetail`?`historyDetail`:`other`}}export{c as useWithdrawActivityHistorySource};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../i18n/useLingui.js";import"../../../i18n/index.js";import{HistoryIcon as t}from"../../icons/HistoryIcon.js";import"../../../icons/index.js";import{IconButton as n}from"../../ui/IconButton/IconButton.js";import"../../../ui/index.js";import{styles as r}from"./ActivityTrigger.styles.js";import{jsx as i}from"react/jsx-runtime";import*as a from"@stylexjs/stylex";function o({onOpen:o}){let{_:s}=e();return i(n,{"aria-label":s({id:`Vj6_6B`,message:`View activity history`}),onClick:o,children:i(t,{"aria-hidden":!0,...a.props(r.icon)})})}export{o as ActivityTrigger};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{settlementToPayload as e}from"../../../../flows/deposit/driver/transformers/settlementToPayload.js";import{resolveDirection as t}from"../transformers/resolveDirection.js";function n(n,r,i){let a=i.sourceWallet.address.toLowerCase();for(let o of n)for(let n of o.settlements)if(n.id===r)return{payload:e(n,o,i),uda:o,direction:t(o,a)};return null}export{n as settlementToWidgetProps};
|