@iroco/ui 0.15.3 → 0.17.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.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
 
@@ -4217,8 +4217,9 @@
4217
4217
  ? /*item*/ ctx[7].hrefOrCallback
4218
4218
  : "#");
4219
4219
 
4220
- attr(a, "class", "svelte-1c8sozl");
4221
- attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-1c8sozl");
4220
+ attr(a, "class", "svelte-v0jihd");
4221
+ toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].isButton());
4222
+ attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-v0jihd");
4222
4223
  toggle_class(li, "active", /*active*/ ctx[2] === /*item*/ ctx[7].name);
4223
4224
  },
4224
4225
  m(target, anchor) {
@@ -4242,7 +4243,11 @@
4242
4243
  attr(a, "href", a_href_value);
4243
4244
  }
4244
4245
 
4245
- if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-1c8sozl")) {
4246
+ if (dirty & /*navigationItems*/ 1) {
4247
+ toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].isButton());
4248
+ }
4249
+
4250
+ if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-v0jihd")) {
4246
4251
  attr(li, "class", li_class_value);
4247
4252
  }
4248
4253
 
@@ -4258,7 +4263,7 @@
4258
4263
  };
4259
4264
  }
4260
4265
 
4261
- function create_fragment$7(ctx) {
4266
+ function create_fragment$8(ctx) {
4262
4267
  let nav;
4263
4268
  let button;
4264
4269
  let iconclose;
@@ -4290,10 +4295,10 @@
4290
4295
  each_blocks[i].c();
4291
4296
  }
4292
4297
 
4293
- attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-1c8sozl");
4294
- attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-1c8sozl");
4298
+ attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-v0jihd");
4299
+ attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-v0jihd");
4295
4300
  attr(nav, "data-testid", /*type*/ ctx[1]);
4296
- attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-1c8sozl");
4301
+ attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-v0jihd");
4297
4302
  },
4298
4303
  m(target, anchor) {
4299
4304
  insert(target, nav, anchor);
@@ -4314,7 +4319,7 @@
4314
4319
  }
4315
4320
  },
4316
4321
  p(ctx, [dirty]) {
4317
- if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-1c8sozl")) {
4322
+ if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-v0jihd")) {
4318
4323
  attr(button, "class", button_class_value);
4319
4324
  }
4320
4325
 
@@ -4341,7 +4346,7 @@
4341
4346
  each_blocks.length = each_value.length;
4342
4347
  }
4343
4348
 
4344
- if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-1c8sozl")) {
4349
+ if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-v0jihd")) {
4345
4350
  attr(ul, "class", ul_class_value);
4346
4351
  }
4347
4352
 
@@ -4349,7 +4354,7 @@
4349
4354
  attr(nav, "data-testid", /*type*/ ctx[1]);
4350
4355
  }
4351
4356
 
4352
- if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-1c8sozl")) {
4357
+ if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-v0jihd")) {
4353
4358
  attr(nav, "class", nav_class_value);
4354
4359
  }
4355
4360
  },
@@ -4372,7 +4377,7 @@
4372
4377
  };
4373
4378
  }
4374
4379
 
4375
- function instance$7($$self, $$props, $$invalidate) {
4380
+ function instance$8($$self, $$props, $$invalidate) {
4376
4381
 
4377
4382
  let { navigationItems } = $$props;
4378
4383
  let { type } = $$props;
@@ -4407,13 +4412,13 @@
4407
4412
  class NavBar extends SvelteComponent {
4408
4413
  constructor(options) {
4409
4414
  super();
4410
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0, type: 1 });
4415
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { navigationItems: 0, type: 1 });
4411
4416
  }
4412
4417
  }
4413
4418
 
4414
4419
  /* src/IconBurger.svelte generated by Svelte v3.38.2 */
4415
4420
 
4416
- function create_fragment$6(ctx) {
4421
+ function create_fragment$7(ctx) {
4417
4422
  let svg;
4418
4423
  let path;
4419
4424
 
@@ -4453,7 +4458,7 @@
4453
4458
  };
4454
4459
  }
4455
4460
 
