konsolpro-custom-ui 0.0.383 → 0.0.384

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.
Files changed (2) hide show
  1. package/dist/lib/index.js +76 -78
  2. package/package.json +1 -3
package/dist/lib/index.js CHANGED
@@ -41,8 +41,6 @@ import * as ke from "react";
41
41
  import v, { lazy as rr, Suspense as nr, useMemo as X, useState as ee, useCallback as U, useEffect as de, useRef as fe, createElement as Vn, createContext as Et, useContext as At, useLayoutEffect as jn, forwardRef as Kn, useImperativeHandle as Wr, memo as Vr } from "react";
42
42
  import { Slot as Qt } from "@radix-ui/react-slot";
43
43
  import { cva as me } from "class-variance-authority";
44
- import "core-js/stable";
45
- import "regenerator-runtime/runtime";
46
44
  import { clsx as Hn } from "clsx";
47
45
  import { twMerge as Un } from "tailwind-merge";
48
46
  import { Command as Ne } from "cmdk";
@@ -546,7 +544,7 @@ const ia = {
546
544
  return import("../chunks/yandex-icon-CepqpI49.js");
547
545
  }))
548
546
  };
549
- function ol({ icon: e }) {
547
+ function nl({ icon: e }) {
550
548
  const t = X(() => ia[e], [e]);
551
549
  return t ? /* @__PURE__ */ n(
552
550
  "div",
@@ -598,7 +596,7 @@ const sa = {
598
596
  return import("../chunks/accept-icon-X_bMUe5T.js");
599
597
  }))
600
598
  };
