@idds/vue 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -575,7 +575,7 @@ const _hoisted_7$j = {
575
575
  class: "ina-accordion-card__subtitle"
576
576
  };
577
577
  const _hoisted_8$g = ["id", "aria-labelledby"];
578
- const _hoisted_9$d = { class: "ina-accordion-card__body" };
578
+ const _hoisted_9$c = { class: "ina-accordion-card__body" };
579
579
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
580
580
  __name: "AccordionCard",
581
581
  props: {
@@ -666,7 +666,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
666
666
  class: "ina-accordion-card__content",
667
667
  "aria-labelledby": headerId.value
668
668
  }, [
669
- createElementVNode("div", _hoisted_9$d, [
669
+ createElementVNode("div", _hoisted_9$c, [
670
670
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
671
671
  ])
672
672
  ], 8, _hoisted_8$g)) : createCommentVNode("", true)
@@ -1004,7 +1004,7 @@ const _hoisted_7$i = {
1004
1004
  "stroke-linejoin": "round"
1005
1005
  };
1006
1006
  const _hoisted_8$f = { class: "ina-alert__content" };
1007
- const _hoisted_9$c = { class: "ina-alert__text-section" };
1007
+ const _hoisted_9$b = { class: "ina-alert__text-section" };
1008
1008
  const _hoisted_10$a = {
1009
1009
  key: 0,
1010
1010
  class: "ina-alert__title"
@@ -1060,7 +1060,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
1060
1060
  ])) : createCommentVNode("", true)
1061
1061
  ])) : createCommentVNode("", true),
1062
1062
  createElementVNode("div", _hoisted_8$f, [
1063
- createElementVNode("div", _hoisted_9$c, [
1063
+ createElementVNode("div", _hoisted_9$b, [
1064
1064
  __props.title ? (openBlock(), createElementBlock("div", _hoisted_10$a, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
1065
1065
  _ctx.$slots.default || __props.message ? (openBlock(), createElementBlock("div", _hoisted_11$a, [
1066
1066
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -1721,7 +1721,7 @@ const _hoisted_8$e = {
1721
1721
  key: 0,
1722
1722
  class: "ina-card__title"
1723
1723
  };
1724
- const _hoisted_9$b = {
1724
+ const _hoisted_9$a = {
1725
1725
  key: 1,
1726
1726
  class: "ina-card__description"
1727
1727
  };
@@ -1871,7 +1871,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1871
1871
  createTextVNode(toDisplayString(__props.title), 1)
1872
1872
  ])
1873
1873
  ])) : createCommentVNode("", true),
1874
- __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_9$b, [
1874
+ __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_9$a, [
1875
1875
  renderSlot(_ctx.$slots, "description", {}, () => [
1876
1876
  createTextVNode(toDisplayString(__props.description), 1)
1877
1877
  ])
@@ -3352,7 +3352,7 @@ const _hoisted_5$h = { class: "ina-file-upload__text" };
3352
3352
  const _hoisted_6$f = { class: "ina-file-upload__title" };
3353
3353
  const _hoisted_7$f = { class: "ina-file-upload__description" };
3354
3354
  const _hoisted_8$d = ["disabled"];
3355
- const _hoisted_9$a = { class: "ina-file-upload__files" };
3355
+ const _hoisted_9$9 = { class: "ina-file-upload__files" };
3356
3356
  const _hoisted_10$8 = { class: "ina-file-upload__file-indicator" };
3357
3357
  const _hoisted_11$8 = {
3358
3358
  key: 0,
@@ -3637,7 +3637,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3637
3637
  ])
3638
3638
  ], 34),
3639
3639
  files.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3640
- createElementVNode("div", _hoisted_9$a, [
3640
+ createElementVNode("div", _hoisted_9$9, [
3641
3641
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayedFiles.value, (uploadedFile, displayIndex) => {
3642
3642
  return openBlock(), createElementBlock("div", {
3643
3643
  key: `${uploadedFile.file.name}-${getOriginalIndex(uploadedFile)}`,
@@ -4626,7 +4626,7 @@ const _hoisted_5$d = ["disabled"];
4626
4626
  const _hoisted_6$b = ["disabled", "aria-label"];
4627
4627
  const _hoisted_7$b = ["onClick", "disabled", "aria-label", "aria-current"];
4628
4628
  const _hoisted_8$9 = ["disabled", "aria-label"];
4629
- const _hoisted_9$9 = ["disabled"];
4629
+ const _hoisted_9$8 = ["disabled"];
4630
4630
  const _hoisted_10$7 = {
4631
4631
  key: 0,
4632
4632
  class: "ina-pagination__page-size-container"
@@ -4866,7 +4866,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
4866
4866
  "stroke-linejoin": "round"
4867
4867
  })
4868
4868
  ], -1)
4869
- ])], 10, _hoisted_9$9)
4869
+ ])], 10, _hoisted_9$8)
4870
4870
  ])
