@iroco/ui 0.15.3 → 0.16.0

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
@@ -497,7 +497,7 @@ class SvelteComponent {
497
497
 
498
498
  /* src/Button.svelte generated by Svelte v3.38.2 */
499
499
 
500
- function create_fragment$h(ctx) {
500
+ function create_fragment$i(ctx) {
501
501
  let button;
502
502
  let button_class_value;
503
503
  let current;
@@ -577,7 +577,7 @@ function create_fragment$h(ctx) {
577
577
  };
578
578
  }
579
579
 
580
- function instance$g($$self, $$props, $$invalidate) {
580
+ function instance$h($$self, $$props, $$invalidate) {
581
581
  let { $$slots: slots = {}, $$scope } = $$props;
582
582
  let { type = "button" } = $$props;
583
583
  let { disabled = false } = $$props;
@@ -625,7 +625,7 @@ class Button extends SvelteComponent {
625
625
  constructor(options) {
626
626
  super();
627
627
 
628
- init(this, options, instance$g, create_fragment$h, safe_not_equal, {
628
+ init(this, options, instance$h, create_fragment$i, safe_not_equal, {
629
629
  type: 1,
630
630
  disabled: 2,
631
631
  kind: 3,
@@ -638,7 +638,7 @@ class Button extends SvelteComponent {
638
638
 
639
639
  /* src/TextInput.svelte generated by Svelte v3.38.2 */
640
640
 
641
- function create_if_block_2(ctx) {
641
+ function create_if_block_2$1(ctx) {
642
642
  let label_1;
643
643
  let t;
644
644
 
@@ -671,8 +671,8 @@ function create_if_block$4(ctx) {
671
671
  let p;
672
672
 
673
673
  function select_block_type(ctx, dirty) {
674
- if (/*htmlError*/ ctx[5]) return create_if_block_1$1;
675
- return create_else_block$1;
674
+ if (/*htmlError*/ ctx[5]) return create_if_block_1$2;
675
+ return create_else_block$2;
676
676
  }
677
677
 
678
678
  let current_block_type = select_block_type(ctx);
@@ -710,7 +710,7 @@ function create_if_block$4(ctx) {
710
710
  }
711
711
 
712
712
  // (45:3) {:else}
713
- function create_else_block$1(ctx) {
713
+ function create_else_block$2(ctx) {
714
714
  let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
715
715
  let t;
716
716
 
@@ -731,7 +731,7 @@ function create_else_block$1(ctx) {
731
731
  }
732
732
 
733
733
  // (43:3) {#if htmlError}
734
- function create_if_block_1$1(ctx) {
734
+ function create_if_block_1$2(ctx) {
735
735
  let html_tag;
736
736
  let raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
737
737
  let html_anchor;
@@ -755,14 +755,14 @@ function create_if_block_1$1(ctx) {
755
755
  };
756
756
  }
757
757
 
758
- function create_fragment$g(ctx) {
758
+ function create_fragment$h(ctx) {
759
759
  let div;
760
760
  let t0;
761
761
  let input;
762
762
  let t1;
763
763
  let mounted;
764
764
  let dispose;
765
- let if_block0 = /*label*/ ctx[2] && create_if_block_2(ctx);
765
+ let if_block0 = /*label*/ ctx[2] && create_if_block_2$1(ctx);
766
766
  let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
767
767
 
768
768
  return {
@@ -815,7 +815,7 @@ function create_fragment$g(ctx) {
815
815
  if (if_block0) {
816
816
  if_block0.p(ctx, dirty);
817
817
  } else {
818
- if_block0 = create_if_block_2(ctx);
818
+ if_block0 = create_if_block_2$1(ctx);
819
819
  if_block0.c();
820
820
  if_block0.m(div, t0);
821
821
  }
@@ -877,7 +877,7 @@ function create_fragment$g(ctx) {
877
877
  };
878
878
  }
879
879
 
880
- function instance$f($$self, $$props, $$invalidate) {
880
+ function instance$g($$self, $$props, $$invalidate) {
881
881
  var { TextType } = $$props;
882
882
 
883
883
  (function (TextType) {
@@ -949,7 +949,7 @@ class TextInput extends SvelteComponent {
949
949
  constructor(options) {
950
950
  super();
951
951
 
952
- init(this, options, instance$f, create_fragment$g, safe_not_equal, {
952
+ init(this, options, instance$g, create_fragment$h, safe_not_equal, {
953
953
  TextType: 11,
954
954
  id: 1,
955
955
  type: 12,
@@ -968,7 +968,7 @@ class TextInput extends SvelteComponent {
968
968
 
969
969
  /* src/RadioButton.svelte generated by Svelte v3.38.2 */
970
970
 
971
- function create_fragment$f(ctx) {
971
+ function create_fragment$g(ctx) {
972
972
  let label_1;
973
973
  let input;
974
974
  let t0;
@@ -1064,7 +1064,7 @@ function create_fragment$f(ctx) {
1064
1064
  };
1065
1065
  }
1066
1066
 
1067
- function instance$e($$self, $$props, $$invalidate) {
1067
+ function instance$f($$self, $$props, $$invalidate) {
1068
1068
  let { $$slots: slots = {}, $$scope } = $$props;
1069
1069
  const label = "";
1070
1070
  let { value } = $$props;
@@ -1115,7 +1115,7 @@ class RadioButton extends SvelteComponent {
1115
1115
  constructor(options) {
1116
1116
  super();
1117
1117
 
1118
- init(this, options, instance$e, create_fragment$f, safe_not_equal, {
1118
+ init(this, options, instance$f, create_fragment$g, safe_not_equal, {
1119
1119
  label: 5,
1120
1120
  value: 2,
1121
1121
  group: 0,
@@ -1131,7 +1131,7 @@ class RadioButton extends SvelteComponent {
1131
1131
 
1132
1132
  /* src/NumberInput.svelte generated by Svelte v3.38.2 */
1133
1133
 
1134
- function create_if_block_1(ctx) {
1134
+ function create_if_block_1$1(ctx) {
1135
1135
  let label_1;
1136
1136
  let t;
1137
1137
 
@@ -1184,14 +1184,14 @@ function create_if_block$3(ctx) {
1184
1184
  };
1185
1185
  }
1186
1186
 
1187
- function create_fragment$e(ctx) {
1187
+ function create_fragment$f(ctx) {
1188
1188
  let div;
1189
1189
  let t0;
1190
1190
  let input;
1191
1191
  let t1;
1192
1192
  let mounted;
1193
1193
  let dispose;
1194
- let if_block0 = /*label*/ ctx[2] && create_if_block_1(ctx);
1194
+ let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
1195
1195
 
1196
1196
  let input_levels = [
1197
1197
  { id: /*id*/ ctx[1] },
@@ -1244,7 +1244,7 @@ function create_fragment$e(ctx) {
1244
1244
  if (if_block0) {
1245
1245
  if_block0.p(ctx, dirty);
1246
1246
  } else {
1247
- if_block0 = create_if_block_1(ctx);
1247
+ if_block0 = create_if_block_1$1(ctx);
1248
1248
  if_block0.c();
1249
1249
  if_block0.m(div, t0);
1250
1250
  }
@@ -1291,7 +1291,7 @@ function create_fragment$e(ctx) {
1291
1291
  };
1292
1292
  }
1293
1293
 
1294
- function instance$d($$self, $$props, $$invalidate) {
1294
+ function instance$e($$self, $$props, $$invalidate) {
1295
1295
  const omit_props_names = ["id","label","placeholder","error","value","min","max"];
1296
1296
  let $$restProps = compute_rest_props($$props, omit_props_names);
1297
1297
  let { id } = $$props;
@@ -1341,7 +1341,7 @@ class NumberInput extends SvelteComponent {
1341
1341
  constructor(options) {
1342
1342
  super();
1343
1343
 
1344
- init(this, options, instance$d, create_fragment$e, safe_not_equal, {
1344
+ init(this, options, instance$e, create_fragment$f, safe_not_equal, {
1345
1345
  id: 1,
1346
1346
  label: 2,
1347
1347
  placeholder: 3,
@@ -3795,7 +3795,7 @@ function create_if_block$2(ctx) {
3795
3795
  };
3796
3796
  }
3797
3797
 
3798
- function create_fragment$d(ctx) {
3798
+ function create_fragment$e(ctx) {
3799
3799
  let if_block_anchor;
3800
3800
  let if_block = /*icon*/ ctx[3] && create_if_block$2(ctx);
3801
3801
 
@@ -3831,7 +3831,7 @@ function create_fragment$d(ctx) {
3831
3831
  };
3832
3832
  }
3833
3833
 
3834
- function instance$c($$self, $$props, $$invalidate) {
3834
+ function instance$d($$self, $$props, $$invalidate) {
3835
3835
  let { name } = $$props;
3836
3836
  let { stroke } = $$props;
3837
3837
  let { strokeWidth } = $$props;
@@ -3865,7 +3865,7 @@ class Icon extends SvelteComponent {
3865
3865
  constructor(options) {
3866
3866
  super();
3867
3867
 
3868
- init(this, options, instance$c, create_fragment$d, safe_not_equal, {
3868
+ init(this, options, instance$d, create_fragment$e, safe_not_equal, {
3869
3869
  name: 4,
3870
3870
  stroke: 5,
3871
3871
  strokeWidth: 6,
@@ -3878,7 +3878,7 @@ class Icon extends SvelteComponent {
3878
3878
 
3879
3879
  /* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
3880
3880
 
3881
- function create_fragment$c(ctx) {
3881
+ function create_fragment$d(ctx) {
3882
3882
  let svg;
3883
3883
  let path0;
3884
3884
  let path1;
@@ -3920,7 +3920,7 @@ function create_fragment$c(ctx) {
3920
3920
  };
3921
3921
  }
3922
3922
 
3923
- function instance$b($$self, $$props, $$invalidate) {
3923
+ function instance$c($$self, $$props, $$invalidate) {
3924
3924
  let { width = "5rem" } = $$props;
3925
3925
  let { height = "5rem" } = $$props;
3926
3926
 
@@ -3935,13 +3935,13 @@ function instance$b($$self, $$props, $$invalidate) {
3935
3935
  class IconIrocoLogo extends SvelteComponent {
3936
3936
  constructor(options) {
3937
3937
  super();
3938
- init(this, options, instance$b, create_fragment$c, safe_not_equal, { width: 0, height: 1 });
3938
+ init(this, options, instance$c, create_fragment$d, safe_not_equal, { width: 0, height: 1 });
3939
3939
  }
3940
3940
  }
3941
3941
 
3942
3942
  /* src/Loader.svelte generated by Svelte v3.38.2 */
3943
3943
 
3944
- function create_fragment$b(ctx) {
3944
+ function create_fragment$c(ctx) {
3945
3945
  let div;
3946
3946
  let iconirocologo;
3947
3947
  let current;
@@ -3978,13 +3978,13 @@ function create_fragment$b(ctx) {
3978
3978
  class Loader extends SvelteComponent {
3979
3979
  constructor(options) {
3980
3980
  super();
3981
- init(this, options, null, create_fragment$b, safe_not_equal, {});
3981
+ init(this, options, null, create_fragment$c, safe_not_equal, {});
3982
3982
  }
3983
3983
  }
3984
3984
 
3985
3985
  /* src/IconInfo.svelte generated by Svelte v3.38.2 */
3986
3986
 
3987
- function create_fragment$a(ctx) {
3987
+ function create_fragment$b(ctx) {
3988
3988
  let svg;
3989
3989
  let path;
3990
3990
 
@@ -4025,7 +4025,7 @@ function create_fragment$a(ctx) {
4025
4025
  };
4026
4026
  }
4027
4027
 
4028
- function instance$a($$self, $$props, $$invalidate) {
4028
+ function instance$b($$self, $$props, $$invalidate) {
4029
4029
  let { width = "5rem" } = $$props;
4030
4030
  let { height = "5rem" } = $$props;
4031
4031
 
@@ -4040,13 +4040,13 @@ function instance$a($$self, $$props, $$invalidate) {
4040
4040
  class IconInfo extends SvelteComponent {
4041
4041
  constructor(options) {
4042
4042
  super();
4043
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { width: 0, height: 1 });
4043
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, { width: 0, height: 1 });
4044
4044
  }
4045
4045
  }
4046
4046
 
4047
4047
  /* src/IconMastodon.svelte generated by Svelte v3.38.2 */
4048
4048
 
4049
- function create_fragment$9(ctx) {
4049
+ function create_fragment$a(ctx) {
4050
4050
  let svg;
4051
4051
  let title;
4052
4052
  let t;
@@ -4094,7 +4094,7 @@ function create_fragment$9(ctx) {
4094
4094
  };
4095
4095
  }
4096
4096
 
4097
- function instance$9($$self, $$props, $$invalidate) {
4097
+ function instance$a($$self, $$props, $$invalidate) {
4098
4098
  let { width = "5em" } = $$props;
4099
4099
  let { height = "5em" } = $$props;
4100
4100
  let { fill = "currentColor" } = $$props;
@@ -4111,13 +4111,13 @@ function instance$9($$self, $$props, $$invalidate) {
4111
4111
  class IconMastodon extends SvelteComponent {
4112
4112
  constructor(options) {
4113
4113
  super();
4114
- init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1, fill: 2 });
4114
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, { width: 0, height: 1, fill: 2 });
4115
4115
  }
4116
4116
  }
4117
4117
 
4118
4118
  /* src/IconClose.svelte generated by Svelte v3.38.2 */
4119
4119
 
4120
- function create_fragment$8(ctx) {
4120
+ function create_fragment$9(ctx) {
4121
4121
  let svg;
4122
4122
  let path;
4123
4123
 
@@ -4157,7 +4157,7 @@ function create_fragment$8(ctx) {
4157
4157
  };
4158
4158
  }
4159
4159
 
4160
- function instance$8($$self, $$props, $$invalidate) {
4160
+ function instance$9($$self, $$props, $$invalidate) {
4161
4161
  let { width = "5rem" } = $$props;
4162
4162
  let { height = "5rem" } = $$props;
4163
4163
 
@@ -4172,7 +4172,7 @@ function instance$8($$self, $$props, $$invalidate) {
4172
4172
  class IconClose extends SvelteComponent {
4173
4173
  constructor(options) {
4174
4174
  super();
4175
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { width: 0, height: 1 });
4175
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1 });
4176
4176
  }
4177
4177
  }
4178
4178
 
@@ -4252,7 +4252,7 @@ function create_each_block$1(ctx) {
4252
4252
  };
4253
4253
  }
4254
4254
 
4255
- function create_fragment$7(ctx) {
4255
+ function create_fragment$8(ctx) {
4256
4256
  let nav;
4257
4257
  let button;
4258
4258
  let iconclose;
@@ -4366,7 +4366,7 @@ function create_fragment$7(ctx) {
4366
4366
  };
4367
4367
  }
4368
4368
 
4369
- function instance$7($$self, $$props, $$invalidate) {
4369
+ function instance$8($$self, $$props, $$invalidate) {
4370
4370
 
4371
4371
  let { navigationItems } = $$props;
4372
4372
  let { type } = $$props;
@@ -4401,13 +4401,13 @@ function instance$7($$self, $$props, $$invalidate) {
4401
4401
  class NavBar extends SvelteComponent {
4402
4402
  constructor(options) {
4403
4403
  super();
4404
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0, type: 1 });
4404
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { navigationItems: 0, type: 1 });
4405
4405
  }
4406
4406
  }
4407
4407
 
4408
4408
  /* src/IconBurger.svelte generated by Svelte v3.38.2 */
4409
4409
 
4410
- function create_fragment$6(ctx) {
4410
+ function create_fragment$7(ctx) {
4411
4411
  let svg;
4412
4412
  let path;
4413
4413
 
@@ -4447,7 +4447,7 @@ function create_fragment$6(ctx) {
4447
4447
  };
4448
4448
  }
4449
4449
 
4450
- function instance$6($$self, $$props, $$invalidate) {
4450
+ function instance$7($$self, $$props, $$invalidate) {
4451
4451
  let { width = "5rem" } = $$props;
4452
4452
  let { height = "5rem" } = $$props;
4453
4453
 
@@ -4460,6 +4460,110 @@ function instance$6($$self, $$props, $$invalidate) {
4460
4460
  }
4461
4461
 
4462
4462
  class IconBurger extends SvelteComponent {
4463
+ constructor(options) {
4464
+ super();
4465
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { width: 0, height: 1 });
4466
+ }
4467
+ }
4468
+
4469
+ /* src/IrocoLogo.svelte generated by Svelte v3.38.2 */
4470
+
4471
+ function create_fragment$6(ctx) {
4472
+ let a;
4473
+ let svg;
4474
+ let title;
4475
+ let t;
4476
+ let path0;
4477
+ let path1;
4478
+ let path2;
4479
+ let path3;
4480
+ let path4;
4481
+ let path5;
4482
+ let path6;
4483
+
4484
+ return {
4485
+ c() {
4486
+ a = element("a");
4487
+ svg = svg_element("svg");
4488
+ title = svg_element("title");
4489
+ t = text("Iroco");
4490
+ path0 = svg_element("path");
4491
+ path1 = svg_element("path");
4492
+ path2 = svg_element("path");
4493
+ path3 = svg_element("path");
4494
+ path4 = svg_element("path");
4495
+ path5 = svg_element("path");
4496
+ path6 = svg_element("path");
4497
+ attr(path0, "fill", "white");
4498
+ attr(path0, "d", "M412,81.41c-7.34,0-12.07-5.19-12.07-12.37S404.77,56.66,412,56.66,424.17,61.85,424.17,69,419.13,81.41,412,81.41Zm10.7,118.4H401V103.54h21.7Z");
4499
+ attr(path0, "transform", "translate(-0.44 -0.49)");
4500
+ attr(path1, "fill", "white");
4501
+ attr(path1, "d", "M505.77,123.71h-6.72c-18,0-27.2,8.26-27.2,28.43v47.67h-21.7V103.54h21.7v14.21h.3c5.5-9.32,15.44-15.28,28.43-15.28h5.19Z");
4502
+ attr(path1, "transform", "translate(-0.44 -0.49)");
4503
+ attr(path2, "fill", "white");
4504
+ attr(path2, "d", "M566.44,201.34c-33,0-49.21-21.54-49.21-49.66S533.43,102,566.44,102s49.35,21.39,49.35,49.66C615.79,179.64,599.29,201.34,566.44,201.34Zm0-80.22c-19.26,0-27.51,12.68-27.51,30.56,0,17.72,8.4,30.56,27.66,30.56s27.5-12.68,27.5-30.56S585.69,121.12,566.44,121.12Z");
4505
+ attr(path2, "transform", "translate(-0.44 -0.49)");
4506
+ attr(path3, "fill", "white");
4507
+ attr(path3, "d", "M721.23,186.52c-11.77,10.7-24.45,14.82-39.12,14.82-33.62,0-49.51-21.54-49.51-48.9,0-28.11,17.88-50.42,49.81-50.42,15.9,0,28,4.27,38.51,14.21L706.1,131.05c-6.88-6.72-14.21-9.93-23.53-9.93-18.8.15-28.27,13.9-28.27,31.32,0,16.66,8.1,29.8,28,29.8,9.17,0,16.35-2.9,24.3-10.54Z");
4508
+ attr(path3, "transform", "translate(-0.44 -0.49)");
4509
+ attr(path4, "fill", "white");
4510
+ attr(path4, "d", "M783.42,201.34c-33,0-49.21-21.54-49.21-49.66S750.41,102,783.42,102s49.35,21.39,49.35,49.66C832.77,179.64,816.27,201.34,783.42,201.34Zm0-80.22c-19.26,0-27.51,12.68-27.51,30.56,0,17.72,8.41,30.56,27.66,30.56s27.5-12.68,27.5-30.56S802.67,121.12,783.42,121.12Z");
4511
+ attr(path4, "transform", "translate(-0.44 -0.49)");
4512
+ attr(path5, "fill", "white");
4513
+ attr(path5, "d", "M122.8,144.26a30.6,30.6,0,0,0-8.07,1.23,5.53,5.53,0,0,0-3.46,3.53,28,28,0,0,0-.92,8.46v76.24a28,28,0,0,0,.92,8.46,5.53,5.53,0,0,0,3.46,3.53,30.18,30.18,0,0,0,8.07,1.23V250q-7.06-.45-19.52-.46-13.22,0-19.67.46v-3.07a30.33,30.33,0,0,0,8.07-1.23,5.49,5.49,0,0,0,3.45-3.53,27.59,27.59,0,0,0,.93-8.46V157.48a27.59,27.59,0,0,0-.93-8.46,5.49,5.49,0,0,0-3.45-3.53,30.75,30.75,0,0,0-8.07-1.23v-3.08q6.45.47,19.67.47,12.3,0,19.52-.47Z");
4514
+ attr(path5, "transform", "translate(-0.44 -0.49)");
4515
+ attr(path6, "fill", "#00D692");
4516
+ attr(path6, "d", "M64.64,198.52a102.78,102.78,0,1,1,77.13,0l-7.41-18.29a83,83,0,1,0-62.31,0Z");
4517
+ attr(path6, "transform", "translate(-0.44 -0.49)");
4518
+ attr(svg, "viewBox", "0 0 832.33 249.52");
4519
+ attr(svg, "width", /*width*/ ctx[0]);
4520
+ attr(svg, "height", /*height*/ ctx[1]);
4521
+ attr(a, "class", "iroco-logo");
4522
+ attr(a, "href", "/");
4523
+ },
4524
+ m(target, anchor) {
4525
+ insert(target, a, anchor);
4526
+ append(a, svg);
4527
+ append(svg, title);
4528
+ append(title, t);
4529
+ append(svg, path0);
4530
+ append(svg, path1);
4531
+ append(svg, path2);
4532
+ append(svg, path3);
4533
+ append(svg, path4);
4534
+ append(svg, path5);
4535
+ append(svg, path6);
4536
+ },
4537
+ p(ctx, [dirty]) {
4538
+ if (dirty & /*width*/ 1) {
4539
+ attr(svg, "width", /*width*/ ctx[0]);
4540
+ }
4541
+
4542
+ if (dirty & /*height*/ 2) {
4543
+ attr(svg, "height", /*height*/ ctx[1]);
4544
+ }
4545
+ },
4546
+ i: noop,
4547
+ o: noop,
4548
+ d(detaching) {
4549
+ if (detaching) detach(a);
4550
+ }
4551
+ };
4552
+ }
4553
+
4554
+ function instance$6($$self, $$props, $$invalidate) {
4555
+ let { width = "10rem" } = $$props;
4556
+ let { height = "10rem" } = $$props;
4557
+
4558
+ $$self.$$set = $$props => {
4559
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
4560
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
4561
+ };
4562
+
4563
+ return [width, height];
4564
+ }
4565
+
4566
+ class IrocoLogo extends SvelteComponent {
4463
4567
  constructor(options) {
4464
4568
  super();
4465
4569
  init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
@@ -4468,7 +4572,81 @@ class IconBurger extends SvelteComponent {
4468
4572
 
4469
4573
  /* src/Navigation.svelte generated by Svelte v3.38.2 */
4470
4574
 
4471
- function create_if_block$1(ctx) {
4575
+ function create_else_block_1(ctx) {
4576
+ let iconirocologo;
4577
+ let t0;
4578
+ let h1;
4579
+ let t1;
4580
+ let current;
4581
+ iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4582
+
4583
+ return {
4584
+ c() {
4585
+ create_component(iconirocologo.$$.fragment);
4586
+ t0 = space();
4587
+ h1 = element("h1");
4588
+ t1 = text(/*title*/ ctx[2]);
4589
+ attr(h1, "class", "svelte-lqwgm1");
4590
+ },
4591
+ m(target, anchor) {
4592
+ mount_component(iconirocologo, target, anchor);
4593
+ insert(target, t0, anchor);
4594
+ insert(target, h1, anchor);
4595
+ append(h1, t1);
4596
+ current = true;
4597
+ },
4598
+ p(ctx, dirty) {
4599
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4600
+ },
4601
+ i(local) {
4602
+ if (current) return;
4603
+ transition_in(iconirocologo.$$.fragment, local);
4604
+ current = true;
4605
+ },
4606
+ o(local) {
4607
+ transition_out(iconirocologo.$$.fragment, local);
4608
+ current = false;
4609
+ },
4610
+ d(detaching) {
4611
+ destroy_component(iconirocologo, detaching);
4612
+ if (detaching) detach(t0);
4613
+ if (detaching) detach(h1);
4614
+ }
4615
+ };
4616
+ }
4617
+
4618
+ // (14:2) {#if title == null}
4619
+ function create_if_block_2(ctx) {
4620
+ let irocologo;
4621
+ let current;
4622
+ irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
4623
+
4624
+ return {
4625
+ c() {
4626
+ create_component(irocologo.$$.fragment);
4627
+ },
4628
+ m(target, anchor) {
4629
+ mount_component(irocologo, target, anchor);
4630
+ current = true;
4631
+ },
4632
+ p: noop,
4633
+ i(local) {
4634
+ if (current) return;
4635
+ transition_in(irocologo.$$.fragment, local);
4636
+ current = true;
4637
+ },
4638
+ o(local) {
4639
+ transition_out(irocologo.$$.fragment, local);
4640
+ current = false;
4641
+ },
4642
+ d(detaching) {
4643
+ destroy_component(irocologo, detaching);
4644
+ }
4645
+ };
4646
+ }
4647
+
4648
+ // (26:1) {#if showMenu}
4649
+ function create_if_block_1(ctx) {
4472
4650
  let navbar;
4473
4651
  let current;
4474
4652
 
@@ -4511,33 +4689,121 @@ function create_if_block$1(ctx) {
4511
4689
  };
4512
4690
  }
4513
4691
 
4692
+ // (40:2) {:else}
4693
+ function create_else_block$1(ctx) {
4694
+ let iconirocologo;
4695
+ let t0;
4696
+ let h1;
4697
+ let t1;
4698
+ let current;
4699
+ iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4700
+
4701
+ return {
4702
+ c() {
4703
+ create_component(iconirocologo.$$.fragment);
4704
+ t0 = space();
4705
+ h1 = element("h1");
4706
+ t1 = text(/*title*/ ctx[2]);
4707
+ attr(h1, "class", "svelte-lqwgm1");
4708
+ },
4709
+ m(target, anchor) {
4710
+ mount_component(iconirocologo, target, anchor);
4711
+ insert(target, t0, anchor);
4712
+ insert(target, h1, anchor);
4713
+ append(h1, t1);
4714
+ current = true;
4715
+ },
4716
+ p(ctx, dirty) {
4717
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4718
+ },
4719
+ i(local) {
4720
+ if (current) return;
4721
+ transition_in(iconirocologo.$$.fragment, local);
4722
+ current = true;
4723
+ },
4724
+ o(local) {
4725
+ transition_out(iconirocologo.$$.fragment, local);
4726
+ current = false;
4727
+ },
4728
+ d(detaching) {
4729
+ destroy_component(iconirocologo, detaching);
4730
+ if (detaching) detach(t0);
4731
+ if (detaching) detach(h1);
4732
+ }
4733
+ };
4734
+ }
4735
+
4736
+ // (38:2) {#if title == null}
4737
+ function create_if_block$1(ctx) {
4738
+ let irocologo;
4739
+ let current;
4740
+ irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
4741
+
4742
+ return {
4743
+ c() {
4744
+ create_component(irocologo.$$.fragment);
4745
+ },
4746
+ m(target, anchor) {
4747
+ mount_component(irocologo, target, anchor);
4748
+ current = true;
4749
+ },
4750
+ p: noop,
4751
+ i(local) {
4752
+ if (current) return;
4753
+ transition_in(irocologo.$$.fragment, local);
4754
+ current = true;
4755
+ },
4756
+ o(local) {
4757
+ transition_out(irocologo.$$.fragment, local);
4758
+ current = false;
4759
+ },
4760
+ d(detaching) {
4761
+ destroy_component(irocologo, detaching);
4762
+ }
4763
+ };
4764
+ }
4765
+
4514
4766
  function create_fragment$5(ctx) {
4515
4767
  let div1;
4516
4768
  let div0;
4517
- let iconirocologo0;
4769
+ let current_block_type_index;
4770
+ let if_block0;
4518
4771
  let t0;
4519
- let h10;
4520
- let t1;
4521
- let t2;
4522
4772
  let button;
4523
4773
  let iconburger;
4524
- let t3;
4525
- let t4;
4774
+ let t1;
4775
+ let t2;
4526
4776
  let div3;
4527
4777
  let div2;
4528
- let iconirocologo1;
4529
- let t5;
4530
- let h11;
4531
- let t6;
4532
- let t7;
4778
+ let current_block_type_index_1;
4779
+ let if_block2;
4780
+ let t3;
4533
4781
  let navbar;
4534
4782
  let current;
4535
4783
  let mounted;
4536
4784
  let dispose;
4537
- iconirocologo0 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4785
+ const if_block_creators = [create_if_block_2, create_else_block_1];
4786
+ const if_blocks = [];
4787
+
4788
+ function select_block_type(ctx, dirty) {
4789
+ if (/*title*/ ctx[2] == null) return 0;
4790
+ return 1;
4791
+ }
4792
+
4793
+ current_block_type_index = select_block_type(ctx);
4794
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4538
4795
  iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
4539
- let if_block = /*showMenu*/ ctx[3] && create_if_block$1(ctx);
4540
- iconirocologo1 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4796
+ let if_block1 = /*showMenu*/ ctx[3] && create_if_block_1(ctx);
4797
+ const if_block_creators_1 = [create_if_block$1, create_else_block$1];
4798
+ const if_blocks_1 = [];
4799
+
4800
+ function select_block_type_1(ctx, dirty) {
4801
+ if (/*title*/ ctx[2] == null) return 0;
4802
+ return 1;
4803
+ }
4804
+
4805
+ current_block_type_index_1 = select_block_type_1(ctx);
4806
+ if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
4541
4807
 
4542
4808
  navbar = new NavBar({
4543
4809
  props: {
@@ -4550,52 +4816,38 @@ function create_fragment$5(ctx) {
4550
4816
  c() {
4551
4817
  div1 = element("div");
4552
4818
  div0 = element("div");
4553
- create_component(iconirocologo0.$$.fragment);
4819
+ if_block0.c();
4554
4820
  t0 = space();
4555
- h10 = element("h1");
4556
- t1 = text(/*title*/ ctx[2]);
4557
- t2 = space();
4558
4821
  button = element("button");
4559
4822
  create_component(iconburger.$$.fragment);
4560
- t3 = space();
4561
- if (if_block) if_block.c();
4562
- t4 = space();
4823
+ t1 = space();
4824
+ if (if_block1) if_block1.c();
4825
+ t2 = space();
4563
4826
  div3 = element("div");
4564
4827
  div2 = element("div");
4565
- create_component(iconirocologo1.$$.fragment);
4566
- t5 = space();
4567
- h11 = element("h1");
4568
- t6 = text(/*title*/ ctx[2]);
4569
- t7 = space();
4828
+ if_block2.c();
4829
+ t3 = space();
4570
4830
  create_component(navbar.$$.fragment);
4571
- attr(h10, "class", "svelte-lqwgm1");
4572
4831
  attr(div0, "class", "navigation--mobile__title-container svelte-lqwgm1");
4573
4832
  attr(button, "class", "navigation--mobile__button svelte-lqwgm1");
4574
4833
  attr(div1, "class", "navigation--mobile svelte-lqwgm1");
4575
- attr(h11, "class", "svelte-lqwgm1");
4576
4834
  attr(div2, "class", "navigation__title-container svelte-lqwgm1");
4577
4835
  attr(div3, "class", "navigation svelte-lqwgm1");
4578
4836
  },
4579
4837
  m(target, anchor) {
4580
4838
  insert(target, div1, anchor);
4581
4839
  append(div1, div0);
4582
- mount_component(iconirocologo0, div0, null);
4583
- append(div0, t0);
4584
- append(div0, h10);
4585
- append(h10, t1);
4586
- append(div1, t2);
4840
+ if_blocks[current_block_type_index].m(div0, null);
4841
+ append(div1, t0);
4587
4842
  append(div1, button);
4588
4843
  mount_component(iconburger, button, null);
4589
- append(div1, t3);
4590
- if (if_block) if_block.m(div1, null);
4591
- insert(target, t4, anchor);
4844
+ append(div1, t1);
4845
+ if (if_block1) if_block1.m(div1, null);
4846
+ insert(target, t2, anchor);
4592
4847
  insert(target, div3, anchor);
4593
4848
  append(div3, div2);
4594
- mount_component(iconirocologo1, div2, null);
4595
- append(div2, t5);
4596
- append(div2, h11);
4597
- append(h11, t6);
4598
- append(div3, t7);
4849
+ if_blocks_1[current_block_type_index_1].m(div2, null);
4850
+ append(div3, t3);
4599
4851
  mount_component(navbar, div3, null);
4600
4852
  current = true;
4601
4853
 
@@ -4605,32 +4857,81 @@ function create_fragment$5(ctx) {
4605
4857
  }
4606
4858
  },
4607
4859
  p(ctx, [dirty]) {
4608
- if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4860
+ let previous_block_index = current_block_type_index;
4861
+ current_block_type_index = select_block_type(ctx);
4862
+
4863
+ if (current_block_type_index === previous_block_index) {
4864
+ if_blocks[current_block_type_index].p(ctx, dirty);
4865
+ } else {
4866
+ group_outros();
4867
+
4868
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
4869
+ if_blocks[previous_block_index] = null;
4870
+ });
4871
+
4872
+ check_outros();
4873
+ if_block0 = if_blocks[current_block_type_index];
4874
+
4875
+ if (!if_block0) {
4876
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4877
+ if_block0.c();
4878
+ } else {
4879
+ if_block0.p(ctx, dirty);
4880
+ }
4881
+
4882
+ transition_in(if_block0, 1);
4883
+ if_block0.m(div0, null);
4884
+ }
4609
4885
 
4610
4886
  if (/*showMenu*/ ctx[3]) {
4611
- if (if_block) {
4612
- if_block.p(ctx, dirty);
4887
+ if (if_block1) {
4888
+ if_block1.p(ctx, dirty);
4613
4889
 
4614
4890
  if (dirty & /*showMenu*/ 8) {
4615
- transition_in(if_block, 1);
4891
+ transition_in(if_block1, 1);
4616
4892
  }
4617
4893
  } else {
4618
- if_block = create_if_block$1(ctx);
4619
- if_block.c();
4620
- transition_in(if_block, 1);
4621
- if_block.m(div1, null);
4894
+ if_block1 = create_if_block_1(ctx);
4895
+ if_block1.c();
4896
+ transition_in(if_block1, 1);
4897
+ if_block1.m(div1, null);
4622
4898
  }
4623
- } else if (if_block) {
4899
+ } else if (if_block1) {
4900
+ group_outros();
4901
+
4902
+ transition_out(if_block1, 1, 1, () => {
4903
+ if_block1 = null;
4904
+ });
4905
+
4906
+ check_outros();
4907
+ }
4908
+
4909
+ let previous_block_index_1 = current_block_type_index_1;
4910
+ current_block_type_index_1 = select_block_type_1(ctx);
4911
+
4912
+ if (current_block_type_index_1 === previous_block_index_1) {
4913
+ if_blocks_1[current_block_type_index_1].p(ctx, dirty);
4914
+ } else {
4624
4915
  group_outros();
4625
4916
 
4626
- transition_out(if_block, 1, 1, () => {
4627
- if_block = null;
4917
+ transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
4918
+ if_blocks_1[previous_block_index_1] = null;
4628
4919
  });
4629
4920
 
4630
4921
  check_outros();
4922
+ if_block2 = if_blocks_1[current_block_type_index_1];
4923
+
4924
+ if (!if_block2) {
4925
+ if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
4926
+ if_block2.c();
4927
+ } else {
4928
+ if_block2.p(ctx, dirty);
4929
+ }
4930
+
4931
+ transition_in(if_block2, 1);
4932
+ if_block2.m(div2, null);
4631
4933
  }
4632
4934
 
4633
- if (!current || dirty & /*title*/ 4) set_data(t6, /*title*/ ctx[2]);
4634
4935
  const navbar_changes = {};
4635
4936
  if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
4636
4937
  if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
@@ -4638,29 +4939,29 @@ function create_fragment$5(ctx) {
4638
4939
  },
4639
4940
  i(local) {
4640
4941
  if (current) return;
4641
- transition_in(iconirocologo0.$$.fragment, local);
4942
+ transition_in(if_block0);
4642
4943
  transition_in(iconburger.$$.fragment, local);
4643
- transition_in(if_block);
4644
- transition_in(iconirocologo1.$$.fragment, local);
4944
+ transition_in(if_block1);
4945
+ transition_in(if_block2);
4645
4946
  transition_in(navbar.$$.fragment, local);
4646
4947
  current = true;
4647
4948
  },
4648
4949
  o(local) {
4649
- transition_out(iconirocologo0.$$.fragment, local);
4950
+ transition_out(if_block0);
4650
4951
  transition_out(iconburger.$$.fragment, local);
4651
- transition_out(if_block);
4652
- transition_out(iconirocologo1.$$.fragment, local);
4952
+ transition_out(if_block1);
4953
+ transition_out(if_block2);
4653
4954
  transition_out(navbar.$$.fragment, local);
4654
4955
  current = false;
4655
4956
  },
4656
4957
  d(detaching) {
4657
4958
  if (detaching) detach(div1);
4658
- destroy_component(iconirocologo0);
4959
+ if_blocks[current_block_type_index].d();
4659
4960
  destroy_component(iconburger);
4660
- if (if_block) if_block.d();
4661
- if (detaching) detach(t4);
4961
+ if (if_block1) if_block1.d();
4962
+ if (detaching) detach(t2);
4662
4963
  if (detaching) detach(div3);
4663
- destroy_component(iconirocologo1);
4964
+ if_blocks_1[current_block_type_index_1].d();
4664
4965
  destroy_component(navbar);
4665
4966
  mounted = false;
4666
4967
  dispose();
@@ -4672,7 +4973,7 @@ function instance$5($$self, $$props, $$invalidate) {
4672
4973
 
4673
4974
  let { navigationItems } = $$props;
4674
4975
  let { type = "topbar" } = $$props;
4675
- let { title } = $$props;
4976
+ let { title = null } = $$props;
4676
4977
  let showMenu = false;
4677
4978
  const click_handler = () => $$invalidate(3, showMenu = true);
4678
4979
  const click_link_handler = () => $$invalidate(3, showMenu = false);
@@ -5431,4 +5732,4 @@ class Alert extends SvelteComponent {
5431
5732
  }
5432
5733
  }
5433
5734
 
5434
- export { Alert, Button, DataTable, Icon, IconFloppyDisk, IconInfo, IconIrocoLogo, IconMastodon, IconMoreSign as IconMore, IconTrashCan, Loader, NavBar, Navigation, NumberInput, RadioButton, TextInput };
5735
+ export { Alert, Button, DataTable, Icon, IconFloppyDisk, IconInfo, IconIrocoLogo, IconMastodon, IconMoreSign as IconMore, IconTrashCan, IrocoLogo, Loader, NavBar, Navigation, NumberInput, RadioButton, TextInput };