Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gemeente-denhaag/action

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gemeente-denhaag/action - npm Package Compare versions

Comparing version 0.1.1-alpha.59 to 0.1.1-alpha.60

11

dist/cjs/index.js

@@ -1365,3 +1365,8 @@ 'use strict';var React=require('react'),dateFns=require('date-fns');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var React__namespace=/*#__PURE__*/_interopNamespaceDefault(React);var css_248z$2 = ".denhaag-action{background-color:var(--denhaag-action-background-color);border-color:var(--denhaag-action-border-color);border-style:var(--denhaag-action-border-style);border-width:var(--denhaag-action-border-width);color:var(--denhaag-action-color);display:flex;flex-direction:column;gap:var(--denhaag-action-gap);justify-content:space-between;padding-block-end:var(--denhaag-action-padding-block-end);padding-block-start:var(--denhaag-action-padding-block-start);padding-inline-end:var(--denhaag-action-padding-inline-end);padding-inline-start:var(--denhaag-action-padding-inline-start)}@media (width >= 768px){.denhaag-action{align-items:center;flex-direction:row;gap:var(--denhaag-action-lg-gap);padding-block-end:var(--denhaag-action-lg-padding-block-end);padding-block-start:var(--denhaag-action-lg-padding-block-start)}}.denhaag-action__details{display:flex;flex-direction:column;flex-shrink:0;gap:var(--denhaag-action-details-gap)}@media (width >= 768px){.denhaag-action__details{align-items:center;flex-direction:row;gap:var(--denhaag-action-details-lg-gap)}}.denhaag-action__content b,.denhaag-action__content strong{font-weight:var(--denhaag-action-content-bold-font-weight)}.denhaag-action__date{align-items:center;color:var(--denhaag-action-date-color);display:flex;font-weight:var(--denhaag-action-date-font-weight);gap:var(--denhaag-action-date-gap)}.denhaag-action__date--warning{align-items:center;color:var(--denhaag-action-date-warning-color);display:flex;font-weight:var(--denhaag-action-date-warning-font-weight);gap:var(--denhaag-action-date-warning-gap)}.denhaag-action__actions{--utrecht-button-max-inline-size:100%;align-items:center;display:flex;gap:var(--denhaag-action-actions-gap)}.denhaag-action__actions>a{width:100%}@media (width >= 768px){.denhaag-action__actions>a{width:auto}}.denhaag-action__link-icon{color:var(--denhaag-action-link-icon-color);flex-shrink:0;width:var(--denhaag-action-link-icon-width)}.denhaag-action__warning-icon{color:var(--denhaag-action-warning-icon-color);flex-shrink:0;width:var(--denhaag-action-warning-icon-width)}.denhaag-action--single{border-left:none;border-right:none;border-top:none;padding-block-end:var(--denhaag-action-single-padding-block-end);padding-block-start:var(--denhaag-action-single-padding-block-start);padding-inline-end:var(--denhaag-action-single-padding-inline-end);padding-inline-start:var(--denhaag-action-single-padding-inline-start);text-decoration:none}.denhaag-action--single.denhaag-action--hover,.denhaag-action--single:hover{background-color:var(--denhaag-action-single-hover-background-color)}.denhaag-action--single.denhaag-action--focus,.denhaag-action--single:focus{outline-color:var(--denhaag-file-focus-outline-color);outline-style:var(--denhaag-file-focus-outline-style);outline-width:var(--denhaag-file-focus-outline-width)}.denhaag-action--single .denhaag-action__details{flex-direction:row;gap:var(--denhaag-action-single-details-gap);justify-content:space-between}@media (width >= 768px){.denhaag-action--single .denhaag-action__details{gap:var(--denhaag-action-single-details-lg-gap)}}.denhaag-action--multi+.denhaag-action--multi{border-top:none}";

