phaser-wind 0.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/LICENSE +21 -0
- package/README.md +446 -0
- package/dist/color/color-picker.d.ts +13 -0
- package/dist/color/color-picker.d.ts.map +1 -0
- package/dist/color/color-picker.js +61 -0
- package/dist/color/color-picker.js.map +1 -0
- package/dist/color/color-picker.spec.d.ts +2 -0
- package/dist/color/color-picker.spec.d.ts.map +1 -0
- package/dist/color/color-picker.spec.js +41 -0
- package/dist/color/color-picker.spec.js.map +1 -0
- package/dist/color/index.d.ts +3 -0
- package/dist/color/index.d.ts.map +1 -0
- package/dist/color/index.js +3 -0
- package/dist/color/index.js.map +1 -0
- package/dist/color/pallete.d.ts +291 -0
- package/dist/color/pallete.d.ts.map +1 -0
- package/dist/color/pallete.js +292 -0
- package/dist/color/pallete.js.map +1 -0
- package/dist/font/font-size-picker.d.ts +19 -0
- package/dist/font/font-size-picker.d.ts.map +1 -0
- package/dist/font/font-size-picker.js +24 -0
- package/dist/font/font-size-picker.js.map +1 -0
- package/dist/font/font-size-picker.spec.d.ts +2 -0
- package/dist/font/font-size-picker.spec.d.ts.map +1 -0
- package/dist/font/font-size-picker.spec.js +48 -0
- package/dist/font/font-size-picker.spec.js.map +1 -0
- package/dist/font/index.d.ts +2 -0
- package/dist/font/index.d.ts.map +1 -0
- package/dist/font/index.js +2 -0
- package/dist/font/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* eslint-disable no-magic-numbers */
|
|
2
|
+
import { describe, expect, it } from 'vitest';
|
|
3
|
+
import { FontSizePicker } from './font-size-picker';
|
|
4
|
+
describe('FontSizePicker', () => {
|
|
5
|
+
it.each([
|
|
6
|
+
['xs', 12],
|
|
7
|
+
['sm', 14],
|
|
8
|
+
['md', 16],
|
|
9
|
+
['lg', 18],
|
|
10
|
+
['xl', 20],
|
|
11
|
+
['2xl', 24],
|
|
12
|
+
['3xl', 30],
|
|
13
|
+
['4xl', 36],
|
|
14
|
+
['5xl', 48],
|
|
15
|
+
['6xl', 60],
|
|
16
|
+
])('should return correct pixel value for %s size', (size, expected) => {
|
|
17
|
+
expect(FontSizePicker.px(size)).toBe(expected);
|
|
18
|
+
});
|
|
19
|
+
it.each([
|
|
20
|
+
['xs', 0.75],
|
|
21
|
+
['sm', 0.875],
|
|
22
|
+
['md', 1],
|
|
23
|
+
['lg', 1.125],
|
|
24
|
+
['xl', 1.25],
|
|
25
|
+
['2xl', 1.5],
|
|
26
|
+
['3xl', 1.875],
|
|
27
|
+
['4xl', 2.25],
|
|
28
|
+
['5xl', 3],
|
|
29
|
+
['6xl', 3.75],
|
|
30
|
+
])('should return correct rem value for %s size', (size, expected) => {
|
|
31
|
+
expect(FontSizePicker.rem(size)).toBe(expected);
|
|
32
|
+
});
|
|
33
|
+
it.each([
|
|
34
|
+
['xs', '12px'],
|
|
35
|
+
['sm', '14px'],
|
|
36
|
+
['md', '16px'],
|
|
37
|
+
['lg', '18px'],
|
|
38
|
+
['xl', '20px'],
|
|
39
|
+
['2xl', '24px'],
|
|
40
|
+
['3xl', '30px'],
|
|
41
|
+
['4xl', '36px'],
|
|
42
|
+
['5xl', '48px'],
|
|
43
|
+
['6xl', '60px'],
|
|
44
|
+
])('should return correct CSS string for %s size', (size, expected) => {
|
|
45
|
+
expect(FontSizePicker.css(size)).toBe(expected);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=font-size-picker.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-size-picker.spec.js","sourceRoot":"","sources":["../../src/font/font-size-picker.spec.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,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E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,IAAI,CAAC;QACN,CAAC,IAAI,EAAE,MAAM,CAAC;QACd,CAAC,IAAI,EAAE,MAAM,CAAC;QACd,CAAC,IAAI,EAAE,MAAM,CAAC;QACd,CAAC,IAAI,EAAE,MAAM,CAAC;QACd,CAAC,IAAI,EAAE,MAAM,CAAC;QACd,CAAC,KAAK,EAAE,MAAM,CAAC;QACf,CAAC,KAAK,EAAE,MAAM,CAAC;QACf,CAAC,KAAK,EAAE,MAAM,CAAC;QACf,CAAC,KAAK,EAAE,MAAM,CAAC;QACf,CAAC,KAAK,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC,8CAA8C,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QACpE,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,IAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/font/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "phaser-wind",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Wind theme like Tailwind CSS for Phaser games",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"phaser",
|
|
20
|
+
"game-development",
|
|
21
|
+
"wind",
|
|
22
|
+
"tailwind",
|
|
23
|
+
"typescript"
|
|
24
|
+
],
|
|
25
|
+
"author": "CassinoDev",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/renatocassino/phaser-toolkit.git",
|
|
30
|
+
"directory": "packages/phaser-wind"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/renatocassino/phaser-toolkit/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/renatocassino/phaser-toolkit/tree/main/packages/phaser-wind#readme",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@eslint-recommended/eslint-config": "^28.0.0",
|
|
38
|
+
"@types/node": "^24.1.0",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
40
|
+
"@typescript-eslint/parser": "^6.15.0",
|
|
41
|
+
"eslint": "^8.55.0",
|
|
42
|
+
"eslint-config-prettier": "^9.1.0",
|
|
43
|
+
"eslint-plugin-import": "^2.29.1",
|
|
44
|
+
"eslint-plugin-node": "^11.1.0",
|
|
45
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
46
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
47
|
+
"eslint-plugin-security": "^1.7.1",
|
|
48
|
+
"eslint-plugin-sonarjs": "^0.23.0",
|
|
49
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
50
|
+
"typescript": "^5.3.0",
|
|
51
|
+
"vitest": "^3.2.4"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"phaser": "^3.70.0"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsc --build",
|
|
61
|
+
"dev": "tsc --build --watch",
|
|
62
|
+
"clean": "rm -rf dist",
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"typecheck": "tsc --noEmit",
|
|
66
|
+
"lint": "eslint src --ext .ts,.tsx --max-warnings 0",
|
|
67
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
68
|
+
"lint:report": "eslint src --ext .ts,.tsx --format html --output-file eslint-report.html"
|
|
69
|
+
}
|
|
70
|
+
}
|