esewa-ui-library 1.0.1
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 +1774 -0
- package/dist/@types/index.d.ts +61 -0
- package/dist/components/AlertCard/eSewaAlertCard.d.ts +18 -0
- package/dist/components/AppBar/eSewaAppbar.d.ts +15 -0
- package/dist/components/Button/eSewaButton.d.ts +19 -0
- package/dist/components/Card/eSewaCard.d.ts +7 -0
- package/dist/components/Carousel/eSewaCarousel.d.ts +15 -0
- package/dist/components/CheckBox/eSewaCheckbox.d.ts +11 -0
- package/dist/components/Chip/eSewaChipGroup.d.ts +15 -0
- package/dist/components/DatePicker-native/eSewaDatePicker.d.ts +25 -0
- package/dist/components/Datepicker/eSewaDatePicker.d.ts +18 -0
- package/dist/components/Dialog/eSewaDialog.d.ts +18 -0
- package/dist/components/Divider/eSewaDivider.d.ts +12 -0
- package/dist/components/FullPageLoadingScreen/EsewaFullPageLoadingScreen.d.ts +6 -0
- package/dist/components/Grid/eSewaGrid.d.ts +14 -0
- package/dist/components/Icon/esIcon.d.ts +10 -0
- package/dist/components/Image/eSewaImage.d.ts +12 -0
- package/dist/components/InputFeild/eSewaInputFeild.d.ts +23 -0
- package/dist/components/InputFeildTextArea/eSewaInputFeildTextArea.d.ts +17 -0
- package/dist/components/MultiSelect/eSewaMultiSelect.d.ts +12 -0
- package/dist/components/NativeSelect/eSewaSelectNative.d.ts +19 -0
- package/dist/components/NepaliDatepicker/eSewaNepaliDatepicker.d.ts +10 -0
- package/dist/components/Radio/eSewaRadio.d.ts +12 -0
- package/dist/components/Rating/eSewaRating.d.ts +9 -0
- package/dist/components/ReactSelect/eSewaSelect.d.ts +19 -0
- package/dist/components/SanitizeHtml/eSewaSanitizeHtml.d.ts +6 -0
- package/dist/components/ScrollVIew/eSewaScrolView.d.ts +10 -0
- package/dist/components/Skeleton/eSewaSkeleton.d.ts +11 -0
- package/dist/components/Tag/eSewaTag.d.ts +11 -0
- package/dist/components/Tooltip/eSewaToolip.d.ts +8 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +1 -0
- package/dist/hooks/useMessage/useMessage.d.ts +9 -0
- package/dist/hooks/useSessionStorage/useSessionStorage.d.ts +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +7919 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +7890 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/pages/componentTesting/ComponentTesting.d.ts +3 -0
- package/dist/pages/confirmationPage/eSewaConfirmationPage.d.ts +19 -0
- package/dist/pages/demoOrderDetail/orderDetails.d.ts +10 -0
- package/dist/pages/demoProductDetail/productDetail.d.ts +17 -0
- package/dist/pages/demoProductListing/productList.d.ts +4 -0
- package/dist/pages/normalPayment/normalPayment.d.ts +4 -0
- package/dist/pages/productPayment/ProductPayemnt.d.ts +3 -0
- package/dist/pages/productPayment/additionalDetails/AdditionalDetails.d.ts +3 -0
- package/dist/pages/productPayment/comfirmation/Confirmation.d.ts +19 -0
- package/dist/pages/productPayment/commissionDetails/CommissionCard.d.ts +8 -0
- package/dist/pages/productPayment/interface/index.d.ts +40 -0
- package/dist/pages/productPayment/paymentDetails/PaymentDetails.d.ts +3 -0
- package/dist/provider/eSewaPaymentProvider.d.ts +16 -0
- package/dist/provider/eSewaProvider.d.ts +21 -0
- package/dist/provider/eSewaThemeProvider.d.ts +4 -0
- package/dist/services/eSewaService.d.ts +4 -0
- package/dist/theme/borderRadius.d.ts +10 -0
- package/dist/theme/colors.d.ts +349 -0
- package/dist/theme/fontSize.d.ts +17 -0
- package/dist/theme/index.d.ts +645 -0
- package/dist/theme/shadow.d.ts +32 -0
- package/dist/theme/spacing.d.ts +19 -0
- package/dist/theme/values.d.ts +22 -0
- package/dist/utils/index.d.ts +9 -0
- package/package.json +88 -0
- package/src/styles/fonts/es-icon/es-font-icon.eot +0 -0
- package/src/styles/fonts/es-icon/es-font-icon.svg +598 -0
- package/src/styles/fonts/es-icon/es-font-icon.ttf +0 -0
- package/src/styles/fonts/es-icon/es-font-icon.woff +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const titleCase: (str: string) => string;
|
|
2
|
+
export declare const revertIgnoredCase: (str: string) => string;
|
|
3
|
+
export declare const formatText: (text: string) => string | undefined;
|
|
4
|
+
export declare const formatAmount: (amount: number | undefined) => string;
|
|
5
|
+
declare type CallbackFunction = (...args: any[]) => void;
|
|
6
|
+
export declare const debounce: (callback: CallbackFunction, wait?: number) => CallbackFunction;
|
|
7
|
+
export declare const reverseCamelCase: (str: string) => string;
|
|
8
|
+
export declare const reverseSnakeCase: (str: string) => string;
|
|
9
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "esewa-ui-library",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "UI Library for eSewa Mini App",
|
|
5
|
+
"author": "eSewa Limited",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "eSewa Limited/esewa-ui-library",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.tsx",
|
|
11
|
+
"style": "src/index.css",
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=10"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "microbundle-crl --no-compress --format modern,cjs --css-modules false --external react,react-dom && npm run build:scss && npm run minify:css",
|
|
17
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs --css-modules false --external react,react-dom && npm link",
|
|
18
|
+
"build:scss": "sass src/styles/index.scss dist/index.css --no-source-map",
|
|
19
|
+
"minify:css": "cleancss -o dist/index.css dist/index.css",
|
|
20
|
+
"clean-modules": "rimraf node_modules",
|
|
21
|
+
"clean-dist": "rimraf dist",
|
|
22
|
+
"clean": "rimraf dist npm-debug.log* yarn-error.log*",
|
|
23
|
+
"prepare": "run-s build",
|
|
24
|
+
"test": "run-s test:unit test:lint test:build",
|
|
25
|
+
"test:build": "run-s build",
|
|
26
|
+
"test:lint": "eslint .",
|
|
27
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
28
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
29
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
30
|
+
"deploy": "gh-pages -d example/build",
|
|
31
|
+
"watch": "npm run build && npm link",
|
|
32
|
+
"publish:package": "npm run clean-dist && npm run build && npm publish --access public",
|
|
33
|
+
"publish:local": "npm run clean-dist && npm run build && npm publish --registry http://localhost:4873/",
|
|
34
|
+
"unpublish:local": "npm unpublish esewa-ui-library --registry http://localhost:4873/ --force"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"date-fns": "2.28.0",
|
|
38
|
+
"react": ">=18.2.0",
|
|
39
|
+
"react-dom": ">=18.2.0",
|
|
40
|
+
"react-date-range": "1.4.0",
|
|
41
|
+
"react-datepicker": "^7.5.0",
|
|
42
|
+
"styled-components": "^6.1.15"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
|
|
46
|
+
"@testing-library/jest-dom": "^4.2.4",
|
|
47
|
+
"@testing-library/react": "^9.5.0",
|
|
48
|
+
"@testing-library/user-event": "^7.2.1",
|
|
49
|
+
"@types/jest": "^25.1.4",
|
|
50
|
+
"@types/node": "^12.12.38",
|
|
51
|
+
"@types/react": "^16.9.27",
|
|
52
|
+
"@types/react-dom": "^16.9.7",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
54
|
+
"@typescript-eslint/parser": "^2.26.0",
|
|
55
|
+
"babel-eslint": "^10.0.3",
|
|
56
|
+
"clean-css-cli": "^5.6.3",
|
|
57
|
+
"cross-env": "^7.0.2",
|
|
58
|
+
"eslint": "^6.8.0",
|
|
59
|
+
"eslint-config-prettier": "^6.7.0",
|
|
60
|
+
"eslint-config-standard": "^14.1.0",
|
|
61
|
+
"eslint-config-standard-react": "^9.2.0",
|
|
62
|
+
"eslint-plugin-import": "^2.18.2",
|
|
63
|
+
"eslint-plugin-node": "^11.0.0",
|
|
64
|
+
"eslint-plugin-prettier": "^3.1.1",
|
|
65
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
66
|
+
"eslint-plugin-react": "^7.17.0",
|
|
67
|
+
"eslint-plugin-standard": "^4.0.1",
|
|
68
|
+
"gh-pages": "5.0.0",
|
|
69
|
+
"microbundle-crl": "^0.13.10",
|
|
70
|
+
"npm-run-all": "^4.1.5",
|
|
71
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
72
|
+
"prettier": "^2.0.4",
|
|
73
|
+
"react-scripts": "^5.0.1",
|
|
74
|
+
"typescript": "^3.7.5",
|
|
75
|
+
"nepali-datepicker-reactjs": "^1.1.7",
|
|
76
|
+
"react-dropdown-select": "^4.11.4",
|
|
77
|
+
"react-top-loading-bar": "^2.3.1"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"dist",
|
|
81
|
+
"src/styles/fonts/es-icon"
|
|
82
|
+
],
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"mini-css-extract-plugin": "^2.9.2",
|
|
85
|
+
"sass": "^1.85.0",
|
|
86
|
+
"dompurify": "^3.2.4"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
Binary file
|