var _b, _c;
var dateTime = _a.dateTime, _d = _a.now, now = _d === void 0 ? new Date().toISOString() : _d, _e = _a.locale, locale = _e === void 0 ? nl : _e, labels = _a.labels, relative = _a.relative;
var dateTime = _a.dateTime, _d = _a.now, now = _d === void 0 ? new Date().toISOString() : _d, relative = _a.relative, _e = _a.locale, locale = _e === void 0 ? nl : _e, _f = _a.format, format$1 = _f === void 0 ? relative ? 'd MMMM yyyy' : 'd-M-yyyy' : _f, _g = _a.labels, labels = _g === void 0 ? {
today: 'vandaag',
yesterday: 'gisteren',
before: 'vóór',
approachingDeadline: function (daysDifference) { return "nog ".concat(daysDifference, " dag").concat(daysDifference === 1 ? '' : 'en'); },
} : _g;
var date = new Date(dateTime);

@@ -1376,3 +1381,3 @@ var daysDifference = dateFns.differenceInCalendarDays(date, new Date(now));

}
return ["".concat(labels.before, " ").concat(dateFns.format(date, 'd MMMM yyyy', { locale: locale })), false];
return ["".concat(labels.before, " ").concat(dateFns.format(date, format$1, { locale: locale })), false];
}

@@ -1385,3 +1390,3 @@ if (daysDifference === 0) {

}
return [dateFns.format(date, 'd-M-yyyy', { locale: locale }), false];
return [dateFns.format(date, format$1, { locale: locale }), false];
};var ActionDate = function (_a) {

@@ -1388,0 +1393,0 @@ var dateTime = _a.dateTime, _b = _a.now, now = _b === void 0 ? new Date().toISOString() : _b, _c = _a.relative, relative = _c === void 0 ? false : _c, _d = _a.locale, locale = _d === void 0 ? nl$1 : _d, labels = _a.labels;

@@ -1365,3 +1365,8 @@ import*as React from'react';import React__default,{memo}from'react';import {differenceInCalendarDays,format}from'date-fns';var css_248z$2 = ".denhaag-action{background-color:var(--denhaag-action-background-color);border-color:var(--denhaag-action-border-color);border-style:var(--denhaag-action-border-style);border-width:var(--denhaag-action-border-width);color:var(--denhaag-action-color);display:flex;flex-direction:column;gap:var(--denhaag-action-gap);justify-content:space-between;padding-block-end:var(--denhaag-action-padding-block-end);padding-block-start:var(--denhaag-action-padding-block-start);padding-inline-end:var(--denhaag-action-padding-inline-end);padding-inline-start:var(--denhaag-action-padding-inline-start)}@media (width >= 768px){.denhaag-action{align-items:center;flex-direction:row;gap:var(--denhaag-action-lg-gap);padding-block-end:var(--denhaag-action-lg-padding-block-end);padding-block-start:var(--denhaag-action-lg-padding-block-start)}}.denhaag-action__details{display:flex;flex-direction:column;flex-shrink:0;gap:var(--denhaag-action-details-gap)}@media (width >= 768px){.denhaag-action__details{align-items:center;flex-direction:row;gap:var(--denhaag-action-details-lg-gap)}}.denhaag-action__content b,.denhaag-action__content strong{font-weight:var(--denhaag-action-content-bold-font-weight)}.denhaag-action__date{align-items:center;color:var(--denhaag-action-date-color);display:flex;font-weight:var(--denhaag-action-date-font-weight);gap:var(--denhaag-action-date-gap)}.denhaag-action__date--warning{align-items:center;color:var(--denhaag-action-date-warning-color);display:flex;font-weight:var(--denhaag-action-date-warning-font-weight);gap:var(--denhaag-action-date-warning-gap)}.denhaag-action__actions{--utrecht-button-max-inline-size:100%;align-items:center;display:flex;gap:var(--denhaag-action-actions-gap)}.denhaag-action__actions>a{width:100%}@media (width >= 768px){.denhaag-action__actions>a{width:auto}}.denhaag-action__link-icon{color:var(--denhaag-action-link-icon-color);flex-shrink:0;width:var(--denhaag-action-link-icon-width)}.denhaag-action__warning-icon{color:var(--denhaag-action-warning-icon-color);flex-shrink:0;width:var(--denhaag-action-warning-icon-width)}.denhaag-action--single{border-left:none;border-right:none;border-top:none;padding-block-end:var(--denhaag-action-single-padding-block-end);padding-block-start:var(--denhaag-action-single-padding-block-start);padding-inline-end:var(--denhaag-action-single-padding-inline-end);padding-inline-start:var(--denhaag-action-single-padding-inline-start);text-decoration:none}.denhaag-action--single.denhaag-action--hover,.denhaag-action--single:hover{background-color:var(--denhaag-action-single-hover-background-color)}.denhaag-action--single.denhaag-action--focus,.denhaag-action--single:focus{outline-color:var(--denhaag-file-focus-outline-color);outline-style:var(--denhaag-file-focus-outline-style);outline-width:var(--denhaag-file-focus-outline-width)}.denhaag-action--single .denhaag-action__details{flex-direction:row;gap:var(--denhaag-action-single-details-gap);justify-content:space-between}@media (width >= 768px){.denhaag-action--single .denhaag-action__details{gap:var(--denhaag-action-single-details-lg-gap)}}.denhaag-action--multi+.denhaag-action--multi{border-top:none}";

var _b, _c;
var dateTime = _a.dateTime, _d = _a.now, now = _d === void 0 ? new Date().toISOString() : _d, _e = _a.locale, locale = _e === void 0 ? nl : _e, labels = _a.labels, relative = _a.relative;
var dateTime = _a.dateTime, _d = _a.now, now = _d === void 0 ? new Date().toISOString() : _d, relative = _a.relative, _e = _a.locale, locale = _e === void 0 ? nl : _e, _f = _a.format, format$1 = _f === void 0 ? relative ? 'd MMMM yyyy' : 'd-M-yyyy' : _f, _g = _a.labels, labels = _g === void 0 ? {
today: 'vandaag',
yesterday: 'gisteren',
before: 'vóór',
approachingDeadline: function (daysDifference) { return "nog ".concat(daysDifference, " dag").concat(daysDifference === 1 ? '' : 'en'); },
} : _g;
var date = new Date(dateTime);

@@ -1376,3 +1381,3 @@ var daysDifference = differenceInCalendarDays(date, new Date(now));

}
return ["".concat(labels.before, " ").concat(format(date, 'd MMMM yyyy', { locale: locale })), false];
return ["".concat(labels.before, " ").concat(format(date, format$1, { locale: locale })), false];
}

