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

@fremtind/jkl-list-react

Package Overview
Dependencies
Maintainers
0
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 10.2.25 to 10.2.26

60

build/cjs/LinkList.js

@@ -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) => {

@@ -38,14 +64,14 @@ for (var name in all)

var import_react = __toESM(require("react"));
const Item = ({ className, ...rest }) => {
return /* @__PURE__ */ import_react.default.createElement("li", { className: (0, import_classnames.default)("jkl-link-list-item", className), ...rest });
const Item = (_a) => {
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
return /* @__PURE__ */ import_react.default.createElement("li", __spreadValues({ className: (0, import_classnames.default)("jkl-link-list-item", className) }, rest));
};
const Link = import_react.default.forwardRef(function LinkListLink(props, ref) {
const { as: Component = "a", children, className, ...rest } = props;
const _a = props, { as: Component = "a", children, className } = _a, rest = __objRest(_a, ["as", "children", "className"]);
return /* @__PURE__ */ import_react.default.createElement(
Component,
{
__spreadValues({
className: (0, import_classnames.default)("jkl-link-list-link", className),
ref,
...rest
},
ref
}, rest),
children,

@@ -55,17 +81,19 @@ /* @__PURE__ */ import_react.default.createElement(import_jkl_icons_react.ArrowRightIcon, { className: "jkl-link-list-link__arrow" })

});
const LinkList = ({
variant,
className,
...rest
}) => {
const LinkList = (_c) => {
var _d = _c, {
variant,
className
} = _d, rest = __objRest(_d, [
"variant",
"className"
]);
const Component = variant === "ordered" ? "ol" : "ul";
return /* @__PURE__ */ import_react.default.createElement(
Component,
{
__spreadValues({
className: (0, import_classnames.default)("jkl-link-list", className, {
"jkl-link-list--ordered": variant === "ordered",
"jkl-link-list--unordered": variant === "unordered"
}),
...rest
}
})
}, rest)
);

@@ -72,0 +100,0 @@ };

@@ -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) => {

@@ -40,13 +66,13 @@ for (var name in all)

function makeListComponent(listType) {
const BaseList = ({ children, className, ...rest }) => {
const BaseList = (_a) => {
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
const C = listType === "ordered" ? "ol" : "ul";
return /* @__PURE__ */ import_react.default.createElement(
C,
{
__spreadValues({
className: (0, import_classnames.default)("jkl-list", className, {
"jkl-list--ordered": listType === "ordered"
}),
"data-testid": "jkl-list",
...rest
},
"data-testid": "jkl-list"
}, rest),
children

@@ -53,0 +79,0 @@ );

@@ -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) => {

@@ -40,6 +66,7 @@ for (var name in all)

function makeListItem(listItemType) {
const ListItem2 = ({ className, children, ...rest }) => {
const ListItem2 = (_a) => {
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
return /* @__PURE__ */ import_react.default.createElement(
"li",
{
__spreadValues({
className: (0, import_classnames.default)("jkl-list__item", className, {

@@ -50,5 +77,4 @@ "jkl-list__item--iconed": listItemType !== "normal",

}),
"data-testid": "jkl-list-item",
...rest
},
"data-testid": "jkl-list-item"
}, rest),
children

@@ -55,0 +81,0 @@ );

@@ -0,16 +1,44 @@

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 { ArrowRightIcon } from "@fremtind/jkl-icons-react";
import cn from "classnames";
import React from "react";
const Item = ({ className, ...rest }) => {
return /* @__PURE__ */ React.createElement("li", { className: cn("jkl-link-list-item", className), ...rest });
const Item = (_a) => {
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
return /* @__PURE__ */ React.createElement("li", __spreadValues({ className: cn("jkl-link-list-item", className) }, rest));
};
const Link = React.forwardRef(function LinkListLink(props, ref) {
const { as: Component = "a", children, className, ...rest } = props;
const _a = props, { as: Component = "a", children, className } = _a, rest = __objRest(_a, ["as", "children", "className"]);
return /* @__PURE__ */ React.createElement(
Component,
{
__spreadValues({
className: cn("jkl-link-list-link", className),
ref,
...rest
},
ref
}, rest),
children,

@@ -20,17 +48,19 @@ /* @__PURE__ */ React.createElement(ArrowRightIcon, { className: "jkl-link-list-link__arrow" })

});
const LinkList = ({
variant,
className,
...rest
}) => {
const LinkList = (_c) => {
var _d = _c, {
variant,
className
} = _d, rest = __objRest(_d, [
"variant",
"className"
]);
const Component = variant === "ordered" ? "ol" : "ul";
return /* @__PURE__ */ React.createElement(
Component,
{
__spreadValues({
className: cn("jkl-link-list", className, {
"jkl-link-list--ordered": variant === "ordered",
"jkl-link-list--unordered": variant === "unordered"
}),
...rest
}
})
}, rest)
);

@@ -37,0 +67,0 @@ };

@@ -0,15 +1,43 @@

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 cx from "classnames";
import React from "react";
function makeListComponent(listType) {
const BaseList = ({ children, className, ...rest }) => {
const BaseList = (_a) => {
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
const C = listType === "ordered" ? "ol" : "ul";
return /* @__PURE__ */ React.createElement(
C,
{
__spreadValues({
className: cx("jkl-list", className, {
"jkl-list--ordered": listType === "ordered"
}),
"data-testid": "jkl-list",
...rest
},
"data-testid": "jkl-list"
}, rest),
children

@@ -16,0 +44,0 @@ );

@@ -0,8 +1,37 @@

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 cx from "classnames";
import React from "react";
function makeListItem(listItemType) {
const ListItem2 = ({ className, children, ...rest }) => {
const ListItem2 = (_a) => {
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
return /* @__PURE__ */ React.createElement(
"li",
{
__spreadValues({
className: cx("jkl-list__item", className, {

@@ -13,5 +42,4 @@ "jkl-list__item--iconed": listItemType !== "normal",

}),
"data-testid": "jkl-list-item",
...rest
},
"data-testid": "jkl-list-item"
}, rest),
children

@@ -18,0 +46,0 @@ );

@@ -1,4 +0,3 @@

/// <reference types="react" />
export type UnorderedListProps = React.HTMLAttributes<HTMLUListElement>;
export type OrderedListProps = React.HTMLAttributes<HTMLOListElement>;
export type ListProps = UnorderedListProps | OrderedListProps;
{
"name": "@fremtind/jkl-list-react",
"version": "10.2.25",
"version": "10.2.26",
"publishConfig": {

@@ -43,6 +43,6 @@ "access": "public"

"dependencies": {
"@fremtind/jkl-core": "^14.8.8",
"@fremtind/jkl-icons-react": "^9.1.21",
"@fremtind/jkl-list": "^11.0.1",
"classnames": "^2.3.2"
"@fremtind/jkl-core": "^14.8.9",
"@fremtind/jkl-icons-react": "^9.1.22",
"@fremtind/jkl-list": "^11.0.2",
"classnames": "^2.5.1"
},

@@ -62,3 +62,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

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