601
- function il({
599
+ function al({
602
600
  icon: e,
603
601
  color: t = "currentColor",
604
602
  size: r = 40
@@ -618,11 +616,11 @@ function il({
618
616
  }
619
617
  ) : null;
620
618
  }
621
- function sl(t) {
619
+ function ol(t) {
622
620
  var e = P(t, []);
623
621
  return /* @__PURE__ */ n(lt.Root, N({ "data-slot": "accordion" }, e));
624
622
  }
625
- function ll(r) {
623
+ function il(r) {
626
624
  var a = r, {
627
625
  className: e
628
626
  } = a, t = P(a, [
@@ -636,7 +634,7 @@ function ll(r) {
636
634
  }, t)
637
635
  );
638
636
  }
639
- function dl(i) {
637
+ function sl(i) {
640
638
  var s = i, {
641
639
  className: e,
642
640
  children: t,
@@ -683,7 +681,7 @@ function dl(i) {
683
681
  })
684
682
  ) });
685
683
  }
686
- function cl(a) {
684
+ function ll(a) {
687
685
  var o = a, {
688
686
  className: e,
689
687
  children: t
@@ -1639,11 +1637,11 @@ const $e = he.Root, Ye = he.Trigger, Ve = v.forwardRef((i, o) => {
1639
1637
  ) });
1640
1638
  });
1641
1639
  Ve.displayName = he.Content.displayName;
1642
- function ul(t) {
1640
+ function dl(t) {
1643
1641
  var e = P(t, []);
1644
1642
  return /* @__PURE__ */ n(he.Anchor, N({ "data-slot": "popover-anchor" }, e));
1645
1643
  }
1646
- function fl({
1644
+ function cl({
1647
1645
  options: e,
1648
1646
  value: t,
1649
1647
  onValueChange: r,
@@ -1973,7 +1971,7 @@ const Oa = [
1973
1971
  function Ba(e) {
1974
1972
  return Oa[e.getMonth()];
1975
1973
  }
1976
- function ml(e) {
1974
+ function ul(e) {
1977
1975
  const [t, r, a] = e.split("-").map(Number);
1978
1976
  return new Date(t, r - 1, a);
1979
1977
  }
@@ -2050,7 +2048,7 @@ const _a = ({
2050
2048
  ] })
2051
2049
  }
2052
2050
  );
2053
- }, pl = ({
2051
+ }, fl = ({
2054
2052
  dates: e,
2055
2053
  selectedDate: t,
2056
2054
  onDateSelect: r,
@@ -2133,7 +2131,7 @@ function Ka({
2133
2131
  }
2134
2132
  };
2135
2133
  }
2136
- const hl = (f) => {
2134
+ const ml = (f) => {
2137
2135
  var d = f, {
2138
2136
  onChange: e,
2139
2137
  dayClassName: t,
@@ -2561,7 +2559,7 @@ const ir = v.forwardRef(
2561
2559
  }
2562
2560
  );
2563
2561
  ir.displayName = "SelectTrigger";
2564
- const gl = ge.Group, Ha = v.forwardRef((i, o) => {
2562
+ const pl = ge.Group, Ha = v.forwardRef((i, o) => {
2565
2563
  var s = i, { className: e, children: t, placeholder: r } = s, a = P(s, ["className", "children", "placeholder"]);
2566
2564
  return /* @__PURE__ */ n(
2567
2565
  ge.Value,
@@ -2720,7 +2718,7 @@ or.displayName = "SelectItem";
2720
2718
  function Ar(e) {
2721
2719
  return Te(e, "yyyy-MM-dd");
2722
2720
  }
2723
- const bl = ({
2721
+ const hl = ({
2724
2722
  anchorDate: e,
2725
2723
  onChange: t,
2726
2724
  onMonthsChange: r,
@@ -2773,7 +2771,7 @@ const bl = ({
2773
2771
  /* @__PURE__ */ n(sr, { size: "lg", children: b.map((h) => /* @__PURE__ */ n(or, { value: h.value, children: h.label }, h.value)) })
2774
2772
  ] });
2775
2773
  };
2776
- function xl({
2774
+ function gl({
2777
2775
  value: e,
2778
2776
  defaultValue: t,
2779
2777
  onChange: r
@@ -2983,7 +2981,7 @@ const Ja = window.innerWidth < Xr, Nt = {
2983
2981
  }
2984
2982
  );
2985
2983
  Qa.displayName = "Banner";
2986
- function yl(s) {
2984
+ function bl(s) {
2987
2985
  var l = s, {
2988
2986
  items: e,
2989
2987
  renderSlide: t,
@@ -5026,7 +5024,7 @@ const It = {
5026
5024
  ButtonsView: zo
5027
5025
  // Экспортируем view-компонент кнопок для использования вне контекста
5028
5026
  };
5029
- function vl(b) {
5027
+ function xl(b) {
5030
5028
  var g = b, {
5031
5029
  items: e,
5032
5030
  renderSlide: t,
@@ -5077,7 +5075,7 @@ function vl(b) {
5077
5075
  /* @__PURE__ */ n(It.Dots, { count: e.length })
5078
5076
  ] });
5079
5077
  }
5080
- function wl({
5078
+ function yl({
5081
5079
  items: e,
5082
5080
  options: t,
5083
5081
  renderItems: r,
@@ -5395,7 +5393,7 @@ const Bt = v.forwardRef((o, a) => {
5395
5393
  ) });
5396
5394
  });
5397
5395
  Bt.displayName = "Close";
5398
- const Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5396
+ const vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5399
5397
  __proto__: null,
5400
5398
  Close: Bt,
5401
5399
  Container: qe,
@@ -5407,7 +5405,7 @@ const Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5407
5405
  Title: fr,
5408
5406
  Trigger: Je
5409
5407
  }, Symbol.toStringTag, { value: "Module" })), _t = v.createContext(null);
5410
- function Il() {
5408
+ function wl() {
5411
5409
  const e = v.useContext(_t);
5412
5410
  if (!e)
5413
5411
  throw new Error(
@@ -5649,7 +5647,7 @@ se.Header = Sn;
5649
5647
  function Gt() {
5650
5648
  return window.innerWidth < 768 ? "mobile" : "desktop";
5651
5649
  }
5652
- function Cl({
5650
+ function Nl({
5653
5651
  date: e,
5654
5652
  onSelect: t,
5655
5653
  disabled: r = !1,
@@ -6036,7 +6034,7 @@ function mi(e) {
6036
6034
  return we;
6037
6035
  }
6038
6036
  }
6039
- function kl(y) {
6037
+ function Il(y) {
6040
6038
  var h = y, {
6041
6039
  className: e,
6042
6040
  value: t,
@@ -6855,7 +6853,7 @@ const Ni = {
6855
6853
  sm: "md:w-100",
6856
6854
  md: "md:w-150",
6857
6855
  lg: "md:w-200"
6858
- }, Sl = le.Root, Tl = le.Trigger, Ii = le.Portal, Ml = le.Close, Dn = v.forwardRef((a, r) => {
6856
+ }, Cl = le.Root, kl = le.Trigger, Ii = le.Portal, Sl = le.Close, Dn = v.forwardRef((a, r) => {
6859
6857
  var o = a, { className: e } = o, t = P(o, ["className"]);
6860
6858
  return /* @__PURE__ */ n(
6861
6859
  le.Overlay,
@@ -7073,7 +7071,7 @@ function Fi(e) {
7073
7071
  }, c)
7074
7072
  );
7075
7073
  }
7076
- const Rl = Kn((e, t) => {
7074
+ const Tl = Kn((e, t) => {
7077
7075
  const {
7078
7076
  length: r = 6,
7079
7077
  onChange: a = () => {
@@ -7227,7 +7225,7 @@ function Pi(e, t) {
7227
7225
  return f.has(u) ? !1 : (f.add(u), !0);
7228
7226
  });
7229
7227
  }
7230
- const El = ({
7228
+ const Ml = ({
7231
7229
  current: e,
7232
7230
  total: t,
7233
7231
  pageSize: r = 10,
@@ -8436,7 +8434,7 @@ const Br = Vr(
8436
8434
  ] })
8437
8435
  ] });
8438
8436
  }
8439
- ), Al = ke.forwardRef(
8437
+ ), Rl = ke.forwardRef(
8440
8438
  (g, b) => {
8441
8439
  var m = g, {
8442
8440
  className: e,
@@ -8911,7 +8909,7 @@ const Zi = v.forwardRef(
8911
8909
  }
8912
8910
  );
8913
8911
  Zi.displayName = "SingleSegment";
8914
- function Dl({ steps: e, currentStep: t, className: r }) {
8912
+ function El({ steps: e, currentStep: t, className: r }) {
8915
8913
  return /* @__PURE__ */ n("div", { className: p("relative flex w-full", r), children: /* @__PURE__ */ n(
8916
8914
  "div",
8917
8915
  {
@@ -9509,7 +9507,7 @@ function us(e, t) {
9509
9507
  };
9510
9508
  }, [e, ...t]), r;
9511
9509
  }
9512
- function Fl({
9510
+ function Al({
9513
9511
  className: e,
9514
9512
  tableClassName: t,
9515
9513
  loading: r,
@@ -9850,7 +9848,7 @@ function fs({
9850
9848
  `card_skeleton_${l}`
9851
9849
  )) });
9852
9850
  }
9853
- function Ll({
9851
+ function Dl({
9854
9852
  items: e,
9855
9853
  loading: t,
9856
9854
  loadingRows: r,
@@ -9896,7 +9894,7 @@ function Ll({
9896
9894
  );
9897
9895
  }) });
9898
9896
  }
9899
- function Pl({
9897
+ function Fl({
9900
9898
  title: e,
9901
9899
  controls: t,
9902
9900
  onChange: r,
@@ -9990,7 +9988,7 @@ const ms = me(
9990
9988
  },
9991
9989
  defaultVariants: { size: "md", variant: "default" }
9992
9990
  }
9993
- ), zl = We.Root, hs = v.forwardRef((i, o) => {
9991
+ ), Ll = We.Root, hs = v.forwardRef((i, o) => {
9994
9992
  var s = i, { size: e = "md", variant: t = "default", className: r } = s, a = P(s, ["size", "variant", "className"]);
9995
9993
  return /* @__PURE__ */ n(
9996
9994
  We.List,
@@ -10309,7 +10307,7 @@ function Gr(e) {
10309
10307
  const [r, a] = e.split(":").map(Number);
10310
10308
  return r >= 0 && r <= 23 && a >= 0 && a <= 59;
10311
10309
  }
10312
- function Ol({
10310
+ function Pl({
10313
10311
  time: e,
10314
10312
  onSelect: t,
10315
10313
  disabled: r = !1,
@@ -10393,7 +10391,7 @@ function Ol({
10393
10391
  function Cs(e, t) {
10394
10392
  return e === t ? "unchanged" : e.length > t.length ? "added" : e.length < t.length ? "removed" : "added";
10395
10393
  }
10396
- function Bl({
10394
+ function zl({
10397
10395
  value: e,
10398
10396
  onTimeChange: t,
10399
10397
  placeholder: r = {
@@ -10554,7 +10552,7 @@ function Bl({
10554
10552
  S() && /* @__PURE__ */ n(B, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: R() })
10555
10553
  ] });
10556
10554
  }
10557
- const _l = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */ I("div", { className: "flex", children: [
10555
+ const Ol = ({ items: e, className: t }) => /* @__PURE__ */ n("div", { className: t, children: e.map((r, a) => /* @__PURE__ */ I("div", { className: "flex", children: [
10558
10556
  /* @__PURE__ */ I("div", { className: "relative mr-4 flex flex-col items-center", children: [
10559
10557
  /* @__PURE__ */ n(
10560
10558
  "div",
@@ -10628,7 +10626,7 @@ function ot(e, t, r) {
10628
10626
  function ks(e, t) {
10629
10627
  return ae(e, t);
10630
10628
  }
10631
- const Gl = Object.assign(ks, {
10629
+ const Bl = Object.assign(ks, {
10632
10630
  success: (e, t) => {
10633
10631
  const r = typeof e == "string" ? [(t == null ? void 0 : t.defaultMessage) || e] : ot(
10634
10632
  e,
@@ -10796,7 +10794,7 @@ const Gl = Object.assign(ks, {
10796
10794
  }, o));
10797
10795
  }
10798
10796
  });
10799
- function Wl(t) {
10797
+ function _l(t) {
10800
10798
  var e = P(t, []);
10801
10799
  return /* @__PURE__ */ n(
10802
10800
  ea,
@@ -10829,7 +10827,7 @@ function Wl(t) {
10829
10827
  }, e)
10830
10828
  );
10831
10829
  }
10832
- const Vl = Be.Provider, Ss = 120, On = v.createContext(null);
10830
+ const Gl = Be.Provider, Ss = 120, On = v.createContext(null);
10833
10831
  function Ts() {
10834
10832
  const [e, t] = v.useState(!1);
10835
10833
  return v.useEffect(() => {
@@ -10840,7 +10838,7 @@ function Ts() {
10840
10838
  return a(), r.addEventListener("change", a), () => r.removeEventListener("change", a);
10841
10839
  }, []), e;
10842
10840
  }
10843
- function jl(o) {
10841
+ function Wl(o) {
10844
10842
  var i = o, {
10845
10843
  open: e,
10846
10844
  defaultOpen: t,
@@ -11125,12 +11123,12 @@ const Es = v.forwardRef(
11125
11123
  );
11126
11124
  Es.displayName = "Uploader";
11127
11125
  export {
11128
- sl as Accordion,
11129
- cl as AccordionContent,
11130
- ll as AccordionItem,
11131
- dl as AccordionTrigger,
11126
+ ol as Accordion,
11127
+ ll as AccordionContent,
11128
+ il as AccordionItem,
11129
+ sl as AccordionTrigger,
11132
11130
  ca as Alert,
11133
- fl as Autocomplete,
11131
+ cl as Autocomplete,
11134
11132
  Na as Avatar,
11135
11133
  Ca as AvatarFallback,
11136
11134
  Ia as AvatarImage,
@@ -11138,7 +11136,7 @@ export {
11138
11136
  q as Button,
11139
11137
  Oe as CARD_WIDTH,
11140
11138
  _a as CalendarDayCard,
11141
- hl as CalendarStrip,
11139
+ ml as CalendarStrip,
11142
11140
  He as Card,
11143
11141
  It as Carousel,
11144
11142
  zo as CarouselButtonsView,
@@ -11163,19 +11161,19 @@ export {
11163
11161
  fa as CommandSeparator,
11164
11162
  ma as CommandShortcut,
11165
11163
  Br as CountrySelectOption,
11166
- Cl as DatePicker,
11167
- kl as DateRangePicker,
11168
- vl as DefaultCustomizableCarousel,
11169
- Sl as Dialog,
11164
+ Nl as DatePicker,
11165
+ Il as DateRangePicker,
11166
+ xl as DefaultCustomizableCarousel,
11167
+ Cl as Dialog,
11170
11168
  se as DialogBase,
11171
- Ml as DialogClose,
11169
+ Sl as DialogClose,
11172
11170
  Ci as DialogContent,
11173
11171
  ki as DialogHeader,
11174
11172
  Dn as DialogOverlay,
11175
11173
  Ii as DialogPortal,
11176
- Nl as DialogPrimitive,
11174
+ vl as DialogPrimitive,
11177
11175
  Si as DialogTitle,
11178
- Tl as DialogTrigger,
11176
+ kl as DialogTrigger,
11179
11177
  pi as Divider,
11180
11178
  hi as Dropdown,
11181
11179
  bi as DropdownContent,
@@ -11184,12 +11182,12 @@ export {
11184
11182
  vi as DropdownSeparator,
11185
11183
  gi as DropdownTrigger,
11186
11184
  Wa as EmblaCalendarCard,
11187
- pl as EmblaCalendarStrip,
11185
+ fl as EmblaCalendarStrip,
11188
11186
  Rt as FlagComponent,
11189
- wl as HeadlessCarousel,
11187
+ yl as HeadlessCarousel,
11190
11188
  W as Icon,
11191
- ol as IconBanks,
11192
- il as IconDocument,
11189
+ nl as IconBanks,
11190
+ al as IconDocument,
11193
11191
  Le as Input,
11194
11192
  ga as InputLink,
11195
11193
  Rn as InputNumber,
@@ -11203,23 +11201,23 @@ export {
11203
11201
  Xr as MOBILE_BREAKPOINT,
11204
11202
  An as MaskedInput,
11205
11203
  Za as MultiSelect,
11206
- Rl as OtpInput,
11207
- El as Pagination,
11208
- Al as PhoneInput,
11204
+ Tl as OtpInput,
11205
+ Ml as Pagination,
11206
+ Rl as PhoneInput,
11209
11207
  $e as Popover,
11210
- ul as PopoverAnchor,
11208
+ dl as PopoverAnchor,
11211
11209
  Ve as PopoverContent,
11212
11210
  Ye as PopoverTrigger,
11213
11211
  ji as Progress,
11214
11212
  Hi as Radio,
11215
11213
  Ui as RadioGroup,
11216
11214
  Ga as SCROLL_WEEK_SIZE,
11217
- bl as ScheduleHeader,
11215
+ hl as ScheduleHeader,
11218
11216
  Pn as SegmentItem,
11219
11217
  Yi as Segments,
11220
11218
  Ya as Select,
11221
11219
  sr as SelectContent,
11222
- gl as SelectGroup,
11220
+ pl as SelectGroup,
11223
11221
  or as SelectItem,
11224
11222
  Ua as SelectLabel,
11225
11223
  tn as SelectScrollDownButton,
@@ -11227,27 +11225,27 @@ export {
11227
11225
  $a as SelectSeparator,
11228
11226
  ir as SelectTrigger,
11229
11227
  Ha as SelectValue,
11230
- yl as SimpleCarousel,
11228
+ bl as SimpleCarousel,
11231
11229
  Zi as SingleSegment,
11232
11230
  Ze as Spinner,
11233
- Dl as Stepper,
11231
+ El as Stepper,
11234
11232
  qi as Switch,
11235
- Fl as Table,
11236
- Ll as TableCards,
11237
- Pl as TableSettings,
11238
- zl as Tabs,
11233
+ Al as Table,
11234
+ Dl as TableCards,
11235
+ Fl as TableSettings,
11236
+ Ll as Tabs,
11239
11237
  bs as TabsContent,
11240
11238
  hs as TabsList,
11241
11239
  gs as TabsTrigger,
11242
11240
  ys as Tag,
11243
11241
  ws as Textarea,
11244
- Ol as TimePicker,
11245
- Bl as TimeRangePicker,
11246
- _l as Timeline,
11247
- Wl as Toaster,
11248
- jl as Tooltip,
11242
+ Pl as TimePicker,
11243
+ zl as TimeRangePicker,
11244
+ Ol as Timeline,
11245
+ _l as Toaster,
11246
+ Wl as Tooltip,
11249
11247
  Rs as TooltipContent,
11250
- Vl as TooltipProvider,
11248
+ Gl as TooltipProvider,
11251
11249
  Ms as TooltipTrigger,
11252
11250
  B as Typography,
11253
11251
  Es as Uploader,
@@ -11259,19 +11257,19 @@ export {
11259
11257
  Ct as getThreeMonthsAround,
11260
11258
  Xa as indicatorVariants,
11261
11259
  Wi as normalizePhoneInput,
11262
- ml as parseDateString,
11260
+ ul as parseDateString,
11263
11261
  Ki as radioVariants,
11264
11262
  io as spinnerVariants,
11265
11263
  Ae as startOfDay,
11266
11264
  Ji as switchVariants,
11267
11265
  xs as tagVariants,
11268
11266
  Qi as thumbVariants,
11269
- Gl as toast,
11267
+ Bl as toast,
11270
11268
  Er as typographyVariants,
11271
11269
  Nn as useCarousel,
11272
11270
  Ot as useCarouselContext,
11273
11271
  ft as useComboboxPrimitiveContext,
11274
- Il as useDialogBaseCtx,
11272
+ wl as useDialogBaseCtx,
11275
11273
  Ka as useScheduleCalendar,
11276
- xl as useScheduleSync
11274
+ gl as useScheduleSync
11277
11275
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "konsolpro-custom-ui",
3
3
  "type": "module",
4
- "version": "0.0.383",
4
+ "version": "0.0.384",
5
5
  "packageManager": "yarn@3.4.1",
6
6
  "license": "MIT",
7
7
  "sideEffects": [
@@ -80,7 +80,6 @@
80
80
  "class-variance-authority": "^0.7.1",
81
81
  "clsx": "^2.1.1",
82
82
  "cmdk": "^1.1.1",
83
- "core-js": "^3.30.2",
84
83
  "date-fns": "^4.1.0",
85
84
  "downshift": "^9.0.10",
86
85
  "embla-carousel": "^8.6.0",
@@ -93,7 +92,6 @@
93
92
  "react-input-mask": "^2.0.4",
94
93
  "react-phone-number-input": "^3.4.12",
95
94
  "react-teleporter": "^3.2.0",
96
- "regenerator-runtime": "^0.14.1",
97
95
  "sonner": "^2.0.5",
98
96
  "tailwind-merge": "^3.0.2",
99
97
  "tailwindcss": "^4.0.11",