@@ -1385,3 +1390,3 @@ if (daysDifference === 0) {

}
return [format(date, 'd-M-yyyy', { locale: locale }), false];
return [format(date, format$1, { locale: locale }), false];
};var ActionDate = function (_a) {

@@ -1388,0 +1393,0 @@ var dateTime = _a.dateTime, _b = _a.now, now = _b === void 0 ? new Date().toISOString() : _b, _c = _a.relative, relative = _c === void 0 ? false : _c, _d = _a.locale, locale = _d === void 0 ? nl$1 : _d, labels = _a.labels;

{
"name": "@gemeente-denhaag/action",
"version": "0.1.1-alpha.59",
"version": "0.1.1-alpha.60",
"description": "Action component to navigate to different pages",

@@ -33,9 +33,9 @@ "bugs": "https://github.com/nl-design-system/denhaag/issues",

"dependencies": {
"@gemeente-denhaag/button": "0.2.3-alpha.393",
"@gemeente-denhaag/icons": "0.2.3-alpha.393",
"@gemeente-denhaag/link": "0.2.3-alpha.393",
"@gemeente-denhaag/utils": "0.2.3-alpha.392",
"@gemeente-denhaag/button": "0.2.3-alpha.394",
"@gemeente-denhaag/icons": "0.2.3-alpha.394",
"@gemeente-denhaag/link": "0.2.3-alpha.394",
"@gemeente-denhaag/utils": "0.2.3-alpha.393",
"date-fns": "3.6.0"
},
"gitHead": "5968a75a7ed27708e20922911312b81b73ac4251"
"gitHead": "c81494e902e98482dd09fa4ad7eefdafa38572a2"
}
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