4456
- function instance$6($$self, $$props, $$invalidate) {
4461
+ function instance$7($$self, $$props, $$invalidate) {
4457
4462
  let { width = "5rem" } = $$props;
4458
4463
  let { height = "5rem" } = $$props;
4459
4464
 
@@ -4466,6 +4471,110 @@
4466
4471
  }
4467
4472
 
4468
4473
  class IconBurger extends SvelteComponent {
4474
+ constructor(options) {
4475
+ super();
4476
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { width: 0, height: 1 });
4477
+ }
4478
+ }
4479
+
4480
+ /* src/IrocoLogo.svelte generated by Svelte v3.38.2 */
4481
+
4482
+ function create_fragment$6(ctx) {
4483
+ let a;
4484
+ let svg;
4485
+ let title;
4486
+ let t;
4487
+ let path0;
4488
+ let path1;
4489
+ let path2;
4490
+ let path3;
4491
+ let path4;
4492
+ let path5;
4493
+ let path6;
4494
+
4495
+ return {
4496
+ c() {
4497
+ a = element("a");
4498
+ svg = svg_element("svg");
4499
+ title = svg_element("title");
4500
+ t = text("Iroco");
4501
+ path0 = svg_element("path");
4502
+ path1 = svg_element("path");
4503
+ path2 = svg_element("path");
4504
+ path3 = svg_element("path");
4505
+ path4 = svg_element("path");
4506
+ path5 = svg_element("path");
4507
+ path6 = svg_element("path");
4508
+ attr(path0, "fill", "white");
4509
+ 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");
4510
+ attr(path0, "transform", "translate(-0.44 -0.49)");
4511
+ attr(path1, "fill", "white");
4512
+ 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");
4513
+ attr(path1, "transform", "translate(-0.44 -0.49)");
4514
+ attr(path2, "fill", "white");
4515
+ 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");
4516
+ attr(path2, "transform", "translate(-0.44 -0.49)");
4517
+ attr(path3, "fill", "white");
4518
+ 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");
4519
+ attr(path3, "transform", "translate(-0.44 -0.49)");
4520
+ attr(path4, "fill", "white");
4521
+ 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");
4522
+ attr(path4, "transform", "translate(-0.44 -0.49)");
4523
+ attr(path5, "fill", "white");
4524
+ 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");
4525
+ attr(path5, "transform", "translate(-0.44 -0.49)");
4526
+ attr(path6, "fill", "#00D692");
4527
+ 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");
4528
+ attr(path6, "transform", "translate(-0.44 -0.49)");
4529
+ attr(svg, "viewBox", "0 0 832.33 249.52");
4530
+ attr(svg, "width", /*width*/ ctx[0]);
4531
+ attr(svg, "height", /*height*/ ctx[1]);
4532
+ attr(a, "class", "iroco-logo");
4533
+ attr(a, "href", "/");
4534
+ },
4535
+ m(target, anchor) {
4536
+ insert(target, a, anchor);
4537
+ append(a, svg);
4538
+ append(svg, title);
4539
+ append(title, t);
4540
+ append(svg, path0);
4541
+ append(svg, path1);
4542
+ append(svg, path2);
4543
+ append(svg, path3);
4544
+ append(svg, path4);
4545
+ append(svg, path5);
4546
+ append(svg, path6);
4547
+ },
4548
+ p(ctx, [dirty]) {
4549
+ if (dirty & /*width*/ 1) {
4550
+ attr(svg, "width", /*width*/ ctx[0]);
4551
+ }
4552
+
4553
+ if (dirty & /*height*/ 2) {
4554
+ attr(svg, "height", /*height*/ ctx[1]);
4555
+ }
4556
+ },
4557
+ i: noop,
4558
+ o: noop,
4559
+ d(detaching) {
4560
+ if (detaching) detach(a);
4561
+ }
4562
+ };
4563
+ }
4564
+
4565
+ function instance$6($$self, $$props, $$invalidate) {
4566
+ let { width = "10rem" } = $$props;
4567
+ let { height = "10rem" } = $$props;
4568
+
4569
+ $$self.$$set = $$props => {
4570
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
4571
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
4572
+ };
4573
+
4574
+ return [width, height];
4575
+ }
4576
+
4577
+ class IrocoLogo extends SvelteComponent {
4469
4578
  constructor(options) {
4470
4579
  super();
4471
4580
  init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
@@ -4474,7 +4583,81 @@
4474
4583
 
4475
4584
  /* src/Navigation.svelte generated by Svelte v3.38.2 */
4476
4585
 
4477
- function create_if_block$1(ctx) {
4586
+ function create_else_block_1(ctx) {
4587
+ let iconirocologo;
4588
+ let t0;
4589
+ let h1;
4590
+ let t1;
4591
+ let current;
4592
+ iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4593
+
4594
+ return {
4595
+ c() {
4596
+ create_component(iconirocologo.$$.fragment);
4597
+ t0 = space();
4598
+ h1 = element("h1");
4599
+ t1 = text(/*title*/ ctx[2]);
4600
+ attr(h1, "class", "svelte-lqwgm1");
4601
+ },
4602
+ m(target, anchor) {
4603
+ mount_component(iconirocologo, target, anchor);
4604
+ insert(target, t0, anchor);
4605
+ insert(target, h1, anchor);
4606
+ append(h1, t1);
4607
+ current = true;
4608
+ },
4609
+ p(ctx, dirty) {
4610
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4611
+ },
4612
+ i(local) {
4613
+ if (current) return;
4614
+ transition_in(iconirocologo.$$.fragment, local);
4615
+ current = true;
4616
+ },
4617
+ o(local) {
4618
+ transition_out(iconirocologo.$$.fragment, local);
4619
+ current = false;
4620
+ },
4621
+ d(detaching) {
4622
+ destroy_component(iconirocologo, detaching);
4623
+ if (detaching) detach(t0);
4624
+ if (detaching) detach(h1);
4625
+ }
4626
+ };
4627
+ }
4628
+
4629
+ // (14:2) {#if title == null}
4630
+ function create_if_block_2(ctx) {
4631
+ let irocologo;
4632
+ let current;
4633
+ irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
4634
+
4635
+ return {
4636
+ c() {
4637
+ create_component(irocologo.$$.fragment);
4638
+ },
4639
+ m(target, anchor) {
4640
+ mount_component(irocologo, target, anchor);
4641
+ current = true;
4642
+ },
4643
+ p: noop,
4644
+ i(local) {
4645
+ if (current) return;
4646
+ transition_in(irocologo.$$.fragment, local);
4647
+ current = true;
4648
+ },
4649
+ o(local) {
4650
+ transition_out(irocologo.$$.fragment, local);
4651
+ current = false;
4652
+ },
4653
+ d(detaching) {
4654
+ destroy_component(irocologo, detaching);
4655
+ }
4656
+ };
4657
+ }
4658
+
4659
+ // (26:1) {#if showMenu}
4660
+ function create_if_block_1(ctx) {
4478
4661
  let navbar;
4479
4662
  let current;
4480
4663
 
@@ -4517,33 +4700,121 @@
4517
4700
  };
4518
4701
  }
4519
4702
 
4703
+ // (40:2) {:else}
4704
+ function create_else_block$1(ctx) {
4705
+ let iconirocologo;
4706
+ let t0;
4707
+ let h1;
4708
+ let t1;
4709
+ let current;
4710
+ iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4711
+
4712
+ return {
4713
+ c() {
4714
+ create_component(iconirocologo.$$.fragment);
4715
+ t0 = space();
4716
+ h1 = element("h1");
4717
+ t1 = text(/*title*/ ctx[2]);
4718
+ attr(h1, "class", "svelte-lqwgm1");
4719
+ },
4720
+ m(target, anchor) {
4721
+ mount_component(iconirocologo, target, anchor);
4722
+ insert(target, t0, anchor);
4723
+ insert(target, h1, anchor);
4724
+ append(h1, t1);
4725
+ current = true;
4726
+ },
4727
+ p(ctx, dirty) {
4728
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4729
+ },
4730
+ i(local) {
4731
+ if (current) return;
4732
+ transition_in(iconirocologo.$$.fragment, local);
4733
+ current = true;
4734
+ },
4735
+ o(local) {
4736
+ transition_out(iconirocologo.$$.fragment, local);
4737
+ current = false;
4738
+ },
4739
+ d(detaching) {
4740
+ destroy_component(iconirocologo, detaching);
4741
+ if (detaching) detach(t0);
4742
+ if (detaching) detach(h1);
4743
+ }
4744
+ };
4745
+ }
4746
+
4747
+ // (38:2) {#if title == null}
4748
+ function create_if_block$1(ctx) {
4749
+ let irocologo;
4750
+ let current;
4751
+ irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
4752
+
4753
+ return {
4754
+ c() {
4755
+ create_component(irocologo.$$.fragment);
4756
+ },
4757
+ m(target, anchor) {
4758
+ mount_component(irocologo, target, anchor);
4759
+ current = true;
4760
+ },
4761
+ p: noop,
4762
+ i(local) {
4763
+ if (current) return;
4764
+ transition_in(irocologo.$$.fragment, local);
4765
+ current = true;
4766
+ },
4767
+ o(local) {
4768
+ transition_out(irocologo.$$.fragment, local);
4769
+ current = false;
4770
+ },
4771
+ d(detaching) {
4772
+ destroy_component(irocologo, detaching);
4773
+ }
4774
+ };
4775
+ }
4776
+
4520
4777
  function create_fragment$5(ctx) {
4521
4778
  let div1;
4522
4779
  let div0;
4523
- let iconirocologo0;
4780
+ let current_block_type_index;
4781
+ let if_block0;
4524
4782
  let t0;
4525
- let h10;
4526
- let t1;
4527
- let t2;
4528
4783
  let button;
4529
4784
  let iconburger;
4530
- let t3;
4531
- let t4;
4785
+ let t1;
4786
+ let t2;
4532
4787
  let div3;
4533
4788
  let div2;
4534
- let iconirocologo1;
4535
- let t5;
4536
- let h11;
4537
- let t6;
4538
- let t7;
4789
+ let current_block_type_index_1;
4790
+ let if_block2;
4791
+ let t3;
4539
4792
  let navbar;
4540
4793
  let current;
4541
4794
  let mounted;
4542
4795
  let dispose;
4543
- iconirocologo0 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4796
+ const if_block_creators = [create_if_block_2, create_else_block_1];
4797
+ const if_blocks = [];
4798
+
4799
+ function select_block_type(ctx, dirty) {
4800
+ if (/*title*/ ctx[2] == null) return 0;
4801
+ return 1;
4802
+ }
4803
+
4804
+ current_block_type_index = select_block_type(ctx);
4805
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4544
4806
  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" } });
4807
+ let if_block1 = /*showMenu*/ ctx[3] && create_if_block_1(ctx);
4808
+ const if_block_creators_1 = [create_if_block$1, create_else_block$1];
4809
+ const if_blocks_1 = [];
4810
+
4811
+ function select_block_type_1(ctx, dirty) {
4812
+ if (/*title*/ ctx[2] == null) return 0;
4813
+ return 1;
4814
+ }
4815
+
4816
+ current_block_type_index_1 = select_block_type_1(ctx);
4817
+ if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
4547
4818
 
4548
4819
  navbar = new NavBar({
4549
4820
  props: {
@@ -4556,52 +4827,38 @@
4556
4827
  c() {
4557
4828
  div1 = element("div");
4558
4829
  div0 = element("div");
4559
- create_component(iconirocologo0.$$.fragment);
4830
+ if_block0.c();
4560
4831
  t0 = space();
4561
- h10 = element("h1");
4562
- t1 = text(/*title*/ ctx[2]);
4563
- t2 = space();
4564
4832
  button = element("button");
4565
4833
  create_component(iconburger.$$.fragment);
4566
- t3 = space();
4567
- if (if_block) if_block.c();
4568
- t4 = space();
4834
+ t1 = space();
4835
+ if (if_block1) if_block1.c();
4836
+ t2 = space();
4569
4837
  div3 = element("div");
4570
4838
  div2 = element("div");
4571
- create_component(iconirocologo1.$$.fragment);
4572
- t5 = space();
4573
- h11 = element("h1");
4574
- t6 = text(/*title*/ ctx[2]);
4575
- t7 = space();
4839
+ if_block2.c();
4840
+ t3 = space();
4576
4841
  create_component(navbar.$$.fragment);
4577
- attr(h10, "class", "svelte-lqwgm1");
4578
4842
  attr(div0, "class", "navigation--mobile__title-container svelte-lqwgm1");
4579
4843
  attr(button, "class", "navigation--mobile__button svelte-lqwgm1");
4580
4844
  attr(div1, "class", "navigation--mobile svelte-lqwgm1");
4581
- attr(h11, "class", "svelte-lqwgm1");
4582
4845
  attr(div2, "class", "navigation__title-container svelte-lqwgm1");
4583
4846
  attr(div3, "class", "navigation svelte-lqwgm1");
4584
4847
  },
4585
4848
  m(target, anchor) {
4586
4849
  insert(target, div1, anchor);
4587
4850
  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);
4851
+ if_blocks[current_block_type_index].m(div0, null);
4852
+ append(div1, t0);
4593
4853
  append(div1, button);
4594
4854
  mount_component(iconburger, button, null);
4595
- append(div1, t3);
4596
- if (if_block) if_block.m(div1, null);
4597
- insert(target, t4, anchor);
4855
+ append(div1, t1);
4856
+ if (if_block1) if_block1.m(div1, null);
4857
+ insert(target, t2, anchor);
4598
4858
  insert(target, div3, anchor);
4599
4859
  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);
4860
+ if_blocks_1[current_block_type_index_1].m(div2, null);
4861
+ append(div3, t3);
4605
4862
  mount_component(navbar, div3, null);
4606
4863
  current = true;
4607
4864
 
@@ -4611,32 +4868,81 @@
4611
4868
  }
4612
4869
  },
4613
4870
  p(ctx, [dirty]) {
4614
- if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4871
+ let previous_block_index = current_block_type_index;
4872
+ current_block_type_index = select_block_type(ctx);
4873
+
4874
+ if (current_block_type_index === previous_block_index) {
4875
+ if_blocks[current_block_type_index].p(ctx, dirty);
4876
+ } else {
4877
+ group_outros();
4878
+
4879
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
4880
+ if_blocks[previous_block_index] = null;
4881
+ });
4882
+
4883
+ check_outros();
4884
+ if_block0 = if_blocks[current_block_type_index];
4885
+
4886
+ if (!if_block0) {
4887
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4888
+ if_block0.c();
4889
+ } else {
4890
+ if_block0.p(ctx, dirty);
4891
+ }
4892
+
4893
+ transition_in(if_block0, 1);
4894
+ if_block0.m(div0, null);
4895
+ }
4615
4896
 
4616
4897
  if (/*showMenu*/ ctx[3]) {
4617
- if (if_block) {
4618
- if_block.p(ctx, dirty);
4898
+ if (if_block1) {
4899
+ if_block1.p(ctx, dirty);
4619
4900
 
4620
4901
  if (dirty & /*showMenu*/ 8) {
4621
- transition_in(if_block, 1);
4902
+ transition_in(if_block1, 1);
4622
4903
  }
4623
4904
  } 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);
4905
+ if_block1 = create_if_block_1(ctx);
4906
+ if_block1.c();
4907
+ transition_in(if_block1, 1);
4908
+ if_block1.m(div1, null);
4628
4909
  }
4629
- } else if (if_block) {
4910
+ } else if (if_block1) {
4630
4911
  group_outros();
4631
4912
 
4632
- transition_out(if_block, 1, 1, () => {
4633
- if_block = null;
4913
+ transition_out(if_block1, 1, 1, () => {
4914
+ if_block1 = null;
4634
4915
  });
4635
4916
 
4636
4917
  check_outros();
4637
4918
  }
4638
4919
 
4639
- if (!current || dirty & /*title*/ 4) set_data(t6, /*title*/ ctx[2]);
4920
+ let previous_block_index_1 = current_block_type_index_1;
4921
+ current_block_type_index_1 = select_block_type_1(ctx);
4922
+
4923
+ if (current_block_type_index_1 === previous_block_index_1) {
4924
+ if_blocks_1[current_block_type_index_1].p(ctx, dirty);
4925
+ } else {
4926
+ group_outros();
4927
+
4928
+ transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
4929
+ if_blocks_1[previous_block_index_1] = null;
4930
+ });
4931
+
4932
+ check_outros();
4933
+ if_block2 = if_blocks_1[current_block_type_index_1];
4934
+
4935
+ if (!if_block2) {
4936
+ if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
4937
+ if_block2.c();
4938
+ } else {
4939
+ if_block2.p(ctx, dirty);
4940
+ }
4941
+
4942
+ transition_in(if_block2, 1);
4943
+ if_block2.m(div2, null);
4944
+ }
4945
+
4640
4946
  const navbar_changes = {};
4641
4947
  if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
4642
4948
  if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
@@ -4644,29 +4950,29 @@
4644
4950
  },
