@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/README.md CHANGED
@@ -11,13 +11,13 @@ See the [Documentation](https://iroco-co.github.io/iroco-ui/)
11
11
  To install dependencies :
12
12
 
13
13
  ```shell
14
- ~/src/iroco-ui$ yarn
14
+ ~/src/iroco-ui$ npm ci
15
15
  ```
16
16
 
17
17
  Building :
18
18
 
19
19
  ```shell
20
- ~/src/iroco-ui$ yarn build
20
+ ~/src/iroco-ui$ npm run build
21
21
  ```
22
22
 
23
23
  # documentation
@@ -25,7 +25,7 @@ Building :
25
25
  The docs directory contains the documentation app deployed on github pages. To install dependencies :
26
26
 
27
27
  ```shell
28
- ~/src/iroco-ui/docs$ yarn
28
+ ~/src/iroco-ui/docs$ npm ci
29
29
  ```
30
30
 
31
31
  You can add/update components documentation into `docs/src/pages/components` and update the left menu in `docs/src/includes/sidebar.md`.
@@ -38,11 +38,11 @@ When you have to work on the CSS for components, you can have hot reloading. To
38
38
  And in the same time launch the dev server for docs :
39
39
 
40
40
  ```shell
41
- ~/src/iroco-ui/docs$ yarn dev
41
+ ~/src/iroco-ui/docs$ npm run dev
42
42
  ```
43
43
 
44
44
  To build the documentation (in docs) :
45
45
 
46
46
  ```shell
47
- ~/src/iroco-ui/docs$ yarn build
47
+ ~/src/iroco-ui/docs$ npm run build
48
48
  ```
package/lib/index.js CHANGED
@@ -175,37 +175,6 @@
175
175
  e.initCustomEvent(type, false, false, detail);
176
176
  return e;
177
177
  }
178
- class HtmlTag {
179
- constructor(anchor = null) {
180
- this.a = anchor;
181
- this.e = this.n = null;
182
- }
183
- m(html, target, anchor = null) {
184
- if (!this.e) {
185
- this.e = element(target.nodeName);
186
- this.t = target;
187
- this.h(html);
188
- }
189
- this.i(anchor);
190
- }
191
- h(html) {
192
- this.e.innerHTML = html;
193
- this.n = Array.from(this.e.childNodes);
194
- }
195
- i(anchor) {
196
- for (let i = 0; i < this.n.length; i += 1) {
197
- insert(this.t, this.n[i], anchor);
198
- }
199
- }
200
- p(html) {
201
- this.d();
202
- this.h(html);
203
- this.i(this.a);
204
- }
205
- d() {
206
- this.n.forEach(detach);
207
- }
208
- }
209
178
 
210
179
  let current_component;
211
180
  function set_current_component(component) {
@@ -509,19 +478,19 @@
509
478
  let current;
510
479
  let mounted;
511
480
  let dispose;
512
- const default_slot_template = /*#slots*/ ctx[8].default;
513
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
481
+ const default_slot_template = /*#slots*/ ctx[7].default;
482
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
514
483
 
515
484
  return {
516
485
  c() {
517
486
  button = element("button");
518
487
  if (default_slot) default_slot.c();
519
- attr(button, "id", /*id*/ ctx[6]);
520
- 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"));
521
- attr(button, "type", /*type*/ ctx[1]);
522
- button.disabled = /*disabled*/ ctx[2];
523
- toggle_class(button, "disabled", /*disabled*/ ctx[2]);
524
- toggle_class(button, "rounded", /*rounded*/ ctx[5]);
488
+ attr(button, "id", /*id*/ ctx[5]);
489
+ 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"));
490
+ attr(button, "type", /*type*/ ctx[0]);
491
+ button.disabled = /*disabled*/ ctx[1];
492
+ toggle_class(button, "disabled", /*disabled*/ ctx[1]);
493
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
525
494
  },
526
495
  m(target, anchor) {
527
496
  insert(target, button, anchor);
@@ -530,43 +499,42 @@
530
499
  default_slot.m(button, null);
531
500
  }
532
501
 
533
- /*button_binding*/ ctx[10](button);
534
502
  current = true;
535
503
 
536
504
  if (!mounted) {
537
- dispose = listen(button, "click", /*click_handler*/ ctx[9]);
505
+ dispose = listen(button, "click", /*click_handler*/ ctx[8]);
538
506
  mounted = true;
539
507
  }
540
508
  },
541
509
  p(ctx, [dirty]) {
542
510
  if (default_slot) {
543
- if (default_slot.p && (!current || dirty & /*$$scope*/ 128)) {
544
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[7], dirty, null, null);
511
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
512
+ update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null);
545
513
  }
546
514
  }
