New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fremtind/jkl-icon-button-react

Package Overview
Dependencies
Maintainers
2
Versions
242
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-icon-button-react - npm Package Compare versions

Comparing version 0.2.25 to 0.3.0

56

build/browser/index.js

@@ -0,57 +1,5 @@

import _extends from '@babel/runtime/helpers/extends';
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
import React from 'react';
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
var IconSearch = function IconSearch() {

@@ -58,0 +6,0 @@ return /*#__PURE__*/React.createElement("svg", {

2

build/browser/index.min.js

@@ -1,1 +0,1 @@

import e from"react";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var n=function(){return e.createElement("svg",{"data-testid":"jkl-search-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"9.5",cy:"9.5",r:"8.5",stroke:"currentColor",strokeWidth:"1.5"}),e.createElement("path",{d:"M23 23L15 15",stroke:"currentColor",strokeWidth:"1.5"}))},o=function(){return e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M3 21L21 3",stroke:"currentColor",strokeWidth:"1.5"}),e.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"1.5"}))},l=function(){return e.createElement("svg",{viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{stroke:"currentColor",d:"M.5 3.5h23v20H.5zM6.5 0v7M17.5 0v7"}),e.createElement("path",{fill:"currentColor",d:"M4.5 9.5H6V11H4.5zM4.5 14H6v1.5H4.5zM4.5 18.5H6V20H4.5zM9 9.5h1.5V11H9zM9 14h1.5v1.5H9zM9 18.5h1.5V20H9zM13.5 9.5H15V11h-1.5zM13.5 14H15v1.5h-1.5zM13.5 18.5H15V20h-1.5zM18 9.5h1.5V11H18zM18 14h1.5v1.5H18zM18 18.5h1.5V20H18z"}))};var c=function(c){var a=c.iconType,i=void 0===a?"clear":a,u=c.buttonTitle,s=r(c,["iconType","buttonTitle"]);return e.createElement("button",t({type:"button",title:u,"data-testid":"jkl-icon-button",className:"jkl-icon-button"},s),e.createElement("span",{"data-testid":"jkl-action-icon",className:"jkl-icon-button__icon"},function(t){switch(t){case"clear":return e.createElement(o,null);case"search":return e.createElement(n,null);case"calendar":return e.createElement(l,null);default:return null}}(i)),e.createElement("span",{className:"jkl-sr-only"},u))};export{c as IconButton};
import e from"@babel/runtime/helpers/extends";import t from"@babel/runtime/helpers/objectWithoutProperties";import r from"react";var n=function(){return r.createElement("svg",{"data-testid":"jkl-search-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"9.5",cy:"9.5",r:"8.5",stroke:"currentColor",strokeWidth:"1.5"}),r.createElement("path",{d:"M23 23L15 15",stroke:"currentColor",strokeWidth:"1.5"}))},o=function(){return r.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M3 21L21 3",stroke:"currentColor",strokeWidth:"1.5"}),r.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"1.5"}))},l=function(){return r.createElement("svg",{viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{stroke:"currentColor",d:"M.5 3.5h23v20H.5zM6.5 0v7M17.5 0v7"}),r.createElement("path",{fill:"currentColor",d:"M4.5 9.5H6V11H4.5zM4.5 14H6v1.5H4.5zM4.5 18.5H6V20H4.5zM9 9.5h1.5V11H9zM9 14h1.5v1.5H9zM9 18.5h1.5V20H9zM13.5 9.5H15V11h-1.5zM13.5 14H15v1.5h-1.5zM13.5 18.5H15V20h-1.5zM18 9.5h1.5V11H18zM18 14h1.5v1.5H18zM18 18.5h1.5V20H18z"}))};var c=function(c){var a=c.iconType,i=void 0===a?"clear":a,s=c.buttonTitle,u=t(c,["iconType","buttonTitle"]);return r.createElement("button",e({type:"button",title:s,"data-testid":"jkl-icon-button",className:"jkl-icon-button"},u),r.createElement("span",{"data-testid":"jkl-action-icon",className:"jkl-icon-button__icon"},function(e){switch(e){case"clear":return r.createElement(o,null);case"search":return r.createElement(n,null);case"calendar":return r.createElement(l,null);default:return null}}(i)),r.createElement("span",{className:"jkl-sr-only"},s))};export{c as IconButton};

@@ -7,58 +7,6 @@ 'use strict';

