@react-pakistan/util-functions 1.24.64 → 1.24.66

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 (110) hide show
  1. package/README.md +6 -3
  2. package/api/stellar-solutions/app-user/index.d.ts +63 -14
  3. package/api/stellar-solutions/app-user/index.js +106 -52
  4. package/api/stellar-solutions/bank/index.d.ts +65 -16
  5. package/api/stellar-solutions/bank/index.js +115 -65
  6. package/api/stellar-solutions/branch/index.d.ts +64 -15
  7. package/api/stellar-solutions/branch/index.js +119 -65
  8. package/api/stellar-solutions/company/index.d.ts +58 -24
  9. package/api/stellar-solutions/company/index.js +106 -78
  10. package/api/stellar-solutions/company-report/index.d.ts +12 -5
  11. package/api/stellar-solutions/company-report/index.js +12 -7
  12. package/api/stellar-solutions/contact/index.d.ts +54 -20
  13. package/api/stellar-solutions/contact/index.js +109 -88
  14. package/api/stellar-solutions/currency/index.d.ts +63 -14
  15. package/api/stellar-solutions/currency/index.js +113 -61
  16. package/api/stellar-solutions/customer/index.d.ts +70 -28
  17. package/api/stellar-solutions/customer/index.js +131 -101
  18. package/api/stellar-solutions/expense/index.d.ts +58 -22
  19. package/api/stellar-solutions/expense/index.js +128 -92
  20. package/api/stellar-solutions/expense-category/index.d.ts +58 -22
  21. package/api/stellar-solutions/expense-category/index.js +125 -86
  22. package/api/stellar-solutions/lead/index.js +0 -1
  23. package/api/stellar-solutions/menu-order/index.d.ts +29 -7
  24. package/api/stellar-solutions/menu-order/index.js +74 -27
  25. package/api/stellar-solutions/payment/index.d.ts +62 -27
  26. package/api/stellar-solutions/payment/index.js +144 -123
  27. package/api/stellar-solutions/payment-mode/index.d.ts +44 -12
  28. package/api/stellar-solutions/payment-mode/index.js +115 -49
  29. package/api/stellar-solutions/preference/index.d.ts +14 -3
  30. package/api/stellar-solutions/preference/index.js +44 -14
  31. package/api/stellar-solutions/product/index.d.ts +46 -31
  32. package/api/stellar-solutions/product/index.js +142 -113
  33. package/api/stellar-solutions/product-category/index.d.ts +44 -27
  34. package/api/stellar-solutions/product-category/index.js +123 -87
  35. package/api/stellar-solutions/profile/index.d.ts +48 -17
  36. package/api/stellar-solutions/profile/index.js +124 -65
  37. package/api/stellar-solutions/quote-invoice/index.d.ts +67 -8
  38. package/api/stellar-solutions/quote-invoice/index.js +123 -57
  39. package/api/stellar-solutions/quote-invoice-report/index.d.ts +12 -5
  40. package/api/stellar-solutions/quote-invoice-report/index.js +10 -5
  41. package/api/stellar-solutions/tax/index.d.ts +46 -14
  42. package/api/stellar-solutions/tax/index.js +135 -63
  43. package/api/stellar-solutions/type.d.ts +292 -177
  44. package/api/stellar-solutions/type.js +93 -1
  45. package/constants/countries-timezones.js +0 -1
  46. package/constants/currencies.js +0 -1
  47. package/general/basic-get.js +22 -21
  48. package/general/basic-post.js +19 -18
  49. package/general/calculate-pages.js +3 -1
  50. package/general/check-even-odd-length.js +3 -2
  51. package/general/delete-image-from-private-supabase.js +0 -1
  52. package/general/delete-image-from-public-supabase.js +0 -1
  53. package/general/dynamic-page-limit.js +3 -2
  54. package/general/enum-to-text.js +7 -4
  55. package/general/fetch-data.js +0 -1
  56. package/general/fetch-supabase-image.js +0 -1
  57. package/general/fetch-supabase-private-assets.js +15 -14
  58. package/general/format-date.js +8 -8
  59. package/general/format-number.js +3 -2
  60. package/general/format-time.js +3 -2
  61. package/general/full-year-range.js +2 -2
  62. package/general/generate-blog-schema.d.ts +3 -3
  63. package/general/generate-blog-schema.js +20 -13
  64. package/general/generate-breadcrumb-schema.d.ts +4 -4
  65. package/general/generate-breadcrumb-schema.js +9 -10
  66. package/general/generate-faq-schema.d.ts +5 -5
  67. package/general/generate-faq-schema.js +18 -11
  68. package/general/generate-grid.js +0 -1
  69. package/general/generate-organization-schema.d.ts +3 -3
  70. package/general/generate-organization-schema.js +25 -18
  71. package/general/get-available-page-limit.js +2 -2
  72. package/general/get-calendar-dates.js +14 -3
  73. package/general/get-full-name.d.ts +1 -1
  74. package/general/get-number-of-days-in-month.d.ts +1 -1
  75. package/general/get-pathname.js +4 -1
  76. package/general/is-odd.js +1 -1
  77. package/general/is-previous-button-disabled.js +3 -1
  78. package/general/parse-frontmatter.js +0 -1
  79. package/general/remove-data-image-prefix.js +3 -2
  80. package/general/repeat-times.js +0 -1
  81. package/general/resolve-current-date.js +1 -2
  82. package/general/resolve-grid.js +3 -2
  83. package/general/slugify.js +11 -9
  84. package/general/text-to-enum.js +6 -1
  85. package/general/text-to-sentence-case.js +3 -1
  86. package/general/time-out.js +5 -4
  87. package/general/truncate-text.js +3 -1
  88. package/general/upload-blob-to-private-supabase.js +2 -2
  89. package/general/upload-blob-to-public-supabase.js +2 -2
  90. package/general/upload-image-to-private-supabase.js +2 -2
  91. package/general/upload-image-to-public-supabase.js +2 -2
  92. package/general/validate-email.js +1 -1
  93. package/hooks/use-fetch.js +11 -12
  94. package/hooks/use-module-entity.js +5 -6
  95. package/hooks/use-sticky.js +0 -1
  96. package/hooks/with-seo.d.ts +1 -1
  97. package/hooks/with-seo.js +3 -4
  98. package/local-storage/get-storage-value.js +0 -1
  99. package/package.json +22 -13
  100. package/setupTests.js +1 -2
  101. package/storybook/generate-sitemap.js +0 -1
  102. package/storybook/preview.js +1 -4
  103. package/storybook/react-design-story-script.js +0 -2
  104. package/storybook/react-emoji-collection.js +8 -6
  105. package/storybook/react-emoji-story-script.js +0 -2
  106. package/storybook/react-icon-collection.js +4 -3
  107. package/storybook/react-icon-story-script.js +0 -2
  108. package/storybook/react-logo-collection.js +4 -3
  109. package/storybook/react-logo-story-script.js +0 -2
  110. package/storybook/responsive-component.js +14 -7
