@iroco/ui 0.9.3 → 0.11.1

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/lib/index.mjs CHANGED
@@ -169,37 +169,6 @@ function custom_event(type, detail) {
169
169
  e.initCustomEvent(type, false, false, detail);
170
170
  return e;
171
171
  }
172
- class HtmlTag {
173
- constructor(anchor = null) {
174
- this.a = anchor;
175
- this.e = this.n = null;
176
- }
177
- m(html, target, anchor = null) {
178
- if (!this.e) {
179
- this.e = element(target.nodeName);
180
- this.t = target;
181
- this.h(html);
182
- }
183
- this.i(anchor);
184
- }
185
- h(html) {
186
- this.e.innerHTML = html;
187
- this.n = Array.from(this.e.childNodes);
188
- }
189
- i(anchor) {
190
- for (let i = 0; i < this.n.length; i += 1) {
191
- insert(this.t, this.n[i], anchor);
192
- }
193
- }
194
- p(html) {
195
- this.d();
196
- this.h(html);
197
- this.i(this.a);
198
- }
199
- d() {
200
- this.n.forEach(detach);
201
- }
202
- }
203
172
 
204
173
  let current_component;
205
174
  function set_current_component(component) {
@@ -503,19 +472,19 @@ function create_fragment$g(ctx) {
503
472
  let current;
504
473
  let mounted;
505
474
  let dispose;
506
- const default_slot_template = /*#slots*/ ctx[8].default;
507
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
475
+ const default_slot_template = /*#slots*/ ctx[7].default;
476
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
508
477
 
509
478
  return {
510
479
  c() {
511
480
  button = element("button");
512
481
  if (default_slot) default_slot.c();
513
- attr(button, "id", /*id*/ ctx[6]);
514
- attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-ahn9t2"));
515
- attr(button, "type", /*type*/ ctx[1]);
516
- button.disabled = /*disabled*/ ctx[2];
517
- toggle_class(button, "disabled", /*disabled*/ ctx[2]);
518
- toggle_class(button, "rounded", /*rounded*/ ctx[5]);
482
+ attr(button, "id", /*id*/ ctx[5]);
483
+ attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[3]} iroco-ui-button--${/*kind*/ ctx[2]}`) + " svelte-hp8sdi"));
484
+ attr(button, "type", /*type*/ ctx[0]);
485
+ button.disabled = /*disabled*/ ctx[1];
486
+ toggle_class(button, "disabled", /*disabled*/ ctx[1]);
487
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
519
488
  },
520
489
  m(target, anchor) {
521
490
  insert(target, button, anchor);
@@ -524,43 +493,42 @@ function create_fragment$g(ctx) {
524
493
  default_slot.m(button, null);
525
494
  }
526
495
 
527
- /*button_binding*/ ctx[10](button);
528
496
  current = true;
529
497
 
530
498
  if (!mounted) {
531
- dispose = listen(button, "click", /*click_handler*/ ctx[9]);
499
+ dispose = listen(button, "click", /*click_handler*/ ctx[8]);
532
500
  mounted = true;
533
501
  }
534
502
  },
535
503
  p(ctx, [dirty]) {
536
504
  if (default_slot) {
537
- if (default_slot.p && (!current || dirty & /*$$scope*/ 128)) {
538
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[7], dirty, null, null);
505
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
506
+ update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null);
539
507
  }
540
508
  }
541
509
 
542
- if (!current || dirty & /*id*/ 64) {
543
- attr(button, "id", /*id*/ ctx[6]);
510
+ if (!current || dirty & /*id*/ 32) {
511
+ attr(button, "id", /*id*/ ctx[5]);
544
512
  }
545
513
 
546
- if (!current || dirty & /*size, kind*/ 24 && button_class_value !== (button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-ahn9t2"))) {
514
+ if (!current || dirty & /*size, kind*/ 12 && button_class_value !== (button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[3]} iroco-ui-button--${/*kind*/ ctx[2]}`) + " svelte-hp8sdi"))) {
547
515
  attr(button, "class", button_class_value);
548
516
  }
549
517
 
