@iroco/ui 0.13.1 → 0.15.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.
@@ -0,0 +1 @@
1
+ $border-radius: 0.3em
package/lib/index.js CHANGED
@@ -509,19 +509,18 @@
509
509
  let current;
510
510
  let mounted;
511
511
  let dispose;
512
- const default_slot_template = /*#slots*/ ctx[8].default;
513
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
512
+ const default_slot_template = /*#slots*/ ctx[7].default;
513
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
514
514
 
515
515
  return {
516
516
  c() {
517
517
  button = element("button");
518
518
  if (default_slot) default_slot.c();
519
- attr(button, "id", /*id*/ ctx[6]);
520
- attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-cdmkz4"));
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"));
521
521
  attr(button, "type", /*type*/ ctx[1]);
522
522
  button.disabled = /*disabled*/ ctx[2];
523
523
  toggle_class(button, "disabled", /*disabled*/ ctx[2]);
524
- toggle_class(button, "rounded", /*rounded*/ ctx[5]);
525
524
  },
526
525
  m(target, anchor) {
527
526
  insert(target, button, anchor);
@@ -530,26 +529,26 @@
530
529
  default_slot.m(button, null);
531
530
  }
532
531
 
533
- /*button_binding*/ ctx[10](button);
532
+ /*button_binding*/ ctx[9](button);
534
533
  current = true;
535
534
 
536
535
  if (!mounted) {
537
- dispose = listen(button, "click", /*click_handler*/ ctx[9]);
536
+ dispose = listen(button, "click", /*click_handler*/ ctx[8]);
538
537
  mounted = true;
539
538
  }
540
539
  },
541
540
  p(ctx, [dirty]) {
542
541
  if (default_slot) {
543
- if (default_slot.p && (!current || dirty & /*$$scope*/ 128)) {
544
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[7], dirty, null, null);
542
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
543
+ update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null);
545
544
  }
546
545
  }
547
546
 
548
- if (!current || dirty & /*id*/ 64) {
549
- attr(button, "id", /*id*/ ctx[6]);
547
+ if (!current || dirty & /*id*/ 32) {
548
+ attr(button, "id", /*id*/ ctx[5]);
550
549
  }
551
550
 
552
- if (!current || dirty & /*size, kind*/ 24 && button_class_value !== (button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-cdmkz4"))) {
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"))) {
553
552
  attr(button, "class", button_class_value);
554
553
  }
555
554
 
@@ -564,10 +563,6 @@
564
563
  if (dirty & /*size, kind, disabled*/ 28) {
565
564
  toggle_class(button, "disabled", /*disabled*/ ctx[2]);
566
565
  }
567
-
568
- if (dirty & /*size, kind, rounded*/ 56) {
569
- toggle_class(button, "rounded", /*rounded*/ ctx[5]);
570
- }
571
566
  },
572
567
  i(local) {
573
568
  if (current) return;
@@ -581,7 +576,7 @@
581
576
  d(detaching) {
582
577
  if (detaching) detach(button);
583
578
  if (default_slot) default_slot.d(detaching);
584
- /*button_binding*/ ctx[10](null);
579
+ /*button_binding*/ ctx[9](null);
585
580
  mounted = false;
586
581
  dispose();
587
582
  }
@@ -594,7 +589,6 @@
594
589
  let { disabled = false } = $$props;
595
590
  let { kind = "basic" } = $$props;
596
591
  let { size = "regular" } = $$props;
597
- let { rounded = false } = $$props;
598
592
  let { id } = $$props;
599
593
  let { node } = $$props;
600
594
 
@@ -614,10 +608,9 @@
614
608
  if ("disabled" in $$props) $$invalidate(2, disabled = $$props.disabled);
615
609
  if ("kind" in $$props) $$invalidate(3, kind = $$props.kind);
616
610
  if ("size" in $$props) $$invalidate(4, size = $$props.size);
617
- if ("rounded" in $$props) $$invalidate(5, rounded = $$props.rounded);
618
- if ("id" in $$props) $$invalidate(6, id = $$props.id);
611
+ if ("id" in $$props) $$invalidate(5, id = $$props.id);
619
612
  if ("node" in $$props) $$invalidate(0, node = $$props.node);
620
- if ("$$scope" in $$props) $$invalidate(7, $$scope = $$props.$$scope);
613
+ if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope);
621
614
  };
