@gemeente-denhaag/sidenav
Advanced tools
Comparing version 0.1.0-alpha.175 to 0.1.0-alpha.176
@@ -0,0 +0,0 @@ import './index.scss'; |
@@ -1,2 +0,2 @@ | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var React=require('react');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var React__default=/*#__PURE__*/_interopDefaultLegacy(React);function styleInject(css, ref) { | ||
'use strict';var React=require('react');function styleInject(css, ref) { | ||
if ( ref === void 0 ) ref = {}; | ||
@@ -41,42 +41,44 @@ var insertAt = ref.insertAt; | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}var Sidenav = function (props) { | ||
var className = clsx('denhaag-sidenav', props.className); | ||
return (React__default["default"].createElement("nav", __assign({}, props, { className: className }), props.children)); | ||
return (React.createElement("nav", __assign({}, props, { className: className }), props.children)); | ||
};var SidenavItem = function (props) { | ||
var className = clsx('denhaag-sidenav__item', props.className); | ||
return (React__default["default"].createElement("li", __assign({}, props, { className: className }), props.children)); | ||
return (React.createElement("li", __assign({}, props, { className: className }), props.children)); | ||
};var SidenavList = function (props) { | ||
var className = clsx('denhaag-sidenav__list', props.className); | ||
return (React__default["default"].createElement("ul", __assign({}, props, { className: className }), props.children)); | ||
return (React.createElement("ul", __assign({}, props, { className: className }), props.children)); | ||
};var SidenavLink = function (_a) { | ||
var current = _a.current, props = __rest(_a, ["current"]); | ||
var className = clsx('denhaag-sidenav__link', current && 'denhaag-sidenav__link--current', props.className); | ||
return (React__default["default"].createElement("a", __assign({}, props, { "aria-current": current || props['aria-current'] ? 'page' : undefined, className: className }), props.children)); | ||
return (React.createElement("a", __assign({}, props, { "aria-current": current || props['aria-current'] ? 'page' : undefined, className: className }), props.children)); | ||
};exports.Sidenav=Sidenav;exports.SidenavItem=SidenavItem;exports.SidenavLink=SidenavLink;exports.SidenavList=SidenavList; |
@@ -0,0 +0,0 @@ import React, { HTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import React, { LiHTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import React, { AnchorHTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import React, { HTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import './index.scss'; |
@@ -41,29 +41,31 @@ import React from'react';function styleInject(css, ref) { | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}var Sidenav = function (props) { | ||
@@ -70,0 +72,0 @@ var className = clsx('denhaag-sidenav', props.className); |
@@ -0,0 +0,0 @@ import React, { HTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import React, { LiHTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import React, { AnchorHTMLAttributes } from 'react'; |
@@ -0,0 +0,0 @@ import React, { HTMLAttributes } from 'react'; |
{ | ||
"name": "@gemeente-denhaag/sidenav", | ||
"version": "0.1.0-alpha.175", | ||
"version": "0.1.0-alpha.176", | ||
"description": "A sidenav component", | ||
@@ -29,8 +29,9 @@ "bugs": "https://github.com/nl-design-system/denhaag/issues", | ||
"build": "rollup -c ../../rollup.config.mjs", | ||
"clean": "rimraf dist tsconfig.tsbuildinfo" | ||
"clean": "rimraf dist tsconfig.tsbuildinfo", | ||
"watch:components": "chokidar --silent --follow-symlinks \"src/**/*\" -c \"pnpm run build\"" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17.0.0 || ^18.0.0" | ||
"react": "^18.0.0" | ||
}, | ||
"gitHead": "b3b390c174202f681ff4070c671c7b5a85041270" | ||
"gitHead": "643bf10c93681ac6e00bdbcb22e2dd8cbc294cdc" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261
35005