@plaidev/karte-action-sdk 1.1.156-28004326.6f979cf9 → 1.1.156-28011287.2697070d

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.
@@ -3127,7 +3127,7 @@ function create_if_block$5(ctx) {
3127
3127
  onClick: /*onClick*/ ctx[0],
3128
3128
  eventName: /*clickEventName*/ ctx[1],
3129
3129
  eventValue: /*clickEventValue*/ ctx[2],
3130
- $$slots: { default: [create_default_slot$4] },
3130
+ $$slots: { default: [create_default_slot$6] },
3131
3131
  $$scope: { ctx }
3132
3132
  }
3133
3133
  });
@@ -3339,7 +3339,7 @@ function create_default_slot_1$1(ctx) {
3339
3339
  }
3340
3340
 
3341
3341
  // (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
3342
- function create_default_slot$4(ctx) {
3342
+ function create_default_slot$6(ctx) {
3343
3343
  let t;
3344
3344
  let div;
3345
3345
  let current;
@@ -4498,7 +4498,7 @@ function add_css$m(target) {
4498
4498
  }
4499
4499
 
4500
4500
  // (36:2) <Button onClick={onClick} {style} {eventName}>
4501
- function create_default_slot$3(ctx) {
4501
+ function create_default_slot$5(ctx) {
4502
4502
  let rendertext;
4503
4503
  let current;
4504
4504
  rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
@@ -4547,7 +4547,7 @@ function create_fragment$n(ctx) {
4547
4547
  onClick: /*onClick*/ ctx[1],
4548
4548
  style: /*style*/ ctx[3],
4549
4549
  eventName: /*eventName*/ ctx[2],
4550
- $$slots: { default: [create_default_slot$3] },
4550
+ $$slots: { default: [create_default_slot$5] },
4551
4551
  $$scope: { ctx }
4552
4552
  }
4553
4553
  });
@@ -4667,7 +4667,7 @@ function add_css$l(target) {
4667
4667
  }
4668
4668
 
4669
4669
  // (40:2) <Button {onClick} style={_style} {eventName}>
4670
- function create_default_slot$2(ctx) {
4670
+ function create_default_slot$4(ctx) {
4671
4671
  let img;
4672
4672
  let img_src_value;
4673
4673
 
@@ -4731,7 +4731,7 @@ function create_fragment$m(ctx) {
4731
4731
  onClick: /*onClick*/ ctx[3],
4732
4732
  style: /*_style*/ ctx[6],
4733
4733
  eventName: /*eventName*/ ctx[4],
4734
- $$slots: { default: [create_default_slot$2] },
4734
+ $$slots: { default: [create_default_slot$4] },
4735
4735
  $$scope: { ctx }
4736
4736
  }
4737
4737
  });
@@ -4999,7 +4999,7 @@ function add_css$j(target) {
4999
4999
  }
5000
5000
 
5001
5001
  // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
5002
- function create_default_slot$1(ctx) {
5002
+ function create_default_slot$3(ctx) {
5003
5003
  let current;
5004
5004
  const default_slot_template = /*#slots*/ ctx[5].default;
5005
5005
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
@@ -5059,7 +5059,7 @@ function create_fragment$k(ctx) {
5059
5059
  onClick: /*onClick*/ ctx[0],
5060
5060
  style: /*_style*/ ctx[2],
5061
5061
  eventName: /*clickEventName*/ ctx[1],
5062
- $$slots: { default: [create_default_slot$1] },
5062
+ $$slots: { default: [create_default_slot$3] },
5063
5063
  $$scope: { ctx }
5064
5064
  }
5065
5065
  });
@@ -8527,67 +8527,44 @@ class Countdown extends SvelteComponent {
8527
8527
  /* src/components/Box.svelte generated by Svelte v3.53.1 */
8528
8528
 
8529
8529
  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}");
8530
+ append_styles(target, "svelte-1d6pgu1", ".box.svelte-1d6pgu1{position:relative;width:100%;height:100%}.box.svelte-1d6pgu1 > .button{position:absolute;inset:0}");
8531
8531
  }
8532
8532
 
8533
- function create_fragment$7(ctx) {
8534
- let div1;
8535
- let div0;
8533
+ // (24:2) <Button {onClick} style={_style} {eventName}>
8534
+ function create_default_slot$2(ctx) {
8536
8535
  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);
8536
+ const default_slot_template = /*#slots*/ ctx[3].default;
8537
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
8539
8538
 
8540
8539
  return {
8541
8540
  c() {
8542
- div1 = element("div");
8543
- div0 = element("div");
8544
8541
  if (default_slot) default_slot.c();
8545
- this.h();
8546
8542
  },
8547
8543
  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");
8544
+ if (default_slot) default_slot.l(nodes);
8561
8545
  },
8562
8546
  m(target, anchor) {
8563
- insert_hydration(target, div1, anchor);
8564
- append_hydration(div1, div0);
8565
-
8566
8547
  if (default_slot) {
8567
- default_slot.m(div0, null);
8548
+ default_slot.m(target, anchor);
8568
8549
  }
8569
8550
 
8570
8551
  current = true;
8571
8552
  },
8572
- p(ctx, [dirty]) {
8553
+ p(ctx, dirty) {
8573
8554
  if (default_slot) {
8574
- if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
8555
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {
8575
8556
  update_slot_base(
8576
8557
  default_slot,
8577
8558
  default_slot_template,
8578
8559
  ctx,
8579
- /*$$scope*/ ctx[1],
8560
+ /*$$scope*/ ctx[4],
8580
8561
  !current
8581
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
8582
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
8562
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[4])
8563
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),
8583
8564
  null
8584
8565
  );
8585
8566
  }
8586
8567
  }
8587
-
8588
- if (!current || dirty & /*_style*/ 1) {
8589
- attr(div0, "style", /*_style*/ ctx[0]);
8590
- }
8591
8568
  },
8592
8569
  i(local) {
8593
8570
  if (current) return;
@@ -8599,38 +8576,105 @@ function create_fragment$7(ctx) {
8599
8576
  current = false;
8600
8577
  },
8601
8578
  d(detaching) {
8602
- if (detaching) detach(div1);
8603
8579
  if (default_slot) default_slot.d(detaching);
8604
8580
  }
8605
8581
  };
8606
8582
  }