622
615
 
623
616
  return [
@@ -626,7 +619,6 @@
626
619
  disabled,
627
620
  kind,
628
621
  size,
629
- rounded,
630
622
  id,
631
623
  $$scope,
632
624
  slots,
@@ -644,8 +636,7 @@
644
636
  disabled: 2,
645
637
  kind: 3,
646
638
  size: 4,
647
- rounded: 5,
648
- id: 6,
639
+ id: 5,
649
640
  node: 0
650
641
  });
651
642
  }
@@ -661,7 +652,7 @@
661
652
  c() {
662
653
  label_1 = element("label");
663
654
  t = text(/*label*/ ctx[2]);
664
- attr(label_1, "class", "iroco-ui-label svelte-11iawkb");
655
+ attr(label_1, "class", "iroco-ui-label svelte-1y0402x");
665
656
  attr(label_1, "for", /*id*/ ctx[1]);
666
657
  },
667
658
  m(target, anchor) {
@@ -698,7 +689,7 @@
698
689
  p = element("p");
699
690
  if_block.c();
700
691
  attr(p, "data-testid", "error");
701
- attr(p, "class", "error svelte-11iawkb");
692
+ attr(p, "class", "error svelte-1y0402x");
702
693
  },
703
694
  m(target, anchor) {
704
695
  insert(target, p, anchor);
@@ -792,11 +783,11 @@
792
783
  attr(input, "type", "text");
793
784
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
794
785
  input.readOnly = /*readonly*/ ctx[8];
795
- attr(input, "class", "svelte-11iawkb");
786
+ attr(input, "class", "svelte-1y0402x");
796
787
  toggle_class(input, "border", /*border*/ ctx[9]);
797
788
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
798
789
  toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
799
- attr(div, "class", "iroco-ui-input svelte-11iawkb");
790
+ attr(div, "class", "iroco-ui-input svelte-1y0402x");
800
791
  },
801
792
  m(target, anchor) {
802
793
  insert(target, div, anchor);
@@ -4191,27 +4182,28 @@
4191
4182
  }
4192
4183
  }
4193
4184
 
4194
- /* src/SideBar.svelte generated by Svelte v3.38.2 */
4185
+ /* src/NavBar.svelte generated by Svelte v3.38.2 */
4195
4186
 
4196
4187
  function get_each_context$1(ctx, list, i) {
4197
4188
  const child_ctx = ctx.slice();
4198
- child_ctx[6] = list[i];
4189
+ child_ctx[7] = list[i];
4199
4190
  return child_ctx;
4200
4191
  }
4201
4192
 
4202
- // (23:2) {#each navigationItems as item}
4193
+ // (24:2) {#each navigationItems as item}
4203
4194
  function create_each_block$1(ctx) {
4204
4195
  let li;
4205
4196
  let a;
4206
- let t0_value = /*item*/ ctx[6].name + "";
4197
+ let t0_value = /*item*/ ctx[7].name + "";
4207
4198
  let t0;
4208
4199
  let a_href_value;
4209
4200
  let t1;
4201
+ let li_class_value;
4210
4202
  let mounted;
4211
4203
  let dispose;
4212
4204
 
4213
4205
  function click_handler_1() {
4214
- return /*click_handler_1*/ ctx[4](/*item*/ ctx[6]);
4206
+ return /*click_handler_1*/ ctx[5](/*item*/ ctx[7]);
4215
4207
  }
4216
4208
 
4217
4209
  return {
@@ -4221,13 +4213,13 @@
4221
4213
  t0 = text(t0_value);
4222
4214
  t1 = space();
4223
4215
 
4224
- attr(a, "href", a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4225
- ? /*item*/ ctx[6].hrefOrCallback
4216
+ attr(a, "href", a_href_value = typeof /*item*/ ctx[7].hrefOrCallback === "string"
4217
+ ? /*item*/ ctx[7].hrefOrCallback
4226
4218
  : "#");
4227
4219
 
4228
- attr(a, "class", "svelte-12quws1");
4229
- attr(li, "class", "account__sidebar__item svelte-12quws1");
4230
- toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4220
+ attr(a, "class", "svelte-1c8sozl");
4221
+ attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-1c8sozl");
4222
+ toggle_class(li, "active", /*active*/ ctx[2] === /*item*/ ctx[7].name);
4231
4223
  },
4232
4224
  m(target, anchor) {
4233
4225
  insert(target, li, anchor);
@@ -4242,16 +4234,20 @@
4242
4234
  },
4243
4235
  p(new_ctx, dirty) {
4244
4236
  ctx = new_ctx;
4245
- if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[6].name + "")) set_data(t0, t0_value);
4237
+ if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[7].name + "")) set_data(t0, t0_value);
4246
4238
 
