@namba_one/ui-kit-2 1.0.72 → 1.0.74

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.d.ts CHANGED
@@ -1695,6 +1695,12 @@ export declare const TransitionSlideDown: __VLS_WithTemplateSlots_17<typeof __VL
1695
1695
 
1696
1696
  export declare const TransitionSlideRight: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
1697
1697
 
1698
+ export declare function useCopyToBuffer(options?: {
1699
+ toasterText: string;
1700
+ }): {
1701
+ copy: (text: string) => void;
1702
+ };
1703
+
1698
1704
  export declare function useDropdown(): {
1699
1705
  isShowDropdown: Readonly<Ref<boolean, boolean>>;
1700
1706
  setIsShowDropdown: (newState: boolean) => void;
package/dist/index.es.js CHANGED
@@ -18948,12 +18948,12 @@ const Ew = {
18948
18948
  title: Rw
18949
18949
  }, zw = {
18950
18950
  $style: Lw
18951
- }, Vw = /* @__PURE__ */ Ce(Fw, [["__cssModules", zw]]), vu = Symbol("ToasterService"), O$ = () => Zr(vu, {
18951
+ }, Vw = /* @__PURE__ */ Ce(Fw, [["__cssModules", zw]]), vu = Symbol("ToasterService"), Yw = () => Zr(vu, {
18952
18952
  show: () => {
18953
18953
  },
18954
18954
  showError: () => {
18955
18955
  }
18956
- }), mu = 5e3, Yw = () => {
18956
+ }), mu = 5e3, Nw = () => {
18957
18957
  const a = H([]), e = H({});
18958
18958
  function t() {
18959
18959
  Object.keys(e.value).forEach((l, u) => {
@@ -19004,11 +19004,11 @@ const Ew = {
19004
19004
  showError: o,
19005
19005
  showInfo: i
19006
19006
  };
19007
- }, Nw = ["id"], Hw = /* @__PURE__ */ he({
19007
+ }, Hw = ["id"], Uw = /* @__PURE__ */ he({
19008
19008
  __name: "ToasterProvider",
19009
19009
  setup(a) {
19010
19010
  let e;
19011
- const t = Yw();
19011
+ const t = Nw();
19012
19012
  ui(vu, {
19013
19013
  show: t.show,
19014
19014
  showError: t.showError
@@ -19217,7 +19217,7 @@ const Ew = {
19217
19217
  class: _([M.$style.right, M.$style.shadow]),
19218
19218
  style: Ue(d(C).right)
19219
19219
  }, null, 6)
19220
- ], 14, Nw))), 128))
19220
+ ], 14, Hw))), 128))
19221
19221
  ];
19222
19222
  }),
19223
19223
  _: 1
@@ -19226,7 +19226,7 @@ const Ew = {
19226
19226
  ce(M.$slots, "default")
19227
19227
  ], 64));
19228
19228
  }
19229
- }), Uw = "Toaster__root_c8076", Ww = "Toaster__toaster_85d69", jw = "Toaster__body_b95ab", Gw = "Toaster__view_base_1f2dc", qw = "Toaster__left_f2f1b", Xw = "Toaster__right_9ecd4", Kw = "Toaster__view_danger_dc64c", Qw = "Toaster__view_primary_96bfe", Zw = "Toaster__shadow_68b8d", Jw = {
19229
+ }), Ww = "Toaster__root_c8076", jw = "Toaster__toaster_85d69", Gw = "Toaster__body_b95ab", qw = "Toaster__view_base_1f2dc", Xw = "Toaster__left_f2f1b", Kw = "Toaster__right_9ecd4", Qw = "Toaster__view_danger_dc64c", Zw = "Toaster__view_primary_96bfe", Jw = "Toaster__shadow_68b8d", ek = {
19230
19230
  "toaster-enter-from": "Toaster__toaster-enter-from_e2835",
19231
19231
  "toaster-enter": "Toaster__toaster-enter_84e4c",
19232
19232
  "toaster-enter-to": "Toaster__toaster-enter-to_c3565",
@@ -19235,19 +19235,19 @@ const Ew = {
19235
19235
  "toaster-leave-from": "Toaster__toaster-leave-from_5be56",
19236
19236
  "toaster-leave": "Toaster__toaster-leave_d47de",
19237
19237
  "toaster-leave-to": "Toaster__toaster-leave-to_3e2a5",
19238
- root: Uw,
19238
+ root: Ww,
19239
19239
  "is-expand": "Toaster__is-expand_c4dc6",
19240
- toaster: Ww,
19241
- body: jw,
19242
- view_base: Gw,
19243
- left: qw,
19244
- right: Xw,
19245
- view_danger: Kw,
19246
- view_primary: Qw,
19247
- shadow: Zw
19248
- }, ek = {
19249
- $style: Jw
19250
- }, I$ = /* @__PURE__ */ Ce(Hw, [["__cssModules", ek]]), tk = /* @__PURE__ */ he({
19240
+ toaster: jw,
19241
+ body: Gw,
19242
+ view_base: qw,
19243
+ left: Xw,
19244
+ right: Kw,
19245
+ view_danger: Qw,
19246
+ view_primary: Zw,
19247
+ shadow: Jw
19248
+ }, tk = {
19249
+ $style: ek
19250
+ }, O$ = /* @__PURE__ */ Ce(Uw, [["__cssModules", tk]]), ak = /* @__PURE__ */ he({
19251
19251
  __name: "ToastItem",
19252
19252
  props: {
19253
19253
  title: {},
@@ -19298,16 +19298,16 @@ const Ew = {
19298
19298
  })
19299
19299
  ], 2));
19300
19300
  }
