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