4645
4951
  i(local) {
4646
4952
  if (current) return;
4647
- transition_in(iconirocologo0.$$.fragment, local);
4953
+ transition_in(if_block0);
4648
4954
  transition_in(iconburger.$$.fragment, local);
4649
- transition_in(if_block);
4650
- transition_in(iconirocologo1.$$.fragment, local);
4955
+ transition_in(if_block1);
4956
+ transition_in(if_block2);
4651
4957
  transition_in(navbar.$$.fragment, local);
4652
4958
  current = true;
4653
4959
  },
4654
4960
  o(local) {
4655
- transition_out(iconirocologo0.$$.fragment, local);
4961
+ transition_out(if_block0);
4656
4962
  transition_out(iconburger.$$.fragment, local);
4657
- transition_out(if_block);
4658
- transition_out(iconirocologo1.$$.fragment, local);
4963
+ transition_out(if_block1);
4964
+ transition_out(if_block2);
4659
4965
  transition_out(navbar.$$.fragment, local);
4660
4966
  current = false;
4661
4967
  },
4662
4968
  d(detaching) {
4663
4969
  if (detaching) detach(div1);
4664
- destroy_component(iconirocologo0);
4970
+ if_blocks[current_block_type_index].d();
4665
4971
  destroy_component(iconburger);
4666
- if (if_block) if_block.d();
4667
- if (detaching) detach(t4);
4972
+ if (if_block1) if_block1.d();
4973
+ if (detaching) detach(t2);
4668
4974
  if (detaching) detach(div3);
4669
- destroy_component(iconirocologo1);
4975
+ if_blocks_1[current_block_type_index_1].d();
4670
4976
  destroy_component(navbar);
4671
4977
  mounted = false;
4672
4978
  dispose();
@@ -4678,7 +4984,7 @@
4678
4984
 
4679
4985
  let { navigationItems } = $$props;
4680
4986
  let { type = "topbar" } = $$props;
4681
- let { title } = $$props;
4987
+ let { title = null } = $$props;
4682
4988
  let showMenu = false;
4683
4989
  const click_handler = () => $$invalidate(3, showMenu = true);
4684
4990
  const click_link_handler = () => $$invalidate(3, showMenu = false);
@@ -5437,6 +5743,21 @@
5437
5743
  }
