@oslokommune/punkt-elements 12.39.3 → 12.39.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/{modal-8bEB_CoY.js → modal-C8qYfLqF.js} +22 -22
- package/dist/{modal-B6VJdIeY.cjs → modal-CTh_wH8S.cjs} +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +1 -1
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/package.json +3 -3
- package/src/components/modal/modal.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.39.5](https://github.com/oslokommune/punkt/compare/12.39.4...12.39.5) (2025-05-16)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
8
25
|
## [12.39.3](https://github.com/oslokommune/punkt/compare/12.39.2...12.39.3) (2025-05-15)
|
|
9
26
|
|
|
10
27
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import { P as
|
|
3
|
-
import { r as
|
|
1
|
+
import { e as p } from "./class-map-KyMqi0fa.js";
|
|
2
|
+
import { P as k, E as f, x as r, n, a as v } from "./element-DjjF_tEh.js";
|
|
3
|
+
import { r as g } from "./state-BtbpSrdV.js";
|
|
4
4
|
import { P as _ } from "./pkt-slot-controller-DtDaD9q_.js";
|
|
5
|
-
import { e as
|
|
5
|
+
import { e as u, n as m } from "./ref-iIffqQAI.js";
|
|
6
6
|
import "./icon-Beoxup8E.js";
|
|
7
7
|
const y = {
|
|
8
8
|
hideCloseButton: {
|
|
@@ -18,13 +18,13 @@ const y = {
|
|
|
18
18
|
props: y
|
|
19
19
|
};
|
|
20
20
|
var w = Object.defineProperty, b = Object.getOwnPropertyDescriptor, a = (t, e, o, i) => {
|
|
21
|
-
for (var l = i > 1 ? void 0 : i ? b(e, o) : e,
|
|
22
|
-
(d = t[
|
|
21
|
+
for (var l = i > 1 ? void 0 : i ? b(e, o) : e, c = t.length - 1, d; c >= 0; c--)
|
|
22
|
+
(d = t[c]) && (l = (i ? d(e, o, l) : d(l)) || l);
|
|
23
23
|
return i && l && w(e, o, l), l;
|
|
24
24
|
};
|
|
25
|
-
let s = class extends
|
|
25
|
+
let s = class extends k {
|
|
26
26
|
constructor() {
|
|
27
|
-
super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = h.props.hideCloseButton.default, this.closeOnBackdropClick = h.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = h.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot =
|
|
27
|
+
super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = h.props.hideCloseButton.default, this.closeOnBackdropClick = h.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = h.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = u(), this.dialogRef = u(), this._isOpen = !1, this.close = (t, e = !1) => {
|
|
28
28
|
var i;
|
|
29
29
|
if (!this._isOpen) return;
|
|
30
30
|
this._isOpen = !1, document.body.classList.remove("pkt-modal--open");
|
|
@@ -86,30 +86,30 @@ let s = class extends f {
|
|
|
86
86
|
}, i = this.closeButtonSkin === "blue", l = {
|
|
87
87
|
"pkt-modal__closeButton": !0,
|
|
88
88
|
[`pkt-modal__closeButton--${this.closeButtonSkin}`]: !0
|
|
89
|
-
},
|
|
89
|
+
}, c = {
|
|
90
90
|
"pkt-btn": !0,
|
|
91
91
|
[`pkt-btn--${i ? "tertiary" : "primary"}`]: !0,
|
|
92
92
|
"pkt-btn--icon-only": !0,
|
|
93
93
|
"pkt-btn--medium": !0
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return r`
|
|
96
96
|
<dialog
|
|
97
|
-
class=${
|
|
98
|
-
${
|
|
97
|
+
class=${p(t)}
|
|
98
|
+
${m(this.dialogRef)}
|
|
99
99
|
aria-labelledby="pkt-modal__headingText"
|
|
100
100
|
aria-describedby="pkt-modal__content"
|
|
101
101
|
@close=${(d) => this.close(d, !0)}
|
|
102
102
|
>
|
|
103
103
|
<div class="pkt-modal__wrapper">
|
|
104
|
-
${this.headingText || !this.hideCloseButton ?
|
|
104
|
+
${this.headingText || !this.hideCloseButton ? r`<div class="pkt-modal__header">
|
|
105
105
|
<div class="pkt-modal__header-background"></div>
|
|
106
|
-
${this.headingText ?
|
|
106
|
+
${this.headingText ? r`<h1 id="pkt-modal__headingText" class=${p(e)}>
|
|
107
107
|
${this.headingText}
|
|
108
|
-
</h1>` :
|
|
109
|
-
${this.hideCloseButton ?
|
|
108
|
+
</h1>` : r`<div class="pkt-modal__headingText"></div>`}
|
|
109
|
+
${this.hideCloseButton ? r`<div class="pkt-modal__noCloseButton"></div>` : r`<div class="${p(l)}">
|
|
110
110
|
<pkt-button
|
|
111
111
|
@click=${(d) => this.close(d)}
|
|
112
|
-
class=${c
|
|
112
|
+
class=${p(c)}
|
|
113
113
|
aria-label="close"
|
|
114
114
|
iconname="close"
|
|
115
115
|
variant="icon-only"
|
|
@@ -117,12 +117,12 @@ let s = class extends f {
|
|
|
117
117
|
Lukk
|
|
118
118
|
</pkt-button>
|
|
119
119
|
</div>`}
|
|
120
|
-
</div>` :
|
|
120
|
+
</div>` : f}
|
|
121
121
|
<div class="pkt-modal__container">
|
|
122
122
|
<div
|
|
123
123
|
id="pkt-modal__content"
|
|
124
|
-
class=${
|
|
125
|
-
${
|
|
124
|
+
class=${p(o)}
|
|
125
|
+
${m(this.defaultSlot)}
|
|
126
126
|
></div>
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
@@ -158,10 +158,10 @@ a([
|
|
|
158
158
|
n({ type: Boolean })
|
|
159
159
|
], s.prototype, "transparentBackdrop", 2);
|
|
160
160
|
a([
|
|
161
|
-
|
|
161
|
+
g()
|
|
162
162
|
], s.prototype, "_isOpen", 2);
|
|
163
163
|
s = a([
|
|
164
|
-
|
|
164
|
+
v("pkt-modal")
|
|
165
165
|
], s);
|
|
166
166
|
export {
|
|
167
167
|
s as P
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
${this.headingText?i.x`<h1 id="pkt-modal__headingText" class=${d.e(e)}>
|
|
13
13
|
${this.headingText}
|
|
14
14
|
</h1>`:i.x`<div class="pkt-modal__headingText"></div>`}
|
|
15
|
-
${this.hideCloseButton?i.
|
|
15
|
+
${this.hideCloseButton?i.x`<div class="pkt-modal__noCloseButton"></div>`:i.x`<div class="${d.e(n)}">
|
|
16
16
|
<pkt-button
|
|
17
17
|
@click=${p=>this.close(p)}
|
|
18
18
|
class=${d.e(a)}
|
package/dist/pkt-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-C2EPmB0W.cjs"),l=require("./accordionitem-RFwXQC_0.cjs"),d=require("./backlink-HHM21crL.cjs"),b=require("./button-C60j8BsA.cjs"),k=require("./calendar-CYY42kN4.cjs"),m=require("./card-Di1MQneh.cjs"),g=require("./combobox-yUrUarU_.cjs"),h=require("./consent-1ZSUrWK9.cjs"),f=require("./checkbox-zqd3KVfz.cjs"),t=require("./element-BSypUpzA.cjs"),y=require("./pkt-slot-controller-Da-RgXfS.cjs"),s=require("./ref-BvbyvXRH.cjs"),O=require("./class-map-DCyaICmy.cjs"),j=require("./datepicker-CH5ZmFhf.cjs"),q=require("./helptext-bMgnhZ1R.cjs"),x=require("./heading-BnJhJDMD.cjs"),C=require("./icon-BnKGwYjj.cjs"),v=require("./input-wrapper-B-f_SotM.cjs"),S=require("./link-nesPZCIx.cjs"),$=require("./linkcard-s9yoOq90.cjs"),L=require("./loader-ndMy12Pb.cjs"),_=require("./messagebox-B0kgftoP.cjs"),A=require("./modal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-C2EPmB0W.cjs"),l=require("./accordionitem-RFwXQC_0.cjs"),d=require("./backlink-HHM21crL.cjs"),b=require("./button-C60j8BsA.cjs"),k=require("./calendar-CYY42kN4.cjs"),m=require("./card-Di1MQneh.cjs"),g=require("./combobox-yUrUarU_.cjs"),h=require("./consent-1ZSUrWK9.cjs"),f=require("./checkbox-zqd3KVfz.cjs"),t=require("./element-BSypUpzA.cjs"),y=require("./pkt-slot-controller-Da-RgXfS.cjs"),s=require("./ref-BvbyvXRH.cjs"),O=require("./class-map-DCyaICmy.cjs"),j=require("./datepicker-CH5ZmFhf.cjs"),q=require("./helptext-bMgnhZ1R.cjs"),x=require("./heading-BnJhJDMD.cjs"),C=require("./icon-BnKGwYjj.cjs"),v=require("./input-wrapper-B-f_SotM.cjs"),S=require("./link-nesPZCIx.cjs"),$=require("./linkcard-s9yoOq90.cjs"),L=require("./loader-ndMy12Pb.cjs"),_=require("./messagebox-B0kgftoP.cjs"),A=require("./modal-CTh_wH8S.cjs"),B=require("./progressbar-DiRfScnB.cjs"),p=require("./radiobutton-CI2xaqAB.cjs"),T=require("./tag-B9kFYxHg.cjs"),I=require("./textarea-DxbylapQ.cjs"),M=require("./textinput-B__c4c1z.cjs"),R=require("./select-BCL790jM.cjs");var H=Object.defineProperty,w=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?w(e,r):e,u=a.length-1,c;u>=0;u--)(c=a[u])&&(n=(i?c(e,r,n):c(n))||n);return i&&n&&H(e,r,n),n};exports.PktComponent=class extends t.PktElement{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=s.e(),this.namedSlot=s.e(),this.slotController=new y.PktSlotController(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return t.x`
|
|
2
2
|
<div class="${O.e(e)}">
|
|
3
3
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
4
|
|
package/dist/pkt-index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { P as ot } from "./link-DCYJhFKJ.js";
|
|
|
21
21
|
import { P as at } from "./linkcard-Bt-Qa_SP.js";
|
|
22
22
|
import { P as it } from "./loader-DhmtCyQA.js";
|
|
23
23
|
import { P as lt } from "./messagebox-DZDP8XZt.js";
|
|
24
|
-
import { P as mt } from "./modal-
|
|
24
|
+
import { P as mt } from "./modal-C8qYfLqF.js";
|
|
25
25
|
import { P as ft } from "./progressbar-BKt_aj7f.js";
|
|
26
26
|
import { P as ht, P as ct } from "./radiobutton-CYJawqxD.js";
|
|
27
27
|
import { P as ut } from "./tag-Cu8afZy8.js";
|
package/dist/pkt-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-CTh_wH8S.cjs"),t=e.PktModal;Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>e.PktModal});exports.default=t;
|
package/dist/pkt-modal.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "12.39.
|
|
3
|
+
"version": "12.39.5",
|
|
4
4
|
"description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@oslokommune/punkt-assets": "^12.39.2",
|
|
35
|
-
"@oslokommune/punkt-css": "^12.39.
|
|
35
|
+
"@oslokommune/punkt-css": "^12.39.5",
|
|
36
36
|
"sass": "^1.78.0",
|
|
37
37
|
"typescript": "^5.6.2",
|
|
38
38
|
"vite": "^5.4.18",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1c97e7a7a152408f9574d3e95d5a4497a04317f6"
|
|
63
63
|
}
|