4247
- if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4248
- ? /*item*/ ctx[6].hrefOrCallback
4239
+ if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[7].hrefOrCallback === "string"
4240
+ ? /*item*/ ctx[7].hrefOrCallback
4249
4241
  : "#")) {
4250
4242
  attr(a, "href", a_href_value);
4251
4243
  }
4252
4244
 
4253
- if (dirty & /*active, navigationItems*/ 3) {
4254
- toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4245
+ if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-1c8sozl")) {
4246
+ attr(li, "class", li_class_value);
4247
+ }
4248
+
4249
+ if (dirty & /*type, active, navigationItems*/ 7) {
4250
+ toggle_class(li, "active", /*active*/ ctx[2] === /*item*/ ctx[7].name);
4255
4251
  }
4256
4252
  },
4257
4253
  d(detaching) {
@@ -4266,8 +4262,11 @@
4266
4262
  let nav;
4267
4263
  let button;
4268
4264
  let iconclose;
4265
+ let button_class_value;
4269
4266
  let t;
4270
4267
  let ul;
4268
+ let ul_class_value;
4269
+ let nav_class_value;
4271
4270
  let current;
4272
4271
  let mounted;
4273
4272
  let dispose;
@@ -4291,10 +4290,10 @@
4291
4290
  each_blocks[i].c();
4292
4291
  }
4293
4292
 
4294
- attr(button, "class", "account__sidebar__close svelte-12quws1");
4295
- attr(ul, "class", "account__sidebar__item_container svelte-12quws1");
4296
- attr(nav, "data-testid", "sidebar");
4297
- attr(nav, "class", "account__sidebar svelte-12quws1");
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");
4295
+ attr(nav, "data-testid", /*type*/ ctx[1]);
4296
+ attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-1c8sozl");
4298
4297
  },
4299
4298
  m(target, anchor) {
4300
4299
  insert(target, nav, anchor);
@@ -4310,12 +4309,16 @@
4310
4309
  current = true;
4311
4310
 
4312
4311
  if (!mounted) {
4313
- dispose = listen(button, "click", /*click_handler*/ ctx[3]);
4312
+ dispose = listen(button, "click", /*click_handler*/ ctx[4]);
4314
4313
  mounted = true;
4315
4314
  }
4316
4315
  },
4317
4316
  p(ctx, [dirty]) {
4318
- if (dirty & /*active, navigationItems, handleClickLink*/ 7) {
4317
+ if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-1c8sozl")) {
4318
+ attr(button, "class", button_class_value);
4319
+ }
4320
+
4321
+ if (dirty & /*type, active, navigationItems, handleClickLink*/ 15) {
4319
4322
  each_value = /*navigationItems*/ ctx[0];
4320
4323
  let i;
4321
4324
 
@@ -4337,6 +4340,18 @@
4337
4340
 
4338
4341
  each_blocks.length = each_value.length;
4339
4342
  }
4343
+
4344
+ if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-1c8sozl")) {
4345
+ attr(ul, "class", ul_class_value);
4346
+ }
4347
+
4348
+ if (!current || dirty & /*type*/ 2) {
4349
+ attr(nav, "data-testid", /*type*/ ctx[1]);
4350
+ }
4351
+
4352
+ if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-1c8sozl")) {
4353
+ attr(nav, "class", nav_class_value);
4354
+ }
4340
4355
  },
