@iroco/ui 0.15.1 → 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.js CHANGED
@@ -503,7 +503,7 @@
503
503
 
504
504
  /* src/Button.svelte generated by Svelte v3.38.2 */
505
505
 
506
- function create_fragment$h(ctx) {
506
+ function create_fragment$i(ctx) {
507
507
  let button;
508
508
  let button_class_value;
509
509
  let current;
@@ -583,7 +583,7 @@
583
583
  };
584
584
  }
585
585
 
586
- function instance$g($$self, $$props, $$invalidate) {
586
+ function instance$h($$self, $$props, $$invalidate) {
587
587
  let { $$slots: slots = {}, $$scope } = $$props;
588
588
  let { type = "button" } = $$props;
589
589
  let { disabled = false } = $$props;
@@ -631,7 +631,7 @@
631
631
  constructor(options) {
632
632
  super();
633
633
 
634
- init(this, options, instance$g, create_fragment$h, safe_not_equal, {
634
+ init(this, options, instance$h, create_fragment$i, safe_not_equal, {
635
635
  type: 1,
636
636
  disabled: 2,
637
637
  kind: 3,
@@ -644,7 +644,7 @@
644
644
 
645
645
  /* src/TextInput.svelte generated by Svelte v3.38.2 */
646
646
 
647
- function create_if_block_2(ctx) {
647
+ function create_if_block_2$1(ctx) {
648
648
  let label_1;
649
649
  let t;
650
650
 
@@ -677,8 +677,8 @@
677
677
  let p;
678
678
 
679
679
  function select_block_type(ctx, dirty) {
680
- if (/*htmlError*/ ctx[5]) return create_if_block_1$1;
681
- return create_else_block$1;
680
+ if (/*htmlError*/ ctx[5]) return create_if_block_1$2;
681
+ return create_else_block$2;
682
682
  }
683
683
 
684
684
  let current_block_type = select_block_type(ctx);
@@ -716,7 +716,7 @@
716
716
  }
717
717
 
718
718
  // (45:3) {:else}
719
- function create_else_block$1(ctx) {
719
+ function create_else_block$2(ctx) {
720
720
  let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
721
721
  let t;
722
722
 
@@ -737,7 +737,7 @@
737
737
  }
738
738
 
739
739
  // (43:3) {#if htmlError}
740
- function create_if_block_1$1(ctx) {
740
+ function create_if_block_1$2(ctx) {
741
741
  let html_tag;
742
742
  let raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
743
743
  let html_anchor;
@@ -761,14 +761,14 @@
761
761
  };
762
762
  }
763
763
 
764
- function create_fragment$g(ctx) {
764
+ function create_fragment$h(ctx) {
765
765
  let div;
766
766
  let t0;
767
767
  let input;
768
768
  let t1;
769
769
  let mounted;
770
770
  let dispose;
771
- let if_block0 = /*label*/ ctx[2] && create_if_block_2(ctx);
771
+ let if_block0 = /*label*/ ctx[2] && create_if_block_2$1(ctx);
772
772
  let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
773
773
 
774
774
  return {
@@ -821,7 +821,7 @@
821
821
  if (if_block0) {
822
822
  if_block0.p(ctx, dirty);
823
823
  } else {
824
- if_block0 = create_if_block_2(ctx);
824
+ if_block0 = create_if_block_2$1(ctx);
825
825
  if_block0.c();
826
826
  if_block0.m(div, t0);
827
827
  }
@@ -883,7 +883,7 @@
883
883
  };
884
884
  }
885
885
 
886
- function instance$f($$self, $$props, $$invalidate) {
886
+ function instance$g($$self, $$props, $$invalidate) {
887
887
  var { TextType } = $$props;
888
888
 
889
889
  (function (TextType) {
@@ -955,7 +955,7 @@
955
955
  constructor(options) {
956
956
  super();
957
957
 
958
- init(this, options, instance$f, create_fragment$g, safe_not_equal, {
958
+ init(this, options, instance$g, create_fragment$h, safe_not_equal, {
959
959
  TextType: 11,
960
960
  id: 1,
961
961
  type: 12,
@@ -974,7 +974,7 @@
974
974
 
975
975
  /* src/RadioButton.svelte generated by Svelte v3.38.2 */
976
976
 
977
- function create_fragment$f(ctx) {
977
+ function create_fragment$g(ctx) {
978
978
  let label_1;
979
979
  let input;
980
980
  let t0;
@@ -1070,7 +1070,7 @@
1070
1070
  };
1071
1071
  }
1072
1072
 
1073
- function instance$e($$self, $$props, $$invalidate) {
1073
+ function instance$f($$self, $$props, $$invalidate) {
1074
1074
  let { $$slots: slots = {}, $$scope } = $$props;
1075
1075
  const label = "";
1076
1076
  let { value } = $$props;
@@ -1121,7 +1121,7 @@
1121
1121
  constructor(options) {
1122
1122
  super();
1123
1123
 
1124
- init(this, options, instance$e, create_fragment$f, safe_not_equal, {
1124
+ init(this, options, instance$f, create_fragment$g, safe_not_equal, {
1125
1125
  label: 5,
1126
1126
  value: 2,
1127
1127
  group: 0,
@@ -1137,7 +1137,7 @@
1137
1137
 
1138
1138
  /* src/NumberInput.svelte generated by Svelte v3.38.2 */
1139
1139
 
1140
- function create_if_block_1(ctx) {
1140
+ function create_if_block_1$1(ctx) {
1141
1141
  let label_1;
1142
1142
  let t;
1143
1143
 
@@ -1190,14 +1190,14 @@
1190
1190
  };
1191
1191
  }
1192
1192
 
1193
- function create_fragment$e(ctx) {
1193
+ function create_fragment$f(ctx) {
1194
1194
  let div;
1195
1195
  let t0;
1196
1196
  let input;
1197
1197
  let t1;
1198
1198
  let mounted;
1199
1199
  let dispose;
1200
- let if_block0 = /*label*/ ctx[2] && create_if_block_1(ctx);
1200
+ let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
1201
1201
 
1202
1202
  let input_levels = [
1203
1203
  { id: /*id*/ ctx[1] },
@@ -1250,7 +1250,7 @@
1250
1250
  if (if_block0) {
1251
1251
  if_block0.p(ctx, dirty);
1252
1252
  } else {
1253
- if_block0 = create_if_block_1(ctx);
1253
+ if_block0 = create_if_block_1$1(ctx);
1254
1254
  if_block0.c();
1255
1255
  if_block0.m(div, t0);
1256
1256
  }
@@ -1297,7 +1297,7 @@
1297
1297
  };
1298
1298
  }
1299
1299
 
1300
- function instance$d($$self, $$props, $$invalidate) {
1300
+ function instance$e($$self, $$props, $$invalidate) {
1301
1301
  const omit_props_names = ["id","label","placeholder","error","value","min","max"];
1302
1302
  let $$restProps = compute_rest_props($$props, omit_props_names);
1303
1303
  let { id } = $$props;
@@ -1347,7 +1347,7 @@
1347
1347
  constructor(options) {
1348
1348
  super();
1349
1349
 
1350
- init(this, options, instance$d, create_fragment$e, safe_not_equal, {
1350
+ init(this, options, instance$e, create_fragment$f, safe_not_equal, {
1351
1351
  id: 1,
1352
1352
  label: 2,
1353
1353
  placeholder: 3,
@@ -3801,7 +3801,7 @@
3801
3801
  };
3802
3802
  }
3803
3803
 
3804
- function create_fragment$d(ctx) {
3804
+ function create_fragment$e(ctx) {
3805
3805
  let if_block_anchor;
3806
3806
  let if_block = /*icon*/ ctx[3] && create_if_block$2(ctx);
3807
3807
 
@@ -3837,7 +3837,7 @@
3837
3837
  };
3838
3838
  }
3839
3839
 
3840
- function instance$c($$self, $$props, $$invalidate) {
3840
+ function instance$d($$self, $$props, $$invalidate) {
3841
3841
  let { name } = $$props;
3842
3842
  let { stroke } = $$props;
3843
3843
  let { strokeWidth } = $$props;
@@ -3871,7 +3871,7 @@
3871
3871
  constructor(options) {
3872
3872
  super();
3873
3873
 
3874
- init(this, options, instance$c, create_fragment$d, safe_not_equal, {
3874
+ init(this, options, instance$d, create_fragment$e, safe_not_equal, {
3875
3875
  name: 4,
3876
3876
  stroke: 5,
3877
3877
  strokeWidth: 6,
@@ -3884,7 +3884,7 @@
3884
3884
 
3885
3885
  /* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
3886
3886
 
3887
- function create_fragment$c(ctx) {
3887
+ function create_fragment$d(ctx) {
3888
3888
  let svg;
3889
3889
  let path0;
3890
3890
  let path1;
@@ -3926,7 +3926,7 @@
3926
3926
  };
3927
3927
  }
3928
3928
 
3929
- function instance$b($$self, $$props, $$invalidate) {
3929
+ function instance$c($$self, $$props, $$invalidate) {
3930
3930
  let { width = "5rem" } = $$props;
3931
3931
  let { height = "5rem" } = $$props;
3932
3932
 
@@ -3941,13 +3941,13 @@
3941
3941
  class IconIrocoLogo extends SvelteComponent {
3942
3942
  constructor(options) {
3943
3943
  super();
3944
- init(this, options, instance$b, create_fragment$c, safe_not_equal, { width: 0, height: 1 });
3944
+ init(this, options, instance$c, create_fragment$d, safe_not_equal, { width: 0, height: 1 });
3945
3945
  }
3946
3946
  }
3947
3947
 
3948
3948
  /* src/Loader.svelte generated by Svelte v3.38.2 */
3949
3949
 
3950
- function create_fragment$b(ctx) {
3950
+ function create_fragment$c(ctx) {
3951
3951
  let div;
3952
3952
  let iconirocologo;
3953
3953
  let current;
@@ -3984,13 +3984,13 @@
3984
3984
  class Loader extends SvelteComponent {
3985
3985
  constructor(options) {
3986
3986
  super();
3987
- init(this, options, null, create_fragment$b, safe_not_equal, {});
3987
+ init(this, options, null, create_fragment$c, safe_not_equal, {});
3988
3988
  }
3989
3989
  }
3990
3990
 
3991
3991
  /* src/IconInfo.svelte generated by Svelte v3.38.2 */
3992
3992
 
3993
- function create_fragment$a(ctx) {
3993
+ function create_fragment$b(ctx) {
3994
3994
  let svg;
3995
3995
  let path;
3996
3996
 
@@ -4031,7 +4031,7 @@
4031
4031
  };
4032
4032
  }
4033
4033
 
4034
- function instance$a($$self, $$props, $$invalidate) {
4034
+ function instance$b($$self, $$props, $$invalidate) {
4035
4035
  let { width = "5rem" } = $$props;
4036
4036
  let { height = "5rem" } = $$props;
4037
4037
 
@@ -4046,13 +4046,13 @@
4046
4046
  class IconInfo extends SvelteComponent {
4047
4047
  constructor(options) {
4048
4048
  super();
4049
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { width: 0, height: 1 });
4049
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, { width: 0, height: 1 });
4050
4050
  }
4051
4051
  }
4052
4052
 
4053
4053
  /* src/IconMastodon.svelte generated by Svelte v3.38.2 */
4054
4054
 
4055
- function create_fragment$9(ctx) {
4055
+ function create_fragment$a(ctx) {
4056
4056
  let svg;
4057
4057
  let title;
4058
4058
  let t;
@@ -4100,7 +4100,7 @@
4100
4100
  };
4101
4101
  }
4102
4102
 
4103
- function instance$9($$self, $$props, $$invalidate) {
4103
+ function instance$a($$self, $$props, $$invalidate) {
4104
4104
  let { width = "5em" } = $$props;
4105
4105
  let { height = "5em" } = $$props;
4106
4106
  let { fill = "currentColor" } = $$props;
@@ -4117,13 +4117,13 @@
4117
4117
  class IconMastodon extends SvelteComponent {
4118
4118
  constructor(options) {
4119
4119
  super();
4120
- init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1, fill: 2 });
4120
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, { width: 0, height: 1, fill: 2 });
4121
4121
  }
4122
4122
  }
4123
4123
 
4124
4124
  /* src/IconClose.svelte generated by Svelte v3.38.2 */
4125
4125
 
4126
- function create_fragment$8(ctx) {
4126
+ function create_fragment$9(ctx) {
4127
4127
  let svg;
4128
4128
  let path;
4129
4129
 
@@ -4163,7 +4163,7 @@
4163
4163
  };
4164
4164
  }
4165
4165
 
4166
- function instance$8($$self, $$props, $$invalidate) {
4166
+ function instance$9($$self, $$props, $$invalidate) {
4167
4167
  let { width = "5rem" } = $$props;
4168
4168
  let { height = "5rem" } = $$props;
4169
4169
 
@@ -4178,7 +4178,7 @@
4178
4178
  class IconClose extends SvelteComponent {
4179
4179
  constructor(options) {
4180
4180
  super();
4181
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { width: 0, height: 1 });
4181
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1 });
4182
4182
  }
4183
4183
  }
4184
4184
 
@@ -4258,7 +4258,7 @@
4258
4258
  };
4259
4259
  }
4260
4260
 
4261
- function create_fragment$7(ctx) {
4261
+ function create_fragment$8(ctx) {
4262
4262
  let nav;
4263
4263
  let button;
4264
4264
  let iconclose;
@@ -4372,7 +4372,7 @@
4372
4372
  };
4373
4373
  }
4374
4374
 
4375
- function instance$7($$self, $$props, $$invalidate) {
4375
+ function instance$8($$self, $$props, $$invalidate) {
4376
4376
 
4377
4377
  let { navigationItems } = $$props;
4378
4378
  let { type } = $$props;
@@ -4407,13 +4407,13 @@
4407
4407
  class NavBar extends SvelteComponent {
4408
4408
  constructor(options) {
4409
4409
  super();
4410
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0, type: 1 });
4410
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { navigationItems: 0, type: 1 });
4411
4411
  }
4412
4412
  }
4413
4413
 
4414
4414
  /* src/IconBurger.svelte generated by Svelte v3.38.2 */
4415
4415
 
4416
- function create_fragment$6(ctx) {
4416
+ function create_fragment$7(ctx) {
4417
4417
  let svg;
4418
4418
  let path;
4419
4419
 
@@ -4453,7 +4453,7 @@
4453
4453
  };
4454
4454
  }
4455
4455
 
4456
- function instance$6($$self, $$props, $$invalidate) {
4456
+ function instance$7($$self, $$props, $$invalidate) {
4457
4457
  let { width = "5rem" } = $$props;
4458
4458
  let { height = "5rem" } = $$props;
4459
4459
 
@@ -4466,6 +4466,110 @@
4466
4466
  }
4467
4467
 
4468
4468
  class IconBurger extends SvelteComponent {
4469
+ constructor(options) {
4470
+ super();
4471
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { width: 0, height: 1 });
4472
+ }
4473
+ }
4474
+
4475
+ /* src/IrocoLogo.svelte generated by Svelte v3.38.2 */
4476
+
4477
+ function create_fragment$6(ctx) {
4478
+ let a;
4479
+ let svg;
4480
+ let title;
4481
+ let t;
4482
+ let path0;
4483
+ let path1;
4484
+ let path2;
4485
+ let path3;
4486
+ let path4;
4487
+ let path5;
4488
+ let path6;
4489
+
4490
+ return {
4491
+ c() {
4492
+ a = element("a");
4493
+ svg = svg_element("svg");
4494
+ title = svg_element("title");
4495
+ t = text("Iroco");
4496
+ path0 = svg_element("path");
4497
+ path1 = svg_element("path");
4498
+ path2 = svg_element("path");
4499
+ path3 = svg_element("path");
4500
+ path4 = svg_element("path");
4501
+ path5 = svg_element("path");
4502
+ path6 = svg_element("path");
4503
+ attr(path0, "fill", "white");
4504
+ 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");
4505
+ attr(path0, "transform", "translate(-0.44 -0.49)");
4506
+ attr(path1, "fill", "white");
4507
+ 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");
4508
+ attr(path1, "transform", "translate(-0.44 -0.49)");
4509
+ attr(path2, "fill", "white");
4510
+ 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");
4511
+ attr(path2, "transform", "translate(-0.44 -0.49)");
4512
+ attr(path3, "fill", "white");
4513
+ 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");
4514
+ attr(path3, "transform", "translate(-0.44 -0.49)");
4515
+ attr(path4, "fill", "white");
4516
+ 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");
4517
+ attr(path4, "transform", "translate(-0.44 -0.49)");
4518
+ attr(path5, "fill", "white");
4519
+ 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");
4520
+ attr(path5, "transform", "translate(-0.44 -0.49)");
4521
+ attr(path6, "fill", "#00D692");
4522
+ 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");
4523
+ attr(path6, "transform", "translate(-0.44 -0.49)");
4524
+ attr(svg, "viewBox", "0 0 832.33 249.52");
4525
+ attr(svg, "width", /*width*/ ctx[0]);
4526
+ attr(svg, "height", /*height*/ ctx[1]);
4527
+ attr(a, "class", "iroco-logo");
4528
+ attr(a, "href", "/");
4529
+ },
4530
+ m(target, anchor) {
4531
+ insert(target, a, anchor);
4532
+ append(a, svg);
4533
+ append(svg, title);
4534
+ append(title, t);
4535
+ append(svg, path0);
4536
+ append(svg, path1);
4537
+ append(svg, path2);
4538
+ append(svg, path3);
4539
+ append(svg, path4);
4540
+ append(svg, path5);
4541
+ append(svg, path6);
4542
+ },
4543
+ p(ctx, [dirty]) {
4544
+ if (dirty & /*width*/ 1) {
4545
+ attr(svg, "width", /*width*/ ctx[0]);
4546
+ }
4547
+
4548
+ if (dirty & /*height*/ 2) {
4549
+ attr(svg, "height", /*height*/ ctx[1]);
4550
+ }
4551
+ },
4552
+ i: noop,
4553
+ o: noop,
4554
+ d(detaching) {
4555
+ if (detaching) detach(a);
4556
+ }
4557
+ };
4558
+ }
4559
+
4560
+ function instance$6($$self, $$props, $$invalidate) {
4561
+ let { width = "10rem" } = $$props;
4562
+ let { height = "10rem" } = $$props;
4563
+
4564
+ $$self.$$set = $$props => {
4565
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
4566
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
4567
+ };
4568
+
4569
+ return [width, height];
4570
+ }
4571
+
4572
+ class IrocoLogo extends SvelteComponent {
4469
4573
  constructor(options) {
4470
4574
  super();
4471
4575
  init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
@@ -4474,7 +4578,81 @@
4474
4578
 
4475
4579
  /* src/Navigation.svelte generated by Svelte v3.38.2 */
4476
4580
 
4477
- function create_if_block$1(ctx) {
4581
+ function create_else_block_1(ctx) {
4582
+ let iconirocologo;
4583
+ let t0;
4584
+ let h1;
4585
+ let t1;
4586
+ let current;
4587
+ iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4588
+
4589
+ return {
4590
+ c() {
4591
+ create_component(iconirocologo.$$.fragment);
4592
+ t0 = space();
4593
+ h1 = element("h1");
4594
+ t1 = text(/*title*/ ctx[2]);
4595
+ attr(h1, "class", "svelte-lqwgm1");
4596
+ },
4597
+ m(target, anchor) {
4598
+ mount_component(iconirocologo, target, anchor);
4599
+ insert(target, t0, anchor);
4600
+ insert(target, h1, anchor);
4601
+ append(h1, t1);
4602
+ current = true;
4603
+ },
4604
+ p(ctx, dirty) {
4605
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4606
+ },
4607
+ i(local) {
4608
+ if (current) return;
4609
+ transition_in(iconirocologo.$$.fragment, local);
4610
+ current = true;
4611
+ },
4612
+ o(local) {
4613
+ transition_out(iconirocologo.$$.fragment, local);
4614
+ current = false;
4615
+ },
4616
+ d(detaching) {
4617
+ destroy_component(iconirocologo, detaching);
4618
+ if (detaching) detach(t0);
4619
+ if (detaching) detach(h1);
4620
+ }
4621
+ };
4622
+ }
4623
+
4624
+ // (14:2) {#if title == null}
4625
+ function create_if_block_2(ctx) {
4626
+ let irocologo;
4627
+ let current;
4628
+ irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
4629
+
4630
+ return {
4631
+ c() {
4632
+ create_component(irocologo.$$.fragment);
4633
+ },
4634
+ m(target, anchor) {
4635
+ mount_component(irocologo, target, anchor);
4636
+ current = true;
4637
+ },
4638
+ p: noop,
4639
+ i(local) {
4640
+ if (current) return;
4641
+ transition_in(irocologo.$$.fragment, local);
4642
+ current = true;
4643
+ },
4644
+ o(local) {
4645
+ transition_out(irocologo.$$.fragment, local);
4646
+ current = false;
4647
+ },
4648
+ d(detaching) {
4649
+ destroy_component(irocologo, detaching);
4650
+ }
4651
+ };
4652
+ }
4653
+
4654
+ // (26:1) {#if showMenu}
4655
+ function create_if_block_1(ctx) {
4478
4656
  let navbar;
4479
4657
  let current;
4480
4658
 
@@ -4517,33 +4695,121 @@
4517
4695
  };
4518
4696
  }
4519
4697
 
4698
+ // (40:2) {:else}
4699
+ function create_else_block$1(ctx) {
4700
+ let iconirocologo;
4701
+ let t0;
4702
+ let h1;
4703
+ let t1;
4704
+ let current;
4705
+ iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4706
+
4707
+ return {
4708
+ c() {
4709
+ create_component(iconirocologo.$$.fragment);
4710
+ t0 = space();
4711
+ h1 = element("h1");
4712
+ t1 = text(/*title*/ ctx[2]);
4713
+ attr(h1, "class", "svelte-lqwgm1");
4714
+ },
4715
+ m(target, anchor) {
4716
+ mount_component(iconirocologo, target, anchor);
4717
+ insert(target, t0, anchor);
4718
+ insert(target, h1, anchor);
4719
+ append(h1, t1);
4720
+ current = true;
4721
+ },
4722
+ p(ctx, dirty) {
4723
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4724
+ },
4725
+ i(local) {
4726
+ if (current) return;
4727
+ transition_in(iconirocologo.$$.fragment, local);
4728
+ current = true;
4729
+ },
4730
+ o(local) {
4731
+ transition_out(iconirocologo.$$.fragment, local);
4732
+ current = false;
4733
+ },
4734
+ d(detaching) {
4735
+ destroy_component(iconirocologo, detaching);
4736
+ if (detaching) detach(t0);
4737
+ if (detaching) detach(h1);
4738
+ }
4739
+ };
4740
+ }
4741
+
4742
+ // (38:2) {#if title == null}
4743
+ function create_if_block$1(ctx) {
4744
+ let irocologo;
4745
+ let current;
4746
+ irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
4747
+
4748
+ return {
4749
+ c() {
4750
+ create_component(irocologo.$$.fragment);
4751
+ },
4752
+ m(target, anchor) {
4753
+ mount_component(irocologo, target, anchor);
4754
+ current = true;
4755
+ },
4756
+ p: noop,
4757
+ i(local) {
4758
+ if (current) return;
4759
+ transition_in(irocologo.$$.fragment, local);
4760
+ current = true;
4761
+ },
4762
+ o(local) {
4763
+ transition_out(irocologo.$$.fragment, local);
4764
+ current = false;
4765
+ },
4766
+ d(detaching) {
4767
+ destroy_component(irocologo, detaching);
4768
+ }
4769
+ };
4770
+ }
4771
+
4520
4772
  function create_fragment$5(ctx) {
4521
4773
  let div1;
4522
4774
  let div0;
4523
- let iconirocologo0;
4775
+ let current_block_type_index;
4776
+ let if_block0;
4524
4777
  let t0;
4525
- let h10;
4526
- let t1;
4527
- let t2;
4528
4778
  let button;
4529
4779
  let iconburger;
4530
- let t3;
4531
- let t4;
4780
+ let t1;
4781
+ let t2;
4532
4782
  let div3;
4533
4783
  let div2;
4534
- let iconirocologo1;
4535
- let t5;
4536
- let h11;
4537
- let t6;
4538
- let t7;
4784
+ let current_block_type_index_1;
4785
+ let if_block2;
4786
+ let t3;
4539
4787
  let navbar;
4540
4788
  let current;
4541
4789
  let mounted;
4542
4790
  let dispose;
4543
- iconirocologo0 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4791
+ const if_block_creators = [create_if_block_2, create_else_block_1];
4792
+ const if_blocks = [];
4793
+
4794
+ function select_block_type(ctx, dirty) {
4795
+ if (/*title*/ ctx[2] == null) return 0;
4796
+ return 1;
4797
+ }
4798
+
4799
+ current_block_type_index = select_block_type(ctx);
4800
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4544
4801
  iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
4545
- let if_block = /*showMenu*/ ctx[3] && create_if_block$1(ctx);
4546
- iconirocologo1 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4802
+ let if_block1 = /*showMenu*/ ctx[3] && create_if_block_1(ctx);
4803
+ const if_block_creators_1 = [create_if_block$1, create_else_block$1];
4804
+ const if_blocks_1 = [];
4805
+
4806
+ function select_block_type_1(ctx, dirty) {
4807
+ if (/*title*/ ctx[2] == null) return 0;
4808
+ return 1;
4809
+ }
4810
+
4811
+ current_block_type_index_1 = select_block_type_1(ctx);
4812
+ if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
4547
4813
 
4548
4814
  navbar = new NavBar({
4549
4815
  props: {
@@ -4556,52 +4822,38 @@
4556
4822
  c() {
4557
4823
  div1 = element("div");
4558
4824
  div0 = element("div");
4559
- create_component(iconirocologo0.$$.fragment);
4825
+ if_block0.c();
4560
4826
  t0 = space();
4561
- h10 = element("h1");
4562
- t1 = text(/*title*/ ctx[2]);
4563
- t2 = space();
4564
4827
  button = element("button");
4565
4828
  create_component(iconburger.$$.fragment);
4566
- t3 = space();
4567
- if (if_block) if_block.c();
4568
- t4 = space();
4829
+ t1 = space();
4830
+ if (if_block1) if_block1.c();
4831
+ t2 = space();
4569
4832
  div3 = element("div");
4570
4833
  div2 = element("div");
4571
- create_component(iconirocologo1.$$.fragment);
4572
- t5 = space();
4573
- h11 = element("h1");
4574
- t6 = text(/*title*/ ctx[2]);
4575
- t7 = space();
4834
+ if_block2.c();
4835
+ t3 = space();
4576
4836
  create_component(navbar.$$.fragment);
4577
- attr(h10, "class", "svelte-lqwgm1");
4578
4837
  attr(div0, "class", "navigation--mobile__title-container svelte-lqwgm1");
4579
4838
  attr(button, "class", "navigation--mobile__button svelte-lqwgm1");
4580
4839
  attr(div1, "class", "navigation--mobile svelte-lqwgm1");
4581
- attr(h11, "class", "svelte-lqwgm1");
4582
4840
  attr(div2, "class", "navigation__title-container svelte-lqwgm1");
4583
4841
  attr(div3, "class", "navigation svelte-lqwgm1");
4584
4842
  },
4585
4843
  m(target, anchor) {
4586
4844
  insert(target, div1, anchor);
4587
4845
  append(div1, div0);
4588
- mount_component(iconirocologo0, div0, null);
4589
- append(div0, t0);
4590
- append(div0, h10);
4591
- append(h10, t1);
4592
- append(div1, t2);
4846
+ if_blocks[current_block_type_index].m(div0, null);
4847
+ append(div1, t0);
4593
4848
  append(div1, button);
4594
4849
  mount_component(iconburger, button, null);
4595
- append(div1, t3);
4596
- if (if_block) if_block.m(div1, null);
4597
- insert(target, t4, anchor);
4850
+ append(div1, t1);
4851
+ if (if_block1) if_block1.m(div1, null);
4852
+ insert(target, t2, anchor);
4598
4853
  insert(target, div3, anchor);
4599
4854
  append(div3, div2);
4600
- mount_component(iconirocologo1, div2, null);
4601
- append(div2, t5);
4602
- append(div2, h11);
4603
- append(h11, t6);
4604
- append(div3, t7);
4855
+ if_blocks_1[current_block_type_index_1].m(div2, null);
4856
+ append(div3, t3);
4605
4857
  mount_component(navbar, div3, null);
4606
4858
  current = true;
4607
4859
 
@@ -4611,32 +4863,81 @@
4611
4863
  }
4612
4864
  },
4613
4865
  p(ctx, [dirty]) {
4614
- if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4866
+ let previous_block_index = current_block_type_index;
4867
+ current_block_type_index = select_block_type(ctx);
4868
+
4869
+ if (current_block_type_index === previous_block_index) {
4870
+ if_blocks[current_block_type_index].p(ctx, dirty);
4871
+ } else {
4872
+ group_outros();
4873
+
4874
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
4875
+ if_blocks[previous_block_index] = null;
4876
+ });
4877
+
4878
+ check_outros();
4879
+ if_block0 = if_blocks[current_block_type_index];
4880
+
4881
+ if (!if_block0) {
4882
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4883
+ if_block0.c();
4884
+ } else {
4885
+ if_block0.p(ctx, dirty);
4886
+ }
4887
+
4888
+ transition_in(if_block0, 1);
4889
+ if_block0.m(div0, null);
4890
+ }
4615
4891
 
4616
4892
  if (/*showMenu*/ ctx[3]) {
4617
- if (if_block) {
4618
- if_block.p(ctx, dirty);
4893
+ if (if_block1) {
4894
+ if_block1.p(ctx, dirty);
4619
4895
 
4620
4896
  if (dirty & /*showMenu*/ 8) {
4621
- transition_in(if_block, 1);
4897
+ transition_in(if_block1, 1);
4622
4898
  }
4623
4899
  } else {
4624
- if_block = create_if_block$1(ctx);
4625
- if_block.c();
4626
- transition_in(if_block, 1);
4627
- if_block.m(div1, null);
4900
+ if_block1 = create_if_block_1(ctx);
4901
+ if_block1.c();
4902
+ transition_in(if_block1, 1);
4903
+ if_block1.m(div1, null);
4628
4904
  }
4629
- } else if (if_block) {
4905
+ } else if (if_block1) {
4906
+ group_outros();
4907
+
4908
+ transition_out(if_block1, 1, 1, () => {
4909
+ if_block1 = null;
4910
+ });
4911
+
4912
+ check_outros();
4913
+ }
4914
+
4915
+ let previous_block_index_1 = current_block_type_index_1;
4916
+ current_block_type_index_1 = select_block_type_1(ctx);
4917
+
4918
+ if (current_block_type_index_1 === previous_block_index_1) {
4919
+ if_blocks_1[current_block_type_index_1].p(ctx, dirty);
4920
+ } else {
4630
4921
  group_outros();
4631
4922
 
4632
- transition_out(if_block, 1, 1, () => {
4633
- if_block = null;
4923
+ transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
4924
+ if_blocks_1[previous_block_index_1] = null;
4634
4925
  });
4635
4926
 
4636
4927
  check_outros();
4928
+ if_block2 = if_blocks_1[current_block_type_index_1];
4929
+
4930
+ if (!if_block2) {
4931
+ if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
4932
+ if_block2.c();
4933
+ } else {
4934
+ if_block2.p(ctx, dirty);
4935
+ }
4936
+
4937
+ transition_in(if_block2, 1);
4938
+ if_block2.m(div2, null);
4637
4939
  }
4638
4940
 
4639
- if (!current || dirty & /*title*/ 4) set_data(t6, /*title*/ ctx[2]);
4640
4941
  const navbar_changes = {};
4641
4942
  if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
4642
4943
  if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
@@ -4644,29 +4945,29 @@
4644
4945
  },
4645
4946
  i(local) {
4646
4947
  if (current) return;
4647
- transition_in(iconirocologo0.$$.fragment, local);
4948
+ transition_in(if_block0);
4648
4949
  transition_in(iconburger.$$.fragment, local);
4649
- transition_in(if_block);
4650
- transition_in(iconirocologo1.$$.fragment, local);
4950
+ transition_in(if_block1);
4951
+ transition_in(if_block2);
4651
4952
  transition_in(navbar.$$.fragment, local);
4652
4953
  current = true;
4653
4954
  },
4654
4955
  o(local) {
4655
- transition_out(iconirocologo0.$$.fragment, local);
4956
+ transition_out(if_block0);
4656
4957
  transition_out(iconburger.$$.fragment, local);
4657
- transition_out(if_block);
4658
- transition_out(iconirocologo1.$$.fragment, local);
4958
+ transition_out(if_block1);
4959
+ transition_out(if_block2);
4659
4960
  transition_out(navbar.$$.fragment, local);
4660
4961
  current = false;
4661
4962
  },
4662
4963
  d(detaching) {
4663
4964
  if (detaching) detach(div1);
4664
- destroy_component(iconirocologo0);
4965
+ if_blocks[current_block_type_index].d();
4665
4966
  destroy_component(iconburger);
4666
- if (if_block) if_block.d();
4667
- if (detaching) detach(t4);
4967
+ if (if_block1) if_block1.d();
4968
+ if (detaching) detach(t2);
4668
4969
  if (detaching) detach(div3);
4669
- destroy_component(iconirocologo1);
4970
+ if_blocks_1[current_block_type_index_1].d();
4670
4971
  destroy_component(navbar);
4671
4972
  mounted = false;
4672
4973
  dispose();
@@ -4678,7 +4979,7 @@
4678
4979
 
4679
4980
  let { navigationItems } = $$props;
4680
4981
  let { type = "topbar" } = $$props;
4681
- let { title } = $$props;
4982
+ let { title = null } = $$props;
4682
4983
  let showMenu = false;
4683
4984
  const click_handler = () => $$invalidate(3, showMenu = true);
4684
4985
  const click_link_handler = () => $$invalidate(3, showMenu = false);
@@ -5443,9 +5744,11 @@
5443
5744
  exports.Icon = Icon;
5444
5745
  exports.IconFloppyDisk = IconFloppyDisk;
5445
5746
  exports.IconInfo = IconInfo;
5747
+ exports.IconIrocoLogo = IconIrocoLogo;
5446
5748
  exports.IconMastodon = IconMastodon;
5447
5749
  exports.IconMore = IconMoreSign;
5448
5750
  exports.IconTrashCan = IconTrashCan;
5751
+ exports.IrocoLogo = IrocoLogo;
5449
5752
  exports.Loader = Loader;
5450
5753
  exports.NavBar = NavBar;
5451
5754
  exports.Navigation = Navigation;