@fuf-stack/pixels 1.8.0 → 1.10.0
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 +63 -0
- package/dist/Accordion/Accordion.cjs.map +1 -0
- package/dist/Accordion/Accordion.d.cts +154 -0
- package/dist/Accordion/Accordion.d.cts.map +1 -0
- package/dist/Accordion/Accordion.d.ts +154 -0
- package/dist/Accordion/Accordion.d.ts.map +1 -0
- package/dist/Accordion/Accordion.js +61 -0
- package/dist/{chunk-NSYHAJM2.cjs.map → Accordion/Accordion.js.map} +1 -1
- package/dist/Accordion/index.cjs +11 -10
- package/dist/Accordion/index.cjs.map +1 -1
- package/dist/Accordion/index.d.cts +2 -11
- package/dist/Accordion/index.d.ts +2 -11
- package/dist/Accordion/index.js +6 -11
- package/dist/Accordion/index.js.map +1 -1
- package/dist/Alert/Alert.cjs +61 -0
- package/dist/Alert/Alert.cjs.map +1 -0
- package/dist/Alert/Alert.d.cts +155 -0
- package/dist/Alert/Alert.d.cts.map +1 -0
- package/dist/Alert/Alert.d.ts +155 -0
- package/dist/Alert/Alert.d.ts.map +1 -0
- package/dist/Alert/Alert.js +59 -0
- package/dist/Alert/Alert.js.map +1 -0
- package/dist/Alert/index.cjs +11 -10
- package/dist/Alert/index.cjs.map +1 -1
- package/dist/Alert/index.d.cts +2 -10
- package/dist/Alert/index.d.ts +2 -10
- package/dist/Alert/index.js +6 -11
- package/dist/Alert/index.js.map +1 -1
- package/dist/Avatar/Avatar.cjs +31 -0
- package/dist/Avatar/Avatar.cjs.map +1 -0
- package/dist/Avatar/Avatar.d.cts +80 -0
- package/dist/Avatar/Avatar.d.cts.map +1 -0
- package/dist/Avatar/Avatar.d.ts +80 -0
- package/dist/Avatar/Avatar.d.ts.map +1 -0
- package/dist/Avatar/Avatar.js +30 -0
- package/dist/Avatar/Avatar.js.map +1 -0
- package/dist/Avatar/index.cjs +10 -8
- package/dist/Avatar/index.cjs.map +1 -1
- package/dist/Avatar/index.d.cts +2 -10
- package/dist/Avatar/index.d.ts +2 -10
- package/dist/Avatar/index.js +6 -9
- package/dist/Avatar/index.js.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.cjs +42 -0
- package/dist/AvatarGroup/AvatarGroup.cjs.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.cts +33 -0
- package/dist/AvatarGroup/AvatarGroup.d.cts.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +33 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.js +41 -0
- package/dist/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/AvatarGroup/index.cjs +10 -9
- package/dist/AvatarGroup/index.cjs.map +1 -1
- package/dist/AvatarGroup/index.d.cts +2 -11
- package/dist/AvatarGroup/index.d.ts +2 -11
- package/dist/AvatarGroup/index.js +6 -10
- package/dist/AvatarGroup/index.js.map +1 -1
- package/dist/Badge/Badge.cjs +29 -0
- package/dist/Badge/Badge.cjs.map +1 -0
- package/dist/Badge/Badge.d.cts +72 -0
- package/dist/Badge/Badge.d.cts.map +1 -0
- package/dist/Badge/Badge.d.ts +72 -0
- package/dist/Badge/Badge.d.ts.map +1 -0
- package/dist/Badge/Badge.js +28 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/index.cjs +10 -8
- package/dist/Badge/index.cjs.map +1 -1
- package/dist/Badge/index.d.cts +2 -10
- package/dist/Badge/index.d.ts +2 -10
- package/dist/Badge/index.js +6 -9
- package/dist/Badge/index.js.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.cjs +58 -0
- package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -0
- package/dist/Breadcrumb/Breadcrumb.d.cts +117 -0
- package/dist/Breadcrumb/Breadcrumb.d.cts.map +1 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +117 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/Breadcrumb/Breadcrumb.js +56 -0
- package/dist/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/Breadcrumb/index.cjs +11 -10
- package/dist/Breadcrumb/index.cjs.map +1 -1
- package/dist/Breadcrumb/index.d.cts +2 -10
- package/dist/Breadcrumb/index.d.ts +2 -10
- package/dist/Breadcrumb/index.js +6 -11
- package/dist/Breadcrumb/index.js.map +1 -1
- package/dist/Button/Button.cjs +111 -0
- package/dist/Button/Button.cjs.map +1 -0
- package/dist/Button/Button.d.cts +262 -0
- package/dist/Button/Button.d.cts.map +1 -0
- package/dist/Button/Button.d.ts +262 -0
- package/dist/Button/Button.d.ts.map +1 -0
- package/dist/Button/Button.js +109 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/index.cjs +11 -10
- package/dist/Button/index.cjs.map +1 -1
- package/dist/Button/index.d.cts +2 -10
- package/dist/Button/index.d.ts +2 -10
- package/dist/Button/index.js +6 -11
- package/dist/Button/index.js.map +1 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs +31 -0
- package/dist/Button/subcomponents/LoadingSpinner.cjs.map +1 -0
- package/dist/Button/subcomponents/LoadingSpinner.js +30 -0
- package/dist/Button/subcomponents/LoadingSpinner.js.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.cjs +10 -0
- package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.cts +10 -0
- package/dist/ButtonGroup/ButtonGroup.d.cts.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +10 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.js +10 -0
- package/dist/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/ButtonGroup/index.cjs +10 -8
- package/dist/ButtonGroup/index.cjs.map +1 -1
- package/dist/ButtonGroup/index.d.cts +2 -7
- package/dist/ButtonGroup/index.d.ts +2 -7
- package/dist/ButtonGroup/index.js +6 -9
- package/dist/ButtonGroup/index.js.map +1 -1
- package/dist/Card/Card.cjs +48 -0
- package/dist/Card/Card.cjs.map +1 -0
- package/dist/Card/Card.d.cts +74 -0
- package/dist/Card/Card.d.cts.map +1 -0
- package/dist/Card/Card.d.ts +74 -0
- package/dist/Card/Card.d.ts.map +1 -0
- package/dist/Card/Card.js +46 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/index.cjs +11 -10
- package/dist/Card/index.cjs.map +1 -1
- package/dist/Card/index.d.cts +2 -9
- package/dist/Card/index.d.ts +2 -9
- package/dist/Card/index.js +6 -11
- package/dist/Card/index.js.map +1 -1
- package/dist/Drawer/Drawer.cjs +86 -0
- package/dist/Drawer/Drawer.cjs.map +1 -0
- package/dist/Drawer/Drawer.d.cts +134 -0
- package/dist/Drawer/Drawer.d.cts.map +1 -0
- package/dist/Drawer/Drawer.d.ts +134 -0
- package/dist/Drawer/Drawer.d.ts.map +1 -0
- package/dist/Drawer/Drawer.js +80 -0
- package/dist/Drawer/Drawer.js.map +1 -0
- package/dist/Drawer/index.cjs +15 -18
- package/dist/Drawer/index.cjs.map +1 -1
- package/dist/Drawer/index.d.cts +2 -11
- package/dist/Drawer/index.d.ts +2 -11
- package/dist/Drawer/index.js +6 -19
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Json/Json.cjs +87 -0
- package/dist/Json/Json.cjs.map +1 -0
- package/dist/Json/Json.d.cts +32 -0
- package/dist/Json/Json.d.cts.map +1 -0
- package/dist/Json/Json.d.ts +32 -0
- package/dist/Json/Json.d.ts.map +1 -0
- package/dist/Json/Json.js +86 -0
- package/dist/Json/Json.js.map +1 -0
- package/dist/Json/index.cjs +10 -9
- package/dist/Json/index.cjs.map +1 -1
- package/dist/Json/index.d.cts +2 -8
- package/dist/Json/index.d.ts +2 -8
- package/dist/Json/index.js +6 -10
- package/dist/Json/index.js.map +1 -1
- package/dist/Json/jsonParser.cjs +21 -0
- package/dist/Json/jsonParser.cjs.map +1 -0
- package/dist/Json/jsonParser.js +21 -0
- package/dist/Json/jsonParser.js.map +1 -0
- package/dist/Json/subcomponents/CopiedRenderer.cjs +46 -0
- package/dist/Json/subcomponents/CopiedRenderer.cjs.map +1 -0
- package/dist/Json/subcomponents/CopiedRenderer.js +45 -0
- package/dist/Json/subcomponents/CopiedRenderer.js.map +1 -0
- package/dist/Json/subcomponents/ErrorRenderer.cjs +53 -0
- package/dist/Json/subcomponents/ErrorRenderer.cjs.map +1 -0
- package/dist/Json/subcomponents/ErrorRenderer.js +52 -0
- package/dist/Json/subcomponents/ErrorRenderer.js.map +1 -0
- package/dist/Json/subcomponents/NullRenderer.cjs +23 -0
- package/dist/Json/subcomponents/NullRenderer.cjs.map +1 -0
- package/dist/Json/subcomponents/NullRenderer.js +22 -0
- package/dist/Json/subcomponents/NullRenderer.js.map +1 -0
- package/dist/{index.css → Json/theme.css} +5 -7
- package/dist/Label/Label.cjs +84 -0
- package/dist/Label/Label.cjs.map +1 -0
- package/dist/Label/Label.d.cts +225 -0
- package/dist/Label/Label.d.cts.map +1 -0
- package/dist/Label/Label.d.ts +225 -0
- package/dist/Label/Label.d.ts.map +1 -0
- package/dist/Label/Label.js +82 -0
- package/dist/Label/Label.js.map +1 -0
- package/dist/Label/index.cjs +11 -10
- package/dist/Label/index.cjs.map +1 -1
- package/dist/Label/index.d.cts +2 -11
- package/dist/Label/index.d.ts +2 -11
- package/dist/Label/index.js +6 -11
- package/dist/Label/index.js.map +1 -1
- package/dist/Menu/Menu.cjs +87 -0
- package/dist/Menu/Menu.cjs.map +1 -0
- package/dist/Menu/Menu.d.cts +110 -0
- package/dist/Menu/Menu.d.cts.map +1 -0
- package/dist/Menu/Menu.d.ts +110 -0
- package/dist/Menu/Menu.d.ts.map +1 -0
- package/dist/Menu/Menu.js +86 -0
- package/dist/Menu/Menu.js.map +1 -0
- package/dist/Menu/VerticalDotsIcon.cjs +23 -0
- package/dist/Menu/VerticalDotsIcon.cjs.map +1 -0
- package/dist/Menu/VerticalDotsIcon.js +22 -0
- package/dist/Menu/VerticalDotsIcon.js.map +1 -0
- package/dist/Menu/index.cjs +10 -8
- package/dist/Menu/index.cjs.map +1 -1
- package/dist/Menu/index.d.cts +2 -12
- package/dist/Menu/index.d.ts +2 -12
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/index.js.map +1 -1
- package/dist/Modal/Modal.cjs +57 -0
- package/dist/Modal/Modal.cjs.map +1 -0
- package/dist/Modal/Modal.d.cts +126 -0
- package/dist/Modal/Modal.d.cts.map +1 -0
- package/dist/Modal/Modal.d.ts +126 -0
- package/dist/Modal/Modal.d.ts.map +1 -0
- package/dist/Modal/Modal.js +55 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/index.cjs +11 -10
- package/dist/Modal/index.cjs.map +1 -1
- package/dist/Modal/index.d.cts +2 -11
- package/dist/Modal/index.d.ts +2 -11
- package/dist/Modal/index.js +6 -11
- package/dist/Modal/index.js.map +1 -1
- package/dist/Popover/Popover.cjs +72 -0
- package/dist/Popover/Popover.cjs.map +1 -0
- package/dist/Popover/Popover.d.cts +124 -0
- package/dist/Popover/Popover.d.cts.map +1 -0
- package/dist/Popover/Popover.d.ts +124 -0
- package/dist/Popover/Popover.d.ts.map +1 -0
- package/dist/Popover/Popover.js +71 -0
- package/dist/Popover/Popover.js.map +1 -0
- package/dist/Popover/index.cjs +10 -9
- package/dist/Popover/index.cjs.map +1 -1
- package/dist/Popover/index.d.cts +2 -12
- package/dist/Popover/index.d.ts +2 -12
- package/dist/Popover/index.js +6 -10
- package/dist/Popover/index.js.map +1 -1
- package/dist/Progress/Progress.cjs +57 -0
- package/dist/Progress/Progress.cjs.map +1 -0
- package/dist/Progress/Progress.d.cts +146 -0
- package/dist/Progress/Progress.d.cts.map +1 -0
- package/dist/Progress/Progress.d.ts +146 -0
- package/dist/Progress/Progress.d.ts.map +1 -0
- package/dist/Progress/Progress.js +55 -0
- package/dist/Progress/Progress.js.map +1 -0
- package/dist/Progress/index.cjs +11 -11
- package/dist/Progress/index.cjs.map +1 -1
- package/dist/Progress/index.d.cts +2 -10
- package/dist/Progress/index.d.ts +2 -10
- package/dist/Progress/index.js +6 -12
- package/dist/Progress/index.js.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.cjs +102 -0
- package/dist/ProgressCircular/ProgressCircular.cjs.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.d.cts +239 -0
- package/dist/ProgressCircular/ProgressCircular.d.cts.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.d.ts +239 -0
- package/dist/ProgressCircular/ProgressCircular.d.ts.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.js +100 -0
- package/dist/ProgressCircular/ProgressCircular.js.map +1 -0
- package/dist/ProgressCircular/index.cjs +11 -11
- package/dist/ProgressCircular/index.cjs.map +1 -1
- package/dist/ProgressCircular/index.d.cts +2 -10
- package/dist/ProgressCircular/index.d.ts +2 -10
- package/dist/ProgressCircular/index.js +6 -12
- package/dist/ProgressCircular/index.js.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.cjs +22 -0
- package/dist/ScrollShadow/ScrollShadow.cjs.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.d.cts +31 -0
- package/dist/ScrollShadow/ScrollShadow.d.cts.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.d.ts +31 -0
- package/dist/ScrollShadow/ScrollShadow.d.ts.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.js +21 -0
- package/dist/ScrollShadow/ScrollShadow.js.map +1 -0
- package/dist/ScrollShadow/index.cjs +10 -10
- package/dist/ScrollShadow/index.cjs.map +1 -1
- package/dist/ScrollShadow/index.d.cts +2 -23
- package/dist/ScrollShadow/index.d.ts +2 -23
- package/dist/ScrollShadow/index.js +5 -10
- package/dist/ScrollShadow/index.js.map +1 -1
- package/dist/SearchInput/SearchInput.cjs +53 -0
- package/dist/SearchInput/SearchInput.cjs.map +1 -0
- package/dist/SearchInput/SearchInput.d.cts +86 -0
- package/dist/SearchInput/SearchInput.d.cts.map +1 -0
- package/dist/SearchInput/SearchInput.d.ts +86 -0
- package/dist/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/SearchInput/SearchInput.js +52 -0
- package/dist/SearchInput/SearchInput.js.map +1 -0
- package/dist/SearchInput/index.cjs +9 -70
- package/dist/SearchInput/index.cjs.map +1 -1
- package/dist/SearchInput/index.d.cts +2 -88
- package/dist/SearchInput/index.d.ts +2 -88
- package/dist/SearchInput/index.js +4 -70
- package/dist/SearchInput/index.js.map +1 -1
- package/dist/Table/Table.cjs +75 -0
- package/dist/{chunk-YUR6N2RB.cjs.map → Table/Table.cjs.map} +1 -1
- package/dist/Table/Table.d.cts +178 -0
- package/dist/Table/Table.d.cts.map +1 -0
- package/dist/Table/Table.d.ts +178 -0
- package/dist/Table/Table.d.ts.map +1 -0
- package/dist/Table/Table.js +73 -0
- package/dist/Table/Table.js.map +1 -0
- package/dist/Table/index.cjs +11 -10
- package/dist/Table/index.cjs.map +1 -1
- package/dist/Table/index.d.cts +2 -10
- package/dist/Table/index.d.ts +2 -10
- package/dist/Table/index.js +6 -11
- package/dist/Table/index.js.map +1 -1
- package/dist/Tabs/Tabs.cjs +49 -0
- package/dist/Tabs/Tabs.cjs.map +1 -0
- package/dist/Tabs/Tabs.d.cts +138 -0
- package/dist/Tabs/Tabs.d.cts.map +1 -0
- package/dist/Tabs/Tabs.d.ts +138 -0
- package/dist/Tabs/Tabs.d.ts.map +1 -0
- package/dist/Tabs/Tabs.js +47 -0
- package/dist/Tabs/Tabs.js.map +1 -0
- package/dist/Tabs/index.cjs +11 -10
- package/dist/Tabs/index.cjs.map +1 -1
- package/dist/Tabs/index.d.cts +2 -10
- package/dist/Tabs/index.d.ts +2 -10
- package/dist/Tabs/index.js +6 -11
- package/dist/Tabs/index.js.map +1 -1
- package/dist/Toast/Toast.cjs +90 -0
- package/dist/Toast/Toast.cjs.map +1 -0
- package/dist/Toast/Toast.d.cts +76 -0
- package/dist/Toast/Toast.d.cts.map +1 -0
- package/dist/Toast/Toast.d.ts +76 -0
- package/dist/Toast/Toast.d.ts.map +1 -0
- package/dist/Toast/Toast.js +89 -0
- package/dist/Toast/Toast.js.map +1 -0
- package/dist/Toast/Toaster.cjs +11 -0
- package/dist/Toast/Toaster.cjs.map +1 -0
- package/dist/Toast/Toaster.d.cts +9 -0
- package/dist/Toast/Toaster.d.cts.map +1 -0
- package/dist/Toast/Toaster.d.ts +9 -0
- package/dist/Toast/Toaster.d.ts.map +1 -0
- package/dist/Toast/Toaster.js +10 -0
- package/dist/Toast/Toaster.js.map +1 -0
- package/dist/Toast/index.cjs +12 -11
- package/dist/Toast/index.cjs.map +1 -1
- package/dist/Toast/index.d.cts +3 -12
- package/dist/Toast/index.d.ts +3 -12
- package/dist/Toast/index.js +7 -12
- package/dist/Toast/index.js.map +1 -1
- package/dist/Tooltip/Tooltip.cjs +105 -0
- package/dist/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/Tooltip/Tooltip.d.cts +208 -0
- package/dist/Tooltip/Tooltip.d.cts.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +208 -0
- package/dist/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/Tooltip/Tooltip.js +104 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/Tooltip/index.cjs +10 -9
- package/dist/Tooltip/index.cjs.map +1 -1
- package/dist/Tooltip/index.d.cts +2 -11
- package/dist/Tooltip/index.d.ts +2 -11
- package/dist/Tooltip/index.js +6 -10
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +25 -0
- package/dist/_virtual/_rolldown/runtime.js +24 -0
- package/dist/hooks/useDebounce/index.cjs +3 -8
- package/dist/hooks/useDebounce/index.d.cts +2 -9
- package/dist/hooks/useDebounce/index.d.ts +2 -9
- package/dist/hooks/useDebounce/index.js +2 -8
- package/dist/hooks/useDebounce/useDebounce.cjs +37 -0
- package/dist/hooks/useDebounce/useDebounce.cjs.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.cts +11 -0
- package/dist/hooks/useDebounce/useDebounce.d.cts.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +11 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.js +36 -0
- package/dist/hooks/useDebounce/useDebounce.js.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/index.cjs +3 -8
- package/dist/hooks/useIsInitialRenderCycle/index.d.cts +2 -8
- package/dist/hooks/useIsInitialRenderCycle/index.d.ts +2 -8
- package/dist/hooks/useIsInitialRenderCycle/index.js +2 -8
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs +19 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.cts +10 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.cts.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.ts +10 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.ts.map +1 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.js +18 -0
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.js.map +1 -0
- package/dist/hooks/useLocalStorage/index.cjs +3 -8
- package/dist/hooks/useLocalStorage/index.d.cts +2 -5
- package/dist/hooks/useLocalStorage/index.d.ts +2 -5
- package/dist/hooks/useLocalStorage/index.js +2 -8
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs +54 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs.map +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.cts +7 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.cts.map +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts +7 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.js +53 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -0
- package/dist/index.cjs +72 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -40
- package/dist/index.d.ts +27 -40
- package/dist/index.js +31 -138
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.cjs +22 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js +19 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.cjs +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.cjs +22 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +19 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Container.cjs +68 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Container.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Container.js +67 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Container.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/arrow/TriangleArrow.cjs +29 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/arrow/TriangleArrow.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/arrow/TriangleArrow.js +28 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/arrow/TriangleArrow.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Copied.cjs +82 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Copied.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Copied.js +82 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Copied.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/KeyValues.cjs +150 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/KeyValues.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/KeyValues.js +149 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/KeyValues.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedClose.cjs +46 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedClose.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedClose.js +46 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedClose.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedOpen.cjs +107 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedOpen.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedOpen.js +107 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/NestedOpen.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Value.cjs +31 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Value.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Value.js +31 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/Value.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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 +12 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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 +11 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/index.cjs +131 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/index.js +131 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Copied.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Copied.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Copied.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Copied.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfo.cjs +41 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfo.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfo.js +40 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfo.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfoExtra.cjs +37 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfoExtra.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfoExtra.js +36 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/CountInfoExtra.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Ellipsis.cjs +35 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Ellipsis.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Ellipsis.js +34 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Ellipsis.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/KeyName.cjs +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/KeyName.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/KeyName.js +37 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/KeyName.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Row.cjs +46 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Row.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Row.js +45 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/section/Row.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Expands.cjs +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Expands.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Expands.js +35 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Expands.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Section.cjs +82 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Section.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Section.js +78 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Section.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/ShowTools.cjs +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/ShowTools.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/ShowTools.js +35 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/ShowTools.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Symbols.cjs +95 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Symbols.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Symbols.js +92 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Symbols.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Types.cjs +136 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Types.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Types.js +133 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store/Types.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store.cjs +72 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store.js +67 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/store.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Arrow.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Arrow.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Arrow.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Arrow.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceLeft.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceLeft.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceLeft.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceLeft.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceRight.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceRight.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceRight.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BraceRight.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsLeft.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsLeft.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsLeft.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsLeft.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsRight.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsRight.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsRight.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/BracketsRight.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Colon.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Colon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Colon.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Colon.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Quote.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Quote.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Quote.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/Quote.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/ValueQuote.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/ValueQuote.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/ValueQuote.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/ValueQuote.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/index.cjs +144 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/index.js +139 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/symbol/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Bigint.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Bigint.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Bigint.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Bigint.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Date.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Date.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Date.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Date.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/False.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/False.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/False.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/False.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Float.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Float.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Float.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Float.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Int.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Int.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Int.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Int.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Map.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Map.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Map.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Map.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Nan.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Nan.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Nan.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Nan.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Null.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Null.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Null.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Null.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Set.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Set.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Set.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Set.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/String.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/String.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/String.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/String.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/True.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/True.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/True.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/True.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Undefined.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Undefined.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Undefined.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Undefined.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Url.cjs +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Url.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Url.js +13 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/Url.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/index.cjs +402 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/index.js +389 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/types/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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 +39 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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 +38 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/useRender.cjs +41 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/useRender.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/useRender.js +39 -0
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.42_@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/useRender.js.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.cjs +153 -0
- package/dist/utils/createWithSuspense/createWithSuspense.cjs.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.cts +73 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.cts.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.ts +73 -0
- package/dist/utils/createWithSuspense/createWithSuspense.d.ts.map +1 -0
- package/dist/utils/createWithSuspense/createWithSuspense.js +151 -0
- package/dist/utils/createWithSuspense/createWithSuspense.js.map +1 -0
- package/dist/utils/createWithSuspense/index.cjs +3 -8
- package/dist/utils/createWithSuspense/index.d.cts +2 -72
- package/dist/utils/createWithSuspense/index.d.ts +2 -72
- package/dist/utils/createWithSuspense/index.js +2 -8
- package/package.json +38 -37
- package/dist/Accordion-BX1Npq3Q.d.cts +0 -140
- package/dist/Accordion-BX1Npq3Q.d.ts +0 -140
- package/dist/Alert-BidIEsLA.d.cts +0 -137
- package/dist/Alert-BidIEsLA.d.ts +0 -137
- package/dist/Avatar-DjZ3H25h.d.cts +0 -72
- package/dist/Avatar-DjZ3H25h.d.ts +0 -72
- package/dist/AvatarGroup-B1Tdw57Q.d.ts +0 -23
- package/dist/AvatarGroup-BujXZ7Vy.d.cts +0 -23
- package/dist/Badge-L8r9mgSs.d.cts +0 -62
- package/dist/Badge-L8r9mgSs.d.ts +0 -62
- package/dist/Breadcrumb-Cvt5Xa5D.d.cts +0 -122
- package/dist/Breadcrumb-Cvt5Xa5D.d.ts +0 -122
- package/dist/Button-nJ22qVMK.d.cts +0 -262
- package/dist/Button-nJ22qVMK.d.ts +0 -262
- package/dist/ButtonGroup-CUxpALRo.d.cts +0 -9
- package/dist/ButtonGroup-CUxpALRo.d.ts +0 -9
- package/dist/Card-OBRZ-ssX.d.cts +0 -74
- package/dist/Card-OBRZ-ssX.d.ts +0 -74
- package/dist/Drawer-JpihbwKl.d.cts +0 -117
- package/dist/Drawer-JpihbwKl.d.ts +0 -117
- package/dist/Json/index.css +0 -59
- package/dist/Json/index.css.map +0 -1
- package/dist/Json-Dny90Wml.d.cts +0 -24
- package/dist/Json-Dny90Wml.d.ts +0 -24
- package/dist/Label-B5fd7vp_.d.cts +0 -215
- package/dist/Label-B5fd7vp_.d.ts +0 -215
- package/dist/Menu-CS28E7nM.d.cts +0 -100
- package/dist/Menu-CS28E7nM.d.ts +0 -100
- package/dist/Modal-BwFQz60I.d.cts +0 -115
- package/dist/Modal-BwFQz60I.d.ts +0 -115
- package/dist/Popover-Bf192yqn.d.cts +0 -111
- package/dist/Popover-Bf192yqn.d.ts +0 -111
- package/dist/Progress-Deph-HCf.d.cts +0 -133
- package/dist/Progress-Deph-HCf.d.ts +0 -133
- package/dist/ProgressCircular-CkZsOW4R.d.cts +0 -228
- package/dist/ProgressCircular-CkZsOW4R.d.ts +0 -228
- package/dist/Table-LKaPSY4D.d.cts +0 -161
- package/dist/Table-LKaPSY4D.d.ts +0 -161
- package/dist/Tabs-BjMJs02F.d.cts +0 -121
- package/dist/Tabs-BjMJs02F.d.ts +0 -121
- package/dist/Toaster-DVX4ebm4.d.ts +0 -75
- package/dist/Toaster-M8hrHJ-J.d.cts +0 -75
- package/dist/Tooltip-DoIaNgTC.d.cts +0 -195
- package/dist/Tooltip-DoIaNgTC.d.ts +0 -195
- package/dist/chunk-2NMIKTA5.js +0 -184
- package/dist/chunk-2NMIKTA5.js.map +0 -1
- package/dist/chunk-3SXXVV5T.js +0 -124
- package/dist/chunk-3SXXVV5T.js.map +0 -1
- package/dist/chunk-3WD7CGWD.cjs +0 -37
- package/dist/chunk-3WD7CGWD.cjs.map +0 -1
- package/dist/chunk-4AXE6KZW.js +0 -127
- package/dist/chunk-4AXE6KZW.js.map +0 -1
- package/dist/chunk-4SBEERL5.js +0 -145
- package/dist/chunk-4SBEERL5.js.map +0 -1
- package/dist/chunk-4Y4W74D7.js +0 -48
- package/dist/chunk-4Y4W74D7.js.map +0 -1
- package/dist/chunk-5ZT7C5IP.cjs +0 -169
- package/dist/chunk-5ZT7C5IP.cjs.map +0 -1
- package/dist/chunk-6PCFYEJH.cjs +0 -86
- package/dist/chunk-6PCFYEJH.cjs.map +0 -1
- package/dist/chunk-73HT7W6F.js +0 -104
- package/dist/chunk-73HT7W6F.js.map +0 -1
- package/dist/chunk-77J7NZYB.cjs +0 -48
- package/dist/chunk-77J7NZYB.cjs.map +0 -1
- package/dist/chunk-AHEA4IJV.cjs +0 -84
- package/dist/chunk-AHEA4IJV.cjs.map +0 -1
- package/dist/chunk-B2PDISUU.cjs +0 -77
- package/dist/chunk-B2PDISUU.cjs.map +0 -1
- package/dist/chunk-BPBEZCSP.cjs +0 -127
- package/dist/chunk-BPBEZCSP.cjs.map +0 -1
- package/dist/chunk-CUNIBDOS.js +0 -89
- package/dist/chunk-CUNIBDOS.js.map +0 -1
- package/dist/chunk-D6Z3F5C2.js +0 -86
- package/dist/chunk-D6Z3F5C2.js.map +0 -1
- package/dist/chunk-FLDEDIE2.js +0 -37
- package/dist/chunk-FLDEDIE2.js.map +0 -1
- package/dist/chunk-FNQ7VO32.js +0 -13
- package/dist/chunk-FNQ7VO32.js.map +0 -1
- package/dist/chunk-FQJ32476.cjs +0 -145
- package/dist/chunk-FQJ32476.cjs.map +0 -1
- package/dist/chunk-FVQDVD3E.cjs +0 -184
- package/dist/chunk-FVQDVD3E.cjs.map +0 -1
- package/dist/chunk-G3YTOGEG.cjs +0 -80
- package/dist/chunk-G3YTOGEG.cjs.map +0 -1
- package/dist/chunk-GKYJUGD4.js +0 -14
- package/dist/chunk-GKYJUGD4.js.map +0 -1
- package/dist/chunk-HG7AE6Q2.cjs +0 -49
- package/dist/chunk-HG7AE6Q2.cjs.map +0 -1
- package/dist/chunk-HMYQTHGT.js +0 -80
- package/dist/chunk-HMYQTHGT.js.map +0 -1
- package/dist/chunk-HSREBNZV.js +0 -66
- package/dist/chunk-HSREBNZV.js.map +0 -1
- package/dist/chunk-IBX6A72P.cjs +0 -90
- package/dist/chunk-IBX6A72P.cjs.map +0 -1
- package/dist/chunk-IGRNC5NX.js +0 -98
- package/dist/chunk-IGRNC5NX.js.map +0 -1
- package/dist/chunk-ITHJ52SN.cjs +0 -29
- package/dist/chunk-ITHJ52SN.cjs.map +0 -1
- package/dist/chunk-IXBNFKOS.cjs +0 -62
- package/dist/chunk-IXBNFKOS.cjs.map +0 -1
- package/dist/chunk-K5VPNWIJ.cjs +0 -103
- package/dist/chunk-K5VPNWIJ.cjs.map +0 -1
- package/dist/chunk-KGNCVUGN.js +0 -77
- package/dist/chunk-KGNCVUGN.js.map +0 -1
- package/dist/chunk-LUAK6GQG.cjs +0 -113
- package/dist/chunk-LUAK6GQG.cjs.map +0 -1
- package/dist/chunk-M3Y2DZZE.js +0 -62
- package/dist/chunk-M3Y2DZZE.js.map +0 -1
- package/dist/chunk-MF5KUM5I.js +0 -124
- package/dist/chunk-MF5KUM5I.js.map +0 -1
- package/dist/chunk-NSYHAJM2.cjs +0 -104
- package/dist/chunk-NZ5FWOC6.js +0 -2812
- package/dist/chunk-NZ5FWOC6.js.map +0 -1
- package/dist/chunk-OAIRL2FN.js +0 -84
- package/dist/chunk-OAIRL2FN.js.map +0 -1
- package/dist/chunk-OFZQFYUT.js +0 -103
- package/dist/chunk-OFZQFYUT.js.map +0 -1
- package/dist/chunk-OLU26V56.cjs +0 -98
- package/dist/chunk-OLU26V56.cjs.map +0 -1
- package/dist/chunk-ON3PVFZY.cjs +0 -14
- package/dist/chunk-ON3PVFZY.cjs.map +0 -1
- package/dist/chunk-P7QMPWKS.cjs +0 -2812
- package/dist/chunk-P7QMPWKS.cjs.map +0 -1
- package/dist/chunk-PKG3L2TJ.js +0 -113
- package/dist/chunk-PKG3L2TJ.js.map +0 -1
- package/dist/chunk-RPULU7LC.cjs +0 -89
- package/dist/chunk-RPULU7LC.cjs.map +0 -1
- package/dist/chunk-SRDRLHAA.js +0 -169
- package/dist/chunk-SRDRLHAA.js.map +0 -1
- package/dist/chunk-TJTBJ2NT.js +0 -90
- package/dist/chunk-TJTBJ2NT.js.map +0 -1
- package/dist/chunk-U5J6GTQE.js +0 -123
- package/dist/chunk-U5J6GTQE.js.map +0 -1
- package/dist/chunk-UEQG424R.js +0 -49
- package/dist/chunk-UEQG424R.js.map +0 -1
- package/dist/chunk-VEXCTG6K.js +0 -103
- package/dist/chunk-VEXCTG6K.js.map +0 -1
- package/dist/chunk-VHESFBAQ.cjs +0 -66
- package/dist/chunk-VHESFBAQ.cjs.map +0 -1
- package/dist/chunk-WCE3O6UA.cjs +0 -123
- package/dist/chunk-WCE3O6UA.cjs.map +0 -1
- package/dist/chunk-Y3RSI2KV.cjs +0 -13
- package/dist/chunk-Y3RSI2KV.cjs.map +0 -1
- package/dist/chunk-YNA3GBAI.cjs +0 -103
- package/dist/chunk-YNA3GBAI.cjs.map +0 -1
- package/dist/chunk-YUR6N2RB.cjs +0 -124
- package/dist/chunk-ZIAB3EXU.cjs +0 -124
- package/dist/chunk-ZIAB3EXU.cjs.map +0 -1
- package/dist/chunk-ZLSX6FH3.js +0 -29
- package/dist/chunk-ZLSX6FH3.js.map +0 -1
- package/dist/hooks/useDebounce/index.cjs.map +0 -1
- package/dist/hooks/useDebounce/index.js.map +0 -1
- package/dist/hooks/useIsInitialRenderCycle/index.cjs.map +0 -1
- package/dist/hooks/useIsInitialRenderCycle/index.js.map +0 -1
- package/dist/hooks/useLocalStorage/index.cjs.map +0 -1
- package/dist/hooks/useLocalStorage/index.js.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/utils/createWithSuspense/index.cjs.map +0 -1
- package/dist/utils/createWithSuspense/index.js.map +0 -1
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @param value - The value to debounce
|
|
4
|
-
* @param delay - Delay in milliseconds
|
|
5
|
-
* @returns The debounced value
|
|
6
|
-
*/
|
|
7
|
-
declare const useDebounce: <Value>(value: Value, delay: number) => Value;
|
|
8
|
-
|
|
9
|
-
export { useDebounce };
|
|
1
|
+
import { useDebounce } from "./useDebounce.cjs";
|
|
2
|
+
export { useDebounce };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @param value - The value to debounce
|
|
4
|
-
* @param delay - Delay in milliseconds
|
|
5
|
-
* @returns The debounced value
|
|
6
|
-
*/
|
|
7
|
-
declare const useDebounce: <Value>(value: Value, delay: number) => Value;
|
|
8
|
-
|
|
9
|
-
export { useDebounce };
|
|
1
|
+
import { useDebounce } from "./useDebounce.js";
|
|
2
|
+
export { useDebounce };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
//#region src/hooks/useDebounce/useDebounce.ts
|
|
5
|
+
/**
|
|
6
|
+
* Hook that debounces a value
|
|
7
|
+
* @param value - The value to debounce
|
|
8
|
+
* @param delay - Delay in milliseconds
|
|
9
|
+
* @returns The debounced value
|
|
10
|
+
*/
|
|
11
|
+
const useDebounce = (value, delay) => {
|
|
12
|
+
const [debouncedValue, setDebouncedValue] = (0, react.useState)(value);
|
|
13
|
+
const isMountedRef = (0, react.useRef)(true);
|
|
14
|
+
(0, react.useEffect)(() => {
|
|
15
|
+
isMountedRef.current = true;
|
|
16
|
+
return () => {
|
|
17
|
+
isMountedRef.current = false;
|
|
18
|
+
};
|
|
19
|
+
}, []);
|
|
20
|
+
(0, react.useEffect)(() => {
|
|
21
|
+
if ((0, _fuf_stack_pixel_utils.isTestEnvironment)()) {
|
|
22
|
+
setDebouncedValue(value);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const handler = setTimeout(() => {
|
|
26
|
+
if (isMountedRef.current) setDebouncedValue(value);
|
|
27
|
+
}, delay);
|
|
28
|
+
return () => {
|
|
29
|
+
clearTimeout(handler);
|
|
30
|
+
};
|
|
31
|
+
}, [value, delay]);
|
|
32
|
+
return debouncedValue;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.useDebounce = useDebounce;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=useDebounce.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.cjs","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { isTestEnvironment } from '@fuf-stack/pixel-utils';\n\n/**\n * Hook that debounces a value\n * @param value - The value to debounce\n * @param delay - Delay in milliseconds\n * @returns The debounced value\n */\nexport const useDebounce = <Value>(value: Value, delay: number) => {\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n // Track if component is mounted to prevent setState on unmounted component\n const isMountedRef = useRef(true);\n\n useEffect(() => {\n // Mark as mounted\n isMountedRef.current = true;\n return () => {\n // Mark as unmounted on cleanup\n isMountedRef.current = false;\n };\n }, []);\n\n useEffect(\n () => {\n // In test environments, skip debouncing for immediate snapshots\n if (isTestEnvironment()) {\n setDebouncedValue(value);\n return;\n }\n\n // Update debounced value after delay\n const handler = setTimeout(() => {\n // Only update state if component is still mounted\n if (isMountedRef.current) {\n setDebouncedValue(value);\n }\n }, delay);\n\n // Cancel the timeout if value changes (also on delay change or unmount)\n // This is how we prevent debounced value from updating if value is changed ...\n // .. within the delay period. Timeout gets cleared and restarted.\n // eslint-disable-next-line consistent-return\n return () => {\n clearTimeout(handler);\n };\n },\n [value, delay], // Only re-call effect if value or delay changes\n );\n\n return debouncedValue;\n};\n"],"mappings":";;;;;;;;;;AAYA,MAAa,eAAsB,OAAc,UAAkB;CAEjE,MAAM,CAAC,gBAAgB,sBAAA,GAAA,MAAA,UAA8B,KAAK;CAE1D,MAAM,gBAAA,GAAA,MAAA,QAAsB,IAAI;CAEhC,CAAA,GAAA,MAAA,iBAAgB;EAEd,aAAa,UAAU;EACvB,aAAa;GAEX,aAAa,UAAU;EACzB;CACF,GAAG,CAAC,CAAC;CAEL,CAAA,GAAA,MAAA,iBACQ;EAEJ,KAAA,GAAA,uBAAA,mBAAsB,GAAG;GACvB,kBAAkB,KAAK;GACvB;EACF;EAGA,MAAM,UAAU,iBAAiB;GAE/B,IAAI,aAAa,SACf,kBAAkB,KAAK;EAE3B,GAAG,KAAK;EAMR,aAAa;GACX,aAAa,OAAO;EACtB;CACF,GACA,CAAC,OAAO,KAAK,CACf;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/hooks/useDebounce/useDebounce.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Hook that debounces a value
|
|
4
|
+
* @param value - The value to debounce
|
|
5
|
+
* @param delay - Delay in milliseconds
|
|
6
|
+
* @returns The debounced value
|
|
7
|
+
*/
|
|
8
|
+
declare const useDebounce: <Value>(value: Value, delay: number) => Value;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { useDebounce };
|
|
11
|
+
//# sourceMappingURL=useDebounce.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.cts","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"mappings":";;AAYA;;;;;cAAa,WAAA,UAAsB,KAAA,EAAO,KAAA,EAAO,KAAA,aAAa,KA2C7D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/hooks/useDebounce/useDebounce.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Hook that debounces a value
|
|
4
|
+
* @param value - The value to debounce
|
|
5
|
+
* @param delay - Delay in milliseconds
|
|
6
|
+
* @returns The debounced value
|
|
7
|
+
*/
|
|
8
|
+
declare const useDebounce: <Value>(value: Value, delay: number) => Value;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { useDebounce };
|
|
11
|
+
//# sourceMappingURL=useDebounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.ts","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"mappings":";;AAYA;;;;;cAAa,WAAA,UAAsB,KAAA,EAAO,KAAA,EAAO,KAAA,aAAa,KA2C7D"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { isTestEnvironment } from "@fuf-stack/pixel-utils";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
//#region src/hooks/useDebounce/useDebounce.ts
|
|
4
|
+
/**
|
|
5
|
+
* Hook that debounces a value
|
|
6
|
+
* @param value - The value to debounce
|
|
7
|
+
* @param delay - Delay in milliseconds
|
|
8
|
+
* @returns The debounced value
|
|
9
|
+
*/
|
|
10
|
+
const useDebounce = (value, delay) => {
|
|
11
|
+
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
12
|
+
const isMountedRef = useRef(true);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
isMountedRef.current = true;
|
|
15
|
+
return () => {
|
|
16
|
+
isMountedRef.current = false;
|
|
17
|
+
};
|
|
18
|
+
}, []);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (isTestEnvironment()) {
|
|
21
|
+
setDebouncedValue(value);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const handler = setTimeout(() => {
|
|
25
|
+
if (isMountedRef.current) setDebouncedValue(value);
|
|
26
|
+
}, delay);
|
|
27
|
+
return () => {
|
|
28
|
+
clearTimeout(handler);
|
|
29
|
+
};
|
|
30
|
+
}, [value, delay]);
|
|
31
|
+
return debouncedValue;
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { useDebounce };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=useDebounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.js","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { isTestEnvironment } from '@fuf-stack/pixel-utils';\n\n/**\n * Hook that debounces a value\n * @param value - The value to debounce\n * @param delay - Delay in milliseconds\n * @returns The debounced value\n */\nexport const useDebounce = <Value>(value: Value, delay: number) => {\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n // Track if component is mounted to prevent setState on unmounted component\n const isMountedRef = useRef(true);\n\n useEffect(() => {\n // Mark as mounted\n isMountedRef.current = true;\n return () => {\n // Mark as unmounted on cleanup\n isMountedRef.current = false;\n };\n }, []);\n\n useEffect(\n () => {\n // In test environments, skip debouncing for immediate snapshots\n if (isTestEnvironment()) {\n setDebouncedValue(value);\n return;\n }\n\n // Update debounced value after delay\n const handler = setTimeout(() => {\n // Only update state if component is still mounted\n if (isMountedRef.current) {\n setDebouncedValue(value);\n }\n }, delay);\n\n // Cancel the timeout if value changes (also on delay change or unmount)\n // This is how we prevent debounced value from updating if value is changed ...\n // .. within the delay period. Timeout gets cleared and restarted.\n // eslint-disable-next-line consistent-return\n return () => {\n clearTimeout(handler);\n };\n },\n [value, delay], // Only re-call effect if value or delay changes\n );\n\n return debouncedValue;\n};\n"],"mappings":";;;;;;;;;AAYA,MAAa,eAAsB,OAAc,UAAkB;CAEjE,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,KAAK;CAE1D,MAAM,eAAe,OAAO,IAAI;CAEhC,gBAAgB;EAEd,aAAa,UAAU;EACvB,aAAa;GAEX,aAAa,UAAU;EACzB;CACF,GAAG,CAAC,CAAC;CAEL,gBACQ;EAEJ,IAAI,kBAAkB,GAAG;GACvB,kBAAkB,KAAK;GACvB;EACF;EAGA,MAAM,UAAU,iBAAiB;GAE/B,IAAI,aAAa,SACf,kBAAkB,KAAK;EAE3B,GAAG,KAAK;EAMR,aAAa;GACX,aAAa,OAAO;EACtB;CACF,GACA,CAAC,OAAO,KAAK,CACf;CAEA,OAAO;AACT"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require('../../chunk-AHEA4IJV.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.useIsInitialRenderCycle = _chunkON3PVFZYcjs.useIsInitialRenderCycle;
|
|
8
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_useIsInitialRenderCycle = require("./useIsInitialRenderCycle.cjs");
|
|
3
|
+
exports.useIsInitialRenderCycle = require_useIsInitialRenderCycle.useIsInitialRenderCycle;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* @returns {boolean} - True on initial render, false afterward
|
|
5
|
-
*/
|
|
6
|
-
declare const useIsInitialRenderCycle: () => boolean;
|
|
7
|
-
|
|
8
|
-
export { useIsInitialRenderCycle };
|
|
1
|
+
import { useIsInitialRenderCycle } from "./useIsInitialRenderCycle.cjs";
|
|
2
|
+
export { useIsInitialRenderCycle };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* @returns {boolean} - True on initial render, false afterward
|
|
5
|
-
*/
|
|
6
|
-
declare const useIsInitialRenderCycle: () => boolean;
|
|
7
|
-
|
|
8
|
-
export { useIsInitialRenderCycle };
|
|
1
|
+
import { useIsInitialRenderCycle } from "./useIsInitialRenderCycle.js";
|
|
2
|
+
export { useIsInitialRenderCycle };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunk-GKYJUGD4.js";
|
|
4
|
-
import "../../chunk-OAIRL2FN.js";
|
|
5
|
-
export {
|
|
6
|
-
useIsInitialRenderCycle
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { useIsInitialRenderCycle } from "./useIsInitialRenderCycle.js";
|
|
2
|
+
export { useIsInitialRenderCycle };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let react = require("react");
|
|
3
|
+
//#region src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts
|
|
4
|
+
/**
|
|
5
|
+
* A hook that returns true on initial render and false afterward.
|
|
6
|
+
*
|
|
7
|
+
* @returns {boolean} - True on initial render, false afterward
|
|
8
|
+
*/
|
|
9
|
+
const useIsInitialRenderCycle = () => {
|
|
10
|
+
const isInitialRender = (0, react.useRef)(true);
|
|
11
|
+
(0, react.useEffect)(() => {
|
|
12
|
+
isInitialRender.current = false;
|
|
13
|
+
}, []);
|
|
14
|
+
return isInitialRender.current;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.useIsInitialRenderCycle = useIsInitialRenderCycle;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=useIsInitialRenderCycle.cjs.map
|
|
@@ -0,0 +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":";;;;;;;;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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A hook that returns true on initial render and false afterward.
|
|
4
|
+
*
|
|
5
|
+
* @returns {boolean} - True on initial render, false afterward
|
|
6
|
+
*/
|
|
7
|
+
declare const useIsInitialRenderCycle: () => boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useIsInitialRenderCycle };
|
|
10
|
+
//# sourceMappingURL=useIsInitialRenderCycle.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsInitialRenderCycle.d.cts","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"mappings":";;AASA;;;;cAAa,uBAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A hook that returns true on initial render and false afterward.
|
|
4
|
+
*
|
|
5
|
+
* @returns {boolean} - True on initial render, false afterward
|
|
6
|
+
*/
|
|
7
|
+
declare const useIsInitialRenderCycle: () => boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useIsInitialRenderCycle };
|
|
10
|
+
//# sourceMappingURL=useIsInitialRenderCycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsInitialRenderCycle.d.ts","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"mappings":";;AASA;;;;cAAa,uBAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
//#region src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts
|
|
3
|
+
/**
|
|
4
|
+
* A hook that returns true on initial render and false afterward.
|
|
5
|
+
*
|
|
6
|
+
* @returns {boolean} - True on initial render, false afterward
|
|
7
|
+
*/
|
|
8
|
+
const useIsInitialRenderCycle = () => {
|
|
9
|
+
const isInitialRender = useRef(true);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
isInitialRender.current = false;
|
|
12
|
+
}, []);
|
|
13
|
+
return isInitialRender.current;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { useIsInitialRenderCycle };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=useIsInitialRenderCycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsInitialRenderCycle.js","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,kBAAkB,OAAO,IAAI;CAGnC,gBAAgB;EAEd,gBAAgB,UAAU;CAG5B,GAAG,CAAC,CAAC;CAEL,OAAO,gBAAgB;AACzB"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require('../../chunk-AHEA4IJV.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.useLocalStorage = _chunkIXBNFKOScjs.useLocalStorage;
|
|
8
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_useLocalStorage = require("./useLocalStorage.cjs");
|
|
3
|
+
exports.useLocalStorage = require_useLocalStorage.useLocalStorage;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
|
|
4
|
-
|
|
5
|
-
export { useLocalStorage };
|
|
1
|
+
import { useLocalStorage } from "./useLocalStorage.cjs";
|
|
2
|
+
export { useLocalStorage };
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
|
|
4
|
-
|
|
5
|
-
export { useLocalStorage };
|
|
1
|
+
import { useLocalStorage } from "./useLocalStorage.js";
|
|
2
|
+
export { useLocalStorage };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let react = require("react");
|
|
3
|
+
//#region src/hooks/useLocalStorage/useLocalStorage.ts
|
|
4
|
+
const useLocalStorage = (key, initialValue) => {
|
|
5
|
+
const readValue = () => {
|
|
6
|
+
const resolveInitialValue = () => {
|
|
7
|
+
return typeof initialValue === "function" ? initialValue() : initialValue;
|
|
8
|
+
};
|
|
9
|
+
if (typeof window === "undefined") return resolveInitialValue();
|
|
10
|
+
try {
|
|
11
|
+
const item = window.localStorage.getItem(key);
|
|
12
|
+
if (item) return JSON.parse(item);
|
|
13
|
+
return resolveInitialValue();
|
|
14
|
+
} catch (error) {
|
|
15
|
+
console.warn(`Error reading localStorage key "${key}":`, error);
|
|
16
|
+
return resolveInitialValue();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const [storedValue, setStoredValue] = (0, react.useState)(readValue);
|
|
20
|
+
const setValue = (value) => {
|
|
21
|
+
if (typeof window === "undefined") {
|
|
22
|
+
console.warn(`Tried setting localStorage key "${key}" even though environment is not a client`);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
const newValue = value instanceof Function ? value(storedValue) : value;
|
|
27
|
+
window.localStorage.setItem(key, JSON.stringify(newValue));
|
|
28
|
+
setStoredValue(newValue);
|
|
29
|
+
window.dispatchEvent(new Event("local-storage"));
|
|
30
|
+
} catch (error) {
|
|
31
|
+
console.warn(`Error setting localStorage key "${key}":`, error);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
(0, react.useEffect)(() => {
|
|
35
|
+
setStoredValue(readValue());
|
|
36
|
+
}, []);
|
|
37
|
+
(0, react.useEffect)(() => {
|
|
38
|
+
if (typeof window === "undefined") return;
|
|
39
|
+
const handleStorageChange = () => {
|
|
40
|
+
setStoredValue(readValue());
|
|
41
|
+
};
|
|
42
|
+
window.addEventListener("storage", handleStorageChange);
|
|
43
|
+
window.addEventListener("local-storage", handleStorageChange);
|
|
44
|
+
return () => {
|
|
45
|
+
window.removeEventListener("storage", handleStorageChange);
|
|
46
|
+
window.removeEventListener("local-storage", handleStorageChange);
|
|
47
|
+
};
|
|
48
|
+
}, []);
|
|
49
|
+
return [storedValue, setValue];
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.useLocalStorage = useLocalStorage;
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=useLocalStorage.cjs.map
|
|
@@ -0,0 +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":";;;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useLocalStorage/useLocalStorage.d.ts
|
|
4
|
+
declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useLocalStorage };
|
|
7
|
+
//# sourceMappingURL=useLocalStorage.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocalStorage.d.cts","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"mappings":";;;cAMa,eAAA,MACX,GAAA,UACA,YAAA,EAAc,CAAA,UAAW,CAAA,OACvB,CAAA,EAAG,QAAA,CAAS,cAAA,CAAe,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/useLocalStorage/useLocalStorage.d.ts
|
|
4
|
+
declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useLocalStorage };
|
|
7
|
+
//# sourceMappingURL=useLocalStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocalStorage.d.ts","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"mappings":";;;cAMa,eAAA,MACX,GAAA,UACA,YAAA,EAAc,CAAA,UAAW,CAAA,OACvB,CAAA,EAAG,QAAA,CAAS,cAAA,CAAe,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
//#region src/hooks/useLocalStorage/useLocalStorage.ts
|
|
3
|
+
const useLocalStorage = (key, initialValue) => {
|
|
4
|
+
const readValue = () => {
|
|
5
|
+
const resolveInitialValue = () => {
|
|
6
|
+
return typeof initialValue === "function" ? initialValue() : initialValue;
|
|
7
|
+
};
|
|
8
|
+
if (typeof window === "undefined") return resolveInitialValue();
|
|
9
|
+
try {
|
|
10
|
+
const item = window.localStorage.getItem(key);
|
|
11
|
+
if (item) return JSON.parse(item);
|
|
12
|
+
return resolveInitialValue();
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.warn(`Error reading localStorage key "${key}":`, error);
|
|
15
|
+
return resolveInitialValue();
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const [storedValue, setStoredValue] = useState(readValue);
|
|
19
|
+
const setValue = (value) => {
|
|
20
|
+
if (typeof window === "undefined") {
|
|
21
|
+
console.warn(`Tried setting localStorage key "${key}" even though environment is not a client`);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const newValue = value instanceof Function ? value(storedValue) : value;
|
|
26
|
+
window.localStorage.setItem(key, JSON.stringify(newValue));
|
|
27
|
+
setStoredValue(newValue);
|
|
28
|
+
window.dispatchEvent(new Event("local-storage"));
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.warn(`Error setting localStorage key "${key}":`, error);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
setStoredValue(readValue());
|
|
35
|
+
}, []);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (typeof window === "undefined") return;
|
|
38
|
+
const handleStorageChange = () => {
|
|
39
|
+
setStoredValue(readValue());
|
|
40
|
+
};
|
|
41
|
+
window.addEventListener("storage", handleStorageChange);
|
|
42
|
+
window.addEventListener("local-storage", handleStorageChange);
|
|
43
|
+
return () => {
|
|
44
|
+
window.removeEventListener("storage", handleStorageChange);
|
|
45
|
+
window.removeEventListener("local-storage", handleStorageChange);
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
48
|
+
return [storedValue, setValue];
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { useLocalStorage };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=useLocalStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocalStorage.js","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,kBAAkB,SAAY,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,gBAAgB;EACd,eAAe,UAAU,CAAC;CAE5B,GAAG,CAAC,CAAC;CAEL,gBAAgB;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"}
|