19301
- }), ak = "ToastItem__root_ef96a", nk = "ToastItem__view_base_42705", rk = "ToastItem__view_danger_4b814", sk = "ToastItem__view_primary_1af4c", ik = "ToastItem__title_949d1", ok = {
19302
- root: ak,
19303
- view_base: nk,
19304
- view_danger: rk,
19305
- view_primary: sk,
19306
- title: ik
19307
- }, lk = {
19308
- $style: ok
19309
- }, uk = /* @__PURE__ */ Ce(tk, [["__cssModules", lk]]);
19310
- class ck {
19301
+ }), nk = "ToastItem__root_ef96a", rk = "ToastItem__view_base_42705", sk = "ToastItem__view_danger_4b814", ik = "ToastItem__view_primary_1af4c", ok = "ToastItem__title_949d1", lk = {
19302
+ root: nk,
19303
+ view_base: rk,
19304
+ view_danger: sk,
19305
+ view_primary: ik,
19306
+ title: ok
19307
+ }, uk = {
19308
+ $style: lk
19309
+ }, ck = /* @__PURE__ */ Ce(ak, [["__cssModules", uk]]);
19310
+ class dk {
19311
19311
  constructor() {
19312
19312
  Te(this, "list", H([]));
19313
19313
  Te(this, "timeouts", H({}));
@@ -19355,7 +19355,7 @@ class ck {
19355
19355
  e.provide(gu, this);
19356
19356
  }
19357
19357
  }
19358
- const gu = Symbol("ToastService"), dk = new ck(), fk = ["id"], hk = /* @__PURE__ */ he({
19358
+ const gu = Symbol("ToastService"), I$ = new dk(), fk = ["id"], hk = /* @__PURE__ */ he({
19359
19359
  __name: "Toaster",
19360
19360
  setup(a) {
19361
19361
  let e;
@@ -19541,7 +19541,7 @@ const gu = Symbol("ToastService"), dk = new ck(), fk = ["id"], hk = /* @__PURE__
19541
19541
  class: _(M.$style.body),
19542
19542
  style: Ue(d(C).body)
19543
19543
  }, [
19544
- J(uk, at({ ref_for: !0 }, U, {
19544
+ J(ck, at({ ref_for: !0 }, U, {
19545
19545
  onClick: () => g(U.id)
19546
19546
  }), null, 16, ["onClick"])
19547
19547
  ], 6),
@@ -20224,14 +20224,15 @@ function j2(a) {
20224
20224
  n && (t = n.rangeCount > 0 ? n.getRangeAt(0) : !1), e.select(), document.execCommand("copy"), document.body.removeChild(e), t && n && (n.removeAllRanges(), n.addRange(t));
20225
20225
  }
20226
20226
  function G2(a) {
20227
- function e(t) {
20228
- j2(t), dk.show({
20229
- title: "Скопировано",
20227
+ const e = Yw();
20228
+ function t(n) {
20229
+ j2(n), e.show({
20230
+ title: (a == null ? void 0 : a.toasterText) ?? "Скопировано",
20230
20231
  view: "primary"
20231
20232
  });
20232
20233
  }
20233
20234
  return {
20234
- copy: e
20235
+ copy: t
20235
20236
  };
20236
20237
  }
20237
20238
  const q2 = /* @__PURE__ */ he({
@@ -20345,7 +20346,7 @@ export {
20345
20346
  N$ as ThemePickerSkeleton,
20346
20347
  gu as ToastServiceKey,
20347
20348
  B$ as Toaster,
20348
- I$ as ToasterProvider,
20349
+ O$ as ToasterProvider,
20349
20350
  zo as Toggle,
20350
20351
  Oa as TransitionFade,
20351
20352
  ia as TransitionFadeBlur,
@@ -20359,12 +20360,13 @@ export {
20359
20360
  fy as isCheckboxGroupFilterValue,
20360
20361
  hy as isDatepickerFilterValue,
20361
20362
  P$ as spriteService,
20362
- dk as toastService,
20363
+ I$ as toastService,
20364
+ G2 as useCopyToBuffer,
20363
20365
  mi as useDropdown,
20364
20366
  oh as useDropdownAnimation,
20365
20367
  Lh as useDynamicVisibleArea,
20366
20368
  f$ as useDynamicVisibleAreaInject,
20367
20369
  V$ as useGlobalConfig,
20368
20370
  z$ as useGlobalConfigProvide,
20369
- O$ as useToaster
20371
+ Yw as useToaster
20370
20372
  };