547
515
 
548
- if (!current || dirty & /*id*/ 64) {
549
- attr(button, "id", /*id*/ ctx[6]);
516
+ if (!current || dirty & /*id*/ 32) {
517
+ attr(button, "id", /*id*/ ctx[5]);
550
518
  }
551
519
 
552
- 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"))) {
520
+ 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"))) {
553
521
  attr(button, "class", button_class_value);
554
522
  }
555
523
 
556
- if (!current || dirty & /*type*/ 2) {
557
- attr(button, "type", /*type*/ ctx[1]);
524
+ if (!current || dirty & /*type*/ 1) {
525
+ attr(button, "type", /*type*/ ctx[0]);
558
526
  }
559
527
 
560
- if (!current || dirty & /*disabled*/ 4) {
561
- button.disabled = /*disabled*/ ctx[2];
528
+ if (!current || dirty & /*disabled*/ 2) {
529
+ button.disabled = /*disabled*/ ctx[1];
562
530
  }
563
531
 
564
- if (dirty & /*size, kind, disabled*/ 28) {
565
- toggle_class(button, "disabled", /*disabled*/ ctx[2]);
532
+ if (dirty & /*size, kind, disabled*/ 14) {
533
+ toggle_class(button, "disabled", /*disabled*/ ctx[1]);
566
534
  }
567
535
 
568
- if (dirty & /*size, kind, rounded*/ 56) {
569
- toggle_class(button, "rounded", /*rounded*/ ctx[5]);
536
+ if (dirty & /*size, kind, rounded*/ 28) {
537
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
570
538
  }
571
539
  },
572
540
  i(local) {
@@ -581,7 +549,6 @@
581
549
  d(detaching) {
582
550
  if (detaching) detach(button);
583
551
  if (default_slot) default_slot.d(detaching);
584
- /*button_binding*/ ctx[10](null);
585
552
  mounted = false;
586
553
  dispose();
587
554
  }
@@ -596,43 +563,22 @@
596
563
  let { size = "regular" } = $$props;
597
564
  let { rounded = false } = $$props;
598
565
  let { id } = $$props;
599
- let { node } = $$props;
600
566
 
601
567
  function click_handler(event) {
602
568
  bubble($$self, event);
603
569
  }
604
570
 
605
- function button_binding($$value) {
606
- binding_callbacks[$$value ? "unshift" : "push"](() => {
607
- node = $$value;
608
- $$invalidate(0, node);
609
- });
610
- }
611
-
612
571
  $$self.$$set = $$props => {
613
- if ("type" in $$props) $$invalidate(1, type = $$props.type);
614
- if ("disabled" in $$props) $$invalidate(2, disabled = $$props.disabled);
615
- if ("kind" in $$props) $$invalidate(3, kind = $$props.kind);
616
- if ("size" in $$props) $$invalidate(4, size = $$props.size);
617
- if ("rounded" in $$props) $$invalidate(5, rounded = $$props.rounded);
618
- if ("id" in $$props) $$invalidate(6, id = $$props.id);
619
- if ("node" in $$props) $$invalidate(0, node = $$props.node);
620
- if ("$$scope" in $$props) $$invalidate(7, $$scope = $$props.$$scope);
572
+ if ("type" in $$props) $$invalidate(0, type = $$props.type);
573
+ if ("disabled" in $$props) $$invalidate(1, disabled = $$props.disabled);
574
+ if ("kind" in $$props) $$invalidate(2, kind = $$props.kind);
575
+ if ("size" in $$props) $$invalidate(3, size = $$props.size);
576
+ if ("rounded" in $$props) $$invalidate(4, rounded = $$props.rounded);
577
+ if ("id" in $$props) $$invalidate(5, id = $$props.id);
578
+ if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope);
621
579
  };
622
580
 
623
- return [
624
- node,
625
- type,
626
- disabled,
627
- kind,
628
- size,
629
- rounded,
630
- id,
631
- $$scope,
632
- slots,
633
- click_handler,
634
- button_binding
635
- ];
581
+ return [type, disabled, kind, size, rounded, id, $$scope, slots, click_handler];
636
582
  }
637
583
 
638
584
  class Button extends SvelteComponent {
@@ -640,20 +586,19 @@
640
586
  super();
641
587
 
642
588
  init(this, options, instance$f, create_fragment$g, safe_not_equal, {
643
- type: 1,
644
- disabled: 2,
645
- kind: 3,
646
- size: 4,
647
- rounded: 5,
648
- id: 6,
649
- node: 0
589
+ type: 0,
590
+ disabled: 1,
591
+ kind: 2,
592
+ size: 3,
593
+ rounded: 4,
594
+ id: 5
650
595
  });
651
596
  }
652
597
  }
653
598
 
654
599
  /* src/TextInput.svelte generated by Svelte v3.38.2 */
655
600
 
656
- function create_if_block_2(ctx) {
601
+ function create_if_block_1$1(ctx) {
657
602
  let label_1;
658
603
  let t;
659
604
 
@@ -681,91 +626,28 @@
681
626
  };
682
627
  }
683
628
 
684
- // (41:1) {#if error != null}
629
+ // (40:1) {#if error != null}
685
630
  function create_if_block$4(ctx) {
686
631
  let p;
687
-
688
- function select_block_type(ctx, dirty) {
689
- if (/*htmlError*/ ctx[5]) return create_if_block_1$1;
690
- return create_else_block$1;
691
- }
692
-
693
- let current_block_type = select_block_type(ctx);
694
- let if_block = current_block_type(ctx);
632
+ let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
633
+ let t;
695
634
 
696
635
  return {
697
636
  c() {
698
637
  p = element("p");
699
- if_block.c();
638
+ t = text(t_value);
700
639
  attr(p, "data-testid", "error");
701
640
  attr(p, "class", "error svelte-11iawkb");
702
641
  },
703
642
  m(target, anchor) {
704
643
  insert(target, p, anchor);
705
- if_block.m(p, null);
706
- },
707
- p(ctx, dirty) {
708
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
709
- if_block.p(ctx, dirty);
710
- } else {
711
- if_block.d(1);
712
- if_block = current_block_type(ctx);
713
-
714
- if (if_block) {
715
- if_block.c();
716
- if_block.m(p, null);
717
- }
718
- }
719
- },
720
- d(detaching) {
721
- if (detaching) detach(p);
722
- if_block.d();
723
- }
724
- };
725
- }
726
-
727
- // (45:3) {:else}
728
- function create_else_block$1(ctx) {
729
- let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
730
- let t;
731
-
732
- return {
733
- c() {
734
- t = text(t_value);
735
- },
736
- m(target, anchor) {
737
- insert(target, t, anchor);
644
+ append(p, t);
738
645
  },
739
646
  p(ctx, dirty) {
740
647
  if (dirty & /*error*/ 16 && t_value !== (t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "")) set_data(t, t_value);
741
648
  },
742
649
  d(detaching) {
743
- if (detaching) detach(t);
744
- }
745
- };
746
- }
747
-
748
- // (43:3) {#if htmlError}
749
- function create_if_block_1$1(ctx) {
750
- let html_tag;
751
- let raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
752
- let html_anchor;
753
-
754
- return {
755
- c() {
756
- html_anchor = empty();
757
- html_tag = new HtmlTag(html_anchor);
758
- },
759
- m(target, anchor) {
760
- html_tag.m(raw_value, target, anchor);
761
- insert(target, html_anchor, anchor);
762
- },
763
- p(ctx, dirty) {
764
- if (dirty & /*error*/ 16 && raw_value !== (raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "")) html_tag.p(raw_value);
765
- },
766
- d(detaching) {
767
- if (detaching) detach(html_anchor);
768
- if (detaching) html_tag.d();
650
+ if (detaching) detach(p);
769
651
  }
770
652
  };
771
653
  }
