@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.
- package/README.md +6 -3
- package/api/stellar-solutions/app-user/index.d.ts +63 -14
- package/api/stellar-solutions/app-user/index.js +106 -52
- package/api/stellar-solutions/bank/index.d.ts +65 -16
- package/api/stellar-solutions/bank/index.js +115 -65
- package/api/stellar-solutions/branch/index.d.ts +64 -15
- package/api/stellar-solutions/branch/index.js +119 -65
- package/api/stellar-solutions/company/index.d.ts +58 -24
- package/api/stellar-solutions/company/index.js +106 -78
- package/api/stellar-solutions/company-report/index.d.ts +12 -5
- package/api/stellar-solutions/company-report/index.js +12 -7
- package/api/stellar-solutions/contact/index.d.ts +54 -20
- package/api/stellar-solutions/contact/index.js +109 -88
- package/api/stellar-solutions/currency/index.d.ts +63 -14
- package/api/stellar-solutions/currency/index.js +113 -61
- package/api/stellar-solutions/customer/index.d.ts +70 -28
- package/api/stellar-solutions/customer/index.js +131 -101
- package/api/stellar-solutions/expense/index.d.ts +58 -22
- package/api/stellar-solutions/expense/index.js +128 -92
- package/api/stellar-solutions/expense-category/index.d.ts +58 -22
- package/api/stellar-solutions/expense-category/index.js +125 -86
- package/api/stellar-solutions/lead/index.js +0 -1
- package/api/stellar-solutions/menu-order/index.d.ts +29 -7
- package/api/stellar-solutions/menu-order/index.js +74 -27
- package/api/stellar-solutions/payment/index.d.ts +62 -27
- package/api/stellar-solutions/payment/index.js +144 -123
- package/api/stellar-solutions/payment-mode/index.d.ts +44 -12
- package/api/stellar-solutions/payment-mode/index.js +115 -49
- package/api/stellar-solutions/preference/index.d.ts +14 -3
- package/api/stellar-solutions/preference/index.js +44 -14
- package/api/stellar-solutions/product/index.d.ts +46 -31
- package/api/stellar-solutions/product/index.js +142 -113
- package/api/stellar-solutions/product-category/index.d.ts +44 -27
- package/api/stellar-solutions/product-category/index.js +123 -87
- package/api/stellar-solutions/profile/index.d.ts +48 -17
- package/api/stellar-solutions/profile/index.js +124 -65
- package/api/stellar-solutions/quote-invoice/index.d.ts +67 -8
- package/api/stellar-solutions/quote-invoice/index.js +123 -57
- package/api/stellar-solutions/quote-invoice-report/index.d.ts +12 -5
- package/api/stellar-solutions/quote-invoice-report/index.js +10 -5
- package/api/stellar-solutions/tax/index.d.ts +46 -14
- package/api/stellar-solutions/tax/index.js +135 -63
- package/api/stellar-solutions/type.d.ts +292 -177
- package/api/stellar-solutions/type.js +93 -1
- package/constants/countries-timezones.js +0 -1
- package/constants/currencies.js +0 -1
- package/general/basic-get.js +22 -21
- package/general/basic-post.js +19 -18
- package/general/calculate-pages.js +3 -1
- package/general/check-even-odd-length.js +3 -2
- package/general/delete-image-from-private-supabase.js +0 -1
- package/general/delete-image-from-public-supabase.js +0 -1
- package/general/dynamic-page-limit.js +3 -2
- package/general/enum-to-text.js +7 -4
- package/general/fetch-data.js +0 -1
- package/general/fetch-supabase-image.js +0 -1
- package/general/fetch-supabase-private-assets.js +15 -14
- package/general/format-date.js +8 -8
- package/general/format-number.js +3 -2
- package/general/format-time.js +3 -2
- package/general/full-year-range.js +2 -2
- package/general/generate-blog-schema.d.ts +3 -3
- package/general/generate-blog-schema.js +20 -13
- package/general/generate-breadcrumb-schema.d.ts +4 -4
- package/general/generate-breadcrumb-schema.js +9 -10
- package/general/generate-faq-schema.d.ts +5 -5
- package/general/generate-faq-schema.js +18 -11
- package/general/generate-grid.js +0 -1
- package/general/generate-organization-schema.d.ts +3 -3
- package/general/generate-organization-schema.js +25 -18
- package/general/get-available-page-limit.js +2 -2
- package/general/get-calendar-dates.js +14 -3
- package/general/get-full-name.d.ts +1 -1
- package/general/get-number-of-days-in-month.d.ts +1 -1
- package/general/get-pathname.js +4 -1
- package/general/is-odd.js +1 -1
- package/general/is-previous-button-disabled.js +3 -1
- package/general/parse-frontmatter.js +0 -1
- package/general/remove-data-image-prefix.js +3 -2
- package/general/repeat-times.js +0 -1
- package/general/resolve-current-date.js +1 -2
- package/general/resolve-grid.js +3 -2
- package/general/slugify.js +11 -9
- package/general/text-to-enum.js +6 -1
- package/general/text-to-sentence-case.js +3 -1
- package/general/time-out.js +5 -4
- package/general/truncate-text.js +3 -1
- package/general/upload-blob-to-private-supabase.js +2 -2
- package/general/upload-blob-to-public-supabase.js +2 -2
- package/general/upload-image-to-private-supabase.js +2 -2
- package/general/upload-image-to-public-supabase.js +2 -2
- package/general/validate-email.js +1 -1
- package/hooks/use-fetch.js +11 -12
- package/hooks/use-module-entity.js +5 -6
- package/hooks/use-sticky.js +0 -1
- package/hooks/with-seo.d.ts +1 -1
- package/hooks/with-seo.js +3 -4
- package/local-storage/get-storage-value.js +0 -1
- package/package.json +22 -13
- package/setupTests.js +1 -2
- package/storybook/generate-sitemap.js +0 -1
- package/storybook/preview.js +1 -4
- package/storybook/react-design-story-script.js +0 -2
- package/storybook/react-emoji-collection.js +8 -6
- package/storybook/react-emoji-story-script.js +0 -2
- package/storybook/react-icon-collection.js +4 -3
- package/storybook/react-icon-story-script.js +0 -2
- package/storybook/react-logo-collection.js +4 -3
- package/storybook/react-logo-story-script.js +0 -2
- 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
|
|
36
|
-
.
|
|
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 &&
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
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;
|