@rango-dev/ui 0.29.1-next.1 → 0.29.1-next.4

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 (48) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +4 -4
  3. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
  4. package/dist/widget/ui/src/components/List/List.d.ts.map +1 -1
  5. package/dist/widget/ui/src/components/List/List.types.d.ts +1 -0
  6. package/dist/widget/ui/src/components/List/List.types.d.ts.map +1 -1
  7. package/dist/widget/ui/src/components/List/index.d.ts +1 -0
  8. package/dist/widget/ui/src/components/List/index.d.ts.map +1 -1
  9. package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
  10. package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts.map +1 -1
  11. package/dist/widget/ui/src/components/Select/select.styles.d.ts.map +1 -1
  12. package/dist/widget/ui/src/components/Tabs/Tabs.d.ts +4 -0
  13. package/dist/widget/ui/src/components/Tabs/Tabs.d.ts.map +1 -0
  14. package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts +6 -0
  15. package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts.map +1 -0
  16. package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts +780 -0
  17. package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts.map +1 -0
  18. package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts +30 -0
  19. package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts.map +1 -0
  20. package/dist/widget/ui/src/components/Tabs/index.d.ts +2 -0
  21. package/dist/widget/ui/src/components/Tabs/index.d.ts.map +1 -0
  22. package/dist/widget/ui/src/components/index.d.ts +2 -0
  23. package/dist/widget/ui/src/components/index.d.ts.map +1 -1
  24. package/dist/widget/ui/src/icons/Bridges.d.ts +5 -0
  25. package/dist/widget/ui/src/icons/Bridges.d.ts.map +1 -0
  26. package/dist/widget/ui/src/icons/Exchange.d.ts +5 -0
  27. package/dist/widget/ui/src/icons/Exchange.d.ts.map +1 -0
  28. package/dist/widget/ui/src/icons/index.d.ts +2 -0
  29. package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/readme.md +1 -0
  32. package/src/components/Alert/Alert.styles.ts +3 -1
  33. package/src/components/List/List.tsx +2 -3
  34. package/src/components/List/List.types.ts +1 -0
  35. package/src/components/List/index.ts +1 -0
  36. package/src/components/ListItem/ListItem.styles.ts +1 -0
  37. package/src/components/QuoteCost/QuoteCost.styles.ts +2 -0
  38. package/src/components/Select/Select.tsx +24 -24
  39. package/src/components/Select/select.styles.ts +30 -54
  40. package/src/components/Tabs/Tabs.stories.tsx +12 -0
  41. package/src/components/Tabs/Tabs.styles.tsx +157 -0
  42. package/src/components/Tabs/Tabs.tsx +95 -0
  43. package/src/components/Tabs/Tabs.types.tsx +32 -0
  44. package/src/components/Tabs/index.ts +1 -0
  45. package/src/components/index.ts +2 -0
  46. package/src/icons/Bridges.tsx +19 -0
  47. package/src/icons/Exchange.tsx +22 -0
  48. package/src/icons/index.ts +2 -0
@@ -0,0 +1,32 @@
1
+ import type { Tabs } from './Tabs.styles';
2
+ import type * as Stitches from '@stitches/react';
3
+
4
+ type BaseItem = {
5
+ id: string | number;
6
+ tooltip?: React.ReactNode;
7
+ };
8
+
9
+ type ItemWithTitle = BaseItem & {
10
+ title: string;
11
+ icon?: React.ReactNode;
12
+ };
13
+
14
+ type ItemWithIcon = BaseItem & {
15
+ icon: React.ReactNode;
16
+ title?: string;
17
+ };
18
+
19
+ type Item = ItemWithTitle | ItemWithIcon;
20
+ type BaseProps = Stitches.VariantProps<typeof Tabs>;
21
+ type BaseType = Exclude<BaseProps['type'], object>;
22
+ type BaseBorderRadius = Exclude<BaseProps['borderRadius'], object>;
23
+
24
+ export interface PropTypes {
25
+ items: Item[];
26
+ container?: HTMLElement;
27
+ onChange: (item: Item) => void;
28
+ value: string;
29
+ type: BaseType;
30
+ borderRadius?: BaseBorderRadius;
31
+ className?: string;
32
+ }
@@ -0,0 +1 @@
1
+ export { TabsComponent as Tabs } from './Tabs';
@@ -53,3 +53,5 @@ export * from './Popover';
53
53
  export * from './Flags';
54
54
  export * from './Select';
55
55
  export * from './QuoteTag';
56
+ export * from './Tabs';
57
+ export type { SvgIconProps } from './SvgIcon';
@@ -0,0 +1,19 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgBridges(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
12
+ <path
13
+ d="M18.21 9.21C15.93 10.78 13.45 13.3 13 17H15V19H9V17H11C10.5 12.5 6.63 9 2 9V7C6.39 7 10.22 9.55 12 13.3C13.13 10.87 14.99 9.05 16.78 7.78L14 5H21V12L18.21 9.21Z"
14
+ fill="currentColor"
15
+ />
16
+ </svg>
17
+ );
18
+ }
19
+ export default SvgBridges;
@@ -0,0 +1,22 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgExchange(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
12
+ <g id="Icons">
13
+ <path
14
+ id="Vector"
15
+ d="M6.99 11L3 15L6.99 19V16H14V14H6.99V11ZM21 9L17.01 5V8H10V10H17.01V13L21 9Z"
16
+ fill="currentColor"
17
+ />
18
+ </g>
19
+ </svg>
20
+ );
21
+ }
22
+ export default SvgExchange;
@@ -2,6 +2,7 @@ export { default as AddIcon } from './Add';
2
2
  export { default as AutoThemeIcon } from './AutoTheme';
3
3
  export { default as AutorenewIcon } from './Autorenew';
4
4
  export { default as BorderRadiusIcon } from './BorderRadius';
5
+ export { default as BridgeIcon } from './Bridges';
5
6
  export { default as ChevronDownIcon } from './ChevronDown';
6
7
  export { default as ChevronLeftIcon } from './ChevronLeft';
7
8
  export { default as ChevronRightIcon } from './ChevronRight';
@@ -18,6 +19,7 @@ export { default as DoneIcon } from './Done';
18
19
  export { default as EvmCategoryIcon } from './EvmCategory';
19
20
  export { default as ErrorIcon } from './Error';
20
21
  export { default as ExitIcon } from './Exit';
22
+ export { default as ExchangeIcon } from './Exchange';
21
23
  export { default as ExternalLinkIcon } from './ExternalLink';
22
24
  export { default as FontIcon } from './Font';
23
25
  export { default as GasIcon } from './Gas';