@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.
Files changed (75) hide show
  1. package/README.md +4 -0
  2. package/lib/module/components/Block/Block.js +3 -3
  3. package/lib/module/components/Block/Block.js.map +1 -1
  4. package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js +32 -31
  5. package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
  6. package/lib/module/components/Screen/Screen.js.map +1 -1
  7. package/lib/module/components/SkeletorProvider/SkeletorContext.js +3 -1
  8. package/lib/module/components/SkeletorProvider/SkeletorContext.js.map +1 -1
  9. package/lib/module/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
  10. package/lib/module/components/Text/Text.js +17 -20
  11. package/lib/module/components/Text/Text.js.map +1 -1
  12. package/lib/module/hooks/skeleform/package.json +2 -7
  13. package/lib/module/hooks/skeleform/src/index.js +6 -2
  14. package/lib/module/hooks/skeleform/src/index.js.map +1 -1
  15. package/lib/module/hooks/useAndroidBackHandler.js.map +1 -1
  16. package/lib/module/hooks/useAnimation.js.map +1 -1
  17. package/lib/module/hooks/useAnimationTimeline.js.map +1 -1
  18. package/lib/module/hooks/useAppState.js.map +1 -1
  19. package/lib/module/utils/animations.js +10 -5
  20. package/lib/module/utils/animations.js.map +1 -1
  21. package/lib/module/utils/extractAnimationProperties.js +7 -1
  22. package/lib/module/utils/extractAnimationProperties.js.map +1 -1
  23. package/lib/typescript/components/Block/Block.d.ts +8 -8
  24. package/lib/typescript/components/Block/Block.d.ts.map +1 -1
  25. package/lib/typescript/components/InputFocusScrollView/InputFocusScrollView.d.ts +3 -2
  26. package/lib/typescript/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -1
  27. package/lib/typescript/components/Screen/Screen.d.ts +4 -4
  28. package/lib/typescript/components/Screen/Screen.d.ts.map +1 -1
  29. package/lib/typescript/components/SkeletorProvider/SkeletorContext.d.ts +1 -1
  30. package/lib/typescript/components/SkeletorProvider/SkeletorContext.d.ts.map +1 -1
  31. package/lib/typescript/components/SkeletorProvider/SkeletorProvider.d.ts +3 -3
  32. package/lib/typescript/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -1
  33. package/lib/typescript/components/Text/Text.d.ts +4 -4
  34. package/lib/typescript/components/Text/Text.d.ts.map +1 -1
  35. package/lib/typescript/hooks/skeleform/src/index.d.ts +4 -4
  36. package/lib/typescript/hooks/skeleform/src/index.d.ts.map +1 -1
  37. package/lib/typescript/hooks/useAndroidBackHandler.d.ts +1 -1
  38. package/lib/typescript/hooks/useAndroidBackHandler.d.ts.map +1 -1
  39. package/lib/typescript/hooks/useAnimation.d.ts +3 -3
  40. package/lib/typescript/hooks/useAnimation.d.ts.map +1 -1
  41. package/lib/typescript/hooks/useAnimationTimeline.d.ts +3 -3
  42. package/lib/typescript/hooks/useAnimationTimeline.d.ts.map +1 -1
  43. package/lib/typescript/hooks/useSkeletor.d.ts +1 -1
  44. package/lib/typescript/hooks/useSkeletor.d.ts.map +1 -1
  45. package/lib/typescript/models/Alignment.d.ts +1 -1
  46. package/lib/typescript/models/Alignment.d.ts.map +1 -1
  47. package/lib/typescript/models/Animation.d.ts +19 -16
  48. package/lib/typescript/models/Animation.d.ts.map +1 -1
  49. package/lib/typescript/models/Border.d.ts +3 -3
  50. package/lib/typescript/models/Border.d.ts.map +1 -1
  51. package/lib/typescript/models/Flex.d.ts +4 -4
  52. package/lib/typescript/models/Flex.d.ts.map +1 -1
  53. package/lib/typescript/models/Position.d.ts +2 -2
  54. package/lib/typescript/models/Position.d.ts.map +1 -1
  55. package/lib/typescript/models/Size.d.ts +1 -1
  56. package/lib/typescript/models/Size.d.ts.map +1 -1
  57. package/lib/typescript/models/SkeletorConfig.d.ts +4 -0
  58. package/lib/typescript/models/SkeletorConfig.d.ts.map +1 -1
  59. package/lib/typescript/models/Spacing.d.ts +6 -6
  60. package/lib/typescript/models/Spacing.d.ts.map +1 -1
  61. package/lib/typescript/utils/animations.d.ts +6 -6
  62. package/lib/typescript/utils/animations.d.ts.map +1 -1
  63. package/lib/typescript/utils/extractAlignmentProperties.d.ts +3 -3
  64. package/lib/typescript/utils/extractAlignmentProperties.d.ts.map +1 -1
  65. package/lib/typescript/utils/extractAnimationProperties.d.ts +5 -103
  66. package/lib/typescript/utils/extractAnimationProperties.d.ts.map +1 -1
  67. package/lib/typescript/utils/extractFlexProperties.d.ts +1 -1
  68. package/lib/typescript/utils/extractFlexProperties.d.ts.map +1 -1
  69. package/lib/typescript/utils/extractGapProperties.d.ts +2 -2
  70. package/lib/typescript/utils/extractGapProperties.d.ts.map +1 -1
  71. package/lib/typescript/utils/extractPositionProperties.d.ts +3 -3
  72. package/lib/typescript/utils/extractPositionProperties.d.ts.map +1 -1
  73. package/lib/typescript/utils/extractSizeProperties.d.ts +1 -1
  74. package/lib/typescript/utils/extractSizeProperties.d.ts.map +1 -1
  75. 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,cAAc,EAAE,MAAM,QAAQ,CAAC;AAaxC,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmC3E"}
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,3 +1,3 @@
1
- import { Flex, FlexAttributes } from "models";
1
+ import type { Flex, FlexAttributes } from "models";
2
2
  export declare function extractFlexProperties<Props extends Flex>(props: Props): FlexAttributes;
