@plaidev/karte-action-sdk 1.1.156-28004326.6f979cf9 → 1.1.156-28011566.cc9ca327

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.
@@ -1074,26 +1074,6 @@ async function loadGlobalStyle(href) {
1074
1074
  link.addEventListener('error', () => reject(link));
1075
1075
  });
1076
1076
  }
1077
- /**
1078
- * {@link hashCode} generate hash with FNV-1a hash
1079
- *
1080
- * @param s - Inputed string
1081
- *
1082
- * @returns Hashed string
1083
- *
1084
- * @see https://stackoverflow.com/a/22429679
1085
- *
1086
- * @internal
1087
- */
1088
- function hashCode(s) {
1089
- const SEED = 0x41653150;
1090
- let hash = SEED;
1091
- Array.from(s).forEach((c, index) => {
1092
- hash ^= c.charCodeAt(index);
1093
- hash += (hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);
1094
- });
1095
- return ('0000000' + (hash >>> 0).toString(16)).substr(-8);
1096
- }
1097
1077
 
1098
1078
  /**
1099
1079
  * アクションのログの記録の管理
@@ -3127,7 +3107,7 @@ function create_if_block$5(ctx) {
3127
3107
  onClick: /*onClick*/ ctx[0],
3128
3108
  eventName: /*clickEventName*/ ctx[1],
3129
3109
  eventValue: /*clickEventValue*/ ctx[2],
3130
- $$slots: { default: [create_default_slot$4] },
3110
+ $$slots: { default: [create_default_slot$6] },
3131
3111
  $$scope: { ctx }
3132
3112
  }
3133
3113
  });
@@ -3339,7 +3319,7 @@ function create_default_slot_1$1(ctx) {
3339
3319
  }
3340
3320
 
3341
3321
  // (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
