@skf-design-system/ui-components 1.0.2-beta.22 → 1.0.2-beta.24

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.
@@ -3,8 +3,13 @@ const r = o`
3
3
  /* stylelint-disable selector-class-pattern */
4
4
  @layer components {
5
5
  :host {
6
- contain: initial;
7
- display: inline-flex;
6
+ contain: paint style;
7
+ display: inline-block;
8
+ }
9
+
10
+ :host(:not([icon-only])) {
11
+ max-inline-size: min(100%, 23ch);
12
+ min-inline-size: 64px;
8
13
  }
9
14
 
10
15
  .btn {
@@ -14,13 +19,13 @@ const r = o`
14
19
  var(--_skf-button-state-border-color, var(--_skf-button-border-color));
15
20
  border-radius: var(--skf-border-radius-sm);
16
21
  color: var(--_skf-button-state-color, var(--_skf-button-color));
22
+ display: inline-flex;
17
23
  font-size: var(--_skf-button-font-size, var(--skf-font-size-100));
18
24
  font-weight: var(--skf-font-weight-bold);
19
- max-inline-size: min(100%, 23ch);
20
25
  position: relative;
21
26
 
22
27
  &:not(.btn--icon-only) {
23
- min-inline-size: 64px;
28
+ inline-size: 100%;
24
29
  padding-inline: var(--skf-spacing-100);
25
30
  }
26
31
 
@@ -49,7 +54,6 @@ const r = o`
49
54
 
50
55
  .btn--icon-only {
51
56
  aspect-ratio: 1;
52
- display: inherit;
53
57
  place-content: center;
54
58
  }
55
59
 
@@ -118,6 +122,7 @@ const r = o`
118
122
  align-items: center;
119
123
  display: flex;
120
124
  gap: var(--skf-spacing-50);
125
+ min-inline-size: 0;
121
126
  }
122
127
 
