esewa-ui-library 1.0.3 → 1.0.4
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 +128 -13
- package/dist/@types/index.d.ts +8 -5
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/services/eSewaService.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -183,7 +183,7 @@ var StyledAppBar = styled.header.attrs(function (_ref) {
|
|
|
183
183
|
return {
|
|
184
184
|
titleposition: titleposition
|
|
185
185
|
};
|
|
186
|
-
})(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n .e-app-bar {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n background-color: var(--appbar-bg-top);\n padding: 7px 12px;\n position:
|
|
186
|
+
})(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n\n .e-app-bar {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n background-color: var(--appbar-bg-top);\n padding: 7px 12px;\n position: relative;\n height: 42px;\n // left: 0;\n // right: 0;\n gap: var(--values-value-8);\n\n &--nav-icon, &--close-icon {\n padding: 7px;\n color: var(--white);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n /* Title section */\n &--title-wrapper {\n display: flex;\n justify-content: ", ";\n align-items: center;\n width: 100%; // Ensures the title section takes full width to apply the alignment\n }\n\n &--title {\n display: flex;\n align-items: center;\n gap: 12px;\n overflow: hidden;\n // display: -webkit-box;\n // -webkit-line-clamp: 1;\n // line-clamp: 1;\n // -webkit-box-orient: vertical;\n }\n\n &--title-image img {\n width: 32px;\n object-fit: cover;\n // margin-left: -32px;\n background: var(--white);\n border: 1px solid var(--border);\n border-radius: var(--grid-borderradius-border-radius-xs);\n }\n\n &--title-label {\n color: var(--white);\n letter-spacing: 0.4px;\n font-size: var(--values-value-16);\n font-weight: 500;\n }\n }\n"])), function (props) {
|
|
187
187
|
return props.titleposition === 'left' ? 'flex-start' : props.titleposition === 'right' ? 'flex-end' : 'center';
|
|
188
188
|
});
|
|
189
189
|
var ESewaAppBar = function ESewaAppBar(_ref2) {
|
|
@@ -7694,7 +7694,7 @@ var CONNECT_APP = function CONNECT_APP(data) {
|
|
|
7694
7694
|
if (isiOS) {
|
|
7695
7695
|
var _window$webkit;
|
|
7696
7696
|
if ((_window$webkit = window.webkit) !== null && _window$webkit !== void 0 && _window$webkit.messageHandlers.iOSNative) {
|
|
7697
|
-
window.webkit.messageHandlers.iOSNative.
|
|
7697
|
+
window.webkit.messageHandlers.iOSNative.postMessage(data);
|
|
7698
7698
|
} else {
|
|
7699
7699
|
console.warn('iOS interface not available');
|
|
7700
7700
|
}
|
|
@@ -7702,11 +7702,10 @@ var CONNECT_APP = function CONNECT_APP(data) {
|
|
|
7702
7702
|
};
|
|
7703
7703
|
var requestFromMiniApp = function requestFromMiniApp(data, callbackKey, callback) {
|
|
7704
7704
|
var _window$webkit2, _window$webkit2$messa;
|
|
7705
|
-
if (window.Android) {
|
|
7705
|
+
if (window.Android && callbackKey in window.Android) {
|
|
7706
7706
|
window.Android[callbackKey] = callback;
|
|
7707
|
-
} else if ((_window$webkit2 = window.webkit) !== null && _window$webkit2 !== void 0 && (_window$webkit2$messa = _window$webkit2.messageHandlers) !== null && _window$webkit2$messa !== void 0 && _window$webkit2$messa.iOSNative) {
|
|
7708
|
-
window.
|
|
7709
|
-
window.miniAppResponse[callbackKey] = callback;
|
|
7707
|
+
} else if ((_window$webkit2 = window.webkit) !== null && _window$webkit2 !== void 0 && (_window$webkit2$messa = _window$webkit2.messageHandlers) !== null && _window$webkit2$messa !== void 0 && _window$webkit2$messa.iOSNative && callbackKey in window.webkit.messageHandlers.iOSNative) {
|
|
7708
|
+
window.webkit.messageHandlers.iOSNative[callbackKey] = callback;
|
|
7710
7709
|
}
|
|
7711
7710
|
CONNECT_APP(JSON.stringify(data));
|
|
7712
7711
|
};
|