@@ -11,7 +11,6 @@
11
11
  /** End file docs */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.generateReactLogos = void 0;
14
- /* eslint-disable @typescript-eslint/no-explicit-any */
15
14
  var react_logo_story_template_1 = require("./react-logo-story-template");
16
15
  var generateReactLogos = function (fs) {
17
16
  var logoDir = './assets/';
@@ -32,8 +31,10 @@ var generateReactLogos = function (fs) {
32
31
  logoListOutput += " { logo: Logos.".concat(level1FileName.split('.')[0], ", name: '").concat(level1FileName.split('.')[0], "' },\n");
33
32
  });
34
33
  logoListOutput += "];\n";
35
- var categoryName = fileName.split('-')
36
- .map(function (str) { return str[0].toUpperCase() + str.slice(1); }).join('');
34
+ var categoryName = fileName
35
+ .split('-')
36
+ .map(function (str) { return str[0].toUpperCase() + str.slice(1); })
37
+ .join('');
37
38
  var story = (0, react_logo_story_template_1.reactLogoStoryTemplate)(categoryName, fileName);
38
39
  fs.writeFileSync("".concat(saveDir, "/").concat(fileName, ".ts"), logoListOutput);
39
40
  fs.writeFileSync("".concat(saveDir, "/").concat(fileName, ".story.tsx"), story);
@@ -10,7 +10,6 @@
10
10
  /** End file docs */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.generateReactLogoScript = void 0;