4871
4871
  ]),
4872
4872
  __props.showPageSize ? (openBlock(), createElementBlock("div", _hoisted_10$7, [
@@ -4919,7 +4919,7 @@ const _hoisted_8$8 = {
4919
4919
  key: 1,
4920
4920
  class: "ina-password-input__status-area"
4921
4921
  };
4922
- const _hoisted_9$8 = {
4922
+ const _hoisted_9$7 = {
4923
4923
  key: 0,
4924
4924
  class: "ina-password-input__character-count"
4925
4925
  };
@@ -5076,7 +5076,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5076
5076
  createElementVNode("div", {
5077
5077
  class: normalizeClass(statusClasses.value)
5078
5078
  }, toDisplayString(__props.statusMessage), 3),
5079
- __props.showCharCount && __props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_9$8, toDisplayString(inputValue.value.length) + "/" + toDisplayString(__props.maxLength), 1)) : createCommentVNode("", true)
5079
+ __props.showCharCount && __props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_9$7, toDisplayString(inputValue.value.length) + "/" + toDisplayString(__props.maxLength), 1)) : createCommentVNode("", true)
5080
5080
  ])) : createCommentVNode("", true)
5081
5081
  ]);
5082
5082
  };
@@ -5096,7 +5096,7 @@ const _hoisted_7$9 = {
5096
5096
  class: "ina-phone-input__country-dropdown"
5097
5097
  };
5098
5098
  const _hoisted_8$7 = { class: "ina-phone-input__country-search" };
5099
- const _hoisted_9$7 = { class: "ina-phone-input__country-list" };
5099
+ const _hoisted_9$6 = { class: "ina-phone-input__country-list" };
5100
5100
  const _hoisted_10$6 = ["onClick"];
5101
5101
  const _hoisted_11$6 = { class: "ina-phone-input__country-flag" };
5102
5102
  const _hoisted_12$5 = { class: "ina-phone-input__country-name" };
@@ -5296,7 +5296,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5296
5296
  [vModelText, countrySearch.value]
5297
5297
  ])
5298
5298
  ]),