4341
4356
  i(local) {
4342
4357
  if (current) return;
@@ -4360,11 +4375,12 @@
4360
4375
  function instance$7($$self, $$props, $$invalidate) {
4361
4376
 
4362
4377
  let { navigationItems } = $$props;
4378
+ let { type } = $$props;
4363
4379
  let active;
4364
4380
  const dispatch = createEventDispatcher();
4365
4381
 
4366
4382
  const handleClickLink = menuItem => {
4367
- $$invalidate(1, active = menuItem.name);
4383
+ $$invalidate(2, active = menuItem.name);
4368
4384
 
4369
4385
  if (typeof menuItem.hrefOrCallback === "function") {
4370
4386
  menuItem.hrefOrCallback();
@@ -4382,15 +4398,16 @@
4382
4398
 
4383
4399
  $$self.$$set = $$props => {
4384
4400
  if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
4401
+ if ("type" in $$props) $$invalidate(1, type = $$props.type);
4385
4402
  };
4386
4403
 
4387
- return [navigationItems, active, handleClickLink, click_handler, click_handler_1];
4404
+ return [navigationItems, type, active, handleClickLink, click_handler, click_handler_1];
4388
4405
  }
4389
4406
 
4390
- class SideBar extends SvelteComponent {
4407
+ class NavBar extends SvelteComponent {
4391
4408
  constructor(options) {
4392
4409
  super();
4393
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0 });
4410
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0, type: 1 });
4394
4411
  }
4395
4412
  }
4396
4413
 
@@ -4458,42 +4475,44 @@
4458
4475
  /* src/Navigation.svelte generated by Svelte v3.38.2 */
4459
4476
 