8607
8583
 
8584
+ function create_fragment$7(ctx) {
8585
+ let div;
8586
+ let button;
8587
+ let current;
8588
+
8589
+ button = new Button({
8590
+ props: {
8591
+ onClick: /*onClick*/ ctx[0],
8592
+ style: /*_style*/ ctx[2],
8593
+ eventName: /*eventName*/ ctx[1],
8594
+ $$slots: { default: [create_default_slot$2] },
8595
+ $$scope: { ctx }
8596
+ }
8597
+ });
8598
+
8599
+ return {
8600
+ c() {
8601
+ div = element("div");
8602
+ create_component(button.$$.fragment);
8603
+ this.h();
8604
+ },
8605
+ l(nodes) {
8606
+ div = claim_element(nodes, "DIV", { class: true });
8607
+ var div_nodes = children(div);
8608
+ claim_component(button.$$.fragment, div_nodes);
8609
+ div_nodes.forEach(detach);
8610
+ this.h();
8611
+ },
8612
+ h() {
8613
+ attr(div, "class", "box svelte-1d6pgu1");
8614
+ },
8615
+ m(target, anchor) {
8616
+ insert_hydration(target, div, anchor);
8617
+ mount_component(button, div, null);
8618
+ current = true;
8619
+ },
8620
+ p(ctx, [dirty]) {
8621
+ const button_changes = {};
8622
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8623
+ if (dirty & /*_style*/ 4) button_changes.style = /*_style*/ ctx[2];
8624
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8625
+
8626
+ if (dirty & /*$$scope*/ 16) {
8627
+ button_changes.$$scope = { dirty, ctx };
8628
+ }
8629
+
8630
+ button.$set(button_changes);
8631
+ },
8632
+ i(local) {
8633
+ if (current) return;
8634
+ transition_in(button.$$.fragment, local);
8635
+ current = true;
8636
+ },
8637
+ o(local) {
8638
+ transition_out(button.$$.fragment, local);
8639
+ current = false;
8640
+ },
8641
+ d(detaching) {
8642
+ if (detaching) detach(div);
8643
+ destroy_component(button);
8644
+ }
8645
+ };
8646
+ }
8647
+
8608
8648
  function instance$7($$self, $$props, $$invalidate) {
8609
8649
  let { $$slots: slots = {}, $$scope } = $$props;
8650
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8651
+ let { eventName = '' } = $$props;
8610
8652
  let { _style = '' } = $$props;
8611
8653
 
8612
8654
  $$self.$$set = $$props => {
8613
- if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
8614
- if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
8655
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8656
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8657
+ if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
8658
+ if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);
8615
8659
  };
