farm-react 1.0.3 → 1.0.6

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 (131) hide show
  1. package/README.md +3 -68
  2. package/dist/cjs/assets/data/header.d.ts +6 -0
  3. package/dist/cjs/assets/data/header.js +17 -0
  4. package/dist/cjs/assets/data/header.js.map +1 -0
  5. package/dist/cjs/assets/data/home.d.ts +0 -0
  6. package/dist/cjs/assets/data/home.js +2 -0
  7. package/dist/cjs/assets/data/home.js.map +1 -0
  8. package/dist/cjs/assets/data/icons.d.ts +0 -0
  9. package/dist/cjs/assets/data/icons.js +2 -0
  10. package/dist/cjs/assets/data/icons.js.map +1 -0
  11. package/dist/cjs/components/Button.d.ts +2 -0
  12. package/dist/cjs/components/Button.js +9 -0
  13. package/dist/cjs/components/Button.js.map +1 -0
  14. package/dist/cjs/components/Label.d.ts +14 -0
  15. package/dist/cjs/components/Label.js +23 -0
  16. package/dist/cjs/components/Label.js.map +1 -0
  17. package/dist/cjs/components/Layout/Footer.d.ts +3 -0
  18. package/dist/cjs/components/Layout/Footer.js +20 -0
  19. package/dist/cjs/components/Layout/Footer.js.map +1 -0
  20. package/dist/cjs/components/Layout/Header.d.ts +3 -0
  21. package/dist/cjs/components/Layout/Header.js +28 -0
  22. package/dist/cjs/components/Layout/Header.js.map +1 -0
  23. package/dist/cjs/components/Layout/Sidebar.d.ts +3 -0
  24. package/dist/cjs/components/Layout/Sidebar.js +11 -0
  25. package/dist/cjs/components/Layout/Sidebar.js.map +1 -0
  26. package/dist/cjs/components/TextInput.d.ts +10 -0
  27. package/dist/cjs/components/TextInput.js +26 -0
  28. package/dist/cjs/components/TextInput.js.map +1 -0
  29. package/dist/cjs/components/app.d.ts +6 -0
  30. package/dist/cjs/components/app.js +22 -0
  31. package/dist/cjs/components/app.js.map +1 -0
  32. package/dist/cjs/constants/app.d.ts +1 -0
  33. package/dist/cjs/constants/app.js +5 -0
  34. package/dist/cjs/constants/app.js.map +1 -0
  35. package/dist/cjs/constants/images.d.ts +0 -0
  36. package/dist/cjs/constants/images.js +2 -0
  37. package/dist/cjs/constants/images.js.map +1 -0
  38. package/dist/cjs/constants/routes.d.ts +0 -0
  39. package/dist/cjs/constants/routes.js +2 -0
  40. package/dist/cjs/constants/routes.js.map +1 -0
  41. package/dist/cjs/container/index.d.ts +0 -0
  42. package/dist/cjs/container/index.js +2 -0
  43. package/dist/cjs/container/index.js.map +1 -0
  44. package/dist/cjs/helpers/app.d.ts +81 -0
  45. package/dist/cjs/helpers/app.js +151 -0
  46. package/dist/cjs/helpers/app.js.map +1 -0
  47. package/dist/cjs/helpers/index.d.ts +0 -0
  48. package/dist/cjs/helpers/index.js +2 -0
  49. package/dist/cjs/helpers/index.js.map +1 -0
  50. package/dist/cjs/hooks/index.d.ts +0 -0
  51. package/dist/cjs/hooks/index.js +2 -0
  52. package/dist/cjs/hooks/index.js.map +1 -0
  53. package/dist/cjs/index.d.ts +4 -0
  54. package/dist/cjs/index.js +11 -0
  55. package/dist/cjs/index.js.map +1 -0
  56. package/dist/cjs/strings/en.d.ts +3 -0
  57. package/dist/cjs/strings/en.js +8 -0
  58. package/dist/cjs/strings/en.js.map +1 -0
  59. package/dist/cjs/strings/index.d.ts +0 -0
  60. package/dist/cjs/strings/index.js +2 -0
  61. package/dist/cjs/strings/index.js.map +1 -0
  62. package/dist/esm/assets/data/header.d.ts +6 -0
  63. package/dist/esm/assets/data/header.js +14 -0
  64. package/dist/esm/assets/data/header.js.map +1 -0
  65. package/dist/esm/assets/data/home.d.ts +0 -0
  66. package/dist/esm/assets/data/home.js +2 -0
  67. package/dist/esm/assets/data/home.js.map +1 -0
  68. package/dist/esm/assets/data/icons.d.ts +0 -0
  69. package/dist/esm/assets/data/icons.js +2 -0
  70. package/dist/esm/assets/data/icons.js.map +1 -0
  71. package/dist/esm/components/Button.d.ts +2 -0
  72. package/dist/esm/components/Button.js +5 -0
  73. package/dist/esm/components/Button.js.map +1 -0
  74. package/dist/esm/components/Label.d.ts +14 -0
  75. package/dist/esm/components/Label.js +20 -0
  76. package/dist/esm/components/Label.js.map +1 -0
  77. package/dist/esm/components/Layout/Footer.d.ts +3 -0
  78. package/dist/esm/components/Layout/Footer.js +17 -0
  79. package/dist/esm/components/Layout/Footer.js.map +1 -0
  80. package/dist/esm/components/Layout/Header.d.ts +3 -0
  81. package/dist/esm/components/Layout/Header.js +25 -0
  82. package/dist/esm/components/Layout/Header.js.map +1 -0
  83. package/dist/esm/components/Layout/Sidebar.d.ts +3 -0
  84. package/dist/esm/components/Layout/Sidebar.js +8 -0
  85. package/dist/esm/components/Layout/Sidebar.js.map +1 -0
  86. package/dist/esm/components/Notification.d.ts +1 -0
  87. package/dist/esm/components/Notification.js +46 -0
  88. package/dist/esm/components/Notification.js.map +1 -0
  89. package/dist/esm/components/SwitchItem.d.ts +8 -0
  90. package/dist/esm/components/SwitchItem.js +7 -0
  91. package/dist/esm/components/SwitchItem.js.map +1 -0
  92. package/dist/esm/components/TextInput.d.ts +10 -0
  93. package/dist/esm/components/TextInput.js +23 -0
  94. package/dist/esm/components/TextInput.js.map +1 -0
  95. package/dist/esm/components/app.d.ts +6 -0
  96. package/dist/esm/components/app.js +19 -0
  97. package/dist/esm/components/app.js.map +1 -0
  98. package/dist/esm/constants/aap.d.ts +1 -0
  99. package/dist/esm/constants/aap.js +2 -0
  100. package/dist/esm/constants/aap.js.map +1 -0
  101. package/dist/esm/constants/app.d.ts +1 -0
  102. package/dist/esm/constants/app.js +2 -0
  103. package/dist/esm/constants/app.js.map +1 -0
  104. package/dist/esm/constants/images.d.ts +0 -0
  105. package/dist/esm/constants/images.js +2 -0
  106. package/dist/esm/constants/images.js.map +1 -0
  107. package/dist/esm/constants/routes.d.ts +0 -0
  108. package/dist/esm/constants/routes.js +2 -0
  109. package/dist/esm/constants/routes.js.map +1 -0
  110. package/dist/esm/container/index.d.ts +0 -0
  111. package/dist/esm/container/index.js +2 -0
  112. package/dist/esm/container/index.js.map +1 -0
  113. package/dist/esm/helpers/app.d.ts +81 -0
  114. package/dist/esm/helpers/app.js +136 -0
  115. package/dist/esm/helpers/app.js.map +1 -0
  116. package/dist/esm/helpers/index.d.ts +0 -0
  117. package/dist/esm/helpers/index.js +2 -0
  118. package/dist/esm/helpers/index.js.map +1 -0
  119. package/dist/esm/hooks/index.d.ts +0 -0
  120. package/dist/esm/hooks/index.js +2 -0
  121. package/dist/esm/hooks/index.js.map +1 -0
  122. package/dist/esm/index.d.ts +4 -0
  123. package/dist/esm/index.js +5 -0
  124. package/dist/esm/index.js.map +1 -0
  125. package/dist/esm/strings/en.d.ts +3 -0
  126. package/dist/esm/strings/en.js +5 -0
  127. package/dist/esm/strings/en.js.map +1 -0
  128. package/dist/esm/strings/index.d.ts +0 -0
  129. package/dist/esm/strings/index.js +2 -0
  130. package/dist/esm/strings/index.js.map +1 -0
  131. package/package.json +50 -41
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Safely returns the provided object or an empty object as fallback.
3
+ * @param value - The object to check.
4
+ * @returns The original object if defined, otherwise an empty object of type T.
5
+ */
6
+ export function destructObj(value) {
7
+ return (value !== null && value !== void 0 ? value : {});
8
+ }
9
+ /**
10
+ * Checks if the given value is an empty string (after trimming).
11
+ * @param value - The string to check.
12
+ * @returns true if the value is not a valid string or is empty after trimming, false otherwise.
13
+ */
14
+ export function isEmptyString(value) {
15
+ return !(typeof value === 'string' && value.trim().length > 0);
16
+ }
17
+ /**
18
+ * Checks if the given value is a non-empty string.
19
+ * @param value - The string to check.
20
+ * @returns true if the value is a string with at least one character, false otherwise.
21
+ */
22
+ export function isStringNotEmpty(value) {
23
+ return typeof value === 'string' && value.trim().length > 0;
24
+ }
25
+ /**
26
+ * Checks if the given value is a non-empty array.
27
+ * @param value - The array to check.
28
+ * @returns true if the value is an array with at least one element, false otherwise.
29
+ */
30
+ export function isArrayNotEmpty(value) {
31
+ return Array.isArray(value) && value.length > 0;
32
+ }
33
+ /**
34
+ * Checks if the given value is an empty array.
35
+ * @param value - The array to check.
36
+ * @returns true if the value is an array with no elements, false otherwise.
37
+ */
38
+ export function isArrayEmpty(value) {
39
+ return Array.isArray(value) && value.length === 0;
40
+ }
41
+ /**
42
+ * Safely returns the length of the given array.
43
+ * @param value - The array to check.
44
+ * @returns The number of elements in the array, or 0 if the array is null/undefined.
45
+ */
46
+ export function getArrayLength(value) {
47
+ return Array.isArray(value) ? value.length : 0;
48
+ }
49
+ /**
50
+ * Safely checks if the given array includes a specific value.
51
+ * @param array - The array to check.
52
+ * @param item - The item to search for.
53
+ * @returns true if the array includes the item, false otherwise.
54
+ */
55
+ export function isArrayIncludes(array, item) {
56
+ return Array.isArray(array) && array.includes(item);
57
+ }
58
+ /**
59
+ * Checks if the given value is an empty object.
60
+ * @param value - The object to check.
61
+ * @returns true if the value is an object with no own enumerable keys, false otherwise.
62
+ */
63
+ export function isObjEmpty(value) {
64
+ return !!value && Object.keys(value).length === 0 && value.constructor === Object;
65
+ }
66
+ /**
67
+ * Checks if the given value is a non-empty plain object.
68
+ * @param value - The object to check.
69
+ * @returns true if the value is a plain object with at least one own key, false otherwise.
70
+ */
71
+ export function isObjNotEmpty(value) {
72
+ return !!value && value.constructor === Object && Object.keys(value).length > 0;
73
+ }
74
+ /**
75
+ * Checks if the given value is empty.
76
+ * Supports: string, array, object.
77
+ * @param value - The value to check.
78
+ * @returns true if the value is empty, false otherwise.
79
+ */
80
+ export function isEmpty(value) {
81
+ if (value == null)
82
+ return true; // null or undefined
83
+ if (typeof value === 'string') {
84
+ return value.trim().length === 0;
85
+ }
86
+ if (Array.isArray(value)) {
87
+ return value.length === 0;
88
+ }
89
+ if (typeof value === 'object') {
90
+ return Object.keys(value).length === 0 && value.constructor === Object;
91
+ }
92
+ return false; // for numbers, booleans, functions, etc.
93
+ }
94
+ /**
95
+ * Generates an array of dates between two dates (inclusive).
96
+ * @param start - The start date.
97
+ * @param end - The end date.
98
+ * @returns An array of Date objects from start to end.
99
+ */
100
+ export function getDates(start, end) {
101
+ var dates = [];
102
+ var current = new Date(start);
103
+ while (current <= end) {
104
+ dates.push(new Date(current)); // push a copy
105
+ current.setDate(current.getDate() + 1); // move to next day
106
+ }
107
+ return dates;
108
+ }
109
+ /**
110
+ * Formats a given date into a string.
111
+ * @param date - The date to format.
112
+ * @param format - The format string (default: "YYYY-MM-DD").
113
+ * Supported tokens: YYYY, MM, DD, HH, mm, ss
114
+ * @returns The formatted date string.
115
+ */
116
+ export function getFormattedDate(date, format) {
117
+ if (format === void 0) { format = 'YYYY-MM-DD'; }
118
+ var pad = function (n) { return n.toString().padStart(2, '0'); };
119
+ var map = {
120
+ YYYY: date.getFullYear().toString(),
121
+ MM: pad(date.getMonth() + 1),
122
+ DD: pad(date.getDate()),
123
+ HH: pad(date.getHours()),
124
+ mm: pad(date.getMinutes()),
125
+ ss: pad(date.getSeconds()),
126
+ };
127
+ return format.replace(/YYYY|MM|DD|HH|mm|ss/g, function (match) { return map[match]; });
128
+ }
129
+ /**
130
+ * Returns the current logged-in user from localStorage.
131
+ */
132
+ export function getCurrentUser() {
133
+ var user = localStorage.getItem('currentUser');
134
+ return user ? JSON.parse(user) : null;
135
+ }
136
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/helpers/app.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAmB,KAAS;IACrD,OAAO,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAM,CAAA;AAC3B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,KAAqB;IACjD,OAAO,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAqB;IACpD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI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EAAE;QACnC,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QAC5B,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACvB,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxB,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;QAC1B,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;KAC3B,CAAA;IAED,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,UAAC,KAAK,IAAK,OAAA,GAAG,CAAC,KAAK,CAAC,EAAV,CAAU,CAAC,CAAA;AACtE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,IAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IAChD,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AACvC,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import TextInput from './components/TextInput';
2
+ import Label from './components/Label';
3
+ import Button from './components/Button';
4
+ export { Label, Button, TextInput };
@@ -0,0 +1,5 @@
1
+ import TextInput from './components/TextInput';
2
+ import Label from './components/Label';
3
+ import Button from './components/Button';
4
+ export { Label, Button, TextInput };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,MAAM,MAAM,qBAAqB,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const String: {
2
+ name: string;
3
+ };
@@ -0,0 +1,5 @@
1
+ // this string file use for creating a custom string
2
+ export var String = {
3
+ name: 'Farm React',
4
+ };
5
+ //# sourceMappingURL=en.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/strings/en.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,MAAM,CAAC,IAAM,MAAM,GAAG;IACpB,IAAI,EAAE,YAAY;CACnB,CAAA"}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/strings/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,49 +1,58 @@
1
1
  {
2
2
  "name": "farm-react",
3
- "version": "1.0.3",
4
- "main": "dist/index.umd.js",
5
- "module": "dist/index.es.js",
6
- "types": "dist/index.d.ts",
7
- "type": "module",
3
+ "version": "1.0.6",
4
+ "description": "",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "scripts": {
9
+ "prepare": "npm run build",
10
+ "prepublishOnly": "npm run test && npm run prettier && npm run lint",
11
+ "build": "npm run build:esm && npm run build:cjs",
12
+ "build:esm": "tsc",
13
+ "build:cjs": "tsc --module commonjs --outDir dist/cjs",
14
+ "test": "jest --config jestconfig.json",
15
+ "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
16
+ "prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\""
17
+ },
18
+ "peerDependencies": {
19
+ "react": ">=16"
20
+ },
21
+ "author": "",
22
+ "license": "ISC",
8
23
  "files": [
9
- "dist"
24
+ "dist",
25
+ "LICENSE",
26
+ "README.md"
10
27
  ],
11
- "preDependencies": {
12
- "react": "^19.1.1",
13
- "react-dom": "^19.1.1"
28
+ "keywords": [
29
+ "react",
30
+ "typescript",
31
+ "awesome-project"
32
+ ],
33
+ "devDependencies": {
34
+ "@testing-library/react": "^16.0.0",
35
+ "@types/jest": "^29.5.12",
36
+ "@types/react": "^18.3.3",
37
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
38
+ "@typescript-eslint/parser": "^7.15.0",
39
+ "eslint": "^8.57.0",
40
+ "eslint-config-prettier": "^9.1.0",
41
+ "eslint-plugin-prettier": "^5.1.3",
42
+ "eslint-plugin-react": "^7.34.3",
43
+ "eslint-plugin-react-hooks": "^4.6.2",
44
+ "jest": "^29.7.0",
45
+ "jest-canvas-mock": "^2.5.2",
46
+ "jest-environment-jsdom": "^29.7.0",
47
+ "prettier": "^3.3.2",
48
+ "react": "^18.3.1",
49
+ "react-dom": "^18.3.1",
50
+ "ts-jest": "^29.1.5",
51
+ "typescript": "^5.5.3"
14
52
  },
15
53
  "dependencies": {
16
- "@types/node": "^24.3.0",
17
- "bootstrap": "5.3.7",
18
- "react": "^19.1.1",
54
+ "clsx": "^2.1.1",
19
55
  "react-bootstrap": "^2.10.10",
20
- "react-dom": "^19.1.1",
21
- "react-router": "^7.8.1",
22
- "scss": "^0.2.4"
23
- },
24
- "devDependencies": {
25
- "@eslint/js": "^9.33.0",
26
- "@rollup/plugin-commonjs": "^28.0.6",
27
- "@rollup/plugin-node-resolve": "^16.0.1",
28
- "@rollup/plugin-typescript": "^12.1.4",
29
- "@types/react": "^19.1.10",
30
- "@types/react-dom": "^19.1.7",
31
- "@vitejs/plugin-react": "^5.0.0",
32
- "eslint": "^9.33.0",
33
- "eslint-plugin-react-hooks": "^5.2.0",
34
- "eslint-plugin-react-refresh": "^0.4.20",
35
- "globals": "^16.3.0",
36
- "rollup": "^4.46.2",
37
- "rollup-plugin-peer-deps-external": "^2.2.4",
38
- "sass-embedded": "^1.90.0",
39
- "typescript": "~5.8.3",
40
- "typescript-eslint": "^8.39.1",
41
- "vite": "^7.1.2",
42
- "vite-plugin-dts": "^4.5.4"
43
- },
44
- "scripts": {
45
- "dev": "vite",
46
- "build": "vite build",
47
- "preview": "vite preview"
56
+ "react-router": "^7.8.2"
48
57
  }
49
- }
58
+ }