@ucalgary-design-system/text-input 1.0.2 → 1.0.4

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/index.js +56 -366
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @ucalgary-design-system/text-input
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fe87dab: Updated externalized dependencies
8
+ - Updated dependencies [fe87dab]
9
+ - @ucalgary-design-system/core@1.0.4
10
+ - @ucalgary-design-system/tokens@1.0.4
11
+
12
+ ## 1.0.3
13
+
14
+ ### Patch Changes
15
+
16
+ - c3fdd31: Updated dependencies and modified build
17
+ - Updated dependencies [c3fdd31]
18
+ - @ucalgary-design-system/core@1.0.3
19
+
3
20
  ## 1.0.2
4
21
 
5
22
  ### Patch Changes
package/index.js CHANGED
@@ -1,346 +1,36 @@
1
- import { unsafeCSS as C, nothing as f, html as m } from "lit";
2
- import { BaseElement as x } from "@ucalgary-design-system/core";
1
+ import { unsafeCSS as h, nothing as a, html as d } from "lit";
2
+ import { property as l, customElement as f } from "lit/decorators.js";
3
+ import { BaseElement as p } from "@ucalgary-design-system/core";
3
4
  import "@ucalgary-design-system/helper-components";
4
- /**
5
- * @license
6
- * Copyright 2017 Google LLC
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- */
9
- const O = (i) => (t, e) => {
10
- e !== void 0 ? e.addInitializer(() => {
11
- customElements.define(i, t);
12
- }) : customElements.define(i, t);
5
+ const m = ":host{display:block}.form-text{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);align-items:start;max-width:var(--ucds-form-element-maxwidth)}.form-text input{display:block;height:var(--ucds-form-element-height);width:var(--ucds-form-element-width);padding-left:var(--ucds-form-element-horizontal-padding);padding-right:var(--ucds-form-element-horizontal-padding);line-height:16px;background-color:var(--ucds-color-forms-input-background-rest);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);border-radius:var(--ucds-form-element-border-radius);transition:border-color .5s ease;text-align:left}.form-text input::-moz-placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input::placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input[error]{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-text input:hover{border-color:var(--ucds-color-forms-input-border-hover)}.form-text input:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-text.disabled input{color:var(--ucds-color-text-disabled);background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-text.disabled input::-moz-placeholder{color:var(--ucds-color-text-disabled)}.form-text.disabled input::placeholder{color:var(--ucds-color-text-disabled)}";
6
+ var b = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (t, r, n, s) => {
7
+ for (var i = s > 1 ? void 0 : s ? v(r, n) : r, u = t.length - 1, c; u >= 0; u--)
8
+ (c = t[u]) && (i = (s ? c(r, n, i) : c(i)) || i);
9
+ return s && i && b(r, n, i), i;
13
10
  };
14
- /**
15
- * @license
16
- * Copyright 2019 Google LLC
17
- * SPDX-License-Identifier: BSD-3-Clause
18
- */
19
- const y = globalThis, g = y.ShadowRoot && (y.ShadyCSS === void 0 || y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, U = Symbol(), S = /* @__PURE__ */ new WeakMap();
20
- let A = class {
21
- constructor(t, e, r) {
22
- if (this._$cssResult$ = !0, r !== U) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
- this.cssText = t, this.t = e;
24
- }
25
- get styleSheet() {
26
- let t = this.o;
27
- const e = this.t;
28
- if (g && t === void 0) {
29
- const r = e !== void 0 && e.length === 1;
30
- r && (t = S.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && S.set(e, t));
31
- }
32
- return t;
33
- }
34
- toString() {
35
- return this.cssText;
36
- }
37
- };
38
- const T = (i) => new A(typeof i == "string" ? i : i + "", void 0, U), k = (i, t) => {
39
- if (g) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
40
- else for (const e of t) {
41
- const r = document.createElement("style"), s = y.litNonce;
42
- s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, i.appendChild(r);
43
- }
44
- }, E = g ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
45
- let e = "";
46
- for (const r of t.cssRules) e += r.cssText;
47
- return T(e);
48
- })(i) : i;
49
- /**
50
- * @license
51
- * Copyright 2017 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */
54
- const { is: R, defineProperty: z, getOwnPropertyDescriptor: q, getOwnPropertyNames: M, getOwnPropertySymbols: j, getPrototypeOf: I } = Object, d = globalThis, P = d.trustedTypes, D = P ? P.emptyScript : "", $ = d.reactiveElementPolyfillSupport, u = (i, t) => i, b = { toAttribute(i, t) {
55
- switch (t) {
56
- case Boolean:
57
- i = i ? D : null;
58
- break;
59
- case Object:
60
- case Array:
61
- i = i == null ? i : JSON.stringify(i);
62
- }
63
- return i;
64
- }, fromAttribute(i, t) {
65
- let e = i;
66
- switch (t) {
67
- case Boolean:
68
- e = i !== null;
69
- break;
70
- case Number:
71
- e = i === null ? null : Number(i);
72
- break;
73
- case Object:
74
- case Array:
75
- try {
76
- e = JSON.parse(i);
77
- } catch {
78
- e = null;
79
- }
80
- }
81
- return e;
82
- } }, _ = (i, t) => !R(i, t), w = { attribute: !0, type: String, converter: b, reflect: !1, hasChanged: _ };
83
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), d.litPropertyMetadata ?? (d.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
- class p extends HTMLElement {
85
- static addInitializer(t) {
86
- this._$Ei(), (this.l ?? (this.l = [])).push(t);
87
- }
88
- static get observedAttributes() {
89
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
90
- }
91
- static createProperty(t, e = w) {
92
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
- const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
94
- s !== void 0 && z(this.prototype, t, s);
95
- }
96
- }
97
- static getPropertyDescriptor(t, e, r) {
98
- const { get: s, set: a } = q(this.prototype, t) ?? { get() {
99
- return this[e];
100
- }, set(o) {
101
- this[e] = o;
102
- } };
103
- return { get() {
104
- return s == null ? void 0 : s.call(this);
105
- }, set(o) {
106
- const l = s == null ? void 0 : s.call(this);
107
- a.call(this, o), this.requestUpdate(t, l, r);
108
- }, configurable: !0, enumerable: !0 };
109
- }
110
- static getPropertyOptions(t) {
111
- return this.elementProperties.get(t) ?? w;
112
- }
113
- static _$Ei() {
114
- if (this.hasOwnProperty(u("elementProperties"))) return;
115
- const t = I(this);
116
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
117
- }
118
- static finalize() {
119
- if (this.hasOwnProperty(u("finalized"))) return;
120
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(u("properties"))) {
121
- const e = this.properties, r = [...M(e), ...j(e)];
122
- for (const s of r) this.createProperty(s, e[s]);
123
- }
124
- const t = this[Symbol.metadata];
125
- if (t !== null) {
126
- const e = litPropertyMetadata.get(t);
127
- if (e !== void 0) for (const [r, s] of e) this.elementProperties.set(r, s);
128
- }
129
- this._$Eh = /* @__PURE__ */ new Map();
130
- for (const [e, r] of this.elementProperties) {
131
- const s = this._$Eu(e, r);
132
- s !== void 0 && this._$Eh.set(s, e);
133
- }
134
- this.elementStyles = this.finalizeStyles(this.styles);
135
- }
136
- static finalizeStyles(t) {
137
- const e = [];
138
- if (Array.isArray(t)) {
139
- const r = new Set(t.flat(1 / 0).reverse());
140
- for (const s of r) e.unshift(E(s));
141
- } else t !== void 0 && e.push(E(t));
142
- return e;
143
- }
144
- static _$Eu(t, e) {
145
- const r = e.attribute;
146
- return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
147
- }
148
- constructor() {
149
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
150
- }
151
- _$Ev() {
152
- var t;
153
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
154
- }
155
- addController(t) {
156
- var e;
157
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
158
- }
159
- removeController(t) {
160
- var e;
161
- (e = this._$EO) == null || e.delete(t);
162
- }
163
- _$E_() {
164
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
165
- for (const r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
166
- t.size > 0 && (this._$Ep = t);
167
- }
168
- createRenderRoot() {
169
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
170
- return k(t, this.constructor.elementStyles), t;
171
- }
172
- connectedCallback() {
173
- var t;
174
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
175
- var r;
176
- return (r = e.hostConnected) == null ? void 0 : r.call(e);
177
- });
178
- }
179
- enableUpdating(t) {
180
- }
181
- disconnectedCallback() {
182
- var t;
183
- (t = this._$EO) == null || t.forEach((e) => {
184
- var r;
185
- return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
186
- });
187
- }
188
- attributeChangedCallback(t, e, r) {
189
- this._$AK(t, r);
190
- }
191
- _$EC(t, e) {
192
- var a;
193
- const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
194
- if (s !== void 0 && r.reflect === !0) {
195
- const o = (((a = r.converter) == null ? void 0 : a.toAttribute) !== void 0 ? r.converter : b).toAttribute(e, r.type);
196
- this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
197
- }
198
- }
199
- _$AK(t, e) {
200
- var a;
201
- const r = this.constructor, s = r._$Eh.get(t);
202
- if (s !== void 0 && this._$Em !== s) {
203
- const o = r.getPropertyOptions(s), l = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((a = o.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? o.converter : b;
204
- this._$Em = s, this[s] = l.fromAttribute(e, o.type), this._$Em = null;
205
- }
206
- }
207
- requestUpdate(t, e, r) {
208
- if (t !== void 0) {
209
- if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? _)(this[t], e)) return;
210
- this.P(t, e, r);
211
- }
212
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
213
- }
214
- P(t, e, r) {
215
- this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
216
- }
217
- async _$ET() {
218
- this.isUpdatePending = !0;
219
- try {
220
- await this._$ES;
221
- } catch (e) {
222
- Promise.reject(e);
223
- }
224
- const t = this.scheduleUpdate();
225
- return t != null && await t, !this.isUpdatePending;
226
- }
227
- scheduleUpdate() {
228
- return this.performUpdate();
229
- }
230
- performUpdate() {
231
- var r;
232
- if (!this.isUpdatePending) return;
233
- if (!this.hasUpdated) {
234
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
235
- for (const [a, o] of this._$Ep) this[a] = o;
236
- this._$Ep = void 0;
237
- }
238
- const s = this.constructor.elementProperties;
239
- if (s.size > 0) for (const [a, o] of s) o.wrapped !== !0 || this._$AL.has(a) || this[a] === void 0 || this.P(a, this[a], o);
240
- }
241
- let t = !1;
242
- const e = this._$AL;
243
- try {
244
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (r = this._$EO) == null || r.forEach((s) => {
245
- var a;
246
- return (a = s.hostUpdate) == null ? void 0 : a.call(s);
247
- }), this.update(e)) : this._$EU();
248
- } catch (s) {
249
- throw t = !1, this._$EU(), s;
250
- }
251
- t && this._$AE(e);
252
- }
253
- willUpdate(t) {
254
- }
255
- _$AE(t) {
256
- var e;
257
- (e = this._$EO) == null || e.forEach((r) => {
258
- var s;
259
- return (s = r.hostUpdated) == null ? void 0 : s.call(r);
260
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
261
- }
262
- _$EU() {
263
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
264
- }
265
- get updateComplete() {
266
- return this.getUpdateComplete();
267
- }
268
- getUpdateComplete() {
269
- return this._$ES;
270
- }
271
- shouldUpdate(t) {
272
- return !0;
273
- }
274
- update(t) {
275
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
276
- }
277
- updated(t) {
278
- }
279
- firstUpdated(t) {
280
- }
281
- }
282
- p.elementStyles = [], p.shadowRootOptions = { mode: "open" }, p[u("elementProperties")] = /* @__PURE__ */ new Map(), p[u("finalized")] = /* @__PURE__ */ new Map(), $ == null || $({ ReactiveElement: p }), (d.reactiveElementVersions ?? (d.reactiveElementVersions = [])).push("2.0.4");
283
- /**
284
- * @license
285
- * Copyright 2017 Google LLC
286
- * SPDX-License-Identifier: BSD-3-Clause
287
- */
288
- const L = { attribute: !0, type: String, converter: b, reflect: !1, hasChanged: _ }, B = (i = L, t, e) => {
289
- const { kind: r, metadata: s } = e;
290
- let a = globalThis.litPropertyMetadata.get(s);
291
- if (a === void 0 && globalThis.litPropertyMetadata.set(s, a = /* @__PURE__ */ new Map()), a.set(e.name, i), r === "accessor") {
292
- const { name: o } = e;
293
- return { set(l) {
294
- const v = t.get.call(this);
295
- t.set.call(this, l), this.requestUpdate(o, v, i);
296
- }, init(l) {
297
- return l !== void 0 && this.P(o, void 0, i), l;
298
- } };
299
- }
300
- if (r === "setter") {
301
- const { name: o } = e;
302
- return function(l) {
303
- const v = this[o];
304
- t.call(this, l), this.requestUpdate(o, v, i);
305
- };
306
- }
307
- throw Error("Unsupported decorator location: " + r);
308
- };
309
- function c(i) {
310
- return (t, e) => typeof e == "object" ? B(i, t, e) : ((r, s, a) => {
311
- const o = s.hasOwnProperty(a);
312
- return s.constructor.createProperty(a, o ? { ...r, wrapped: !0 } : r), o ? Object.getOwnPropertyDescriptor(s, a) : void 0;
313
- })(i, t, e);
314
- }
315
- const N = ":host{display:block}.form-text{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);align-items:start;max-width:var(--ucds-form-element-maxwidth)}.form-text input{display:block;height:var(--ucds-form-element-height);width:var(--ucds-form-element-width);padding-left:var(--ucds-form-element-horizontal-padding);padding-right:var(--ucds-form-element-horizontal-padding);line-height:16px;background-color:var(--ucds-color-forms-input-background-rest);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);border-radius:var(--ucds-form-element-border-radius);transition:border-color .5s ease;text-align:left}.form-text input::-moz-placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input::placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input[error]{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-text input:hover{border-color:var(--ucds-color-forms-input-border-hover)}.form-text input:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-text.disabled input{color:var(--ucds-color-text-disabled);background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-text.disabled input::-moz-placeholder{color:var(--ucds-color-text-disabled)}.form-text.disabled input::placeholder{color:var(--ucds-color-text-disabled)}";
316
- var V = Object.defineProperty, J = Object.getOwnPropertyDescriptor, h = (i, t, e, r) => {
317
- for (var s = r > 1 ? void 0 : r ? J(t, e) : t, a = i.length - 1, o; a >= 0; a--)
318
- (o = i[a]) && (s = (r ? o(t, e, s) : o(s)) || s);
319
- return r && s && V(t, e, s), s;
320
- };
321
- let n = class extends x {
11
+ let e = class extends p {
322
12
  constructor() {
323
13
  super(), this.errorText = "", this.helpText = "", this.inputId = "", this.label = "", this._value = "", this.disabled = !1, this.error = !1, this.required = !1, this.internals = this.attachInternals();
324
14
  }
325
15
  get value() {
326
16
  return this._value;
327
17
  }
328
- set value(i) {
329
- const t = this._value;
330
- i !== t && (this._value = i, this.requestUpdate("value", t), this.internals.setFormValue(this._value));
18
+ set value(t) {
19
+ const r = this._value;
20
+ t !== r && (this._value = t, this.requestUpdate("value", r), this.internals.setFormValue(this._value));
331
21
  }
332
- updated(i) {
333
- i.has("label") && !this.label && console.error("Property 'label' is required and was not set.");
22
+ updated(t) {
23
+ t.has("label") && !this.label && console.error("Property 'label' is required and was not set.");
334
24
  }
335
- handleInput(i) {
336
- const t = i.target;
337
- this.value = t.value;
25
+ handleInput(t) {
26
+ const r = t.target;
27
+ this.value = r.value;
338
28
  }
339
29
  formResetCallback() {
340
30
  this.value = "";
341
31
  }
342
- formStateRestoreCallback(i) {
343
- this.value = i;
32
+ formStateRestoreCallback(t) {
33
+ this.value = t;
344
34
  }
345
35
  checkValidity() {
346
36
  return this.internals.checkValidity();
@@ -349,9 +39,9 @@ let n = class extends x {
349
39
  return this.internals.reportValidity();
350
40
  }
351
41
  render() {
352
- return m`
42
+ return d`
353
43
  <div class="form-text ${this.disabled ? "disabled" : ""} ${this.required ? "required" : ""}">
354
- ${this.label ? m`<form-label for="${this.inputId}" text="${this.label}" ?required="${this.required}" ?disabled="${this.disabled}"></form-label>` : f}
44
+ ${this.label ? d`<form-label for="${this.inputId}" text="${this.label}" ?required="${this.required}" ?disabled="${this.disabled}"></form-label>` : a}
355
45
  <input
356
46
  type="text"
357
47
  id="${this.inputId}"
@@ -359,46 +49,46 @@ let n = class extends x {
359
49
  ?required=${this.required}
360
50
  ?error=${this.error}
361
51
  .value="${this.value}"
362
- placeholder="${this.placeholder ?? f}"
52
+ placeholder="${this.placeholder ?? a}"
363
53
  @input=${this.handleInput}>
364
- ${this.error ? m`<form-error-message text="${this.errorText}"></form-error-message>` : f}
365
- ${this.helpText ? m`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : f}
54
+ ${this.error ? d`<form-error-message text="${this.errorText}"></form-error-message>` : a}
55
+ ${this.helpText ? d`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : a}
366
56
  </div>
367
57
  `;
368
58
  }
369
59
  };
370
- n.styles = [
371
- x.styles,
372
- C(N)
60
+ e.styles = [
61
+ p.styles,
62
+ h(m)
373
63
  ];
374
- n.formAssociated = !0;
375
- h([
376
- c({ type: String, attribute: "error-text" })
377
- ], n.prototype, "errorText", 2);
378
- h([
379
- c({ type: String, attribute: "help-text" })
380
- ], n.prototype, "helpText", 2);
381
- h([
382
- c({ type: String, attribute: "input-id" })
383
- ], n.prototype, "inputId", 2);
384
- h([
385
- c({ type: String })
386
- ], n.prototype, "label", 2);
387
- h([
388
- c({ type: String, reflect: !0 })
389
- ], n.prototype, "placeholder", 2);
390
- h([
391
- c({ type: Boolean, reflect: !0 })
392
- ], n.prototype, "disabled", 2);
393
- h([
394
- c({ type: Boolean, reflect: !0 })
395
- ], n.prototype, "error", 2);
396
- h([
397
- c({ type: Boolean, reflect: !0 })
398
- ], n.prototype, "required", 2);
399
- n = h([
400
- O("ucds-text-input")
401
- ], n);
64
+ e.formAssociated = !0;
65
+ o([
66
+ l({ type: String, attribute: "error-text" })
67
+ ], e.prototype, "errorText", 2);
68
+ o([
69
+ l({ type: String, attribute: "help-text" })
70
+ ], e.prototype, "helpText", 2);
71
+ o([
72
+ l({ type: String, attribute: "input-id" })
73
+ ], e.prototype, "inputId", 2);
74
+ o([
75
+ l({ type: String })
76
+ ], e.prototype, "label", 2);
77
+ o([
78
+ l({ type: String, reflect: !0 })
79
+ ], e.prototype, "placeholder", 2);
80
+ o([
81
+ l({ type: Boolean, reflect: !0 })
82
+ ], e.prototype, "disabled", 2);
83
+ o([
84
+ l({ type: Boolean, reflect: !0 })
85
+ ], e.prototype, "error", 2);
86
+ o([
87
+ l({ type: Boolean, reflect: !0 })
88
+ ], e.prototype, "required", 2);
89
+ e = o([
90
+ f("ucds-text-input")
91
+ ], e);
402
92
  export {
403
- n as TextInput
93
+ e as TextInput
404
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucalgary-design-system/text-input",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -10,10 +10,10 @@
10
10
  "require": "./index.js"
11
11
  }
12
12
  },
13
- "dependencies": {
14
- "@ucalgary-design-system/core": "^1.0.2",
13
+ "peerDependencies": {
14
+ "@ucalgary-design-system/core": "^1.0.4",
15
15
  "@ucalgary-design-system/helper-components": "^1.0.2",
16
- "@ucalgary-design-system/tokens": "^1.0.3",
16
+ "@ucalgary-design-system/tokens": "^1.0.4",
17
17
  "lit": "^3.2.1"
18
18
  },
19
19
  "description": "A web component for TextInput",