@secondstaxorg/sscomp 1.6.95 → 1.6.97

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.6.95",
3
+ "version": "1.6.97",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -35,6 +35,8 @@
35
35
  "@babel/preset-env": "^7.22.5",
36
36
  "@babel/preset-react": "^7.22.5",
37
37
  "@babel/preset-typescript": "^7.22.5",
38
+ "@mdx-js/mdx": "^1.6.22",
39
+ "@mdx-js/react": "^1.6.22",
38
40
  "@rollup/plugin-commonjs": "^23.0.7",
39
41
  "@rollup/plugin-node-resolve": "^15.0.1",
40
42
  "@rollup/plugin-typescript": "^9.0.2",
@@ -51,6 +53,7 @@
51
53
  "@types/styled-components": "^5.1.26",
52
54
  "babel-loader": "^8.2.5",
53
55
  "chromatic": "^6.19.8",
56
+ "gatsby-plugin-mdx": "^5.11.0",
54
57
  "rollup": "^3.2.3",
55
58
  "rollup-plugin-css-only": "^4.3.0",
56
59
  "rollup-plugin-dts": "^5.1.1",
@@ -61,10 +64,7 @@
61
64
  "storybook": "7.0.22",
62
65
  "styled-components": "^5.3.6",
63
66
  "typescript": "^4.8.4",
64
- "webpack": "^5.74.0",
65
- "gatsby-plugin-mdx": "^5.11.0",
66
- "@mdx-js/mdx": "^1.6.22",
67
- "@mdx-js/react": "^1.6.22"
67
+ "webpack": "^5.74.0"
68
68
  },
69
69
  "dependencies": {
70
70
  "@heroicons/react": "^2.0.13",
@@ -77,19 +77,20 @@
77
77
  "gh-pages": "^4.0.0",
78
78
  "heroicons": "^2.0.12",
79
79
  "postcss": "^8.4.21",
80
- "react-chartjs-2": "^4.3.1",
81
80
  "react": "^18.2.0",
81
+ "react-chartjs-2": "^4.3.1",
82
82
  "react-dom": "^18.2.0",
83
83
  "react-fast-marquee": "^1.3.5",
84
84
  "react-is": "^18.2.0",
85
85
  "rollup-plugin-copy": "^3.4.0",
86
86
  "rollup-plugin-sourcemaps": "^0.6.3",
87
- "rollup-plugin-typescript2": "^0.34.1"
87
+ "rollup-plugin-typescript2": "^0.34.1",
88
+ "tippy.js": "^6.3.7"
88
89
  },
89
90
  "peerDependencies": {
90
- "styled-components": "^5.3.6",
91
91
  "react": "^18.2.0",
92
- "react-dom": "^18.2.0"
92
+ "react-dom": "^18.2.0",
93
+ "styled-components": "^5.3.6"
93
94
  },
94
95
  "bugs": {
95
96
  "url": "https://github.com/Secondstax/sscomp/issues"
@@ -15,10 +15,10 @@ export interface AccordionProps {
15
15
  * Optional, specify the array index (counting from 0) for which accordion to have expanded on page load
16
16
  * */
17
17
  defaultExpanded?: number;
18
+ onDelete?: ({}: {}) => void;
18
19
  }
19
20
  export declare type AccordionsType = {
20
21
  label: string;
21
22
  content: React.ReactNode;
22
23
  canDelete?: boolean;
23
- onDelete?: ({}: {}) => void;
24
24
  };
@@ -2,11 +2,14 @@ export interface MarketDataProps {
2
2
  /**
3
3
  * Array of data to be displayed in the cards
4
4
  */
5
- marketData: {
6
- market: string;
7
- marketCountryFlag: string;
8
- volume: number;
9
- marketCap: number;
10
- lastUpdated: string;
11
- }[];
5
+ marketData: MarketDataItem[];
12
6
  }
7
+ export declare type MarketDataItem = {
8
+ market: string;
9
+ marketCountryFlag: string;
10
+ volume: number;
11
+ volumeLabel?: string;
12
+ marketCap: number;
13
+ marketCapLabel?: string;
14
+ lastUpdated: string;
15
+ };
@@ -0,0 +1,5 @@
1
+ export declare const countryCodesArr: {
2
+ country: string;
3
+ dial_code: string;
4
+ code: string;
5
+ }[];
@@ -0,0 +1,7 @@
1
+ export declare const InputLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const FieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const DropdownField: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const DisabledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const DropdownIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const OptionsList: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const DropdownOption: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,43 @@
1
+ export interface PhoneInputProps {
2
+ /**
3
+ * Country code to be displayed on page load
4
+ */
5
+ initialCountryCode?: string;
6
+ /**
7
+ * Placeholder text to be displayed in the field
8
+ */
9
+ placeholder?: string;
10
+ /**
11
+ * Function to receive the object of the selected item
12
+ */
13
+ selectedCountryCode: (a: countryCodesType) => void;
14
+ /**
15
+ * Boolean to specify whether the field is active or disabled
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * Label of the field
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Specify the width of the component
24
+ */
25
+ width?: number | "fit-content";
26
+ /**
27
+ * Boolean to specify whether the field is required
28
+ */
29
+ required?: boolean;
30
+ /**
31
+ * Input name as is with html input tag
32
+ * */
33
+ inputName: string;
34
+ onChange: (value: {
35
+ countryCode: string;
36
+ phoneNumber: number;
37
+ }) => void;
38
+ }
39
+ export declare type countryCodesType = {
40
+ "country": string;
41
+ "dial_code": string;
42
+ "code": string;
43
+ };
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export interface TooltipProps {
3
+ /**
4
+ * Which side of the child element the tooltip should be displayed
5
+ */
6
+ tooltipPosition: 'top' | 'right' | 'bottom' | 'left';
7
+ /**
8
+ * HTML element to be wrapped inside the tooltip component
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * Text to be displayed in the tooltip
13
+ */
14
+ tooltipContent: string;
15
+ /**
16
+ * The HTML id attribute assigned to the child element wrapped inside the tooltip
17
+ */
18
+ childElementId: string;
19
+ }