@nysds/components 1.22.0 → 1.22.1
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/custom-elements.json +35 -4
- package/dist/.vscode/vscode.html-custom-data.json +30 -6
- package/dist/custom-elements.json +35 -4
- package/dist/{nys-icon.library-DYsQ8Tiv-DYS-TkV2.js → nys-icon.library-715cAMBp-BmiCym2_.js} +3 -3
- package/dist/{nys-icon.library-DYsQ8Tiv-DYS-TkV2.js.map → nys-icon.library-715cAMBp-BmiCym2_.js.map} +1 -1
- package/dist/{nys-icon.library-BZ3jVyhP.js → nys-icon.library-C0_LOBWi.js} +2 -2
- package/dist/{nys-icon.library-BZ3jVyhP.js.map → nys-icon.library-C0_LOBWi.js.map} +1 -1
- package/dist/nysds.es.js +33 -26
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +58 -58
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +26 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +11 -1
- package/package.json +5 -5
package/dist/nysds.es.js
CHANGED
|
@@ -2,13 +2,13 @@ import { LitElement as P, unsafeCSS as w, html as u, nothing as Hn } from "lit";
|
|
|
2
2
|
import { property as a, state as C, query as Qn } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as v } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System v1.22.
|
|
5
|
+
* New York State Design System v1.22.1
|
|
6
6
|
* Description: A design system for New York State's digital products.
|
|
7
7
|
* Repository: https://github.com/its-hcd/nysds
|
|
8
8
|
* License: MIT
|
|
9
9
|
*/
|
|
10
10
|
/*!
|
|
11
|
-
* New York State Design System v1.22.
|
|
11
|
+
* New York State Design System v1.22.1
|
|
12
12
|
* Description: A design system for New York State's digital products.
|
|
13
13
|
* Repository: https://github.com/its-hcd/nysds
|
|
14
14
|
* License: MIT
|
|
@@ -141,13 +141,13 @@ const mc = /* @__PURE__ */ xl(P), xc = (r) => {
|
|
|
141
141
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
142
142
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
143
143
|
*
|
|
144
|
-
* Icon Component v1.22.
|
|
144
|
+
* Icon Component v1.22.1
|
|
145
145
|
* Part of the New York State Design System
|
|
146
146
|
* Repository: https://github.com/its-hcd/nysds
|
|
147
147
|
* License: MIT
|
|
148
148
|
*/
|
|
149
149
|
/*!
|
|
150
|
-
* New York State Design System v1.22.
|
|
150
|
+
* New York State Design System v1.22.1
|
|
151
151
|
* Description: A design system for New York State's digital products.
|
|
152
152
|
* Repository: https://github.com/its-hcd/nysds
|
|
153
153
|
* License: MIT
|
|
@@ -172,7 +172,7 @@ const Cc = (r) => {
|
|
|
172
172
|
}, $c = /* @__PURE__ */ Cc(P), fi = globalThis.__nysIconRegistry ??= /* @__PURE__ */ new Map(), Hr = globalThis.__nysIconWatchers ??= /* @__PURE__ */ new Map();
|
|
173
173
|
let ca = null, da = null;
|
|
174
174
|
async function Sc() {
|
|
175
|
-
return ca || (da ??= import("./nys-icon.library-
|
|
175
|
+
return ca || (da ??= import("./nys-icon.library-715cAMBp-BmiCym2_.js").then(
|
|
176
176
|
(r) => ca = r.default
|
|
177
177
|
), da);
|
|
178
178
|
}
|
|
@@ -2062,13 +2062,13 @@ customElements.get("nys-accordion") || customElements.define("nys-accordion", jn
|
|
|
2062
2062
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
2063
2063
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
2064
2064
|
*
|
|
2065
|
-
* Button Component v1.22.
|
|
2065
|
+
* Button Component v1.22.1
|
|
2066
2066
|
* Part of the New York State Design System
|
|
2067
2067
|
* Repository: https://github.com/its-hcd/nysds
|
|
2068
2068
|
* License: MIT
|
|
2069
2069
|
*/
|
|
2070
2070
|
/*!
|
|
2071
|
-
* New York State Design System v1.22.
|
|
2071
|
+
* New York State Design System v1.22.1
|
|
2072
2072
|
* Description: A design system for New York State's digital products.
|
|
2073
2073
|
* Repository: https://github.com/its-hcd/nysds
|
|
2074
2074
|
* License: MIT
|
|
@@ -3684,13 +3684,13 @@ customElements.get("nys-card") || customElements.define("nys-card", ve);
|
|
|
3684
3684
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
3685
3685
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
3686
3686
|
*
|
|
3687
|
-
* Tooltip Component v1.22.
|
|
3687
|
+
* Tooltip Component v1.22.1
|
|
3688
3688
|
* Part of the New York State Design System
|
|
3689
3689
|
* Repository: https://github.com/its-hcd/nysds
|
|
3690
3690
|
* License: MIT
|
|
3691
3691
|
*/
|
|
3692
3692
|
/*!
|
|
3693
|
-
* New York State Design System v1.22.
|
|
3693
|
+
* New York State Design System v1.22.1
|
|
3694
3694
|
* Description: A design system for New York State's digital products.
|
|
3695
3695
|
* Repository: https://github.com/its-hcd/nysds
|
|
3696
3696
|
* License: MIT
|
|
@@ -4015,7 +4015,7 @@ customElements.get("nys-tooltip") || customElements.define("nys-tooltip", Jn);
|
|
|
4015
4015
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
4016
4016
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
4017
4017
|
*
|
|
4018
|
-
* Label Component v1.22.
|
|
4018
|
+
* Label Component v1.22.1
|
|
4019
4019
|
* Part of the New York State Design System
|
|
4020
4020
|
* Repository: https://github.com/its-hcd/nysds
|
|
4021
4021
|
* License: MIT
|
|
@@ -4115,7 +4115,7 @@ customElements.get("nys-label") || customElements.define("nys-label", eo);
|
|
|
4115
4115
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
4116
4116
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
4117
4117
|
*
|
|
4118
|
-
* Error message Component v1.22.
|
|
4118
|
+
* Error message Component v1.22.1
|
|
4119
4119
|
* Part of the New York State Design System
|
|
4120
4120
|
* Repository: https://github.com/its-hcd/nysds
|
|
4121
4121
|
* License: MIT
|
|
@@ -4508,13 +4508,13 @@ customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgr
|
|
|
4508
4508
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
4509
4509
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
4510
4510
|
*
|
|
4511
|
-
* Textinput Component v1.22.
|
|
4511
|
+
* Textinput Component v1.22.1
|
|
4512
4512
|
* Part of the New York State Design System
|
|
4513
4513
|
* Repository: https://github.com/its-hcd/nysds
|
|
4514
4514
|
* License: MIT
|
|
4515
4515
|
*/
|
|
4516
4516
|
/*!
|
|
4517
|
-
* New York State Design System v1.22.
|
|
4517
|
+
* New York State Design System v1.22.1
|
|
4518
4518
|
* Description: A design system for New York State's digital products.
|
|
4519
4519
|
* Repository: https://github.com/its-hcd/nysds
|
|
4520
4520
|
* License: MIT
|
|
@@ -7378,8 +7378,12 @@ var xu = Object.defineProperty, go = (r, e, t, n) => {
|
|
|
7378
7378
|
};
|
|
7379
7379
|
const rs = class rs extends M {
|
|
7380
7380
|
constructor() {
|
|
7381
|
-
super(...arguments), this.label = "", this.href = "", this.disabled = !1, this.target = "_self", this.prefixIcon = "", this.
|
|
7381
|
+
super(...arguments), this.label = "", this.href = "", this.disabled = !1, this.target = "_self", this.prefixIcon = "", this.suffixIcon = "";
|
|
7382
7382
|
}
|
|
7383
|
+
/** Divider setting for the item.
|
|
7384
|
+
* Update: commenting out, perhaps implementing at a future date.
|
|
7385
|
+
*/
|
|
7386
|
+
// @property({ type: String }) divider = "";
|
|
7383
7387
|
// super.connectedCallback() (NysElement) auto-assigns this.id when
|
|
7384
7388
|
// one is not provided (prefix = localName, i.e. "nys-dropdownmenuitem-<ts>-<n>").
|
|
7385
7389
|
// role="menuitem" intentionally stays on the inner <a>/<button>, so this
|
|
@@ -7404,6 +7408,9 @@ const rs = class rs extends M {
|
|
|
7404
7408
|
})
|
|
7405
7409
|
);
|
|
7406
7410
|
}
|
|
7411
|
+
_renderIcon(e) {
|
|
7412
|
+
return e ? u`<nys-icon size="16" name=${e}></nys-icon>` : "";
|
|
7413
|
+
}
|
|
7407
7414
|
render() {
|
|
7408
7415
|
const e = !!this.href;
|
|
7409
7416
|
return u`<li class="nys-dropdownmenuitem" role="presentation">
|
|
@@ -7417,8 +7424,8 @@ const rs = class rs extends M {
|
|
|
7417
7424
|
@click="${this._handleClick}"
|
|
7418
7425
|
target="${this.target}"
|
|
7419
7426
|
>
|
|
7420
|
-
${this.prefixIcon
|
|
7421
|
-
${this.
|
|
7427
|
+
${this._renderIcon(this.prefixIcon)} ${this.label}
|
|
7428
|
+
${this._renderIcon(this.suffixIcon)}</a
|
|
7422
7429
|
>` : u`
|
|
7423
7430
|
<button
|
|
7424
7431
|
class=${this.disabled ? "disabled" : ""}
|
|
@@ -7430,8 +7437,8 @@ const rs = class rs extends M {
|
|
|
7430
7437
|
?disabled=${this.disabled}
|
|
7431
7438
|
@click="${this._handleClick}"
|
|
7432
7439
|
>
|
|
7433
|
-
${this.prefixIcon
|
|
7434
|
-
${this.
|
|
7440
|
+
${this._renderIcon(this.prefixIcon)} ${this.label}
|
|
7441
|
+
${this._renderIcon(this.suffixIcon)}
|
|
7435
7442
|
</button>
|
|
7436
7443
|
`}
|
|
7437
7444
|
</li>`;
|
|
@@ -7459,7 +7466,7 @@ go([
|
|
|
7459
7466
|
], Jt.prototype, "prefixIcon");
|
|
7460
7467
|
go([
|
|
7461
7468
|
a({ type: String })
|
|
7462
|
-
], Jt.prototype, "
|
|
7469
|
+
], Jt.prototype, "suffixIcon");
|
|
7463
7470
|
customElements.get("nys-dropdownmenuitem") || customElements.define("nys-dropdownmenuitem", Jt);
|
|
7464
7471
|
var wu = Object.defineProperty, vs = (r, e, t, n) => {
|
|
7465
7472
|
for (var o = void 0, s = r.length - 1, i; s >= 0; s--)
|
|
@@ -8675,13 +8682,13 @@ customElements.get("nys-globalheader") || customElements.define("nys-globalheade
|
|
|
8675
8682
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
8676
8683
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
8677
8684
|
*
|
|
8678
|
-
* Divider Component v1.22.
|
|
8685
|
+
* Divider Component v1.22.1
|
|
8679
8686
|
* Part of the New York State Design System
|
|
8680
8687
|
* Repository: https://github.com/its-hcd/nysds
|
|
8681
8688
|
* License: MIT
|
|
8682
8689
|
*/
|
|
8683
8690
|
/*!
|
|
8684
|
-
* New York State Design System v1.22.
|
|
8691
|
+
* New York State Design System v1.22.1
|
|
8685
8692
|
* Description: A design system for New York State's digital products.
|
|
8686
8693
|
* Repository: https://github.com/its-hcd/nysds
|
|
8687
8694
|
* License: MIT
|
|
@@ -8911,7 +8918,7 @@ customElements.get("nys-globalfooter") || customElements.define("nys-globalfoote
|
|
|
8911
8918
|
const gr = globalThis.__nysIconRegistry ??= /* @__PURE__ */ new Map(), uo = globalThis.__nysIconWatchers ??= /* @__PURE__ */ new Map();
|
|
8912
8919
|
let ii = null, Qa = null;
|
|
8913
8920
|
async function ny() {
|
|
8914
|
-
return ii || (Qa ??= import("./nys-icon.library-
|
|
8921
|
+
return ii || (Qa ??= import("./nys-icon.library-C0_LOBWi.js").then(
|
|
8915
8922
|
(r) => ii = r.default
|
|
8916
8923
|
), Qa);
|
|
8917
8924
|
}
|
|
@@ -14317,13 +14324,13 @@ customElements.get("nys-tooltip") || customElements.define("nys-tooltip", nn);
|
|
|
14317
14324
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
14318
14325
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
14319
14326
|
*
|
|
14320
|
-
* Alert Component v1.22.
|
|
14327
|
+
* Alert Component v1.22.1
|
|
14321
14328
|
* Part of the New York State Design System
|
|
14322
14329
|
* Repository: https://github.com/its-hcd/nysds
|
|
14323
14330
|
* License: MIT
|
|
14324
14331
|
*/
|
|
14325
14332
|
/*!
|
|
14326
|
-
* New York State Design System v1.22.
|
|
14333
|
+
* New York State Design System v1.22.1
|
|
14327
14334
|
* Description: A design system for New York State's digital products.
|
|
14328
14335
|
* Repository: https://github.com/its-hcd/nysds
|
|
14329
14336
|
* License: MIT
|
|
@@ -15324,13 +15331,13 @@ customElements.get("nys-verticalnavgroup") || customElements.define("nys-vertica
|
|
|
15324
15331
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
15325
15332
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
15326
15333
|
*
|
|
15327
|
-
* Accordion Component v1.22.
|
|
15334
|
+
* Accordion Component v1.22.1
|
|
15328
15335
|
* Part of the New York State Design System
|
|
15329
15336
|
* Repository: https://github.com/its-hcd/nysds
|
|
15330
15337
|
* License: MIT
|
|
15331
15338
|
*/
|
|
15332
15339
|
/*!
|
|
15333
|
-
* New York State Design System v1.22.
|
|
15340
|
+
* New York State Design System v1.22.1
|
|
15334
15341
|
* Description: A design system for New York State's digital products.
|
|
15335
15342
|
* Repository: https://github.com/its-hcd/nysds
|
|
15336
15343
|
* License: MIT
|