@secondstaxorg/sscomp 1.3.4 → 1.3.9

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.
@@ -0,0 +1,317 @@
1
+ @font-face {
2
+ font-family: Circular Book;
3
+ src: url("./fonts/Circular Pro Book.ttf");
4
+ }
5
+ @font-face {
6
+ font-family: Circular Medium;
7
+ src: url("./fonts/Circular Pro Medium.ttf");
8
+ }
9
+ @font-face {
10
+ font-family: Circular Bold;
11
+ src: url("./fonts/Circular Pro Bold.ttf");
12
+ }
13
+ @font-face {
14
+ font-family: Circular Black;
15
+ src: url("./fonts/Circular Pro Black.ttf");
16
+ }
17
+
18
+ .display1Medium,
19
+ .display2Medium,
20
+ .heading1Medium,
21
+ .heading1SMedium,
22
+ .heading2Medium,
23
+ .heading2SMedium,
24
+ .heading3Medium,
25
+ .heading3SMedium,
26
+ .heading4Medium,
27
+ .heading4SMedium,
28
+ .heading5Medium,
29
+ .heading5SMedium,
30
+ .heading6Medium,
31
+ .heading6SMedium {
32
+ font-weight: 500;
33
+ font-family: 'Circular Medium', sans-serif;
34
+ }
35
+
36
+ .display1Bold,
37
+ .display2Bold,
38
+ .heading1Bold,
39
+ .heading1SBold,
40
+ .heading2Bold,
41
+ .heading2SBold,
42
+ .heading3Bold,
43
+ .heading3SBold,
44
+ .heading4Bold,
45
+ .heading4SBold,
46
+ .heading5Bold,
47
+ .heading5SBold,
48
+ .heading6Bold,
49
+ .heading6SBold {
50
+ font-weight: 700;
51
+ font-family: 'Circular Bold', sans-serif;
52
+ }
53
+
54
+ .display1Black,
55
+ .display2Black,
56
+ .heading1Black,
57
+ .heading1SBlack,
58
+ .heading2Black,
59
+ .heading2SBlack,
60
+ .heading3Black,
61
+ .heading3SBlack,
62
+ .heading4Black,
63
+ .heading4SBlack,
64
+ .heading5Black,
65
+ .heading5SBlack,
66
+ .heading6Black,
67
+ .heading6SBlack {
68
+ font-weight: 900;
69
+ font-family: 'Circular Black', sans-serif;
70
+ }
71
+
72
+ .display1Medium,
73
+ .display1Bold,
74
+ .display1Black {
75
+ font-size: 72px;
76
+ line-height: 80px;
77
+ margin: 0;
78
+ }
79
+
80
+ .display2Medium,
81
+ .display2Bold,
82
+ .display2Black {
83
+ font-size: 60px;
84
+ line-height: 72px;
85
+ margin: 0;
86
+ }
87
+
88
+ .heading1Medium,
89
+ .heading1Bold,
90
+ .heading1Black {
91
+ font-size: 48px;
92
+ line-height: 56px;
93
+ margin: 0;
94
+ }
95
+
96
+ .heading1SMedium,
97
+ .heading1SBold,
98
+ .heading1SBlack {
99
+ font-size: 34px;
100
+ line-height: 40px;
101
+ margin: 0;
102
+ }
103
+
104
+ .heading2Medium,
105
+ .heading2Bold,
106
+ .heading2Black {
107
+ font-size: 39px;
108
+ line-height: 47px;
109
+ margin: 0;
110
+ }
111
+
112
+ .heading2SMedium,
113
+ .heading2SBold,
114
+ .heading2SBlack {
115
+ font-size: 33px;
116
+ line-height: 40px;
117
+ margin: 0;
118
+ }
119
+
120
+ .heading3Medium,
121
+ .heading3Bold,
122
+ .heading3Black {
123
+ font-size: 33px;
124
+ line-height: 40px;
125
+ margin: 0;
126
+ }
127
+
128
+ .heading3SMedium,
129
+ .heading3SBold,
130
+ .heading3SBlack {
131
+ font-size: 28px;
132
+ line-height: 34px;
133
+ margin: 0;
134
+ }
135
+
136
+ .heading4Medium,
137
+ .heading4Bold,
138
+ .heading4Black {
139
+ font-size: 28px;
140
+ line-height: 34px;
141
+ margin: 0;
142
+ }
143
+
144
+ .heading4SMedium,
145
+ .heading4SBold,
146
+ .heading4SBlack {
147
+ font-size: 23px;
148
+ line-height: 28px;
149
+ margin: 0;
150
+ }
151
+
152
+ .heading5Medium,
153
+ .heading5Bold,
154
+ .heading5Black {
155
+ font-size: 23px;
156
+ line-height: 28px;
157
+ margin: 0;
158
+ }
159
+
160
+ .heading5SMedium,
161
+ .heading5SBold,
162
+ .heading5SBlack {
163
+ font-size: 19px;
164
+ line-height: 23px;
165
+ margin: 0;
166
+ }
167
+
168
+ .heading6Medium,
169
+ .heading6Bold,
170
+ .heading6Black {
171
+ font-size: 19px;
172
+ line-height: 23px;
173
+ margin: 0;
174
+ }
175
+
176
+ .heading6SMedium,
177
+ .heading6SBold,
178
+ .heading6SBlack {
179
+ font-size: 16px;
180
+ line-height: 19px;
181
+ margin: 0;
182
+ }
183
+
184
+ .subheadingRegular,
185
+ .subheadingMedium,
186
+ .subheadingUnderlined {
187
+ font-size: 20px;
188
+ line-height: 30px;
189
+ margin: 0;
190
+ }
191
+
192
+ .subheadingRegular,
193
+ .subheadingUnderlined {
194
+ font-weight: 400;
195
+ }
196
+
197
+ .subheadingMedium {
198
+ font-weight: 500;
199
+ font-family: "Circular Medium", sans-serif;
200
+ }
201
+
202
+ .subheadingUnderlined {
203
+ text-decoration: underline;
204
+ }
205
+
206
+ .paragraph1Regular,
207
+ .paragraph1Medium,
208
+ .paragraph1Underlined {
209
+ font-size: 14px;
210
+ line-height: 17px;
211
+ margin: 0;
212
+ }
213
+
214
+ .paragraph1Regular,
215
+ .paragraph1Underlined {
216
+ font-weight: 400;
217
+ }
218
+
219
+ .paragraph1Medium {
220
+ font-weight: 500;
221
+ font-family: "Circular Medium", sans-serif;
222
+ }
223
+
224
+ .paragraph1Underlined {
225
+ text-decoration: underline;
226
+ }
227
+
228
+ .paragraph2Regular,
229
+ .paragraph2Medium,
230
+ .paragraph2Underlined {
231
+ font-size: 16px;
232
+ line-height: 28px;
233
+ margin: 0;
234
+ }
235
+
236
+ .paragraph2Regular,
237
+ .paragraph2Underlined {
238
+ font-weight: 400;
239
+ }
240
+
241
+ .paragraph2Medium {
242
+ font-weight: 500;
243
+ font-family: "Circular Medium", sans-serif;
244
+ }
245
+
246
+ .paragraph2Underlined {
247
+ text-decoration: underline;
248
+ }
249
+
250
+ .paragraph3Regular,
251
+ .paragraph3Medium,
252
+ .paragraph3Underlined {
253
+ font-size: 18px;
254
+ line-height: 21px;
255
+ margin: 0;
256
+ }
257
+
258
+ .paragraph3Regular,
259
+ .paragraph3Underlined {
260
+ font-weight: 400;
261
+ }
262
+
263
+ .paragraph3Medium {
264
+ font-weight: 500;
265
+ font-family: "Circular Medium", sans-serif;
266
+ }
267
+
268
+ .paragraph3Underlined {
269
+ text-decoration: underline;
270
+ }
271
+
272
+ .captionBook {
273
+ font-weight: 400;
274
+ font-size: 12px;
275
+ line-height: 14px;
276
+ font-family: "Circular Book", sans-serif;
277
+ margin: 0;
278
+ }
279
+
280
+ .captionMedium,
281
+ .captionAllCaps {
282
+ font-weight: 500;
283
+ font-size: 12px;
284
+ line-height: 14px;
285
+ font-family: "Circular Medium", sans-serif;
286
+ margin: 0;
287
+ }
288
+
289
+ .captionAllCaps {
290
+ letter-spacing: 0.08em;
291
+ text-transform: uppercase;
292
+ }
293
+
294
+ .footerBook {
295
+ font-family: 'Circular Book', sans-serif;
296
+ font-weight: 400;
297
+ font-size: 10px;
298
+ line-height: 12px;
299
+ letter-spacing: 0.02em;
300
+ }
301
+
302
+ .footerMedium {
303
+ font-family: 'Circular Medium', sans-serif;
304
+ font-weight: 500;
305
+ font-size: 10px;
306
+ line-height: 12px;
307
+ letter-spacing: 0.02em;
308
+ }
309
+
310
+ .footerAllCaps {
311
+ font-family: 'Circular Medium', sans-serif;
312
+ font-weight: 500;
313
+ font-size: 10px;
314
+ line-height: 12px;
315
+ letter-spacing: 0.08em;
316
+ text-transform: uppercase;
317
+ }
package/package.json CHANGED
@@ -1,66 +1,78 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.3.4",
3
+ "version": "1.3.9",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/Secondstax/sscomp"
9
+ "url": "git+https://github.com/Secondstax/sscomp.git"
10
10
  },
