@osn/icons 1.0.0 → 1.1.0
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 +3 -5
- package/source/subsquare/themeMoon.svg +3 -0
- package/source/subsquare/themeSun.svg +3 -0
- package/source/subsquare/themeSystem.svg +3 -0
- package/subsquare/ThemeMoon.d.ts +5 -0
- package/subsquare/ThemeMoon.js +21 -0
- package/subsquare/ThemeSun.d.ts +5 -0
- package/subsquare/ThemeSun.js +23 -0
- package/subsquare/ThemeSystem.d.ts +5 -0
- package/subsquare/ThemeSystem.js +23 -0
- package/subsquare/index.d.ts +3 -0
- package/subsquare/index.js +3 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"components",
|
|
6
6
|
"ui"
|
|
7
7
|
],
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.1.0",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
@@ -29,18 +29,16 @@
|
|
|
29
29
|
"prepublishOnly": "npm run gen"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
+
"@2nthony/prettier-config": "^1.0.2",
|
|
32
33
|
"@svgr/cli": "^8.0.1",
|
|
33
34
|
"@svgr/core": "^8.0.0",
|
|
34
35
|
"@svgr/plugin-jsx": "^8.0.1",
|
|
35
36
|
"@svgr/plugin-prettier": "^8.0.1",
|
|
36
37
|
"@svgr/plugin-svgo": "^8.0.1",
|
|
37
38
|
"@types/react": "^18.2.12",
|
|
39
|
+
"prettier": "^2.8.8",
|
|
38
40
|
"react": "^18.2.0",
|
|
39
41
|
"typescript": "^5.1.3"
|
|
40
42
|
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@2nthony/prettier-config": "^1.0.2",
|
|
43
|
-
"prettier": "^2.8.8"
|
|
44
|
-
},
|
|
45
43
|
"packageManager": "yarn@3.6.0"
|
|
46
44
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.69501 1.63491C7.81781 1.47278 7.83016 1.25243 7.72626 1.0776C7.62237 0.90276 7.42292 0.808275 7.22182 0.838624C3.97514 1.32859 1.5 4.19174 1.5 7.63229C1.5 11.413 4.49133 14.4997 8.20787 14.4997C11.0684 14.4997 13.5011 12.6688 14.4679 10.1044C14.54 9.91313 14.4884 9.69722 14.3376 9.5592C14.1868 9.42118 13.9671 9.38886 13.783 9.47759C13.1377 9.7885 12.4175 9.96225 11.6567 9.96225C8.89715 9.96225 6.63858 7.66411 6.63858 4.80233C6.63858 3.6067 7.03345 2.50839 7.69501 1.63491Z" fill="#1E2134"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.75016 1.33301C8.75016 0.918794 8.41438 0.583008 8.00016 0.583008C7.58595 0.583008 7.25016 0.918795 7.25016 1.33301L7.25016 2.66634C7.25016 3.08055 7.58595 3.41634 8.00017 3.41634C8.41438 3.41634 8.75016 3.08055 8.75016 2.66634L8.75016 1.33301ZM3.5305 2.46901C3.23761 2.17611 2.76273 2.17611 2.46984 2.469C2.17694 2.76189 2.17694 3.23676 2.46983 3.52966L3.46984 4.52969C3.76274 4.82259 4.23761 4.82259 4.5305 4.5297C4.8234 4.23681 4.8234 3.76193 4.53051 3.46904L3.5305 2.46901ZM13.5305 3.53C13.8234 3.23711 13.8234 2.76224 13.5305 2.46934C13.2376 2.17645 12.7627 2.17645 12.4698 2.46934L11.4698 3.46934C11.1769 3.76224 11.1769 4.23711 11.4698 4.53C11.7627 4.8229 12.2376 4.8229 12.5305 4.53L13.5305 3.53ZM1.3335 7.24967C0.919283 7.24967 0.583496 7.58546 0.583496 7.99967C0.583496 8.41389 0.919283 8.74967 1.3335 8.74967H2.66683C3.08104 8.74967 3.41683 8.41389 3.41683 7.99967C3.41683 7.58546 3.08104 7.24967 2.66683 7.24967H1.3335ZM13.3335 7.24968C12.9193 7.24968 12.5835 7.58546 12.5835 7.99968C12.5835 8.41389 12.9193 8.74968 13.3335 8.74968H14.6668C15.081 8.74968 15.4168 8.41389 15.4168 7.99968C15.4168 7.58546 15.081 7.24968 14.6668 7.24968H13.3335ZM12.5305 11.469C12.2376 11.1761 11.7627 11.1761 11.4698 11.469C11.1769 11.7619 11.1769 12.2368 11.4698 12.5297L12.4698 13.5297C12.7627 13.8226 13.2376 13.8226 13.5305 13.5297C13.8234 13.2368 13.8234 12.7619 13.5305 12.469L12.5305 11.469ZM4.53049 12.53C4.82339 12.2371 4.82339 11.7622 4.53049 11.4693C4.2376 11.1765 3.76273 11.1765 3.46983 11.4693L2.46983 12.4693C2.17694 12.7622 2.17694 13.2371 2.46983 13.53C2.76273 13.8229 3.2376 13.8229 3.53049 13.53L4.53049 12.53ZM8.75016 13.333C8.75017 12.9188 8.41438 12.583 8.00017 12.583C7.58595 12.583 7.25017 12.9188 7.25016 13.333L7.25016 14.6663C7.25016 15.0806 7.58595 15.4163 8.00016 15.4163C8.41438 15.4163 8.75016 15.0806 8.75016 14.6663L8.75016 13.333ZM4.16683 7.99967C4.16683 5.88258 5.88307 4.16634 8.00016 4.16634C10.1173 4.16634 11.8335 5.88258 11.8335 7.99967C11.8335 10.1168 10.1173 11.833 8.00016 11.833C5.88307 11.833 4.16683 10.1168 4.16683 7.99967Z" fill="#1E2134"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.3335 4C1.3335 3.46957 1.54421 2.96086 1.91928 2.58579C2.29436 2.21071 2.80306 2 3.3335 2H12.6668C13.1973 2 13.706 2.21071 14.081 2.58579C14.4561 2.96086 14.6668 3.46957 14.6668 4V9.33333C14.6668 9.86377 14.4561 10.3725 14.081 10.7475C13.706 11.1226 13.1973 11.3333 12.6668 11.3333H10.0002V12.6667H10.6668C10.8436 12.6667 11.0132 12.7369 11.1382 12.8619C11.2633 12.987 11.3335 13.1565 11.3335 13.3333C11.3335 13.5101 11.2633 13.6797 11.1382 13.8047C11.0132 13.9298 10.8436 14 10.6668 14H5.3335C5.15669 14 4.98712 13.9298 4.86209 13.8047C4.73707 13.6797 4.66683 13.5101 4.66683 13.3333C4.66683 13.1565 4.73707 12.987 4.86209 12.8619C4.98712 12.7369 5.15669 12.6667 5.3335 12.6667H6.00016V11.3333H3.3335C2.80306 11.3333 2.29436 11.1226 1.91928 10.7475C1.54421 10.3725 1.3335 9.86377 1.3335 9.33333V4ZM8.66683 11.3333H7.3335V12.6667H8.66683V11.3333Z" fill="#1E2134"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @param {React.SVGProps<SVGSVGElement>} props
|
|
4
|
+
*/
|
|
5
|
+
export default function SvgThemeMoon(props) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={16}
|
|
9
|
+
height={16}
|
|
10
|
+
viewBox="0 0 16 16"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M7.69501 1.63491C7.81781 1.47278 7.83016 1.25243 7.72626 1.0776C7.62237 0.90276 7.42292 0.808275 7.22182 0.838624C3.97514 1.32859 1.5 4.19174 1.5 7.63229C1.5 11.413 4.49133 14.4997 8.20787 14.4997C11.0684 14.4997 13.5011 12.6688 14.4679 10.1044C14.54 9.91313 14.4884 9.69722 14.3376 9.5592C14.1868 9.42118 13.9671 9.38886 13.783 9.47759C13.1377 9.7885 12.4175 9.96225 11.6567 9.96225C8.89715 9.96225 6.63858 7.66411 6.63858 4.80233C6.63858 3.6067 7.03345 2.50839 7.69501 1.63491Z"
|
|
17
|
+
fill="#1E2134"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @param {React.SVGProps<SVGSVGElement>} props
|
|
4
|
+
*/
|
|
5
|
+
export default function SvgThemeSun(props) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={16}
|
|
9
|
+
height={16}
|
|
10
|
+
viewBox="0 0 16 16"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
fillRule="evenodd"
|
|
17
|
+
clipRule="evenodd"
|
|
18
|
+
d="M8.75016 1.33301C8.75016 0.918794 8.41438 0.583008 8.00016 0.583008C7.58595 0.583008 7.25016 0.918795 7.25016 1.33301L7.25016 2.66634C7.25016 3.08055 7.58595 3.41634 8.00017 3.41634C8.41438 3.41634 8.75016 3.08055 8.75016 2.66634L8.75016 1.33301ZM3.5305 2.46901C3.23761 2.17611 2.76273 2.17611 2.46984 2.469C2.17694 2.76189 2.17694 3.23676 2.46983 3.52966L3.46984 4.52969C3.76274 4.82259 4.23761 4.82259 4.5305 4.5297C4.8234 4.23681 4.8234 3.76193 4.53051 3.46904L3.5305 2.46901ZM13.5305 3.53C13.8234 3.23711 13.8234 2.76224 13.5305 2.46934C13.2376 2.17645 12.7627 2.17645 12.4698 2.46934L11.4698 3.46934C11.1769 3.76224 11.1769 4.23711 11.4698 4.53C11.7627 4.8229 12.2376 4.8229 12.5305 4.53L13.5305 3.53ZM1.3335 7.24967C0.919283 7.24967 0.583496 7.58546 0.583496 7.99967C0.583496 8.41389 0.919283 8.74967 1.3335 8.74967H2.66683C3.08104 8.74967 3.41683 8.41389 3.41683 7.99967C3.41683 7.58546 3.08104 7.24967 2.66683 7.24967H1.3335ZM13.3335 7.24968C12.9193 7.24968 12.5835 7.58546 12.5835 7.99968C12.5835 8.41389 12.9193 8.74968 13.3335 8.74968H14.6668C15.081 8.74968 15.4168 8.41389 15.4168 7.99968C15.4168 7.58546 15.081 7.24968 14.6668 7.24968H13.3335ZM12.5305 11.469C12.2376 11.1761 11.7627 11.1761 11.4698 11.469C11.1769 11.7619 11.1769 12.2368 11.4698 12.5297L12.4698 13.5297C12.7627 13.8226 13.2376 13.8226 13.5305 13.5297C13.8234 13.2368 13.8234 12.7619 13.5305 12.469L12.5305 11.469ZM4.53049 12.53C4.82339 12.2371 4.82339 11.7622 4.53049 11.4693C4.2376 11.1765 3.76273 11.1765 3.46983 11.4693L2.46983 12.4693C2.17694 12.7622 2.17694 13.2371 2.46983 13.53C2.76273 13.8229 3.2376 13.8229 3.53049 13.53L4.53049 12.53ZM8.75016 13.333C8.75017 12.9188 8.41438 12.583 8.00017 12.583C7.58595 12.583 7.25017 12.9188 7.25016 13.333L7.25016 14.6663C7.25016 15.0806 7.58595 15.4163 8.00016 15.4163C8.41438 15.4163 8.75016 15.0806 8.75016 14.6663L8.75016 13.333ZM4.16683 7.99967C4.16683 5.88258 5.88307 4.16634 8.00016 4.16634C10.1173 4.16634 11.8335 5.88258 11.8335 7.99967C11.8335 10.1168 10.1173 11.833 8.00016 11.833C5.88307 11.833 4.16683 10.1168 4.16683 7.99967Z"
|
|
19
|
+
fill="#1E2134"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @param {React.SVGProps<SVGSVGElement>} props
|
|
4
|
+
*/
|
|
5
|
+
export default function SvgThemeSystem(props) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={16}
|
|
9
|
+
height={16}
|
|
10
|
+
viewBox="0 0 16 16"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
fillRule="evenodd"
|
|
17
|
+
clipRule="evenodd"
|
|
18
|
+
d="M1.3335 4C1.3335 3.46957 1.54421 2.96086 1.91928 2.58579C2.29436 2.21071 2.80306 2 3.3335 2H12.6668C13.1973 2 13.706 2.21071 14.081 2.58579C14.4561 2.96086 14.6668 3.46957 14.6668 4V9.33333C14.6668 9.86377 14.4561 10.3725 14.081 10.7475C13.706 11.1226 13.1973 11.3333 12.6668 11.3333H10.0002V12.6667H10.6668C10.8436 12.6667 11.0132 12.7369 11.1382 12.8619C11.2633 12.987 11.3335 13.1565 11.3335 13.3333C11.3335 13.5101 11.2633 13.6797 11.1382 13.8047C11.0132 13.9298 10.8436 14 10.6668 14H5.3335C5.15669 14 4.98712 13.9298 4.86209 13.8047C4.73707 13.6797 4.66683 13.5101 4.66683 13.3333C4.66683 13.1565 4.73707 12.987 4.86209 12.8619C4.98712 12.7369 5.15669 12.6667 5.3335 12.6667H6.00016V11.3333H3.3335C2.80306 11.3333 2.29436 11.1226 1.91928 10.7475C1.54421 10.3725 1.3335 9.86377 1.3335 9.33333V4ZM8.66683 11.3333H7.3335V12.6667H8.66683V11.3333Z"
|
|
19
|
+
fill="#1E2134"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
);
|
|
23
|
+
}
|
package/subsquare/index.d.ts
CHANGED
|
@@ -62,3 +62,6 @@ export { default as SystemVoteAye } from "./SystemVoteAye";
|
|
|
62
62
|
export { default as SystemVoteAyeDark } from "./SystemVoteAyeDark";
|
|
63
63
|
export { default as SystemVoteNay } from "./SystemVoteNay";
|
|
64
64
|
export { default as SystemVoteNayDark } from "./SystemVoteNayDark";
|
|
65
|
+
export { default as ThemeMoon } from "./ThemeMoon";
|
|
66
|
+
export { default as ThemeSun } from "./ThemeSun";
|
|
67
|
+
export { default as ThemeSystem } from "./ThemeSystem";
|
package/subsquare/index.js
CHANGED
|
@@ -62,3 +62,6 @@ export { default as SystemVoteAye } from "./SystemVoteAye";
|
|
|
62
62
|
export { default as SystemVoteAyeDark } from "./SystemVoteAyeDark";
|
|
63
63
|
export { default as SystemVoteNay } from "./SystemVoteNay";
|
|
64
64
|
export { default as SystemVoteNayDark } from "./SystemVoteNayDark";
|
|
65
|
+
export { default as ThemeMoon } from "./ThemeMoon";
|
|
66
|
+
export { default as ThemeSun } from "./ThemeSun";
|
|
67
|
+
export { default as ThemeSystem } from "./ThemeSystem";
|