@0xsquid/ui 3.2.0 → 3.2.2-beta.1.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.
Files changed (65) hide show
  1. package/dist/cjs/index.js +40592 -44481
  2. package/dist/cjs/types/components/badges/TransactionState.d.ts +2 -2
  3. package/dist/cjs/types/components/buttons/TokenOnlyButton.d.ts +18 -0
  4. package/dist/cjs/types/components/buttons/index.d.ts +1 -0
  5. package/dist/cjs/types/components/controls/DatePicker.d.ts +9 -0
  6. package/dist/cjs/types/components/icons/Arrow.d.ts +4 -0
  7. package/dist/cjs/types/components/icons/Clock.d.ts +4 -0
  8. package/dist/cjs/types/components/icons/NotAllowed.d.ts +3 -1
  9. package/dist/cjs/types/components/icons/Tick.d.ts +4 -0
  10. package/dist/cjs/types/components/layout/SwapConfiguration.d.ts +2 -1
  11. package/dist/cjs/types/components/layout/TransactionFilters/ChainsFilter.d.ts +15 -0
  12. package/dist/cjs/types/components/layout/TransactionFilters/DateFilters.d.ts +8 -0
  13. package/dist/cjs/types/components/layout/TransactionFilters/FilterSection.d.ts +10 -0
  14. package/dist/cjs/types/components/layout/TransactionFilters/StatusFilter.d.ts +12 -0
  15. package/dist/cjs/types/components/layout/TransactionFilters/TransactionFilters.d.ts +29 -0
  16. package/dist/cjs/types/components/layout/index.d.ts +1 -1
  17. package/dist/cjs/types/components/lists/TransactionItem.d.ts +1 -0
  18. package/dist/cjs/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +2 -0
  19. package/dist/cjs/types/components/views/TransactionView/BridgeTransactionView.d.ts +3 -2
  20. package/dist/cjs/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +1 -1
  21. package/dist/cjs/types/components/views/TransactionView/InteractionTransactionView.d.ts +1 -1
  22. package/dist/cjs/types/components/views/TransactionView/Properties/TimeToCompleteProperty.d.ts +5 -0
  23. package/dist/cjs/types/components/views/TransactionView/SwapTransactionView.d.ts +1 -2
  24. package/dist/cjs/types/core/utils.d.ts +1 -1
  25. package/dist/cjs/types/hooks/useTimer.d.ts +2 -1
  26. package/dist/cjs/types/stories/buttons/TokenOnlyButton.stories.d.ts +18 -0
  27. package/dist/cjs/types/stories/layout/TransactionFilters.stories.d.ts +1 -1
  28. package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +31 -0
  29. package/dist/cjs/types/stories/views/TransactionView.stories.d.ts +317 -1
  30. package/dist/cjs/types/types/components.d.ts +1 -1
  31. package/dist/esm/index.js +40589 -44483
  32. package/dist/esm/types/components/badges/TransactionState.d.ts +2 -2
  33. package/dist/esm/types/components/buttons/TokenOnlyButton.d.ts +18 -0
  34. package/dist/esm/types/components/buttons/index.d.ts +1 -0
  35. package/dist/esm/types/components/controls/DatePicker.d.ts +9 -0
  36. package/dist/esm/types/components/icons/Arrow.d.ts +4 -0
  37. package/dist/esm/types/components/icons/Clock.d.ts +4 -0
  38. package/dist/esm/types/components/icons/NotAllowed.d.ts +3 -1
  39. package/dist/esm/types/components/icons/Tick.d.ts +4 -0
  40. package/dist/esm/types/components/layout/SwapConfiguration.d.ts +2 -1
  41. package/dist/esm/types/components/layout/TransactionFilters/ChainsFilter.d.ts +15 -0
  42. package/dist/esm/types/components/layout/TransactionFilters/DateFilters.d.ts +8 -0
  43. package/dist/esm/types/components/layout/TransactionFilters/FilterSection.d.ts +10 -0
  44. package/dist/esm/types/components/layout/TransactionFilters/StatusFilter.d.ts +12 -0
  45. package/dist/esm/types/components/layout/TransactionFilters/TransactionFilters.d.ts +29 -0
  46. package/dist/esm/types/components/layout/index.d.ts +1 -1
  47. package/dist/esm/types/components/lists/TransactionItem.d.ts +1 -0
  48. package/dist/esm/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +2 -0
  49. package/dist/esm/types/components/views/TransactionView/BridgeTransactionView.d.ts +3 -2
  50. package/dist/esm/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +1 -1
  51. package/dist/esm/types/components/views/TransactionView/InteractionTransactionView.d.ts +1 -1
  52. package/dist/esm/types/components/views/TransactionView/Properties/TimeToCompleteProperty.d.ts +5 -0
  53. package/dist/esm/types/components/views/TransactionView/SwapTransactionView.d.ts +1 -2
  54. package/dist/esm/types/core/utils.d.ts +1 -1
  55. package/dist/esm/types/hooks/useTimer.d.ts +2 -1
  56. package/dist/esm/types/stories/buttons/TokenOnlyButton.stories.d.ts +18 -0
  57. package/dist/esm/types/stories/layout/TransactionFilters.stories.d.ts +1 -1
  58. package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +31 -0
  59. package/dist/esm/types/stories/views/TransactionView.stories.d.ts +317 -1
  60. package/dist/esm/types/types/components.d.ts +1 -1
  61. package/dist/index.css +1 -1
  62. package/dist/index.d.ts +70 -23
  63. package/package.json +1 -1
  64. package/dist/cjs/types/components/layout/TransactionFilters.d.ts +0 -20
  65. package/dist/esm/types/components/layout/TransactionFilters.d.ts +0 -20