11
11
  "description": "A react component library for secondstax",
12
12
  "main": "dist/index.min.js",
13
13
  "module": "dist/index.es.js",
14
14
  "types": "types/index.d.ts",
15
15
  "files": [
16
- "dist","types"
16
+ "dist",
17
+ "types"
17
18
  ],
18
19
  "scripts": {
19
20
  "test": "echo \"Error: no test specified\" && exit 1",
20
21
  "build": "tsc && rollup -c rollup.config.js",
21
- "storybook": "start-storybook -p 6006",
22
+ "storybook": "storybook dev -p 6006",
22
23
  "predeploy": "npm run build-storybook",
23
24
  "deploy-storybook": "gh-pages -d storybook-static",
24
- "build-storybook": "build-storybook"
25
+ "build-storybook": "storybook build",
26
+ "chromatic": "npx chromatic --project-token=chpt_2b0f52cf5545391",
27
+ "chromatic-force": "npx chromatic --project-token=chpt_2b0f52cf5545391 --force-rebuild"
28
+ },
29
+ "author": {
30
+ "name": "augustus Otu, mark obuobi"
25
31
  },
26
- "author": "augustus Otu, mark obuobi",
27
32
  "license": "ISC",
28
33
  "devDependencies": {
29
34
  "@babel/core": "^7.19.6",
35
+ "@babel/preset-env": "^7.22.5",
36
+ "@babel/preset-react": "^7.22.5",
37
+ "@babel/preset-typescript": "^7.22.5",
30
38
  "@rollup/plugin-commonjs": "^23.0.7",
31
39
  "@rollup/plugin-node-resolve": "^15.0.1",
32
40
  "@rollup/plugin-typescript": "^9.0.2",
33
- "@storybook/addon-actions": "^6.5.13",
34
- "@storybook/addon-essentials": "^6.5.13",
35
- "@storybook/addon-interactions": "^6.5.13",
36
- "@storybook/addon-links": "^6.5.13",
37
- "@storybook/builder-webpack4": "^6.5.13",
38
- "@storybook/builder-webpack5": "^6.5.13",
39
- "@storybook/manager-webpack4": "^6.5.13",
40
- "@storybook/manager-webpack5": "^6.5.13",
41
- "@storybook/react": "^6.5.13",
41
+ "@storybook/addon-actions": "^7.0.22",
42
+ "@storybook/addon-essentials": "^7.0.22",
43
+ "@storybook/addon-interactions": "^7.0.22",
44
+ "@storybook/addon-links": "^7.0.22",
45
+ "@storybook/addon-mdx-gfm": "7.0.22",
46
+ "@storybook/react": "^7.0.22",
47
+ "@storybook/react-webpack5": "7.0.22",
42
48
  "@storybook/storybook-deployer": "^2.8.16",
43
- "@storybook/testing-library": "^0.0.13",
49
+ "@storybook/testing-library": "^0.1.0",
44
50
  "@types/react": "^18.0.22",
45
51
  "@types/styled-components": "^5.1.26",
46
52
  "babel-loader": "^8.2.5",
53
+ "chromatic": "^6.19.8",
54
+ "react": "^18.2.0",
55
+ "react-dom": "^18.2.0",
47
56
  "rollup": "^3.2.3",
57
+ "rollup-plugin-css-only": "^4.3.0",
48
58
  "rollup-plugin-dts": "^5.1.1",
49
59
  "rollup-plugin-image": "^1.0.2",
50
60
  "rollup-plugin-peer-deps-external": "^2.2.4",
51
61
  "rollup-plugin-postcss": "^4.0.2",
52
62
  "rollup-plugin-terser": "^7.0.2",
63
+ "storybook": "7.0.22",
53
64
  "styled-components": "^5.3.6",
54
65
  "typescript": "^4.8.4",
55
- "webpack": "^5.74.0"
66
+ "webpack": "^5.74.0",
67
+ "gatsby-plugin-mdx": "^5.11.0",
68
+ "@mdx-js/mdx": "^1.6.22",
69
+ "@mdx-js/react": "^1.6.22"
56
70
  },
