sit-onyx 1.4.0-dev-20251110081753 → 1.4.0-dev-20251110091137

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.
@@ -247,6 +247,7 @@
247
247
  "label": "Codeausschnitte",
248
248
  "copySnippet": "Code kopieren",
249
249
  "copied": "Kopiert!",
250
+ "failed": "Fehlgeschlagen!",
250
251
  "tabLabel": "Code"
251
252
  }
252
253
  }
@@ -250,6 +250,7 @@
250
250
  "label": "Code snippets",
251
251
  "copySnippet": "Copy code",
252
252
  "copied": "Copied!",
253
+ "failed": "Failed!",
253
254
  "tabLabel": "Code"
254
255
  }
255
256
  }
@@ -250,6 +250,7 @@ declare const _default: {
250
250
  "label": "Code snippets",
251
251
  "copySnippet": "Copy code",
252
252
  "copied": "Copied!",
253
+ "failed": "Failed!",
253
254
  "tabLabel": "Code"
254
255
  }
255
256
  }
@@ -252,7 +252,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
252
252
  }
253
253
  });
254
254
  const _hoisted_1$1c = ["open"];
255
- const _hoisted_2$S = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
255
+ const _hoisted_2$T = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
256
256
  const _hoisted_3$z = { class: "onyx-accordion-item__header-content" };
257
257
  const _hoisted_4$n = ["id", "aria-labelledby"];
258
258
  function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
@@ -298,7 +298,7 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
298
298
  icon: $setup.iconChevronDownSmall,
299
299
  class: "onyx-accordion-item__header-icon"
300
300
  }, null, 8, ["icon"])
301
- ], 8, _hoisted_2$S),
301
+ ], 8, _hoisted_2$T),
302
302
  createElementVNode("div", {
303
303
  id: $setup.panelId,
304
304
  class: "onyx-accordion-item__panel",
@@ -357,7 +357,7 @@ const globalFAB = { "label": "Global actions" };
357
357
  const calendar = { "todayButton": { "label": "Today", "tooltip": "Jump to today" }, "calendarWeek": "CW", "calendarWeekButtonLabel": "Select calendar week {weekNumber}", "previousMonthButton": "Previous month", "nextMonthButton": "Next month" };
358
358
  const flyoutMenu = { "moreActions": "More actions", "toggleActions": { "click": "Click to toggle action visibility", "hover": "Hover/Focus to toggle action visibility" } };
359
359
  const slider = { "decreaseValueBy": "Decrease value by {n}", "increaseValueBy": "Increase value by {n}", "changeValue": "Change value" };
360
- const codeTabs = { "label": "Code snippets", "copySnippet": "Copy code", "copied": "Copied!", "tabLabel": "Code" };
360
+ const codeTabs = { "label": "Code snippets", "copySnippet": "Copy code", "copied": "Copied!", "failed": "Failed!", "tabLabel": "Code" };
361
361
  const enUS = {
362
362
  yes,
363
363
  no,
@@ -2191,7 +2191,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
2191
2191
  }
2192
2192
  });
2193
2193
  const _hoisted_1$1b = ["aria-modal", "aria-label", "role"];
2194
- const _hoisted_2$R = {
2194
+ const _hoisted_2$S = {
2195
2195
  ref: "contentRef",
2196
2196
  class: "onyx-basic-dialog__content"
2197
2197
  };
@@ -2214,7 +2214,7 @@ function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
2214
2214
  }, [
2215
2215
  createElementVNode(
2216
2216
  "div",
2217
- _hoisted_2$R,
2217
+ _hoisted_2$S,
2218
2218
  [
2219
2219
  renderSlot(_ctx.$slots, "default")
2220
2220
  ],
@@ -2616,7 +2616,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
2616
2616
  }
2617
2617
  });
2618
2618
  const _hoisted_1$18 = { class: "onyx-alert-modal__content" };
2619
- const _hoisted_2$Q = { class: "onyx-alert-modal__headline" };
2619
+ const _hoisted_2$R = { class: "onyx-alert-modal__headline" };
2620
2620
  const _hoisted_3$y = ["id"];
2621
2621
  const _hoisted_4$m = { class: "onyx-alert-modal__actions" };
2622
2622
  function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
@@ -2641,7 +2641,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
2641
2641
  /* FULL_PROPS */
