@oslokommune/punkt-vue2
Advanced tools
Comparing version 3.3.1 to 4.0.0
@@ -8,2 +8,24 @@ # Changelog | ||
## [4.0.0](https://github.com/oslokommune/punkt/compare/3.4.2...4.0.0) (2023-05-08) | ||
### ⚠ BREAKING CHANGES | ||
* [792](https://github.com/oslokommune/punkt/issues/792) Footer. Nye komponenter: | ||
- pkt-footer | ||
- pkt-footer-simple | ||
BREAKING CHANGE: Gammel pkt-footer er nå blitt pkt-footer-simple | ||
### Features | ||
Ingen | ||
### Bug Fixes | ||
Ingen | ||
### Chores | ||
Ingen | ||
--- | ||
## [3.2.1](https://github.com/oslokommune/punkt/compare/3.2.0...3.2.1) (2023-04-20) | ||
@@ -10,0 +32,0 @@ |
@@ -1,25 +0,48 @@ | ||
import { P as n } from "./Icon-f8e48d58.js"; | ||
import { n as a, u as i, a as l } from "./plugins-364dfcf9.js"; | ||
const _ = { | ||
import { P as r } from "./Icon-f8e48d58.js"; | ||
import { n as i, u as n, a as l } from "./plugins-364dfcf9.js"; | ||
const c = { | ||
name: "PktFooter", | ||
components: { | ||
PktIcon: n | ||
PktIcon: r | ||
}, | ||
props: { | ||
links: { | ||
columnOne: { | ||
type: Object, | ||
required: !0, | ||
validator: (a) => "title" in a && (!("links" in a) || Array.isArray(a.links) && a.links.every((t) => "href" in t && "text" in t)) | ||
}, | ||
columnTwo: { | ||
type: Object, | ||
required: !0, | ||
validator: (a) => "title" in a && (!("links" in a) || Array.isArray(a.links) && a.links.every((t) => "href" in t && "text" in t)) | ||
}, | ||
socialLinks: { | ||
type: Array, | ||
required: !0, | ||
default: () => [] | ||
description: "Array of social media and language links for the footer", | ||
validator: (a) => a.every((t) => { | ||
if (typeof t == "object") { | ||
const s = typeof t.href == "string", e = typeof t.iconName == "string", o = typeof t.language == "string"; | ||
return s && (e || o); | ||
} | ||
return !1; | ||
}), | ||
required: !1 | ||
} | ||
} | ||
}; | ||
var c = function() { | ||
var s = this, t = s._self._c; | ||
return t("footer", { staticClass: "pkt-footer", attrs: { "data-mode": "dark" } }, [t("div", { staticClass: "pkt-footer__container pkt-container" }, [t("ul", { staticClass: "pkt-footer__list" }, s._l(s.links, function(r, e) { | ||
return t("li", { key: `links-${e}`, staticClass: "pkt-footer__list-item" }, [t("a", { staticClass: "pkt-footer__link", attrs: { href: r.href } }, [t("pkt-icon", { staticClass: "pkt-footer__link-icon", attrs: { name: "chevron-right" } }), s._v(" " + s._s(r.text) + " ")], 1)]); | ||
}), 0)])]); | ||
}, f = [], p = /* @__PURE__ */ a( | ||
var _ = function() { | ||
var t = this, s = t._self._c; | ||
return s("footer", { staticClass: "pkt-footer", attrs: { "data-mode": "dark" } }, [s("div", { staticClass: "pkt-footer__container" }, [s("div", { staticClass: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16" }, [s("div", { staticClass: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up" }, [s("h2", { staticClass: "pkt-footer__title" }, [t._v(t._s(t.columnOne.title))]), s("ul", { staticClass: "pkt-footer__list" }, [t.columnOne.text ? s("li", { staticClass: "pkt-footer__text" }, [t._v(" " + t._s(t.columnOne.text) + " ")]) : t._e(), t._l(t.columnOne.links, function(e, o) { | ||
return s("li", { key: `links-${o}`, staticClass: "pkt-footer__list-item" }, [s("a", { staticClass: "pkt-footer__link", class: { "pkt-link--external": e.external }, attrs: { href: e.href } }, [s("pkt-icon", { staticClass: "pkt-footer__link-icon", attrs: { name: "chevron-right" } }), t._v(" " + t._s(e.text) + " ")], 1)]); | ||
})], 2)]), s("div", { staticClass: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up" }, [s("h2", { staticClass: "pkt-footer__title" }, [t._v(t._s(t.columnTwo.title))]), s("ul", { staticClass: "pkt-footer__list" }, t._l(t.columnTwo.links, function(e, o) { | ||
return s("li", { key: `links-${o}`, staticClass: "pkt-footer__list-item" }, [s("a", { staticClass: "pkt-footer__link", class: { "pkt-link--external": e.external }, attrs: { href: e.href } }, [s("pkt-icon", { staticClass: "pkt-footer__link-icon", attrs: { name: "chevron-right" } }), t._v(" " + t._s(e.text) + " ")], 1)]); | ||
}), 0)]), s("div", { staticClass: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up" }, [s("h2", { staticClass: "pkt-footer__title" }, [t._v("Om nettstedet")]), s("ul", { staticClass: "pkt-footer__list" }, [s("li", { staticClass: "pkt-footer__list-item" }, [s("a", { staticClass: "pkt-footer__link", attrs: { href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/" } }, [s("svg", { staticClass: "pkt-footer__link-icon", attrs: { viewBox: "0 0 32 32" } }, [s("use", { attrs: { href: "#chevron-right" } })]), t._v(" Personvern og informasjonskapsler ")])]), s("li", { staticClass: "pkt-footer__list-item" }, [s("a", { staticClass: "pkt-footer__link", attrs: { href: "https://www.oslo.kommune.no/tilgjengelighet/" } }, [s("svg", { staticClass: "pkt-footer__link-icon", attrs: { viewBox: "0 0 32 32" } }, [s("use", { attrs: { href: "#chevron-right" } })]), t._v(" Tilgjengelighet ")])])])])]), t.socialLinks ? [s("div", { staticClass: "pkt-footer__social", attrs: { "aria-label": "standard lenker" } }, [t._l(t.socialLinks, function(e, o) { | ||
return [e.language ? s("div", { staticClass: "pkt-footer__social-language" }, [s("a", { attrs: { href: e.href, "aria-label": `til ${e.language} versjon av nettsiden` } }, [t._v(t._s(e.language))])]) : t._e()]; | ||
}), s("div", { staticClass: "pkt-footer__social-icons" }, [t._l(t.socialLinks, function(e, o) { | ||
return [e.iconName ? s("a", { key: `sociallinks-${o}`, staticClass: "pkt-footer__social-icon-link", attrs: { href: e.href, "aria-label": `til ${e.iconName}` } }, [s("svg", { staticClass: "pkt-footer__social-icon", attrs: { viewBox: "0 0 32 32", "aria-hidden": "true" } }, [s("use", { attrs: { href: "#" + e.iconName } })])]) : t._e()]; | ||
})], 2)], 2)] : t._e()], 2)]); | ||
}, p = [], f = /* @__PURE__ */ i( | ||
c, | ||
_, | ||
c, | ||
f, | ||
p, | ||
!1, | ||
@@ -31,8 +54,8 @@ null, | ||
); | ||
const k = p.exports, u = { | ||
install(o) { | ||
l(o, k); | ||
const k = f.exports, u = { | ||
install(a) { | ||
l(a, k); | ||
} | ||
}; | ||
i(u); | ||
n(u); | ||
export { | ||
@@ -39,0 +62,0 @@ k as PktFooter, |
{ | ||
"name": "@oslokommune/punkt-vue2", | ||
"version": "3.3.1", | ||
"version": "4.0.0", | ||
"description": "Vue2 komponentbibliotek til Punkt, et designsystem laget av Oslo Origo", | ||
@@ -29,4 +29,4 @@ "homepage": "https://punkt.oslo.kommune.no", | ||
"devDependencies": { | ||
"@oslokommune/punkt-assets": "^3.1.2", | ||
"@oslokommune/punkt-css": "^3.3.1", | ||
"@oslokommune/punkt-assets": "^4.0.0", | ||
"@oslokommune/punkt-css": "^4.0.0", | ||
"@vitejs/plugin-vue2": "^2.2.0", | ||
@@ -69,3 +69,3 @@ "edit-json-file": "^1.7.0", | ||
"license": "MIT", | ||
"gitHead": "ea96fd86b38920748f5772c057b2c1449792b2e5" | ||
"gitHead": "5de20e7298e204d7770f89bd47df267ca1544f54" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
81483
42
781
13