Socket
Socket
Sign inDemoInstall

@fremtind/jkl-react-hooks

Package Overview
Dependencies
Maintainers
3
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-react-hooks - npm Package Compare versions

Comparing version 9.1.9 to 10.0.0

6

build/cjs/useAnimatedHeight.js

@@ -28,4 +28,4 @@ "use strict";

var import_usePreviousValue = require("./usePreviousValue/usePreviousValue");
const defaultEasing = import_jkl_core.easings.standard;
const defaultTiming = import_jkl_core.timings.productive;
const defaultEasing = "standard";
const defaultTiming = "productive";
function useAnimatedHeight(isOpen, options) {

@@ -35,3 +35,3 @@ const wasOpen = (0, import_usePreviousValue.usePreviousValue)(isOpen);

const timing = (options == null ? void 0 : options.timing) || defaultTiming;
const transition = `${timing} height ${easing}`;
const transition = `${import_jkl_core.timings[timing]} height ${import_jkl_core.easings[easing]}`;
const { prefersReducedMotion } = (0, import_useBrowserPreferences.useBrowserPreferences)();

@@ -38,0 +38,0 @@ const raf1 = (0, import_react.useRef)();

@@ -5,4 +5,4 @@ import { easings, timings } from "@fremtind/jkl-core";

import { usePreviousValue } from "./usePreviousValue/usePreviousValue";
const defaultEasing = easings.standard;
const defaultTiming = timings.productive;
const defaultEasing = "standard";
const defaultTiming = "productive";
function useAnimatedHeight(isOpen, options) {

@@ -12,3 +12,3 @@ const wasOpen = usePreviousValue(isOpen);

const timing = (options == null ? void 0 : options.timing) || defaultTiming;
const transition = `${timing} height ${easing}`;
const transition = `${timings[timing]} height ${easings[easing]}`;
const { prefersReducedMotion } = useBrowserPreferences();

@@ -15,0 +15,0 @@ const raf1 = useRef();

@@ -1,2 +0,7 @@

export declare type ColorScheme = "light" | "dark";
import { ColorScheme } from "@fremtind/jkl-core";
export type {
/**
* @deprecated Importer typen fra `@fremtind/jkl-core` i stedet
*/
ColorScheme, };
declare type BrowserPreferences = {

@@ -8,2 +13,1 @@ prefersReducedMotion: boolean;

export declare const useBrowserPreferences: () => BrowserPreferences;
export {};
{
"name": "@fremtind/jkl-react-hooks",
"version": "9.1.9",
"version": "10.0.0",
"publishConfig": {

@@ -42,3 +42,3 @@ "access": "public"

"dependencies": {
"@fremtind/jkl-core": "^10.1.0",
"@fremtind/jkl-core": "^11.0.0",
"nanoid": "^3.3.2"

@@ -59,3 +59,3 @@ },

},
"gitHead": "38fdb174d241566022023fa3bc75196312f62707"
"gitHead": "a223b8f8d61c99d9adb16415cd8888f5a418b1ea"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc