@fremtind/jkl-icon-button-react
Advanced tools
Comparing version 5.0.29 to 5.0.30
@@ -6,4 +6,30 @@ "use strict"; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
var __objRest = (source, exclude) => { | ||
var target = {}; | ||
for (var prop in source) | ||
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) | ||
target[prop] = source[prop]; | ||
if (source != null && __getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(source)) { | ||
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) | ||
target[prop] = source[prop]; | ||
} | ||
return target; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -39,6 +65,6 @@ for (var name in all) | ||
(props, ref) => { | ||
const { className, children, density, ...rest } = props; | ||
const _a = props, { className, children, density } = _a, rest = __objRest(_a, ["className", "children", "density"]); | ||
return /* @__PURE__ */ import_react.default.createElement( | ||
"button", | ||
{ | ||
__spreadValues({ | ||
ref, | ||
@@ -48,5 +74,4 @@ type: "button", | ||
"data-testid": "jkl-icon-button", | ||
"data-density": density, | ||
...rest | ||
}, | ||
"data-density": density | ||
}, rest), | ||
children | ||
@@ -53,0 +78,0 @@ ); |
@@ -0,1 +1,29 @@ | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
var __objRest = (source, exclude) => { | ||
var target = {}; | ||
for (var prop in source) | ||
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) | ||
target[prop] = source[prop]; | ||
if (source != null && __getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(source)) { | ||
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) | ||
target[prop] = source[prop]; | ||
} | ||
return target; | ||
}; | ||
import cn from "classnames"; | ||
@@ -5,6 +33,6 @@ import React, { forwardRef } from "react"; | ||
(props, ref) => { | ||
const { className, children, density, ...rest } = props; | ||
const _a = props, { className, children, density } = _a, rest = __objRest(_a, ["className", "children", "density"]); | ||
return /* @__PURE__ */ React.createElement( | ||
"button", | ||
{ | ||
__spreadValues({ | ||
ref, | ||
@@ -14,5 +42,4 @@ type: "button", | ||
"data-testid": "jkl-icon-button", | ||
"data-density": density, | ||
...rest | ||
}, | ||
"data-density": density | ||
}, rest), | ||
children | ||
@@ -19,0 +46,0 @@ ); |
{ | ||
"name": "@fremtind/jkl-icon-button-react", | ||
"version": "5.0.29", | ||
"version": "5.0.30", | ||
"publishConfig": { | ||
@@ -43,9 +43,9 @@ "access": "public" | ||
"dependencies": { | ||
"@fremtind/jkl-core": "^14.8.8", | ||
"@fremtind/jkl-icon-button": "^4.0.32", | ||
"classnames": "^2.3.2" | ||
"@fremtind/jkl-core": "^14.8.9", | ||
"@fremtind/jkl-icon-button": "^4.0.33", | ||
"classnames": "^2.5.1" | ||
}, | ||
"devDependencies": { | ||
"@fremtind/jkl-icons-react": "^9.1.21", | ||
"@fremtind/jkl-toggle-switch-react": "^13.1.42" | ||
"@fremtind/jkl-icons-react": "^9.1.22", | ||
"@fremtind/jkl-toggle-switch-react": "^13.1.43" | ||
}, | ||
@@ -65,3 +65,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "6ccee5218b9cdfd6ccc542d6b9dd9f630422b2ff" | ||
"gitHead": "76fbf2eee70a9b2c2eaa952a65398a70a25688c9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14748
198
Updated@fremtind/jkl-core@^14.8.9
Updatedclassnames@^2.5.1