@prototyp/skeletor 1.0.17 → 1.0.19
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 +4 -0
- package/lib/module/components/Block/Block.js +3 -3
- package/lib/module/components/Block/Block.js.map +1 -1
- package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js +32 -31
- package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
- package/lib/module/components/Screen/Screen.js.map +1 -1
- package/lib/module/components/SkeletorProvider/SkeletorContext.js +3 -1
- package/lib/module/components/SkeletorProvider/SkeletorContext.js.map +1 -1
- package/lib/module/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
- package/lib/module/components/Text/Text.js +17 -20
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/hooks/skeleform/package.json +2 -7
- package/lib/module/hooks/skeleform/src/index.js +6 -2
- package/lib/module/hooks/skeleform/src/index.js.map +1 -1
- package/lib/module/hooks/useAndroidBackHandler.js.map +1 -1
- package/lib/module/hooks/useAnimation.js.map +1 -1
- package/lib/module/hooks/useAnimationTimeline.js.map +1 -1
- package/lib/module/hooks/useAppState.js.map +1 -1
- package/lib/module/utils/animations.js +10 -5
- package/lib/module/utils/animations.js.map +1 -1
- package/lib/module/utils/extractAnimationProperties.js +7 -1
- package/lib/module/utils/extractAnimationProperties.js.map +1 -1
- package/lib/typescript/components/Block/Block.d.ts +8 -8
- package/lib/typescript/components/Block/Block.d.ts.map +1 -1
- package/lib/typescript/components/InputFocusScrollView/InputFocusScrollView.d.ts +3 -2
- package/lib/typescript/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -1
- package/lib/typescript/components/Screen/Screen.d.ts +4 -4
- package/lib/typescript/components/Screen/Screen.d.ts.map +1 -1
- package/lib/typescript/components/SkeletorProvider/SkeletorContext.d.ts +1 -1
- package/lib/typescript/components/SkeletorProvider/SkeletorContext.d.ts.map +1 -1
- package/lib/typescript/components/SkeletorProvider/SkeletorProvider.d.ts +3 -3
- package/lib/typescript/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -1
- package/lib/typescript/components/Text/Text.d.ts +4 -4
- package/lib/typescript/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/hooks/skeleform/src/index.d.ts +4 -4
- package/lib/typescript/hooks/skeleform/src/index.d.ts.map +1 -1
- package/lib/typescript/hooks/useAndroidBackHandler.d.ts +1 -1
- package/lib/typescript/hooks/useAndroidBackHandler.d.ts.map +1 -1
- package/lib/typescript/hooks/useAnimation.d.ts +3 -3
- package/lib/typescript/hooks/useAnimation.d.ts.map +1 -1
- package/lib/typescript/hooks/useAnimationTimeline.d.ts +3 -3
- package/lib/typescript/hooks/useAnimationTimeline.d.ts.map +1 -1
- package/lib/typescript/hooks/useSkeletor.d.ts +1 -1
- package/lib/typescript/hooks/useSkeletor.d.ts.map +1 -1
- package/lib/typescript/models/Alignment.d.ts +1 -1
- package/lib/typescript/models/Alignment.d.ts.map +1 -1
- package/lib/typescript/models/Animation.d.ts +19 -16
- package/lib/typescript/models/Animation.d.ts.map +1 -1
- package/lib/typescript/models/Border.d.ts +3 -3
- package/lib/typescript/models/Border.d.ts.map +1 -1
- package/lib/typescript/models/Flex.d.ts +4 -4
- package/lib/typescript/models/Flex.d.ts.map +1 -1
- package/lib/typescript/models/Position.d.ts +2 -2
- package/lib/typescript/models/Position.d.ts.map +1 -1
- package/lib/typescript/models/Size.d.ts +1 -1
- package/lib/typescript/models/Size.d.ts.map +1 -1
- package/lib/typescript/models/SkeletorConfig.d.ts +4 -0
- package/lib/typescript/models/SkeletorConfig.d.ts.map +1 -1
- package/lib/typescript/models/Spacing.d.ts +6 -6
- package/lib/typescript/models/Spacing.d.ts.map +1 -1
- package/lib/typescript/utils/animations.d.ts +6 -6
- package/lib/typescript/utils/animations.d.ts.map +1 -1
- package/lib/typescript/utils/extractAlignmentProperties.d.ts +3 -3
- package/lib/typescript/utils/extractAlignmentProperties.d.ts.map +1 -1
- package/lib/typescript/utils/extractAnimationProperties.d.ts +5 -103
- package/lib/typescript/utils/extractAnimationProperties.d.ts.map +1 -1
- package/lib/typescript/utils/extractFlexProperties.d.ts +1 -1
- package/lib/typescript/utils/extractFlexProperties.d.ts.map +1 -1
- package/lib/typescript/utils/extractGapProperties.d.ts +2 -2
- package/lib/typescript/utils/extractGapProperties.d.ts.map +1 -1
- package/lib/typescript/utils/extractPositionProperties.d.ts +3 -3
- package/lib/typescript/utils/extractPositionProperties.d.ts.map +1 -1
- package/lib/typescript/utils/extractSizeProperties.d.ts +1 -1
- package/lib/typescript/utils/extractSizeProperties.d.ts.map +1 -1
- package/package.json +62 -76
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractAnimationProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractAnimationProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"extractAnimationProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractAnimationProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAepD,wBAAgB,0BAA0B,CACxC,IAAI,SAAS,MAAM,kBAAkB,EACrC,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,SAAS;gBAIxB,eAAe,CAAC,WAAW,CAAC;eAyC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractFlexProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractFlexProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"extractFlexProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractFlexProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAEnD,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,IAAI,EACtD,KAAK,EAAE,KAAK,GACX,cAAc,CAkBhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Spacing } from "models";
|
|
2
|
-
import { ViewStyle } from "react-native";
|
|
1
|
+
import type { Spacing } from "models";
|
|
2
|
+
import type { ViewStyle } from "react-native";
|
|
3
3
|
export declare function extractGapProperties<Props extends Spacing>(props: Props): {
|
|
4
4
|
gap?: ViewStyle["gap"];
|
|
5
5
|
columnGap?: ViewStyle["columnGap"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractGapProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractGapProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"extractGapProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractGapProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,OAAO,EACxD,KAAK,EAAE,KAAK,GACX;IACD,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC9B,CAqBA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Position } from "models";
|
|
2
|
-
import { ViewStyle } from "react-native";
|
|
3
|
-
|
|
1
|
+
import type { Position } from "models";
|
|
2
|
+
import type { ViewStyle } from "react-native";
|
|
3
|
+
type ReturnProps = {
|
|
4
4
|
position: ViewStyle["position"];
|
|
5
5
|
zIndex: ViewStyle["zIndex"];
|
|
6
6
|
top: ViewStyle["top"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractPositionProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractPositionProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"extractPositionProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractPositionProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACtB,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,QAAQ,EAC9D,KAAK,EAAE,KAAK,GACX,WAAW,CAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractSizeProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractSizeProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"extractSizeProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/extractSizeProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAS5E"}
|
package/package.json
CHANGED
|
@@ -1,78 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"lib"
|
|
65
|
-
],
|
|
66
|
-
"react-native-builder-bob": {
|
|
67
|
-
"source": "src",
|
|
68
|
-
"output": "lib",
|
|
69
|
-
"targets": [
|
|
70
|
-
"module",
|
|
71
|
-
"typescript"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"eslintIgnore": [
|
|
75
|
-
"node_modules/",
|
|
76
|
-
"lib/"
|
|
77
|
-
]
|
|
2
|
+
"name": "@prototyp/skeletor",
|
|
3
|
+
"description": "React-Native UI and functional toolkit",
|
|
4
|
+
"author": "Luka Buljan <luka@prototyp.digital>",
|
|
5
|
+
"contributors": [
|
|
6
|
+
"Luka Buljan <luka@prototyp.digital>",
|
|
7
|
+
"Vlatko Vlahek <vlatko@prototyp.digital>"
|
|
8
|
+
],
|
|
9
|
+
"version": "1.0.19",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"types": "lib/typescript/index.d.ts",
|
|
12
|
+
"main": "lib/module/index.js",
|
|
13
|
+
"react-native": "lib/module/index.js",
|
|
14
|
+
"module": "lib/module/index.js",
|
|
15
|
+
"homepage": "https://github.com/prototypdigital/skeletor",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"directory": "https://github.com/prototypdigital/skeletor"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"prepack": "bob build"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@biomejs/biome": "^1.9.4",
|
|
25
|
+
"@react-native-community/eslint-config": "3.2.0",
|
|
26
|
+
"@react-native/eslint-config": "^0.72.2",
|
|
27
|
+
"@react-native/metro-config": "^0.72.9",
|
|
28
|
+
"@tsconfig/react-native": "^3.0.0",
|
|
29
|
+
"@types/jest": "29.4.0",
|
|
30
|
+
"@types/react": "^18.0.24",
|
|
31
|
+
"jest": "29.4.2",
|
|
32
|
+
"react": "^18.2.0",
|
|
33
|
+
"react-native": "^0.72.0",
|
|
34
|
+
"react-native-builder-bob": "0.20.3",
|
|
35
|
+
"typescript": "5.4.5"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": ">=16",
|
|
39
|
+
"react-native": ">=0.72.0"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"react-native",
|
|
46
|
+
"toolkit",
|
|
47
|
+
"ui",
|
|
48
|
+
"kit",
|
|
49
|
+
"form",
|
|
50
|
+
"input",
|
|
51
|
+
"validation",
|
|
52
|
+
"animation",
|
|
53
|
+
"helpers",
|
|
54
|
+
"utilities",
|
|
55
|
+
"utils"
|
|
56
|
+
],
|
|
57
|
+
"files": ["lib"],
|
|
58
|
+
"react-native-builder-bob": {
|
|
59
|
+
"source": "src",
|
|
60
|
+
"output": "lib",
|
|
61
|
+
"targets": ["module", "typescript"]
|
|
62
|
+
},
|
|
63
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
78
64
|
}
|