550
- if (!current || dirty & /*type*/ 2) {
551
- attr(button, "type", /*type*/ ctx[1]);
518
+ if (!current || dirty & /*type*/ 1) {
519
+ attr(button, "type", /*type*/ ctx[0]);
552
520
  }
553
521
 
554
- if (!current || dirty & /*disabled*/ 4) {
555
- button.disabled = /*disabled*/ ctx[2];
522
+ if (!current || dirty & /*disabled*/ 2) {
523
+ button.disabled = /*disabled*/ ctx[1];
556
524
  }
557
525
 
558
- if (dirty & /*size, kind, disabled*/ 28) {
559
- toggle_class(button, "disabled", /*disabled*/ ctx[2]);
526
+ if (dirty & /*size, kind, disabled*/ 14) {
527
+ toggle_class(button, "disabled", /*disabled*/ ctx[1]);
560
528
  }
561
529
 
562
- if (dirty & /*size, kind, rounded*/ 56) {
563
- toggle_class(button, "rounded", /*rounded*/ ctx[5]);
530
+ if (dirty & /*size, kind, rounded*/ 28) {
531
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
564
532
  }
565
533
  },
566
534
  i(local) {
@@ -575,7 +543,6 @@ function create_fragment$g(ctx) {
575
543
  d(detaching) {
576
544
  if (detaching) detach(button);
577
545
  if (default_slot) default_slot.d(detaching);
578
- /*button_binding*/ ctx[10](null);
579
546
  mounted = false;
580
547
  dispose();
581
548
  }
@@ -590,43 +557,22 @@ function instance$f($$self, $$props, $$invalidate) {
590
557
  let { size = "regular" } = $$props;
591
558
  let { rounded = false } = $$props;
592
559
  let { id } = $$props;
593
- let { node } = $$props;
594
560
 
595
561
  function click_handler(event) {
596
562
  bubble($$self, event);
597
563
  }
598
564
 
599
- function button_binding($$value) {
600
- binding_callbacks[$$value ? "unshift" : "push"](() => {
601
- node = $$value;
602
- $$invalidate(0, node);
603
- });
604
- }
605
-
606
565
  $$self.$$set = $$props => {
607
- if ("type" in $$props) $$invalidate(1, type = $$props.type);
608
- if ("disabled" in $$props) $$invalidate(2, disabled = $$props.disabled);
609
- if ("kind" in $$props) $$invalidate(3, kind = $$props.kind);
610
- if ("size" in $$props) $$invalidate(4, size = $$props.size);
611
- if ("rounded" in $$props) $$invalidate(5, rounded = $$props.rounded);
612
- if ("id" in $$props) $$invalidate(6, id = $$props.id);
613
- if ("node" in $$props) $$invalidate(0, node = $$props.node);
614
- if ("$$scope" in $$props) $$invalidate(7, $$scope = $$props.$$scope);
566
+ if ("type" in $$props) $$invalidate(0, type = $$props.type);
567
+ if ("disabled" in $$props) $$invalidate(1, disabled = $$props.disabled);
568
+ if ("kind" in $$props) $$invalidate(2, kind = $$props.kind);
569
+ if ("size" in $$props) $$invalidate(3, size = $$props.size);
570
+ if ("rounded" in $$props) $$invalidate(4, rounded = $$props.rounded);
571
+ if ("id" in $$props) $$invalidate(5, id = $$props.id);
572
+ if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope);
615
573
  };
616
574
 
617
- return [
618
- node,
619
- type,
620
- disabled,
621
- kind,
622
- size,
623
- rounded,
624
- id,
625
- $$scope,
626
- slots,
627
- click_handler,
628
- button_binding
629
- ];
575
+ return [type, disabled, kind, size, rounded, id, $$scope, slots, click_handler];
630
576
  }
631
577
 
632
578
  class Button extends SvelteComponent {
@@ -634,20 +580,19 @@ class Button extends SvelteComponent {
634
580
  super();
635
581
 
636
582
  init(this, options, instance$f, create_fragment$g, safe_not_equal, {
637
- type: 1,
638
- disabled: 2,
639
- kind: 3,
640
- size: 4,
641
- rounded: 5,
642
- id: 6,
643
- node: 0
583
+ type: 0,
584
+ disabled: 1,
585
+ kind: 2,
586
+ size: 3,
587
+ rounded: 4,
588
+ id: 5
644
589
  });
645
590
  }
646
591
  }
647
592
 
648
593
  /* src/TextInput.svelte generated by Svelte v3.38.2 */
649
594
 
650
- function create_if_block_2(ctx) {
595
+ function create_if_block_1$1(ctx) {
651
596
  let label_1;
652
597
  let t;
653
598
 
@@ -675,91 +620,28 @@ function create_if_block_2(ctx) {
675
620
  };
676
621
  }
677
622
 
678
- // (41:1) {#if error != null}
623
+ // (40:1) {#if error != null}
679
624
  function create_if_block$4(ctx) {
680
625
  let p;
681
-
682
- function select_block_type(ctx, dirty) {
683
- if (/*htmlError*/ ctx[5]) return create_if_block_1$1;
684
- return create_else_block$1;
685
- }
686
-
687
- let current_block_type = select_block_type(ctx);
688
- let if_block = current_block_type(ctx);
626
+ let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
627
+ let t;
689
628
 
690
629
  return {
691
630
  c() {
692
631
  p = element("p");
693
- if_block.c();
632
+ t = text(t_value);
694
633
  attr(p, "data-testid", "error");
695
634
  attr(p, "class", "error svelte-11iawkb");
696
635
  },
697
636
  m(target, anchor) {
698
637
  insert(target, p, anchor);
699
- if_block.m(p, null);
700
- },
701
- p(ctx, dirty) {
702
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
703
- if_block.p(ctx, dirty);
704
- } else {
705
- if_block.d(1);
706
- if_block = current_block_type(ctx);
707
-
708
- if (if_block) {
709
- if_block.c();
710
- if_block.m(p, null);
711
- }
712
- }
713
- },
714
- d(detaching) {
715
- if (detaching) detach(p);
716
- if_block.d();
717
- }
718
- };
719
- }
720
-
721
- // (45:3) {:else}
722
- function create_else_block$1(ctx) {
723
- let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
724
- let t;
725
-
726
- return {
727
- c() {
728
- t = text(t_value);
729
- },
730
- m(target, anchor) {
731
- insert(target, t, anchor);
638
+ append(p, t);
732
639
  },
733
640
  p(ctx, dirty) {
734
641
  if (dirty & /*error*/ 16 && t_value !== (t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "")) set_data(t, t_value);
735
642
  },
736
643
  d(detaching) {
737
- if (detaching) detach(t);
738
- }
739
- };
740
- }
741
-
742
- // (43:3) {#if htmlError}
743
- function create_if_block_1$1(ctx) {
744
- let html_tag;
745
- let raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
746
- let html_anchor;
747
-
748
- return {
749
- c() {
750
- html_anchor = empty();
751
- html_tag = new HtmlTag(html_anchor);
752
- },
753
- m(target, anchor) {
754
- html_tag.m(raw_value, target, anchor);
755
- insert(target, html_anchor, anchor);
756
- },
757
- p(ctx, dirty) {
758
- if (dirty & /*error*/ 16 && raw_value !== (raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "")) html_tag.p(raw_value);
759
- },
760
- d(detaching) {
761
- if (detaching) detach(html_anchor);
762
- if (detaching) html_tag.d();
644
+ if (detaching) detach(p);
763
645
  }
764
646
  };
765
647
  }
@@ -771,7 +653,7 @@ function create_fragment$f(ctx) {
771
653
  let t1;
772
654
  let mounted;
773
655
  let dispose;
774
- let if_block0 = /*label*/ ctx[2] && create_if_block_2(ctx);
656
+ let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
775
657
  let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
776
658
 
777
659
  return {
@@ -785,11 +667,11 @@ function create_fragment$f(ctx) {
785
667
  attr(input, "id", /*id*/ ctx[1]);
786
668
  attr(input, "type", "text");
787
669
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
788
- input.readOnly = /*readonly*/ ctx[8];
670
+ input.readOnly = /*readonly*/ ctx[7];
789
671
  attr(input, "class", "svelte-11iawkb");
790
- toggle_class(input, "border", /*border*/ ctx[9]);
672
+ toggle_class(input, "border", /*border*/ ctx[8]);
791
673
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
792
- toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
674
+ toggle_class(input, "readonlyInput", /*readonly*/ ctx[7] == true);
793
675
  attr(div, "class", "iroco-ui-input svelte-11iawkb");
794
676
  },
795
677
  m(target, anchor) {
@@ -803,15 +685,15 @@ function create_fragment$f(ctx) {
803
685
 
804
686
  if (!mounted) {
805
687
  dispose = [
806
- listen(input, "input", /*input_handler*/ ctx[13]),
807
- listen(input, "input", /*input_input_handler*/ ctx[14]),
688
+ listen(input, "input", /*input_handler*/ ctx[12]),
689
+ listen(input, "input", /*input_input_handler*/ ctx[13]),
808
690
  listen(input, "focus", function () {
809
- if (is_function(/*onFocus*/ ctx[6])) /*onFocus*/ ctx[6].apply(this, arguments);
691
+ if (is_function(/*onFocus*/ ctx[5])) /*onFocus*/ ctx[5].apply(this, arguments);
810
692
  }),
811
693
  listen(input, "blur", function () {
812
- if (is_function(/*onBlur*/ ctx[7])) /*onBlur*/ ctx[7].apply(this, arguments);
694
+ if (is_function(/*onBlur*/ ctx[6])) /*onBlur*/ ctx[6].apply(this, arguments);
813
695
  }),
814
- action_destroyer(/*typeAction*/ ctx[10].call(null, input))
696
+ action_destroyer(/*typeAction*/ ctx[9].call(null, input))
815
697
  ];
816
698
 
817
699
  mounted = true;
@@ -824,7 +706,7 @@ function create_fragment$f(ctx) {
824
706
  if (if_block0) {
825
707
  if_block0.p(ctx, dirty);
826
708
  } else {
827
- if_block0 = create_if_block_2(ctx);
709
+ if_block0 = create_if_block_1$1(ctx);
828
710
  if_block0.c();
829
711
  if_block0.m(div, t0);
830
712
  }
@@ -841,24 +723,24 @@ function create_fragment$f(ctx) {
841
723
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
842
724
  }
843
725
 
844
- if (dirty & /*readonly*/ 256) {
845
- input.readOnly = /*readonly*/ ctx[8];
726
+ if (dirty & /*readonly*/ 128) {
727
+ input.readOnly = /*readonly*/ ctx[7];
846
728
  }
847
729
 
848
730
  if (dirty & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
849
731
  set_input_value(input, /*value*/ ctx[0]);
850
732
  }
851
733
 
852
- if (dirty & /*border*/ 512) {
853
- toggle_class(input, "border", /*border*/ ctx[9]);
734
+ if (dirty & /*border*/ 256) {
735
+ toggle_class(input, "border", /*border*/ ctx[8]);
854
736
  }
855
737
 
856
738
  if (dirty & /*error*/ 16) {
857
739
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
858
740
  }
859
741
 
860
- if (dirty & /*readonly*/ 256) {
861
- toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
742
+ if (dirty & /*readonly*/ 128) {
743
+ toggle_class(input, "readonlyInput", /*readonly*/ ctx[7] == true);
862
744
  }
863
745
 
864
746
  if (/*error*/ ctx[4] != null) {
@@ -900,7 +782,6 @@ function instance$e($$self, $$props, $$invalidate) {
900
782
  let { label = null } = $$props;
901
783
  let { placeholder } = $$props;
902
784
  let { error = null } = $$props;
903
- let { htmlError = false } = $$props;
904
785
  let { value = null } = $$props;
905
786
  let { onFocus } = $$props;
906
787
  let { onBlur } = $$props;
@@ -921,18 +802,17 @@ function instance$e($$self, $$props, $$invalidate) {
921
802
  }
922
803
 
923
804
  $$self.$$set = $$props => {
924
- if ("TextType" in $$props) $$invalidate(11, TextType = $$props.TextType);
805
+ if ("TextType" in $$props) $$invalidate(10, TextType = $$props.TextType);
925
806
  if ("id" in $$props) $$invalidate(1, id = $$props.id);
926
- if ("type" in $$props) $$invalidate(12, type = $$props.type);
807
+ if ("type" in $$props) $$invalidate(11, type = $$props.type);
927
808
  if ("label" in $$props) $$invalidate(2, label = $$props.label);
928
809
  if ("placeholder" in $$props) $$invalidate(3, placeholder = $$props.placeholder);
929
810
  if ("error" in $$props) $$invalidate(4, error = $$props.error);
930
- if ("htmlError" in $$props) $$invalidate(5, htmlError = $$props.htmlError);
931
811
  if ("value" in $$props) $$invalidate(0, value = $$props.value);
932
- if ("onFocus" in $$props) $$invalidate(6, onFocus = $$props.onFocus);
933
- if ("onBlur" in $$props) $$invalidate(7, onBlur = $$props.onBlur);
934
- if ("readonly" in $$props) $$invalidate(8, readonly = $$props.readonly);
935
- if ("border" in $$props) $$invalidate(9, border = $$props.border);
812
+ if ("onFocus" in $$props) $$invalidate(5, onFocus = $$props.onFocus);
813
+ if ("onBlur" in $$props) $$invalidate(6, onBlur = $$props.onBlur);
814
+ if ("readonly" in $$props) $$invalidate(7, readonly = $$props.readonly);
815
+ if ("border" in $$props) $$invalidate(8, border = $$props.border);
936
816
  };
937
817
 
938
818
  return [
@@ -941,7 +821,6 @@ function instance$e($$self, $$props, $$invalidate) {
941
821
  label,
942
822
  placeholder,
943
823
  error,
944
- htmlError,
945
824
  onFocus,
946
825
  onBlur,
947
826
  readonly,
@@ -959,18 +838,17 @@ class TextInput extends SvelteComponent {
959
838
  super();
960
839
 
961
840
  init(this, options, instance$e, create_fragment$f, safe_not_equal, {
962
- TextType: 11,
841
+ TextType: 10,
963
842
  id: 1,
964
- type: 12,
843
+ type: 11,
965
844
  label: 2,
966
845
  placeholder: 3,
967
846
  error: 4,
968
- htmlError: 5,
969
847
  value: 0,
970
- onFocus: 6,
971
- onBlur: 7,
972
- readonly: 8,
973
- border: 9
848
+ onFocus: 5,
849
+ onBlur: 6,
850
+ readonly: 7,
851
+ border: 8
974
852
  });
975
853
  }
976
854
  }
@@ -4118,15 +3996,16 @@ class IconClose extends SvelteComponent {
4118
3996
 
4119
3997
  function get_each_context$1(ctx, list, i) {
4120
3998
  const child_ctx = ctx.slice();
4121
- child_ctx[6] = list[i];
3999
+ child_ctx[6] = list[i].destination;
4000
+ child_ctx[7] = list[i].name;
4122
4001
  return child_ctx;
4123
4002
  }
4124
4003
 
4125
- // (23:2) {#each navigationItems as item}
4004
+ // (19:2) {#each navigationItems as { destination, name }}
4126
4005
  function create_each_block$1(ctx) {
4127
4006
  let li;
4128
4007
  let a;
4129
- let t0_value = /*item*/ ctx[6].name + "";
4008
+ let t0_value = /*name*/ ctx[7] + "";
4130
4009
  let t0;
4131
4010
  let a_href_value;
4132
4011
  let t1;
@@ -4134,7 +4013,7 @@ function create_each_block$1(ctx) {
4134
4013
  let dispose;
4135
4014
 
4136
4015
  function click_handler_1() {
4137
- return /*click_handler_1*/ ctx[4](/*item*/ ctx[6]);
4016
+ return /*click_handler_1*/ ctx[4](/*destination*/ ctx[6]);
4138
4017
  }
4139
4018
 
4140
4019
  return {
@@ -4143,14 +4022,10 @@ function create_each_block$1(ctx) {
4143
4022
  a = element("a");
4144
4023
  t0 = text(t0_value);
4145
4024
  t1 = space();
4146
-
4147
- attr(a, "href", a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4148
- ? /*item*/ ctx[6].hrefOrCallback
4149
- : "#");
4150
-
4151
- attr(a, "class", "svelte-jkys2k");
4152
- attr(li, "class", "account__sidebar__item svelte-jkys2k");
4153
- toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4025
+ attr(a, "href", a_href_value = /*destination*/ ctx[6]);
4026
+ attr(a, "class", "svelte-1rx212l");
4027
+ attr(li, "class", "account__sidebar__item svelte-1rx212l");
4028
+ toggle_class(li, "active", /*active*/ ctx[1] === /*destination*/ ctx[6]);
4154
4029
  },
4155
4030
  m(target, anchor) {
4156
4031
  insert(target, li, anchor);
@@ -4165,16 +4040,14 @@ function create_each_block$1(ctx) {
4165
4040
  },
4166
4041
  p(new_ctx, dirty) {
4167
4042
  ctx = new_ctx;
4168
- if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[6].name + "")) set_data(t0, t0_value);
4043
+ if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*name*/ ctx[7] + "")) set_data(t0, t0_value);
4169
4044
 
4170
- if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4171
- ? /*item*/ ctx[6].hrefOrCallback
4172
- : "#")) {
4045
+ if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = /*destination*/ ctx[6])) {
4173
4046
  attr(a, "href", a_href_value);
4174
4047
  }
4175
4048
 
4176
4049
  if (dirty & /*active, navigationItems*/ 3) {
4177
- toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4050
+ toggle_class(li, "active", /*active*/ ctx[1] === /*destination*/ ctx[6]);
4178
4051
  }
4179
4052
  },
4180
4053
  d(detaching) {
@@ -4214,10 +4087,10 @@ function create_fragment$7(ctx) {
4214
4087
  each_blocks[i].c();
4215
4088
  }
4216
4089
 
4217
- attr(button, "class", "account__sidebar__close svelte-jkys2k");
4218
- attr(ul, "class", "account__sidebar__item_container svelte-jkys2k");
4090
+ attr(button, "class", "account__sidebar__close svelte-1rx212l");
4091
+ attr(ul, "class", "account__sidebar__item_container svelte-1rx212l");
4219
4092
  attr(nav, "data-testid", "sidebar");
4220
- attr(nav, "class", "account__sidebar svelte-jkys2k");
4093
+ attr(nav, "class", "account__sidebar svelte-1rx212l");
4221
4094
  },
4222
4095
  m(target, anchor) {
4223
4096
  insert(target, nav, anchor);
@@ -4286,14 +4159,8 @@ function instance$7($$self, $$props, $$invalidate) {
4286
4159
  let active;
4287
4160
  const dispatch = createEventDispatcher();
4288
4161
 
4289
- const handleClickLink = menuItem => {
4290
- $$invalidate(1, active = menuItem.name);
4291
-
4292
- if (typeof menuItem.hrefOrCallback === "function") {
4293
- menuItem.hrefOrCallback();
4294
- return false; // to avoid calling href
4295
- }
4296
-
4162
+ const handleClickLink = destination => {
4163
+ $$invalidate(1, active = destination);
4297
4164
  dispatch("click_link");
4298
4165
  };
4299
4166
 
@@ -4301,7 +4168,7 @@ function instance$7($$self, $$props, $$invalidate) {
4301
4168
  bubble($$self, event);
4302
4169
  }
4303
4170
 
4304
- const click_handler_1 = item => handleClickLink(item);
4171
+ const click_handler_1 = destination => handleClickLink(destination);
4305
4172
 
4306
4173
  $$self.$$set = $$props => {
4307
4174
  if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
@@ -4477,13 +4344,13 @@ function create_fragment$5(ctx) {
4477
4344
  t6 = text(/*title*/ ctx[1]);
4478
4345
  t7 = space();
4479
4346
  create_component(sidebar.$$.fragment);
4480
- attr(h10, "class", "svelte-1uu9ytm");
4481
- attr(div0, "class", "account__navigation--mobile__title-container svelte-1uu9ytm");
4482
- attr(button, "class", "account__navigation--mobile__button svelte-1uu9ytm");
4483
- attr(div1, "class", "account__navigation--mobile svelte-1uu9ytm");
4484
- attr(h11, "class", "svelte-1uu9ytm");
4485
- attr(div2, "class", "account__navigation__title-container svelte-1uu9ytm");
4486
- attr(div3, "class", "account__navigation svelte-1uu9ytm");
4347
+ attr(h10, "class", "svelte-1jgfrsf");
4348
+ attr(div0, "class", "account__navigation--mobile__title-container svelte-1jgfrsf");
4349
+ attr(button, "class", "account__navigation--mobile__button svelte-1jgfrsf");
4350
+ attr(div1, "class", "account__navigation--mobile svelte-1jgfrsf");
4351
+ attr(h11, "class", "svelte-1jgfrsf");
4352
+ attr(div2, "class", "account__navigation__title-container svelte-1jgfrsf");
4353
+ attr(div3, "class", "account__navigation svelte-1jgfrsf");
4487
4354
  },
4488
4355
  m(target, anchor) {
4489
4356
  insert(target, div1, anchor);