@fuf-stack/pixels 1.11.1 → 1.11.2
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/dist/Accordion/Accordion.cjs +0 -1
- package/dist/Accordion/Accordion.cjs.map +1 -1
- package/dist/Accordion/Accordion.d.cts +10 -10
- package/dist/Accordion/Accordion.d.cts.map +1 -1
- package/dist/Accordion/Accordion.d.ts +10 -10
- package/dist/Accordion/Accordion.d.ts.map +1 -1
- package/dist/Alert/Alert.cjs +0 -1
- package/dist/Alert/Alert.cjs.map +1 -1
- package/dist/Alert/Alert.d.cts +6 -6
- package/dist/Alert/Alert.d.cts.map +1 -1
- package/dist/Alert/Alert.d.ts +6 -6
- package/dist/Alert/Alert.d.ts.map +1 -1
- package/dist/Avatar/Avatar.cjs +0 -1
- package/dist/Avatar/Avatar.cjs.map +1 -1
- package/dist/Avatar/Avatar.d.cts +10 -10
- package/dist/Avatar/Avatar.d.ts +10 -10
- package/dist/AvatarGroup/AvatarGroup.cjs +0 -1
- package/dist/AvatarGroup/AvatarGroup.cjs.map +1 -1
- package/dist/Badge/Badge.cjs +0 -1
- package/dist/Badge/Badge.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.cjs +10 -11
- package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.cts +16 -16
- package/dist/Breadcrumb/Breadcrumb.d.ts +16 -16
- package/dist/Breadcrumb/Breadcrumb.js +10 -10
- package/dist/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/Button/Button.cjs +0 -1
- package/dist/Button/Button.cjs.map +1 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs +0 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.cjs +0 -1
- package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -1
- package/dist/Card/Card.cjs +1 -2
- package/dist/Card/Card.cjs.map +1 -1
- package/dist/Card/Card.d.cts +10 -10
- package/dist/Card/Card.d.ts +10 -10
- package/dist/Card/Card.js +1 -1
- package/dist/Card/Card.js.map +1 -1
- package/dist/Drawer/Drawer.cjs +0 -1
- package/dist/Drawer/Drawer.cjs.map +1 -1
- package/dist/Drawer/Drawer.d.cts +10 -10
- package/dist/Drawer/Drawer.d.ts +10 -10
- package/dist/Json/Json.cjs +30 -23
- package/dist/Json/Json.cjs.map +1 -1
- package/dist/Json/Json.d.cts.map +1 -1
- package/dist/Json/Json.d.ts.map +1 -1
- package/dist/Json/Json.js +30 -22
- package/dist/Json/Json.js.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.cjs +3 -4
- package/dist/Json/subcomponents/CopiedRenderer.cjs.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.js +3 -3
- package/dist/Json/subcomponents/CopiedRenderer.js.map +1 -1
- package/dist/Json/subcomponents/ErrorRenderer.cjs +0 -1
- package/dist/Json/subcomponents/ErrorRenderer.cjs.map +1 -1
- package/dist/Json/subcomponents/NullRenderer.cjs +0 -1
- package/dist/Json/subcomponents/NullRenderer.cjs.map +1 -1
- package/dist/Label/Label.cjs +0 -1
- package/dist/Label/Label.cjs.map +1 -1
- package/dist/Label/Label.d.cts +29 -29
- package/dist/Label/Label.d.cts.map +1 -1
- package/dist/Label/Label.d.ts +29 -29
- package/dist/Label/Label.d.ts.map +1 -1
- package/dist/Menu/Menu.cjs +1 -2
- package/dist/Menu/Menu.cjs.map +1 -1
- package/dist/Menu/Menu.d.cts +10 -10
- package/dist/Menu/Menu.d.cts.map +1 -1
- package/dist/Menu/Menu.d.ts +10 -10
- package/dist/Menu/Menu.d.ts.map +1 -1
- package/dist/Menu/Menu.js +1 -1
- package/dist/Menu/Menu.js.map +1 -1
- package/dist/Menu/VerticalDotsIcon.cjs +0 -1
- package/dist/Menu/VerticalDotsIcon.cjs.map +1 -1
- package/dist/Modal/Modal.cjs +0 -1
- package/dist/Modal/Modal.cjs.map +1 -1
- package/dist/Modal/Modal.d.cts +35 -35
- package/dist/Modal/Modal.d.cts.map +1 -1
- package/dist/Modal/Modal.d.ts +35 -35
- package/dist/Modal/Modal.d.ts.map +1 -1
- package/dist/Modal/ModalHost.cjs +0 -1
- package/dist/Modal/ModalHost.cjs.map +1 -1
- package/dist/Modal/modalStore.cjs +0 -1
- package/dist/Modal/modalStore.cjs.map +1 -1
- package/dist/Popover/Popover.cjs +1 -2
- package/dist/Popover/Popover.cjs.map +1 -1
- package/dist/Popover/Popover.d.cts +16 -16
- package/dist/Popover/Popover.d.ts +16 -16
- package/dist/Popover/Popover.js +1 -1
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Progress/Progress.cjs +0 -1
- package/dist/Progress/Progress.cjs.map +1 -1
- package/dist/Progress/Progress.d.cts +10 -10
- package/dist/Progress/Progress.d.cts.map +1 -1
- package/dist/Progress/Progress.d.ts +10 -10
- package/dist/Progress/Progress.d.ts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.cjs +1 -2
- package/dist/ProgressCircular/ProgressCircular.cjs.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.cts +43 -43
- package/dist/ProgressCircular/ProgressCircular.d.cts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.ts +43 -43
- package/dist/ProgressCircular/ProgressCircular.d.ts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.js +1 -1
- package/dist/ProgressCircular/ProgressCircular.js.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.cjs +0 -1
- package/dist/ScrollShadow/ScrollShadow.cjs.map +1 -1
- package/dist/SearchInput/SearchInput.cjs +8 -9
- package/dist/SearchInput/SearchInput.cjs.map +1 -1
- package/dist/SearchInput/SearchInput.d.cts +10 -10
- package/dist/SearchInput/SearchInput.d.ts +10 -10
- package/dist/SearchInput/SearchInput.js +8 -8
- package/dist/SearchInput/SearchInput.js.map +1 -1
- package/dist/Table/Table.cjs +0 -1
- package/dist/Table/Table.cjs.map +1 -1
- package/dist/Table/Table.d.cts +62 -62
- package/dist/Table/Table.d.cts.map +1 -1
- package/dist/Table/Table.d.ts +62 -62
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Tabs/Tabs.cjs +0 -1
- package/dist/Tabs/Tabs.cjs.map +1 -1
- package/dist/Toast/Toaster.cjs +0 -1
- package/dist/Toast/Toaster.cjs.map +1 -1
- package/dist/Toast/toast.cjs +0 -1
- package/dist/Toast/toast.cjs.map +1 -1
- package/dist/Tooltip/Tooltip.cjs +6 -7
- package/dist/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/Tooltip/Tooltip.d.cts +45 -45
- package/dist/Tooltip/Tooltip.d.cts.map +1 -1
- package/dist/Tooltip/Tooltip.d.ts +45 -45
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/hooks/useDebounce/useDebounce.cjs +0 -1
- package/dist/hooks/useDebounce/useDebounce.cjs.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs +0 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs +0 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs +0 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs +0 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsInitialRenderCycle.cjs","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef } from 'react';\n\n/**\n * A hook that returns true on initial render and false afterward.\n *\n * @returns {boolean} - True on initial render, false afterward\n */\nexport const useIsInitialRenderCycle = (): boolean => {\n // Use ref to avoid re-renders\n const isInitialRender = useRef(true);\n\n // Update ref after first render\n useEffect(() => {\n // Set to false after component mounts\n isInitialRender.current = false;\n\n // No cleanup needed for this effect\n }, []);\n\n return isInitialRender.current;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIsInitialRenderCycle.cjs","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef } from 'react';\n\n/**\n * A hook that returns true on initial render and false afterward.\n *\n * @returns {boolean} - True on initial render, false afterward\n */\nexport const useIsInitialRenderCycle = (): boolean => {\n // Use ref to avoid re-renders\n const isInitialRender = useRef(true);\n\n // Update ref after first render\n useEffect(() => {\n // Set to false after component mounts\n isInitialRender.current = false;\n\n // No cleanup needed for this effect\n }, []);\n\n return isInitialRender.current;\n};\n"],"mappings":";;;;;;;AASA,MAAa,gCAAyC;CAEpD,MAAM,mBAAA,GAAA,MAAA,QAAyB,IAAI;CAGnC,CAAA,GAAA,MAAA,iBAAgB;EAEd,gBAAgB,UAAU;CAG5B,GAAG,CAAC,CAAC;CAEL,OAAO,gBAAgB;AACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.cjs","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { useEffect, useState } from 'react';\n\nexport const useLocalStorage = <T>(\n key: string,\n initialValue: T | (() => T),\n): [T, Dispatch<SetStateAction<T>>] => {\n // Get from local storage then\n // parse stored json or return initialValue\n const readValue = (): T => {\n // Helper to resolve initial value (handle function or direct value)\n const resolveInitialValue = (): T => {\n return typeof initialValue === 'function'\n ? (initialValue as () => T)()\n : initialValue;\n };\n\n // Prevent build error \"window is undefined\" but keep keep working\n if (typeof window === 'undefined') {\n return resolveInitialValue();\n }\n\n try {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n const item = window.localStorage.getItem(key);\n if (item) {\n return JSON.parse(item) as T;\n }\n return resolveInitialValue();\n } catch (error) {\n console.warn(`Error reading localStorage key \"${key}\":`, error);\n return resolveInitialValue();\n }\n };\n\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState<T>(readValue);\n\n // Return a wrapped version of useState's setter function that ...\n // ... persists the new value to localStorage.\n const setValue: Dispatch<SetStateAction<T>> = (value) => {\n // Prevent build error \"window is undefined\" but keeps working\n if (typeof window === 'undefined') {\n console.warn(\n `Tried setting localStorage key \"${key}\" even though environment is not a client`,\n );\n return;\n }\n\n try {\n // Allow value to be a function so we have the same API as useState\n const newValue = value instanceof Function ? value(storedValue) : value;\n\n // Save to local storage\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n window.localStorage.setItem(key, JSON.stringify(newValue));\n\n // Save state\n setStoredValue(newValue);\n\n // We dispatch a custom event so every useLocalStorage hook are notified\n window.dispatchEvent(new Event('local-storage'));\n } catch (error) {\n console.warn(`Error setting localStorage key \"${key}\":`, error);\n }\n };\n\n useEffect(() => {\n setStoredValue(readValue());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n // Skip event listeners in SSR environment\n if (typeof window === 'undefined') {\n return undefined;\n }\n\n const handleStorageChange = () => {\n setStoredValue(readValue());\n };\n\n // this only works for other documents, not the current one\n window.addEventListener('storage', handleStorageChange);\n\n // this is a custom event, triggered in writeValueToLocalStorage\n window.addEventListener('local-storage', handleStorageChange);\n\n return () => {\n window.removeEventListener('storage', handleStorageChange);\n window.removeEventListener('local-storage', handleStorageChange);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return [storedValue, setValue];\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocalStorage.cjs","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { useEffect, useState } from 'react';\n\nexport const useLocalStorage = <T>(\n key: string,\n initialValue: T | (() => T),\n): [T, Dispatch<SetStateAction<T>>] => {\n // Get from local storage then\n // parse stored json or return initialValue\n const readValue = (): T => {\n // Helper to resolve initial value (handle function or direct value)\n const resolveInitialValue = (): T => {\n return typeof initialValue === 'function'\n ? (initialValue as () => T)()\n : initialValue;\n };\n\n // Prevent build error \"window is undefined\" but keep keep working\n if (typeof window === 'undefined') {\n return resolveInitialValue();\n }\n\n try {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n const item = window.localStorage.getItem(key);\n if (item) {\n return JSON.parse(item) as T;\n }\n return resolveInitialValue();\n } catch (error) {\n console.warn(`Error reading localStorage key \"${key}\":`, error);\n return resolveInitialValue();\n }\n };\n\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState<T>(readValue);\n\n // Return a wrapped version of useState's setter function that ...\n // ... persists the new value to localStorage.\n const setValue: Dispatch<SetStateAction<T>> = (value) => {\n // Prevent build error \"window is undefined\" but keeps working\n if (typeof window === 'undefined') {\n console.warn(\n `Tried setting localStorage key \"${key}\" even though environment is not a client`,\n );\n return;\n }\n\n try {\n // Allow value to be a function so we have the same API as useState\n const newValue = value instanceof Function ? value(storedValue) : value;\n\n // Save to local storage\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n window.localStorage.setItem(key, JSON.stringify(newValue));\n\n // Save state\n setStoredValue(newValue);\n\n // We dispatch a custom event so every useLocalStorage hook are notified\n window.dispatchEvent(new Event('local-storage'));\n } catch (error) {\n console.warn(`Error setting localStorage key \"${key}\":`, error);\n }\n };\n\n useEffect(() => {\n setStoredValue(readValue());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n // Skip event listeners in SSR environment\n if (typeof window === 'undefined') {\n return undefined;\n }\n\n const handleStorageChange = () => {\n setStoredValue(readValue());\n };\n\n // this only works for other documents, not the current one\n window.addEventListener('storage', handleStorageChange);\n\n // this is a custom event, triggered in writeValueToLocalStorage\n window.addEventListener('local-storage', handleStorageChange);\n\n return () => {\n window.removeEventListener('storage', handleStorageChange);\n window.removeEventListener('local-storage', handleStorageChange);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return [storedValue, setValue];\n};\n"],"mappings":";;AAMA,MAAa,mBACX,KACA,iBACqC;CAGrC,MAAM,kBAAqB;EAEzB,MAAM,4BAA+B;GACnC,OAAO,OAAO,iBAAiB,aAC1B,aAAyB,IAC1B;EACN;EAGA,IAAI,OAAO,WAAW,aACpB,OAAO,oBAAoB;EAG7B,IAAI;GAEF,MAAM,OAAO,OAAO,aAAa,QAAQ,GAAG;GAC5C,IAAI,MACF,OAAO,KAAK,MAAM,IAAI;GAExB,OAAO,oBAAoB;EAC7B,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;GAC9D,OAAO,oBAAoB;EAC7B;CACF;CAIA,MAAM,CAAC,aAAa,mBAAA,GAAA,MAAA,UAA8B,SAAS;CAI3D,MAAM,YAAyC,UAAU;EAEvD,IAAI,OAAO,WAAW,aAAa;GACjC,QAAQ,KACN,mCAAmC,IAAI,0CACzC;GACA;EACF;EAEA,IAAI;GAEF,MAAM,WAAW,iBAAiB,WAAW,MAAM,WAAW,IAAI;GAIlE,OAAO,aAAa,QAAQ,KAAK,KAAK,UAAU,QAAQ,CAAC;GAGzD,eAAe,QAAQ;GAGvB,OAAO,cAAc,IAAI,MAAM,eAAe,CAAC;EACjD,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;EAChE;CACF;CAEA,CAAA,GAAA,MAAA,iBAAgB;EACd,eAAe,UAAU,CAAC;CAE5B,GAAG,CAAC,CAAC;CAEL,CAAA,GAAA,MAAA,iBAAgB;EAEd,IAAI,OAAO,WAAW,aACpB;EAGF,MAAM,4BAA4B;GAChC,eAAe,UAAU,CAAC;EAC5B;EAGA,OAAO,iBAAiB,WAAW,mBAAmB;EAGtD,OAAO,iBAAiB,iBAAiB,mBAAmB;EAE5D,aAAa;GACX,OAAO,oBAAoB,WAAW,mBAAmB;GACzD,OAAO,oBAAoB,iBAAiB,mBAAmB;EACjE;CAEF,GAAG,CAAC,CAAC;CAEL,OAAO,CAAC,aAAa,QAAQ;AAC/B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../../../../../../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
let react = require("react");
|
|
3
2
|
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js
|
|
4
3
|
function useIdCompat() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIdCompat.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js"],"sourcesContent":["import { useRef } from 'react';\nexport function useIdCompat() {\n var idRef = useRef(null);\n if (idRef.current === null) {\n idRef.current = 'custom-id-' + Math.random().toString(36).substr(2, 9);\n }\n return idRef.current;\n}"],"x_google_ignoreList":[0],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIdCompat.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js"],"sourcesContent":["import { useRef } from 'react';\nexport function useIdCompat() {\n var idRef = useRef(null);\n if (idRef.current === null) {\n idRef.current = 'custom-id-' + Math.random().toString(36).substr(2, 9);\n }\n return idRef.current;\n}"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAgB,cAAc;CAC5B,IAAI,SAAA,GAAA,MAAA,QAAe,IAAI;CACvB,IAAI,MAAM,YAAY,MACpB,MAAM,UAAU,eAAe,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,OAAO,GAAG,CAAC;CAEvE,OAAO,MAAM;AACf"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../../../../../../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
let react = require("react");
|
|
3
2
|
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js
|
|
4
3
|
function usePrevious(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHighlight.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js"],"sourcesContent":["import { useMemo, useRef, useEffect } from 'react';\nexport function usePrevious(value) {\n var ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\nexport function useHighlight(_ref) {\n var value = _ref.value,\n highlightUpdates = _ref.highlightUpdates,\n highlightContainer = _ref.highlightContainer;\n var prevValue = usePrevious(value);\n var isHighlight = useMemo(() => {\n if (!highlightUpdates || prevValue === undefined) return false;\n // highlight if value type changed\n if (typeof value !== typeof prevValue) {\n return true;\n }\n if (typeof value === 'number') {\n // notice: NaN !== NaN\n if (isNaN(value) && isNaN(prevValue)) return false;\n return value !== prevValue;\n }\n // highlight if isArray changed\n if (Array.isArray(value) !== Array.isArray(prevValue)) {\n return true;\n }\n // not highlight object/function\n // deep compare they will be slow\n if (typeof value === 'object' || typeof value === 'function') {\n return false;\n }\n\n // highlight if not equal\n if (value !== prevValue) {\n return true;\n }\n }, [highlightUpdates, value]);\n useEffect(() => {\n if (highlightContainer && highlightContainer.current && isHighlight && 'animate' in highlightContainer.current) {\n highlightContainer.current.animate([{\n backgroundColor: 'var(--w-rjv-update-color, #ebcb8b)'\n }, {\n backgroundColor: ''\n }], {\n duration: 1000,\n easing: 'ease-in'\n });\n }\n }, [isHighlight, value, highlightContainer]);\n}"],"x_google_ignoreList":[0],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHighlight.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js"],"sourcesContent":["import { useMemo, useRef, useEffect } from 'react';\nexport function usePrevious(value) {\n var ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\nexport function useHighlight(_ref) {\n var value = _ref.value,\n highlightUpdates = _ref.highlightUpdates,\n highlightContainer = _ref.highlightContainer;\n var prevValue = usePrevious(value);\n var isHighlight = useMemo(() => {\n if (!highlightUpdates || prevValue === undefined) return false;\n // highlight if value type changed\n if (typeof value !== typeof prevValue) {\n return true;\n }\n if (typeof value === 'number') {\n // notice: NaN !== NaN\n if (isNaN(value) && isNaN(prevValue)) return false;\n return value !== prevValue;\n }\n // highlight if isArray changed\n if (Array.isArray(value) !== Array.isArray(prevValue)) {\n return true;\n }\n // not highlight object/function\n // deep compare they will be slow\n if (typeof value === 'object' || typeof value === 'function') {\n return false;\n }\n\n // highlight if not equal\n if (value !== prevValue) {\n return true;\n }\n }, [highlightUpdates, value]);\n useEffect(() => {\n if (highlightContainer && highlightContainer.current && isHighlight && 'animate' in highlightContainer.current) {\n highlightContainer.current.animate([{\n backgroundColor: 'var(--w-rjv-update-color, #ebcb8b)'\n }, {\n backgroundColor: ''\n }], {\n duration: 1000,\n easing: 'ease-in'\n });\n }\n }, [isHighlight, value, highlightContainer]);\n}"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAgB,YAAY,OAAO;CACjC,IAAI,OAAA,GAAA,MAAA,QAAa;CACjB,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,UAAU;CAChB,CAAC;CACD,OAAO,IAAI;AACb;AACA,SAAgB,aAAa,MAAM;CACjC,IAAI,QAAQ,KAAK,OACf,mBAAmB,KAAK,kBACxB,qBAAqB,KAAK;CAC5B,IAAI,YAAY,YAAY,KAAK;CACjC,IAAI,eAAA,GAAA,MAAA,eAA4B;EAC9B,IAAI,CAAC,oBAAoB,cAAc,KAAA,GAAW,OAAO;EAEzD,IAAI,OAAO,UAAU,OAAO,WAC1B,OAAO;EAET,IAAI,OAAO,UAAU,UAAU;GAE7B,IAAI,MAAM,KAAK,KAAK,MAAM,SAAS,GAAG,OAAO;GAC7C,OAAO,UAAU;EACnB;EAEA,IAAI,MAAM,QAAQ,KAAK,MAAM,MAAM,QAAQ,SAAS,GAClD,OAAO;EAIT,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,YAChD,OAAO;EAIT,IAAI,UAAU,WACZ,OAAO;CAEX,GAAG,CAAC,kBAAkB,KAAK,CAAC;CAC5B,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,sBAAsB,mBAAmB,WAAW,eAAe,aAAa,mBAAmB,SACrG,mBAAmB,QAAQ,QAAQ,CAAC,EAClC,iBAAiB,qCACnB,GAAG,EACD,iBAAiB,GACnB,CAAC,GAAG;GACF,UAAU;GACV,QAAQ;EACV,CAAC;CAEL,GAAG;EAAC;EAAa;EAAO;CAAkB,CAAC;AAC7C"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fuf-stack/pixels",
|
|
3
3
|
"description": "fuf core react component library",
|
|
4
4
|
"author": "Fröhlich ∧ Frei",
|
|
5
|
-
"version": "1.11.
|
|
5
|
+
"version": "1.11.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.js",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
},
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"@fuf-stack/pixel-motion": "1.2.2",
|
|
188
|
-
"@fuf-stack/pixel-utils": "1.3.
|
|
188
|
+
"@fuf-stack/pixel-utils": "1.3.2",
|
|
189
189
|
"@heroui/accordion": "2.2.29",
|
|
190
190
|
"@heroui/alert": "2.2.32",
|
|
191
191
|
"@heroui/avatar": "2.2.26",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"sonner": "2.0.7"
|
|
215
215
|
},
|
|
216
216
|
"devDependencies": {
|
|
217
|
-
"@tsdown/css": "0.22.
|
|
217
|
+
"@tsdown/css": "0.22.1",
|
|
218
218
|
"@types/debug": "4.1.13",
|
|
219
219
|
"@types/react": "19.2.15",
|
|
220
220
|
"@types/react-dom": "19.2.3",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"react": "19.2.6",
|
|
223
223
|
"react-dom": "19.2.6"
|
|
224
224
|
},
|
|
225
|
-
"gitHead": "
|
|
225
|
+
"gitHead": "92bdba62f9d7284ad73a2837122ebd324ca57adc"
|
|
226
226
|
}
|