13
- /* eslint-disable @typescript-eslint/no-explicit-any */
14
13
  var generateReactLogoScript = function (fs) {
15
14
  var svgDir = './assets/';
16
15
  var saveDir = './scripts/';
@@ -21,7 +20,6 @@ var generateReactLogoScript = function (fs) {
21
20
  return;
22
21
  var flowArray = folderName.split('-');
23
22
  var flow = flowArray[flowArray.length - 1];
24
- // eslint-disable-next-line max-len
25
23
  scriptOutput += "svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-".concat(flow, ".js -d src/").concat(folderName, " --ext tsx assets/").concat(folderName, "\n");
26
24
  });
27
25
  fs.writeFileSync("".concat(saveDir, "all-scripts.sh"), scriptOutput);
@@ -4,13 +4,20 @@ exports.responsiveComponent = void 0;
4
4
  var theme_1 = require("./theme");
5
5
  var responsiveComponent = function (_a) {
6
6
  var $desktop = _a.$desktop, $laptop = _a.$laptop, $laptopL = _a.$laptopL, $mobileL = _a.$mobileL, $mobileM = _a.$mobileM, $mobileS = _a.$mobileS, $tablet = _a.$tablet;
7
- var mobileSToReturn = $mobileS && "\n @media ".concat(theme_1.theme.breakpoints.mobileS, " {\n ").concat($mobileS, "\n }\n ");
8
- var mobileMToReturn = $mobileM && "\n @media ".concat(theme_1.theme.breakpoints.mobileM, " {\n ").concat($mobileM, "\n }\n ");
9
- var mobileLToReturn = $mobileL && "\n @media ".concat(theme_1.theme.breakpoints.mobileL, " {\n ").concat($mobileL, "\n }\n ");
10
- var tabletToReturn = $tablet && "\n @media ".concat(theme_1.theme.breakpoints.tablet, " {\n ").concat($tablet, "\n }\n ");
11
- var laptopToReturn = $laptop && "\n @media ".concat(theme_1.theme.breakpoints.laptop, " {\n ").concat($laptop, "\n }\n ");
12
- var laptopLToReturn = $laptopL && "\n @media ".concat(theme_1.theme.breakpoints.laptopL, " {\n ").concat($laptopL, "\n }\n ");
13
- var desktopToReturn = $desktop && "\n @media ".concat(theme_1.theme.breakpoints.desktop, " {\n ").concat($desktop, "\n }\n ");
7
+ var mobileSToReturn = $mobileS &&
8
+ "\n @media ".concat(theme_1.theme.breakpoints.mobileS, " {\n ").concat($mobileS, "\n }\n ");
9
+ var mobileMToReturn = $mobileM &&
10
+ "\n @media ".concat(theme_1.theme.breakpoints.mobileM, " {\n ").concat($mobileM, "\n }\n ");
11
+ var mobileLToReturn = $mobileL &&
12
+ "\n @media ".concat(theme_1.theme.breakpoints.mobileL, " {\n ").concat($mobileL, "\n }\n ");
13
+ var tabletToReturn = $tablet &&
14
+ "\n @media ".concat(theme_1.theme.breakpoints.tablet, " {\n ").concat($tablet, "\n }\n ");
15
+ var laptopToReturn = $laptop &&
16
+ "\n @media ".concat(theme_1.theme.breakpoints.laptop, " {\n ").concat($laptop, "\n }\n ");
17
+ var laptopLToReturn = $laptopL &&
18
+ "\n @media ".concat(theme_1.theme.breakpoints.laptopL, " {\n ").concat($laptopL, "\n }\n ");
19
+ var desktopToReturn = $desktop &&
20
+ "\n @media ".concat(theme_1.theme.breakpoints.desktop, " {\n ").concat($desktop, "\n }\n ");
14
21
  return "\n ".concat(mobileSToReturn, "\n ").concat(mobileMToReturn, "\n ").concat(mobileLToReturn, "\n ").concat(tabletToReturn, "\n ").concat(laptopToReturn, "\n ").concat(laptopLToReturn, "\n ").concat(desktopToReturn, "\n ");
15
22
  };
16
23
  exports.responsiveComponent = responsiveComponent;