@admin-layout/tailwind-travel-pro 12.2.5-alpha.8 → 12.2.5-alpha.9
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import React,{useCallback,useMemo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {renderDynamicIcon}from'@admin-layout/tailwind-design-pro/lib/helpers/DynamicIcon.js';import {useWindowSize}from'
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import React,{useCallback,useMemo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {renderDynamicIcon}from'@admin-layout/tailwind-design-pro/lib/helpers/DynamicIcon.js';import {useWindowSize}from'@admin-layout/tailwind-ui';import {Carousel,CarouselContent,CarouselItem,CarouselPrevious,CarouselNext}from'@admin-layout/tailwind-ui/shardui/carousel.js';// Helper function to merge arrays
|
|
2
2
|
const mergeArrays = (arr1, arr2, keyToMapIcons) => {
|
|
3
3
|
const iconMap = new Map(arr2.map(icon => [icon.split('.').pop(), icon]));
|
|
4
4
|
return arr1.filter(item => iconMap.has(item[keyToMapIcons])).map(item => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-travel-pro",
|
|
3
|
-
"version": "12.2.5-alpha.
|
|
3
|
+
"version": "12.2.5-alpha.9",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@admin-layout/tailwind-design-pro": "12.2.5-alpha.
|
|
25
|
-
"@admin-layout/tailwind-ui": "12.2.5-alpha.
|
|
24
|
+
"@admin-layout/tailwind-design-pro": "12.2.5-alpha.9",
|
|
25
|
+
"@admin-layout/tailwind-ui": "12.2.5-alpha.9",
|
|
26
26
|
"@cdmbase/react-splide": "^0.7.12",
|
|
27
27
|
"@react-google-maps/api": "^2.20.7",
|
|
28
28
|
"@vis.gl/react-google-maps": "^1.5.4",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"typescript": {
|
|
47
47
|
"definition": "lib/index.d.ts"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5137d74583f34c57b179f61d76cf1fe5f90efb03"
|
|
50
50
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {useState,useEffect}from'react';function useWindowSize() {
|
|
2
|
-
const [windowSize, setWindowSize] = useState({
|
|
3
|
-
width: typeof window !== 'undefined' ? window.innerWidth : 0,
|
|
4
|
-
// Check if window is defined
|
|
5
|
-
height: typeof window !== 'undefined' ? window.innerHeight : 0 // Check if window is defined
|
|
6
|
-
});
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
function handleResize() {
|
|
9
|
-
setWindowSize({
|
|
10
|
-
width: window.innerWidth,
|
|
11
|
-
height: window.innerHeight
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
// Add event listener for window resize
|
|
15
|
-
window.addEventListener('resize', handleResize);
|
|
16
|
-
// Cleanup the event listener on component unmount
|
|
17
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
18
|
-
}, []);
|
|
19
|
-
return windowSize;
|
|
20
|
-
}export{useWindowSize};//# sourceMappingURL=useWindowSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize.js","sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":[null],"names":[],"mappings":"gDAEgB,aAAa,GAAA;AACzB,EAAA,MAAA,CAAA,UAAO,EAAU,iBAAgB;AAC7B,IAAA,KAAA,EAAA,OAAO,MAAO,KAAM,WAAK,GAAA,MAAc,CAAA,cAAiB;AACxD;AACH,IAAA,MAAE,EAAA,OAAA,MAAA,KAAA,WAAA,GAAA,MAAA,CAAA,WAAA,GAAA,CAAA;IAEH;AACI,EAAA,SAAA,CAAA,MAAS;AACL,IAAA,SAAA,YAAa,GAAC;mBACV,CAAA;qBACA,CAAM,UAAS;AAClB,QAAA,MAAC,EAAC,MAAA,CAAA;QACP;;AAGA;UAEA,CAAA,gBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;;IAEJ,OAAO,MAAA,MAAA,CAAA,mBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;AAEP,EAAA,CAAA,EAAA,EAAA,CAAA;AACJ,EAAC,OAAA,UAAA;"}
|