2642
2642
  )) : createCommentVNode("v-if", true),
2643
2643
  createElementVNode("div", null, [
2644
- createElementVNode("div", _hoisted_2$Q, [
2644
+ createElementVNode("div", _hoisted_2$R, [
2645
2645
  renderSlot(_ctx.$slots, "headline", {
2646
2646
  label: $setup.props.label
2647
2647
  }, () => [
@@ -3354,7 +3354,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
3354
3354
  }
3355
3355
  });
3356
3356
  const _hoisted_1$15 = { class: "onyx-flyout-menu__list-header" };
3357
- const _hoisted_2$P = { class: "onyx-flyout-menu__list-footer" };
3357
+ const _hoisted_2$Q = { class: "onyx-flyout-menu__list-footer" };
3358
3358
  function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
3359
3359
  return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.mergeVueProps($setup.root, { ref: $setup.popover }), {
3360
3360
  class: "onyx-component onyx-flyout-menu",
@@ -3376,7 +3376,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
3376
3376
  16
3377
3377
  /* FULL_PROPS */
3378
3378
  )) : createCommentVNode("v-if", true),
3379
- createElementVNode("div", _hoisted_2$P, [
3379
+ createElementVNode("div", _hoisted_2$Q, [
3380
3380
  renderSlot(_ctx.$slots, "footer")
3381
3381
  ])
3382
3382
  ]),
@@ -3710,7 +3710,7 @@ const _hoisted_1$12 = {
3710
3710
  class: "onyx-component onyx-ripple",
3711
3711
  "aria-hidden": "true"
3712
3712
  };
3713
- const _hoisted_2$O = ["data-rippleid"];
3713
+ const _hoisted_2$P = ["data-rippleid"];
3714
3714
  function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
3715
3715
  return openBlock(), createElementBlock(
3716
3716
  "span",
@@ -3729,7 +3729,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
3729
3729
  }),
3730
3730
  "data-rippleid": key,
3731
3731
  onAnimationend: _cache[0] || (_cache[0] = ($event) => $setup.hideRipple($event.target))
3732
- }, null, 44, _hoisted_2$O);
3732
+ }, null, 44, _hoisted_2$P);
3733
3733
  }),
3734
3734
  128
3735
3735
  /* KEYED_FRAGMENT */
@@ -3852,7 +3852,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
3852
3852
  }
3853
3853
  });
3854
3854
  const _hoisted_1$10 = { class: "onyx-info-card__content" };
3855
- const _hoisted_2$N = {
3855
+ const _hoisted_2$O = {
3856
3856
  key: 3,
3857
3857
  class: "onyx-info-card__description onyx-text--small"
3858
3858
  };
@@ -3915,7 +3915,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
3915
3915
  color: $setup.systemButtonColor,
3916
3916
  onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
3917
3917
  }, null, 8, ["icon", "label", "color"])) : createCommentVNode("v-if", true),
3918
- !!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$N, [
3918
+ !!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$O, [
3919
3919
  renderSlot(_ctx.$slots, "default")
3920
3920
  ])) : createCommentVNode("v-if", true),
3921
3921
  !!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
@@ -4132,7 +4132,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
4132
4132
  }
4133
4133
  });
4134
4134
  const _hoisted_1$_ = { class: "onyx-toast-message__wrapper" };
4135
- const _hoisted_2$M = { class: "onyx-toast-message__content onyx-truncation-ellipsis" };
4135
+ const _hoisted_2$N = { class: "onyx-toast-message__content onyx-truncation-ellipsis" };
4136
4136
  const _hoisted_3$w = { class: "onyx-toast-message__headline onyx-text" };
4137
4137
  const _hoisted_4$l = { class: "onyx-truncation-ellipsis" };
4138
4138
  const _hoisted_5$f = ["aria-label"];
@@ -4153,7 +4153,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
4153
4153
  key: 0,
4154
4154
  icon: $setup.icon
