@deriv/quill-icons 1.0.7-beta.1 → 1.0.7-beta.2
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/types.d.ts +15 -0
- package/package.json +4 -2
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type IconSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
interface QuillSvgProps extends SVGProps<SVGSVGElement> {
|
|
5
|
+
iconSize?: IconSize;
|
|
6
|
+
}
|
|
7
|
+
type SvgSize = {
|
|
8
|
+
[key in IconSize]: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const sizes: SvgSize;
|
|
14
|
+
|
|
15
|
+
export { type IconSize, type QuillSvgProps, type SvgSize, sizes };
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deriv/quill-icons",
|
|
3
|
-
"version": "1.0.7-beta.
|
|
3
|
+
"version": "1.0.7-beta.2",
|
|
4
4
|
"description": "This is the central repository for quill icons, exported from figma design file",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
8
|
"exports": {
|
|
9
|
+
"./IconTypes": "./dist/types.d.ts",
|
|
9
10
|
"./Currencies": {
|
|
10
11
|
"import": "./dist/Currencies/index.js",
|
|
11
12
|
"types": "./dist/Currencies/index.d.ts"
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
"rexport": "npm-run-all clean export:figma format",
|
|
48
49
|
"export:barrels": "barrelsby -c barrelsby.config.json",
|
|
49
50
|
"export": "npm-run-all clean export:figma export:barrels format",
|
|
50
|
-
"
|
|
51
|
+
"clean:postBuild": "rimraf dist/types dist/index.d.ts dist/index.js",
|
|
52
|
+
"build": "rimraf dist && rollup -c && npm run clean:postBuild",
|
|
51
53
|
"rebuild": "npm-run-all clean export build",
|
|
52
54
|
"storybook": "storybook dev -p 6006",
|
|
53
55
|
"start": "storybook dev -p 6006",
|