@rango-dev/widget-embedded 0.21.1-next.3 → 0.21.1-next.5

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 (32) hide show
  1. package/dist/components/HistoryGroupedList/HistoryGroupedList.d.ts +4 -0
  2. package/dist/components/HistoryGroupedList/HistoryGroupedList.d.ts.map +1 -0
  3. package/dist/components/HistoryGroupedList/HistoryGroupedList.helpers.d.ts +2 -0
  4. package/dist/components/HistoryGroupedList/HistoryGroupedList.helpers.d.ts.map +1 -0
  5. package/dist/components/{SwapsGroup/SwapsGroup.styles.d.ts → HistoryGroupedList/HistoryGroupedList.styles.d.ts} +162 -1
  6. package/dist/components/HistoryGroupedList/HistoryGroupedList.styles.d.ts.map +1 -0
  7. package/dist/components/{SwapsGroup/SwapsGroup.types.d.ts → HistoryGroupedList/HistoryGroupedList.types.d.ts} +5 -4
  8. package/dist/components/HistoryGroupedList/HistoryGroupedList.types.d.ts.map +1 -0
  9. package/dist/components/HistoryGroupedList/index.d.ts +2 -0
  10. package/dist/components/HistoryGroupedList/index.d.ts.map +1 -0
  11. package/dist/components/TokenList/TokenList.d.ts.map +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +4 -4
  14. package/dist/utils/date.d.ts +1 -1
  15. package/dist/utils/date.d.ts.map +1 -1
  16. package/package.json +3 -3
  17. package/src/components/HistoryGroupedList/HistoryGroupedList.helpers.ts +17 -0
  18. package/src/components/{SwapsGroup/SwapsGroup.styles.ts → HistoryGroupedList/HistoryGroupedList.styles.ts} +9 -0
  19. package/src/components/HistoryGroupedList/HistoryGroupedList.tsx +168 -0
  20. package/src/components/{SwapsGroup/SwapsGroup.types.ts → HistoryGroupedList/HistoryGroupedList.types.ts} +4 -3
  21. package/src/components/HistoryGroupedList/index.ts +1 -0
  22. package/src/components/TokenList/TokenList.tsx +4 -24
  23. package/src/pages/HistoryPage.tsx +6 -6
  24. package/src/utils/date.ts +9 -2
  25. package/dist/components/SwapsGroup/SwapsGroup.d.ts +0 -4
  26. package/dist/components/SwapsGroup/SwapsGroup.d.ts.map +0 -1
  27. package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts.map +0 -1
  28. package/dist/components/SwapsGroup/SwapsGroup.types.d.ts.map +0 -1
  29. package/dist/components/SwapsGroup/index.d.ts +0 -2
  30. package/dist/components/SwapsGroup/index.d.ts.map +0 -1
  31. package/src/components/SwapsGroup/SwapsGroup.tsx +0 -141
  32. package/src/components/SwapsGroup/index.ts +0 -1
