@plaidev/karte-action-sdk 1.1.270-29379017.f453cc451 → 1.1.270-29410070.b86a3f94e

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.
@@ -17,6 +17,7 @@ type PositionPlaceProps = {
17
17
  };
18
18
  export type PositionProps = PositionPlaceProps & {
19
19
  position?: Properties["position"];
20
+ zIndex?: number;
20
21
  };
21
22
  export type MetaProps = {
22
23
  displayName?: string;
@@ -17,6 +17,7 @@ type PositionPlaceProps = {
17
17
  };
18
18
  export type PositionProps = PositionPlaceProps & {
19
19
  position?: Properties["position"];
20
+ zIndex?: number;
20
21
  };
21
22
  export type MetaProps = {
22
23
  displayName?: string;
@@ -11239,8 +11239,8 @@ function useClickable(props = {}) {
11239
11239
  if (eventName) send_event(eventName, eventValue);
11240
11240
  execOnClickOperation(onClick);
11241
11241
  }
11242
- function getFixedElement({ onClick, element: element$1 }) {
11243
- if (!onClick) return element$1 ?? "div";
11242
+ function getFixedElement({ onClick, element: element$1 = "div" }) {
11243
+ if (!onClick) return element$1;
11244
11244
  switch (onClick.operation) {
11245
11245
  case "linkTo":
11246
11246
  case "callNativeFunction": return "a";
@@ -18165,22 +18165,27 @@ function create_if_block$9(ctx) {
18165
18165
  this.h();
18166
18166
  },
18167
18167
  l(nodes) {
18168
- div = claim_element(nodes, "DIV", { class: true });
18168
+ div = claim_element(nodes, "DIV", {
18169
+ class: true,
18170
+ style: true
18171
+ });
18169
18172
  children(div).forEach(detach);
18170
18173
  this.h();
18171
18174
  },
18172
18175
  h() {
18173
18176
  attr(div, "class", div_class_value = null_to_empty(["v2-background", ctx[1] || ""].join(" ")) + " svelte-18nkdjz");
18177
+ attr(div, "style", ctx[2]);
18174
18178
  },
18175
18179
  m(target, anchor) {
18176
18180
  insert_hydration(target, div, anchor);
18177
18181
  if (!mounted) {
18178
- dispose = listen(div, "click", ctx[3]);
18182
+ dispose = listen(div, "click", ctx[5]);
18179
18183
  mounted = true;
18180
18184
  }
18181
18185
  },
18182
18186
  p(ctx$1, dirty) {
18183
18187
  if (dirty & 2 && div_class_value !== (div_class_value = null_to_empty(["v2-background", ctx$1[1] || ""].join(" ")) + " svelte-18nkdjz")) attr(div, "class", div_class_value);
18188
+ if (dirty & 4) attr(div, "style", ctx$1[2]);
18184
18189
  },
18185
18190
  d(detaching) {
18186
18191
  if (detaching) detach(div);
@@ -18226,18 +18231,26 @@ function create_fragment$24(ctx) {
18226
18231
  };
18227
18232
  }
18228
18233
  function instance$24($$self, $$props, $$invalidate) {
18234
+ let style;
18229
18235
  let { backgroundOverlay = false } = $$props;
18236
+ let { zIndex = void 0 } = $$props;
18230
18237
  let { class: className = void 0 } = $$props;
18231
18238
  const dispatch = createEventDispatcher();
18232
18239
  const click_handler = () => dispatch("click");
18233
18240
  $$self.$$set = ($$props$1) => {
18234
18241
  if ("backgroundOverlay" in $$props$1) $$invalidate(0, backgroundOverlay = $$props$1.backgroundOverlay);
18242
+ if ("zIndex" in $$props$1) $$invalidate(4, zIndex = $$props$1.zIndex);
18235
18243
  if ("class" in $$props$1) $$invalidate(1, className = $$props$1.class);
18236
18244
  };
18245
+ $$self.$$.update = () => {
18246
+ if ($$self.$$.dirty & 16) $: $$invalidate(2, style = objToStyle({ zIndex }));
18247
+ };
18237
18248
  return [
18238
18249
  backgroundOverlay,
18239
18250
  className,
18251
+ style,
18240
18252
  dispatch,
18253
+ zIndex,
18241
18254
  click_handler
18242
18255
  ];
18243
18256
  }
@@ -18246,6 +18259,7 @@ var BackgroundOverlay = class extends SvelteComponent {
18246
18259
  super();
18247
18260
  init(this, options, instance$24, create_fragment$24, safe_not_equal, {
18248
18261
  backgroundOverlay: 0,
18262
+ zIndex: 4,
18249
18263
  class: 1
18250
18264
  }, add_css$17);
18251
18265
  }
@@ -18260,9 +18274,12 @@ function add_css$16(target) {
18260
18274
  function create_else_block$1(ctx) {
18261
18275
  let backgroundoverlay;
18262
18276
  let current;
18263
- backgroundoverlay = new BackgroundOverlay_default({ props: { backgroundOverlay: ctx[4] } });
18277
+ backgroundoverlay = new BackgroundOverlay_default({ props: {
18278
+ backgroundOverlay: ctx[5],
18279
+ zIndex: ctx[2].zIndex
18280
+ } });
18264
18281
  backgroundoverlay.$on("click", function() {
18265
- if (is_function(ctx[12])) ctx[12].apply(this, arguments);
18282
+ if (is_function(ctx[13])) ctx[13].apply(this, arguments);
18266
18283
  });
18267
18284
  return {
18268
18285
  c() {
@@ -18278,7 +18295,8 @@ function create_else_block$1(ctx) {
18278
18295
  p(new_ctx, dirty) {
18279
18296
  ctx = new_ctx;
18280
18297
  const backgroundoverlay_changes = {};
18281
- if (dirty & 16) backgroundoverlay_changes.backgroundOverlay = ctx[4];
18298
+ if (dirty & 32) backgroundoverlay_changes.backgroundOverlay = ctx[5];
18299
+ if (dirty & 4) backgroundoverlay_changes.zIndex = ctx[2].zIndex;
18282
18300
  backgroundoverlay.$set(backgroundoverlay_changes);
18283
18301
  },
18284
18302
  i(local) {
@@ -18302,17 +18320,19 @@ function create_if_block_2$1(ctx) {
18302
18320
  let current;
18303
18321
  backgroundoverlay0 = new BackgroundOverlay_default({ props: {
18304
18322
  class: "background-bp-pc",
18305
- backgroundOverlay: ctx[5]
18323
+ zIndex: ctx[2].zIndex,
18324
+ backgroundOverlay: ctx[6]
18306
18325
  } });
18307
18326
  backgroundoverlay0.$on("click", function() {
18308
- if (is_function(ctx[11])) ctx[11].apply(this, arguments);
18327
+ if (is_function(ctx[12])) ctx[12].apply(this, arguments);
18309
18328
  });
18310
18329
  backgroundoverlay1 = new BackgroundOverlay_default({ props: {
18311
18330
  class: "background-bp-sp ",
18312
- backgroundOverlay: ctx[6]
18331
+ zIndex: ctx[2].zIndex,
18332
+ backgroundOverlay: ctx[7]
18313
18333
  } });
18314
18334
  backgroundoverlay1.$on("click", function() {
18315
- if (is_function(ctx[10])) ctx[10].apply(this, arguments);
18335
+ if (is_function(ctx[11])) ctx[11].apply(this, arguments);
18316
18336
  });
18317
18337
  return {
18318
18338
  c() {
@@ -18334,10 +18354,12 @@ function create_if_block_2$1(ctx) {
18334
18354
  p(new_ctx, dirty) {
18335
18355
  ctx = new_ctx;
18336
18356
  const backgroundoverlay0_changes = {};
18337
- if (dirty & 32) backgroundoverlay0_changes.backgroundOverlay = ctx[5];
18357
+ if (dirty & 4) backgroundoverlay0_changes.zIndex = ctx[2].zIndex;
18358
+ if (dirty & 64) backgroundoverlay0_changes.backgroundOverlay = ctx[6];
18338
18359
  backgroundoverlay0.$set(backgroundoverlay0_changes);
18339
18360
  const backgroundoverlay1_changes = {};
18340
- if (dirty & 64) backgroundoverlay1_changes.backgroundOverlay = ctx[6];
18361
+ if (dirty & 4) backgroundoverlay1_changes.zIndex = ctx[2].zIndex;
18362
+ if (dirty & 128) backgroundoverlay1_changes.backgroundOverlay = ctx[7];
18341
18363
  backgroundoverlay1.$set(backgroundoverlay1_changes);
18342
18364
  },
18343
18365
  i(local) {
@@ -18399,8 +18421,8 @@ function create_if_block$8(ctx) {
18399
18421
  attr(div, "class", div_class_value = null_to_empty(["modal", ctx[0] ? "modal-bp" : ""].join(" ")) + " svelte-45ue06");
18400
18422
  attr(div, "role", "dialog");
18401
18423
  attr(div, "aria-modal", "true");
18402
- attr(div, "data-layer-id", ctx[2]);
18403
- attr(div, "style", Array.from(ctx[13]).join(";"));
18424
+ attr(div, "data-layer-id", ctx[3]);
18425
+ attr(div, "style", Array.from(ctx[14]).join(";"));
18404
18426
  },
18405
18427
  m(target, anchor) {
18406
18428
  insert_hydration(target, div, anchor);
@@ -18414,14 +18436,14 @@ function create_if_block$8(ctx) {
18414
18436
  if (default_slot.p && (!current || dirty & 16777216)) update_slot_base(default_slot, default_slot_template, ctx, ctx[24], !current ? get_all_dirty_from_scope(ctx[24]) : get_slot_changes(default_slot_template, ctx[24], dirty, null), null);
18415
18437
  }
18416
18438
  if (!current || dirty & 1 && div_class_value !== (div_class_value = null_to_empty(["modal", ctx[0] ? "modal-bp" : ""].join(" ")) + " svelte-45ue06")) attr(div, "class", div_class_value);
18417
- if (!current || dirty & 4) attr(div, "data-layer-id", ctx[2]);
18439
+ if (!current || dirty & 8) attr(div, "data-layer-id", ctx[3]);
18418
18440
  },
18419
18441
  i(local) {
18420
18442
  if (current) return;
18421
18443
  transition_in(default_slot, local);
18422
18444
  if (!div_intro) add_render_callback(() => {
18423
18445
  div_intro = create_in_transition(div, customAnimation, {
18424
- transforms: ctx[3],
18446
+ transforms: ctx[4],
18425
18447
  animationStyle: ctx[1]
18426
18448
  });
18427
18449
  div_intro.start();
@@ -18462,7 +18484,7 @@ function create_fragment$23(ctx) {
18462
18484
  }
18463
18485
  current_block_type_index = select_block_type(ctx, -1);
18464
18486
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
18465
- let if_block1 = ctx[8] && create_if_block$8(ctx);
18487
+ let if_block1 = ctx[9] && create_if_block$8(ctx);
18466
18488
  return {
18467
18489
  c() {
18468
18490
  if_block0.c();
@@ -18484,7 +18506,7 @@ function create_fragment$23(ctx) {
18484
18506
  current = true;
18485
18507
  if (!mounted) {
18486
18508
  dispose = listen(window, "keydown", function() {
18487
- if (is_function(ctx[9])) ctx[9].apply(this, arguments);
18509
+ if (is_function(ctx[10])) ctx[10].apply(this, arguments);
18488
18510
  });
18489
18511
  mounted = true;
18490
18512
  }
@@ -18508,9 +18530,9 @@ function create_fragment$23(ctx) {
18508
18530
  transition_in(if_block0, 1);
18509
18531
  if_block0.m(t.parentNode, t);
18510
18532
  }
18511
- if (ctx[8]) if (if_block1) {
18533
+ if (ctx[9]) if (if_block1) {
18512
18534
  if_block1.p(ctx, dirty);
18513
- if (dirty & 256) transition_in(if_block1, 1);
18535
+ if (dirty & 512) transition_in(if_block1, 1);
18514
18536
  } else {
18515
18537
  if_block1 = create_if_block$8(ctx);
18516
18538
  if_block1.c();
@@ -18579,25 +18601,25 @@ function instance$23($$self, $$props, $$invalidate) {
18579
18601
  }];
18580
18602
  let modal;
18581
18603
  onMount$1(() => {
18582
- $$invalidate(8, visible = true);
18604
+ $$invalidate(9, visible = true);
18583
18605
  });
18584
18606
  onDestroy$1(() => setPreviousFocus());
18585
18607
  function div_binding($$value) {
18586
18608
  binding_callbacks[$$value ? "unshift" : "push"](() => {
18587
18609
  modal = $$value;
18588
- $$invalidate(7, modal);
18610
+ $$invalidate(8, modal);
18589
18611
  });
18590
18612
  }
18591
18613
  $$self.$$set = ($$props$1) => {
18592
18614
  if ("useBreakPoint" in $$props$1) $$invalidate(0, useBreakPoint = $$props$1.useBreakPoint);
18593
- if ("placement" in $$props$1) $$invalidate(14, placement = $$props$1.placement);
18594
- if ("breakPoint" in $$props$1) $$invalidate(15, breakPoint = $$props$1.breakPoint);
18595
- if ("elasticity" in $$props$1) $$invalidate(16, elasticity = $$props$1.elasticity);
18615
+ if ("placement" in $$props$1) $$invalidate(15, placement = $$props$1.placement);
18616
+ if ("breakPoint" in $$props$1) $$invalidate(16, breakPoint = $$props$1.breakPoint);
18617
+ if ("elasticity" in $$props$1) $$invalidate(17, elasticity = $$props$1.elasticity);
18596
18618
  if ("animation" in $$props$1) $$invalidate(1, animation = $$props$1.animation);
18597
- if ("props" in $$props$1) $$invalidate(17, props = $$props$1.props);
18619
+ if ("props" in $$props$1) $$invalidate(2, props = $$props$1.props);
18598
18620
  if ("closeEventName" in $$props$1) $$invalidate(18, closeEventName = $$props$1.closeEventName);
18599
18621
  if ("closeEventValue" in $$props$1) $$invalidate(19, closeEventValue = $$props$1.closeEventValue);
18600
- if ("layerId" in $$props$1) $$invalidate(2, layerId = $$props$1.layerId);
18622
+ if ("layerId" in $$props$1) $$invalidate(3, layerId = $$props$1.layerId);
18601
18623
  if ("$$scope" in $$props$1) $$invalidate(24, $$scope = $$props$1.$$scope);
18602
18624
  };
18603
18625
  $$self.$$.update = () => {
@@ -18609,16 +18631,16 @@ function instance$23($$self, $$props, $$invalidate) {
18609
18631
  if (closeEventName) send_event(closeEventName, closeEventValue);
18610
18632
  execOnClickOperation(onClose$2);
18611
18633
  });
18612
- if ($$self.$$.dirty & 49153) $: {
18613
- if (!isCanvasPreview() && isExistBackgroundOverlayValue) $$invalidate(4, backgroundOverlay = placement.backgroundOverlay);
18634
+ if ($$self.$$.dirty & 98305) $: {
18635
+ if (!isCanvasPreview() && isExistBackgroundOverlayValue) $$invalidate(5, backgroundOverlay = placement.backgroundOverlay);
18614
18636
  if (useBreakPoint) {
18615
18637
  const pc = breakPoint?.PC?.placement?.backgroundOverlay;
18616
- $$invalidate(5, backgroundOverlayPC = pc ?? false);
18638
+ $$invalidate(6, backgroundOverlayPC = pc ?? false);
18617
18639
  const sp = breakPoint?.SP?.placement?.backgroundOverlay;
18618
- $$invalidate(6, backgroundOverlaySP = sp ?? false);
18640
+ $$invalidate(7, backgroundOverlaySP = sp ?? false);
18619
18641
  }
18620
18642
  }
18621
- if ($$self.$$.dirty & 49153) $: {
18643
+ if ($$self.$$.dirty & 98305) $: {
18622
18644
  if (placement && placement.backgroundClick) $$invalidate(20, backgroundClickFunction = placement.backgroundClick);
18623
18645
  if (useBreakPoint) {
18624
18646
  const pc = breakPoint?.PC?.placement?.backgroundClick;
@@ -18627,25 +18649,26 @@ function instance$23($$self, $$props, $$invalidate) {
18627
18649
  if (sp) $$invalidate(22, backgroundClickFunctionSP = sp);
18628
18650
  }
18629
18651
  }
18630
- if ($$self.$$.dirty & 1835008) $: $$invalidate(12, backgroundClick = () => {
18652
+ if ($$self.$$.dirty & 1835008) $: $$invalidate(13, backgroundClick = () => {
18631
18653
  if (closeEventName) send_event(closeEventName, closeEventValue);
18632
18654
  execOnClickOperation(backgroundClickFunction);
18633
18655
  });
18634
- if ($$self.$$.dirty & 2883584) $: $$invalidate(11, backgroundClickPC = () => {
18656
+ if ($$self.$$.dirty & 2883584) $: $$invalidate(12, backgroundClickPC = () => {
18635
18657
  if (closeEventName) send_event(closeEventName, closeEventValue);
18636
18658
  execOnClickOperation(backgroundClickFunctionPC);
18637
18659
  });
18638
- if ($$self.$$.dirty & 4980736) $: $$invalidate(10, backgroundClickSP = () => {
18660
+ if ($$self.$$.dirty & 4980736) $: $$invalidate(11, backgroundClickSP = () => {
18639
18661
  if (closeEventName) send_event(closeEventName, closeEventValue);
18640
18662
  execOnClickOperation(backgroundClickFunctionSP);
18641
18663
  });
18642
- if ($$self.$$.dirty & 49161) $: {
18664
+ if ($$self.$$.dirty & 98325) $: {
18643
18665
  let position$1 = DefaultModalPlacement.position;
18644
18666
  if (!isCanvasPreview() && placement && placement.position !== null) position$1 = placement.position;
18645
18667
  let positionStyle = getPositionStyle(position$1);
18646
18668
  if (!useBreakPoint) modalStyles.add(positionStyle);
18669
+ if (props.zIndex) modalStyles.add(`z-index: ${props.zIndex}`);
18647
18670
  if (brandKit) modalStyles.add(`font-family: ${brandKit.font_family}`);
18648
- $$invalidate(3, transforms = []);
18671
+ $$invalidate(4, transforms = []);
18649
18672
  DEVICE_IDS.forEach((deviceId) => {
18650
18673
  if (!isCanvasPreview() && useBreakPoint) {
18651
18674
  const positionWithBp = breakPoint[deviceId]?.placement?.position;
@@ -18667,7 +18690,7 @@ function instance$23($$self, $$props, $$invalidate) {
18667
18690
  ...getTransform(position$1)
18668
18691
  });
18669
18692
  }
18670
- if ($$self.$$.dirty & 180225) $: {
18693
+ if ($$self.$$.dirty & 98309) $: {
18671
18694
  let margin = DefaultModalPlacement.margin;
18672
18695
  if (!isCanvasPreview() && placement && placement.margin !== null) margin = placement.margin;
18673
18696
  let marginStyle = getMarginStyle(margin);
@@ -18687,13 +18710,14 @@ function instance$23($$self, $$props, $$invalidate) {
18687
18710
  const propsStyle = objToStyle({ width: props.width });
18688
18711
  modalStyles.add(propsStyle);
18689
18712
  }
18690
- if ($$self.$$.dirty & 8388608) $: $$invalidate(9, handle_keydown = handleKeydown({ Escape: close$2 }));
18713
+ if ($$self.$$.dirty & 8388608) $: $$invalidate(10, handle_keydown = handleKeydown({ Escape: close$2 }));
18691
18714
  };
18692
- $: $$invalidate(7, modal = null);
18693
- $: $$invalidate(8, visible = false);
18715
+ $: $$invalidate(8, modal = null);
18716
+ $: $$invalidate(9, visible = false);
18694
18717
  return [
18695
18718
  useBreakPoint,
18696
18719
  animation,
18720
+ props,
18697
18721
  layerId,
18698
18722
  transforms,
18699
18723
  backgroundOverlay,
@@ -18709,7 +18733,6 @@ function instance$23($$self, $$props, $$invalidate) {
18709
18733
  placement,
18710
18734
  breakPoint,
18711
18735
  elasticity,
18712
- props,
18713
18736
  closeEventName,
18714
18737
  closeEventValue,
18715
18738
  backgroundClickFunction,
@@ -18726,14 +18749,14 @@ var Modal = class extends SvelteComponent {
18726
18749
  super();
18727
18750
  init(this, options, instance$23, create_fragment$23, safe_not_equal, {
18728
18751
  useBreakPoint: 0,
18729
- placement: 14,
18730
- breakPoint: 15,
18731
- elasticity: 16,
18752
+ placement: 15,
18753
+ breakPoint: 16,
18754
+ elasticity: 17,
18732
18755
  animation: 1,
18733
- props: 17,
18756
+ props: 2,
18734
18757
  closeEventName: 18,
18735
18758
  closeEventValue: 19,
18736
- layerId: 2
18759
+ layerId: 3
18737
18760
  }, add_css$16);
18738
18761
  }
18739
18762
  };
package/dist/index.es.js CHANGED
@@ -10346,8 +10346,8 @@ function useClickable(props = {}) {
10346
10346
  if (eventName) send_event(eventName, eventValue);
10347
10347
  execOnClickOperation(onClick);
10348
10348
  }
10349
- function getFixedElement({ onClick, element: element$1 }) {
10350
- if (!onClick) return element$1 ?? "div";
10349
+ function getFixedElement({ onClick, element: element$1 = "div" }) {
10350
+ if (!onClick) return element$1;
10351
10351
  switch (onClick.operation) {
10352
10352
  case "linkTo":
10353
10353
  case "callNativeFunction": return "a";
@@ -16284,16 +16284,18 @@ function create_if_block$9(ctx) {
16284
16284
  c() {
16285
16285
  div = element("div");
16286
16286
  attr(div, "class", div_class_value = null_to_empty(["v2-background", ctx[1] || ""].join(" ")) + " svelte-18nkdjz");
16287
+ attr(div, "style", ctx[2]);
16287
16288
  },
16288
16289
  m(target, anchor) {
16289
16290
  insert(target, div, anchor);
16290
16291
  if (!mounted) {
16291
- dispose = listen(div, "click", ctx[3]);
16292
+ dispose = listen(div, "click", ctx[5]);
16292
16293
  mounted = true;
16293
16294
  }
16294
16295
  },
16295
16296
  p(ctx$1, dirty) {
16296
16297
  if (dirty & 2 && div_class_value !== (div_class_value = null_to_empty(["v2-background", ctx$1[1] || ""].join(" ")) + " svelte-18nkdjz")) attr(div, "class", div_class_value);
16298
+ if (dirty & 4) attr(div, "style", ctx$1[2]);
16297
16299
  },
16298
16300
  d(detaching) {
16299
16301
  if (detaching) detach(div);
@@ -16335,18 +16337,26 @@ function create_fragment$24(ctx) {
16335
16337
  };
16336
16338
  }
16337
16339
  function instance$24($$self, $$props, $$invalidate) {
16340
+ let style;
16338
16341
  let { backgroundOverlay = false } = $$props;
16342
+ let { zIndex = void 0 } = $$props;
16339
16343
  let { class: className = void 0 } = $$props;
16340
16344
  const dispatch = createEventDispatcher();
16341
16345
  const click_handler = () => dispatch("click");
16342
16346
  $$self.$$set = ($$props$1) => {
16343
16347
  if ("backgroundOverlay" in $$props$1) $$invalidate(0, backgroundOverlay = $$props$1.backgroundOverlay);
16348
+ if ("zIndex" in $$props$1) $$invalidate(4, zIndex = $$props$1.zIndex);
16344
16349
  if ("class" in $$props$1) $$invalidate(1, className = $$props$1.class);
16345
16350
  };
16351
+ $$self.$$.update = () => {
16352
+ if ($$self.$$.dirty & 16) $: $$invalidate(2, style = objToStyle({ zIndex }));
16353
+ };
16346
16354
  return [
16347
16355
  backgroundOverlay,
16348
16356
  className,
16357
+ style,
16349
16358
  dispatch,
16359
+ zIndex,
16350
16360
  click_handler
16351
16361
  ];
16352
16362
  }
@@ -16355,6 +16365,7 @@ var BackgroundOverlay = class extends SvelteComponent {
16355
16365
  super();
16356
16366
  init(this, options, instance$24, create_fragment$24, safe_not_equal, {
16357
16367
  backgroundOverlay: 0,
16368
+ zIndex: 4,
16358
16369
  class: 1
16359
16370
  }, add_css$17);
16360
16371
  }
@@ -16369,9 +16380,12 @@ function add_css$16(target) {
16369
16380
  function create_else_block$1(ctx) {
16370
16381
  let backgroundoverlay;
16371
16382
  let current;
16372
- backgroundoverlay = new BackgroundOverlay_default({ props: { backgroundOverlay: ctx[4] } });
16383
+ backgroundoverlay = new BackgroundOverlay_default({ props: {
16384
+ backgroundOverlay: ctx[5],
16385
+ zIndex: ctx[2].zIndex
16386
+ } });
16373
16387
  backgroundoverlay.$on("click", function() {
16374
- if (is_function(ctx[12])) ctx[12].apply(this, arguments);
16388
+ if (is_function(ctx[13])) ctx[13].apply(this, arguments);
16375
16389
  });
16376
16390
  return {
16377
16391
  c() {
@@ -16384,7 +16398,8 @@ function create_else_block$1(ctx) {
16384
16398
  p(new_ctx, dirty) {
16385
16399
  ctx = new_ctx;
16386
16400
  const backgroundoverlay_changes = {};
16387
- if (dirty & 16) backgroundoverlay_changes.backgroundOverlay = ctx[4];
16401
+ if (dirty & 32) backgroundoverlay_changes.backgroundOverlay = ctx[5];
16402
+ if (dirty & 4) backgroundoverlay_changes.zIndex = ctx[2].zIndex;
16388
16403
  backgroundoverlay.$set(backgroundoverlay_changes);
16389
16404
  },
16390
16405
  i(local) {
@@ -16408,17 +16423,19 @@ function create_if_block_2$1(ctx) {
16408
16423
  let current;
16409
16424
  backgroundoverlay0 = new BackgroundOverlay_default({ props: {
16410
16425
  class: "background-bp-pc",
16411
- backgroundOverlay: ctx[5]
16426
+ zIndex: ctx[2].zIndex,
16427
+ backgroundOverlay: ctx[6]
16412
16428
  } });
16413
16429
  backgroundoverlay0.$on("click", function() {
16414
- if (is_function(ctx[11])) ctx[11].apply(this, arguments);
16430
+ if (is_function(ctx[12])) ctx[12].apply(this, arguments);
16415
16431
  });
16416
16432
  backgroundoverlay1 = new BackgroundOverlay_default({ props: {
16417
16433
  class: "background-bp-sp ",
16418
- backgroundOverlay: ctx[6]
16434
+ zIndex: ctx[2].zIndex,
16435
+ backgroundOverlay: ctx[7]
16419
16436
  } });
16420
16437
  backgroundoverlay1.$on("click", function() {
16421
- if (is_function(ctx[10])) ctx[10].apply(this, arguments);
16438
+ if (is_function(ctx[11])) ctx[11].apply(this, arguments);
16422
16439
  });
16423
16440
  return {
16424
16441
  c() {
@@ -16435,10 +16452,12 @@ function create_if_block_2$1(ctx) {
16435
16452
  p(new_ctx, dirty) {
16436
16453
  ctx = new_ctx;
16437
16454
  const backgroundoverlay0_changes = {};
16438
- if (dirty & 32) backgroundoverlay0_changes.backgroundOverlay = ctx[5];
16455
+ if (dirty & 4) backgroundoverlay0_changes.zIndex = ctx[2].zIndex;
16456
+ if (dirty & 64) backgroundoverlay0_changes.backgroundOverlay = ctx[6];
16439
16457
  backgroundoverlay0.$set(backgroundoverlay0_changes);
16440
16458
  const backgroundoverlay1_changes = {};
16441
- if (dirty & 64) backgroundoverlay1_changes.backgroundOverlay = ctx[6];
16459
+ if (dirty & 4) backgroundoverlay1_changes.zIndex = ctx[2].zIndex;
16460
+ if (dirty & 128) backgroundoverlay1_changes.backgroundOverlay = ctx[7];
16442
16461
  backgroundoverlay1.$set(backgroundoverlay1_changes);
16443
16462
  },
16444
16463
  i(local) {
@@ -16483,8 +16502,8 @@ function create_if_block$8(ctx) {
16483
16502
  attr(div, "class", div_class_value = null_to_empty(["modal", ctx[0] ? "modal-bp" : ""].join(" ")) + " svelte-45ue06");
16484
16503
  attr(div, "role", "dialog");
16485
16504
  attr(div, "aria-modal", "true");
16486
- attr(div, "data-layer-id", ctx[2]);
16487
- attr(div, "style", Array.from(ctx[13]).join(";"));
16505
+ attr(div, "data-layer-id", ctx[3]);
16506
+ attr(div, "style", Array.from(ctx[14]).join(";"));
16488
16507
  },
16489
16508
  m(target, anchor) {
16490
16509
  insert(target, div, anchor);
@@ -16498,14 +16517,14 @@ function create_if_block$8(ctx) {
16498
16517
  if (default_slot.p && (!current || dirty & 16777216)) update_slot_base(default_slot, default_slot_template, ctx, ctx[24], !current ? get_all_dirty_from_scope(ctx[24]) : get_slot_changes(default_slot_template, ctx[24], dirty, null), null);
16499
16518
  }
16500
16519
  if (!current || dirty & 1 && div_class_value !== (div_class_value = null_to_empty(["modal", ctx[0] ? "modal-bp" : ""].join(" ")) + " svelte-45ue06")) attr(div, "class", div_class_value);
16501
- if (!current || dirty & 4) attr(div, "data-layer-id", ctx[2]);
16520
+ if (!current || dirty & 8) attr(div, "data-layer-id", ctx[3]);
16502
16521
  },
16503
16522
  i(local) {
16504
16523
  if (current) return;
16505
16524
  transition_in(default_slot, local);
16506
16525
  if (!div_intro) add_render_callback(() => {
16507
16526
  div_intro = create_in_transition(div, customAnimation, {
16508
- transforms: ctx[3],
16527
+ transforms: ctx[4],
16509
16528
  animationStyle: ctx[1]
16510
16529
  });
16511
16530
  div_intro.start();
@@ -16546,7 +16565,7 @@ function create_fragment$23(ctx) {
16546
16565
  }
16547
16566
  current_block_type_index = select_block_type(ctx, -1);
16548
16567
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
16549
- let if_block1 = ctx[8] && create_if_block$8(ctx);
16568
+ let if_block1 = ctx[9] && create_if_block$8(ctx);
16550
16569
  return {
16551
16570
  c() {
16552
16571
  if_block0.c();
@@ -16562,7 +16581,7 @@ function create_fragment$23(ctx) {
16562
16581
  current = true;
16563
16582
  if (!mounted) {
16564
16583
  dispose = listen(window, "keydown", function() {
16565
- if (is_function(ctx[9])) ctx[9].apply(this, arguments);
16584
+ if (is_function(ctx[10])) ctx[10].apply(this, arguments);
16566
16585
  });
16567
16586
  mounted = true;
16568
16587
  }
@@ -16586,9 +16605,9 @@ function create_fragment$23(ctx) {
16586
16605
  transition_in(if_block0, 1);
16587
16606
  if_block0.m(t.parentNode, t);
16588
16607
  }
16589
- if (ctx[8]) if (if_block1) {
16608
+ if (ctx[9]) if (if_block1) {
16590
16609
  if_block1.p(ctx, dirty);
16591
- if (dirty & 256) transition_in(if_block1, 1);
16610
+ if (dirty & 512) transition_in(if_block1, 1);
16592
16611
  } else {
16593
16612
  if_block1 = create_if_block$8(ctx);
16594
16613
  if_block1.c();
@@ -16657,25 +16676,25 @@ function instance$23($$self, $$props, $$invalidate) {
16657
16676
  }];
16658
16677
  let modal;
16659
16678
  onMount$1(() => {
16660
- $$invalidate(8, visible = true);
16679
+ $$invalidate(9, visible = true);
16661
16680
  });
16662
16681
  onDestroy$1(() => setPreviousFocus());
16663
16682
  function div_binding($$value) {
16664
16683
  binding_callbacks[$$value ? "unshift" : "push"](() => {
16665
16684
  modal = $$value;
16666
- $$invalidate(7, modal);
16685
+ $$invalidate(8, modal);
16667
16686
  });
16668
16687
  }
16669
16688
  $$self.$$set = ($$props$1) => {
16670
16689
  if ("useBreakPoint" in $$props$1) $$invalidate(0, useBreakPoint = $$props$1.useBreakPoint);
16671
- if ("placement" in $$props$1) $$invalidate(14, placement = $$props$1.placement);
16672
- if ("breakPoint" in $$props$1) $$invalidate(15, breakPoint = $$props$1.breakPoint);
16673
- if ("elasticity" in $$props$1) $$invalidate(16, elasticity = $$props$1.elasticity);
16690
+ if ("placement" in $$props$1) $$invalidate(15, placement = $$props$1.placement);
16691
+ if ("breakPoint" in $$props$1) $$invalidate(16, breakPoint = $$props$1.breakPoint);
16692
+ if ("elasticity" in $$props$1) $$invalidate(17, elasticity = $$props$1.elasticity);
16674
16693
  if ("animation" in $$props$1) $$invalidate(1, animation = $$props$1.animation);
16675
- if ("props" in $$props$1) $$invalidate(17, props = $$props$1.props);
16694
+ if ("props" in $$props$1) $$invalidate(2, props = $$props$1.props);
16676
16695
  if ("closeEventName" in $$props$1) $$invalidate(18, closeEventName = $$props$1.closeEventName);
16677
16696
  if ("closeEventValue" in $$props$1) $$invalidate(19, closeEventValue = $$props$1.closeEventValue);
16678
- if ("layerId" in $$props$1) $$invalidate(2, layerId = $$props$1.layerId);
16697
+ if ("layerId" in $$props$1) $$invalidate(3, layerId = $$props$1.layerId);
16679
16698
  if ("$$scope" in $$props$1) $$invalidate(24, $$scope = $$props$1.$$scope);
16680
16699
  };
16681
16700
  $$self.$$.update = () => {
@@ -16687,16 +16706,16 @@ function instance$23($$self, $$props, $$invalidate) {
16687
16706
  if (closeEventName) send_event(closeEventName, closeEventValue);
16688
16707
  execOnClickOperation(onClose$2);
16689
16708
  });
16690
- if ($$self.$$.dirty & 49153) $: {
16691
- if (!isCanvasPreview() && isExistBackgroundOverlayValue) $$invalidate(4, backgroundOverlay = placement.backgroundOverlay);
16709
+ if ($$self.$$.dirty & 98305) $: {
16710
+ if (!isCanvasPreview() && isExistBackgroundOverlayValue) $$invalidate(5, backgroundOverlay = placement.backgroundOverlay);
16692
16711
  if (useBreakPoint) {
16693
16712
  const pc = breakPoint?.PC?.placement?.backgroundOverlay;
16694
- $$invalidate(5, backgroundOverlayPC = pc ?? false);
16713
+ $$invalidate(6, backgroundOverlayPC = pc ?? false);
16695
16714
  const sp = breakPoint?.SP?.placement?.backgroundOverlay;
16696
- $$invalidate(6, backgroundOverlaySP = sp ?? false);
16715
+ $$invalidate(7, backgroundOverlaySP = sp ?? false);
16697
16716
  }
16698
16717
  }
16699
- if ($$self.$$.dirty & 49153) $: {
16718
+ if ($$self.$$.dirty & 98305) $: {
16700
16719
  if (placement && placement.backgroundClick) $$invalidate(20, backgroundClickFunction = placement.backgroundClick);
16701
16720
  if (useBreakPoint) {
16702
16721
  const pc = breakPoint?.PC?.placement?.backgroundClick;
@@ -16705,25 +16724,26 @@ function instance$23($$self, $$props, $$invalidate) {
16705
16724
  if (sp) $$invalidate(22, backgroundClickFunctionSP = sp);
16706
16725
  }
16707
16726
  }
16708
- if ($$self.$$.dirty & 1835008) $: $$invalidate(12, backgroundClick = () => {
16727
+ if ($$self.$$.dirty & 1835008) $: $$invalidate(13, backgroundClick = () => {
16709
16728
  if (closeEventName) send_event(closeEventName, closeEventValue);
16710
16729
  execOnClickOperation(backgroundClickFunction);
16711
16730
  });
16712
- if ($$self.$$.dirty & 2883584) $: $$invalidate(11, backgroundClickPC = () => {
16731
+ if ($$self.$$.dirty & 2883584) $: $$invalidate(12, backgroundClickPC = () => {
16713
16732
  if (closeEventName) send_event(closeEventName, closeEventValue);
16714
16733
  execOnClickOperation(backgroundClickFunctionPC);
16715
16734
  });
16716
- if ($$self.$$.dirty & 4980736) $: $$invalidate(10, backgroundClickSP = () => {
16735
+ if ($$self.$$.dirty & 4980736) $: $$invalidate(11, backgroundClickSP = () => {
16717
16736
  if (closeEventName) send_event(closeEventName, closeEventValue);
16718
16737
  execOnClickOperation(backgroundClickFunctionSP);
16719
16738
  });
16720
- if ($$self.$$.dirty & 49161) $: {
16739
+ if ($$self.$$.dirty & 98325) $: {
16721
16740
  let position$1 = DefaultModalPlacement.position;
16722
16741
  if (!isCanvasPreview() && placement && placement.position !== null) position$1 = placement.position;
16723
16742
  let positionStyle = getPositionStyle(position$1);
16724
16743
  if (!useBreakPoint) modalStyles.add(positionStyle);
16744
+ if (props.zIndex) modalStyles.add(`z-index: ${props.zIndex}`);
16725
16745
  if (brandKit) modalStyles.add(`font-family: ${brandKit.font_family}`);
16726
- $$invalidate(3, transforms = []);
16746
+ $$invalidate(4, transforms = []);
16727
16747
  DEVICE_IDS.forEach((deviceId) => {
16728
16748
  if (!isCanvasPreview() && useBreakPoint) {
16729
16749
  const positionWithBp = breakPoint[deviceId]?.placement?.position;
@@ -16745,7 +16765,7 @@ function instance$23($$self, $$props, $$invalidate) {
16745
16765
  ...getTransform(position$1)
16746
16766
  });
16747
16767
  }
16748
- if ($$self.$$.dirty & 180225) $: {
16768
+ if ($$self.$$.dirty & 98309) $: {
16749
16769
  let margin = DefaultModalPlacement.margin;
16750
16770
  if (!isCanvasPreview() && placement && placement.margin !== null) margin = placement.margin;
16751
16771
  let marginStyle = getMarginStyle(margin);
@@ -16765,13 +16785,14 @@ function instance$23($$self, $$props, $$invalidate) {
16765
16785
  const propsStyle = objToStyle({ width: props.width });
16766
16786
  modalStyles.add(propsStyle);
16767
16787
  }
16768
- if ($$self.$$.dirty & 8388608) $: $$invalidate(9, handle_keydown = handleKeydown({ Escape: close$2 }));
16788
+ if ($$self.$$.dirty & 8388608) $: $$invalidate(10, handle_keydown = handleKeydown({ Escape: close$2 }));
16769
16789
  };
16770
- $: $$invalidate(7, modal = null);
16771
- $: $$invalidate(8, visible = false);
16790
+ $: $$invalidate(8, modal = null);
16791
+ $: $$invalidate(9, visible = false);
16772
16792
  return [
16773
16793
  useBreakPoint,
16774
16794
  animation,
16795
+ props,
16775
16796
  layerId,
16776
16797
  transforms,
16777
16798
  backgroundOverlay,
@@ -16787,7 +16808,6 @@ function instance$23($$self, $$props, $$invalidate) {
16787
16808
  placement,
16788
16809
  breakPoint,
16789
16810
  elasticity,
16790
- props,
16791
16811
  closeEventName,
16792
16812
  closeEventValue,
16793
16813
  backgroundClickFunction,
@@ -16804,14 +16824,14 @@ var Modal = class extends SvelteComponent {
16804
16824
  super();
16805
16825
  init(this, options, instance$23, create_fragment$23, safe_not_equal, {
16806
16826
  useBreakPoint: 0,
16807
- placement: 14,
16808
- breakPoint: 15,
16809
- elasticity: 16,
16827
+ placement: 15,
16828
+ breakPoint: 16,
16829
+ elasticity: 17,
16810
16830
  animation: 1,
16811
- props: 17,
16831
+ props: 2,
16812
16832
  closeEventName: 18,
16813
16833
  closeEventValue: 19,
16814
- layerId: 2
16834
+ layerId: 3
16815
16835
  }, add_css$16);
16816
16836
  }
16817
16837
  };
@@ -17,6 +17,7 @@ type PositionPlaceProps = {
17
17
  };
18
18
  export type PositionProps = PositionPlaceProps & {
19
19
  position?: Properties["position"];
20
+ zIndex?: number;
20
21
  };
21
22
  export type MetaProps = {
22
23
  displayName?: string;
@@ -17,6 +17,7 @@ type PositionPlaceProps = {
17
17
  };
18
18
  export type PositionProps = PositionPlaceProps & {
19
19
  position?: Properties["position"];
20
+ zIndex?: number;
20
21
  };
21
22
  export type MetaProps = {
22
23
  displayName?: string;
@@ -3876,8 +3876,8 @@ function useClickable(props = {}) {
3876
3876
  if (eventName) send_event(eventName, eventValue);
3877
3877
  execOnClickOperation(onClick);
3878
3878
  }
3879
- function getFixedElement({ onClick, element }) {
3880
- if (!onClick) return element ?? "div";
3879
+ function getFixedElement({ onClick, element = "div" }) {
3880
+ if (!onClick) return element;
3881
3881
  switch (onClick.operation) {
3882
3882
  case "linkTo":
3883
3883
  case "callNativeFunction": return "a";
@@ -6888,15 +6888,24 @@ const $$css$18 = {
6888
6888
  function BackgroundOverlay($$anchor, $$props) {
6889
6889
  $.push($$props, false);
6890
6890
  $.append_styles($$anchor, $$css$18);
6891
+ const style = $.mutable_state();
6891
6892
  let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
6893
+ let zIndex = $.prop($$props, "zIndex", 8, void 0);
6892
6894
  let className = $.prop($$props, "class", 8, void 0);
6893
6895
  const dispatch = createEventDispatcher();
6896
+ $.legacy_pre_effect(() => $.deep_read_state(zIndex()), () => {
6897
+ $.set(style, objToStyle({ zIndex: zIndex() }));
6898
+ });
6899
+ $.legacy_pre_effect_reset();
6894
6900
  $.init();
6895
6901
  var fragment = $.comment();
6896
6902
  var node = $.first_child(fragment);
6897
6903
  var consequent = ($$anchor$1) => {
6898
6904
  var div = root_1$7();
6899
- $.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6905
+ $.template_effect(($0) => {
6906
+ $.set_class(div, 1, $0, "svelte-18nkdjz");
6907
+ $.set_style(div, $.get(style));
6908
+ }, [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6900
6909
  $.event("click", div, () => dispatch("click"));
6901
6910
  $.append($$anchor$1, div);
6902
6911
  };
@@ -6999,11 +7008,12 @@ function Modal($$anchor, $$props) {
6999
7008
  execOnClickOperation($.get(backgroundClickFunctionSP));
7000
7009
  });
7001
7010
  });
7002
- $.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.get(transforms), $.deep_read_state(breakPoint()), parseStyle), () => {
7011
+ $.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(props()), $.get(transforms), $.deep_read_state(breakPoint()), parseStyle), () => {
7003
7012
  let position$1 = DefaultModalPlacement.position;
7004
7013
  if (!isCanvasPreview() && placement() && placement().position !== null) position$1 = placement().position;
7005
7014
  let positionStyle = getPositionStyle(position$1);
7006
7015
  if (!useBreakPoint()) modalStyles.add(positionStyle);
7016
+ if (props().zIndex) modalStyles.add(`z-index: ${props().zIndex}`);
7007
7017
  if (brandKit) modalStyles.add(`font-family: ${brandKit.font_family}`);
7008
7018
  $.set(transforms, []);
7009
7019
  DEVICE_IDS.forEach((deviceId) => {
@@ -7070,6 +7080,9 @@ function Modal($$anchor, $$props) {
7070
7080
  var node_1 = $.first_child(fragment_1);
7071
7081
  BackgroundOverlay(node_1, {
7072
7082
  class: "background-bp-pc",
7083
+ get zIndex() {
7084
+ return props().zIndex;
7085
+ },
7073
7086
  get backgroundOverlay() {
7074
7087
  return $.get(backgroundOverlayPC);
7075
7088
  },
@@ -7080,6 +7093,9 @@ function Modal($$anchor, $$props) {
7080
7093
  var node_2 = $.sibling(node_1, 2);
7081
7094
  BackgroundOverlay(node_2, {
7082
7095
  class: "background-bp-sp ",
7096
+ get zIndex() {
7097
+ return props().zIndex;
7098
+ },
7083
7099
  get backgroundOverlay() {
7084
7100
  return $.get(backgroundOverlaySP);
7085
7101
  },
@@ -7094,6 +7110,9 @@ function Modal($$anchor, $$props) {
7094
7110
  get backgroundOverlay() {
7095
7111
  return $.get(backgroundOverlay);
7096
7112
  },
7113
+ get zIndex() {
7114
+ return props().zIndex;
7115
+ },
7097
7116
  $$events: { click(...$$args) {
7098
7117
  $.get(backgroundClick)?.apply(this, $$args);
7099
7118
  } }
@@ -3845,8 +3845,8 @@ function useClickable(props = {}) {
3845
3845
  if (eventName) send_event(eventName, eventValue);
3846
3846
  execOnClickOperation(onClick);
3847
3847
  }
3848
- function getFixedElement({ onClick, element }) {
3849
- if (!onClick) return element ?? "div";
3848
+ function getFixedElement({ onClick, element = "div" }) {
3849
+ if (!onClick) return element;
3850
3850
  switch (onClick.operation) {
3851
3851
  case "linkTo":
3852
3852
  case "callNativeFunction": return "a";
@@ -6857,15 +6857,24 @@ const $$css$18 = {
6857
6857
  function BackgroundOverlay($$anchor, $$props) {
6858
6858
  $.push($$props, false);
6859
6859
  $.append_styles($$anchor, $$css$18);
6860
+ const style = $.mutable_state();
6860
6861
  let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
6862
+ let zIndex = $.prop($$props, "zIndex", 8, void 0);
6861
6863
  let className = $.prop($$props, "class", 8, void 0);
6862
6864
  const dispatch = createEventDispatcher();
6865
+ $.legacy_pre_effect(() => $.deep_read_state(zIndex()), () => {
6866
+ $.set(style, objToStyle({ zIndex: zIndex() }));
6867
+ });
6868
+ $.legacy_pre_effect_reset();
6863
6869
  $.init();
6864
6870
  var fragment = $.comment();
6865
6871
  var node = $.first_child(fragment);
6866
6872
  var consequent = ($$anchor$1) => {
6867
6873
  var div = root_1$7();
6868
- $.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6874
+ $.template_effect(($0) => {
6875
+ $.set_class(div, 1, $0, "svelte-18nkdjz");
6876
+ $.set_style(div, $.get(style));
6877
+ }, [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6869
6878
  $.event("click", div, () => dispatch("click"));
6870
6879
  $.append($$anchor$1, div);
6871
6880
  };
@@ -6968,11 +6977,12 @@ function Modal($$anchor, $$props) {
6968
6977
  execOnClickOperation($.get(backgroundClickFunctionSP));
6969
6978
  });
6970
6979
  });
6971
- $.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.get(transforms), $.deep_read_state(breakPoint()), parseStyle), () => {
6980
+ $.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(props()), $.get(transforms), $.deep_read_state(breakPoint()), parseStyle), () => {
6972
6981
  let position$1 = DefaultModalPlacement.position;
6973
6982
  if (!isCanvasPreview() && placement() && placement().position !== null) position$1 = placement().position;
6974
6983
  let positionStyle = getPositionStyle(position$1);
6975
6984
  if (!useBreakPoint()) modalStyles.add(positionStyle);
6985
+ if (props().zIndex) modalStyles.add(`z-index: ${props().zIndex}`);
6976
6986
  if (brandKit) modalStyles.add(`font-family: ${brandKit.font_family}`);
6977
6987
  $.set(transforms, []);
6978
6988
  DEVICE_IDS.forEach((deviceId) => {
@@ -7039,6 +7049,9 @@ function Modal($$anchor, $$props) {
7039
7049
  var node_1 = $.first_child(fragment_1);
7040
7050
  BackgroundOverlay(node_1, {
7041
7051
  class: "background-bp-pc",
7052
+ get zIndex() {
7053
+ return props().zIndex;
7054
+ },
7042
7055
  get backgroundOverlay() {
7043
7056
  return $.get(backgroundOverlayPC);
7044
7057
  },
@@ -7049,6 +7062,9 @@ function Modal($$anchor, $$props) {
7049
7062
  var node_2 = $.sibling(node_1, 2);
7050
7063
  BackgroundOverlay(node_2, {
7051
7064
  class: "background-bp-sp ",
7065
+ get zIndex() {
7066
+ return props().zIndex;
7067
+ },
7052
7068
  get backgroundOverlay() {
7053
7069
  return $.get(backgroundOverlaySP);
7054
7070
  },
@@ -7063,6 +7079,9 @@ function Modal($$anchor, $$props) {
7063
7079
  get backgroundOverlay() {
7064
7080
  return $.get(backgroundOverlay);
7065
7081
  },
7082
+ get zIndex() {
7083
+ return props().zIndex;
7084
+ },
7066
7085
  $$events: { click(...$$args) {
7067
7086
  $.get(backgroundClick)?.apply(this, $$args);
7068
7087
  } }
@@ -3845,8 +3845,8 @@ function useClickable(props = {}) {
3845
3845
  if (eventName) send_event(eventName, eventValue);
3846
3846
  execOnClickOperation(onClick);
3847
3847
  }
3848
- function getFixedElement({ onClick, element }) {
3849
- if (!onClick) return element ?? "div";
3848
+ function getFixedElement({ onClick, element = "div" }) {
3849
+ if (!onClick) return element;
3850
3850
  switch (onClick.operation) {
3851
3851
  case "linkTo":
3852
3852
  case "callNativeFunction": return "a";
@@ -6857,15 +6857,24 @@ const $$css$18 = {
6857
6857
  function BackgroundOverlay($$anchor, $$props) {
6858
6858
  $.push($$props, false);
6859
6859
  $.append_styles($$anchor, $$css$18);
6860
+ const style = $.mutable_state();
6860
6861
  let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
6862
+ let zIndex = $.prop($$props, "zIndex", 8, void 0);
6861
6863
  let className = $.prop($$props, "class", 8, void 0);
6862
6864
  const dispatch = createEventDispatcher();
6865
+ $.legacy_pre_effect(() => $.deep_read_state(zIndex()), () => {
6866
+ $.set(style, objToStyle({ zIndex: zIndex() }));
6867
+ });
6868
+ $.legacy_pre_effect_reset();
6863
6869
  $.init();
6864
6870
  var fragment = $.comment();
6865
6871
  var node = $.first_child(fragment);
6866
6872
  var consequent = ($$anchor$1) => {
6867
6873
  var div = root_1$7();
6868
- $.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6874
+ $.template_effect(($0) => {
6875
+ $.set_class(div, 1, $0, "svelte-18nkdjz");
6876
+ $.set_style(div, $.get(style));
6877
+ }, [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6869
6878
  $.event("click", div, () => dispatch("click"));
6870
6879
  $.append($$anchor$1, div);
6871
6880
  };
@@ -6968,11 +6977,12 @@ function Modal($$anchor, $$props) {
6968
6977
  execOnClickOperation($.get(backgroundClickFunctionSP));
6969
6978
  });
6970
6979
  });
6971
- $.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.get(transforms), $.deep_read_state(breakPoint()), parseStyle), () => {
6980
+ $.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(props()), $.get(transforms), $.deep_read_state(breakPoint()), parseStyle), () => {
6972
6981
  let position$1 = DefaultModalPlacement.position;
6973
6982
  if (!isCanvasPreview() && placement() && placement().position !== null) position$1 = placement().position;
6974
6983
  let positionStyle = getPositionStyle(position$1);
6975
6984
  if (!useBreakPoint()) modalStyles.add(positionStyle);
6985
+ if (props().zIndex) modalStyles.add(`z-index: ${props().zIndex}`);
6976
6986
  if (brandKit) modalStyles.add(`font-family: ${brandKit.font_family}`);
6977
6987
  $.set(transforms, []);
6978
6988
  DEVICE_IDS.forEach((deviceId) => {
@@ -7039,6 +7049,9 @@ function Modal($$anchor, $$props) {
7039
7049
  var node_1 = $.first_child(fragment_1);
7040
7050
  BackgroundOverlay(node_1, {
7041
7051
  class: "background-bp-pc",
7052
+ get zIndex() {
7053
+ return props().zIndex;
7054
+ },
7042
7055
  get backgroundOverlay() {
7043
7056
  return $.get(backgroundOverlayPC);
7044
7057
  },
@@ -7049,6 +7062,9 @@ function Modal($$anchor, $$props) {
7049
7062
  var node_2 = $.sibling(node_1, 2);
7050
7063
  BackgroundOverlay(node_2, {
7051
7064
  class: "background-bp-sp ",
7065
+ get zIndex() {
7066
+ return props().zIndex;
7067
+ },
7052
7068
  get backgroundOverlay() {
7053
7069
  return $.get(backgroundOverlaySP);
7054
7070
  },
@@ -7063,6 +7079,9 @@ function Modal($$anchor, $$props) {
7063
7079
  get backgroundOverlay() {
7064
7080
  return $.get(backgroundOverlay);
7065
7081
  },
7082
+ get zIndex() {
7083
+ return props().zIndex;
7084
+ },
7066
7085
  $$events: { click(...$$args) {
7067
7086
  $.get(backgroundClick)?.apply(this, $$args);
7068
7087
  } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.270-29379017.f453cc451",
3
+ "version": "1.1.270-29410070.b86a3f94e",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",