@secondstaxorg/sscomp 1.6.96 → 1.6.98
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/dist/bundle.css +1 -0
- package/dist/index.css +2 -0
- package/dist/index.es.css +2 -0
- package/dist/index.es.js +940 -781
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7034 -2003
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +2 -0
- package/dist/index.min.js +295 -136
- package/dist/index.min.js.map +1 -1
- package/package.json +10 -9
- package/types/components/Accordion/type.d.ts +1 -1
- package/types/components/PhoneInput/PhoneInput.d.ts +7 -0
- package/types/components/PhoneInput/country-codes.d.ts +5 -0
- package/types/components/PhoneInput/type.d.ts +12 -17
- package/types/components/Tooltip/Tooltip.d.ts +8 -0
- package/types/components/Tooltip/type.d.ts +19 -0
- package/types/components/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.98",
|
|
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
|
};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
export interface PhoneInputProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Country code to be displayed on page load
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}[];
|
|
9
|
-
/**
|
|
10
|
-
* Initial text to be displayed in the field. Ideal for when using an update form to display the current value of the field
|
|
11
|
-
*/
|
|
12
|
-
initialText?: string;
|
|
5
|
+
initialCountryCode?: string;
|
|
13
6
|
/**
|
|
14
7
|
* Placeholder text to be displayed in the field
|
|
15
8
|
*/
|
|
@@ -17,10 +10,7 @@ export interface PhoneInputProps {
|
|
|
17
10
|
/**
|
|
18
11
|
* Function to receive the object of the selected item
|
|
19
12
|
*/
|
|
20
|
-
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}) => void;
|
|
13
|
+
selectedCountryCode: (a: countryCodesType) => void;
|
|
24
14
|
/**
|
|
25
15
|
* Boolean to specify whether the field is active or disabled
|
|
26
16
|
*/
|
|
@@ -29,10 +19,6 @@ export interface PhoneInputProps {
|
|
|
29
19
|
* Label of the field
|
|
30
20
|
*/
|
|
31
21
|
label?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Boolean to specify whether the list is searchable
|
|
34
|
-
*/
|
|
35
|
-
searchable?: boolean;
|
|
36
22
|
/**
|
|
37
23
|
* Specify the width of the component
|
|
38
24
|
*/
|
|
@@ -45,4 +31,13 @@ export interface PhoneInputProps {
|
|
|
45
31
|
* Input name as is with html input tag
|
|
46
32
|
* */
|
|
47
33
|
inputName: string;
|
|
34
|
+
onChange: (value: {
|
|
35
|
+
countryCode: string;
|
|
36
|
+
phoneNumber: number;
|
|
37
|
+
}) => void;
|
|
48
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
|
+
}
|
|
@@ -66,3 +66,5 @@ export { default as TablePrimary } from './TablePrimary';
|
|
|
66
66
|
export { default as TableAlternative } from './TableAlternative';
|
|
67
67
|
export { default as Selector } from './Selector/Selector';
|
|
68
68
|
export { default as StepProgress } from './StepProgress/StepProgress';
|
|
69
|
+
export { default as PhoneInput } from './PhoneInput/PhoneInput';
|
|
70
|
+
export { default as Tooltip } from './Tooltip/Tooltip';
|