5438
5744
  }
5439
5745
 
5746
+ class NavigationItem {
5747
+ constructor(name, hrefOrCallback) {
5748
+ this.hrefOrCallback = hrefOrCallback;
5749
+ this.name = name;
5750
+ }
5751
+ isButton() {
5752
+ return typeof this.hrefOrCallback === 'function';
5753
+ }
5754
+ }
5755
+ exports.ButtonKind = void 0;
5756
+ (function (ButtonKind) {
5757
+ ButtonKind["REGULAR"] = "regular";
5758
+ ButtonKind["DANGER"] = "danger";
5759
+ })(exports.ButtonKind || (exports.ButtonKind = {}));
5760
+
5440
5761
  exports.Alert = Alert;
5441
5762
  exports.Button = Button;
5442
5763
  exports.DataTable = DataTable;
@@ -5447,9 +5768,11 @@
5447
5768
  exports.IconMastodon = IconMastodon;
5448
5769
  exports.IconMore = IconMoreSign;
5449
5770
  exports.IconTrashCan = IconTrashCan;
5771
+ exports.IrocoLogo = IrocoLogo;
5450
5772
  exports.Loader = Loader;
5451
5773
  exports.NavBar = NavBar;
5452
5774
  exports.Navigation = Navigation;
5775
+ exports.NavigationItem = NavigationItem;
5453
5776
  exports.NumberInput = NumberInput;
5454
5777
  exports.RadioButton = RadioButton;
5455
5778
  exports.TextInput = TextInput;