4155
4155
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
4156
- createElementVNode("div", _hoisted_2$M, [
4156
+ createElementVNode("div", _hoisted_2$N, [
4157
4157
  createElementVNode("div", _hoisted_3$w, [
4158
4158
  createElementVNode(
4159
4159
  "span",
@@ -4297,7 +4297,7 @@ const _hoisted_1$Y = {
4297
4297
  key: 0,
4298
4298
  class: "onyx-app__nav"
4299
4299
  };
4300
- const _hoisted_2$L = { class: "onyx-app__page" };
4300
+ const _hoisted_2$M = { class: "onyx-app__page" };
4301
4301
  function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
4302
4302
  return openBlock(), createElementBlock(
4303
4303
  "div",
@@ -4308,7 +4308,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
4308
4308
  $setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
4309
4309
  renderSlot(_ctx.$slots, "navBar")
4310
4310
  ])) : createCommentVNode("v-if", true),
4311
- createElementVNode("div", _hoisted_2$L, [
4311
+ createElementVNode("div", _hoisted_2$M, [
4312
4312
  renderSlot(_ctx.$slots, "default")
4313
4313
  ]),
4314
4314
  createVNode($setup["OnyxToast"]),
@@ -4355,7 +4355,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4355
4355
  }
4356
4356
  });
4357
4357
  const _hoisted_1$X = ["title", "aria-label"];
4358
- const _hoisted_2$K = ["src", "alt"];
4358
+ const _hoisted_2$L = ["src", "alt"];
4359
4359
  const _hoisted_3$v = {
4360
4360
  key: 0,
4361
4361
  class: "onyx-avatar__initials"
@@ -4377,7 +4377,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
4377
4377
  src: $setup.props.src,
4378
4378
  alt: $setup.ariaLabel,
4379
4379
  onError: _cache[0] || (_cache[0] = ($event) => $setup.hasImageError = true)
4380
- }, null, 40, _hoisted_2$K)) : (openBlock(), createElementBlock(
4380
+ }, null, 40, _hoisted_2$L)) : (openBlock(), createElementBlock(
4381
4381
  Fragment,
4382
4382
  { key: 1 },
4383
4383
  [
@@ -4480,7 +4480,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
4480
4480
  }
4481
4481
  });
4482
4482
  const _hoisted_1$V = { class: "onyx-bottom-bar__content onyx-grid-container" };
4483
- const _hoisted_2$J = { class: "onyx-bottom-bar__content--left" };
4483
+ const _hoisted_2$K = { class: "onyx-bottom-bar__content--left" };
4484
4484
  const _hoisted_3$u = { class: "onyx-bottom-bar__content--right" };
4485
4485
  function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
4486
4486
  return openBlock(), createElementBlock(
@@ -4495,7 +4495,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
4495
4495
  },
4496
4496
  [
4497
4497
  createElementVNode("div", _hoisted_1$V, [
4498
- createElementVNode("div", _hoisted_2$J, [
4498
+ createElementVNode("div", _hoisted_2$K, [
4499
4499
  renderSlot(_ctx.$slots, "left")
4500
4500
  ]),
4501
4501
  createElementVNode("div", _hoisted_3$u, [
@@ -4754,7 +4754,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
4754
4754
  }
4755
4755
  });
4756
4756
  const _hoisted_1$U = { class: "onyx-truncation-ellipsis" };
4757
- const _hoisted_2$I = {
4757
+ const _hoisted_2$J = {
4758
4758
  key: 0,
4759
4759
  class: "onyx-menu-item__chevron"
4760
4760
  };
@@ -4798,7 +4798,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
4798
4798
  )
4799
4799
  ])
4800
4800
  ]),
4801
- $setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
4801
+ $setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$J, [
4802
4802
  createVNode($setup["OnyxIcon"], {
4803
4803
  icon: $setup.iconChevronRightSmall,
4804
4804
  size: "24px"
@@ -5038,7 +5038,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
5038
5038
  }
5039
5039
  });
5040
5040
  const _hoisted_1$T = ["aria-label", "aria-hidden"];
5041
- const _hoisted_2$H = {
5041
+ const _hoisted_2$I = {
5042
5042
  class: "onyx-breadcrumb__list onyx-grid-container",
5043
5043
  role: "menu"
5044
5044
  };
@@ -5054,7 +5054,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
5054
5054
  "aria-label": $setup.t("breadcrumb.label"),
5055
5055
  "aria-hidden": $setup.props.skeleton
5056
5056
  }, [
5057
- createElementVNode("ol", _hoisted_2$H, [
5057
+ createElementVNode("ol", _hoisted_2$I, [
5058
5058
  createVNode($setup["OnyxBreadcrumbItem"], {
5059
5059
  class: "onyx-breadcrumb__home",
5060
5060
  href: $setup.props.home?.link ?? "/",
@@ -5401,7 +5401,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
5401
5401
  }
5402
5402
  });
5403
5403
  const _hoisted_1$R = { class: "onyx-calendar-cell__header" };
5404
- const _hoisted_2$G = { class: "onyx-calendar-cell__date-container" };
5404
+ const _hoisted_2$H = { class: "onyx-calendar-cell__date-container" };
5405
5405
  const _hoisted_3$r = {
5406
5406
  key: 1,
5407
5407
  class: "onyx-calendar-cell__date"
@@ -5437,7 +5437,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
5437
5437
  }), {
5438
5438
  default: withCtx(() => [
5439
5439
  createElementVNode("div", _hoisted_1$R, [
5440
- createElementVNode("div", _hoisted_2$G, [
5440
+ createElementVNode("div", _hoisted_2$H, [
5441
5441
  $setup.props.tooltipText ? (openBlock(), createBlock($setup["OnyxTooltip"], {
5442
5442
  key: 0,
5443
5443
  text: $setup.props.tooltipText,
@@ -5558,7 +5558,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
5558
5558
  }
5559
5559
  });
5560
5560
  const _hoisted_1$Q = { class: "onyx-text--small onyx-truncation-ellipsis" };
5561
- const _hoisted_2$F = { class: "onyx-text--small onyx-truncation-ellipsis" };
5561
+ const _hoisted_2$G = { class: "onyx-text--small onyx-truncation-ellipsis" };
5562
5562
  function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
5563
5563
  return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
5564
5564
  key: 0,
@@ -5613,7 +5613,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
5613
5613
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
5614
5614
  createElementVNode(
5615
5615
  "span",
5616
- _hoisted_2$F,
5616
+ _hoisted_2$G,
5617
5617
  toDisplayString($setup.props.label),
5618
5618
  1
5619
5619
  /* TEXT */
@@ -5741,7 +5741,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
5741
5741
  }
5742
5742
  });
5743
5743
  const _hoisted_1$P = { class: "onyx-calendar__header" };
5744
- const _hoisted_2$E = { class: "control-container time-control-container" };
5744
+ const _hoisted_2$F = { class: "control-container time-control-container" };
5745
5745
  const _hoisted_3$q = { class: "control-container" };
5746
5746
  const _hoisted_4$j = { class: "onyx-calendar__body" };
5747
5747
  const _hoisted_5$e = ["abbr"];
@@ -5767,7 +5767,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
5767
5767
  },
5768
5768
  [
5769
5769
  createElementVNode("div", _hoisted_1$P, [
5770
- createElementVNode("div", _hoisted_2$E, [
5770
+ createElementVNode("div", _hoisted_2$F, [
5771
5771
  createVNode($setup["OnyxSystemButton"], {
5772
5772
  label: $setup.t("calendar.todayButton.label"),
5773
5773
  class: "control-container__today-btn",
@@ -6139,7 +6139,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
6139
6139
  }
6140
6140
  });
6141
6141
  const _hoisted_1$O = { class: "onyx-component" };
6142
- const _hoisted_2$D = {
6142
+ const _hoisted_2$E = {
6143
6143
  key: 0,
6144
6144
  ref: "targetRef"
6145
6145
  };
@@ -6147,7 +6147,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
6147
6147
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
6148
6148
  !$setup.tooltipError || $setup.props.disabled ? (openBlock(), createElementBlock(
6149
6149
  "div",
6150
- _hoisted_2$D,
6150
+ _hoisted_2$E,
6151
6151
  null,
6152
6152
  512
6153
6153
  /* NEED_PATCH */
@@ -6229,7 +6229,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
6229
6229
  }
6230
6230
  });
6231
6231
  const _hoisted_1$N = ["title"];
6232
- const _hoisted_2$C = { class: "onyx-checkbox__container" };
6232
+ const _hoisted_2$D = { class: "onyx-checkbox__container" };
6233
6233
  const _hoisted_3$p = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"];
6234
6234
  function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
6235
6235
  return $setup.skeleton ? (openBlock(), createElementBlock(
@@ -6257,7 +6257,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
6257
6257
  class: normalizeClass(["onyx-component onyx-checkbox", [$setup.requiredTypeClass, $setup.densityClass]]),
6258
6258
  title: $setup.title
6259
6259
  }, [
6260
- createElementVNode("div", _hoisted_2$C, [
6260
+ createElementVNode("div", _hoisted_2$D, [
6261
6261
  $setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
6262
6262
  key: 0,
6263
6263
  class: "onyx-checkbox__loading",
@@ -6507,7 +6507,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
6507
6507
  }
6508
6508
  });
6509
6509
  const _hoisted_1$L = ["disabled", "aria-label"];
6510
- const _hoisted_2$B = {
6510
+ const _hoisted_2$C = {
6511
6511
  key: 0,
6512
6512
  class: "onyx-checkbox-group__label"
6513
6513
  };
@@ -6517,7 +6517,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
6517
6517
  disabled: $setup.disabled,
6518
6518
  "aria-label": $setup.props.label
6519
6519
  }, [
6520
- !$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$B, [
6520
+ !$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$C, [
6521
6521
  createVNode($setup["OnyxHeadline"], { is: "h3" }, {
6522
6522
  default: withCtx(() => [
6523
6523
  createTextVNode(
@@ -6634,7 +6634,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
6634
6634
  }
6635
6635
  });
6636
6636
  const _hoisted_1$K = ["disabled"];
6637
- const _hoisted_2$A = { class: "onyx-tab__label" };
6637
+ const _hoisted_2$B = { class: "onyx-tab__label" };
6638
6638
  function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
6639
6639
  return openBlock(), createElementBlock(
6640
6640
  Fragment,
@@ -6656,7 +6656,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
6656
6656
  type: "button",
6657
6657
  disabled: $setup.props.disabled
6658
6658
  }), [
6659
- createElementVNode("div", _hoisted_2$A, [
6659
+ createElementVNode("div", _hoisted_2$B, [
6660
6660
  renderSlot(_ctx.$slots, "tab", {}, () => [
6661
6661
  createTextVNode(
6662
6662
  toDisplayString($setup.props.label),
@@ -6711,6 +6711,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
6711
6711
  const tabProps = useForwardProps(props, OnyxTab);
6712
6712
  const tabsContext = inject(CODE_TABS_INJECTION_KEY, void 0);
6713
6713
  const label = computed(() => props.label ?? t.value("codeTabs.tabLabel"));
6714
+ const skeleton = useSkeletonContext(props);
6714
6715
  watch(
6715
6716
  [() => props.value, () => props.code],
6716
6717
  ([newValue, newCode], [oldValue]) => {
@@ -6728,12 +6729,16 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
6728
6729
  if (props.disabled != void 0) return props.disabled;
6729
6730
  return tabsContext && tabsContext.tabs.value.size <= 1;
6730
6731
  });
6731
- const __returned__ = { props, t, tabProps, tabsContext, label, disabled, OnyxIcon, OnyxTab };
6732
+ const __returned__ = { props, t, tabProps, tabsContext, label, skeleton, disabled, OnyxIcon, OnyxSkeleton, OnyxTab };
6732
6733
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
6733
6734
  return __returned__;
6734
6735
  }
6735
6736
  });
6736
6737
  const _hoisted_1$J = {
6738
+ key: 0,
6739
+ class: "onyx-code-tab__skeletons"
6740
+ };
6741
+ const _hoisted_2$A = {
6737
6742
  key: 0,
6738
6743
  class: "onyx-code-tab__language onyx-text--small"
6739
6744
  };
@@ -6758,24 +6763,45 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
6758
6763
  ])
6759
6764
  ]),
6760
6765
  default: withCtx(() => [
6761
- renderSlot(_ctx.$slots, "default", {}, () => [
6762
- createElementVNode("pre", null, [
6763
- createElementVNode(
6764
- "code",
6765
- null,
6766
- toDisplayString($setup.props.code),
6766
+ $setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
6767
+ (openBlock(), createElementBlock(
6768
+ Fragment,
6769
+ null,
6770
+ renderList(3, (i) => {
6771
+ return createVNode($setup["OnyxSkeleton"], {
6772
+ key: i,
6773
+ class: "onyx-code-tab__skeleton"
6774
+ });
6775
+ }),
6776
+ 64
6777
+ /* STABLE_FRAGMENT */
6778
+ ))
6779
+ ])) : (openBlock(), createElementBlock(
6780
+ Fragment,
6781
+ { key: 1 },
6782
+ [
6783
+ renderSlot(_ctx.$slots, "default", {}, () => [
6784
+ createElementVNode("pre", null, [
6785
+ createElementVNode(
6786
+ "code",
6787
+ null,
6788
+ toDisplayString($setup.props.code),
6789
+ 1
6790
+ /* TEXT */
6791
+ )
6792
+ ])
6793
+ ]),
6794
+ $setup.props.language ? (openBlock(), createElementBlock(
6795
+ "span",
6796
+ _hoisted_2$A,
6797
+ toDisplayString($setup.props.language),
6767
6798
  1
6768
6799
  /* TEXT */
6769
- )
6770
- ])
6771
- ]),
6772
- $setup.props.language ? (openBlock(), createElementBlock(
6773
- "span",
6774
- _hoisted_1$J,
6775
- toDisplayString($setup.props.language),
6776
- 1
6777
- /* TEXT */
6778
- )) : createCommentVNode("v-if", true)
6800
+ )) : createCommentVNode("v-if", true)
6801
+ ],
6802
+ 64
6803
+ /* STABLE_FRAGMENT */
6804
+ ))
6779
6805
  ]),
6780
6806
  _: 3
6781
6807
  /* FORWARDED */
@@ -6883,14 +6909,19 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
6883
6909
  const tabs = ref(/* @__PURE__ */ new Map());
6884
6910
  provide(CODE_TABS_INJECTION_KEY, { tabs });
6885
6911
  const activeTabCode = computed(() => tabs.value.get(modelValue.value));
6886
- const isCopied = ref(false);
6912
+ const copyStatus = ref();
6887
6913
  const handleCopy = async () => {
6888
6914
  if (!activeTabCode.value) return;
6889
- await navigator.clipboard.writeText(activeTabCode.value);
6890
- isCopied.value = true;
6891
- setTimeout(() => isCopied.value = false, 3e3);
6915
+ try {
6916
+ await navigator.clipboard.writeText(activeTabCode.value);
6917
+ copyStatus.value = "success";
6918
+ } catch {
6919
+ copyStatus.value = "error";
6920
+ } finally {
6921
+ setTimeout(() => copyStatus.value = void 0, 3e3);
6922
+ }
6892
6923
  };
6893
- const __returned__ = { props, emit, t, tabsProps, modelValue, tabs, activeTabCode, isCopied, handleCopy, get iconFileCopy() {
6924
+ const __returned__ = { props, emit, t, tabsProps, modelValue, tabs, activeTabCode, copyStatus, handleCopy, get iconFileCopy() {
6894
6925
  return iconFileCopy;
6895
6926
  }, OnyxSystemButton, OnyxTabs, OnyxTag };
6896
6927
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -6907,17 +6938,21 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
6907
6938
  density: "compact"
6908
6939
  }), {
6909
6940
  actions: withCtx(() => [
6910
- !$setup.isCopied ? (openBlock(), createBlock($setup["OnyxSystemButton"], {
6941
+ !$setup.copyStatus ? (openBlock(), createBlock($setup["OnyxSystemButton"], {
6911
6942
  key: 0,
6912
6943
  label: $setup.t("codeTabs.copySnippet"),
6913
6944
  icon: $setup.iconFileCopy,
6914
6945
  disabled: !$setup.activeTabCode,
6915
6946
  onClick: $setup.handleCopy
6916
- }, null, 8, ["label", "icon", "disabled"])) : (openBlock(), createBlock($setup["OnyxTag"], {
6947
+ }, null, 8, ["label", "icon", "disabled"])) : $setup.copyStatus === "success" ? (openBlock(), createBlock($setup["OnyxTag"], {
6917
6948
  key: 1,
6918
6949
  label: $setup.t("codeTabs.copied"),
6919
6950
  color: "success"
6920
- }, null, 8, ["label"]))
6951
+ }, null, 8, ["label"])) : $setup.copyStatus === "error" ? (openBlock(), createBlock($setup["OnyxTag"], {
6952
+ key: 2,
6953
+ label: $setup.t("codeTabs.failed"),
6954
+ color: "danger"
6955
+ }, null, 8, ["label"])) : createCommentVNode("v-if", true)
6921
6956
  ]),
6922
6957
  default: withCtx(() => [
6923
6958
  renderSlot(_ctx.$slots, "default")