8616
8660
 
8617
- return [_style, $$scope, slots];
8661
+ return [onClick, eventName, _style, slots, $$scope];
8618
8662
  }
8619
8663
 
8620
8664
  class Box extends SvelteComponent {
8621
8665
  constructor(options) {
8622
8666
  super();
8623
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { _style: 0 }, add_css$6);
8667
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { onClick: 0, eventName: 1, _style: 2 }, add_css$6);
8624
8668
  }
8625
8669
  }
8626
8670
 
8627
8671
  /* src/components/IconElement.svelte generated by Svelte v3.53.1 */
8628
8672
 
8629
8673
  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)}");
8674
+ 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
8675
  }
8632
8676
 
8633
- // (39:2) {#if svg}
8677
+ // (56:4) {#if svg}
8634
8678
  function create_if_block(ctx) {
8635
8679
  let html_tag;
8636
8680
  let html_anchor;
@@ -8650,11 +8694,11 @@ function create_if_block(ctx) {
8650
8694
  html_tag.a = html_anchor;
8651
8695
  },
8652
8696
  m(target, anchor) {
8653
- html_tag.m(/*svg*/ ctx[1], target, anchor);
8697
+ html_tag.m(/*svg*/ ctx[3], target, anchor);
8654
8698
  insert_hydration(target, html_anchor, anchor);
8655
8699
  },
8656
8700
  p(ctx, dirty) {
8657
- if (dirty & /*svg*/ 2) html_tag.p(/*svg*/ ctx[1]);
8701
+ if (dirty & /*svg*/ 8) html_tag.p(/*svg*/ ctx[3]);
8658
8702
  },
8659
8703
  d(detaching) {
8660
8704
  if (detaching) detach(html_anchor);
@@ -8663,54 +8707,105 @@ function create_if_block(ctx) {
8663
8707
  };
8664
8708
  }
8665
8709
 
8666
- function create_fragment$6(ctx) {
8667
- let div;
8668
- let if_block = /*svg*/ ctx[1] && create_if_block(ctx);
8710
+ // (55:2) <Button {onClick} {style} {eventName}>
8711
+ function create_default_slot$1(ctx) {
8712
+ let if_block_anchor;
8713
+ let if_block = /*svg*/ ctx[3] && create_if_block(ctx);
8669
8714
 
8670
8715
  return {
8671
8716
  c() {
8672
- div = element("div");
8673
8717
  if (if_block) if_block.c();
8674
- this.h();
8718
+ if_block_anchor = empty();
8675
8719
  },
8676
8720
  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]);
8721
+ if (if_block) if_block.l(nodes);
8722
+ if_block_anchor = empty();
8686
8723
  },
8687
8724
  m(target, anchor) {
8688
- insert_hydration(target, div, anchor);
8689
- if (if_block) if_block.m(div, null);
8725
+ if (if_block) if_block.m(target, anchor);
8726
+ insert_hydration(target, if_block_anchor, anchor);
8690
8727
  },
8691
- p(ctx, [dirty]) {
8692
- if (/*svg*/ ctx[1]) {
8728
+ p(ctx, dirty) {
8729
+ if (/*svg*/ ctx[3]) {
8693
8730
  if (if_block) {
8694
8731
  if_block.p(ctx, dirty);
8695
8732
  } else {
8696
8733
  if_block = create_if_block(ctx);
8697
8734
  if_block.c();
8698
- if_block.m(div, null);
8735
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8699
8736
  }
8700
8737
  } else if (if_block) {
8701
8738
  if_block.d(1);
8702
8739
  if_block = null;
8703
8740
  }
8741
+ },
8742
+ d(detaching) {
8743
+ if (if_block) if_block.d(detaching);
8744
+ if (detaching) detach(if_block_anchor);
8745
+ }
8746
+ };
8747
+ }
8704
8748
 
8705
- if (dirty & /*style*/ 1) {
8706
- attr(div, "style", /*style*/ ctx[0]);
8749
+ function create_fragment$6(ctx) {
8750
+ let div;
8751
+ let button;
8752
+ let current;
8753
+
8754
+ button = new Button({
8755
+ props: {
8756
+ onClick: /*onClick*/ ctx[0],
8757
+ style: /*style*/ ctx[2],
8758
+ eventName: /*eventName*/ ctx[1],
8759
+ $$slots: { default: [create_default_slot$1] },
8760
+ $$scope: { ctx }
8707
8761
  }
8762
+ });
8763
+
8764
+ return {
8765
+ c() {
8766
+ div = element("div");
8767
+ create_component(button.$$.fragment);
8768
+ this.h();
8769
+ },
8770
+ l(nodes) {
8771
+ div = claim_element(nodes, "DIV", { class: true });
8772
+ var div_nodes = children(div);
8773
+ claim_component(button.$$.fragment, div_nodes);
8774
+ div_nodes.forEach(detach);
8775
+ this.h();
8776
+ },
8777
+ h() {
8778
+ attr(div, "class", "icon svelte-1mkvcuo");
8779
+ },
8780
+ m(target, anchor) {
8781
+ insert_hydration(target, div, anchor);
8782
+ mount_component(button, div, null);
8783
+ current = true;
8784
+ },
8785
+ p(ctx, [dirty]) {
8786
+ const button_changes = {};
8787
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8788
+ if (dirty & /*style*/ 4) button_changes.style = /*style*/ ctx[2];
8789
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8790
+
8791
+ if (dirty & /*$$scope, svg*/ 520) {
8792
+ button_changes.$$scope = { dirty, ctx };
8793
+ }
8794
+
8795
+ button.$set(button_changes);
8796
+ },
8797
+ i(local) {
8798
+ if (current) return;
8799
+ transition_in(button.$$.fragment, local);
8800
+ current = true;
8801
+ },
8802
+ o(local) {
8803
+ transition_out(button.$$.fragment, local);
8804
+ current = false;
8708
8805
  },
8709
- i: noop,
8710
- o: noop,
8711
8806
  d(detaching) {
8712
8807
  if (detaching) detach(div);
8713
- if (if_block) if_block.d();
8808
+ destroy_component(button);
8714
8809
  }
8715
8810
  };
8716
8811
  }
@@ -8727,42 +8822,62 @@ function instance$6($$self, $$props, $$invalidate) {
8727
8822
  let styleVariables;
8728
8823
  let style;
8729
8824
  let { icon = '' } = $$props;
8825
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8826
+ let { eventName = '' } = $$props;
8730
8827
  let { size = '20px' } = $$props;
8731
8828
  let { color = 'rgba(0, 16, 14, 0.8)' } = $$props;
8732
8829
  let { _style = '' } = $$props;
8733
8830
 
8734
8831
  $$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);
8832
+ if ('icon' in $$props) $$invalidate(4, icon = $$props.icon);
8833
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8834
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8835
+ if ('size' in $$props) $$invalidate(5, size = $$props.size);
8836
+ if ('color' in $$props) $$invalidate(6, color = $$props.color);
8837
+ if ('_style' in $$props) $$invalidate(7, _style = $$props._style);
8739
8838
  };
8740
8839
 
8741
8840
  $$self.$$.update = () => {
8742
- if ($$self.$$.dirty & /*icon*/ 4) {
8743
- $$invalidate(1, svg = (() => {
8841
+ if ($$self.$$.dirty & /*icon*/ 16) {
8842
+ $$invalidate(3, svg = (() => {
8744
8843
  if (!icon) return;
8745
8844
  const original = parseData(icon);
8746
8845
  return original;
8747
8846
  })());
8748
8847
  }
8749
8848
 
8750
- if ($$self.$$.dirty & /*size, color*/ 24) {
8751
- $$invalidate(6, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8849
+ if ($$self.$$.dirty & /*size, color*/ 96) {
8850
+ $$invalidate(8, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8752
8851
  }
8753
8852
 
8754
- if ($$self.$$.dirty & /*_style, styleVariables*/ 96) {
8755
- $$invalidate(0, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8853
+ if ($$self.$$.dirty & /*_style, styleVariables*/ 384) {
8854
+ $$invalidate(2, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8756
8855
  }
8757
8856
  };
8758
8857
 
8759
- return [style, svg, icon, size, color, _style, styleVariables];
8858
+ return [onClick, eventName, style, svg, icon, size, color, _style, styleVariables];
8760
8859
  }
8761
8860
 
8762
8861
  class IconElement extends SvelteComponent {
8763
8862
  constructor(options) {
8764
8863
  super();
8765
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { icon: 2, size: 3, color: 4, _style: 5 }, add_css$5);
8864
+
8865
+ init(
8866
+ this,
8867
+ options,
8868
+ instance$6,
8869
+ create_fragment$6,
8870
+ safe_not_equal,
8871
+ {
8872
+ icon: 4,
8873
+ onClick: 0,
8874
+ eventName: 1,
8875
+ size: 5,
8876
+ color: 6,
8877
+ _style: 7
8878
+ },
8879
+ add_css$5
8880
+ );
8766
8881
  }
8767
8882
  }
8768
8883
 
package/dist/index.es.js CHANGED
@@ -3153,7 +3153,7 @@ function create_if_block$5(ctx) {
3153
3153
  onClick: /*onClick*/ ctx[0],
3154
3154
  eventName: /*clickEventName*/ ctx[1],
3155
3155
  eventValue: /*clickEventValue*/ ctx[2],
3156
- $$slots: { default: [create_default_slot$4] },
3156
+ $$slots: { default: [create_default_slot$6] },
3157
3157
  $$scope: { ctx }
3158
3158
  }
3159
3159
  });
@@ -3315,7 +3315,7 @@ function create_default_slot_1$1(ctx) {
3315
3315
  }
3316
3316
 
3317
3317
  // (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
3318
- function create_default_slot$4(ctx) {
3318
+ function create_default_slot$6(ctx) {
3319
3319
  let t;
3320
3320
  let div;
3321
3321
  let current;
@@ -4369,7 +4369,7 @@ function add_css$m(target) {
4369
4369
  }
4370
4370
 
4371
4371
  // (36:2) <Button onClick={onClick} {style} {eventName}>
4372
- function create_default_slot$3(ctx) {
4372
+ function create_default_slot$5(ctx) {
4373
4373
  let rendertext;
4374
4374
  let current;
4375
4375
  rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
@@ -4415,7 +4415,7 @@ function create_fragment$n(ctx) {
4415
4415
  onClick: /*onClick*/ ctx[1],
4416
4416
  style: /*style*/ ctx[3],
4417
4417
  eventName: /*eventName*/ ctx[2],
4418
- $$slots: { default: [create_default_slot$3] },
4418
+ $$slots: { default: [create_default_slot$5] },
4419
4419
  $$scope: { ctx }
4420
4420
  }
4421
4421
  });
@@ -4523,7 +4523,7 @@ function add_css$l(target) {
4523
4523
  }
4524
4524
 
4525
4525
  // (40:2) <Button {onClick} style={_style} {eventName}>
4526
- function create_default_slot$2(ctx) {
4526
+ function create_default_slot$4(ctx) {
4527
4527
  let img;
4528
4528
  let img_src_value;
4529
4529
 
@@ -4571,7 +4571,7 @@ function create_fragment$m(ctx) {
4571
4571
  onClick: /*onClick*/ ctx[3],
4572
4572
  style: /*_style*/ ctx[6],
4573
4573
  eventName: /*eventName*/ ctx[4],
4574
- $$slots: { default: [create_default_slot$2] },
4574
+ $$slots: { default: [create_default_slot$4] },
4575
4575
  $$scope: { ctx }
4576
4576
  }
4577
4577
  });
@@ -4819,7 +4819,7 @@ function add_css$j(target) {
4819
4819
  }
4820
4820
 
4821
4821
  // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
4822
- function create_default_slot$1(ctx) {
4822
+ function create_default_slot$3(ctx) {
4823
4823
  let current;
4824
4824
  const default_slot_template = /*#slots*/ ctx[5].default;
4825
4825
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
@@ -4876,7 +4876,7 @@ function create_fragment$k(ctx) {
4876
4876
  onClick: /*onClick*/ ctx[0],
4877
4877
  style: /*_style*/ ctx[2],
4878
4878
  eventName: /*clickEventName*/ ctx[1],
4879
- $$slots: { default: [create_default_slot$1] },
4879
+ $$slots: { default: [create_default_slot$3] },
4880
4880
  $$scope: { ctx }
4881
4881
  }
4882
4882
  });
@@ -8018,54 +8018,41 @@ class Countdown extends SvelteComponent {
8018
8018
  /* src/components/Box.svelte generated by Svelte v3.53.1 */
8019
8019
 
8020
8020
  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}");
8021
+ append_styles(target, "svelte-1d6pgu1", ".box.svelte-1d6pgu1{position:relative;width:100%;height:100%}.box.svelte-1d6pgu1 > .button{position:absolute;inset:0}");
8022
8022
  }
8023
8023
 
8024
- function create_fragment$7(ctx) {
8025
- let div1;
8026
- let div0;
8024
+ // (24:2) <Button {onClick} style={_style} {eventName}>
8025
+ function create_default_slot$2(ctx) {
8027
8026
  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);
8027
+ const default_slot_template = /*#slots*/ ctx[3].default;
8028
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
8030
8029
 
8031
8030
  return {
8032
8031
  c() {
8033
- div1 = element("div");
8034
- div0 = element("div");
8035
8032
  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
8033
  },
8040
8034
  m(target, anchor) {
8041
- insert(target, div1, anchor);
8042
- append(div1, div0);
8043
-
8044
8035
  if (default_slot) {
8045
- default_slot.m(div0, null);
8036
+ default_slot.m(target, anchor);
8046
8037
  }
8047
8038
 
8048
8039
  current = true;
8049
8040
  },
8050
- p(ctx, [dirty]) {
8041
+ p(ctx, dirty) {
8051
8042
  if (default_slot) {
8052
- if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
8043
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {
8053
8044
  update_slot_base(
8054
8045
  default_slot,
8055
8046
  default_slot_template,
8056
8047
  ctx,
8057
- /*$$scope*/ ctx[1],
8048
+ /*$$scope*/ ctx[4],
8058
8049
  !current
8059
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
8060
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
8050
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[4])
8051
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),
8061
8052
  null
8062
8053
  );
8063
8054
  }
8064
8055
  }
8065
-
8066
- if (!current || dirty & /*_style*/ 1) {
8067
- attr(div0, "style", /*_style*/ ctx[0]);
8068
- }
8069
8056
  },
8070
8057
  i(local) {
8071
8058
  if (current) return;
@@ -8077,38 +8064,95 @@ function create_fragment$7(ctx) {
8077
8064
  current = false;
8078
8065
  },
8079
8066
  d(detaching) {
8080
- if (detaching) detach(div1);
8081
8067
  if (default_slot) default_slot.d(detaching);
8082
8068
  }
8083
8069
  };
8084
8070
  }
8085
8071
 
8072
+ function create_fragment$7(ctx) {
8073
+ let div;
8074
+ let button;
8075
+ let current;
8076
+
8077
+ button = new Button({
8078
+ props: {
8079
+ onClick: /*onClick*/ ctx[0],
8080
+ style: /*_style*/ ctx[2],
8081
+ eventName: /*eventName*/ ctx[1],
8082
+ $$slots: { default: [create_default_slot$2] },
8083
+ $$scope: { ctx }
8084
+ }
8085
+ });
8086
+
8087
+ return {
8088
+ c() {
8089
+ div = element("div");
8090
+ create_component(button.$$.fragment);
8091
+ attr(div, "class", "box svelte-1d6pgu1");
8092
+ },
8093
+ m(target, anchor) {
8094
+ insert(target, div, anchor);
8095
+ mount_component(button, div, null);
8096
+ current = true;
8097
+ },
8098
+ p(ctx, [dirty]) {
8099
+ const button_changes = {};
8100
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8101
+ if (dirty & /*_style*/ 4) button_changes.style = /*_style*/ ctx[2];
8102
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8103
+
8104
+ if (dirty & /*$$scope*/ 16) {
8105
+ button_changes.$$scope = { dirty, ctx };
8106
+ }
8107
+
8108
+ button.$set(button_changes);
8109
+ },
8110
+ i(local) {
8111
+ if (current) return;
8112
+ transition_in(button.$$.fragment, local);
8113
+ current = true;
8114
+ },
8115
+ o(local) {
8116
+ transition_out(button.$$.fragment, local);
8117
+ current = false;
8118
+ },
8119
+ d(detaching) {
8120
+ if (detaching) detach(div);
8121
+ destroy_component(button);
8122
+ }
8123
+ };
8124
+ }
8125
+
8086
8126
  function instance$7($$self, $$props, $$invalidate) {
8087
8127
  let { $$slots: slots = {}, $$scope } = $$props;
8128
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8129
+ let { eventName = '' } = $$props;
8088
8130
  let { _style = '' } = $$props;
8089
8131
 
8090
8132
  $$self.$$set = $$props => {
8091
- if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
8092
- if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
8133
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8134
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8135
+ if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
8136
+ if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);
8093
8137
  };
8094
8138
 
8095
- return [_style, $$scope, slots];
8139
+ return [onClick, eventName, _style, slots, $$scope];
8096
8140
  }
8097
8141
 
8098
8142
  class Box extends SvelteComponent {
8099
8143
  constructor(options) {
8100
8144
  super();
8101
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { _style: 0 }, add_css$6);
8145
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { onClick: 0, eventName: 1, _style: 2 }, add_css$6);
8102
8146
  }
8103
8147
  }
8104
8148
 
8105
8149
  /* src/components/IconElement.svelte generated by Svelte v3.53.1 */
8106
8150
 
8107
8151
  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)}");
8152
+ 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
8153
  }
8110
8154
 
8111
- // (39:2) {#if svg}
8155
+ // (56:4) {#if svg}
8112
8156
  function create_if_block(ctx) {
8113
8157
  let html_tag;
8114
8158
  let html_anchor;
@@ -8120,11 +8164,11 @@ function create_if_block(ctx) {
8120
8164
  html_tag.a = html_anchor;
8121
8165
  },
8122
8166
  m(target, anchor) {
8123
- html_tag.m(/*svg*/ ctx[1], target, anchor);
8167
+ html_tag.m(/*svg*/ ctx[3], target, anchor);
8124
8168
  insert(target, html_anchor, anchor);
8125
8169
  },
8126
8170
  p(ctx, dirty) {
8127
- if (dirty & /*svg*/ 2) html_tag.p(/*svg*/ ctx[1]);
8171
+ if (dirty & /*svg*/ 8) html_tag.p(/*svg*/ ctx[3]);
8128
8172
  },
8129
8173
  d(detaching) {
8130
8174
  if (detaching) detach(html_anchor);
@@ -8133,44 +8177,91 @@ function create_if_block(ctx) {
8133
8177
  };
8134
8178
  }
8135
8179
 
8136
- function create_fragment$6(ctx) {
8137
- let div;
8138
- let if_block = /*svg*/ ctx[1] && create_if_block(ctx);
8180
+ // (55:2) <Button {onClick} {style} {eventName}>
8181
+ function create_default_slot$1(ctx) {
8182
+ let if_block_anchor;
8183
+ let if_block = /*svg*/ ctx[3] && create_if_block(ctx);
8139
8184
 
8140
8185
  return {
8141
8186
  c() {
8142
- div = element("div");
8143
8187
  if (if_block) if_block.c();
8144
- attr(div, "class", "icon svelte-1773k1k");
8145
- attr(div, "style", /*style*/ ctx[0]);
8188
+ if_block_anchor = empty();
8146
8189
  },
8147
8190
  m(target, anchor) {
8148
- insert(target, div, anchor);
8149
- if (if_block) if_block.m(div, null);
8191
+ if (if_block) if_block.m(target, anchor);
8192
+ insert(target, if_block_anchor, anchor);
8150
8193
  },
8151
- p(ctx, [dirty]) {
8152
- if (/*svg*/ ctx[1]) {
8194
+ p(ctx, dirty) {
8195
+ if (/*svg*/ ctx[3]) {
8153
8196
  if (if_block) {
8154
8197
  if_block.p(ctx, dirty);
8155
8198
  } else {
8156
8199
  if_block = create_if_block(ctx);
8157
8200
  if_block.c();
8158
- if_block.m(div, null);
8201
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8159
8202
  }
8160
8203
  } else if (if_block) {
8161
8204
  if_block.d(1);
8162
8205
  if_block = null;
8163
8206
  }
8207
+ },
8208
+ d(detaching) {
8209
+ if (if_block) if_block.d(detaching);
8210
+ if (detaching) detach(if_block_anchor);
8211
+ }
8212
+ };
8213
+ }
8164
8214
 
8165
- if (dirty & /*style*/ 1) {
8166
- attr(div, "style", /*style*/ ctx[0]);
8215
+ function create_fragment$6(ctx) {
8216
+ let div;
8217
+ let button;
8218
+ let current;
8219
+
8220
+ button = new Button({
8221
+ props: {
8222
+ onClick: /*onClick*/ ctx[0],
8223
+ style: /*style*/ ctx[2],
8224
+ eventName: /*eventName*/ ctx[1],
8225
+ $$slots: { default: [create_default_slot$1] },
8226
+ $$scope: { ctx }
8167
8227
  }
8228
+ });
8229
+
8230
+ return {
8231
+ c() {
8232
+ div = element("div");
8233
+ create_component(button.$$.fragment);
8234
+ attr(div, "class", "icon svelte-1mkvcuo");
8235
+ },
8236
+ m(target, anchor) {
8237
+ insert(target, div, anchor);
8238
+ mount_component(button, div, null);
8239
+ current = true;
8240
+ },
8241
+ p(ctx, [dirty]) {
8242
+ const button_changes = {};
8243
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
8244
+ if (dirty & /*style*/ 4) button_changes.style = /*style*/ ctx[2];
8245
+ if (dirty & /*eventName*/ 2) button_changes.eventName = /*eventName*/ ctx[1];
8246
+
8247
+ if (dirty & /*$$scope, svg*/ 520) {
8248
+ button_changes.$$scope = { dirty, ctx };
8249
+ }
8250
+
8251
+ button.$set(button_changes);
8252
+ },
8253
+ i(local) {
8254
+ if (current) return;
8255
+ transition_in(button.$$.fragment, local);
8256
+ current = true;
8257
+ },
8258
+ o(local) {
8259
+ transition_out(button.$$.fragment, local);
8260
+ current = false;
8168
8261
  },
8169
- i: noop,
8170
- o: noop,
8171
8262
  d(detaching) {
8172
8263
  if (detaching) detach(div);
8173
- if (if_block) if_block.d();
8264
+ destroy_component(button);
8174
8265
  }
8175
8266
  };
8176
8267
  }
@@ -8187,42 +8278,62 @@ function instance$6($$self, $$props, $$invalidate) {
8187
8278
  let styleVariables;
8188
8279
  let style;
8189
8280
  let { icon = '' } = $$props;
8281
+ let { onClick = { operation: 'none', args: [] } } = $$props;
8282
+ let { eventName = '' } = $$props;
8190
8283
  let { size = '20px' } = $$props;
8191
8284
  let { color = 'rgba(0, 16, 14, 0.8)' } = $$props;
8192
8285
  let { _style = '' } = $$props;
8193
8286
 
8194
8287
  $$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);
8288
+ if ('icon' in $$props) $$invalidate(4, icon = $$props.icon);
8289
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
8290
+ if ('eventName' in $$props) $$invalidate(1, eventName = $$props.eventName);
8291
+ if ('size' in $$props) $$invalidate(5, size = $$props.size);
8292
+ if ('color' in $$props) $$invalidate(6, color = $$props.color);
8293
+ if ('_style' in $$props) $$invalidate(7, _style = $$props._style);
8199
8294
  };
8200
8295
 
8201
8296
  $$self.$$.update = () => {
8202
- if ($$self.$$.dirty & /*icon*/ 4) {
8203
- $$invalidate(1, svg = (() => {
8297
+ if ($$self.$$.dirty & /*icon*/ 16) {
8298
+ $$invalidate(3, svg = (() => {
8204
8299
  if (!icon) return;
8205
8300
  const original = parseData(icon);
8206
8301
  return original;
8207
8302
  })());
8208
8303
  }
8209
8304
 
8210
- if ($$self.$$.dirty & /*size, color*/ 24) {
8211
- $$invalidate(6, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8305
+ if ($$self.$$.dirty & /*size, color*/ 96) {
8306
+ $$invalidate(8, styleVariables = `--width: ${size}; --height: ${size}; --color: ${color}; --stroke: ${color}; --fill: ${color};`);
8212
8307
  }
8213
8308
 
8214
- if ($$self.$$.dirty & /*_style, styleVariables*/ 96) {
8215
- $$invalidate(0, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8309
+ if ($$self.$$.dirty & /*_style, styleVariables*/ 384) {
8310
+ $$invalidate(2, style = [..._style.split(';'), ...styleVariables.split(';')].join(';'));
8216
8311
  }
8217
8312
  };
8218
8313
 
8219
- return [style, svg, icon, size, color, _style, styleVariables];
8314
+ return [onClick, eventName, style, svg, icon, size, color, _style, styleVariables];
8220
8315
  }
8221
8316
 
8222
8317
  class IconElement extends SvelteComponent {
8223
8318
  constructor(options) {
8224
8319
  super();
8225
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { icon: 2, size: 3, color: 4, _style: 5 }, add_css$5);
8320
+
8321
+ init(
8322
+ this,
8323
+ options,
8324
+ instance$6,
8325
+ create_fragment$6,
8326
+ safe_not_equal,
8327
+ {
8328
+ icon: 4,
8329
+ onClick: 0,
8330
+ eventName: 1,
8331
+ size: 5,
8332
+ color: 6,
8333
+ _style: 7
8334
+ },
8335
+ add_css$5
8336
+ );
8226
8337
  }
8227
8338
  }
8228
8339
 
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-28011287.2697070d",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",