@@ -777,7 +659,7 @@
777
659
  let t1;
778
660
  let mounted;
779
661
  let dispose;
780
- let if_block0 = /*label*/ ctx[2] && create_if_block_2(ctx);
662
+ let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
781
663
  let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
782
664
 
783
665
  return {
@@ -791,11 +673,11 @@
791
673
  attr(input, "id", /*id*/ ctx[1]);
792
674
  attr(input, "type", "text");
793
675
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
794
- input.readOnly = /*readonly*/ ctx[8];
676
+ input.readOnly = /*readonly*/ ctx[7];
795
677
  attr(input, "class", "svelte-11iawkb");
796
- toggle_class(input, "border", /*border*/ ctx[9]);
678
+ toggle_class(input, "border", /*border*/ ctx[8]);
797
679
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
798
- toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
680
+ toggle_class(input, "readonlyInput", /*readonly*/ ctx[7] == true);
799
681
  attr(div, "class", "iroco-ui-input svelte-11iawkb");
800
682
  },
801
683
  m(target, anchor) {
@@ -809,15 +691,15 @@
809
691
 
810
692
  if (!mounted) {
811
693
  dispose = [
812
- listen(input, "input", /*input_handler*/ ctx[13]),
813
- listen(input, "input", /*input_input_handler*/ ctx[14]),
694
+ listen(input, "input", /*input_handler*/ ctx[12]),
695
+ listen(input, "input", /*input_input_handler*/ ctx[13]),
814
696
  listen(input, "focus", function () {
815
- if (is_function(/*onFocus*/ ctx[6])) /*onFocus*/ ctx[6].apply(this, arguments);
697
+ if (is_function(/*onFocus*/ ctx[5])) /*onFocus*/ ctx[5].apply(this, arguments);
816
698
  }),
817
699
  listen(input, "blur", function () {
818
- if (is_function(/*onBlur*/ ctx[7])) /*onBlur*/ ctx[7].apply(this, arguments);
700
+ if (is_function(/*onBlur*/ ctx[6])) /*onBlur*/ ctx[6].apply(this, arguments);
819
701
  }),
820
- action_destroyer(/*typeAction*/ ctx[10].call(null, input))
702
+ action_destroyer(/*typeAction*/ ctx[9].call(null, input))
821
703
  ];
822
704
 
823
705
  mounted = true;
@@ -830,7 +712,7 @@
830
712
  if (if_block0) {
831
713
  if_block0.p(ctx, dirty);
832
714
  } else {
833
- if_block0 = create_if_block_2(ctx);
715
+ if_block0 = create_if_block_1$1(ctx);
834
716
  if_block0.c();
835
717
  if_block0.m(div, t0);
836
718
  }
@@ -847,24 +729,24 @@
847
729
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
848
730
  }
849
731
 
850
- if (dirty & /*readonly*/ 256) {
851
- input.readOnly = /*readonly*/ ctx[8];
732
+ if (dirty & /*readonly*/ 128) {
733
+ input.readOnly = /*readonly*/ ctx[7];
852
734
  }
853
735
 
854
736
  if (dirty & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
855
737
  set_input_value(input, /*value*/ ctx[0]);
856
738
  }
857
739
 
858
- if (dirty & /*border*/ 512) {
859
- toggle_class(input, "border", /*border*/ ctx[9]);
740
+ if (dirty & /*border*/ 256) {
741
+ toggle_class(input, "border", /*border*/ ctx[8]);
860
742
  }
861
743
 
862
744
  if (dirty & /*error*/ 16) {
863
745
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
864
746
  }
865
747
 
866
- if (dirty & /*readonly*/ 256) {
867
- toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
748
+ if (dirty & /*readonly*/ 128) {
749
+ toggle_class(input, "readonlyInput", /*readonly*/ ctx[7] == true);
868
750
  }
869
751
 
870
752
  if (/*error*/ ctx[4] != null) {
@@ -906,7 +788,6 @@
906
788
  let { label = null } = $$props;
907
789
  let { placeholder } = $$props;
908
790
  let { error = null } = $$props;
909
- let { htmlError = false } = $$props;
910
791
  let { value = null } = $$props;
911
792
  let { onFocus } = $$props;
912
793
  let { onBlur } = $$props;
@@ -927,18 +808,17 @@
927
808
  }
928
809
 
929
810
  $$self.$$set = $$props => {
930
- if ("TextType" in $$props) $$invalidate(11, TextType = $$props.TextType);
811
+ if ("TextType" in $$props) $$invalidate(10, TextType = $$props.TextType);
931
812
  if ("id" in $$props) $$invalidate(1, id = $$props.id);
932
- if ("type" in $$props) $$invalidate(12, type = $$props.type);
813
+ if ("type" in $$props) $$invalidate(11, type = $$props.type);
933
814
  if ("label" in $$props) $$invalidate(2, label = $$props.label);
934
815
  if ("placeholder" in $$props) $$invalidate(3, placeholder = $$props.placeholder);
935
816
  if ("error" in $$props) $$invalidate(4, error = $$props.error);
936
- if ("htmlError" in $$props) $$invalidate(5, htmlError = $$props.htmlError);
937
817
  if ("value" in $$props) $$invalidate(0, value = $$props.value);
938
- if ("onFocus" in $$props) $$invalidate(6, onFocus = $$props.onFocus);
939
- if ("onBlur" in $$props) $$invalidate(7, onBlur = $$props.onBlur);
940
- if ("readonly" in $$props) $$invalidate(8, readonly = $$props.readonly);
941
- if ("border" in $$props) $$invalidate(9, border = $$props.border);
818
+ if ("onFocus" in $$props) $$invalidate(5, onFocus = $$props.onFocus);
819
+ if ("onBlur" in $$props) $$invalidate(6, onBlur = $$props.onBlur);
820
+ if ("readonly" in $$props) $$invalidate(7, readonly = $$props.readonly);
821
+ if ("border" in $$props) $$invalidate(8, border = $$props.border);
942
822
  };
943
823
 
944
824
  return [
@@ -947,7 +827,6 @@
947
827
  label,
948
828
  placeholder,
949
829
  error,
950
- htmlError,
951
830
  onFocus,
952
831
  onBlur,
953
832
  readonly,
@@ -965,18 +844,17 @@
965
844
  super();
966
845
 
967
846
  init(this, options, instance$e, create_fragment$f, safe_not_equal, {
968
- TextType: 11,
847
+ TextType: 10,
969
848
  id: 1,
970
- type: 12,
849
+ type: 11,
971
850
  label: 2,
972
851
  placeholder: 3,
973
852
  error: 4,
974
- htmlError: 5,
975
853
  value: 0,
976
- onFocus: 6,
977
- onBlur: 7,
978
- readonly: 8,
979
- border: 9
854
+ onFocus: 5,
855
+ onBlur: 6,
856
+ readonly: 7,
857
+ border: 8
980
858
  });
981
859
  }
982
860
  }
@@ -4124,15 +4002,16 @@
4124
4002
 
4125
4003
  function get_each_context$1(ctx, list, i) {
4126
4004
  const child_ctx = ctx.slice();
4127
- child_ctx[6] = list[i];
4005
+ child_ctx[6] = list[i].destination;
4006
+ child_ctx[7] = list[i].name;
4128
4007
  return child_ctx;
4129
4008
  }
4130
4009
 
4131
- // (23:2) {#each navigationItems as item}
4010
+ // (19:2) {#each navigationItems as { destination, name }}
4132
4011
  function create_each_block$1(ctx) {
4133
4012
  let li;
4134
4013
  let a;
4135
- let t0_value = /*item*/ ctx[6].name + "";
4014
+ let t0_value = /*name*/ ctx[7] + "";
4136
4015
  let t0;
4137
4016
  let a_href_value;
4138
4017
  let t1;
@@ -4140,7 +4019,7 @@
4140
4019
  let dispose;
4141
4020
 
4142
4021
  function click_handler_1() {
4143
- return /*click_handler_1*/ ctx[4](/*item*/ ctx[6]);
4022
+ return /*click_handler_1*/ ctx[4](/*destination*/ ctx[6]);
4144
4023
  }
4145
4024
 
4146
4025
  return {
@@ -4149,14 +4028,10 @@
4149
4028
  a = element("a");
4150
4029
  t0 = text(t0_value);
4151
4030
  t1 = space();
4152
-
4153
- attr(a, "href", a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4154
- ? /*item*/ ctx[6].hrefOrCallback
4155
- : "#");
4156
-
4157
- attr(a, "class", "svelte-jkys2k");
4158
- attr(li, "class", "account__sidebar__item svelte-jkys2k");
4159
- toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4031
+ attr(a, "href", a_href_value = /*destination*/ ctx[6]);
4032
+ attr(a, "class", "svelte-1rx212l");
4033
+ attr(li, "class", "account__sidebar__item svelte-1rx212l");
4034
+ toggle_class(li, "active", /*active*/ ctx[1] === /*destination*/ ctx[6]);
4160
4035
  },
4161
4036
  m(target, anchor) {
4162
4037
  insert(target, li, anchor);
@@ -4171,16 +4046,14 @@
4171
4046
  },
4172
4047
  p(new_ctx, dirty) {
4173
4048
  ctx = new_ctx;
4174
- if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[6].name + "")) set_data(t0, t0_value);
4049
+ if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*name*/ ctx[7] + "")) set_data(t0, t0_value);
4175
4050
 
4176
- if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4177
- ? /*item*/ ctx[6].hrefOrCallback
4178
- : "#")) {
4051
+ if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = /*destination*/ ctx[6])) {
4179
4052
  attr(a, "href", a_href_value);
4180
4053
  }