3342
- function create_default_slot$4(ctx) {
3322
+ function create_default_slot$6(ctx) {
3343
3323
  let t;
3344
3324
  let div;
3345
3325
  let current;
@@ -3910,8 +3890,8 @@ function create_fragment$q(ctx) {
3910
3890
  h() {
3911
3891
  attr(div0, "class", "grid-item-inner svelte-n7kdl3");
3912
3892
  attr(div1, "class", "grid-item svelte-n7kdl3");
3913
- attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[1]);
3914
- attr(div1, "style", /*_style*/ ctx[0]);
3893
+ attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3894
+ attr(div1, "style", /*_style*/ ctx[1]);
3915
3895
  },
3916
3896
  m(target, anchor) {
3917
3897
  insert_hydration(target, div1, anchor);
@@ -3939,8 +3919,12 @@ function create_fragment$q(ctx) {
3939
3919
  }
3940
3920
  }
3941
3921
 
3942
- if (!current || dirty & /*_style*/ 1) {
3943
- attr(div1, "style", /*_style*/ ctx[0]);
3922
+ if (!current || dirty & /*id*/ 1) {
3923
+ attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3924
+ }
3925
+
3926
+ if (!current || dirty & /*_style*/ 2) {
3927
+ attr(div1, "style", /*_style*/ ctx[1]);
3944
3928
  }
3945
3929
  },
3946
3930
  i(local) {
@@ -3968,13 +3952,7 @@ function instance$q($$self, $$props, $$invalidate) {
3968
3952
  let { y2 } = $$props;
3969
3953
  let { z } = $$props;
3970
3954
  let { background = 'transparent' } = $$props;
3971
- let gridItemIdRaw = `${y1}-${x1}-${y2}-${x2}`;
3972
-
3973
- if (z) {
3974
- gridItemIdRaw += `-${z}`;
3975
- }
3976
-
3977
- const gridItemId = hashCode(gridItemIdRaw);
3955
+ let { id } = $$props;
3978
3956
 
3979
3957
  onMount(() => {
3980
3958
  setMaximumZindex(z);
@@ -3987,12 +3965,13 @@ function instance$q($$self, $$props, $$invalidate) {
3987
3965
  if ('y2' in $$props) $$invalidate(5, y2 = $$props.y2);
3988
3966
  if ('z' in $$props) $$invalidate(6, z = $$props.z);
3989
3967
  if ('background' in $$props) $$invalidate(7, background = $$props.background);
3968
+ if ('id' in $$props) $$invalidate(0, id = $$props.id);
3990
3969
  if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
3991
3970
  };
3992
3971
 
3993
3972
  $$self.$$.update = () => {
3994
3973
  if ($$self.$$.dirty & /*y1, x1, y2, x2, z, background*/ 252) {
3995
- $$invalidate(0, _style = [
3974
+ $$invalidate(1, _style = [
3996
3975
  `grid-area: ${y1 + 1} / ${x1 + 1} / ${y2 + 2} / ${x2 + 2}`,
3997
3976
  `z-index: ${z}`,
3998
3977
  `background: ${background}`,
@@ -4002,7 +3981,7 @@ function instance$q($$self, $$props, $$invalidate) {
4002
3981
  }
4003
3982
  };
4004
3983
 
4005
- return [_style, gridItemId, x1, x2, y1, y2, z, background, $$scope, slots];
3984
+ return [id, _style, x1, x2, y1, y2, z, background, $$scope, slots];
4006
3985
  }
4007
3986
 
4008
3987
  class GridItem extends SvelteComponent {
@@ -4021,7 +4000,8 @@ class GridItem extends SvelteComponent {
4021
4000
  y1: 4,
4022
4001
  y2: 5,
4023
4002
  z: 6,
4024
- background: 7
4003
+ background: 7,
4004
+ id: 0
4025
4005
  },
4026
4006
  add_css$o
4027
4007
  );
@@ -4498,7 +4478,7 @@ function add_css$m(target) {
4498
4478
  }
4499
4479
 
4500
4480
  // (36:2) <Button onClick={onClick} {style} {eventName}>
4501
- function create_default_slot$3(ctx) {
4481
+ function create_default_slot$5(ctx) {
4502
4482
  let rendertext;
4503
4483
  let current;
4504
4484
  rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
@@ -4547,7 +4527,7 @@ function create_fragment$n(ctx) {
4547
4527
  onClick: /*onClick*/ ctx[1],
4548
4528
  style: /*style*/ ctx[3],
4549
4529
  eventName: /*eventName*/ ctx[2],
4550
- $$slots: { default: [create_default_slot$3] },
4530
+ $$slots: { default: [create_default_slot$5] },
4551
4531
  $$scope: { ctx }
4552
4532
  }
4553
4533
  });
@@ -4667,7 +4647,7 @@ function add_css$l(target) {
4667
4647
  }
4668
4648
 
4669
4649
  // (40:2) <Button {onClick} style={_style} {eventName}>
4670
- function create_default_slot$2(ctx) {
4650
+ function create_default_slot$4(ctx) {
4671
4651
  let img;
4672
4652
  let img_src_value;
4673
4653
 
@@ -4731,7 +4711,7 @@ function create_fragment$m(ctx) {
4731
4711
  onClick: /*onClick*/ ctx[3],
4732
4712
  style: /*_style*/ ctx[6],
4733
4713
  eventName: /*eventName*/ ctx[4],
4734
- $$slots: { default: [create_default_slot$2] },
4714
+ $$slots: { default: [create_default_slot$4] },
4735
4715
  $$scope: { ctx }
4736
4716
  }
4737
4717
  });
@@ -4999,7 +4979,7 @@ function add_css$j(target) {
4999
4979
  }
5000
4980
 
5001
4981
  // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
5002
- function create_default_slot$1(ctx) {
4982
+ function create_default_slot$3(ctx) {
5003
4983
  let current;
5004
4984
  const default_slot_template = /*#slots*/ ctx[5].default;
5005
4985
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
@@ -5059,7 +5039,7 @@ function create_fragment$k(ctx) {
5059
5039
  onClick: /*onClick*/ ctx[0],
5060
5040
  style: /*_style*/ ctx[2],
5061
5041
  eventName: /*clickEventName*/ ctx[1],
5062
- $$slots: { default: [create_default_slot$1] },
5042
+ $$slots: { default: [create_default_slot$3] },
5063
5043
  $$scope: { ctx }
5064
5044
  }
5065
5045
  });
@@ -8527,67 +8507,44 @@ class Countdown extends SvelteComponent {
8527
8507
  /* src/components/Box.svelte generated by Svelte v3.53.1 */
8528
8508
 
8529
8509
  function add_css$6(target) {
8530
- append_styles(target, "svelte-aept6n", ".box-wrapper.svelte-aept6n{position:relative;width:100%;height:100%}.box.svelte-aept6n{position:absolute;inset:0}");
8510
+ append_styles(target, "svelte-1d6pgu1", ".box.svelte-1d6pgu1{position:relative;width:100%;height:100%}.box.svelte-1d6pgu1 > .button{position:absolute;inset:0}");
8531
8511
  }
8532
8512
 
8533
- function create_fragment$7(ctx) {
8534
- let div1;
8535
- let div0;
8513
+ // (24:2) <Button {onClick} style={_style} {eventName}>
8514
+ function create_default_slot$2(ctx) {
8536
8515
  let current;
8537
- const default_slot_template = /*#slots*/ ctx[2].default;
8538
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
8516
+ const default_slot_template = /*#slots*/ ctx[3].default;
8517
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
8539
8518
 
8540
8519
  return {
8541
8520
  c() {
8542
- div1 = element("div");
8543
- div0 = element("div");
8544
8521
  if (default_slot) default_slot.c();
8545
- this.h();
8546
8522
  },
8547
8523
  l(nodes) {
8548
- div1 = claim_element(nodes, "DIV", { class: true });
8549
- var div1_nodes = children(div1);
8550
- div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
8551
- var div0_nodes = children(div0);
8552
- if (default_slot) default_slot.l(div0_nodes);
8553
- div0_nodes.forEach(detach);
8554
- div1_nodes.forEach(detach);
8555
- this.h();
8556
- },
8557
- h() {
8558
- attr(div0, "class", "box svelte-aept6n");
8559
- attr(div0, "style", /*_style*/ ctx[0]);
8560
- attr(div1, "class", "box-wrapper svelte-aept6n");
8524
+ if (default_slot) default_slot.l(nodes);
8561
8525
  },
8562
8526
  m(target, anchor) {
8563
- insert_hydration(target, div1, anchor);
8564
- append_hydration(div1, div0);
8565
-
8566
8527
  if (default_slot) {
8567
- default_slot.m(div0, null);
8528
+ default_slot.m(target, anchor);
8568
8529
  }
8569
8530
 
8570
8531
  current = true;
8571
8532
  },
8572
- p(ctx, [dirty]) {
8533
+ p(ctx, dirty) {
8573
8534
  if (default_slot) {
8574
- if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
8535
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {
8575
8536
  update_slot_base(
8576
8537
  default_slot,
8577
8538
  default_slot_template,
8578
8539
  ctx,
8579
- /*$$scope*/ ctx[1],
8540
+ /*$$scope*/ ctx[4],
8580
8541
  !current
8581
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
8582
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
8542
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[4])
8543
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),
8583
8544
  null
8584
8545
  );
8585
8546
  }
8586
8547
  }
8587
-
8588
- if (!current || dirty & /*_style*/ 1) {
8589
- attr(div0, "style", /*_style*/ ctx[0]);
8590
- }
8591
8548
  },
8592
8549
  i(local) {
8593
8550
  if (current) return;
@@ -8599,38 +8556,105 @@ function create_fragment$7(ctx) {
8599
8556
  current = false;
8600
8557
  },
8601
8558
  d(detaching) {
8602
- if (detaching) detach(div1);
8603
8559
  if (default_slot) default_slot.d(detaching);
8604
8560
  }
8605
8561
  };
8606
8562
  }
8607
8563
 
8564
+ function create_fragment$7(ctx) {
8565
+ let div;
8566
+ let button;
8567
+ let current;
8568
+
8569
+ button = new Button({
8570
+ props: {
8571
+ onClick: /*onClick*/ ctx[0],
8572
+ style: /*_style*/ ctx[2],
8573
+ eventName: /*eventName*/ ctx[1],
8574
+ $$slots: { default: [create_default_slot$2] },
8575
+ $$scope: { ctx }
8576
+ }
8577
+ });
8578
+
8579
+ return {
8580
+ c() {
8581
+ div = element("div");
8582
+ create_component(button.$$.fragment);
8583
+ this.h();
8584
+ },
8585
+ l(nodes) {
8586
+ div = claim_element(nodes, "DIV", { class: true });
8587
+ var div_nodes = children(div);
8588
+ claim_component(button.$$.fragment, div_nodes);
8589
+ div_nodes.forEach(detach);
8590
+ this.h();
8591
+ },
8592
+ h() {
8593
+ attr(div, "class", "box svelte-1d6pgu1");
8594
+ },
8595
+ m(target, anchor) {
8596
+ insert_hydration(target, div, anchor);
8597
+ mount_component(button, div, null);
8598
+ current = true;
8599
+ },
8600
+ p(ctx, [dirty]) {
8601
+ const button_changes = {};
8602
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8603
+ if (dirty & /*_style*/ 4) button_changes.style = /*_style*/ ctx[2];
8604
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8605
+
8606
+ if (dirty & /*$$scope*/ 16) {
8607
+ button_changes.$$scope = { dirty, ctx };
8608
+ }
8609
+
8610
+ button.$set(button_changes);
8611
+ },
8612
+ i(local) {
8613
+ if (current) return;
8614
+ transition_in(button.$$.fragment, local);
8615
+ current = true;
8616
+ },
8617
+ o(local) {
8618
+ transition_out(button.$$.fragment, local);
8619
+ current = false;
8620
+ },
8621
+ d(detaching) {
8622
+ if (detaching) detach(div);
8623
+ destroy_component(button);
8624
+ }
8625
+ };
8626
+ }
8627
+
8608
8628
  function instance$7($$self, $$props, $$invalidate) {
8609
8629
  let { $$slots: slots = {}, $$scope } = $$props;
8630
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8631
+ let { eventName = '' } = $$props;
8610
8632
  let { _style = '' } = $$props;
8611
8633
 
8612
8634
  $$self.$$set = $$props => {
8613
- if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
8614
- if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
8635
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8636
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8637
+ if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
8638
+ if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);
8615
8639
  };
8616
8640
 
8617
- return [_style, $$scope, slots];
8641
+ return [onClick, eventName, _style, slots, $$scope];
8618
8642
  }
8619
8643
 
8620
8644
  class Box extends SvelteComponent {
8621
8645
  constructor(options) {
8622
8646
  super();
8623
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { _style: 0 }, add_css$6);
8647
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { onClick: 0, eventName: 1, _style: 2 }, add_css$6);
8624
8648
  }
8625
8649
  }
8626
8650
 
8627
8651
  /* src/components/IconElement.svelte generated by Svelte v3.53.1 */
8628
8652
 
8629
8653
  function add_css$5(target) {
8630
- append_styles(target, "svelte-1773k1k", ".icon.svelte-1773k1k{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1773k1k svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
8654
+ append_styles(target, "svelte-1mkvcuo", ".icon.svelte-1mkvcuo{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1mkvcuo > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.icon.svelte-1mkvcuo > .button._disabled{cursor:not-allowed !important;opacity:0.2}.icon.svelte-1mkvcuo svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
8631
8655
  }
8632
8656
 
8633
- // (39:2) {#if svg}
8657
+ // (56:4) {#if svg}
8634
8658
  function create_if_block(ctx) {
8635
8659
  let html_tag;
8636
8660
  let html_anchor;
@@ -8650,11 +8674,11 @@ function create_if_block(ctx) {
8650
8674
  html_tag.a = html_anchor;
8651
8675
  },
8652
8676
  m(target, anchor) {
8653
- html_tag.m(/*svg*/ ctx[1], target, anchor);
8677
+ html_tag.m(/*svg*/ ctx[3], target, anchor);
8654
8678
  insert_hydration(target, html_anchor, anchor);
8655
8679
  },
8656
8680
  p(ctx, dirty) {
8657
- if (dirty & /*svg*/ 2) html_tag.p(/*svg*/ ctx[1]);
8681
+ if (dirty & /*svg*/ 8) html_tag.p(/*svg*/ ctx[3]);
8658
8682
  },
8659
8683
  d(detaching) {
8660
8684
  if (detaching) detach(html_anchor);
@@ -8663,54 +8687,105 @@ function create_if_block(ctx) {
8663
8687
  };
8664
8688
  }
8665
8689
 
8666
- function create_fragment$6(ctx) {
8667
- let div;
8668
- let if_block = /*svg*/ ctx[1] && create_if_block(ctx);
8690
+ // (55:2) <Button {onClick} {style} {eventName}>
8691
+ function create_default_slot$1(ctx) {
8692
+ let if_block_anchor;
8693
+ let if_block = /*svg*/ ctx[3] && create_if_block(ctx);
8669
8694
 
8670
8695
  return {
8671
8696
  c() {
8672
- div = element("div");
8673
8697
  if (if_block) if_block.c();
8674
- this.h();
8698
+ if_block_anchor = empty();
8675
8699
  },
8676
8700
  l(nodes) {
8677
- div = claim_element(nodes, "DIV", { class: true, style: true });
8678
- var div_nodes = children(div);
8679
- if (if_block) if_block.l(div_nodes);
8680
- div_nodes.forEach(detach);
8681
- this.h();
8682
- },
8683
- h() {
8684
- attr(div, "class", "icon svelte-1773k1k");
8685
- attr(div, "style", /*style*/ ctx[0]);
8701
+ if (if_block) if_block.l(nodes);
8702
+ if_block_anchor = empty();
8686
8703
  },
8687
8704
  m(target, anchor) {
8688
- insert_hydration(target, div, anchor);
8689
- if (if_block) if_block.m(div, null);
8705
+ if (if_block) if_block.m(target, anchor);
8706
+ insert_hydration(target, if_block_anchor, anchor);
8690
8707
  },
8691
- p(ctx, [dirty]) {
8692
- if (/*svg*/ ctx[1]) {
8708
+ p(ctx, dirty) {
8709
+ if (/*svg*/ ctx[3]) {
8693
8710
  if (if_block) {
8694
8711
  if_block.p(ctx, dirty);
8695
8712
  } else {
8696
8713
  if_block = create_if_block(ctx);
8697
8714
  if_block.c();
8698
- if_block.m(div, null);
8715
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8699
8716
  }
8700
8717
  } else if (if_block) {
8701
8718
  if_block.d(1);
8702
8719
  if_block = null;
8703
8720
  }
8721
+ },
8722
+ d(detaching) {
8723
+ if (if_block) if_block.d(detaching);
8724
+ if (detaching) detach(if_block_anchor);
8725
+ }
8726
+ };
8727
+ }
8704
8728
 
8705
- if (dirty & /*style*/ 1) {
8706
- attr(div, "style", /*style*/ ctx[0]);
8729
+ function create_fragment$6(ctx) {
8730
+ let div;
8731
+ let button;
8732
+ let current;
8733
+
8734
+ button = new Button({
8735
+ props: {
8736
+ onClick: /*onClick*/ ctx[0],
8737
+ style: /*style*/ ctx[2],
8738
+ eventName: /*eventName*/ ctx[1],
8739
+ $$slots: { default: [create_default_slot$1] },
8740
+ $$scope: { ctx }
8707
8741
  }
8742
+ });
8743
+
8744
+ return {
8745
+ c() {
8746
+ div = element("div");
8747
+ create_component(button.$$.fragment);
8748
+ this.h();
8749
+ },
8750
+ l(nodes) {
8751
+ div = claim_element(nodes, "DIV", { class: true });
8752
+ var div_nodes = children(div);
8753
+ claim_component(button.$$.fragment, div_nodes);
8754
+ div_nodes.forEach(detach);
8755
+ this.h();
8756
+ },
8757
+ h() {
8758
+ attr(div, "class", "icon svelte-1mkvcuo");
8759
+ },
8760
+ m(target, anchor) {
8761
+ insert_hydration(target, div, anchor);
8762
+ mount_component(button, div, null);
8763
+ current = true;
8764
+ },
8765
+ p(ctx, [dirty]) {
8766
+ const button_changes = {};
8767
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8768
+ if (dirty & /*style*/ 4) button_changes.style = /*style*/ ctx[2];
8769
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8770
+
8771
+ if (dirty & /*$$scope, svg*/ 520) {
8772
+ button_changes.$$scope = { dirty, ctx };
8773
+ }
8774
+
8775
+ button.$set(button_changes);
8776
+ },
8777
+ i(local) {
8778
+ if (current) return;
8779
+ transition_in(button.$$.fragment, local);
8780
+ current = true;
8781
+ },
8782
+ o(local) {
8783
+ transition_out(button.$$.fragment, local);
8784
+ current = false;
8708
8785
  },
8709
- i: noop,
8710
- o: noop,
8711
8786
  d(detaching) {
8712
8787
  if (detaching) detach(div);
8713
- if (if_block) if_block.d();
8788
+ destroy_component(button);
8714
8789
  }
8715
8790
  };
8716
8791
  }
@@ -8727,42 +8802,62 @@ function instance$6($$self, $$props, $$invalidate) {
8727
8802
  let styleVariables;
8728
8803
  let style;
8729
8804
  let { icon = '' } = $$props;
8805
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8806
+ let { eventName = '' } = $$props;
8730
8807
  let { size = '20px' } = $$props;
8731
8808
  let { color = 'rgba(0, 16, 14, 0.8)' } = $$props;
8732
8809
  let { _style = '' } = $$props;
8733
8810
 
8734
8811
  $$self.$$set = $$props => {
8735
- if ('icon' in $$props) $$invalidate(2, icon = $$props.icon);
8736
- if ('size' in $$props) $$invalidate(3, size = $$props.size);
8737
- if ('color' in $$props) $$invalidate(4, color = $$props.color);
8738
- if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
8812
+ if ('icon' in $$props) $$invalidate(4, icon = $$props.icon);
8813
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8814
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8815
+ if ('size' in $$props) $$invalidate(5, size = $$props.size);
8816
+ if ('color' in $$props) $$invalidate(6, color = $$props.color);
8817
+ if ('_style' in $$props) $$invalidate(7, _style = $$props._style);
8739
8818
  };
8740
8819
 
8741
8820
  $$self.$$.update = () => {
8742
- if ($$self.$$.dirty & /*icon*/ 4) {
8743
- $$invalidate(1, svg = (() => {
8821
+ if ($$self.$$.dirty & /*icon*/ 16) {
8822
+ $$invalidate(3, svg = (() => {
8744
8823
  if (!icon) return;
8745
8824
  const original = parseData(icon);
8746
8825
  return original;
8747
8826
  })());
8748
8827
  }
8749
8828
 
8750
- if ($$self.$$.dirty & /*size, color*/ 24) {
8751
- $$invalidate(6, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8829
+ if ($$self.$$.dirty & /*size, color*/ 96) {
8830
+ $$invalidate(8, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8752
8831
  }
8753
8832
 
8754
- if ($$self.$$.dirty & /*_style, styleVariables*/ 96) {
8755
- $$invalidate(0, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8833
+ if ($$self.$$.dirty & /*_style, styleVariables*/ 384) {
8834
+ $$invalidate(2, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8756
8835
  }
8757
8836
  };
8758
8837
 
8759
- return [style, svg, icon, size, color, _style, styleVariables];
8838
+ return [onClick, eventName, style, svg, icon, size, color, _style, styleVariables];
8760
8839
  }
8761
8840
 
8762
8841
  class IconElement extends SvelteComponent {
8763
8842
  constructor(options) {
8764
8843
  super();
8765
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { icon: 2, size: 3, color: 4, _style: 5 }, add_css$5);
8844
+
8845
+ init(
8846
+ this,
8847
+ options,
8848
+ instance$6,
8849
+ create_fragment$6,
8850
+ safe_not_equal,
8851
+ {
8852
+ icon: 4,
8853
+ onClick: 0,
8854
+ eventName: 1,
8855
+ size: 5,
8856
+ color: 6,
8857
+ _style: 7
8858
+ },
8859
+ add_css$5
8860
+ );
8766
8861
  }
8767
8862
  }
8768
8863
 
package/dist/index.es.js CHANGED
@@ -1124,26 +1124,6 @@ async function loadGlobalStyle(href) {
1124
1124
  link.addEventListener('error', () => reject(link));
1125
1125
  });
1126
1126
  }
1127
- /**
1128
- * {@link hashCode} generate hash with FNV-1a hash
1129
- *
1130
- * @param s - Inputed string
1131
- *
1132
- * @returns Hashed string
1133
- *
1134
- * @see https://stackoverflow.com/a/22429679
1135
- *
1136
- * @internal
1137
- */
1138
- function hashCode(s) {
1139
- const SEED = 0x41653150;
1140
- let hash = SEED;
1141
- Array.from(s).forEach((c, index) => {
1142
- hash ^= c.charCodeAt(index);
1143
- hash += (hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);
1144
- });
1145
- return ('0000000' + (hash >>> 0).toString(16)).substr(-8);
1146
- }
1147
1127
 
1148
1128
  /**
1149
1129
  * アクションのログの記録の管理
@@ -3153,7 +3133,7 @@ function create_if_block$5(ctx) {
3153
3133
  onClick: /*onClick*/ ctx[0],
3154
3134
  eventName: /*clickEventName*/ ctx[1],
3155
3135
  eventValue: /*clickEventValue*/ ctx[2],
3156
- $$slots: { default: [create_default_slot$4] },
3136
+ $$slots: { default: [create_default_slot$6] },
3157
3137
  $$scope: { ctx }
3158
3138
  }
3159
3139
  });
@@ -3315,7 +3295,7 @@ function create_default_slot_1$1(ctx) {
3315
3295
  }
3316
3296
 
3317
3297
  // (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
3318
- function create_default_slot$4(ctx) {
3298
+ function create_default_slot$6(ctx) {
3319
3299
  let t;
3320
3300
  let div;
3321
3301
  let current;
@@ -3837,8 +3817,8 @@ function create_fragment$q(ctx) {
3837
3817
  if (default_slot) default_slot.c();
3838
3818
  attr(div0, "class", "grid-item-inner svelte-n7kdl3");
3839
3819
  attr(div1, "class", "grid-item svelte-n7kdl3");
3840
- attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[1]);
3841
- attr(div1, "style", /*_style*/ ctx[0]);
3820
+ attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3821
+ attr(div1, "style", /*_style*/ ctx[1]);
3842
3822
  },
3843
3823
  m(target, anchor) {
3844
3824
  insert(target, div1, anchor);
@@ -3866,8 +3846,12 @@ function create_fragment$q(ctx) {
3866
3846
  }
3867
3847
  }
3868
3848
 
3869
- if (!current || dirty & /*_style*/ 1) {
3870
- attr(div1, "style", /*_style*/ ctx[0]);
3849
+ if (!current || dirty & /*id*/ 1) {
3850
+ attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3851
+ }
3852
+
3853
+ if (!current || dirty & /*_style*/ 2) {
3854
+ attr(div1, "style", /*_style*/ ctx[1]);
3871
3855
  }
3872
3856
  },
3873
3857
  i(local) {
@@ -3895,13 +3879,7 @@ function instance$q($$self, $$props, $$invalidate) {
3895
3879
  let { y2 } = $$props;
3896
3880
  let { z } = $$props;
3897
3881
  let { background = 'transparent' } = $$props;
3898
- let gridItemIdRaw = `${y1}-${x1}-${y2}-${x2}`;
3899
-
3900
- if (z) {
3901
- gridItemIdRaw += `-${z}`;
3902
- }
3903
-
3904
- const gridItemId = hashCode(gridItemIdRaw);
3882
+ let { id } = $$props;
3905
3883
 
3906
3884
  onMount(() => {
3907
3885
  setMaximumZindex(z);
@@ -3914,12 +3892,13 @@ function instance$q($$self, $$props, $$invalidate) {
3914
3892
  if ('y2' in $$props) $$invalidate(5, y2 = $$props.y2);
3915
3893
  if ('z' in $$props) $$invalidate(6, z = $$props.z);
3916
3894
  if ('background' in $$props) $$invalidate(7, background = $$props.background);
3895
+ if ('id' in $$props) $$invalidate(0, id = $$props.id);
3917
3896
  if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
3918
3897
  };
3919
3898
 
3920
3899
  $$self.$$.update = () => {
3921
3900
  if ($$self.$$.dirty & /*y1, x1, y2, x2, z, background*/ 252) {
3922
- $$invalidate(0, _style = [
3901
+ $$invalidate(1, _style = [
3923
3902
  `grid-area: ${y1 + 1} / ${x1 + 1} / ${y2 + 2} / ${x2 + 2}`,
3924
3903
  `z-index: ${z}`,
3925
3904
  `background: ${background}`,
@@ -3929,7 +3908,7 @@ function instance$q($$self, $$props, $$invalidate) {
3929
3908
  }
3930
3909
  };
3931
3910
 
3932
- return [_style, gridItemId, x1, x2, y1, y2, z, background, $$scope, slots];
3911
+ return [id, _style, x1, x2, y1, y2, z, background, $$scope, slots];
3933
3912
  }
3934
3913
 
3935
3914
  class GridItem extends SvelteComponent {
@@ -3948,7 +3927,8 @@ class GridItem extends SvelteComponent {
3948
3927
  y1: 4,
3949
3928
  y2: 5,
3950
3929
  z: 6,
3951
- background: 7
3930
+ background: 7,
3931
+ id: 0
3952
3932
  },
3953
3933
  add_css$o
3954
3934
  );
@@ -4369,7 +4349,7 @@ function add_css$m(target) {
4369
4349
  }
4370
4350
 
4371
4351
  // (36:2) <Button onClick={onClick} {style} {eventName}>
4372
- function create_default_slot$3(ctx) {
4352
+ function create_default_slot$5(ctx) {
4373
4353
  let rendertext;
4374
4354
  let current;
4375
4355
  rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
@@ -4415,7 +4395,7 @@ function create_fragment$n(ctx) {
4415
4395
  onClick: /*onClick*/ ctx[1],
4416
4396
  style: /*style*/ ctx[3],
4417
4397
  eventName: /*eventName*/ ctx[2],
4418
- $$slots: { default: [create_default_slot$3] },
4398
+ $$slots: { default: [create_default_slot$5] },
4419
4399
  $$scope: { ctx }
4420
4400
  }
4421
4401
  });
@@ -4523,7 +4503,7 @@ function add_css$l(target) {
4523
4503
  }
4524
4504
 
4525
4505
  // (40:2) <Button {onClick} style={_style} {eventName}>
4526
- function create_default_slot$2(ctx) {
4506
+ function create_default_slot$4(ctx) {
4527
4507
  let img;
4528
4508
  let img_src_value;
4529
4509
 
@@ -4571,7 +4551,7 @@ function create_fragment$m(ctx) {
4571
4551
  onClick: /*onClick*/ ctx[3],
4572
4552
  style: /*_style*/ ctx[6],
4573
4553
  eventName: /*eventName*/ ctx[4],
4574
- $$slots: { default: [create_default_slot$2] },
4554
+ $$slots: { default: [create_default_slot$4] },
4575
4555
  $$scope: { ctx }
4576
4556
  }
4577
4557
  });
@@ -4819,7 +4799,7 @@ function add_css$j(target) {
4819
4799
  }
4820
4800
 
4821
4801
  // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
4822
- function create_default_slot$1(ctx) {
4802
+ function create_default_slot$3(ctx) {
4823
4803
  let current;
4824
4804
  const default_slot_template = /*#slots*/ ctx[5].default;
4825
4805
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
@@ -4876,7 +4856,7 @@ function create_fragment$k(ctx) {
4876
4856
  onClick: /*onClick*/ ctx[0],
4877
4857
  style: /*_style*/ ctx[2],
4878
4858
  eventName: /*clickEventName*/ ctx[1],
4879
- $$slots: { default: [create_default_slot$1] },
4859
+ $$slots: { default: [create_default_slot$3] },
4880
4860
  $$scope: { ctx }
4881
4861
  }
4882
4862
  });
@@ -8018,54 +7998,41 @@ class Countdown extends SvelteComponent {
8018
7998
  /* src/components/Box.svelte generated by Svelte v3.53.1 */
8019
7999
 
8020
8000
  function add_css$6(target) {
8021
- append_styles(target, "svelte-aept6n", ".box-wrapper.svelte-aept6n{position:relative;width:100%;height:100%}.box.svelte-aept6n{position:absolute;inset:0}");
8001
+ append_styles(target, "svelte-1d6pgu1", ".box.svelte-1d6pgu1{position:relative;width:100%;height:100%}.box.svelte-1d6pgu1 > .button{position:absolute;inset:0}");
8022
8002
  }
8023
8003
 
8024
- function create_fragment$7(ctx) {
8025
- let div1;
8026
- let div0;
8004
+ // (24:2) <Button {onClick} style={_style} {eventName}>
8005
+ function create_default_slot$2(ctx) {
8027
8006
  let current;
8028
- const default_slot_template = /*#slots*/ ctx[2].default;
8029
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
8007
+ const default_slot_template = /*#slots*/ ctx[3].default;
8008
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
8030
8009
 
8031
8010
  return {
8032
8011
  c() {
8033
- div1 = element("div");
8034
- div0 = element("div");
8035
8012
  if (default_slot) default_slot.c();
8036
- attr(div0, "class", "box svelte-aept6n");
8037
- attr(div0, "style", /*_style*/ ctx[0]);
8038
- attr(div1, "class", "box-wrapper svelte-aept6n");
8039
8013
  },
8040
8014
  m(target, anchor) {
8041
- insert(target, div1, anchor);
8042
- append(div1, div0);
8043
-
8044
8015
  if (default_slot) {
8045
- default_slot.m(div0, null);
8016
+ default_slot.m(target, anchor);
8046
8017
  }
8047
8018
 
8048
8019
  current = true;
8049
8020
  },
8050
- p(ctx, [dirty]) {
8021
+ p(ctx, dirty) {
8051
8022
  if (default_slot) {
8052
- if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
8023
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {
8053
8024
  update_slot_base(
8054
8025
  default_slot,
8055
8026
  default_slot_template,
8056
8027
  ctx,
8057
- /*$$scope*/ ctx[1],
8028
+ /*$$scope*/ ctx[4],
8058
8029
  !current
8059
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
8060
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
8030
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[4])
8031
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),
8061
8032
  null
8062
8033
  );
8063
8034
  }
8064
8035
  }
8065
-
8066
- if (!current || dirty & /*_style*/ 1) {
8067
- attr(div0, "style", /*_style*/ ctx[0]);
8068
- }
8069
8036
  },
8070
8037
  i(local) {
8071
8038
  if (current) return;
@@ -8077,38 +8044,95 @@ function create_fragment$7(ctx) {
8077
8044
  current = false;
8078
8045
  },
8079
8046
  d(detaching) {
8080
- if (detaching) detach(div1);
8081
8047
  if (default_slot) default_slot.d(detaching);
8082
8048
  }
8083
8049
  };
8084
8050
  }
8085
8051
 
8052
+ function create_fragment$7(ctx) {
8053
+ let div;
8054
+ let button;
8055
+ let current;
8056
+
8057
+ button = new Button({
8058
+ props: {
8059
+ onClick: /*onClick*/ ctx[0],
8060
+ style: /*_style*/ ctx[2],
8061
+ eventName: /*eventName*/ ctx[1],
8062
+ $$slots: { default: [create_default_slot$2] },
8063
+ $$scope: { ctx }
8064
+ }
8065
+ });
8066
+
8067
+ return {
8068
+ c() {
8069
+ div = element("div");
8070
+ create_component(button.$$.fragment);
8071
+ attr(div, "class", "box svelte-1d6pgu1");
8072
+ },
8073
+ m(target, anchor) {
8074
+ insert(target, div, anchor);
8075
+ mount_component(button, div, null);
8076
+ current = true;
8077
+ },
8078
+ p(ctx, [dirty]) {
8079
+ const button_changes = {};
8080
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8081
+ if (dirty & /*_style*/ 4) button_changes.style = /*_style*/ ctx[2];
8082
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8083
+
8084
+ if (dirty & /*$$scope*/ 16) {
8085
+ button_changes.$$scope = { dirty, ctx };
8086
+ }
8087
+
8088
+ button.$set(button_changes);
8089
+ },
8090
+ i(local) {
8091
+ if (current) return;
8092
+ transition_in(button.$$.fragment, local);
8093
+ current = true;
8094
+ },
8095
+ o(local) {
8096
+ transition_out(button.$$.fragment, local);
8097
+ current = false;
8098
+ },
8099
+ d(detaching) {
8100
+ if (detaching) detach(div);
8101
+ destroy_component(button);
8102
+ }
8103
+ };
8104
+ }
8105
+
8086
8106
  function instance$7($$self, $$props, $$invalidate) {
8087
8107
  let { $$slots: slots = {}, $$scope } = $$props;
8108
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8109
+ let { eventName = '' } = $$props;
8088
8110
  let { _style = '' } = $$props;
8089
8111
 
8090
8112
  $$self.$$set = $$props => {
8091
- if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
8092
- if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
8113
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8114
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8115
+ if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
8116
+ if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);
8093
8117
  };
8094
8118
 
8095
- return [_style, $$scope, slots];
8119
+ return [onClick, eventName, _style, slots, $$scope];
8096
8120
  }
8097
8121
 
8098
8122
  class Box extends SvelteComponent {
8099
8123
  constructor(options) {
8100
8124
  super();
8101
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { _style: 0 }, add_css$6);
8125
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { onClick: 0, eventName: 1, _style: 2 }, add_css$6);
8102
8126
  }
8103
8127
  }
8104
8128
 
8105
8129
  /* src/components/IconElement.svelte generated by Svelte v3.53.1 */
8106
8130
 
8107
8131
  function add_css$5(target) {
8108
- append_styles(target, "svelte-1773k1k", ".icon.svelte-1773k1k{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1773k1k svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
8132
+ append_styles(target, "svelte-1mkvcuo", ".icon.svelte-1mkvcuo{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1mkvcuo > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.icon.svelte-1mkvcuo > .button._disabled{cursor:not-allowed !important;opacity:0.2}.icon.svelte-1mkvcuo svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
8109
8133
  }
8110
8134
 
8111
- // (39:2) {#if svg}
8135
+ // (56:4) {#if svg}
8112
8136
  function create_if_block(ctx) {
8113
8137
  let html_tag;
8114
8138
  let html_anchor;
@@ -8120,11 +8144,11 @@ function create_if_block(ctx) {
8120
8144
  html_tag.a = html_anchor;
8121
8145
  },
8122
8146
  m(target, anchor) {
8123
- html_tag.m(/*svg*/ ctx[1], target, anchor);
8147
+ html_tag.m(/*svg*/ ctx[3], target, anchor);
8124
8148
  insert(target, html_anchor, anchor);
8125
8149
  },
8126
8150
  p(ctx, dirty) {
8127
- if (dirty & /*svg*/ 2) html_tag.p(/*svg*/ ctx[1]);
8151
+ if (dirty & /*svg*/ 8) html_tag.p(/*svg*/ ctx[3]);
8128
8152
  },
8129
8153
  d(detaching) {
8130
8154
  if (detaching) detach(html_anchor);
@@ -8133,44 +8157,91 @@ function create_if_block(ctx) {
8133
8157
  };
8134
8158
  }
8135
8159
 
8136
- function create_fragment$6(ctx) {
8137
- let div;
8138
- let if_block = /*svg*/ ctx[1] && create_if_block(ctx);
8160
+ // (55:2) <Button {onClick} {style} {eventName}>
8161
+ function create_default_slot$1(ctx) {
8162
+ let if_block_anchor;
8163
+ let if_block = /*svg*/ ctx[3] && create_if_block(ctx);
8139
8164
 
8140
8165
  return {
8141
8166
  c() {
8142
- div = element("div");
8143
8167
  if (if_block) if_block.c();
8144
- attr(div, "class", "icon svelte-1773k1k");
8145
- attr(div, "style", /*style*/ ctx[0]);
8168
+ if_block_anchor = empty();
8146
8169
  },
8147
8170
  m(target, anchor) {
8148
- insert(target, div, anchor);
8149
- if (if_block) if_block.m(div, null);
8171
+ if (if_block) if_block.m(target, anchor);
8172
+ insert(target, if_block_anchor, anchor);
8150
8173
  },
8151
- p(ctx, [dirty]) {
8152
- if (/*svg*/ ctx[1]) {
8174
+ p(ctx, dirty) {
8175
+ if (/*svg*/ ctx[3]) {
8153
8176
  if (if_block) {
8154
8177
  if_block.p(ctx, dirty);
8155
8178
  } else {
8156
8179
  if_block = create_if_block(ctx);
8157
8180
  if_block.c();
8158
- if_block.m(div, null);
8181
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8159
8182
  }
8160
8183
  } else if (if_block) {
8161
8184
  if_block.d(1);
8162
8185
  if_block = null;
8163
8186
  }
8187
+ },
8188
+ d(detaching) {
8189
+ if (if_block) if_block.d(detaching);
8190
+ if (detaching) detach(if_block_anchor);
8191
+ }
8192
+ };
8193
+ }
8164
8194
 
8165
- if (dirty & /*style*/ 1) {
8166
- attr(div, "style", /*style*/ ctx[0]);
8195
+ function create_fragment$6(ctx) {
8196
+ let div;
8197
+ let button;
8198
+ let current;
8199
+
8200
+ button = new Button({
8201
+ props: {
8202
+ onClick: /*onClick*/ ctx[0],
8203
+ style: /*style*/ ctx[2],
8204
+ eventName: /*eventName*/ ctx[1],
8205
+ $$slots: { default: [create_default_slot$1] },
8206
+ $$scope: { ctx }
8167
8207
  }
8208
+ });
8209
+
8210
+ return {
8211
+ c() {
8212
+ div = element("div");
8213
+ create_component(button.$$.fragment);
8214
+ attr(div, "class", "icon svelte-1mkvcuo");
8215
+ },
8216
+ m(target, anchor) {
8217
+ insert(target, div, anchor);
8218
+ mount_component(button, div, null);
8219
+ current = true;
8220
+ },
8221
+ p(ctx, [dirty]) {
8222
+ const button_changes = {};
8223
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8224
+ if (dirty & /*style*/ 4) button_changes.style = /*style*/ ctx[2];
8225
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8226
+
8227
+ if (dirty & /*$$scope, svg*/ 520) {
8228
+ button_changes.$$scope = { dirty, ctx };
8229
+ }
8230
+
8231
+ button.$set(button_changes);
8232
+ },
8233
+ i(local) {
8234
+ if (current) return;
8235
+ transition_in(button.$$.fragment, local);
8236
+ current = true;
8237
+ },
8238
+ o(local) {
8239
+ transition_out(button.$$.fragment, local);
8240
+ current = false;
8168
8241
  },
8169
- i: noop,
8170
- o: noop,
8171
8242
  d(detaching) {
8172
8243
  if (detaching) detach(div);
8173
- if (if_block) if_block.d();
8244
+ destroy_component(button);
8174
8245
  }
8175
8246
  };
8176
8247
  }
@@ -8187,42 +8258,62 @@ function instance$6($$self, $$props, $$invalidate) {
8187
8258
  let styleVariables;
8188
8259
  let style;
8189
8260
  let { icon = '' } = $$props;
8261
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8262
+ let { eventName = '' } = $$props;
8190
8263
  let { size = '20px' } = $$props;
8191
8264
  let { color = 'rgba(0, 16, 14, 0.8)' } = $$props;
8192
8265
  let { _style = '' } = $$props;
8193
8266
 
8194
8267
  $$self.$$set = $$props => {
8195
- if ('icon' in $$props) $$invalidate(2, icon = $$props.icon);
8196
- if ('size' in $$props) $$invalidate(3, size = $$props.size);
8197
- if ('color' in $$props) $$invalidate(4, color = $$props.color);
8198
- if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
8268
+ if ('icon' in $$props) $$invalidate(4, icon = $$props.icon);
8269
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8270
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8271
+ if ('size' in $$props) $$invalidate(5, size = $$props.size);
8272
+ if ('color' in $$props) $$invalidate(6, color = $$props.color);
8273
+ if ('_style' in $$props) $$invalidate(7, _style = $$props._style);
8199
8274
  };
8200
8275
 
8201
8276
  $$self.$$.update = () => {
8202
- if ($$self.$$.dirty & /*icon*/ 4) {
8203
- $$invalidate(1, svg = (() => {
8277
+ if ($$self.$$.dirty & /*icon*/ 16) {
8278
+ $$invalidate(3, svg = (() => {
8204
8279
  if (!icon) return;
8205
8280
  const original = parseData(icon);
8206
8281
  return original;
8207
8282
  })());
8208
8283
  }
8209
8284
 
8210
- if ($$self.$$.dirty & /*size, color*/ 24) {
8211
- $$invalidate(6, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8285
+ if ($$self.$$.dirty & /*size, color*/ 96) {
8286
+ $$invalidate(8, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8212
8287
  }
8213
8288
 
8214
- if ($$self.$$.dirty & /*_style, styleVariables*/ 96) {
8215
- $$invalidate(0, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8289
+ if ($$self.$$.dirty & /*_style, styleVariables*/ 384) {
8290
+ $$invalidate(2, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8216
8291
  }
8217
8292
  };
8218
8293
 
8219
- return [style, svg, icon, size, color, _style, styleVariables];
8294
+ return [onClick, eventName, style, svg, icon, size, color, _style, styleVariables];
8220
8295
  }
8221
8296
 
8222
8297
  class IconElement extends SvelteComponent {
8223
8298
  constructor(options) {
8224
8299
  super();
8225
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { icon: 2, size: 3, color: 4, _style: 5 }, add_css$5);
8300
+
8301
+ init(
8302
+ this,
8303
+ options,
8304
+ instance$6,
8305
+ create_fragment$6,
8306
+ safe_not_equal,
8307
+ {
8308
+ icon: 4,
8309
+ onClick: 0,
8310
+ eventName: 1,
8311
+ size: 5,
8312
+ color: 6,
8313
+ _style: 7
8314
+ },
8315
+ add_css$5
8316
+ );
8226
8317
  }
8227
8318
  }
8228
8319
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.156-28004326.6f979cf9",
3
+ "version": "1.1.156-28011566.cc9ca327",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",