@redneckz/wildless-cms-uni-blocks 0.14.95 → 0.14.97
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/bundle/bundle.umd.js +1 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js +2 -7
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js +2 -7
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js +2 -7
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js +2 -7
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -10
- package/package.json +1 -1
- package/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -10
|
@@ -3,16 +3,11 @@ exports.StickyBottomMenuItem = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
-
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
7
6
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
8
7
|
const style_1 = require("../../utils/style");
|
|
9
8
|
exports.StickyBottomMenuItem = (0, uni_jsx_1.JSX)(({ isActive, item, onClick }) => {
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
? item?.href
|
|
13
|
-
: item?.href?.replace(ProjectSettings_1.projectSettings.BASE_PATH, '');
|
|
14
|
-
const link = (0, useLink_1.useLink)({ isRemote: isAnotherPortal });
|
|
15
|
-
const { href, onClick: handleClick } = link({ href: _href, onClick });
|
|
9
|
+
const link = (0, useLink_1.useLink)({ isRemote: true });
|
|
10
|
+
const { href, onClick: handleClick } = link({ href: item?.href, onClick });
|
|
16
11
|
return ((0, jsx_runtime_1.jsxs)("a", { className: (0, style_1.style)(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), href: href, target: "_self", title: item?.title || '', onClick: handleClick, children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] }));
|
|
17
12
|
});
|
|
18
13
|
//# sourceMappingURL=StickyBottomMenuItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyBottomMenuItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenuItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"StickyBottomMenuItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenuItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,iDAA8C;AAC9C,6CAA0C;AAS7B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9B,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACzC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAE3E,OAAO,CACL,+BACE,SAAS,EAAE,IAAA,aAAK,EACd,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EACpD,2EAA2E,CAC5E,EACD,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,OAAO,EACd,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,EACxB,OAAO,EAAE,WAAW,aAEpB,uBAAC,WAAI,IACH,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EACtB,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,GACzC,EACD,IAAI,EAAE,KAAK,IAAI,EAAE,IAChB,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
-
import { projectSettings } from '../../ProjectSettings.js';
|
|
5
4
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
6
5
|
import { style } from '../../utils/style.js';
|
|
7
6
|
export const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
? item?.href
|
|
11
|
-
: item?.href?.replace(projectSettings.BASE_PATH, '');
|
|
12
|
-
const link = useLink({ isRemote: isAnotherPortal });
|
|
13
|
-
const { href, onClick: handleClick } = link({ href: _href, onClick });
|
|
7
|
+
const link = useLink({ isRemote: true });
|
|
8
|
+
const { href, onClick: handleClick } = link({ href: item?.href, onClick });
|
|
14
9
|
return (_jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), href: href, target: "_self", title: item?.title || '', onClick: handleClick, children: [_jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] }));
|
|
15
10
|
});
|
|
16
11
|
//# sourceMappingURL=StickyBottomMenuItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyBottomMenuItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenuItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StickyBottomMenuItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenuItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAS1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9B,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACzC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAE3E,OAAO,CACL,aACE,SAAS,EAAE,KAAK,CACd,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EACpD,2EAA2E,CAC5E,EACD,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,OAAO,EACd,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,EACxB,OAAO,EAAE,WAAW,aAEpB,KAAC,IAAI,IACH,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EACtB,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,GACzC,EACD,IAAI,EAAE,KAAK,IAAI,EAAE,IAChB,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
4
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
5
4
|
import { style } from '../../utils/style';
|
|
6
5
|
import type { MenuItem } from './StickyBottomMenuContent';
|
|
@@ -13,15 +12,8 @@ interface StickyBottomMenuItemProps {
|
|
|
13
12
|
|
|
14
13
|
export const StickyBottomMenuItem = JSX<StickyBottomMenuItemProps>(
|
|
15
14
|
({ isActive, item, onClick }) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const _href = !projectSettings.BASE_PATH
|
|
20
|
-
? item?.href
|
|
21
|
-
: item?.href?.replace(projectSettings.BASE_PATH, '');
|
|
22
|
-
|
|
23
|
-
const link = useLink({ isRemote: isAnotherPortal });
|
|
24
|
-
const { href, onClick: handleClick } = link({ href: _href, onClick });
|
|
15
|
+
const link = useLink({ isRemote: true });
|
|
16
|
+
const { href, onClick: handleClick } = link({ href: item?.href, onClick });
|
|
25
17
|
|
|
26
18
|
return (
|
|
27
19
|
<a
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
4
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
5
4
|
import { style } from '../../utils/style';
|
|
6
5
|
import type { MenuItem } from './StickyBottomMenuContent';
|
|
@@ -13,15 +12,8 @@ interface StickyBottomMenuItemProps {
|
|
|
13
12
|
|
|
14
13
|
export const StickyBottomMenuItem = JSX<StickyBottomMenuItemProps>(
|
|
15
14
|
({ isActive, item, onClick }) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const _href = !projectSettings.BASE_PATH
|
|
20
|
-
? item?.href
|
|
21
|
-
: item?.href?.replace(projectSettings.BASE_PATH, '');
|
|
22
|
-
|
|
23
|
-
const link = useLink({ isRemote: isAnotherPortal });
|
|
24
|
-
const { href, onClick: handleClick } = link({ href: _href, onClick });
|
|
15
|
+
const link = useLink({ isRemote: true });
|
|
16
|
+
const { href, onClick: handleClick } = link({ href: item?.href, onClick });
|
|
25
17
|
|
|
26
18
|
return (
|
|
27
19
|
<a
|