4181
4054
 
4182
4055
  if (dirty & /*active, navigationItems*/ 3) {
4183
- toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4056
+ toggle_class(li, "active", /*active*/ ctx[1] === /*destination*/ ctx[6]);
4184
4057
  }
4185
4058
  },
4186
4059
  d(detaching) {
@@ -4220,10 +4093,10 @@
4220
4093
  each_blocks[i].c();
4221
4094
  }
4222
4095
 
4223
- attr(button, "class", "account__sidebar__close svelte-jkys2k");
4224
- attr(ul, "class", "account__sidebar__item_container svelte-jkys2k");
4096
+ attr(button, "class", "account__sidebar__close svelte-1rx212l");
4097
+ attr(ul, "class", "account__sidebar__item_container svelte-1rx212l");
4225
4098
  attr(nav, "data-testid", "sidebar");
4226
- attr(nav, "class", "account__sidebar svelte-jkys2k");
4099
+ attr(nav, "class", "account__sidebar svelte-1rx212l");
4227
4100
  },
4228
4101
  m(target, anchor) {
4229
4102
  insert(target, nav, anchor);
@@ -4292,14 +4165,8 @@
4292
4165
  let active;
4293
4166
  const dispatch = createEventDispatcher();
4294
4167
 
4295
- const handleClickLink = menuItem => {
4296
- $$invalidate(1, active = menuItem.name);
4297
-
4298
- if (typeof menuItem.hrefOrCallback === "function") {
4299
- menuItem.hrefOrCallback();
4300
- return false; // to avoid calling href
4301
- }
4302
-
4168
+ const handleClickLink = destination => {
4169
+ $$invalidate(1, active = destination);
4303
4170
  dispatch("click_link");
4304
4171
  };
4305
4172
 
@@ -4307,7 +4174,7 @@
4307
4174
  bubble($$self, event);
4308
4175
  }
4309
4176
 
4310
- const click_handler_1 = item => handleClickLink(item);
4177
+ const click_handler_1 = destination => handleClickLink(destination);
4311
4178
 
4312
4179
  $$self.$$set = $$props => {
4313
4180
  if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
@@ -4483,13 +4350,13 @@
4483
4350
  t6 = text(/*title*/ ctx[1]);
4484
4351
  t7 = space();
4485
4352
  create_component(sidebar.$$.fragment);
4486
- attr(h10, "class", "svelte-1uu9ytm");
4487
- attr(div0, "class", "account__navigation--mobile__title-container svelte-1uu9ytm");
4488
- attr(button, "class", "account__navigation--mobile__button svelte-1uu9ytm");
4489
- attr(div1, "class", "account__navigation--mobile svelte-1uu9ytm");
4490
- attr(h11, "class", "svelte-1uu9ytm");
4491
- attr(div2, "class", "account__navigation__title-container svelte-1uu9ytm");
4492
- attr(div3, "class", "account__navigation svelte-1uu9ytm");
4353
+ attr(h10, "class", "svelte-1jgfrsf");
4354
+ attr(div0, "class", "account__navigation--mobile__title-container svelte-1jgfrsf");
4355
+ attr(button, "class", "account__navigation--mobile__button svelte-1jgfrsf");
4356
+ attr(div1, "class", "account__navigation--mobile svelte-1jgfrsf");
4357
+ attr(h11, "class", "svelte-1jgfrsf");
4358
+ attr(div2, "class", "account__navigation__title-container svelte-1jgfrsf");
4359
+ attr(div3, "class", "account__navigation svelte-1jgfrsf");
4493
4360
  },
4494
4361
  m(target, anchor) {
4495
4362
  insert(target, div1, anchor);