@ucalgary-design-system/radio 1.0.1 → 1.0.3
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 +22 -0
- package/LICENSE.md +21 -0
- package/index.js +169 -164
- package/package.json +6 -6
- package/radio.css +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @ucalgary-design-system/radio
|
|
2
|
+
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c3fdd31: Updated dependencies and modified build
|
|
8
|
+
- Updated dependencies [386b04a]
|
|
9
|
+
- Updated dependencies [c3fdd31]
|
|
10
|
+
- @ucalgary-design-system/icon@1.0.3
|
|
11
|
+
- @ucalgary-design-system/core@1.0.3
|
|
12
|
+
|
|
13
|
+
## 1.0.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- dddb90f: Added LICENSE to package
|
|
18
|
+
- Updated dependencies [dddb90f]
|
|
19
|
+
- @ucalgary-design-system/helper-components@1.0.2
|
|
20
|
+
- @ucalgary-design-system/icon@1.0.2
|
|
21
|
+
- @ucalgary-design-system/tokens@1.0.3
|
|
22
|
+
- @ucalgary-design-system/core@1.0.2
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 University of Calgary
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { unsafeCSS as
|
|
2
|
-
import { BaseElement as
|
|
3
|
-
import { FormLabel as
|
|
1
|
+
import { unsafeCSS as U, nothing as $, html as u } from "lit";
|
|
2
|
+
import { BaseElement as x } from "@ucalgary-design-system/core";
|
|
3
|
+
import { FormLabel as C } from "@ucalgary-design-system/helper-components";
|
|
4
4
|
import "@ucalgary-design-system/icon";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const A = (i) => (e, t) => {
|
|
11
11
|
t !== void 0 ? t.addInitializer(() => {
|
|
12
|
-
customElements.define(
|
|
13
|
-
}) : customElements.define(
|
|
12
|
+
customElements.define(i, e);
|
|
13
|
+
}) : customElements.define(i, e);
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2019 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
19
|
*/
|
|
20
|
-
const m = globalThis, v = m.ShadowRoot && (m.ShadyCSS === void 0 || m.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
21
|
-
let
|
|
20
|
+
const m = globalThis, v = m.ShadowRoot && (m.ShadyCSS === void 0 || m.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, O = Symbol(), k = /* @__PURE__ */ new WeakMap();
|
|
21
|
+
let R = class {
|
|
22
22
|
constructor(e, t, r) {
|
|
23
|
-
if (this._$cssResult$ = !0, r !==
|
|
23
|
+
if (this._$cssResult$ = !0, r !== O) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
24
24
|
this.cssText = e, this.t = t;
|
|
25
25
|
}
|
|
26
26
|
get styleSheet() {
|
|
@@ -28,7 +28,7 @@ let A = class {
|
|
|
28
28
|
const t = this.t;
|
|
29
29
|
if (v && e === void 0) {
|
|
30
30
|
const r = t !== void 0 && t.length === 1;
|
|
31
|
-
r && (e =
|
|
31
|
+
r && (e = k.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), r && k.set(t, e));
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
34
|
}
|
|
@@ -36,101 +36,99 @@ let A = class {
|
|
|
36
36
|
return this.cssText;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
const
|
|
40
|
-
if (v)
|
|
39
|
+
const M = (i) => new R(typeof i == "string" ? i : i + "", void 0, O), q = (i, e) => {
|
|
40
|
+
if (v) i.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
41
41
|
else for (const t of e) {
|
|
42
|
-
const r = document.createElement("style"),
|
|
43
|
-
|
|
42
|
+
const r = document.createElement("style"), o = m.litNonce;
|
|
43
|
+
o !== void 0 && r.setAttribute("nonce", o), r.textContent = t.cssText, i.appendChild(r);
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, E = v ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((e) => {
|
|
46
46
|
let t = "";
|
|
47
47
|
for (const r of e.cssRules) t += r.cssText;
|
|
48
|
-
return
|
|
49
|
-
})(
|
|
48
|
+
return M(t);
|
|
49
|
+
})(i) : i;
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
const { is:
|
|
55
|
+
const { is: T, defineProperty: N, getOwnPropertyDescriptor: D, getOwnPropertyNames: j, getOwnPropertySymbols: z, getPrototypeOf: I } = Object, p = globalThis, w = p.trustedTypes, L = w ? w.emptyScript : "", g = p.reactiveElementPolyfillSupport, b = (i, e) => i, y = { toAttribute(i, e) {
|
|
56
56
|
switch (e) {
|
|
57
57
|
case Boolean:
|
|
58
|
-
|
|
58
|
+
i = i ? L : null;
|
|
59
59
|
break;
|
|
60
60
|
case Object:
|
|
61
61
|
case Array:
|
|
62
|
-
|
|
62
|
+
i = i == null ? i : JSON.stringify(i);
|
|
63
63
|
}
|
|
64
|
-
return
|
|
65
|
-
}, fromAttribute(
|
|
66
|
-
let t =
|
|
64
|
+
return i;
|
|
65
|
+
}, fromAttribute(i, e) {
|
|
66
|
+
let t = i;
|
|
67
67
|
switch (e) {
|
|
68
68
|
case Boolean:
|
|
69
|
-
t =
|
|
69
|
+
t = i !== null;
|
|
70
70
|
break;
|
|
71
71
|
case Number:
|
|
72
|
-
t =
|
|
72
|
+
t = i === null ? null : Number(i);
|
|
73
73
|
break;
|
|
74
74
|
case Object:
|
|
75
75
|
case Array:
|
|
76
76
|
try {
|
|
77
|
-
t = JSON.parse(
|
|
77
|
+
t = JSON.parse(i);
|
|
78
78
|
} catch {
|
|
79
79
|
t = null;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return t;
|
|
83
|
-
} }, _ = (
|
|
84
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
85
|
-
class
|
|
83
|
+
} }, _ = (i, e) => !T(i, e), P = { attribute: !0, type: String, converter: y, reflect: !1, useDefault: !1, hasChanged: _ };
|
|
84
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), p.litPropertyMetadata ?? (p.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
85
|
+
class f extends HTMLElement {
|
|
86
86
|
static addInitializer(e) {
|
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
88
88
|
}
|
|
89
89
|
static get observedAttributes() {
|
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
91
91
|
}
|
|
92
|
-
static createProperty(e, t =
|
|
93
|
-
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
94
|
-
const r = Symbol(),
|
|
95
|
-
|
|
92
|
+
static createProperty(e, t = P) {
|
|
93
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
94
|
+
const r = Symbol(), o = this.getPropertyDescriptor(e, r, t);
|
|
95
|
+
o !== void 0 && N(this.prototype, e, o);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static getPropertyDescriptor(e, t, r) {
|
|
99
|
-
const { get:
|
|
99
|
+
const { get: o, set: s } = D(this.prototype, e) ?? { get() {
|
|
100
100
|
return this[t];
|
|
101
|
-
}, set(
|
|
102
|
-
this[t] =
|
|
101
|
+
}, set(a) {
|
|
102
|
+
this[t] = a;
|
|
103
103
|
} };
|
|
104
|
-
return { get() {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
const l = i == null ? void 0 : i.call(this);
|
|
108
|
-
a.call(this, s), this.requestUpdate(e, l, r);
|
|
104
|
+
return { get: o, set(a) {
|
|
105
|
+
const n = o == null ? void 0 : o.call(this);
|
|
106
|
+
s == null || s.call(this, a), this.requestUpdate(e, n, r);
|
|
109
107
|
}, configurable: !0, enumerable: !0 };
|
|
110
108
|
}
|
|
111
109
|
static getPropertyOptions(e) {
|
|
112
|
-
return this.elementProperties.get(e) ??
|
|
110
|
+
return this.elementProperties.get(e) ?? P;
|
|
113
111
|
}
|
|
114
112
|
static _$Ei() {
|
|
115
|
-
if (this.hasOwnProperty(
|
|
116
|
-
const e =
|
|
113
|
+
if (this.hasOwnProperty(b("elementProperties"))) return;
|
|
114
|
+
const e = I(this);
|
|
117
115
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
118
116
|
}
|
|
119
117
|
static finalize() {
|
|
120
|
-
if (this.hasOwnProperty(
|
|
121
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
122
|
-
const t = this.properties, r = [...
|
|
123
|
-
for (const
|
|
118
|
+
if (this.hasOwnProperty(b("finalized"))) return;
|
|
119
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(b("properties"))) {
|
|
120
|
+
const t = this.properties, r = [...j(t), ...z(t)];
|
|
121
|
+
for (const o of r) this.createProperty(o, t[o]);
|
|
124
122
|
}
|
|
125
123
|
const e = this[Symbol.metadata];
|
|
126
124
|
if (e !== null) {
|
|
127
125
|
const t = litPropertyMetadata.get(e);
|
|
128
|
-
if (t !== void 0) for (const [r,
|
|
126
|
+
if (t !== void 0) for (const [r, o] of t) this.elementProperties.set(r, o);
|
|
129
127
|
}
|
|
130
128
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
131
129
|
for (const [t, r] of this.elementProperties) {
|
|
132
|
-
const
|
|
133
|
-
|
|
130
|
+
const o = this._$Eu(t, r);
|
|
131
|
+
o !== void 0 && this._$Eh.set(o, t);
|
|
134
132
|
}
|
|
135
133
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
136
134
|
}
|
|
@@ -138,8 +136,8 @@ class u extends HTMLElement {
|
|
|
138
136
|
const t = [];
|
|
139
137
|
if (Array.isArray(e)) {
|
|
140
138
|
const r = new Set(e.flat(1 / 0).reverse());
|
|
141
|
-
for (const
|
|
142
|
-
} else e !== void 0 && t.push(
|
|
139
|
+
for (const o of r) t.unshift(E(o));
|
|
140
|
+
} else e !== void 0 && t.push(E(e));
|
|
143
141
|
return t;
|
|
144
142
|
}
|
|
145
143
|
static _$Eu(e, t) {
|
|
@@ -168,7 +166,7 @@ class u extends HTMLElement {
|
|
|
168
166
|
}
|
|
169
167
|
createRenderRoot() {
|
|
170
168
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
171
|
-
return
|
|
169
|
+
return q(e, this.constructor.elementStyles), e;
|
|
172
170
|
}
|
|
173
171
|
connectedCallback() {
|
|
174
172
|
var e;
|
|
@@ -189,33 +187,37 @@ class u extends HTMLElement {
|
|
|
189
187
|
attributeChangedCallback(e, t, r) {
|
|
190
188
|
this._$AK(e, r);
|
|
191
189
|
}
|
|
192
|
-
_$
|
|
193
|
-
var
|
|
194
|
-
const r = this.constructor.elementProperties.get(e),
|
|
195
|
-
if (
|
|
196
|
-
const
|
|
197
|
-
this._$Em = e,
|
|
190
|
+
_$ET(e, t) {
|
|
191
|
+
var s;
|
|
192
|
+
const r = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, r);
|
|
193
|
+
if (o !== void 0 && r.reflect === !0) {
|
|
194
|
+
const a = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : y).toAttribute(t, r.type);
|
|
195
|
+
this._$Em = e, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$Em = null;
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
198
|
_$AK(e, t) {
|
|
201
|
-
var a;
|
|
202
|
-
const r = this.constructor,
|
|
203
|
-
if (
|
|
204
|
-
const
|
|
205
|
-
this._$Em =
|
|
199
|
+
var s, a;
|
|
200
|
+
const r = this.constructor, o = r._$Eh.get(e);
|
|
201
|
+
if (o !== void 0 && this._$Em !== o) {
|
|
202
|
+
const n = r.getPropertyOptions(o), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : y;
|
|
203
|
+
this._$Em = o;
|
|
204
|
+
const S = h.fromAttribute(t, n.type);
|
|
205
|
+
this[o] = S ?? ((a = this._$Ej) == null ? void 0 : a.get(o)) ?? S, this._$Em = null;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
requestUpdate(e, t, r) {
|
|
209
|
+
var o;
|
|
209
210
|
if (e !== void 0) {
|
|
210
|
-
|
|
211
|
-
|
|
211
|
+
const s = this.constructor, a = this[e];
|
|
212
|
+
if (r ?? (r = s.getPropertyOptions(e)), !((r.hasChanged ?? _)(a, t) || r.useDefault && r.reflect && a === ((o = this._$Ej) == null ? void 0 : o.get(e)) && !this.hasAttribute(s._$Eu(e, r)))) return;
|
|
213
|
+
this.C(e, t, r);
|
|
212
214
|
}
|
|
213
|
-
this.isUpdatePending === !1 && (this._$ES = this._$
|
|
215
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
214
216
|
}
|
|
215
|
-
|
|
216
|
-
this._$AL.has(e) || this._$AL.set(e, t),
|
|
217
|
+
C(e, t, { useDefault: r, reflect: o, wrapped: s }, a) {
|
|
218
|
+
r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), s !== !0 || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || r || (t = void 0), this._$AL.set(e, t)), o === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
|
217
219
|
}
|
|
218
|
-
async _$
|
|
220
|
+
async _$EP() {
|
|
219
221
|
this.isUpdatePending = !0;
|
|
220
222
|
try {
|
|
221
223
|
await this._$ES;
|
|
@@ -233,21 +235,24 @@ class u extends HTMLElement {
|
|
|
233
235
|
if (!this.isUpdatePending) return;
|
|
234
236
|
if (!this.hasUpdated) {
|
|
235
237
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
236
|
-
for (const [
|
|
238
|
+
for (const [s, a] of this._$Ep) this[s] = a;
|
|
237
239
|
this._$Ep = void 0;
|
|
238
240
|
}
|
|
239
|
-
const
|
|
240
|
-
if (
|
|
241
|
+
const o = this.constructor.elementProperties;
|
|
242
|
+
if (o.size > 0) for (const [s, a] of o) {
|
|
243
|
+
const { wrapped: n } = a, h = this[s];
|
|
244
|
+
n !== !0 || this._$AL.has(s) || h === void 0 || this.C(s, void 0, a, h);
|
|
245
|
+
}
|
|
241
246
|
}
|
|
242
247
|
let e = !1;
|
|
243
248
|
const t = this._$AL;
|
|
244
249
|
try {
|
|
245
|
-
e = this.shouldUpdate(t), e ? (this.willUpdate(t), (r = this._$EO) == null || r.forEach((
|
|
246
|
-
var
|
|
247
|
-
return (
|
|
248
|
-
}), this.update(t)) : this._$
|
|
249
|
-
} catch (
|
|
250
|
-
throw e = !1, this._$
|
|
250
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), (r = this._$EO) == null || r.forEach((o) => {
|
|
251
|
+
var s;
|
|
252
|
+
return (s = o.hostUpdate) == null ? void 0 : s.call(o);
|
|
253
|
+
}), this.update(t)) : this._$EM();
|
|
254
|
+
} catch (o) {
|
|
255
|
+
throw e = !1, this._$EM(), o;
|
|
251
256
|
}
|
|
252
257
|
e && this._$AE(t);
|
|
253
258
|
}
|
|
@@ -256,11 +261,11 @@ class u extends HTMLElement {
|
|
|
256
261
|
_$AE(e) {
|
|
257
262
|
var t;
|
|
258
263
|
(t = this._$EO) == null || t.forEach((r) => {
|
|
259
|
-
var
|
|
260
|
-
return (
|
|
264
|
+
var o;
|
|
265
|
+
return (o = r.hostUpdated) == null ? void 0 : o.call(r);
|
|
261
266
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
262
267
|
}
|
|
263
|
-
_$
|
|
268
|
+
_$EM() {
|
|
264
269
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
265
270
|
}
|
|
266
271
|
get updateComplete() {
|
|
@@ -273,53 +278,53 @@ class u extends HTMLElement {
|
|
|
273
278
|
return !0;
|
|
274
279
|
}
|
|
275
280
|
update(e) {
|
|
276
|
-
this._$
|
|
281
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t) => this._$ET(t, this[t]))), this._$EM();
|
|
277
282
|
}
|
|
278
283
|
updated(e) {
|
|
279
284
|
}
|
|
280
285
|
firstUpdated(e) {
|
|
281
286
|
}
|
|
282
287
|
}
|
|
283
|
-
|
|
288
|
+
f.elementStyles = [], f.shadowRootOptions = { mode: "open" }, f[b("elementProperties")] = /* @__PURE__ */ new Map(), f[b("finalized")] = /* @__PURE__ */ new Map(), g == null || g({ ReactiveElement: f }), (p.reactiveElementVersions ?? (p.reactiveElementVersions = [])).push("2.1.1");
|
|
284
289
|
/**
|
|
285
290
|
* @license
|
|
286
291
|
* Copyright 2017 Google LLC
|
|
287
292
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
288
293
|
*/
|
|
289
|
-
const
|
|
290
|
-
const { kind: r, metadata:
|
|
291
|
-
let
|
|
292
|
-
if (
|
|
293
|
-
const { name:
|
|
294
|
-
return { set(
|
|
295
|
-
const
|
|
296
|
-
e.set.call(this,
|
|
297
|
-
}, init(
|
|
298
|
-
return
|
|
294
|
+
const B = { attribute: !0, type: String, converter: y, reflect: !1, hasChanged: _ }, H = (i = B, e, t) => {
|
|
295
|
+
const { kind: r, metadata: o } = t;
|
|
296
|
+
let s = globalThis.litPropertyMetadata.get(o);
|
|
297
|
+
if (s === void 0 && globalThis.litPropertyMetadata.set(o, s = /* @__PURE__ */ new Map()), r === "setter" && ((i = Object.create(i)).wrapped = !0), s.set(t.name, i), r === "accessor") {
|
|
298
|
+
const { name: a } = t;
|
|
299
|
+
return { set(n) {
|
|
300
|
+
const h = e.get.call(this);
|
|
301
|
+
e.set.call(this, n), this.requestUpdate(a, h, i);
|
|
302
|
+
}, init(n) {
|
|
303
|
+
return n !== void 0 && this.C(a, void 0, i, n), n;
|
|
299
304
|
} };
|
|
300
305
|
}
|
|
301
306
|
if (r === "setter") {
|
|
302
|
-
const { name:
|
|
303
|
-
return function(
|
|
304
|
-
const
|
|
305
|
-
e.call(this,
|
|
307
|
+
const { name: a } = t;
|
|
308
|
+
return function(n) {
|
|
309
|
+
const h = this[a];
|
|
310
|
+
e.call(this, n), this.requestUpdate(a, h, i);
|
|
306
311
|
};
|
|
307
312
|
}
|
|
308
313
|
throw Error("Unsupported decorator location: " + r);
|
|
309
314
|
};
|
|
310
|
-
function
|
|
311
|
-
return (e, t) => typeof t == "object" ?
|
|
312
|
-
const
|
|
313
|
-
return
|
|
314
|
-
})(
|
|
315
|
+
function l(i) {
|
|
316
|
+
return (e, t) => typeof t == "object" ? H(i, e, t) : ((r, o, s) => {
|
|
317
|
+
const a = o.hasOwnProperty(s);
|
|
318
|
+
return o.constructor.createProperty(s, r), a ? Object.getOwnPropertyDescriptor(o, s) : void 0;
|
|
319
|
+
})(i, e, t);
|
|
315
320
|
}
|
|
316
|
-
const
|
|
317
|
-
var
|
|
318
|
-
for (var
|
|
319
|
-
(
|
|
320
|
-
return r &&
|
|
321
|
+
const F = ':host{display:block}.form-radio{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);--formRadioCheckboxHeight: 1.25rem;--checkmarkHeight: .625rem;--radioHeight: .625rem}.form-radio input[type=checkbox],.form-radio input[type=radio]{position:absolute;opacity:0}.form-radio input[type=checkbox]+label,.form-radio input[type=radio]+label{display:flex;position:relative;width:100%;max-width:555px;padding-left:28px;line-height:var(--formRadioCheckboxHeight);cursor:pointer}.form-radio input[type=checkbox]+label .radio-control,.form-radio input[type=radio]+label .radio-control{content:"";display:block;position:absolute;width:var(--formRadioCheckboxHeight);height:var(--formRadioCheckboxHeight);top:0;left:0;background-color:var(--ucds-color-palette-white);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);transition:background-color .5s ease,border-color .5s ease}.form-radio input[type=checkbox]:hover+label .radio-control,.form-radio input[type=radio]:hover+label .radio-control{border-color:var(--ucds-color-forms-input-border-hover)}.form-radio input[type=checkbox]:active:not(:disabled)+label .radio-control,.form-radio input[type=checkbox]:focus:not(:disabled)+label .radio-control,.form-radio input[type=radio]:active:not(:disabled)+label .radio-control,.form-radio input[type=radio]:focus:not(:disabled)+label .radio-control{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-radio input[type=checkbox]:checked+label .radio-control,.form-radio input[type=radio]:checked+label .radio-control{background-color:var(--ucds-color-forms-input-background-selected);border-color:var(--ucds-color-forms-input-border-selected)}.form-radio input[type=checkbox]:checked+label .radio-control ucds-icon,.form-radio input[type=radio]:checked+label .radio-control ucds-icon{transform:scale(75%);color:var(--ucds-color-icon-primary-inverse)}.form-radio input[type=checkbox]:disabled+label,.form-radio input[type=radio]:disabled+label{color:var(--ucds-color-text-disabled);cursor:default}.form-radio input[type=checkbox]:disabled+label .radio-control,.form-radio input[type=radio]:disabled+label .radio-control{background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-radio input[type=checkbox]:disabled:checked+label .radio-control,.form-radio input[type=radio]:disabled:checked+label .radio-control{background-color:var(--ucds-color-forms-input-background-disabled);border-color:var(--ucds-color-forms-input-border-disabled)}.form-radio input[type=checkbox][error]:not(:disabled)+label .radio-control,.form-radio input[type=checkbox][errors]:not(:disabled)+label .radio-control,.form-radio input[type=radio][error]:not(:disabled)+label .radio-control,.form-radio input[type=radio][errors]:not(:disabled)+label .radio-control{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-radio input[type=checkbox][error]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=checkbox][errors]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=radio][error]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=radio][errors]:not(:disabled)+label .radio-control ucds-icon{color:var(--ucds-color-feedback-error-light)}.form-radio input[type=radio]+label .radio-control{border-radius:50%}';
|
|
322
|
+
var J = Object.defineProperty, K = Object.getOwnPropertyDescriptor, c = (i, e, t, r) => {
|
|
323
|
+
for (var o = r > 1 ? void 0 : r ? K(e, t) : e, s = i.length - 1, a; s >= 0; s--)
|
|
324
|
+
(a = i[s]) && (o = (r ? a(e, t, o) : a(o)) || o);
|
|
325
|
+
return r && o && J(e, t, o), o;
|
|
321
326
|
};
|
|
322
|
-
let
|
|
327
|
+
let d = class extends x {
|
|
323
328
|
constructor() {
|
|
324
329
|
super(), this.radioID = "radio", this.radioName = "", this.value = "", this.checked = !1, this.disabled = !1, this.required = !1, this.errors = !1, this.error = !1, this.internals = this.attachInternals();
|
|
325
330
|
}
|
|
@@ -330,7 +335,7 @@ let n = class extends P {
|
|
|
330
335
|
console.error(`${this.localName}: Property 'name' is required for radio button group functionality and was not set.`);
|
|
331
336
|
return;
|
|
332
337
|
}
|
|
333
|
-
const
|
|
338
|
+
const i = this.form || this.getRootNode(), e = Array.from(i.querySelectorAll(this.localName));
|
|
334
339
|
for (const r of e)
|
|
335
340
|
r !== this && r.form === this.form && r.radioName === this.radioName && (r.checked = !1, (t = r._updateInternals) == null || t.call(r));
|
|
336
341
|
}
|
|
@@ -338,31 +343,31 @@ let n = class extends P {
|
|
|
338
343
|
_updateInternals() {
|
|
339
344
|
var e;
|
|
340
345
|
this.internals.setFormValue(this.checked ? this.value : null, this.checked ? "true" : ""), this.setAttribute("aria-checked", String(this.checked));
|
|
341
|
-
const
|
|
342
|
-
|
|
346
|
+
const i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input");
|
|
347
|
+
i.checked = this.checked;
|
|
343
348
|
}
|
|
344
349
|
// Handle change event.
|
|
345
|
-
_handleChange({ target:
|
|
346
|
-
const e =
|
|
350
|
+
_handleChange({ target: i }) {
|
|
351
|
+
const e = i;
|
|
347
352
|
this.checked = e.checked, this._updateInternals(), this._uncheckOtherRadios();
|
|
348
353
|
}
|
|
349
354
|
// Initialize component and warn if required properties have not been set.
|
|
350
|
-
firstUpdated(
|
|
351
|
-
super.firstUpdated(
|
|
355
|
+
firstUpdated(i) {
|
|
356
|
+
super.firstUpdated(i), this.form = this.internals.form, this._updateInternals(), this.radioName || console.error(`${this.localName}: Property 'name' is required and was not set.`), this.value || console.error(`${this.localName}: Property 'value' is required and was not set.`);
|
|
352
357
|
}
|
|
353
358
|
// Catch non-click changes.
|
|
354
|
-
update(
|
|
355
|
-
super.update(
|
|
359
|
+
update(i) {
|
|
360
|
+
super.update(i), i.has("checked") && i.get("checked") !== void 0 && this._updateInternals();
|
|
356
361
|
}
|
|
357
362
|
// Reset form state.
|
|
358
363
|
formResetCallback() {
|
|
359
364
|
this.checked = !1, this._updateInternals();
|
|
360
365
|
}
|
|
361
|
-
formStateRestoreCallback(
|
|
362
|
-
this.checked = String(
|
|
366
|
+
formStateRestoreCallback(i) {
|
|
367
|
+
this.checked = String(i).toLowerCase() === "true", this.checked && this._uncheckOtherRadios();
|
|
363
368
|
}
|
|
364
369
|
render() {
|
|
365
|
-
return
|
|
370
|
+
return u`
|
|
366
371
|
<div class="form-radio">
|
|
367
372
|
<input
|
|
368
373
|
type="radio"
|
|
@@ -378,55 +383,55 @@ let n = class extends P {
|
|
|
378
383
|
/>
|
|
379
384
|
<label for="${this.radioID}" ?disabled=${this.disabled}>
|
|
380
385
|
<span class="radio-control">
|
|
381
|
-
${this.checked ?
|
|
386
|
+
${this.checked ? u`<ucds-icon name="dot" size="16"></ucds-icon>` : ""}
|
|
382
387
|
</span>
|
|
383
|
-
<span><slot>Radio Label</slot>${this.required ?
|
|
388
|
+
<span><slot>Radio Label</slot>${this.required ? u`${C.requiredAsteriskTemplate()}` : $}</span>
|
|
384
389
|
</label>
|
|
385
|
-
${this.error && !this.disabled ?
|
|
386
|
-
${this.helpText ?
|
|
390
|
+
${this.error && !this.disabled ? u`<form-error-message text="${this.errorText}"></form-error-message>` : $}
|
|
391
|
+
${this.helpText ? u`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : $}
|
|
387
392
|
</div>
|
|
388
393
|
`;
|
|
389
394
|
}
|
|
390
395
|
};
|
|
391
|
-
|
|
392
|
-
P.styles,
|
|
396
|
+
d.styles = [
|
|
393
397
|
x.styles,
|
|
394
|
-
C
|
|
398
|
+
C.styles,
|
|
399
|
+
U(F)
|
|
395
400
|
];
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
],
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
],
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
],
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
],
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
],
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
],
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
],
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
],
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
],
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
],
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
],
|
|
401
|
+
d.formAssociated = !0;
|
|
402
|
+
c([
|
|
403
|
+
l({ type: String, attribute: "input-id" })
|
|
404
|
+
], d.prototype, "radioID", 2);
|
|
405
|
+
c([
|
|
406
|
+
l({ type: String, attribute: "name" })
|
|
407
|
+
], d.prototype, "radioName", 2);
|
|
408
|
+
c([
|
|
409
|
+
l({ type: String })
|
|
410
|
+
], d.prototype, "value", 2);
|
|
411
|
+
c([
|
|
412
|
+
l({ type: Boolean, reflect: !0 })
|
|
413
|
+
], d.prototype, "checked", 2);
|
|
414
|
+
c([
|
|
415
|
+
l({ type: Boolean, reflect: !0 })
|
|
416
|
+
], d.prototype, "disabled", 2);
|
|
417
|
+
c([
|
|
418
|
+
l({ type: Boolean, reflect: !0 })
|
|
419
|
+
], d.prototype, "required", 2);
|
|
420
|
+
c([
|
|
421
|
+
l({ type: Boolean, reflect: !0 })
|
|
422
|
+
], d.prototype, "errors", 2);
|
|
423
|
+
c([
|
|
424
|
+
l({ type: Boolean, reflect: !0 })
|
|
425
|
+
], d.prototype, "error", 2);
|
|
426
|
+
c([
|
|
427
|
+
l({ type: String, attribute: "error-text" })
|
|
428
|
+
], d.prototype, "errorText", 2);
|
|
429
|
+
c([
|
|
430
|
+
l({ type: String, attribute: "help-text" })
|
|
431
|
+
], d.prototype, "helpText", 2);
|
|
432
|
+
d = c([
|
|
433
|
+
A("ucds-radio")
|
|
434
|
+
], d);
|
|
430
435
|
export {
|
|
431
|
-
|
|
436
|
+
d as Radio
|
|
432
437
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucalgary-design-system/radio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"require": "./index.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"@ucalgary-design-system/core": "^1.0.
|
|
15
|
-
"@ucalgary-design-system/helper-components": "^1.0.
|
|
16
|
-
"@ucalgary-design-system/icon": "^1.0.
|
|
17
|
-
"@ucalgary-design-system/tokens": "^1.0.
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@ucalgary-design-system/core": "^1.0.3",
|
|
15
|
+
"@ucalgary-design-system/helper-components": "^1.0.2",
|
|
16
|
+
"@ucalgary-design-system/icon": "^1.0.3",
|
|
17
|
+
"@ucalgary-design-system/tokens": "^1.0.3",
|
|
18
18
|
"lit": "^3.2.1"
|
|
19
19
|
},
|
|
20
20
|
"description": "A web component for Radio",
|
package/radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--ucds-color-palette-brand-red: #d6001c;--ucds-color-palette-brand-gold: #ffcd00;--ucds-color-palette-brand-light-orange: #ffa300;--ucds-color-palette-brand-dark-orange: #ff7b1f;--ucds-color-palette-brand-berry: #9c0534;--ucds-color-palette-brand-rubine: #ce0058;--ucds-color-palette-brand-brown: #6b3529;--ucds-color-palette-brand-teal: #47a67c;--ucds-color-palette-white: #ffffff;--ucds-color-palette-black: #000000;--ucds-color-palette-gray-100: #2d2d2d;--ucds-color-palette-gray-200: #3d3d3d;--ucds-color-palette-gray-250: #4d4d4d;--ucds-color-palette-gray-300: #5d5d5d;--ucds-color-palette-gray-400: #8d8d8d;--ucds-color-palette-gray-500: #adadad;--ucds-color-palette-gray-600: #c0c0c0;--ucds-color-palette-gray-700: #d8d8d8;--ucds-color-palette-gray-800: #e5e5e5;--ucds-color-palette-gray-900: #f4f4f4;--ucds-color-palette-red-100: #3d0910;--ucds-color-palette-red-200: #5c0e18;--ucds-color-palette-red-300: #7a111f;--ucds-color-palette-red-400: #991022;--ucds-color-palette-red-500: #b70b21;--ucds-color-palette-red-600: #d6001c;--ucds-color-palette-red-700: #df3047;--ucds-color-palette-red-800: #ee0e2c;--ucds-color-palette-red-900: #ffadad;--ucds-color-palette-berry-600: #9c0534;--ucds-color-palette-berry-700: #a6192e;--ucds-color-palette-berry-800: #ea7b8a;--ucds-color-palette-berry-900: #f6ebed;--ucds-color-palette-rubine-600: #ce0058;--ucds-color-palette-rubine-800: #ed0a72;--ucds-color-palette-rubine-900: #ffa3c9;--ucds-color-palette-dark-orange-200: #6b3529;--ucds-color-palette-dark-orange-600: #ff671f;--ucds-color-palette-dark-orange-900: #fff2e9;--ucds-color-palette-light-orange-200: #614e00;--ucds-color-palette-light-orange-600: #ffa300;--ucds-color-palette-light-orange-900: #fff6e7;--ucds-color-palette-brown-600: #6c3302;--ucds-color-palette-brown-900: #ca7d68;--ucds-color-surface-page: #ffffff;--ucds-color-surface-primary: #ffffff;--ucds-color-border-neutral: #8d8d8d;--ucds-color-text-primary: #2d2d2d;--ucds-color-text-primary-inverse: #ffffff;--ucds-color-text-secondary: #5d5d5d;--ucds-color-text-error: #df3047;--ucds-color-text-disabled: #e5e5e5;--ucds-color-icon-primary: #2d2d2d;--ucds-color-icon-primary-inverse: #ffffff;--ucds-color-forms-input-background-rest: #ffffff;--ucds-color-forms-input-background-hover: #9c0534;--ucds-color-forms-input-background-active: #9c0534;--ucds-color-forms-input-background-selected: #9c0534;--ucds-color-forms-input-background-disabled: #e5e5e5;--ucds-color-forms-input-background-error: rgb(255 173 173 / 50%);--ucds-color-forms-input-border-rest: #8d8d8d;--ucds-color-forms-input-border-hover: #3d3d3d;--ucds-color-forms-input-border-active: #3d3d3d;--ucds-color-forms-input-border-selected: #9c0534;--ucds-color-forms-input-border-disabled: #e5e5e5;--ucds-color-forms-input-border-error: #df3047;--ucds-color-forms-input-element-disabled: #f4f4f4;--ucds-color-action-rest: #d6001c;--ucds-color-action-hover: #991022;--ucds-color-action-active: #991022;--ucds-color-action-focus: #4d4d4d;--ucds-color-action-visited: #991022;--ucds-color-action-secondary-rest: #2d2d2d;--ucds-color-action-secondary-hover: #4d4d4d;--ucds-color-action-secondary-active: #4d4d4d;--ucds-color-action-secondary-focus: #4d4d4d;--ucds-color-action-inverse-rest: #ffffff;--ucds-color-action-inverse-hover: #e5e5e5;--ucds-color-action-inverse-active: #e5e5e5;--ucds-color-action-inverse-focus: #ffffff;--ucds-color-feedback-error-light: #df3047;--ucds-color-feedback-error-background-light: rgb(255 173 173 / 50%);--ucds-font-base-size: 16px;--ucds-font-base-line-height: 24px;--ucds-font-base-weight-light: 200;--ucds-font-base-weight-normal: 400;--ucds-font-base-weight-medium: 500;--ucds-font-base-weight-semibold: 600;--ucds-font-base-weight-bold: 700;--ucds-font-sans-serif-family: "Proxima Nova", Arial, Helvetica, sans-serif;--ucds-font-serif-family: "Museo Slab", "Proxima Nova", Arial, Helvetica, sans-serif;--ucds-form-element-border-radius: 8px;--ucds-form-element-border-width: 2px;--ucds-form-element-height: 48px;--ucds-form-element-width: 100%;--ucds-form-element-maxwidth: 555px;--ucds-form-element-horizontal-padding: 16px;--ucds-form-component-intra-spacing: 8px;--ucds-form-component-inter-spacing: 16px}
|
|
1
|
+
:root{--ucds-color-palette-brand-red: #d6001c;--ucds-color-palette-brand-gold: #ffcd00;--ucds-color-palette-brand-light-orange: #ffa300;--ucds-color-palette-brand-dark-orange: #ff671f;--ucds-color-palette-brand-rubine: #ce0058;--ucds-color-palette-brand-berry: #9c0534;--ucds-color-palette-brand-brown: #6b3529;--ucds-color-palette-brand-teal: #47a67c;--ucds-color-palette-black: #000000;--ucds-color-palette-gray-100: #2d2d2d;--ucds-color-palette-gray-200: #3d3d3d;--ucds-color-palette-gray-250: #4d4d4d;--ucds-color-palette-gray-300: #5d5d5d;--ucds-color-palette-gray-400: #8d8d8d;--ucds-color-palette-gray-500: #adadad;--ucds-color-palette-gray-600: #c0c0c0;--ucds-color-palette-gray-700: #d8d8d8;--ucds-color-palette-gray-800: #e5e5e5;--ucds-color-palette-gray-900: #f4f4f4;--ucds-color-palette-white: #ffffff;--ucds-color-palette-red-100: #3d0910;--ucds-color-palette-red-200: #5c0e18;--ucds-color-palette-red-300: #7a111f;--ucds-color-palette-red-400: #991022;--ucds-color-palette-red-500: #b70b21;--ucds-color-palette-red-600: #d6001c;--ucds-color-palette-red-700: #df3047;--ucds-color-palette-red-800: #ee0e2c;--ucds-color-palette-red-900: #ffadad;--ucds-color-palette-light-orange-200: #614e00;--ucds-color-palette-light-orange-600: #ffa300;--ucds-color-palette-light-orange-900: #fff6e7;--ucds-color-palette-dark-orange-200: #6b3529;--ucds-color-palette-dark-orange-600: #ff671f;--ucds-color-palette-dark-orange-900: #fff2e9;--ucds-color-palette-rubine-600: #ce0058;--ucds-color-palette-rubine-800: #ed0a72;--ucds-color-palette-rubine-900: #ffa3c9;--ucds-color-palette-berry-600: #9c0534;--ucds-color-palette-berry-700: #a6192e;--ucds-color-palette-berry-800: #ea7b8a;--ucds-color-palette-berry-900: #f6ebed;--ucds-color-palette-brown-600: #6b3529;--ucds-color-palette-brown-900: #ca7d68;--ucds-color-palette-teal-600: #47a67c;--ucds-color-palette-teal-900: #f4faf7;--ucds-color-accent-gray-tint-background: #f4f4f4;--ucds-color-accent-gray-tint-icon: #8d8d8d;--ucds-color-accent-red-background: #d6001c;--ucds-color-accent-red-icon: #ffadad;--ucds-color-accent-light-orange-background: #ffa300;--ucds-color-accent-light-orange-icon: #614e00;--ucds-color-accent-light-orange-tint-background: #fff6e7;--ucds-color-accent-light-orange-tint-icon: #ffa300;--ucds-color-accent-dark-orange-background: #ff671f;--ucds-color-accent-dark-orange-icon: #6b3529;--ucds-color-accent-dark-orange-tint-background: #fff2e9;--ucds-color-accent-dark-orange-tint-icon: #ff671f;--ucds-color-accent-rubine-background: #ce0058;--ucds-color-accent-rubine-icon: #ffa3c9;--ucds-color-accent-berry-background: #9c0534;--ucds-color-accent-berry-icon: #ea7b8a;--ucds-color-accent-berry-tint-background: #f6ebed;--ucds-color-accent-berry-tint-icon: #9c0534;--ucds-color-accent-brown-background: #6b3529;--ucds-color-accent-brown-icon: #ca7d68;--ucds-color-accent-teal-tint-background: #f4faf7;--ucds-color-accent-teal-tint-icon: #47a67c;--ucds-color-accent-taupe-tint-background: #fbf8f5;--ucds-color-accent-taupe-tint-icon: #d3ac8b;--ucds-color-surface-page: #ffffff;--ucds-color-surface-primary: #ffffff;--ucds-color-border-neutral: #8d8d8d;--ucds-color-text-primary: #2d2d2d;--ucds-color-text-primary-inverse: #ffffff;--ucds-color-text-secondary: #5d5d5d;--ucds-color-text-disabled: #e5e5e5;--ucds-color-icon-primary: #2d2d2d;--ucds-color-icon-primary-inverse: #ffffff;--ucds-color-forms-input-background-rest: #ffffff;--ucds-color-forms-input-background-hover: #9c0534;--ucds-color-forms-input-background-active: #9c0534;--ucds-color-forms-input-background-selected: #9c0534;--ucds-color-forms-input-background-disabled: #e5e5e5;--ucds-color-forms-input-border-rest: #8d8d8d;--ucds-color-forms-input-border-hover: #3d3d3d;--ucds-color-forms-input-border-active: #3d3d3d;--ucds-color-forms-input-border-selected: #9c0534;--ucds-color-forms-input-border-disabled: #e5e5e5;--ucds-color-forms-input-element-disabled: #f4f4f4;--ucds-color-action-rest: #d6001c;--ucds-color-action-hover: #991022;--ucds-color-action-active: #991022;--ucds-color-action-focus: #4d4d4d;--ucds-color-action-visited: #991022;--ucds-color-action-selected: #9c0534;--ucds-color-action-secondary-rest: #2d2d2d;--ucds-color-action-secondary-hover: #4d4d4d;--ucds-color-action-secondary-active: #4d4d4d;--ucds-color-action-secondary-focus: #4d4d4d;--ucds-color-action-inverse-rest: #ffffff;--ucds-color-action-inverse-hover: #e5e5e5;--ucds-color-action-inverse-active: #e5e5e5;--ucds-color-action-inverse-focus: #ffffff;--ucds-color-feedback-error-light: #df3047;--ucds-color-feedback-error-background-light: rgb(255 173 173 / 50%);--ucds-font-base-size: 16px;--ucds-font-base-line-height: 24px;--ucds-font-family-sans-serif: "Proxima Nova", Arial, Helvetica, sans-serif;--ucds-font-family-serif: "Museo Slab", "Proxima Nova", Arial, Helvetica, sans-serif;--ucds-font-weight-regular: 400;--ucds-font-weight-medium: 500;--ucds-font-weight-semibold: 600;--ucds-font-weight-bold: 700;--ucds-font-paragraph-spacing: 16px;--ucds-font-letter-spacing-eyebrow: 2px;--ucds-responsive-spacing-gap-default-desktop: 32px;--ucds-responsive-spacing-gap-default-tablet: 32px;--ucds-responsive-spacing-gap-default-mobile: 24px;--ucds-responsive-spacing-gap-section-desktop: 64px;--ucds-responsive-spacing-gap-section-tablet: 64px;--ucds-responsive-spacing-gap-section-mobile: 48px;--ucds-responsive-spacing-gap-container-desktop: 48px;--ucds-responsive-spacing-gap-container-tablet: 48px;--ucds-responsive-spacing-gap-container-mobile: 32px;--ucds-responsive-spacing-gap-h1h2-paragraph-desktop: 16px;--ucds-responsive-spacing-gap-h1h2-paragraph-tablet: 16px;--ucds-responsive-spacing-gap-h1h2-paragraph-mobile: 8px;--ucds-responsive-spacing-gap-h3h4-paragraph-desktop: 8px;--ucds-responsive-spacing-gap-h3h4-paragraph-tablet: 8px;--ucds-responsive-spacing-gap-h3h4-paragraph-mobile: 8px;--ucds-responsive-typography-font-size-display-level-0-desktop: 56px;--ucds-responsive-typography-font-size-display-level-0-tablet: 56px;--ucds-responsive-typography-font-size-display-level-0-mobile: 48px;--ucds-responsive-typography-font-size-display-level-1-desktop: 48px;--ucds-responsive-typography-font-size-display-level-1-tablet: 48px;--ucds-responsive-typography-font-size-display-level-1-mobile: 40px;--ucds-responsive-typography-font-size-display-level-2-desktop: 36px;--ucds-responsive-typography-font-size-display-level-2-tablet: 36px;--ucds-responsive-typography-font-size-display-level-2-mobile: 32px;--ucds-responsive-typography-font-size-heading-level-1-desktop: 48px;--ucds-responsive-typography-font-size-heading-level-1-tablet: 48px;--ucds-responsive-typography-font-size-heading-level-1-mobile: 40px;--ucds-responsive-typography-font-size-heading-level-2-desktop: 36px;--ucds-responsive-typography-font-size-heading-level-2-tablet: 36px;--ucds-responsive-typography-font-size-heading-level-2-mobile: 32px;--ucds-responsive-typography-font-size-heading-level-3-desktop: 28px;--ucds-responsive-typography-font-size-heading-level-3-tablet: 28px;--ucds-responsive-typography-font-size-heading-level-3-mobile: 24px;--ucds-responsive-typography-font-size-heading-level-4-desktop: 24px;--ucds-responsive-typography-font-size-heading-level-4-tablet: 24px;--ucds-responsive-typography-font-size-heading-level-4-mobile: 20px;--ucds-responsive-typography-font-size-title-desktop: 20px;--ucds-responsive-typography-font-size-title-tablet: 20px;--ucds-responsive-typography-font-size-title-mobile: 18px;--ucds-responsive-typography-font-size-body-large-desktop: 20px;--ucds-responsive-typography-font-size-body-large-tablet: 20px;--ucds-responsive-typography-font-size-body-large-mobile: 18px;--ucds-responsive-typography-font-size-body-medium-desktop: 16px;--ucds-responsive-typography-font-size-body-medium-tablet: 16px;--ucds-responsive-typography-font-size-body-medium-mobile: 16px;--ucds-responsive-typography-font-size-body-small-desktop: 14px;--ucds-responsive-typography-font-size-body-small-tablet: 14px;--ucds-responsive-typography-font-size-body-small-mobile: 14px;--ucds-responsive-typography-font-size-micro-desktop: 12px;--ucds-responsive-typography-font-size-micro-tablet: 12px;--ucds-responsive-typography-font-size-micro-mobile: 12px;--ucds-responsive-typography-line-height-display-level-0-desktop: 64px;--ucds-responsive-typography-line-height-display-level-0-tablet: 64px;--ucds-responsive-typography-line-height-display-level-0-mobile: 56px;--ucds-responsive-typography-line-height-display-level-1-desktop: 56px;--ucds-responsive-typography-line-height-display-level-1-tablet: 56px;--ucds-responsive-typography-line-height-display-level-1-mobile: 48px;--ucds-responsive-typography-line-height-display-level-2-desktop: 48px;--ucds-responsive-typography-line-height-display-level-2-tablet: 48px;--ucds-responsive-typography-line-height-display-level-2-mobile: 40px;--ucds-responsive-typography-line-height-heading-level-1-desktop: 56px;--ucds-responsive-typography-line-height-heading-level-1-tablet: 56px;--ucds-responsive-typography-line-height-heading-level-1-mobile: 48px;--ucds-responsive-typography-line-height-heading-level-2-desktop: 48px;--ucds-responsive-typography-line-height-heading-level-2-tablet: 48px;--ucds-responsive-typography-line-height-heading-level-2-mobile: 40px;--ucds-responsive-typography-line-height-heading-level-3-desktop: 32px;--ucds-responsive-typography-line-height-heading-level-3-tablet: 32px;--ucds-responsive-typography-line-height-heading-level-3-mobile: 28px;--ucds-responsive-typography-line-height-heading-level-4-desktop: 28px;--ucds-responsive-typography-line-height-heading-level-4-tablet: 28px;--ucds-responsive-typography-line-height-heading-level-4-mobile: 28px;--ucds-responsive-typography-line-height-title-desktop: 28px;--ucds-responsive-typography-line-height-title-tablet: 28px;--ucds-responsive-typography-line-height-title-mobile: 28px;--ucds-responsive-typography-line-height-body-large-desktop: 28px;--ucds-responsive-typography-line-height-body-large-tablet: 28px;--ucds-responsive-typography-line-height-body-large-mobile: 24px;--ucds-responsive-typography-line-height-body-medium-desktop: 24px;--ucds-responsive-typography-line-height-body-medium-tablet: 24px;--ucds-responsive-typography-line-height-body-medium-mobile: 24px;--ucds-responsive-typography-line-height-body-small-desktop: 20px;--ucds-responsive-typography-line-height-body-small-tablet: 20px;--ucds-responsive-typography-line-height-body-small-mobile: 20px;--ucds-responsive-typography-line-height-micro-desktop: 16px;--ucds-responsive-typography-line-height-micro-tablet: 16px;--ucds-responsive-typography-line-height-micro-mobile: 16px;--ucds-shape-border-radius: 8px;--ucds-shape-border-width: 2px;--ucds-shape-border-focus-radius: 10px;--ucds-shape-border-focus-width: 2px;--ucds-form-element-border-radius: 8px;--ucds-form-element-border-width: 2px;--ucds-form-element-height: 48px;--ucds-form-element-width: 100%;--ucds-form-element-maxwidth: 555px;--ucds-form-element-horizontal-padding: 16px;--ucds-form-component-intra-spacing: 8px;--ucds-form-component-inter-spacing: 16px}
|