@nice2dev/icons-math 1.0.10
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/README.md +223 -0
- package/dist/createMathIcon-BbQhEo0A.mjs +157 -0
- package/dist/createMathIcon-BbQhEo0A.mjs.map +1 -0
- package/dist/createMathIcon-CK9tbq5-.js +156 -0
- package/dist/createMathIcon-CK9tbq5-.js.map +1 -0
- package/dist/createMathIcon.d.ts +14 -0
- package/dist/createMathIcon.d.ts.map +1 -0
- package/dist/functions.cjs +137 -0
- package/dist/functions.cjs.map +1 -0
- package/dist/functions.d.ts +57 -0
- package/dist/functions.d.ts.map +1 -0
- package/dist/functions.mjs +137 -0
- package/dist/functions.mjs.map +1 -0
- package/dist/geometry.cjs +125 -0
- package/dist/geometry.cjs.map +1 -0
- package/dist/geometry.d.ts +56 -0
- package/dist/geometry.d.ts.map +1 -0
- package/dist/geometry.mjs +125 -0
- package/dist/geometry.mjs.map +1 -0
- package/dist/index.cjs +190 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +114 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +190 -0
- package/dist/index.mjs.map +1 -0
- package/dist/operators.cjs +124 -0
- package/dist/operators.cjs.map +1 -0
- package/dist/operators.d.ts +56 -0
- package/dist/operators.d.ts.map +1 -0
- package/dist/operators.mjs +124 -0
- package/dist/operators.mjs.map +1 -0
- package/dist/sets.cjs +126 -0
- package/dist/sets.cjs.map +1 -0
- package/dist/sets.d.ts +56 -0
- package/dist/sets.d.ts.map +1 -0
- package/dist/sets.mjs +126 -0
- package/dist/sets.mjs.map +1 -0
- package/dist/statistics.cjs +164 -0
- package/dist/statistics.cjs.map +1 -0
- package/dist/statistics.d.ts +56 -0
- package/dist/statistics.d.ts.map +1 -0
- package/dist/statistics.mjs +164 -0
- package/dist/statistics.mjs.map +1 -0
- package/dist/types.d.ts +59 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +78 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { SVGProps, ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Math icon animation types
|
|
4
|
+
*/
|
|
5
|
+
export type MathIconAnimation = 'pulse' | 'grow' | 'shake' | 'spin' | 'bounce' | 'fade' | 'flip' | 'slide' | 'glow';
|
|
6
|
+
/**
|
|
7
|
+
* Math icon rendering variants
|
|
8
|
+
*/
|
|
9
|
+
export type MathIconVariant = 'filled' | 'outlined' | 'duotone';
|
|
10
|
+
/**
|
|
11
|
+
* Base props for all math icons
|
|
12
|
+
*/
|
|
13
|
+
export interface MathIconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
14
|
+
/** Icon size in pixels */
|
|
15
|
+
size?: number | string;
|
|
16
|
+
/** Icon color (defaults to currentColor) */
|
|
17
|
+
color?: string;
|
|
18
|
+
/** Secondary color for duotone variant */
|
|
19
|
+
secondaryColor?: string;
|
|
20
|
+
/** Icon rendering variant */
|
|
21
|
+
variant?: MathIconVariant;
|
|
22
|
+
/** Animation effect */
|
|
23
|
+
animation?: MathIconAnimation;
|
|
24
|
+
/** Animation duration in milliseconds */
|
|
25
|
+
animationDuration?: number;
|
|
26
|
+
/** Title for accessibility */
|
|
27
|
+
title?: string;
|
|
28
|
+
/** Description for accessibility */
|
|
29
|
+
desc?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Operator icon names
|
|
33
|
+
*/
|
|
34
|
+
export type OperatorIconName = 'Plus' | 'Minus' | 'Multiply' | 'Divide' | 'Equals' | 'NotEquals' | 'LessThan' | 'GreaterThan' | 'LessOrEqual' | 'GreaterOrEqual' | 'PlusMinus' | 'Percent' | 'Modulo' | 'Power' | 'SquareRoot';
|
|
35
|
+
/**
|
|
36
|
+
* Function icon names
|
|
37
|
+
*/
|
|
38
|
+
export type FunctionIconName = 'Function' | 'Integral' | 'Derivative' | 'Summation' | 'Product' | 'Limit' | 'Pi' | 'Infinity' | 'InfinityIcon' | 'Sigma' | 'Delta' | 'Theta' | 'Lambda' | 'Factorial' | 'Logarithm' | 'Absolute';
|
|
39
|
+
/**
|
|
40
|
+
* Geometry icon names
|
|
41
|
+
*/
|
|
42
|
+
export type GeometryIconName = 'Triangle' | 'Square' | 'Circle' | 'Cube' | 'Sphere' | 'Pyramid' | 'Cylinder' | 'Cone' | 'Pentagon' | 'Hexagon' | 'Angle' | 'Parallel' | 'Perpendicular' | 'Compass' | 'Protractor';
|
|
43
|
+
/**
|
|
44
|
+
* Set theory icon names
|
|
45
|
+
*/
|
|
46
|
+
export type SetIconName = 'Union' | 'Intersection' | 'Subset' | 'Superset' | 'Element' | 'NotElement' | 'EmptySet' | 'Universal' | 'Complement' | 'Difference' | 'SymmetricDiff' | 'CartesianProduct' | 'PowerSet' | 'SetBraces' | 'Mapping';
|
|
47
|
+
/**
|
|
48
|
+
* Statistics icon names
|
|
49
|
+
*/
|
|
50
|
+
export type StatisticsIconName = 'BarChart' | 'Histogram' | 'BellCurve' | 'Scatter' | 'LineGraph' | 'PieChart' | 'BoxPlot' | 'Mean' | 'Median' | 'Mode' | 'StandardDev' | 'Variance' | 'Correlation' | 'Regression' | 'Probability';
|
|
51
|
+
/**
|
|
52
|
+
* All math icon names
|
|
53
|
+
*/
|
|
54
|
+
export type MathIconName = OperatorIconName | FunctionIconName | GeometryIconName | SetIconName | StatisticsIconName;
|
|
55
|
+
/**
|
|
56
|
+
* Math icon component type
|
|
57
|
+
*/
|
|
58
|
+
export type MathIcon = (props: MathIconProps) => ReactElement;
|
|
59
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,MAAM,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ACR,SAAS,GACT,UAAU,GACV,MAAM,GACN,UAAU,GACV,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,SAAS,GACT,YAAY,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,cAAc,GACd,QAAQ,GACR,UAAU,GACV,SAAS,GACT,YAAY,GACZ,UAAU,GACV,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,kBAAkB,GAClB,UAAU,GACV,WAAW,GACX,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,WAAW,GACX,WAAW,GACX,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,MAAM,GACN,QAAQ,GACR,MAAM,GACN,aAAa,GACb,UAAU,GACV,aAAa,GACb,YAAY,GACZ,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,WAAW,GACX,kBAAkB,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,YAAY,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nice2dev/icons-math",
|
|
3
|
+
"version": "1.0.10",
|
|
4
|
+
"description": "Mathematics icons for NiceToDev UI - operators, functions, geometry, sets, and statistics",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./operators": {
|
|
15
|
+
"import": "./dist/operators.mjs",
|
|
16
|
+
"require": "./dist/operators.cjs",
|
|
17
|
+
"types": "./dist/operators.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./functions": {
|
|
20
|
+
"import": "./dist/functions.mjs",
|
|
21
|
+
"require": "./dist/functions.cjs",
|
|
22
|
+
"types": "./dist/functions.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./geometry": {
|
|
25
|
+
"import": "./dist/geometry.mjs",
|
|
26
|
+
"require": "./dist/geometry.cjs",
|
|
27
|
+
"types": "./dist/geometry.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./sets": {
|
|
30
|
+
"import": "./dist/sets.mjs",
|
|
31
|
+
"require": "./dist/sets.cjs",
|
|
32
|
+
"types": "./dist/sets.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./statistics": {
|
|
35
|
+
"import": "./dist/statistics.mjs",
|
|
36
|
+
"require": "./dist/statistics.cjs",
|
|
37
|
+
"types": "./dist/statistics.d.ts"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist"
|
|
42
|
+
],
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsc -p tsconfig.build.json && vite build",
|
|
46
|
+
"test": "vitest run --passWithNoTests",
|
|
47
|
+
"test:watch": "vitest",
|
|
48
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
49
|
+
"typecheck": "tsc --noEmit"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"icons",
|
|
53
|
+
"react",
|
|
54
|
+
"svg",
|
|
55
|
+
"math",
|
|
56
|
+
"mathematics",
|
|
57
|
+
"geometry",
|
|
58
|
+
"statistics",
|
|
59
|
+
"nice2dev",
|
|
60
|
+
"omniwerk"
|
|
61
|
+
],
|
|
62
|
+
"author": "NiceToDev",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@testing-library/react": "^16.1.0",
|
|
69
|
+
"@types/react": "^19.1.2",
|
|
70
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
71
|
+
"jsdom": "^26.1.0",
|
|
72
|
+
"react": "^19.1.0",
|
|
73
|
+
"typescript": "^5.9.3",
|
|
74
|
+
"vite": "^6.4.1",
|
|
75
|
+
"vite-plugin-dts": "^4.4.0",
|
|
76
|
+
"vitest": "^2.1.9"
|
|
77
|
+
}
|
|
78
|
+
}
|