5299
- createElementVNode("div", _hoisted_9$7, [
5299
+ createElementVNode("div", _hoisted_9$6, [
5300
5300
  (openBlock(true), createElementBlock(Fragment, null, renderList(filteredCountries.value, (country) => {
5301
5301
  return openBlock(), createElementBlock("button", {
5302
5302
  key: country.code,
@@ -5577,7 +5577,7 @@ const _hoisted_5$9 = {
5577
5577
  const _hoisted_6$8 = { class: "ina-year-picker__trigger-text" };
5578
5578
  const _hoisted_7$8 = { class: "ina-year-picker__header" };
5579
5579
  const _hoisted_8$6 = ["disabled"];
5580
- const _hoisted_9$6 = { class: "ina-year-picker__decade-range" };
5580
+ const _hoisted_9$5 = { class: "ina-year-picker__decade-range" };
5581
5581
  const _hoisted_10$5 = ["disabled"];
5582
5582
  const _hoisted_11$5 = { class: "ina-year-picker__grid" };
5583
5583
  const _hoisted_12$4 = ["disabled", "onClick", "onMouseenter"];
@@ -5936,7 +5936,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5936
5936
  }, [
5937
5937
  createVNode(unref(IconChevronLeft), { class: "ina-year-picker__nav-icon" })
5938
5938
  ], 8, _hoisted_8$6),
5939
- createElementVNode("span", _hoisted_9$6, toDisplayString(currentDecade.value) + " - " + toDisplayString(Math.min(currentDecade.value + props.decadeSize - 1, props.maxYear)), 1),
5939
+ createElementVNode("span", _hoisted_9$5, toDisplayString(currentDecade.value) + " - " + toDisplayString(Math.min(currentDecade.value + props.decadeSize - 1, props.maxYear)), 1),
5940
5940
  createElementVNode("button", {
5941
5941
  type: "button",
5942
5942
  class: "ina-year-picker__nav-button",
@@ -5987,7 +5987,7 @@ const _hoisted_5$8 = { class: "ina-date-picker__calendar-header" };
5987
5987
  const _hoisted_6$7 = { class: "ina-date-picker__header-controls" };
5988
5988
  const _hoisted_7$7 = { class: "ina-date-picker__dropdown-container" };
5989
5989
  const _hoisted_8$5 = { class: "ina-date-picker__dropdown-container" };
5990
- const _hoisted_9$5 = { class: "ina-date-picker__calendar-grid" };
5990
+ const _hoisted_9$4 = { class: "ina-date-picker__calendar-grid" };
5991
5991
  const _hoisted_10$4 = ["disabled", "onClick"];
5992
5992
  const _hoisted_11$4 = {
5993
5993
  key: 0,
@@ -6879,7 +6879,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6879
6879
  })
6880
6880
  ])
6881
6881
  ]),
6882
- createElementVNode("div", _hoisted_9$5, [
6882
+ createElementVNode("div", _hoisted_9$4, [
6883
6883
  (openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
6884
6884
  return createElementVNode("div", {
6885
6885
  key: `h-${day}`,
@@ -7057,7 +7057,7 @@ const _hoisted_5$7 = {
7057
7057
  const _hoisted_6$6 = { class: "ina-select-dropdown__preview-content" };
7058
7058
  const _hoisted_7$6 = { class: "ina-select-dropdown__preview-item-text" };
7059
7059
  const _hoisted_8$4 = ["aria-label", "onClick"];
7060
- const _hoisted_9$4 = {
7060
+ const _hoisted_9$3 = {
7061
7061
  key: 0,
7062
7062
  class: "ina-select-dropdown__preview-more"
7063
7063
  };
@@ -7424,7 +7424,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7424
7424
  ], 8, _hoisted_8$4)) : createCommentVNode("", true)
7425
7425
  ]);
7426
7426
  }), 128)),
7427
- selectedArray.value.length > 3 ? (openBlock(), createElementBlock("span", _hoisted_9$4, " +" + toDisplayString(selectedArray.value.length - 3) + " more ", 1)) : createCommentVNode("", true)
7427
+ selectedArray.value.length > 3 ? (openBlock(), createElementBlock("span", _hoisted_9$3, " +" + toDisplayString(selectedArray.value.length - 3) + " more ", 1)) : createCommentVNode("", true)
7428
7428
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7429
7429
  __props.modelValue !== null && __props.modelValue !== void 0 && __props.modelValue !== "" ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
7430
7430
  createElementVNode("span", _hoisted_11$3, toDisplayString(getOptionLabelByValue(__props.modelValue)), 1),
@@ -8280,7 +8280,7 @@ const _hoisted_5$4 = ["onClick"];
8280
8280
  const _hoisted_6$4 = ["onClick"];
8281
8281
  const _hoisted_7$4 = { key: 0 };
8282
8282
  const _hoisted_8$3 = ["colspan"];
8283
- const _hoisted_9$3 = ["onClick"];
8283
+ const _hoisted_9$2 = ["onClick"];
8284
8284
  const _hoisted_10$2 = {
8285
8285
  key: 0,
8286
8286
  class: "ina-table__cell"
@@ -8705,7 +8705,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8705
8705
  ])
8706
8706
  ], 8, _hoisted_11$2);
8707
8707
  }), 128))
8708
- ], 10, _hoisted_9$3);
8708
+ ], 10, _hoisted_9$2);
8709
8709
  }), 128))
8710
8710
  ], 2)
8711
8711
  ], 2),
@@ -9318,7 +9318,7 @@ const _hoisted_5$3 = {
9318
9318
  const _hoisted_6$3 = { class: "ina-time-picker__content" };
9319
9319
  const _hoisted_7$3 = ["onClick", "onMouseenter"];
9320
9320
  const _hoisted_8$2 = ["onClick", "onMouseenter"];
9321
- const _hoisted_9$2 = ["onClick", "onMouseenter"];
9321
+ const _hoisted_9$1 = ["onClick", "onMouseenter"];
9322
9322
  const _hoisted_10$1 = ["onClick", "onMouseenter"];
9323
9323
  const _hoisted_11$1 = { class: "ina-time-picker__actions" };
9324
9324
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
@@ -9725,7 +9725,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9725
9725
  ]),
