@nysds/components 1.1.2 → 1.1.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/dist/nysds.es.js +15 -15
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +21 -21
- package/dist/nysds.js.map +1 -1
- package/package.json +2 -18
package/dist/nysds.es.js
CHANGED
|
@@ -7,7 +7,7 @@ import "@nysds/nys-label";
|
|
|
7
7
|
import "@nysds/nys-errormessage";
|
|
8
8
|
import "@nysds/nys-textinput";
|
|
9
9
|
/*!
|
|
10
|
-
* New York State Design System (v1.1.
|
|
10
|
+
* New York State Design System (v1.1.5)
|
|
11
11
|
* Description: A design system for New York State's digital products.
|
|
12
12
|
* Repository: https://github.com/its-hcd/nysds
|
|
13
13
|
* License: MIT
|
|
@@ -72,10 +72,6 @@ const w1 = f`
|
|
|
72
72
|
--_nys-alert-gap-space-50: var(--nys-space-50, 4px);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.nys-alert__icon {
|
|
76
|
-
margin-top: 1.5px; /* this margin is to just better align the icon with the texts */
|
|
77
|
-
}
|
|
78
|
-
|
|
79
75
|
/* Main alert container */
|
|
80
76
|
.nys-alert__container {
|
|
81
77
|
display: flex;
|
|
@@ -140,6 +136,7 @@ const w1 = f`
|
|
|
140
136
|
|
|
141
137
|
.close-container {
|
|
142
138
|
margin-left: auto;
|
|
139
|
+
margin-top: -5px;
|
|
143
140
|
}
|
|
144
141
|
|
|
145
142
|
/* Centered variant: For no descriptions, we remove the <slot name="text"> via JS logic. In styling, centers the icon for a compact layout. */
|
|
@@ -331,7 +328,7 @@ const m = (F = class extends p {
|
|
|
331
328
|
<div part="nys-alert__icon" class="nys-alert__icon">
|
|
332
329
|
<nys-icon
|
|
333
330
|
name="${this._getIconName()}"
|
|
334
|
-
size="
|
|
331
|
+
size="3xl"
|
|
335
332
|
label="${this.type} icon"
|
|
336
333
|
></nys-icon>
|
|
337
334
|
</div>
|
|
@@ -543,14 +540,14 @@ const N = (G = class extends p {
|
|
|
543
540
|
<nys-icon
|
|
544
541
|
label="nys-avatar__icon"
|
|
545
542
|
name=${this.icon}
|
|
546
|
-
size="
|
|
543
|
+
size="xl"
|
|
547
544
|
></nys-icon>
|
|
548
545
|
</div>` : i`<div part="nys-avatar__icon">
|
|
549
546
|
<slot>
|
|
550
547
|
<nys-icon
|
|
551
548
|
label="nys-avatar__icon"
|
|
552
549
|
name="account_circle"
|
|
553
|
-
size="
|
|
550
|
+
size="xl"
|
|
554
551
|
></nys-icon>
|
|
555
552
|
</slot>
|
|
556
553
|
</div>`}
|
|
@@ -1311,7 +1308,9 @@ const b1 = f`
|
|
|
1311
1308
|
/* wraps the native checkbox and it's icon */
|
|
1312
1309
|
.nys-checkbox__checkboxwrapper {
|
|
1313
1310
|
position: relative;
|
|
1314
|
-
display:
|
|
1311
|
+
display: flex;
|
|
1312
|
+
justify-content: center;
|
|
1313
|
+
align-items: center;
|
|
1315
1314
|
max-height: var(--_nys-checkbox-size);
|
|
1316
1315
|
}
|
|
1317
1316
|
|
|
@@ -1319,7 +1318,7 @@ const b1 = f`
|
|
|
1319
1318
|
position: absolute;
|
|
1320
1319
|
top: 50%;
|
|
1321
1320
|
left: 50%;
|
|
1322
|
-
transform:
|
|
1321
|
+
transform: translate(-50%, -50%); /* Centering the icon visually */
|
|
1323
1322
|
pointer-events: none;
|
|
1324
1323
|
color: white;
|
|
1325
1324
|
}
|
|
@@ -1709,7 +1708,7 @@ const k = (B = class extends p {
|
|
|
1709
1708
|
${this.checked ? i`<nys-icon
|
|
1710
1709
|
for="${this.id}"
|
|
1711
1710
|
name="check"
|
|
1712
|
-
size="${this.size === "md" ? "
|
|
1711
|
+
size="${this.size === "md" ? "4xl" : this.size === "sm" ? "2xl" : "xl"}"
|
|
1713
1712
|
class="nys-checkbox__icon"
|
|
1714
1713
|
></nys-icon>` : ""}
|
|
1715
1714
|
</div>
|
|
@@ -1834,7 +1833,7 @@ const l1 = class l1 extends p {
|
|
|
1834
1833
|
}
|
|
1835
1834
|
render() {
|
|
1836
1835
|
return i`${this.showError ? i`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
|
|
1837
|
-
<nys-icon name="error" size="
|
|
1836
|
+
<nys-icon name="error" size="2xl"></nys-icon>
|
|
1838
1837
|
${this._internals.validationMessage || this.errorMessage}
|
|
1839
1838
|
</div>` : ""}`;
|
|
1840
1839
|
}
|
|
@@ -3478,7 +3477,7 @@ const L = (O = class extends p {
|
|
|
3478
3477
|
></slot>
|
|
3479
3478
|
<nys-icon
|
|
3480
3479
|
name="chevron_down"
|
|
3481
|
-
size="
|
|
3480
|
+
size="xl"
|
|
3482
3481
|
class="nys-select__icon"
|
|
3483
3482
|
></nys-icon>
|
|
3484
3483
|
</div>
|
|
@@ -4547,7 +4546,7 @@ const L2 = f`
|
|
|
4547
4546
|
--_nys-toggle-width: var(--nys-toggle-font-size-6xl, 36px);
|
|
4548
4547
|
--_nys-toggle-height: var(--nys-toggle-size-250, 20px);
|
|
4549
4548
|
--_nys-toggle-slider-diameter: var(--nys-toggle--font-size-md, 16px);
|
|
4550
|
-
--_nys-icon-font-size: var(--nys-toggle-font-size-sm, 14px);
|
|
4549
|
+
--_nys-toggle-icon-font-size: var(--nys-toggle-font-size-sm, 14px);
|
|
4551
4550
|
--_nys-toggle-gap: var(--nys-space-100, 8px);
|
|
4552
4551
|
}
|
|
4553
4552
|
|
|
@@ -4555,7 +4554,7 @@ const L2 = f`
|
|
|
4555
4554
|
--_nys-toggle-width: var(--nys-toggle-font-size-8xl, 44px);
|
|
4556
4555
|
--_nys-toggle-height: var(--nys-toggle-size-300, 24px);
|
|
4557
4556
|
--_nys-toggle-slider-diameter: var(--nys-toggle-font-size-xl, 20px);
|
|
4558
|
-
--_nys-icon-font-size: var(--nys-toggle-font-size-md, 16px);
|
|
4557
|
+
--_nys-toggle-icon-font-size: var(--nys-toggle-font-size-md, 16px);
|
|
4559
4558
|
}
|
|
4560
4559
|
|
|
4561
4560
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -4647,6 +4646,7 @@ const D = (P = class extends p {
|
|
|
4647
4646
|
${this.noIcon ? "" : i`<nys-icon
|
|
4648
4647
|
class="toggle-icon"
|
|
4649
4648
|
name="${this.checked ? "check" : "close"}"
|
|
4649
|
+
size="2xl"
|
|
4650
4650
|
></nys-icon>`}
|
|
4651
4651
|
</div>
|
|
4652
4652
|
</span>
|