@@ -165,6 +165,165 @@ export declare const Swap: {
165
165
  };
166
166
  };
167
167
  };
168
+ export declare const SwapMissingToToken: {
169
+ args: {
170
+ type: string;
171
+ data: {
172
+ toToken: undefined;
173
+ title: string;
174
+ hash: string;
175
+ status: string;
176
+ url: string;
177
+ fromAmount: string;
178
+ toAmount: string;
179
+ fromToken: {
180
+ logoURI: string;
181
+ bgColor: string;
182
+ symbol: string;
183
+ };
184
+ fromChain: {
185
+ logoURI: string;
186
+ name: string;
187
+ bgColor: string;
188
+ };
189
+ toChain: {
190
+ logoURI: string;
191
+ name: string;
192
+ bgColor: string;
193
+ };
194
+ fromAddress: string;
195
+ toAddress: string;
196
+ fromLink: string;
197
+ toLink: string;
198
+ exchangeRate: string;
199
+ timeToComplete: string;
200
+ actions: ({
201
+ type: "success";
202
+ props: {
203
+ status: "success";
204
+ timestamp: number;
205
+ hash: string;
206
+ url: string;
207
+ };
208
+ } | {
209
+ type: "receive_tokens";
210
+ props: {
211
+ status: "executed";
212
+ amount: string;
213
+ token: {
214
+ logoURI: string;
215
+ bgColor: string;
216
+ symbol: string;
217
+ };
218
+ chain: {
219
+ logoURI: string;
220
+ name: string;
221
+ bgColor: string;
222
+ };
223
+ wallet: {
224
+ imageURI: string;
225
+ address: string;
226
+ url: string;
227
+ };
228
+ timestamp: number;
229
+ hash: string;
230
+ url: string;
231
+ };
232
+ } | {
233
+ type: "send_tokens";
234
+ props: {
235
+ status: "executed";
236
+ amount: string;
237
+ token: {
238
+ logoURI: string;
239
+ bgColor: string;
240
+ symbol: string;
241
+ };
242
+ chain: {
243
+ logoURI: string;
244
+ name: string;
245
+ bgColor: string;
246
+ };
247
+ wallet: {
248
+ imageURI: string;
249
+ address: string;
250
+ url: string;
251
+ };
252
+ timestamp: number;
253
+ hash: string;
254
+ url: string;
255
+ };
256
+ } | {
257
+ type: "swap";
258
+ props: {
259
+ status: "executed";
260
+ fromToken: {
261
+ logoURI: string;
262
+ bgColor: string;
263
+ symbol: string;
264
+ };
265
+ toToken: {
266
+ logoURI: string;
267
+ bgColor: string;
268
+ symbol: string;
269
+ };
270
+ provider: {
271
+ logoURI: string;
272
+ name: string;
273
+ };
274
+ timestamp: number;
275
+ hash: string;
276
+ url: string;
277
+ };
278
+ } | {
279
+ type: "bridge";
280
+ props: {
281
+ status: "executed";
282
+ token: {
283
+ logoURI: string;
284
+ bgColor: string;
285
+ symbol: string;
286
+ };
287
+ chain: {
288
+ logoURI: string;
289
+ name: string;
290
+ bgColor: string;
291
+ };
292
+ provider: {
293
+ logoURI: string;
294
+ name: string;
295
+ };
296
+ timestamp: number;
297
+ hash: string;
298
+ url: string;
299
+ };
300
+ } | {
301
+ type: "start";
302
+ props: {
303
+ status: "executed";
304
+ timestamp: number;
305
+ hash: string;
306
+ url: string;
307
+ };
308
+ })[];
309
+ fees: {
310
+ status: "executed";
311
+ total: {
312
+ label: string;
313
+ usd: number;
314
+ amount: number;
315
+ symbol: string;
316
+ };
317
+ lines: {
318
+ label: string;
319
+ usd: number;
320
+ amount: number;
321
+ symbol: string;
322
+ }[];
323
+ };
324
+ };
325
+ };
326
+ };
168
327
  export declare const BuyNFT: {
169
328
  args: {
170
329
  type: string;
@@ -513,7 +672,164 @@ export declare const Bridge: {
513
672
  name: string;
514
673
  bgColor: string;
515
674
  };
516
- address: string;
675
+ fromAddress: string;
676
+ toAddress: string;
677
+ timeToComplete: string;
678
+ actions: ({
679
+ type: "success";
680
+ props: {
681
+ status: "success";
682
+ timestamp: number;
683
+ hash: string;
684
+ url: string;
685
+ };
686
+ } | {
687
+ type: "receive_nft";
688
+ props: {
689
+ status: "executed";
690
+ nft: {
691
+ imageURI: string;
692
+ name: string;
693
+ };
694
+ chain: {
695
+ logoURI: string;
696
+ name: string;
697
+ bgColor: string;
698
+ };
699
+ wallet: {
700
+ imageURI: string;
701
+ address: string;
702
+ url: string;
703
+ };
704
+ timestamp: number;
705
+ hash: string;
706
+ url: string;
707
+ };
708
+ } | {
709
+ type: "send_tokens";
710
+ props: {
711
+ status: "executed";
712
+ amount: string;
713
+ token: {
714
+ logoURI: string;
715
+ bgColor: string;
716
+ symbol: string;
717
+ };
718
+ chain: {
719
+ logoURI: string;
720
+ name: string;
721
+ bgColor: string;
722
+ };
723
+ wallet: {
724
+ imageURI: string;
725
+ address: string;
726
+ url: string;
727
+ };
728
+ timestamp: number;
729
+ hash: string;
730
+ url: string;
731
+ };
732
+ } | {
733
+ type: "swap";
734
+ props: {
735
+ status: "executed";
736
+ fromToken: {
737
+ logoURI: string;
738
+ bgColor: string;
739
+ symbol: string;
740
+ };
741
+ toToken: {
742
+ logoURI: string;
743
+ bgColor: string;
744
+ symbol: string;
745
+ };
746
+ provider: {
747
+ logoURI: string;
748
+ name: string;
749
+ };
750
+ timestamp: number;
751
+ hash: string;
752
+ url: string;
753
+ };
754
+ } | {
755
+ type: "bridge";
756
+ props: {
757
+ status: "executed";
758
+ token: {
759
+ logoURI: string;
760
+ bgColor: string;
761
+ symbol: string;
762
+ };
763
+ chain: {
764
+ logoURI: string;
765
+ name: string;
766
+ bgColor: string;
767
+ };
768
+ provider: {
769
+ logoURI: string;
770
+ name: string;
771
+ };
772
+ timestamp: number;
773
+ hash: string;
774
+ url: string;
775
+ };
776
+ } | {
777
+ type: "start";
778
+ props: {
779
+ status: "executed";
780
+ timestamp: number;
781
+ hash: string;
782
+ url: string;
783
+ };
784
+ })[];
785
+ fees: {
786
+ status: "executed";
787
+ total: {
788
+ label: string;
789
+ usd: number;
790
+ amount: number;
791
+ symbol: string;
792
+ };
793
+ lines: {
794
+ label: string;
795
+ usd: number;
796
+ amount: number;
797
+ symbol: string;
798
+ }[];
799
+ };
800
+ };
801
+ };
802
+ };
803
+ export declare const BridgeMissingToToken: {
804
+ args: {
805
+ type: string;
806
+ data: {
807
+ toToken: undefined;
808
+ title: string;
809
+ hash: string;
810
+ url: string;
811
+ status: string;
812
+ fromAmount: string;
813
+ toAmount: string;
814
+ fromToken: {
815
+ logoURI: string;
816
+ bgColor: string;
817
+ symbol: string;
818
+ };
819
+ fromLink: string;
820
+ toLink: string;
821
+ fromChain: {
822
+ logoURI: string;
823
+ name: string;
824
+ bgColor: string;
825
+ };
826
+ toChain: {
827
+ logoURI: string;
828
+ name: string;
829
+ bgColor: string;
830
+ };
831
+ fromAddress: string;
832
+ toAddress: string;
517
833
  timeToComplete: string;
518
834
  actions: ({
519
835
  type: "success";
@@ -29,7 +29,7 @@ export declare enum SwapState {
29
29
  }
30
30
  export type DetailsToolbarState = "full" | "loading" | "empty" | "error";
31
31
  export type ThemeType = "light" | "dark";
32
- export type ActionStatus = "pending" | "waiting" | "ongoing" | "executed" | "success" | "error" | "warning";
32
+ export type ActionStatus = "pending" | "waiting" | "ongoing" | "executed" | "success" | "error" | "warning" | "refunded" | "troubleshoot";
33
33
  export type InputMode = "token" | "price";
34
34
  export type TransactionStateVariant = "full" | "compact" | "small";
35
35
  export type TransactionType = "swap" | "buy_nft" | "interaction" | "bridge";