9726
9726
  onClick: ($event) => handleTimeSelect("second", option),
9727
9727
  onMouseenter: ($event) => handleMouseEnter("second", option)
9728
- }, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_9$2);
9728
+ }, toDisplayString(option.toString().padStart(2, "0")), 43, _hoisted_9$1);
9729
9729
  }), 128))
9730
9730
  ], 32)
9731
9731
  ], 2)) : createCommentVNode("", true),
@@ -10126,30 +10126,32 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10126
10126
  };
10127
10127
  }
10128
10128
  });
10129
- const _hoisted_1$1 = ["data-hover"];
10130
- const _hoisted_2$1 = ["aria-hidden"];
10131
- const _hoisted_3$1 = {
10129
+ const _hoisted_1$1 = {
10132
10130
  key: 1,
10133
10131
  class: "ina-tooltip__bubble ina-tooltip__bubble--basic"
10134
10132
  };
10135
- const _hoisted_4$1 = {
10133
+ const _hoisted_2$1 = {
10136
10134
  key: 1,
10137
10135
  class: "ina-tooltip__image"
10138
10136
  };
10139
- const _hoisted_5$1 = ["src"];
10140
- const _hoisted_6$1 = { class: "ina-tooltip__content-section" };
10141
- const _hoisted_7$1 = {
10137
+ const _hoisted_3$1 = ["src"];
10138
+ const _hoisted_4$1 = { class: "ina-tooltip__content-section" };
10139
+ const _hoisted_5$1 = {
10142
10140
  key: 0,
10143
10141
  class: "ina-tooltip__title"
10144
10142
  };
10145
- const _hoisted_8$1 = {
10143
+ const _hoisted_6$1 = {
10146
10144
  key: 1,
10147
10145
  class: "ina-tooltip__description"
10148
10146
  };
10149
- const _hoisted_9$1 = {
10147
+ const _hoisted_7$1 = {
10150
10148
  key: 2,
10151
10149
  class: "ina-tooltip__custom-content"
10152
10150
  };
10151
+ const _hoisted_8$1 = {
10152
+ key: 3,
10153
+ class: "ina-tooltip__actions"
10154
+ };
10153
10155
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10154
10156
  __name: "Tooltip",
10155
10157
  props: {
@@ -10159,232 +10161,140 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10159
10161
  variant: { default: "basic" },
10160
10162
  placement: { default: "top" },
10161
10163
  showArrow: { type: Boolean, default: true },
10162
- delay: { default: 0 },
10163
- leaveDelay: { default: 0 },
10164
- disabled: { type: Boolean, default: false },
10165
- trigger: { default: "hover" },
10166
- onClose: {}
10164
+ onClose: {},
10165
+ onNext: {},
10166
+ customContent: { type: Boolean, default: false },
10167
+ className: { default: "" }
10167
10168
  },
10168
- emits: ["show", "hide", "close"],
10169
+ emits: ["close", "next"],
10169
10170
  setup(__props, { emit: __emit }) {
10170
10171
  const props = __props;
10171
10172
  const emit = __emit;
10172
- const triggerRef = ref();
10173
- const tooltipRef = ref();
10174
- const isVisible = ref(false);
10175
- const showTimer = ref();
10176
- const hideTimer = ref();
10177
- const finalPlacement = ref(props.placement);
10173
+ const isClosed = ref(false);
10174
+ const handleClose = () => {
10175
+ isClosed.value = true;
10176
+ if (props.onClose) {
10177
+ props.onClose();
10178
+ }
10179
+ emit("close");
10180
+ };
10181
+ const handleNext = () => {
10182
+ isClosed.value = true;
10183
+ if (props.onNext) {
10184
+ props.onNext();
10185
+ }
10186
+ emit("next");
10187
+ };
10188
+ const handleMouseEnter = () => {
10189
+ if (isClosed.value) {
10190
+ isClosed.value = false;
10191
+ }
10192
+ };
10178
10193
  const tooltipClasses = computed(() => {
10179
10194
  const classes = ["ina-tooltip"];
10180
- if (props.disabled) {
10181
- classes.push("ina-tooltip--disabled");
10195
+ if (props.className) {
10196
+ classes.push(props.className);
10197
+ }
10198
+ if (isClosed.value) {
10199
+ classes.push("ina-tooltip--closed");
10182
10200
  }
10183
10201
  return classes;
10184
10202
  });
10185
10203
  const contentClasses = computed(() => {
10186
10204
  const classes = ["ina-tooltip__content"];
10187
- classes.push(`ina-tooltip--placement-${finalPlacement.value}`);
10188
- classes.push(`ina-tooltip--variant-${props.variant}`);
10205
+ classes.push(`ina-tooltip--placement-${props.placement}`);
10189
10206
  if (props.showArrow) {
10190
10207
  classes.push("ina-tooltip__content--show-arrow");
10191
10208
  }
10209
+ classes.push(`ina-tooltip--variant-${props.variant}`);
10192
10210
  return classes;
10193
10211
  });
10194
- watch(
10195
- () => props.placement,
10196
- (newPlacement) => {
10197
- if (!isVisible.value) {
10198
- finalPlacement.value = newPlacement;
10199
- }
10200
- }
10201
- );
10202
- const checkAndFlip = () => {
10203
- const trg = triggerRef.value;
10204
- const tip = tooltipRef.value;
10205
- if (!trg || !tip) return;
10206
- nextTick(() => {
10207
- const tipRect = tip.getBoundingClientRect();
10208
- let newPlacement = props.placement;
10209
- if ((props.placement === "top" || props.placement.startsWith("top-")) && tipRect.top < 0) {
10210
- newPlacement = props.placement.replace(
10211
- "top",
10212
- "bottom"
10213
- );
10214
- }
10215
- if ((props.placement === "bottom" || props.placement.startsWith("bottom-")) && tipRect.bottom > window.innerHeight) {
10216
- newPlacement = props.placement.replace(
10217
- "bottom",
10218
- "top"
10219
- );
10220
- }
10221
- if ((props.placement === "left" || props.placement.startsWith("left-")) && tipRect.left < 0) {
10222
- newPlacement = props.placement.replace(
10223
- "left",
10224
- "bottom"
10225
- );
10226
- }
10227
- if ((props.placement === "right" || props.placement.startsWith("right-")) && tipRect.right > window.innerWidth) {
10228
- newPlacement = props.placement.replace(
10229
- "right",
10230
- "top"
10231
- );
10232
- }
10233
- if (newPlacement !== finalPlacement.value) {
10234
- finalPlacement.value = newPlacement;
10235
- }
10236
- });
10237
- };
10238
- const showTooltip = () => {
10239
- if (props.disabled) return;
10240
- if (hideTimer.value) {
10241
- clearTimeout(hideTimer.value);
10242
- hideTimer.value = void 0;
10243
- }
10244
- finalPlacement.value = props.placement;
10245
- if (props.delay > 0) {
10246
- showTimer.value = setTimeout(() => {
10247
- isVisible.value = true;
10248
- emit("show");
10249
- nextTick(() => {
10250
- requestAnimationFrame(checkAndFlip);
10251
- });
10252
- }, props.delay);
10253
- } else {
10254
- isVisible.value = true;
10255
- emit("show");
10256
- nextTick(() => {
10257
- requestAnimationFrame(checkAndFlip);
10258
- });
10259
- }
10260
- };
10261
- const hideTooltip = () => {
10262
- if (showTimer.value) {
10263
- clearTimeout(showTimer.value);
10264
- showTimer.value = void 0;
10265
- }
10266
- hideTimer.value = setTimeout(() => {
10267
- isVisible.value = false;
10268
- finalPlacement.value = props.placement;
10269
- emit("hide");
10270
- }, props.leaveDelay);
10271
- };
10272
- const handleClose = () => {
10273
- if (showTimer.value) {
10274
- clearTimeout(showTimer.value);
10275
- showTimer.value = void 0;
10276
- }
10277
- if (hideTimer.value) {
10278
- clearTimeout(hideTimer.value);
10279
- hideTimer.value = void 0;
10280
- }
10281
- isVisible.value = false;
10282
- finalPlacement.value = props.placement;
10283
- if (props.onClose) {
10284
- props.onClose();
10285
- }
10286
- emit("close");
10287
- emit("hide");
10288
- };
10289
- onUnmounted(() => {
10290
- if (showTimer.value) {
10291
- clearTimeout(showTimer.value);
10292
- }
10293
- if (hideTimer.value) {
10294
- clearTimeout(hideTimer.value);
10295
- }
10296
- });
10297
10212
  return (_ctx, _cache) => {
10298
10213
  return openBlock(), createElementBlock("div", {
10299
- ref_key: "triggerRef",
10300
- ref: triggerRef,
10301
10214
  class: normalizeClass(["ina-tooltip", tooltipClasses.value]),
10302
- "data-hover": isVisible.value ? "true" : void 0,
10303
- onMouseenter: showTooltip,
10304
- onMouseleave: hideTooltip,
10305
- onFocus: showTooltip,
10306
- onBlur: hideTooltip
10215
+ onMouseenter: handleMouseEnter
10307
10216
  }, [
10308
10217
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
10309
- createVNode(Transition, { name: "tooltip" }, {
10310
- default: withCtx(() => [
10311
- isVisible.value ? (openBlock(), createElementBlock("div", {
10218
+ createElementVNode("div", {
10219
+ class: normalizeClass(["ina-tooltip__content", contentClasses.value]),
10220
+ role: "tooltip"
10221
+ }, [
10222
+ __props.customContent && _ctx.$slots.content ? renderSlot(_ctx.$slots, "content", { key: 0 }, void 0, true) : __props.variant === "basic" ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
10223
+ renderSlot(_ctx.$slots, "title", {}, () => [
10224
+ createTextVNode(toDisplayString(__props.title), 1)
10225
+ ], true)
10226
+ ])) : (openBlock(), createElementBlock("div", {
10227
+ key: 2,
10228
+ class: normalizeClass(["ina-tooltip__card", `ina-tooltip__card--${__props.variant}`])
10229
+ }, [
10230
+ __props.onClose ? (openBlock(), createElementBlock("button", {
10312
10231
  key: 0,
10313
- ref_key: "tooltipRef",
10314
- ref: tooltipRef,
10315
- class: normalizeClass(["ina-tooltip__content", contentClasses.value]),
10316
- role: "tooltip",
10317
- "aria-hidden": !isVisible.value,
10318
- onMouseenter: showTooltip,
10319
- onMouseleave: hideTooltip
10320
- }, [
10321
- __props.variant === "custom" ? renderSlot(_ctx.$slots, "content", { key: 0 }, () => [
10322
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
10323
- ], true) : __props.variant === "basic" ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
10232
+ type: "button",
10233
+ class: "ina-tooltip__close",
10234
+ "aria-label": "Close tooltip",
10235
+ onClick: withModifiers(handleClose, ["stop"])
10236
+ }, [..._cache[0] || (_cache[0] = [
10237
+ createElementVNode("svg", {
10238
+ width: "16",
10239
+ height: "16",
10240
+ viewBox: "0 0 24 24",
10241
+ fill: "none",
10242
+ xmlns: "http://www.w3.org/2000/svg"
10243
+ }, [
10244
+ createElementVNode("path", {
10245
+ d: "M18 6L6 18M6 6L18 18",
10246
+ stroke: "currentColor",
10247
+ "stroke-width": "2",
10248
+ "stroke-linecap": "round",
10249
+ "stroke-linejoin": "round"
10250
+ })
10251
+ ], -1)
10252
+ ])])) : createCommentVNode("", true),
10253
+ __props.variant === "media" && (__props.image || _ctx.$slots.image) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
10254
+ renderSlot(_ctx.$slots, "image", {}, () => [
10255
+ typeof __props.image === "string" ? (openBlock(), createElementBlock("img", {
10256
+ key: 0,
10257
+ src: __props.image,
10258
+ alt: ""
10259
+ }, null, 8, _hoisted_3$1)) : __props.image ? (openBlock(), createBlock(resolveDynamicComponent(__props.image), { key: 1 })) : createCommentVNode("", true)
10260
+ ], true)
10261
+ ])) : createCommentVNode("", true),
10262
+ createElementVNode("div", _hoisted_4$1, [
10263
+ __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
10324
10264
  renderSlot(_ctx.$slots, "title", {}, () => [
10325
10265
  createTextVNode(toDisplayString(__props.title), 1)
10326
10266
  ], true)
10327
- ])) : (openBlock(), createElementBlock("div", {
10328
- key: 2,
10329
- class: normalizeClass(["ina-tooltip__card", `ina-tooltip__card--${__props.variant}`])
10330
- }, [
10267
+ ])) : createCommentVNode("", true),
10268
+ __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
10269
+ renderSlot(_ctx.$slots, "description", {}, () => [
10270
+ createTextVNode(toDisplayString(__props.description), 1)
10271
+ ], true)
10272
+ ])) : createCommentVNode("", true),
10273
+ _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
10274
+ renderSlot(_ctx.$slots, "content", {}, void 0, true)
10275
+ ])) : createCommentVNode("", true),
10276
+ __props.onClose || __props.onNext ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
10331
10277
  __props.onClose ? (openBlock(), createElementBlock("button", {
10332
10278
  key: 0,
10333
10279
  type: "button",
10334
- class: "ina-tooltip__close",
10335
- "aria-label": "Close tooltip",
10336
- onClick: handleClose
10337
- }, [..._cache[0] || (_cache[0] = [
10338
- createElementVNode("svg", {
10339
- width: "16",
10340
- height: "16",
10341
- viewBox: "0 0 24 24",
10342
- fill: "none",
10343
- xmlns: "http://www.w3.org/2000/svg"
10344
- }, [
10345
- createElementVNode("path", {
10346
- d: "M18 6L6 18M6 6L18 18",
10347
- stroke: "currentColor",
10348
- "stroke-width": "2",
10349
- "stroke-linecap": "round",
10350
- "stroke-linejoin": "round"
10351
- })
10352
- ], -1)
10353
- ])])) : createCommentVNode("", true),
10354
- __props.variant === "media" && (__props.image || _ctx.$slots.image) ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
10355
- renderSlot(_ctx.$slots, "image", {}, () => [
10356
- typeof __props.image === "string" ? (openBlock(), createElementBlock("img", {
10357
- key: 0,
10358
- src: __props.image,
10359
- alt: ""
10360
- }, null, 8, _hoisted_5$1)) : __props.image ? (openBlock(), createBlock(resolveDynamicComponent(__props.image), { key: 1 })) : createCommentVNode("", true)
10361
- ], true)
10362
- ])) : createCommentVNode("", true),
10363
- createElementVNode("div", _hoisted_6$1, [
10364
- __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
10365
- renderSlot(_ctx.$slots, "title", {}, () => [
10366
- createTextVNode(toDisplayString(__props.title), 1)
10367
- ], true)
10368
- ])) : createCommentVNode("", true),
10369
- __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
10370
- renderSlot(_ctx.$slots, "description", {}, () => [
10371
- createTextVNode(toDisplayString(__props.description), 1)
10372
- ], true)
10373
- ])) : createCommentVNode("", true),
10374
- _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
10375
- renderSlot(_ctx.$slots, "content", {}, void 0, true)
10376
- ])) : createCommentVNode("", true)
10377
- ])
10378
- ], 2))
10379
- ], 42, _hoisted_2$1)) : createCommentVNode("", true)
10380
- ]),
10381
- _: 3
10382
- })
10383
- ], 42, _hoisted_1$1);
10280
+ class: "ina-tooltip__action ina-tooltip__action--close",
10281
+ onClick: withModifiers(handleClose, ["stop"])
10282
+ }, " Tutup ")) : createCommentVNode("", true),
10283
+ __props.onNext ? (openBlock(), createElementBlock("button", {
10284
+ key: 1,
10285
+ type: "button",
10286
+ class: "ina-tooltip__action ina-tooltip__action--next",
10287
+ onClick: withModifiers(handleNext, ["stop"])
10288
+ }, " Lanjut ")) : createCommentVNode("", true)
10289
+ ])) : createCommentVNode("", true)
10290
+ ])
10291
+ ], 2))
10292
+ ], 2)
10293
+ ], 34);
10384
10294
  };
10385
10295
  }
10386
10296
  });
10387
- const Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-6a62415d"]]);
10297
+ const Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cb9f229f"]]);
10388
10298
  const predefinedBrands = [
10389
10299
  "inagov",
10390
10300
  "inaku",