@obolnetwork/obol-ui 1.0.33 → 1.0.35

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 (49) hide show
  1. package/dist/components/atoms/LogoCard/LogoCard.d.ts +1 -0
  2. package/dist/components/atoms/Text/Text.d.ts +3 -3
  3. package/dist/components/icons/AlertIcon.d.ts +1 -0
  4. package/dist/components/icons/ArrowForward.d.ts +1 -0
  5. package/dist/components/icons/ChevronDownIcon.d.ts +1 -0
  6. package/dist/components/icons/ChevronUpIcon.d.ts +1 -0
  7. package/dist/components/icons/CloseIcon.d.ts +1 -0
  8. package/dist/components/icons/Download.d.ts +1 -0
  9. package/dist/components/icons/Hexapod.d.ts +1 -0
  10. package/dist/components/icons/OpenInNew.d.ts +1 -0
  11. package/dist/components/icons/static-icons/BulletCheckIcon.d.ts +1 -0
  12. package/dist/components/icons/static-icons/CheckIcon.d.ts +1 -0
  13. package/dist/components/icons/static-icons/CheckboxIcon.d.ts +1 -0
  14. package/dist/components/icons/static-icons/Coinbase.d.ts +1 -0
  15. package/dist/components/icons/static-icons/CopyIcon.d.ts +1 -0
  16. package/dist/components/icons/static-icons/GithubIcon.d.ts +1 -0
  17. package/dist/components/icons/static-icons/HelpIcon.d.ts +1 -0
  18. package/dist/components/icons/static-icons/MenuIcon.d.ts +1 -0
  19. package/dist/components/icons/static-icons/Metamask.d.ts +1 -0
  20. package/dist/components/icons/static-icons/MinusIcon.d.ts +1 -0
  21. package/dist/components/icons/static-icons/PlusIcon.d.ts +1 -0
  22. package/dist/components/icons/static-icons/TrashIcon.d.ts +1 -0
  23. package/dist/components/icons/static-icons/TwitterIcon.d.ts +1 -0
  24. package/dist/components/icons/static-icons/WaitingIcon.d.ts +1 -0
  25. package/dist/components/icons/static-icons/WalletConnect.d.ts +1 -0
  26. package/dist/components/icons/static-icons/obol/circle/ObolDarkCircle.d.ts +1 -0
  27. package/dist/components/icons/static-icons/obol/circle/ObolLightCircle.d.ts +1 -0
  28. package/dist/components/icons/static-icons/obol/horizontal/ObolDarkBgH.d.ts +1 -0
  29. package/dist/components/icons/static-icons/obol/horizontal/ObolLightBgH.d.ts +1 -0
  30. package/dist/components/icons/static-icons/obol/horizontal/ObolSolidDarkBgH.d.ts +1 -0
  31. package/dist/components/icons/static-icons/obol/horizontal/ObolSolidLightBgH.d.ts +1 -0
  32. package/dist/components/icons/static-icons/obol/mark/ObolDarkBgMark.d.ts +1 -0
  33. package/dist/components/icons/static-icons/obol/mark/ObolLightBgMark.d.ts +1 -0
  34. package/dist/components/icons/static-icons/obol/mark/ObolSolidDarkBgMark.d.ts +1 -0
  35. package/dist/components/icons/static-icons/obol/mark/ObolSolidLightBgMark.d.ts +1 -0
  36. package/dist/components/icons/static-icons/obol/vertical/ObolDarkBgV.d.ts +1 -0
  37. package/dist/components/icons/static-icons/obol/vertical/ObolLightBgV.d.ts +1 -0
  38. package/dist/components/icons/static-icons/obol/vertical/ObolSolidDarkBgV.d.ts +1 -0
  39. package/dist/components/icons/static-icons/obol/vertical/ObolSolidLightBgV.d.ts +1 -0
  40. package/dist/components/icons/static-icons/planets/PlanetBlue.d.ts +1 -0
  41. package/dist/components/icons/static-icons/planets/PlanetGreen.d.ts +1 -0
  42. package/dist/components/icons/static-icons/planets/PlanetGrey.d.ts +1 -0
  43. package/dist/components/icons/static-icons/planets/PlanetMagenta.d.ts +1 -0
  44. package/dist/components/icons/static-icons/planets/PlanetOrange.d.ts +1 -0
  45. package/dist/components/molecules/NotificationCard/NotificationCard.d.ts +2 -2
  46. package/dist/components/utils/types.d.ts +1 -0
  47. package/dist/index.es.js +10 -0
  48. package/dist/index.js +10 -0
  49. package/package.json +9 -8
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const LogoCard: (props: {
2
3
  image: string;
3
4
  heading: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type * as Stitches from "@stitches/react";
3
3
  export declare const Text: import("@stitches/react/types/styled-component").StyledComponent<"span", {
4
- variant?: "body" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | undefined;
4
+ variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | undefined;
5
5
  size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
6
6
  color?: "white" | "black" | "lightBackground" | "obolBlue" | "primaryBgDefault" | "primaryBgDefaultHover" | "primaryTextDefault" | "secondaryBgDefault" | "secondaryBgHover" | "grayBgDefault" | "gray2BgDefault" | "neutralDark" | "navButtonBgDefault" | "navButtonBgHover" | "cardBackgroundDark" | "cardBackgroundLight" | "textMiddle" | "textLight" | "textLighter" | "textTabHover" | "textTabInactive" | "textGreenDark" | "textGreenLight" | "textGreen1" | "textGreen2" | "textGreen3" | "textGreenHover" | "textCreateHover" | "textGrayHover" | "txButton" | "obolGreen" | "obolMidGreen" | "obolGreenHover" | "obolGreenLight" | "obolDarkDark" | "obolDisabled" | "linkButtonHover" | "progressTrackerGreen" | "coordinate" | "coordinateHover" | "test" | "testHover" | "create" | "createHover" | "light" | "body" | "muted" | "menu" | "bg01" | "bg02" | "bg03" | "bg04" | "bg05" | "tooltip" | "tooltip2" | undefined;
7
7
  glow?: boolean | "true" | undefined;
@@ -488,7 +488,7 @@ export declare const Text: import("@stitches/react/types/styled-component").Styl
488
488
  }>>;
489
489
  export default Text;
490
490
  export declare const TextStory: (props: Omit<import("@stitches/react/types/styled-component").TransformProps<{
491
- variant?: "body" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | undefined;
491
+ variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | undefined;
492
492
  size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
493
493
  color?: "white" | "black" | "lightBackground" | "obolBlue" | "primaryBgDefault" | "primaryBgDefaultHover" | "primaryTextDefault" | "secondaryBgDefault" | "secondaryBgHover" | "grayBgDefault" | "gray2BgDefault" | "neutralDark" | "navButtonBgDefault" | "navButtonBgHover" | "cardBackgroundDark" | "cardBackgroundLight" | "textMiddle" | "textLight" | "textLighter" | "textTabHover" | "textTabInactive" | "textGreenDark" | "textGreenLight" | "textGreen1" | "textGreen2" | "textGreen3" | "textGreenHover" | "textCreateHover" | "textGrayHover" | "txButton" | "obolGreen" | "obolMidGreen" | "obolGreenHover" | "obolGreenLight" | "obolDarkDark" | "obolDisabled" | "linkButtonHover" | "progressTrackerGreen" | "coordinate" | "coordinateHover" | "test" | "testHover" | "create" | "createHover" | "light" | "body" | "muted" | "menu" | "bg01" | "bg02" | "bg03" | "bg04" | "bg05" | "tooltip" | "tooltip2" | undefined;
494
494
  glow?: boolean | "true" | undefined;
@@ -504,7 +504,7 @@ export declare const TextStory: (props: Omit<import("@stitches/react/types/style
504
504
  md: "(max-width: 1200px)";
505
505
  lg: "(max-width: 1800px)";
506
506
  }>, "color" | "size" | "inline" | "variant" | "glow"> & {
507
- variant?: "body" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | undefined;
507
+ variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | undefined;
508
508
  size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
509
509
  color?: "white" | "black" | "lightBackground" | "obolBlue" | "primaryBgDefault" | "primaryBgDefaultHover" | "primaryTextDefault" | "secondaryBgDefault" | "secondaryBgHover" | "grayBgDefault" | "gray2BgDefault" | "neutralDark" | "navButtonBgDefault" | "navButtonBgHover" | "cardBackgroundDark" | "cardBackgroundLight" | "textMiddle" | "textLight" | "textLighter" | "textTabHover" | "textTabInactive" | "textGreenDark" | "textGreenLight" | "textGreen1" | "textGreen2" | "textGreen3" | "textGreenHover" | "textCreateHover" | "textGrayHover" | "txButton" | "obolGreen" | "obolMidGreen" | "obolGreenHover" | "obolGreenLight" | "obolDarkDark" | "obolDisabled" | "linkButtonHover" | "progressTrackerGreen" | "coordinate" | "coordinateHover" | "test" | "testHover" | "create" | "createHover" | "light" | "body" | "muted" | "menu" | "bg01" | "bg02" | "bg03" | "bg04" | "bg05" | "tooltip" | "tooltip2" | undefined;
510
510
  glow?: boolean | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const AlertIcon: (props: SvgIconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const ArrowForward: (props: SvgIconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const ChevronDownIcon: (props: SvgIconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const ChevronUpIcon: (props: SvgIconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const CloseIcon: (props: SvgIconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const Download: (props: SvgIconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  export declare const Hexapod: () => JSX.Element;
2
3
  export declare const HexapodMobile: () => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgIconProps } from "../atoms/SvgIcon/SvgIcon";
2
3
  export declare const OpenInNew: (props: SvgIconProps) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const BulletCheckIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const CheckIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const CheckboxIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Coinbase: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const CopyIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const GithubIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const HelpIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const MenuIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Metamask: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const MinusIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PlusIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const TrashIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const TwitterIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const WaitingIcon: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const WalletConnect: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolDarkCircle: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolLightCircle: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolDarkBgH: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolLightBgH: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolSolidDarkBgH: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolSolidLightBgH: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolDarkBgMark: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolLightBgMark: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolSolidDarkBgMark: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolSolidLightBgMark: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolDarkBgV: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolLightBgV: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolSolidDarkBgV: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ObolSolidLightBgV: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PlanetBlue: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PlanetGreen: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PlanetGrey: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PlanetMagenta: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PlanetOrange: () => JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from "react";
2
2
  export declare const NotificationContainer: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
3
3
  motion: "(prefers-reduced-motion)";
4
4
  hover: "(any-hover: hover)";
@@ -959,7 +959,7 @@ export declare const NotificationContainer: import("@stitches/react/types/styled
959
959
  };
960
960
  }>>;
961
961
  export interface NotificationCardProps {
962
- heading: string;
962
+ heading: string | ReactNode;
963
963
  subHeading?: string;
964
964
  link?: string;
965
965
  linkText?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type * as Stitches from "@stitches/react";
2
3
  interface StitchesMedia {
3
4
  [x: string]: any;
package/dist/index.es.js CHANGED
@@ -735,6 +735,16 @@ var Text = styled("span", {
735
735
  fontSize: "$2",
736
736
  color: "$textMuted",
737
737
  },
738
+ pill: {
739
+ fontSize: "$3",
740
+ lineHeight: "16px",
741
+ color: "$$color",
742
+ border: " 1px solid $$color",
743
+ background: "rgba(60, 210, 221, 0.1)",
744
+ display: "inline-block",
745
+ borderRadius: "$1",
746
+ padding: "0 $xxxs",
747
+ }
738
748
  },
739
749
  size: {
740
750
  1: { fontSize: "$1" },
package/dist/index.js CHANGED
@@ -768,6 +768,16 @@ var Text = styled("span", {
768
768
  fontSize: "$2",
769
769
  color: "$textMuted",
770
770
  },
771
+ pill: {
772
+ fontSize: "$3",
773
+ lineHeight: "16px",
774
+ color: "$$color",
775
+ border: " 1px solid $$color",
776
+ background: "rgba(60, 210, 221, 0.1)",
777
+ display: "inline-block",
778
+ borderRadius: "$1",
779
+ padding: "0 $xxxs",
780
+ }
771
781
  },
772
782
  size: {
773
783
  1: { fontSize: "$1" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obolnetwork/obol-ui",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.es.js",
6
6
  "license": "MIT",
@@ -35,22 +35,23 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.17.8",
38
- "@storybook/addon-actions": "^6.4.20",
39
- "@storybook/addon-essentials": "^6.4.20",
40
- "@storybook/addon-interactions": "^6.4.20",
41
- "@storybook/addon-links": "^6.4.20",
42
- "@storybook/react": "^6.4.20",
43
- "@storybook/testing-library": "^0.0.9",
38
+ "@storybook/addon-actions": "^6.5.12",
39
+ "@storybook/addon-essentials": "^6.5.12",
40
+ "@storybook/addon-interactions": "^6.5.12",
41
+ "@storybook/addon-links": "^6.5.12",
42
+ "@storybook/react": "^6.5.12",
43
+ "@storybook/testing-library": "^0.0.13",
44
44
  "@types/node": "17.0.21",
45
45
  "@types/react": "17.0.40",
46
46
  "babel-loader": "^8.2.4",
47
47
  "eslint": "8.11.0",
48
48
  "eslint-config-next": "12.1.0",
49
+ "eslint-plugin-storybook": "^0.6.4",
49
50
  "figma-api": "^1.10.1",
50
51
  "np": "^7.6.1",
51
52
  "rollup": "^2.70.1",
52
53
  "rollup-plugin-typescript2": "^0.31.2",
53
- "storybook-addon-designs": "^6.2.1",
54
+ "storybook-addon-designs": "^6.3.1",
54
55
  "tslib": "^2.3.1",
55
56
  "typescript": "^4.6.3"
56
57
  },