123
128
  .btn__label {
@@ -107,6 +107,7 @@ export declare class SkfSelect extends FormBase {
107
107
  constructor();
108
108
  willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
109
109
  firstUpdated(): void;
110
+ /** @internal Handles updates to the size of the select-option component */
110
111
  _handleSizeUpdate(): void;
111
112
  /** @internal */
112
113
  _handleExpandedChange(): void;
@@ -122,8 +123,7 @@ export declare class SkfSelect extends FormBase {
122
123
  _handleReset: () => void;
123
124
  /** @internal */
124
125
  onUpdateComplete(): Promise<string>;
125
- /** @internal */
126
- /** Filter out elements other than skf-select-option and store in this._optionsList */
126
+ /** @internal Filter out elements other than skf-select-option and store in this._optionsList */
127
127
  _collectSlotOptionTags(): void;
128
128
  /** @internal */
129
129
  _updateWidth: () => void;
@@ -8,8 +8,8 @@ import "../tag/tag.js";
8
8
  import { computePosition as S, flip as C, shift as V, offset as $ } from "@floating-ui/dom";
9
9
  import { FormBase as L } from "../../internal/components/formBase.js";
10
10
  import "../../internal/components/hint/hint.js";
11
- import { PopoverController as k } from "../../internal/controllers/popover.controller.js";
12
- import { findMatchingTags as E } from "../../internal/helpers/findMatchingTags.js";
11
+ import { PopoverController as E } from "../../internal/controllers/popover.controller.js";
12
+ import { findMatchingTags as k } from "../../internal/helpers/findMatchingTags.js";
13
13
  import { hintSeverity as A } from "../../internal/helpers/hintSeverity.js";
14
14
  import { raiseError as I } from "../../internal/helpers/raiseError.js";
15
15
  import { watch as w } from "../../internal/helpers/watch.js";
@@ -17,22 +17,22 @@ import { Asterisk as D } from "../../internal/templates/asterisk.js";
17
17
  import { componentStyles as P } from "../../styles/component.styles.js";
18
18
  import { LocalizeController as F } from "../../utilities/localize.js";
19
19
  import { nothing as b, html as p } from "lit";
20
- import { property as a, state as c, query as m, queryAssignedElements as T } from "lit/decorators.js";
21
- import { classMap as z } from "lit/directives/class-map.js";
20
+ import { property as n, state as c, query as m, queryAssignedElements as T } from "lit/decorators.js";
21
+ import { classMap as U } from "lit/directives/class-map.js";
22
22
  import { ifDefined as O } from "lit/directives/if-defined.js";
23
- import { SkfSelectOption as U } from "./select-option.component.js";
24
- import { GlobalClickController as M, KeyboardNavigationController as N, DeveloperFeedbackController as H } from "./select.controllers.js";
25
- import { styles as q } from "./select.styles.js";
23
+ import { SkfSelectOption as z } from "./select-option.component.js";
24
+ import { GlobalClickController as M, KeyboardNavigationController as N, DeveloperFeedbackController as q } from "./select.controllers.js";
25
+ import { styles as H } from "./select.styles.js";
26
26
  var R = Object.defineProperty, j = Object.getOwnPropertyDescriptor, s = (l, r, t, e) => {
27
- for (var o = e > 1 ? void 0 : e ? j(r, t) : r, n = l.length - 1, h; n >= 0; n--)
28
- (h = l[n]) && (o = (e ? h(r, t, o) : h(o)) || o);
27
+ for (var o = e > 1 ? void 0 : e ? j(r, t) : r, a = l.length - 1, h; a >= 0; a--)
28
+ (h = l[a]) && (o = (e ? h(r, t, o) : h(o)) || o);
29
29
  return e && o && R(r, t, o), o;
30
30
  }, d;
31
31
  const f = class f extends L {
32
32
  constructor() {
33
33
  super();
34
34
  g(this, d);
35
- y(this, d, new F(this)), this._componentIsConnected = !1, this.selectDelay = 200, this._optionsList = [], this.hideLabel = !1, this.hideTags = !1, this.label = "", this.lang = "en", this.multiple = !1, this.showValid = !1, this.size = "md", this._expanded = !1, this._invalid = !1, this.globalClickController = new M(this), this.keyboardNavController = new N(this), this.developerFeedbackController = new H(this), this.popoverController = new k(this), this._handleOptionSelected = ((t) => {
35
+ y(this, d, new F(this)), this._componentIsConnected = !1, this.selectDelay = 200, this._optionsList = [], this.hideLabel = !1, this.hideTags = !1, this.label = "", this.lang = "en", this.multiple = !1, this.showValid = !1, this.size = "md", this._expanded = !1, this._invalid = !1, this.globalClickController = new M(this), this.keyboardNavController = new N(this), this.developerFeedbackController = new q(this), this.popoverController = new E(this), this._handleOptionSelected = ((t) => {
36
36
  this._pristine = !1;
37
37
  const e = this._selectedOptions.length > 0;
38
38
  this.setFormValue(e ? this.selectedValues.join(",") : null), this._updateState(t);
@@ -78,14 +78,14 @@ const f = class f extends L {
78
78
  (e || o !== t) && o.removeAttribute("selected");
79
79
  }), this._optionsList = [];
80
80
  }, this._handleSlotChange = () => {
81
- this._handleSizeUpdate(), this._collectSlotOptionTags(), this._ifValueIsSetSelectOption(), this._validateInput(), this._componentIsConnected = !0, this.emit("skf-select-connected");
81
+ this._handleSizeUpdate(), this._collectSlotOptionTags(), this._ifValueIsSetSelectOption(), this._validateInput(), this._componentIsConnected = !0, this.emit("skf-select-connected"), this.requestUpdate();
82
82
  }, this._ifValueIsSetSelectOption = () => {
83
83
  if (this.value)
84
84
  if (this.multiple) {
85
85
  const t = this.value.split(",").map((e) => e.toLowerCase().trim());
86
86
  this._optionsList.forEach((e) => {
87
- t.includes(e.value.toLowerCase().trim()) ? (e.setSelectedDiscrete = !0, this.selectedOptions = [...this.selectedOptions, e]) : (e.setSelectedDiscrete = !1, this._selectedOptions = this._selectedOptions.filter(
88
- (o) => o.value.toLowerCase().trim() !== e.value.toLowerCase().trim()
87
+ t.includes(e.value.toLowerCase().trim()) ? (e.setSelectedDiscrete = !0, this._selectedOptions = [.../* @__PURE__ */ new Set([...this._selectedOptions, e])]) : (e.setSelectedDiscrete = !1, this._selectedOptions = this._selectedOptions.filter(
88
+ (a) => a.value.toLowerCase().trim() !== e.value.toLowerCase().trim()
89
89
  ));
90
90
  }), this._setValue().catch((e) => {
91
91
  console.error(e);
@@ -114,11 +114,11 @@ const f = class f extends L {
114
114
  }
115
115
  set value(t) {
116
116
  let e = [];
117
- this._componentIsConnected && (this.multiple ? e = t.split(",").map((n) => n.toLowerCase().trim()) : e = [t.toLowerCase().trim()], this._selectedOptions = this._optionsList.filter(
118
- (n) => e.includes(n.value.toLowerCase().trim())
119
- ), this._optionsList.forEach((n) => {
120
- n.selected && (n.setSelectedDiscrete = !1);
121
- }), this._selectedOptions.forEach((n) => n.setSelectedDiscrete = !0)), this._setValue();
117
+ this._componentIsConnected && (this.multiple ? e = t.split(",").map((a) => a.toLowerCase().trim()) : e = [t.toLowerCase().trim()], this._selectedOptions = this._optionsList.filter(
118
+ (a) => e.includes(a.value.toLowerCase().trim())
119
+ ), this._optionsList.forEach((a) => {
120
+ a.selected && (a.setSelectedDiscrete = !1);
121
+ }), this._selectedOptions.forEach((a) => a.setSelectedDiscrete = !0)), this._setValue();
122
122
  }
123
123
  get value() {
124
124
  return this._selectedOptions.length ? this._selectedOptions.length === 1 ? this._selectedOptions[0].value.trim() : this._selectedOptions.map((t) => t.value.trim()).join(",") : "";
@@ -152,7 +152,7 @@ const f = class f extends L {
152
152
  }
153
153
  _handleSizeUpdate() {
154
154
  this._slottedItems.forEach((t) => {
155
- (t instanceof U || t instanceof x) && (t.small = this.size === "sm");
155
+ (t instanceof z || t instanceof x) && (t.small = this.size === "sm");
156
156
  });
157
157
  }
158
158
  _handleExpandedChange() {
@@ -195,10 +195,9 @@ const f = class f extends L {
195
195
  async onUpdateComplete() {
196
196
  return await this.updateComplete, this._updateWidth(), "done";
197
197
  }
198
- /** @internal */
199
- /** Filter out elements other than skf-select-option and store in this._optionsList */
198
+ /** @internal Filter out elements other than skf-select-option and store in this._optionsList */
200
199
  _collectSlotOptionTags() {
201
- this._optionsList = E(this, "skf-select-option"), this._selectedOptions = this._optionsList.filter((t) => t.selected), I({
200
+ this._optionsList = k(this, "skf-select-option"), this._selectedOptions = this._optionsList.filter((t) => t.selected), I({
202
201
  assert: this._optionsList.length > 0,
203
202
  reason: "no-children",
204
203
  replaceStrings: [this.localName, "skf-select-option"]
@@ -244,7 +243,7 @@ const f = class f extends L {
244
243
  >
245
244
  <span
246
245
  id="selected-value"
247
- class=${z({ "selected-value": !0, "contains-meta-info": !this.value })}>
246
+ class=${U({ "selected-value": !0, "contains-meta-info": !this.value })}>
248
247
  ${this._computeVisibleValue()}
249
248
  </span>
250
249
  <skf-icon class="arrow" data-color="custom" name="chevronDown"></skf-icon>
@@ -285,58 +284,58 @@ const f = class f extends L {
285
284
  `;
286
285
  }
287
286
  };
288
- d = new WeakMap(), f.styles = [P, q];
287
+ d = new WeakMap(), f.styles = [P, H];
289
288
  let i = f;
290
289
  s([
291
- a({ type: String, attribute: "custom-invalid" })
290
+ n({ type: String, attribute: "custom-invalid" })
292
291
  ], i.prototype, "customInvalid", 2);
293
292
  s([
294
- a({ type: Boolean, attribute: "hide-label" })
293
+ n({ type: Boolean, attribute: "hide-label" })
295
294
  ], i.prototype, "hideLabel", 2);
296
295
  s([
297
- a({ type: Boolean, reflect: !0, attribute: "hide-tags" })
296
+ n({ type: Boolean, reflect: !0, attribute: "hide-tags" })
298
297
  ], i.prototype, "hideTags", 2);
299
298
  s([
300
- a({ type: String })
299
+ n({ type: String })
301
300
  ], i.prototype, "hint", 2);
302
301
  s([
303
- a({ type: Array, attribute: !1 })
302
+ n({ type: Array, attribute: !1 })
304
303
  ], i.prototype, "selectedValues", 1);
305
304
  s([
306
- a({ type: Array, attribute: !1 })
305
+ n({ type: Array, attribute: !1 })
307
306
  ], i.prototype, "selectedOptionsText", 1);
308
307
  s([
309
- a({ type: String, reflect: !0 })
308
+ n({ type: String, reflect: !0 })
310
309
  ], i.prototype, "label", 2);
311
310
  s([
312
- a({ type: String })
311
+ n({ type: String })
313
312
  ], i.prototype, "lang", 2);
314
313
  s([
315
- a({ type: Number })
314
+ n({ type: Number })
316
315
  ], i.prototype, "max", 2);
317
316
  s([
318
- a({ type: Number, attribute: "max-visible-items" })
317
+ n({ type: Number, attribute: "max-visible-items" })
319
318
  ], i.prototype, "maxVisibleItems", 2);
320
319
  s([
321
- a({ type: Number })
320
+ n({ type: Number })
322
321
  ], i.prototype, "min", 2);
323
322
  s([
324
- a({ type: Boolean, reflect: !0 })
323
+ n({ type: Boolean, reflect: !0 })
325
324
  ], i.prototype, "multiple", 2);
326
325
  s([
327
- a({ type: String })
326
+ n({ type: String })
328
327
  ], i.prototype, "name", 2);
329
328
  s([
330
- a()
329
+ n()
331
330
  ], i.prototype, "severity", 2);
332
331
  s([
333
- a({ type: Boolean, attribute: "show-valid" })
332
+ n({ type: Boolean, attribute: "show-valid" })
334
333
  ], i.prototype, "showValid", 2);
335
334
  s([
336
- a({ reflect: !0 })
335
+ n({ reflect: !0 })
337
336
  ], i.prototype, "size", 2);
338
337
  s([
339
- a({ type: String, attribute: !1 })
338
+ n({ type: String, attribute: !1 })
340
339
  ], i.prototype, "value", 1);
341
340
  s([
342
341
  c()
@@ -1,26 +1,26 @@
1
- var $ = (a) => {
1
+ var _ = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var _ = (a, r, t) => r.has(a) || $("Cannot " + t);
5
- var p = (a, r, t) => (_(a, r, "read from private field"), t ? t.call(a) : r.get(a)), c = (a, r, t) => r.has(a) ? $("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, t), v = (a, r, t, n) => (_(a, r, "write to private field"), n ? n.call(a, t) : r.set(a, t), t);
4
+ var E = (a, r, t) => r.has(a) || _("Cannot " + t);
5
+ var p = (a, r, t) => (E(a, r, "read from private field"), t ? t.call(a) : r.get(a)), c = (a, r, t) => r.has(a) ? _("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, t), v = (a, r, t, h) => (E(a, r, "write to private field"), h ? h.call(a, t) : r.set(a, t), t);
6
6
  import "../icon/icon.js";
7
- import { FormBase as V } from "../../internal/components/formBase.js";
7
+ import { FormBase as L } from "../../internal/components/formBase.js";
8
8
  import "../../internal/components/hint/hint.js";
9
- import { hintSeverity as C } from "../../internal/helpers/hintSeverity.js";
10
- import { watch as g } from "../../internal/helpers/watch.js";
11
- import { Asterisk as w } from "../../internal/templates/asterisk.js";
12
- import { componentStyles as I } from "../../styles/component.styles.js";
13
- import { LocalizeController as x } from "../../utilities/localize.js";
14
- import { nothing as f, html as E } from "lit";
15
- import { property as s, query as L } from "lit/decorators.js";
16
- import { ifDefined as h } from "lit/directives/if-defined.js";
17
- import O from "./textarea.styles.js";
18
- var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, e = (a, r, t, n) => {
19
- for (var l = n > 1 ? void 0 : n ? F(r, t) : r, o = a.length - 1, d; o >= 0; o--)
20
- (d = a[o]) && (l = (n ? d(r, t, l) : d(l)) || l);
21
- return n && l && S(r, t, l), l;
9
+ import { hintSeverity as V } from "../../internal/helpers/hintSeverity.js";
10
+ import { watch as b } from "../../internal/helpers/watch.js";
11
+ import { Asterisk as x } from "../../internal/templates/asterisk.js";
12
+ import { componentStyles as C } from "../../styles/component.styles.js";
13
+ import { LocalizeController as w } from "../../utilities/localize.js";
14
+ import { nothing as f, html as g } from "lit";
15
+ import { property as s, query as I } from "lit/decorators.js";
16
+ import { ifDefined as o } from "lit/directives/if-defined.js";
17
+ import { styles as O } from "./textarea.styles.js";
18
+ var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, e = (a, r, t, h) => {
19
+ for (var l = h > 1 ? void 0 : h ? F(r, t) : r, n = a.length - 1, d; n >= 0; n--)
20
+ (d = a[n]) && (l = (h ? d(r, t, l) : d(l)) || l);
21
+ return h && l && S(r, t, l), l;
22
22
  }, y, u, m;
23
- const b = class b extends V {
23
+ const $ = class $ extends L {
24
24
  constructor() {
25
25
  super(...arguments);
26
26
  c(this, y);
@@ -28,7 +28,7 @@ const b = class b extends V {
28
28
  c(this, u);
29
29
  /** @internal */
30
30
  c(this, m);
31
- v(this, y, new x(this)), this.debug = !1, this.hideLabel = !1, this.invalid = !1, this.lang = "en", this.readonly = !1, this.showValid = !1, this.size = "md", this.validateOn = "change", this.value = "", this._resetValue = (t) => {
31
+ v(this, y, new w(this)), this.debug = !1, this.hideLabel = !1, this.invalid = !1, this.lang = "en", this.readonly = !1, this.showValid = !1, this.size = "md", this.validateOn = "change", this.value = "", this._resetValue = (t) => {
32
32
  t.stopPropagation(), this.value = p(this, u) ?? "", this._internals.setFormValue(this.value);
33
33
  }, this._handleInput = () => {
34
34
  this.value = this.$input?.value ?? "", this.validateOn === "input" && (this.pristine = !1, this.validateInput());
@@ -47,8 +47,8 @@ const b = class b extends V {
47
47
  this.pristine = !1, this.invalid = !0, this.customErrorDisplay && t.preventDefault();
48
48
  }), this.addEventListener("reset", this._resetValue), this.validateInput();
49
49
  }
50
- attributeChangedCallback(t, n, l) {
51
- if (super.attributeChangedCallback(t, n, l), t === "value" && l !== p(this, u) && v(this, u, void 0), t === "custom-invalid")
50
+ attributeChangedCallback(t, h, l) {
51
+ if (super.attributeChangedCallback(t, h, l), t === "value" && l !== p(this, u) && v(this, u, void 0), t === "custom-invalid")
52
52
  if (typeof l == "string") {
53
53
  const d = this.withFallback(l);
54
54
  this.pristine = !1, this._internals.setValidity({ customError: !0 }, d), this.invalid = !0, this.hint = d, this.checkValidity();
@@ -73,19 +73,19 @@ const b = class b extends V {
73
73
  /** @internal */
74
74
  validateInput() {
75
75
  if (this._internals.validity.customError || !this.$input) return;
76
- const n = this.$input.validity;
77
- if (this.invalid = !1, n.valid)
76
+ const h = this.$input.validity;
77
+ if (this.invalid = !1, h.valid)
78
78
  this._internals.setValidity({ customError: this._internals.validity.customError });
79
79
  else {
80
- this.invalid = !this.pristine && !n.valid;
80
+ this.invalid = !this.pristine && !h.valid;
81
81
  let l;
82
- for (l in n) {
83
- const o = `data-${l}`;
84
- if (n[l] && !this.hasAttribute(o) && this.debug && console.log(
85
- `Add custom message on ${this.localName} using attribute: ${o.toUpperCase()}="Your custom message"`
86
- ), n[l]) {
82
+ for (l in h) {
83
+ const n = `data-${l}`;
84
+ if (h[l] && !this.hasAttribute(n) && this.debug && console.log(
85
+ `Add custom message on ${this.localName} using attribute: ${n.toUpperCase()}="Your custom message"`
86
+ ), h[l]) {
87
87
  this.validationError = l;
88
- const d = this.hasAttribute(o) ? this.getAttribute(o) : this.$input.validationMessage;
88
+ const d = this.hasAttribute(n) ? this.getAttribute(n) : this.$input.validationMessage;
89
89
  this._internals.setValidity(
90
90
  { [this.validationError]: !0, customError: this._internals.validity.customError },
91
91
  this.withFallback(d)
@@ -95,11 +95,11 @@ const b = class b extends V {
95
95
  }
96
96
  }
97
97
  render() {
98
- return console.log("rendering"), E`
98
+ return g`
99
99
  <div id="root">
100
100
  <label>
101
101
  <div class=${this.hideLabel ? "visually-hidden" : ""} id="label">
102
- <slot>${this.label}</slot> ${this.required ? w(p(this, y).term("required")) : f}
102
+ <slot>${this.label}</slot> ${this.required ? x(p(this, y).term("required")) : f}
103
103
  </div>
104
104
  <div id="input">
105
105
  <textarea
@@ -108,35 +108,39 @@ const b = class b extends V {
108
108
  ?required=${this.required}
109
109
  .value=${this.value}
110
110
  @input=${this._handleInput}
111
- aria-describedby=${h(this.hint?.trim() ? "hint" : f)}
112
- aria-errormessage=${h(this.hint?.trim() ? "hint" : f)}
111
+ aria-describedby=${o(this.hint?.trim() ? "hint" : f)}
112
+ aria-errormessage=${o(this.hint?.trim() ? "hint" : f)}
113
113
  aria-invalid=${!!this.invalid}
114
- cols=${h(this.cols)}
115
- maxlength=${h(this.maxLength)}
116
- minlength=${h(this.minLength)}
117
- name=${h(this.name)}
118
- placeholder=${h(this.placeholder)}
119
- rows=${h(this.rows)}
114
+ cols=${o(this.cols)}
115
+ maxlength=${o(this.maxLength)}
116
+ minlength=${o(this.minLength)}
117
+ name=${o(this.name)}
118
+ placeholder=${o(this.placeholder)}
119
+ rows=${o(this.rows)}
120
120
  >
121
121
  </textarea>
122
122
  </div>
123
123
  </label>
124
- ${this.hint && E`
125
- <skf-hint
126
- ?disabled=${this.disabled}
127
- aria-live=${this.invalid ? "assertive" : "polite"}
128
- id="hint"
129
- severity=${h(C(this.invalid, this.severity))}
130
- >
131
- ${this.customInvalid ?? this.hint}
132
- </skf-hint>
133
- `}
124
+ ${// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
125
+ (this.hint || this.maxLength) && g`
126
+ <div id="foot">
127
+ <skf-hint
128
+ ?disabled=${this.disabled}
129
+ aria-live=${this.invalid ? "assertive" : "polite"}
130
+ id="hint"
131
+ severity=${o(V(this.invalid, this.severity))}
132
+ >
133
+ ${this.customInvalid ?? this.hint}
134
+ </skf-hint>
135
+ ${this.maxLength ? g`<div id="counter">${this.value.length}/${this.maxLength}</div>` : f}
136
+ </div>
137
+ `}
134
138
  </div>
135
139
  `;
136
140
  }
137
141
  };
138
- y = new WeakMap(), u = new WeakMap(), m = new WeakMap(), b.styles = [I, O];
139
- let i = b;
142
+ y = new WeakMap(), u = new WeakMap(), m = new WeakMap(), $.styles = [C, O];
143
+ let i = $;
140
144
  e([
141
145
  s({ type: Number })
142
146
  ], i.prototype, "cols", 2);
@@ -165,10 +169,10 @@ e([
165
169
  s()
166
170
  ], i.prototype, "name", 2);
167
171
  e([
168
- s({ type: Number, attribute: "maxlength" })
172
+ s({ type: Number })
169
173
  ], i.prototype, "maxLength", 2);
170
174
  e([
171
- s({ type: Number, attribute: "minlength" })
175
+ s({ type: Number })
172
176
  ], i.prototype, "minLength", 2);
173
177
  e([
174
178
  s()
@@ -195,16 +199,16 @@ e([
195
199
  s({ type: String })
196
200
  ], i.prototype, "value", 2);
197
201
  e([
198
- L("textarea")
202
+ I("textarea")
199
203
  ], i.prototype, "$input", 2);
200
204
  e([
201
- g("invalid")
205
+ b("invalid")
202
206
  ], i.prototype, "_invalidChanged", 1);
203
207
  e([
204
- g("hint")
208
+ b("hint")
205
209
  ], i.prototype, "_hintChanged", 1);
206
210
  e([
207
- g("value", { waitUntilFirstUpdate: !0 })
211
+ b("value", { waitUntilFirstUpdate: !0 })
208
212
  ], i.prototype, "_valueChanged", 1);
209
213
  export {
210
214
  i as SkfTextArea
@@ -1,2 +1 @@
1
- declare const _default: import("lit").CSSResult[];
2
- export default _default;
1
+ export declare const styles: import("lit").CSSResult[];
@@ -1,6 +1,22 @@
1
1
  import o from "../../styles/form-field.styles.js";
2
2
  import { visuallyHidden as t } from "../../styles/util.styles.js";
3
- const r = [t, o];
3
+ import { css as e } from "lit";
4
+ const i = [
5
+ t,
6
+ o,
7
+ e`
8
+ #foot {
9
+ display: flex;
10
+ gap: var(--skf-spacing-25);
11
+ justify-content: space-between;
12
+ }
13
+
14
+ #counter {
15
+ color: var(--skf-text-color-tertiary);
16
+ font-size: var(--skf-font-size-75);
17
+ }
18
+ `
19
+ ];
4
20
  export {
5
- r as default
21
+ i as styles
6
22
  };
@@ -6253,13 +6253,6 @@
6253
6253
  },
6254
6254
  "privacy": "private"
6255
6255
  },
6256
- {
6257
- "kind": "method",
6258
- "name": "_handleSizeUpdate",
6259
- "type": {
6260
- "text": "_handleSizeUpdate() => void"
6261
- }
6262
- },
6263
6256
  {
6264
6257
  "kind": "field",
6265
6258
  "name": "_selectedOptions",
@@ -7546,7 +7539,7 @@
7546
7539
  "text": "number | undefined"
7547
7540
  },
7548
7541
  "description": "If defined, sets the maximum character length to accept for this input",
7549
- "attribute": "maxlength"
7542
+ "attribute": "maxLength"
7550
7543
  },
7551
7544
  {
7552
7545
  "kind": "field",
@@ -7555,7 +7548,7 @@
7555
7548
  "text": "number | undefined"
7556
7549
  },
7557
7550
  "description": "If defined, sets the minimum character length to accept for this input",
7558
- "attribute": "minlength"
7551
+ "attribute": "minLength"
7559
7552
  },
7560
7553
  {
7561
7554
  "kind": "field",
@@ -7752,7 +7745,7 @@
7752
7745
  "fieldName": "name"
7753
7746
  },
7754
7747
  {
7755
- "name": "maxlength",
7748
+ "name": "maxLength",
7756
7749
  "type": {
7757
7750
  "text": "number | undefined"
7758
7751
  },
@@ -7760,7 +7753,7 @@
7760
7753
  "fieldName": "maxLength"
7761
7754
  },
7762
7755
  {
7763
- "name": "minlength",
7756
+ "name": "minLength",
7764
7757
  "type": {
7765
7758
  "text": "number | undefined"
7766
7759
  },