4460
4477
  function create_if_block$1(ctx) {
4461
- let sidebar;
4478
+ let navbar;
4462
4479
  let current;
4463
4480
 
4464
- sidebar = new SideBar({
4481
+ navbar = new NavBar({
4465
4482
  props: {
4483
+ type: /*type*/ ctx[1],
4466
4484
  navigationItems: /*navigationItems*/ ctx[0]
4467
4485
  }
4468
4486
  });
4469
4487
 
4470
- sidebar.$on("click_link", /*click_link_handler*/ ctx[4]);
4471
- sidebar.$on("click", /*click_handler_1*/ ctx[5]);
4488
+ navbar.$on("click_link", /*click_link_handler*/ ctx[5]);
4489
+ navbar.$on("click", /*click_handler_1*/ ctx[6]);
4472
4490
 
4473
4491
  return {
4474
4492
  c() {
4475
- create_component(sidebar.$$.fragment);
4493
+ create_component(navbar.$$.fragment);
4476
4494
  },
4477
4495
  m(target, anchor) {
4478
- mount_component(sidebar, target, anchor);
4496
+ mount_component(navbar, target, anchor);
4479
4497
  current = true;
4480
4498
  },
4481
4499
  p(ctx, dirty) {
4482
- const sidebar_changes = {};
4483
- if (dirty & /*navigationItems*/ 1) sidebar_changes.navigationItems = /*navigationItems*/ ctx[0];
4484
- sidebar.$set(sidebar_changes);
4500
+ const navbar_changes = {};
4501
+ if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
4502
+ if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
4503
+ navbar.$set(navbar_changes);
4485
4504
  },
4486
4505
  i(local) {
4487
4506
  if (current) return;
4488
- transition_in(sidebar.$$.fragment, local);
4507
+ transition_in(navbar.$$.fragment, local);
4489
4508
  current = true;
4490
4509
  },
4491
4510
  o(local) {
4492
- transition_out(sidebar.$$.fragment, local);
4511
+ transition_out(navbar.$$.fragment, local);
4493
4512
  current = false;
4494
4513
  },
4495
4514
  d(detaching) {
4496
- destroy_component(sidebar, detaching);
4515
+ destroy_component(navbar, detaching);
4497
4516
  }
4498
4517
  };
4499
4518
  }
@@ -4517,18 +4536,19 @@
4517
4536
  let h11;
4518
4537
  let t6;
4519
4538
  let t7;
4520
- let sidebar;
4539
+ let navbar;
4521
4540
  let current;
4522
4541
  let mounted;
4523
4542
  let dispose;
4524
4543
  iconirocologo0 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4525
4544
  iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
4526
- let if_block = /*showMenu*/ ctx[2] && create_if_block$1(ctx);
4545
+ let if_block = /*showMenu*/ ctx[3] && create_if_block$1(ctx);
4527
4546
  iconirocologo1 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4528
4547
 
4529
- sidebar = new SideBar({
4548
+ navbar = new NavBar({
4530
4549
  props: {
4531
- navigationItems: /*navigationItems*/ ctx[0]
4550
+ navigationItems: /*navigationItems*/ ctx[0],
4551
+ type: /*type*/ ctx[1]
4532
4552
  }
4533
4553
  });
4534
4554
 
@@ -4539,7 +4559,7 @@
4539
4559
  create_component(iconirocologo0.$$.fragment);
4540
4560
  t0 = space();
4541
4561
  h10 = element("h1");
4542
- t1 = text(/*title*/ ctx[1]);
4562
+ t1 = text(/*title*/ ctx[2]);
4543
4563
  t2 = space();
4544
4564
  button = element("button");
4545
4565
  create_component(iconburger.$$.fragment);
@@ -4551,16 +4571,16 @@
4551
4571
  create_component(iconirocologo1.$$.fragment);
4552
4572
  t5 = space();
4553
4573
  h11 = element("h1");
4554
- t6 = text(/*title*/ ctx[1]);
4574
+ t6 = text(/*title*/ ctx[2]);
4555
4575
  t7 = space();
4556
- create_component(sidebar.$$.fragment);
4557
- attr(h10, "class", "svelte-1uu9ytm");
4558
- attr(div0, "class", "account__navigation--mobile__title-container svelte-1uu9ytm");
4559
- attr(button, "class", "account__navigation--mobile__button svelte-1uu9ytm");
4560
- attr(div1, "class", "account__navigation--mobile svelte-1uu9ytm");
4561
- attr(h11, "class", "svelte-1uu9ytm");
4562
- attr(div2, "class", "account__navigation__title-container svelte-1uu9ytm");
4563
- attr(div3, "class", "account__navigation svelte-1uu9ytm");
4576
+ create_component(navbar.$$.fragment);
4577
+ attr(h10, "class", "svelte-lqwgm1");
4578
+ attr(div0, "class", "navigation--mobile__title-container svelte-lqwgm1");
4579
+ attr(button, "class", "navigation--mobile__button svelte-lqwgm1");
4580
+ attr(div1, "class", "navigation--mobile svelte-lqwgm1");
4581
+ attr(h11, "class", "svelte-lqwgm1");
4582
+ attr(div2, "class", "navigation__title-container svelte-lqwgm1");
4583
+ attr(div3, "class", "navigation svelte-lqwgm1");
4564
4584
  },
4565
4585
  m(target, anchor) {
4566
4586
  insert(target, div1, anchor);
@@ -4582,22 +4602,22 @@
4582
4602
  append(div2, h11);
4583
4603
  append(h11, t6);
4584
4604
  append(div3, t7);
4585
- mount_component(sidebar, div3, null);
4605
+ mount_component(navbar, div3, null);
4586
4606
  current = true;
4587
4607
 
4588
4608
  if (!mounted) {
4589
- dispose = listen(button, "click", /*click_handler*/ ctx[3]);
4609
+ dispose = listen(button, "click", /*click_handler*/ ctx[4]);
4590
4610
  mounted = true;
4591
4611
  }
4592
4612
  },
4593
4613
  p(ctx, [dirty]) {
4594
- if (!current || dirty & /*title*/ 2) set_data(t1, /*title*/ ctx[1]);
4614
+ if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
4595
4615
 
4596
- if (/*showMenu*/ ctx[2]) {
4616
+ if (/*showMenu*/ ctx[3]) {
4597
4617
  if (if_block) {
4598
4618
  if_block.p(ctx, dirty);
4599
4619
 
4600
- if (dirty & /*showMenu*/ 4) {
4620
+ if (dirty & /*showMenu*/ 8) {
4601
4621
  transition_in(if_block, 1);
4602
4622
  }
4603
4623
  } else {
@@ -4616,10 +4636,11 @@
4616
4636
  check_outros();
4617
4637
  }
4618
4638
 
4619
- if (!current || dirty & /*title*/ 2) set_data(t6, /*title*/ ctx[1]);
4620
- const sidebar_changes = {};
4621
- if (dirty & /*navigationItems*/ 1) sidebar_changes.navigationItems = /*navigationItems*/ ctx[0];
4622
- sidebar.$set(sidebar_changes);
4639
+ if (!current || dirty & /*title*/ 4) set_data(t6, /*title*/ ctx[2]);
4640
+ const navbar_changes = {};
4641
+ if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
4642
+ if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
4643
+ navbar.$set(navbar_changes);
4623
4644
  },
4624
4645
  i(local) {
4625
4646
  if (current) return;
@@ -4627,7 +4648,7 @@
4627
4648
  transition_in(iconburger.$$.fragment, local);
4628
4649
  transition_in(if_block);
4629
4650
  transition_in(iconirocologo1.$$.fragment, local);
4630
- transition_in(sidebar.$$.fragment, local);
4651
+ transition_in(navbar.$$.fragment, local);
4631
4652
  current = true;
4632
4653
  },
4633
4654
  o(local) {
@@ -4635,7 +4656,7 @@
4635
4656
  transition_out(iconburger.$$.fragment, local);
4636
4657
  transition_out(if_block);
4637
4658
  transition_out(iconirocologo1.$$.fragment, local);
4638
- transition_out(sidebar.$$.fragment, local);
4659
+ transition_out(navbar.$$.fragment, local);
4639
4660
  current = false;
4640
4661
  },
4641
4662
  d(detaching) {
@@ -4646,7 +4667,7 @@
4646
4667
  if (detaching) detach(t4);
4647
4668
  if (detaching) detach(div3);
4648
4669
  destroy_component(iconirocologo1);
4649
- destroy_component(sidebar);
4670
+ destroy_component(navbar);
4650
4671
  mounted = false;
4651
4672
  dispose();
4652
4673
  }
@@ -4656,19 +4677,22 @@
4656
4677
  function instance$5($$self, $$props, $$invalidate) {
4657
4678
 
4658
4679
  let { navigationItems } = $$props;
4680
+ let { type = "topbar" } = $$props;
4659
4681
  let { title } = $$props;
4660
4682
  let showMenu = false;
4661
- const click_handler = () => $$invalidate(2, showMenu = true);
4662
- const click_link_handler = () => $$invalidate(2, showMenu = false);
4663
- const click_handler_1 = () => $$invalidate(2, showMenu = false);
4683
+ const click_handler = () => $$invalidate(3, showMenu = true);
4684
+ const click_link_handler = () => $$invalidate(3, showMenu = false);
4685
+ const click_handler_1 = () => $$invalidate(3, showMenu = false);
4664
4686
 
4665
4687
  $$self.$$set = $$props => {
4666
4688
  if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
4667
- if ("title" in $$props) $$invalidate(1, title = $$props.title);
4689
+ if ("type" in $$props) $$invalidate(1, type = $$props.type);
4690
+ if ("title" in $$props) $$invalidate(2, title = $$props.title);
4668
4691
  };
4669
4692
 
4670
4693
  return [
4671
4694
  navigationItems,
4695
+ type,
4672
4696
  title,
4673
4697
  showMenu,
4674
4698
  click_handler,
@@ -4680,7 +4704,7 @@
4680
4704
  class Navigation extends SvelteComponent {
4681
4705
  constructor(options) {
4682
4706
  super();
4683
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { navigationItems: 0, title: 1 });
4707
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { navigationItems: 0, type: 1, title: 2 });
4684
4708
  }
4685
4709
  }
4686
4710
 
@@ -5360,7 +5384,7 @@
5360
5384
  c() {
5361
5385
  div = element("div");
5362
5386
  t = text(/*content*/ ctx[1]);
5363
- attr(div, "class", div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-1oun6o6"));
5387
+ attr(div, "class", div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-itln7g"));
5364
5388
  },
5365
5389
  m(target, anchor) {
5366
5390
  insert(target, div, anchor);
@@ -5378,7 +5402,7 @@
5378
5402
  ctx = new_ctx;
5379
5403
  if (dirty & /*content*/ 2) set_data(t, /*content*/ ctx[1]);
5380
5404
 
5381
- if (dirty & /*type*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-1oun6o6"))) {
5405
+ if (dirty & /*type*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-itln7g"))) {
5382
5406
  attr(div, "class", div_class_value);
5383
5407
  }
5384
5408
  },
@@ -5423,10 +5447,10 @@
5423
5447
  exports.IconMore = IconMoreSign;
5424
5448
  exports.IconTrashCan = IconTrashCan;
5425
5449
  exports.Loader = Loader;
5450
+ exports.NavBar = NavBar;
5426
5451
  exports.Navigation = Navigation;
5427
5452
  exports.NumberInput = NumberInput;
5428
5453
  exports.RadioButton = RadioButton;
5429
- exports.SideBar = SideBar;
5430
5454
  exports.TextInput = TextInput;
5431
5455
 
5432
5456
  Object.defineProperty(exports, '__esModule', { value: true });