57
71
  "dependencies": {
58
72
  "@heroicons/react": "^2.0.13",
59
- "@mdx-js/react": "^1.6.22",
60
73
  "@rollup/plugin-image": "^3.0.2",
61
74
  "@rollup/plugin-json": "^6.0.0",
62
75
  "@rollup/plugin-sucrase": "^5.0.1",
63
- "@secondstaxorg/sscomp": "^1.0.9",
64
76
  "axios": "^1.4.0",
65
77
  "chart.js": "^3.9.1",
66
78
  "dayjs": "^1.11.6",
@@ -75,8 +87,12 @@
75
87
  "rollup-plugin-typescript2": "^0.34.1"
76
88
  },
77
89
  "peerDependencies": {
78
- "styled-components": "^5.3.6",
79
- "react": "^18.2.0",
80
- "react-dom": "^18.2.0"
81
- }
90
+ "styled-components": "^5.3.6"
91
+ },
92
+ "bugs": {
93
+ "url": "https://github.com/Secondstax/sscomp/issues"
94
+ },
95
+ "readme": "ERROR: No README data found!",
96
+ "homepage": "https://github.com/Secondstax/sscomp#readme",
97
+ "_id": "@secondstaxorg/sscomp@1.3.5"
82
98
  }
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ActionFailedProps } from "./type";
3
+ /**
4
+ * Solid button
5
+ */
3
6
  export declare const ActionFailed: (props: ActionFailedProps) => JSX.Element;