var _extends = _interopDefault(require('@babel/runtime/helpers/extends'));
var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
var React = _interopDefault(require('react'));
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
var IconSearch = function IconSearch() {

@@ -65,0 +13,0 @@ return /*#__PURE__*/React.createElement("svg", {

@@ -0,57 +1,5 @@

import _extends from '@babel/runtime/helpers/extends';
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
import React from 'react';
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
var IconSearch = function IconSearch() {

@@ -58,0 +6,0 @@ return /*#__PURE__*/React.createElement("svg", {

@@ -1,1 +0,1 @@

import e from"react";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var n=function(){return e.createElement("svg",{"data-testid":"jkl-search-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"9.5",cy:"9.5",r:"8.5",stroke:"currentColor",strokeWidth:"1.5"}),e.createElement("path",{d:"M23 23L15 15",stroke:"currentColor",strokeWidth:"1.5"}))},o=function(){return e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M3 21L21 3",stroke:"currentColor",strokeWidth:"1.5"}),e.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"1.5"}))},l=function(){return e.createElement("svg",{viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{stroke:"currentColor",d:"M.5 3.5h23v20H.5zM6.5 0v7M17.5 0v7"}),e.createElement("path",{fill:"currentColor",d:"M4.5 9.5H6V11H4.5zM4.5 14H6v1.5H4.5zM4.5 18.5H6V20H4.5zM9 9.5h1.5V11H9zM9 14h1.5v1.5H9zM9 18.5h1.5V20H9zM13.5 9.5H15V11h-1.5zM13.5 14H15v1.5h-1.5zM13.5 18.5H15V20h-1.5zM18 9.5h1.5V11H18zM18 14h1.5v1.5H18zM18 18.5h1.5V20H18z"}))};var c=function(c){var a=c.iconType,i=void 0===a?"clear":a,u=c.buttonTitle,s=r(c,["iconType","buttonTitle"]);return e.createElement("button",t({type:"button",title:u,"data-testid":"jkl-icon-button",className:"jkl-icon-button"},s),e.createElement("span",{"data-testid":"jkl-action-icon",className:"jkl-icon-button__icon"},function(t){switch(t){case"clear":return e.createElement(o,null);case"search":return e.createElement(n,null);case"calendar":return e.createElement(l,null);default:return null}}(i)),e.createElement("span",{className:"jkl-sr-only"},u))};export{c as IconButton};
import e from"@babel/runtime/helpers/extends";import t from"@babel/runtime/helpers/objectWithoutProperties";import r from"react";var n=function(){return r.createElement("svg",{"data-testid":"jkl-search-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"9.5",cy:"9.5",r:"8.5",stroke:"currentColor",strokeWidth:"1.5"}),r.createElement("path",{d:"M23 23L15 15",stroke:"currentColor",strokeWidth:"1.5"}))},o=function(){return r.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M3 21L21 3",stroke:"currentColor",strokeWidth:"1.5"}),r.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"1.5"}))},l=function(){return r.createElement("svg",{viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{stroke:"currentColor",d:"M.5 3.5h23v20H.5zM6.5 0v7M17.5 0v7"}),r.createElement("path",{fill:"currentColor",d:"M4.5 9.5H6V11H4.5zM4.5 14H6v1.5H4.5zM4.5 18.5H6V20H4.5zM9 9.5h1.5V11H9zM9 14h1.5v1.5H9zM9 18.5h1.5V20H9zM13.5 9.5H15V11h-1.5zM13.5 14H15v1.5h-1.5zM13.5 18.5H15V20h-1.5zM18 9.5h1.5V11H18zM18 14h1.5v1.5H18zM18 18.5h1.5V20H18z"}))};var c=function(c){var a=c.iconType,i=void 0===a?"clear":a,s=c.buttonTitle,u=t(c,["iconType","buttonTitle"]);return r.createElement("button",e({type:"button",title:s,"data-testid":"jkl-icon-button",className:"jkl-icon-button"},u),r.createElement("span",{"data-testid":"jkl-action-icon",className:"jkl-icon-button__icon"},function(e){switch(e){case"clear":return r.createElement(o,null);case"search":return r.createElement(n,null);case"calendar":return r.createElement(l,null);default:return null}}(i)),r.createElement("span",{className:"jkl-sr-only"},s))};export{c as IconButton};

@@ -6,2 +6,13 @@ # Change Log

# [0.3.0](https://github.com/fremtind/jokul/compare/@fremtind/jkl-icon-button-react@0.2.25...@fremtind/jkl-icon-button-react@0.3.0) (2020-07-29)
### Features
* **build:** use @babel/runtime instead of inlining helpers in each file ([bbadce5](https://github.com/fremtind/jokul/commit/bbadce52ba4da5d540b479b07273332587bed436)), closes [#1136](https://github.com/fremtind/jokul/issues/1136)
## 0.2.25 (2020-07-08)

@@ -8,0 +19,0 @@

{
"name": "@fremtind/jkl-icon-button-react",
"version": "0.2.25",
"version": "0.3.0",
"publishConfig": {

@@ -39,8 +39,9 @@ "access": "public"

"dependencies": {
"@fremtind/jkl-icon-button": "^0.2.19"
"@babel/runtime": "^7.9.0",
"@fremtind/jkl-icon-button": "^0.2.20"
},
"devDependencies": {
"@fremtind/browserslist-config-jkl": "^0.5.3",
"@fremtind/jkl-portal-components": "^0.3.16",
"@fremtind/jkl-toggle-switch-react": "^2.2.26"
"@fremtind/jkl-portal-components": "^0.4.0",
"@fremtind/jkl-toggle-switch-react": "^2.3.0"
},

@@ -63,3 +64,3 @@ "peerDependencies": {

],
"gitHead": "bcd9aa0bc572427d843935c7ed4cd67185e8b621"
"gitHead": "4fb5d732a85a32d7c79d0502e530adbdfbd49eab"
}
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