@@ -0,0 +1,4 @@
1
+ import type { PropTypes } from './HistoryGroupedList.types';
2
+ import React from 'react';
3
+ export declare function HistoryGroupedList(props: PropTypes): React.JSX.Element;
4
+ //# sourceMappingURL=HistoryGroupedList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryGroupedList.d.ts","sourceRoot":"","sources":["../../../src/components/HistoryGroupedList/HistoryGroupedList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAS5D,OAAO,KAAmD,MAAM,OAAO,CAAC;AAoBxE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,qBA0IlD"}
@@ -0,0 +1,2 @@
1
+ export declare function calculateGroupsSoFar(totalGroups: number[], count: number): number[];
2
+ //# sourceMappingURL=HistoryGroupedList.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryGroupedList.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/HistoryGroupedList/HistoryGroupedList.helpers.ts"],"names":[],"mappings":"AAMA,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,YAUxE"}
@@ -159,6 +159,167 @@ export declare const groupStyles: import("@stitches/react/types/styled-component
159
159
  zIndices: {};
160
160
  transitions: {};
161
161
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
162
+ export declare const SwapItemContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
163
+ xs: string;
164
+ sm: string;
165
+ md: string;
166
+ lg: string;
167
+ }, import("@stitches/react/types/css-util").CSS<{
168
+ xs: string;
169
+ sm: string;
170
+ md: string;
171
+ lg: string;
172
+ }, {
173
+ colors: {
174
+ primary: string;
175
+ primary500: string;
176
+ primary600: string;
177
+ secondary: string;
178
+ secondary100: string;
179
+ secondary200: string;
180
+ secondary300: string;
181
+ secondary400: string;
182
+ secondary500: string;
183
+ secondary600: string;
184
+ secondary700: string;
185
+ secondary800: string;
186
+ secondary900: string;
187
+ neutral: string;
188
+ neutral100: string;
189
+ neutral200: string;
190
+ neutral300: string;
191
+ neutral400: string;
192
+ neutral500: string;
193
+ neutral600: string;
194
+ neutral700: string;
195
+ neutral800: string;
196
+ neutral900: string;
197
+ error100: string;
198
+ error300: string;
199
+ error500: string;
200
+ error600: string;
201
+ error700: string;
202
+ warning100: string;
203
+ warning300: string;
204
+ warning500: string;
205
+ warning600: string;
206
+ warning700: string;
207
+ info: string;
208
+ info100: string;
209
+ info300: string;
210
+ info500: string;
211
+ info600: string;
212
+ info700: string;
213
+ success100: string;
214
+ success300: string;
215
+ success500: string;
216
+ success600: string;
217
+ success700: string;
218
+ background: string;
219
+ foreground: string;
220
+ };
221
+ space: {
222
+ 0: string;
223
+ 5: string;
224
+ 10: string;
225
+ 15: string;
226
+ 20: string;
227
+ 25: string;
228
+ 30: string;
229
+ 40: string;
230
+ 46: string;
231
+ 50: string;
232
+ 60: string;
233
+ 70: string;
234
+ 80: string;
235
+ 90: string;
236
+ 100: string;
237
+ 2: string;
238
+ 4: string;
239
+ 6: string;
240
+ 8: string;
241
+ 12: string;
242
+ 16: string;
243
+ 24: string;
244
+ 28: string;
245
+ 32: string;
246
+ };
247
+ radii: {
248
+ xs: string;
249
+ sm: string;
250
+ xm: string;
251
+ md: string;
252
+ xl: string;
253
+ lg: string;
254
+ primary: string;
255
+ secondary: string;
256
+ };
257
+ fontSizes: {
258
+ 10: string;
259
+ 12: string;
260
+ 14: string;
261
+ 16: string;
262
+ 18: string;
263
+ 20: string;
264
+ 22: string;
265
+ 24: string;
266
+ 28: string;
267
+ 32: string;
268
+ 36: string;
269
+ 40: string;
270
+ 48: string;
271
+ };
272
+ fonts: {
273
+ primary: string;
274
+ widget: string;
275
+ };
276
+ fontWeights: {
277
+ regular: number;
278
+ medium: number;
279
+ semiBold: number;
280
+ bold: number;
281
+ };
282
+ lineHeights: {
283
+ 12: string;
284
+ 16: string;
285
+ 20: string;
286
+ 24: string;
287
+ 26: string;
288
+ 28: string;
289
+ 30: string;
290
+ 36: string;
291
+ 40: string;
292
+ 44: string;
293
+ 52: string;
294
+ 64: string;
295
+ };
296
+ letterSpacings: {};
297
+ sizes: {
298
+ 4: string;
299
+ 6: string;
300
+ 8: string;
301
+ 10: string;
302
+ 12: string;
303
+ 16: string;
304
+ 18: string;
305
+ 20: string;
306
+ 24: string;
307
+ 28: string;
308
+ 30: string;
309
+ 32: string;
310
+ 36: string;
311
+ 40: string;
312
+ 45: string;
313
+ 48: string;
314
+ };
315
+ borderWidths: {};
316
+ borderStyles: {};
317
+ shadows: {
318
+ s: string;
319
+ };
320
+ zIndices: {};
321
+ transitions: {};
322
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
162
323
  export declare const Group: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
163
324
  xs: string;
164
325
  sm: string;
@@ -803,4 +964,4 @@ export declare const NotFoundContainer: import("@stitches/react/types/styled-com
803
964
  zIndices: {};
804
965
  transitions: {};
805
966
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
806
- //# sourceMappingURL=SwapsGroup.styles.d.ts.map
967
+ //# sourceMappingURL=HistoryGroupedList.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryGroupedList.styles.d.ts","sourceRoot":"","sources":["../../../src/components/HistoryGroupedList/HistoryGroupedList.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAK5B,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import type { PendingSwap } from 'rango-types';
2
2
  export type GroupBy = (list: PendingSwap[]) => {
3
- title: string;
4
3
  swaps: PendingSwap[];
5
- }[];
4
+ groups: string[];
5
+ groupCounts: number[];
6
+ };
6
7
  export interface PropTypes {
7
8
  list: PendingSwap[];
8
9
  onSwapClick: (requestId: string) => void;
9
- groupBy?: GroupBy;
10
+ groupBy: GroupBy;
10
11
  isLoading: boolean;
11
12
  }
12
- //# sourceMappingURL=SwapsGroup.types.d.ts.map
13
+ //# sourceMappingURL=HistoryGroupedList.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryGroupedList.types.d.ts","sourceRoot":"","sources":["../../../src/components/HistoryGroupedList/HistoryGroupedList.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK;IAC7C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export { HistoryGroupedList } from './HistoryGroupedList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HistoryGroupedList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAiBpE,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0E/D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA+LzC"}
1
+ {"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAgBpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AA0EnD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA4KzC"}