4
7
  export default ActionFailed;
@@ -1,4 +1,10 @@
1
1
  export interface ActionFailedProps {
2
+ /**
3
+ * Heading message from the response of the action
4
+ */
2
5
  headingText?: string;
6
+ /**
7
+ * Text explaining the details of the error
8
+ */
3
9
  subText?: string;
4
10
  }
@@ -1,4 +1,24 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from "./type";
1
+ import React from "react";
2
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ /**
4
+ * Colour variant of the button
5
+ */
6
+ variant?: 'primary' | 'error' | 'warning' | 'success';
7
+ /**
8
+ * Size of the button. Whether large, medium or small
9
+ */
10
+ size: 'lg' | 'md' | 'sm';
11
+ /**
12
+ * State of the button. Whether disabled or not.
13
+ */
14
+ disabled?: boolean;
15
+ /**
16
+ * HTML or text content of the button. Essentially the label.
17
+ */
18
+ children: any;
19
+ }
20
+ /**
21
+ * Solid and Outline buttons
22
+ */
3
23
  declare const Button: (props: ButtonProps) => JSX.Element;
4
24
  export default Button;
@@ -1,7 +1,19 @@
1
1
  import React from "react";
2
2
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ /**
4
+ * Colour variant of the button
5
+ */
3
6
  variant?: 'primary' | 'error' | 'warning' | 'success';
7
+ /**
8
+ * Size of the button. Whether large, medium or small
9
+ */
4
10
  size: 'lg' | 'md' | 'sm';
11
+ /**
12
+ * State of the button. Whether disabled or not.
13
+ */
5
14
  disabled?: boolean;
15
+ /**
16
+ * HTML or text content of the button. Essentially the label.
17
+ */
6
18
  children: any;
7
19
  }
@@ -1,8 +1,8 @@
1
- export interface PasswordFieldProps {
1
+ import React from "react";
2
+ export interface PasswordFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
3
  label?: string;
3
4
  subtext?: string;
4
5
  disabled?: boolean;
5
6
  errMsg?: string;
6
- setValue: (a: string) => void;
7
7
  placeholder?: string;
8
8
  }
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ ssxTypography: any;
3
+ };
4
+ export default _default;
@@ -60,4 +60,3 @@ export { default as UserRolesTable } from './UserRolesTable/UserRolesTable';
60
60
  export { default as UsersTable } from './UsersTable/UsersTable';
61
61
  export { default as WidgetTitle } from './WidgetTitle/WidgetTitle';
62
62
  export { default as SSXBar } from './SSXBar/SSXBar';
63
- export { default as PopupModal } from './PopupModal/PopupModal';
@@ -0,0 +1,2 @@
1
+ export declare const PreviewContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const ColorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1 @@
1
+ export declare const Row: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { CardType } from "./type";
3
- declare const DropShadows: (props: CardType) => JSX.Element;
4
- export default DropShadows;