@abgov/web-components 1.0.0-alpha.84 → 1.0.0-alpha.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/web-components",
3
- "version": "1.0.0-alpha.84",
3
+ "version": "1.0.0-alpha.87",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -3228,7 +3228,7 @@ function instance$q($$self, $$props, $$invalidate) {
3228
3228
  class Chip extends SvelteElement {
3229
3229
  constructor(options) {
3230
3230
  super();
3231
- this.shadowRoot.innerHTML = `<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--color-white);border-radius:99px;border:1px solid #949494;box-sizing:border-box;color:var(--goa-color-text);display:inline-flex;flex-direction:row;font-size:var(--chip-font-size);font-weight:var(--fw-regular);gap:0.25rem;height:2rem;justify-content:center;margin:0.25rem;padding:0 0.75rem}.text{padding-bottom:var(--font-valign-fix)}.chip:focus{outline:2px solid var(--goa-color-interactive--focus);background-color:var(--color-white)}.chip:hover{background-color:var(--color-gray-200)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-status-emergency-light)}</style>`;
3231
+ this.shadowRoot.innerHTML = `<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--color-white);border-radius:99px;border:1px solid #949494;box-sizing:border-box;color:var(--goa-color-text);display:inline-flex;flex-direction:row;font-size:var(--chip-font-size);font-weight:var(--fw-regular);gap:0.25rem;height:2rem;justify-content:center;margin:0.25rem;padding:0 0.75rem;cursor:default}.text{padding-bottom:var(--font-valign-fix)}.chip:focus{outline:2px solid var(--goa-color-interactive--focus);background-color:var(--color-white)}.chip:hover{background-color:var(--color-gray-200)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-status-emergency-light)}</style>`;
3232
3232
 
3233
3233
  init(
3234
3234
  this,
@@ -3577,7 +3577,7 @@ function get_each_context$4(ctx, list, i) {
3577
3577
  return child_ctx;
3578
3578
  }
3579
3579
 
3580
- // (175:2) {#if isMenuVisible}
3580
+ // (179:2) {#if isMenuVisible}
3581
3581
  function create_if_block$d(ctx) {
3582
3582
  let div;
3583
3583
  let div_data_testid_value;
@@ -3611,7 +3611,7 @@ function create_if_block$d(ctx) {
3611
3611
  };
3612
3612
  }
3613
3613
 
3614
- // (211:4) {#each options as option, index (option.value)}
3614
+ // (215:4) {#each options as option, index (option.value)}
3615
3615
  function create_each_block$4(key_1, ctx) {
3616
3616
  let li;
3617
3617
  let t0_value = /*option*/ ctx[35].label + "";
@@ -3881,6 +3881,11 @@ function instance$o($$self, $$props, $$invalidate) {
3881
3881
 
3882
3882
  // Hooks
3883
3883
  onMount(async () => {
3884
+ if (!name) {
3885
+ console.error("goa-dropdown: missing the required `name` attribute. It must match the children's name attribute.");
3886
+ return;
3887
+ }
3888
+
3884
3889
  el.addEventListener("focus", onFocus, true);
3885
3890
  el.addEventListener("blur", onBlur, true);
3886
3891
 
@@ -4284,6 +4289,11 @@ function instance$n($$self, $$props, $$invalidate) {
4284
4289
 
4285
4290
  // Hooks
4286
4291
  onMount(async () => {
4292
+ if (!name) {
4293
+ console.error("goa-dropdown-item: missing the required `name` attribute. It must match the parent's name attribute");
4294
+ return;
4295
+ }
4296
+
4287
4297
  ctx = await getContext(name);
4288
4298
  ctx.notify({ type: BIND$1, name, label, value });
4289
4299
  });
@@ -6233,12 +6243,26 @@ function fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0,
6233
6243
  }
6234
6244
 
6235
6245
  function noScroll(_node, opts) {
6246
+ let toggledScrolling = false;
6236
6247
  function hideScrollbars() {
6248
+ if (!isScrollable()) {
6249
+ return;
6250
+ }
6237
6251
  const scrollbarWidth = calculateScrollbarWidth();
6238
- document.body.style.overflow = "hidden";
6239
- document.body.style.paddingRight = scrollbarWidth + "px";
6252
+ if (scrollbarWidth > 0) {
6253
+ toggledScrolling = true;
6254
+ document.body.style.overflow = "hidden";
6255
+ document.body.style.paddingRight = scrollbarWidth + "px";
6256
+ }
6257
+ }
6258
+ function isScrollable() {
6259
+ return document.body.style.overflow !== "hidden";
6240
6260
  }
6241
6261
  function resetScrollbars() {
6262
+ if (!toggledScrolling) {
6263
+ return;
6264
+ }
6265
+ toggledScrolling = false;
6242
6266
  setTimeout(() => {
6243
6267
  document.body.style.overflow = "";
6244
6268
  document.body.style.paddingRight = "0";
@@ -6263,9 +6287,7 @@ function noScroll(_node, opts) {
6263
6287
  }
6264
6288
  return {
6265
6289
  update() {
6266
- if (opts.enable) {
6267
- hideScrollbars();
6268
- } else {
6290
+ if (!opts.enable) {
6269
6291
  resetScrollbars();
6270
6292
  }
6271
6293
  },
@@ -6300,10 +6322,10 @@ function create_if_block$9(ctx) {
6300
6322
  let mounted;
6301
6323
  let dispose;
6302
6324
  let if_block0 = /*heading*/ ctx[0] && create_if_block_3$2(ctx);
6303
- let if_block1 = /*isClosable*/ ctx[5] && create_if_block_2$4(ctx);
6325
+ let if_block1 = /*isClosable*/ ctx[3] && create_if_block_2$4(ctx);
6304
6326
 
6305
6327
  function select_block_type(ctx, dirty) {
6306
- if (/*isScrollable*/ ctx[7]) return create_if_block_1$5;
6328
+ if (/*isScrollable*/ ctx[6]) return create_if_block_1$5;
6307
6329
  return create_else_block$1;
6308
6330
  }
6309
6331
 
@@ -6337,7 +6359,7 @@ function create_if_block$9(ctx) {
6337
6359
  attr(div3, "class", "modal-pane");
6338
6360
  attr(div4, "data-testid", "modal");
6339
6361
  attr(div4, "class", "modal");
6340
- attr(div4, "style", div4_style_value = "--scroll-offset: " + /*scrollOffset*/ ctx[4] + "px; " + (/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";");
6362
+ attr(div4, "style", div4_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"));
6341
6363
  set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[1]);
6342
6364
  },
6343
6365
  m(target, anchor) {
@@ -6360,8 +6382,8 @@ function create_if_block$9(ctx) {
6360
6382
 
6361
6383
  if (!mounted) {
6362
6384
  dispose = [
6363
- listen(div0, "click", /*close*/ ctx[8]),
6364
- action_destroyer(noscroll_action = noScroll.call(null, div4, { enable: /*isOpen*/ ctx[3] }))
6385
+ listen(div0, "click", /*close*/ ctx[7]),
6386
+ action_destroyer(noscroll_action = noScroll.call(null, div4, { enable: /*isOpen*/ ctx[5] }))
6365
6387
  ];
6366
6388
 
6367
6389
  mounted = true;
@@ -6383,7 +6405,7 @@ function create_if_block$9(ctx) {
6383
6405
  if_block0 = null;
6384
6406
  }
6385
6407
 
6386
- if (/*isClosable*/ ctx[5]) {
6408
+ if (/*isClosable*/ ctx[3]) {
6387
6409
  if (if_block1) {
6388
6410
  if_block1.p(ctx, dirty);
6389
6411
  } else {
@@ -6406,11 +6428,11 @@ function create_if_block$9(ctx) {
6406
6428
  }
6407
6429
  }
6408
6430
 
6409
- if (!current || dirty & /*scrollOffset, width*/ 20 && div4_style_value !== (div4_style_value = "--scroll-offset: " + /*scrollOffset*/ ctx[4] + "px; " + (/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";")) {
6431
+ if (!current || dirty & /*width*/ 4 && div4_style_value !== (div4_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"))) {
6410
6432
  attr(div4, "style", div4_style_value);
6411
6433
  }
6412
6434
 
6413
- if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/ 8) noscroll_action.update.call(null, { enable: /*isOpen*/ ctx[3] });
6435
+ if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/ 32) noscroll_action.update.call(null, { enable: /*isOpen*/ ctx[5] });
6414
6436
 
6415
6437
  if (!current || dirty & /*open*/ 2) {
6416
6438
  set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[1]);
@@ -6423,7 +6445,7 @@ function create_if_block$9(ctx) {
6423
6445
  if (div3_outro) div3_outro.end(1);
6424
6446
 
6425
6447
  div3_intro = create_in_transition(div3, fly, {
6426
- duration: /*_transitionTime*/ ctx[6],
6448
+ duration: /*_transitionTime*/ ctx[4],
6427
6449
  y: 200
6428
6450
  });
6429
6451
 
@@ -6432,7 +6454,7 @@ function create_if_block$9(ctx) {
6432
6454
 
6433
6455
  add_render_callback(() => {
6434
6456
  if (div4_outro) div4_outro.end(1);
6435
- div4_intro = create_in_transition(div4, fade, { duration: /*_transitionTime*/ ctx[6] });
6457
+ div4_intro = create_in_transition(div4, fade, { duration: /*_transitionTime*/ ctx[4] });
6436
6458
  div4_intro.start();
6437
6459
  });
6438
6460
 
@@ -6442,16 +6464,16 @@ function create_if_block$9(ctx) {
6442
6464
  if (div3_intro) div3_intro.invalidate();
6443
6465
 
6444
6466
  div3_outro = create_out_transition(div3, fly, {
6445
- delay: /*_transitionTime*/ ctx[6],
6446
- duration: /*_transitionTime*/ ctx[6],
6467
+ delay: /*_transitionTime*/ ctx[4],
6468
+ duration: /*_transitionTime*/ ctx[4],
6447
6469
  y: -100
6448
6470
  });
6449
6471
 
6450
6472
  if (div4_intro) div4_intro.invalidate();
6451
6473
 
6452
6474
  div4_outro = create_out_transition(div4, fade, {
6453
- delay: /*_transitionTime*/ ctx[6],
6454
- duration: /*_transitionTime*/ ctx[6]
6475
+ delay: /*_transitionTime*/ ctx[4],
6476
+ duration: /*_transitionTime*/ ctx[4]
6455
6477
  });
6456
6478
 
6457
6479
  current = false;
@@ -6469,7 +6491,7 @@ function create_if_block$9(ctx) {
6469
6491
  };
6470
6492
  }
6471
6493
 
6472
- // (60:8) {#if heading}
6494
+ // (58:8) {#if heading}
6473
6495
  function create_if_block_3$2(ctx) {
6474
6496
  let div;
6475
6497
  let t;
@@ -6494,7 +6516,7 @@ function create_if_block_3$2(ctx) {
6494
6516
  };
6495
6517
  }
6496
6518
 
6497
- // (63:8) {#if isClosable}
6519
+ // (61:8) {#if isClosable}
6498
6520
  function create_if_block_2$4(ctx) {
6499
6521
  let div;
6500
6522
  let goa_icon_button;
@@ -6514,7 +6536,7 @@ function create_if_block_2$4(ctx) {
6514
6536
  append(div, goa_icon_button);
6515
6537
 
6516
6538
  if (!mounted) {
6517
- dispose = listen(goa_icon_button, "click", /*close*/ ctx[8]);
6539
+ dispose = listen(goa_icon_button, "click", /*close*/ ctx[7]);
6518
6540
  mounted = true;
6519
6541
  }
6520
6542
  },
@@ -6527,7 +6549,7 @@ function create_if_block_2$4(ctx) {
6527
6549
  };
6528
6550
  }
6529
6551
 
6530
- // (77:10) {:else}
6552
+ // (75:10) {:else}
6531
6553
  function create_else_block$1(ctx) {
6532
6554
  let div;
6533
6555
 
@@ -6546,7 +6568,7 @@ function create_else_block$1(ctx) {
6546
6568
  };
6547
6569
  }
6548
6570
 
6549
- // (73:10) {#if isScrollable}
6571
+ // (71:10) {#if isScrollable}
6550
6572
  function create_if_block_1$5(ctx) {
6551
6573
  let goa_scrollable;
6552
6574
 
@@ -6570,7 +6592,7 @@ function create_if_block_1$5(ctx) {
6570
6592
  function create_fragment$i(ctx) {
6571
6593
  let if_block_anchor;
6572
6594
  let current;
6573
- let if_block = /*isOpen*/ ctx[3] && create_if_block$9(ctx);
6595
+ let if_block = /*isOpen*/ ctx[5] && create_if_block$9(ctx);
6574
6596
 
6575
6597
  return {
6576
6598
  c() {
@@ -6584,11 +6606,11 @@ function create_fragment$i(ctx) {
6584
6606
  current = true;
6585
6607
  },
6586
6608
  p(ctx, [dirty]) {
6587
- if (/*isOpen*/ ctx[3]) {
6609
+ if (/*isOpen*/ ctx[5]) {
6588
6610
  if (if_block) {
6589
6611
  if_block.p(ctx, dirty);
6590
6612
 
6591
- if (dirty & /*isOpen*/ 8) {
6613
+ if (dirty & /*isOpen*/ 32) {
6592
6614
  transition_in(if_block, 1);
6593
6615
  }
6594
6616
  } else {
@@ -6634,7 +6656,10 @@ function instance$g($$self, $$props, $$invalidate) {
6634
6656
  let { open } = $$props;
6635
6657
  let { transition } = $$props;
6636
6658
  let { width } = $$props;
6637
- let scrollOffset = 0;
6659
+
6660
+ onMount(() => {
6661
+ console.log("in the modal v2");
6662
+ });
6638
6663
 
6639
6664
  function close(e) {
6640
6665
  if (!isClosable) {
@@ -6647,36 +6672,28 @@ function instance$g($$self, $$props, $$invalidate) {
6647
6672
 
6648
6673
  $$self.$$set = $$props => {
6649
6674
  if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
6650
- if ('closable' in $$props) $$invalidate(9, closable = $$props.closable);
6651
- if ('scrollable' in $$props) $$invalidate(10, scrollable = $$props.scrollable);
6675
+ if ('closable' in $$props) $$invalidate(8, closable = $$props.closable);
6676
+ if ('scrollable' in $$props) $$invalidate(9, scrollable = $$props.scrollable);
6652
6677
  if ('open' in $$props) $$invalidate(1, open = $$props.open);
6653
- if ('transition' in $$props) $$invalidate(11, transition = $$props.transition);
6678
+ if ('transition' in $$props) $$invalidate(10, transition = $$props.transition);
6654
6679
  if ('width' in $$props) $$invalidate(2, width = $$props.width);
6655
6680
  };
6656
6681
 
6657
6682
  $$self.$$.update = () => {
6658
- if ($$self.$$.dirty & /*closable*/ 512) {
6659
- $$invalidate(5, isClosable = toBoolean(closable));
6683
+ if ($$self.$$.dirty & /*closable*/ 256) {
6684
+ $$invalidate(3, isClosable = toBoolean(closable));
6660
6685
  }
6661
6686
 
6662
- if ($$self.$$.dirty & /*scrollable*/ 1024) {
6663
- $$invalidate(7, isScrollable = toBoolean(scrollable));
6687
+ if ($$self.$$.dirty & /*scrollable*/ 512) {
6688
+ $$invalidate(6, isScrollable = toBoolean(scrollable));
6664
6689
  }
6665
6690
 
6666
6691
  if ($$self.$$.dirty & /*open*/ 2) {
6667
- $$invalidate(3, isOpen = toBoolean(open));
6668
- }
6669
-
6670
- if ($$self.$$.dirty & /*isOpen*/ 8) {
6671
- {
6672
- if (isOpen) {
6673
- $$invalidate(4, scrollOffset = window.pageYOffset);
6674
- }
6675
- }
6692
+ $$invalidate(5, isOpen = toBoolean(open));
6676
6693
  }
6677
6694
 
6678
- if ($$self.$$.dirty & /*transition*/ 2048) {
6679
- $$invalidate(6, _transitionTime = transition === "none"
6695
+ if ($$self.$$.dirty & /*transition*/ 1024) {
6696
+ $$invalidate(4, _transitionTime = transition === "none"
6680
6697
  ? 0
6681
6698
  : transition === "slow" ? 400 : 200);
6682
6699
  }
@@ -6686,10 +6703,9 @@ function instance$g($$self, $$props, $$invalidate) {
6686
6703
  heading,
6687
6704
  open,
6688
6705
  width,
6689
- isOpen,
6690
- scrollOffset,
6691
6706
  isClosable,
6692
6707
  _transitionTime,
6708
+ isOpen,
6693
6709
  isScrollable,
6694
6710
  close,
6695
6711
  closable,
@@ -6701,7 +6717,7 @@ function instance$g($$self, $$props, $$invalidate) {
6701
6717
  class Modal extends SvelteElement {
6702
6718
  constructor(options) {
6703
6719
  super();
6704
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:absolute;top:var(--scroll-offset, 0);left:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>`;
6720
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>`;
6705
6721
 
6706
6722
  init(
6707
6723
  this,
@@ -6715,10 +6731,10 @@ class Modal extends SvelteElement {
6715
6731
  safe_not_equal,
6716
6732
  {
6717
6733
  heading: 0,
6718
- closable: 9,
6719
- scrollable: 10,
6734
+ closable: 8,
6735
+ scrollable: 9,
6720
6736
  open: 1,
6721
- transition: 11,
6737
+ transition: 10,
6722
6738
  width: 2
6723
6739
  },
6724
6740
  null
@@ -6750,7 +6766,7 @@ class Modal extends SvelteElement {
6750
6766
  }
6751
6767
 
6752
6768
  get closable() {
6753
- return this.$$.ctx[9];
6769
+ return this.$$.ctx[8];
6754
6770
  }
6755
6771
 
6756
6772
  set closable(closable) {
@@ -6759,7 +6775,7 @@ class Modal extends SvelteElement {
6759
6775
  }
6760
6776
 
6761
6777
  get scrollable() {
6762
- return this.$$.ctx[10];
6778
+ return this.$$.ctx[9];
6763
6779
  }
6764
6780
 
6765
6781
  set scrollable(scrollable) {
@@ -6777,7 +6793,7 @@ class Modal extends SvelteElement {
6777
6793
  }
6778
6794
 
6779
6795
  get transition() {
6780
- return this.$$.ctx[11];
6796
+ return this.$$.ctx[10];
6781
6797
  }
6782
6798
 
6783
6799
  set transition(transition) {
@@ -7550,7 +7566,7 @@ function get_each_context$3(ctx, list, i) {
7550
7566
  return child_ctx;
7551
7567
  }
7552
7568
 
7553
- // (51:2) {#each options as option (option.value) }
7569
+ // (55:2) {#each options as option (option.value) }
7554
7570
  function create_each_block$3(key_1, ctx) {
7555
7571
  let label;
7556
7572
  let input;
@@ -7738,6 +7754,11 @@ function instance$d($$self, $$props, $$invalidate) {
7738
7754
  let el;
7739
7755
 
7740
7756
  onMount(() => {
7757
+ if (!name) {
7758
+ console.error("goa-radio: missing the required `name` attribute. It must match the children's name attribute.");
7759
+ return;
7760
+ }
7761
+
7741
7762
  ctx = createContext(name);
7742
7763
 
7743
7764
  ctx.subscribe(msg => {
@@ -7926,6 +7947,11 @@ function instance$c($$self, $$props, $$invalidate) {
7926
7947
  let ctx;
7927
7948
 
7928
7949
  onMount(async () => {
7950
+ if (!name) {
7951
+ console.error("goa-radio-item: missing the required `name` attribute. It must match the parent's name attribute.");
7952
+ return;
7953
+ }
7954
+
7929
7955
  ctx = await getContext(name);
7930
7956
  ctx.notify({ type: BIND, value, label });
7931
7957
  });
@@ -9711,7 +9737,7 @@ class TextArea extends SvelteElement {
9711
9737
  constructor(options) {
9712
9738
  super();
9713
9739
 
9714
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)
9740
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--textarea-padding-vertical, 0.5rem) var(--textarea-padding-horizontal, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)
9715
9741
  }.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}</style>`;
9716
9742
 
9717
9743
  init(