3
3
  //# sourceMappingURL=extractFlexProperties.d.ts.map
@@ -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;AAE9C,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,IAAI,EACtD,KAAK,EAAE,KAAK,GACX,cAAc,CAkBhB"}
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;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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
+ {"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
- declare type ReturnProps = {
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;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,aAAK,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
+ {"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,3 +1,3 @@
1
- import { Size } from "../models";
1
+ import type { Size } from "../models";
2
2
  export declare function extractSizeProperties<Props extends Size>(props: Props): Size;
3
3
  //# sourceMappingURL=extractSizeProperties.d.ts.map
@@ -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;AAEjC,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAS5E"}
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
- "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.17",
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
- "@react-native-community/eslint-config": "3.2.0",
25
- "@react-native/eslint-config": "^0.72.2",
26
- "@react-native/metro-config": "^0.72.9",
27
- "@tsconfig/react-native": "^3.0.0",
28
- "@types/jest": "29.4.0",
29
- "@types/react": "^18.0.24",
30
- "@typescript-eslint/parser": "^6.13.2",
31
- "eslint": "8.55.0",
32
- "eslint-plugin-import": "2.29.0",
33
- "eslint-plugin-prettier": "^5.0.1",
34
- "eslint-plugin-simple-import-sort": "^10.0.0",
35
- "eslint-plugin-unused-imports": "3.0.0",
36
- "jest": "29.4.2",
37
- "prettier": "^3.1.1",
38
- "react": "^18.2.0",
39
- "react-native": "^0.72.0",
40
- "react-native-builder-bob": "0.20.3",
41
- "typescript": "4.8.4"
42
- },
43
- "peerDependencies": {
44
- "react": ">=16",
45
- "react-native": ">=0.72.0"
46
- },
47
- "publishConfig": {
48
- "access": "public"
49
- },
50
- "keywords": [
51
- "react-native",
52
- "toolkit",
53
- "ui",
54
- "kit",
55
- "form",
56
- "input",
57
- "validation",
58
- "animation",
59
- "helpers",
60
- "utilities",
61
- "utils"
62
- ],
63
- "files": [
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
  }