@service_laboratory/ui 1.0.15 → 1.0.16

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
@@ -15,6 +15,7 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
15
15
  import * as React_2 from 'react';
16
16
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
17
17
  import { Slot } from '@radix-ui/react-slot';
18
+ import { toast } from 'sonner';
18
19
  import { ToasterProps } from 'sonner';
19
20
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
20
21
  import { VariantProps } from 'class-variance-authority';
@@ -267,6 +268,8 @@ export declare function SidebarSeparator({ className, ...props }: React_2.Compon
267
268
 
268
269
  export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
269
270
 
271
+ export { toast }
272
+
270
273
  export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
271
274
 
272
275
  declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element;
package/dist/index.js CHANGED
@@ -8246,8 +8246,7 @@ const fe = new bm(), ym = (e, t) => {
8246
8246
  ...t,
8247
8247
  id: r
8248
8248
  }), r;
8249
- }, xm = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", wm = ym, Em = () => fe.toasts, Sm = () => fe.getActiveToasts();
8250
- Object.assign(wm, {
8249
+ }, xm = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", wm = ym, Em = () => fe.toasts, Sm = () => fe.getActiveToasts(), vv = Object.assign(wm, {
8251
8250
  success: fe.success,
8252
8251
  info: fe.info,
8253
8252
  warning: fe.warning,
@@ -8726,7 +8725,7 @@ const Dm = /* @__PURE__ */ E.forwardRef(function(t, r) {
8726
8725
  });
8727
8726
  })) : null;
8728
8727
  }));
8729
- }), vv = ({ ...e }) => /* @__PURE__ */ m.jsx(
8728
+ }), bv = ({ ...e }) => /* @__PURE__ */ m.jsx(
8730
8729
  Dm,
8731
8730
  {
8732
8731
  theme: "system",
@@ -8890,7 +8889,7 @@ function gi({
8890
8889
  }
8891
8890
  );
8892
8891
  }
8893
- function bv({ className: e, ...t }) {
8892
+ function yv({ className: e, ...t }) {
8894
8893
  return /* @__PURE__ */ m.jsx(
8895
8894
  "fieldset",
8896
8895
  {
@@ -8904,7 +8903,7 @@ function bv({ className: e, ...t }) {
8904
8903
  }
8905
8904
  );
8906
8905
  }
8907
- function yv({
8906
+ function xv({
8908
8907
  className: e,
8909
8908
  variant: t = "legend",
8910
8909
  ...r
@@ -8924,7 +8923,7 @@ function yv({
8924
8923
  }
8925
8924
  );
8926
8925
  }
8927
- function xv({ className: e, ...t }) {
8926
+ function wv({ className: e, ...t }) {
8928
8927
  return /* @__PURE__ */ m.jsx(
8929
8928
  "div",
8930
8929
  {
@@ -8960,7 +8959,7 @@ const qm = At(
8960
8959
  }
8961
8960
  }
8962
8961
  );
8963
- function wv({
8962
+ function Ev({
8964
8963
  className: e,
8965
8964
  orientation: t = "vertical",
8966
8965
  ...r
@@ -8976,7 +8975,7 @@ function wv({
8976
8975
  }
8977
8976
  );
8978
8977
  }
8979
- function Ev({ className: e, ...t }) {
8978
+ function Sv({ className: e, ...t }) {
8980
8979
  return /* @__PURE__ */ m.jsx(
8981
8980
  "div",
8982
8981
  {
@@ -8989,7 +8988,7 @@ function Ev({ className: e, ...t }) {
8989
8988
  }
8990
8989
  );
8991
8990
  }
8992
- function Sv({
8991
+ function Cv({
8993
8992
  className: e,
8994
8993
  ...t
8995
8994
  }) {
@@ -9007,7 +9006,7 @@ function Sv({
9007
9006
  }
9008
9007
  );
9009
9008
  }
9010
- function Cv({ className: e, ...t }) {
9009
+ function _v({ className: e, ...t }) {
9011
9010
  return /* @__PURE__ */ m.jsx(
9012
9011
  "div",
9013
9012
  {
@@ -9020,7 +9019,7 @@ function Cv({ className: e, ...t }) {
9020
9019
  }
9021
9020
  );
9022
9021
  }
9023
- function _v({ className: e, ...t }) {
9022
+ function Rv({ className: e, ...t }) {
9024
9023
  return /* @__PURE__ */ m.jsx(
9025
9024
  "p",
9026
9025
  {
@@ -9035,7 +9034,7 @@ function _v({ className: e, ...t }) {
9035
9034
  }
9036
9035
  );
9037
9036
  }
9038
- function Rv({
9037
+ function Tv({
9039
9038
  children: e,
9040
9039
  className: t,
9041
9040
  ...r
@@ -9064,7 +9063,7 @@ function Rv({
9064
9063
  }
9065
9064
  );
9066
9065
  }
9067
- function Tv({
9066
+ function Ov({
9068
9067
  className: e,
9069
9068
  children: t,
9070
9069
  errors: r,
@@ -9377,9 +9376,9 @@ const lg = () => E.useContext($n), ug = (e) => {
9377
9376
  ]) },
9378
9377
  E.createElement(Ln.Provider, { value: v }, t)
9379
9378
  );
9380
- }, Ov = ug, Ei = f.createContext(
9379
+ }, kv = ug, Ei = f.createContext(
9381
9380
  {}
9382
- ), kv = ({
9381
+ ), Av = ({
9383
9382
  ...e
9384
9383
  }) => /* @__PURE__ */ m.jsx(Ei.Provider, { value: { name: e.name }, children: /* @__PURE__ */ m.jsx(cg, { ...e }) }), Cr = () => {
9385
9384
  const e = f.useContext(Ei), t = f.useContext(Si), { getFieldState: r } = lg(), n = wi({ name: e.name }), o = r(e.name, n);
@@ -9397,7 +9396,7 @@ const lg = () => E.useContext($n), ug = (e) => {
9397
9396
  }, Si = f.createContext(
9398
9397
  {}
9399
9398
  );
9400
- function Av({ className: e, ...t }) {
9399
+ function Nv({ className: e, ...t }) {
9401
9400
  const r = f.useId();
9402
9401
  return /* @__PURE__ */ m.jsx(Si.Provider, { value: { id: r }, children: /* @__PURE__ */ m.jsx(
9403
9402
  "div",
@@ -9408,7 +9407,7 @@ function Av({ className: e, ...t }) {
9408
9407
  }
9409
9408
  ) });
9410
9409
  }
9411
- function Nv({
9410
+ function Mv({
9412
9411
  className: e,
9413
9412
  ...t
9414
9413
  }) {
@@ -9424,7 +9423,7 @@ function Nv({
9424
9423
  }
9425
9424
  );
9426
9425
  }
9427
- function Mv({ ...e }) {
9426
+ function Pv({ ...e }) {
9428
9427
  const { error: t, formItemId: r, formDescriptionId: n, formMessageId: o } = Cr();
9429
9428
  return /* @__PURE__ */ m.jsx(
9430
9429
  Ve,
@@ -9437,7 +9436,7 @@ function Mv({ ...e }) {
9437
9436
  }
9438
9437
  );
9439
9438
  }
9440
- function Pv({ className: e, ...t }) {
9439
+ function Dv({ className: e, ...t }) {
9441
9440
  const { formDescriptionId: r } = Cr();
9442
9441
  return /* @__PURE__ */ m.jsx(
9443
9442
  "p",
@@ -9449,7 +9448,7 @@ function Pv({ className: e, ...t }) {
9449
9448
  }
9450
9449
  );
9451
9450
  }
9452
- function Dv({ className: e, ...t }) {
9451
+ function Iv({ className: e, ...t }) {
9453
9452
  const { error: r, formMessageId: n } = Cr(), o = r ? String(r?.message ?? "") : t.children;
9454
9453
  return o ? /* @__PURE__ */ m.jsx(
9455
9454
  "p",
@@ -9528,7 +9527,7 @@ function pg(...e) {
9528
9527
  };
9529
9528
  return r.scopeName = t.scopeName, r;
9530
9529
  }
9531
- var zn = "Progress", Bn = 100, [mg, Iv] = fg(zn), [gg, hg] = mg(zn), Ci = f.forwardRef(
9530
+ var zn = "Progress", Bn = 100, [mg, jv] = fg(zn), [gg, hg] = mg(zn), Ci = f.forwardRef(
9532
9531
  (e, t) => {
9533
9532
  const {
9534
9533
  __scopeProgress: r,
@@ -9602,7 +9601,7 @@ function yg(e, t) {
9602
9601
  Defaulting to \`null\`.`;
9603
9602
  }
9604
9603
  var xg = Ci, wg = Ri;
9605
- function jv({
9604
+ function Lv({
9606
9605
  className: e,
9607
9606
  value: t,
9608
9607
  ...r
@@ -9637,7 +9636,7 @@ function Eg() {
9637
9636
  return r.addEventListener("change", n), t(window.innerWidth < Yr), () => r.removeEventListener("change", n);
9638
9637
  }, []), !!e;
9639
9638
  }
9640
- var _r = "Dialog", [Oi, Lv] = Be(_r), [Sg, ke] = Oi(_r), ki = (e) => {
9639
+ var _r = "Dialog", [Oi, Fv] = Be(_r), [Sg, ke] = Oi(_r), ki = (e) => {
9641
9640
  const {
9642
9641
  __scopeDialog: t,
9643
9642
  children: r,
@@ -9839,7 +9838,7 @@ zi.displayName = $i;
9839
9838
  function Wn(e) {
9840
9839
  return e ? "open" : "closed";
9841
9840
  }
9842
- var Bi = "DialogTitleWarning", [Fv, Vi] = el(Bi, {
9841
+ var Bi = "DialogTitleWarning", [$v, Vi] = el(Bi, {
9843
9842
  contentName: Qe,
9844
9843
  titleName: Hn,
9845
9844
  docsSlug: "dialog"
@@ -9984,7 +9983,7 @@ var Yg = Object.freeze({
9984
9983
  )
9985
9984
  );
9986
9985
  Hi.displayName = Kg;
9987
- var Xg = Hi, [Rr, $v] = Be("Tooltip", [
9986
+ var Xg = Hi, [Rr, zv] = Be("Tooltip", [
9988
9987
  yr
9989
9988
  ]), Tr = yr(), Wi = "TooltipProvider", qg = 700, cn = "tooltip.open", [Zg, Gn] = Rr(Wi), Gi = (e) => {
9990
9989
  const {
@@ -10347,7 +10346,7 @@ function Or() {
10347
10346
  throw new Error("useSidebar must be used within a SidebarProvider.");
10348
10347
  return e;
10349
10348
  }
10350
- function zv({
10349
+ function Bv({
10351
10350
  defaultOpen: e = !0,
10352
10351
  open: t,
10353
10352
  onOpenChange: r,
@@ -10399,7 +10398,7 @@ function zv({
10399
10398
  }
10400
10399
  ) }) });
10401
10400
  }
10402
- function Bv({
10401
+ function Vv({
10403
10402
  side: e = "left",
10404
10403
  variant: t = "sidebar",
10405
10404
  collapsible: r = "offcanvas",
@@ -10487,7 +10486,7 @@ function Bv({
10487
10486
  }
10488
10487
  );
10489
10488
  }
10490
- function Vv({
10489
+ function Hv({
10491
10490
  className: e,
10492
10491
  onClick: t,
10493
10492
  ...r
@@ -10512,7 +10511,7 @@ function Vv({
10512
10511
  }
10513
10512
  );
10514
10513
  }
10515
- function Hv({ className: e, ...t }) {
10514
+ function Wv({ className: e, ...t }) {
10516
10515
  const { toggleSidebar: r } = Or();
10517
10516
  return /* @__PURE__ */ m.jsx(
10518
10517
  "button",
@@ -10536,7 +10535,7 @@ function Hv({ className: e, ...t }) {
10536
10535
  }
10537
10536
  );
10538
10537
  }
10539
- function Wv({ className: e, ...t }) {
10538
+ function Gv({ className: e, ...t }) {
10540
10539
  return /* @__PURE__ */ m.jsx(
10541
10540
  "main",
10542
10541
  {
@@ -10550,7 +10549,7 @@ function Wv({ className: e, ...t }) {
10550
10549
  }
10551
10550
  );
10552
10551
  }
10553
- function Gv({
10552
+ function Uv({
10554
10553
  className: e,
10555
10554
  ...t
10556
10555
  }) {
@@ -10564,7 +10563,7 @@ function Gv({
10564
10563
  }
10565
10564
  );
10566
10565
  }
10567
- function Uv({ className: e, ...t }) {
10566
+ function Yv({ className: e, ...t }) {
10568
10567
  return /* @__PURE__ */ m.jsx(
10569
10568
  "div",
10570
10569
  {
@@ -10575,7 +10574,7 @@ function Uv({ className: e, ...t }) {
10575
10574
  }
10576
10575
  );
10577
10576
  }
10578
- function Yv({ className: e, ...t }) {
10577
+ function Kv({ className: e, ...t }) {
10579
10578
  return /* @__PURE__ */ m.jsx(
10580
10579
  "div",
10581
10580
  {
@@ -10586,7 +10585,7 @@ function Yv({ className: e, ...t }) {
10586
10585
  }
10587
10586
  );
10588
10587
  }
10589
- function Kv({
10588
+ function Xv({
10590
10589
  className: e,
10591
10590
  ...t
10592
10591
  }) {
@@ -10600,7 +10599,7 @@ function Kv({
10600
10599
  }
10601
10600
  );
10602
10601
  }
10603
- function Xv({ className: e, ...t }) {
10602
+ function qv({ className: e, ...t }) {
10604
10603
  return /* @__PURE__ */ m.jsx(
10605
10604
  "div",
10606
10605
  {
@@ -10614,7 +10613,7 @@ function Xv({ className: e, ...t }) {
10614
10613
  }
10615
10614
  );
10616
10615
  }
10617
- function qv({ className: e, ...t }) {
10616
+ function Zv({ className: e, ...t }) {
10618
10617
  return /* @__PURE__ */ m.jsx(
10619
10618
  "div",
10620
10619
  {
@@ -10625,7 +10624,7 @@ function qv({ className: e, ...t }) {
10625
10624
  }
10626
10625
  );
10627
10626
  }
10628
- function Zv({
10627
+ function Jv({
10629
10628
  className: e,
10630
10629
  asChild: t = !1,
10631
10630
  ...r
@@ -10645,7 +10644,7 @@ function Zv({
10645
10644
  }
10646
10645
  );
10647
10646
  }
10648
- function Jv({
10647
+ function Qv({
10649
10648
  className: e,
10650
10649
  asChild: t = !1,
10651
10650
  ...r
@@ -10667,7 +10666,7 @@ function Jv({
10667
10666
  }
10668
10667
  );
10669
10668
  }
10670
- function Qv({
10669
+ function eb({
10671
10670
  className: e,
10672
10671
  ...t
10673
10672
  }) {
@@ -10681,7 +10680,7 @@ function Qv({
10681
10680
  }
10682
10681
  );
10683
10682
  }
10684
- function eb({ className: e, ...t }) {
10683
+ function tb({ className: e, ...t }) {
10685
10684
  return /* @__PURE__ */ m.jsx(
10686
10685
  "ul",
10687
10686
  {
@@ -10692,7 +10691,7 @@ function eb({ className: e, ...t }) {
10692
10691
  }
10693
10692
  );
10694
10693
  }
10695
- function tb({ className: e, ...t }) {
10694
+ function rb({ className: e, ...t }) {
10696
10695
  return /* @__PURE__ */ m.jsx(
10697
10696
  "li",
10698
10697
  {
@@ -10723,7 +10722,7 @@ const Rh = At(
10723
10722
  }
10724
10723
  }
10725
10724
  );
10726
- function rb({
10725
+ function nb({
10727
10726
  asChild: e = !1,
10728
10727
  isActive: t = !1,
10729
10728
  variant: r = "default",
@@ -10758,7 +10757,7 @@ function rb({
10758
10757
  )
10759
10758
  ] })) : p;
10760
10759
  }
10761
- function nb({
10760
+ function ob({
10762
10761
  className: e,
10763
10762
  asChild: t = !1,
10764
10763
  showOnHover: r = !1,
@@ -10785,7 +10784,7 @@ function nb({
10785
10784
  }
10786
10785
  );
10787
10786
  }
10788
- function ob({
10787
+ function ab({
10789
10788
  className: e,
10790
10789
  ...t
10791
10790
  }) {
@@ -10807,7 +10806,7 @@ function ob({
10807
10806
  }
10808
10807
  );
10809
10808
  }
10810
- function ab({
10809
+ function sb({
10811
10810
  className: e,
10812
10811
  showIcon: t = !1,
10813
10812
  ...r
@@ -10842,7 +10841,7 @@ function ab({
10842
10841
  }
10843
10842
  );
10844
10843
  }
10845
- function sb({ className: e, ...t }) {
10844
+ function ib({ className: e, ...t }) {
10846
10845
  return /* @__PURE__ */ m.jsx(
10847
10846
  "ul",
10848
10847
  {
@@ -10857,7 +10856,7 @@ function sb({ className: e, ...t }) {
10857
10856
  }
10858
10857
  );
10859
10858
  }
10860
- function ib({
10859
+ function cb({
10861
10860
  className: e,
10862
10861
  ...t
10863
10862
  }) {
@@ -10871,7 +10870,7 @@ function ib({
10871
10870
  }
10872
10871
  );
10873
10872
  }
10874
- function cb({
10873
+ function lb({
10875
10874
  asChild: e = !1,
10876
10875
  size: t = "md",
10877
10876
  isActive: r = !1,
@@ -10939,54 +10938,55 @@ export {
10939
10938
  hv as DropdownMenuSubContent,
10940
10939
  gv as DropdownMenuSubTrigger,
10941
10940
  ov as DropdownMenuTrigger,
10942
- wv as Field,
10943
- Ev as FieldContent,
10944
- _v as FieldDescription,
10945
- Tv as FieldError,
10946
- xv as FieldGroup,
10947
- Sv as FieldLabel,
10948
- yv as FieldLegend,
10949
- Rv as FieldSeparator,
10950
- bv as FieldSet,
10951
- Cv as FieldTitle,
10952
- Ov as Form,
10953
- Mv as FormControl,
10954
- Pv as FormDescription,
10955
- kv as FormField,
10956
- Av as FormItem,
10957
- Nv as FormLabel,
10958
- Dv as FormMessage,
10941
+ Ev as Field,
10942
+ Sv as FieldContent,
10943
+ Rv as FieldDescription,
10944
+ Ov as FieldError,
10945
+ wv as FieldGroup,
10946
+ Cv as FieldLabel,
10947
+ xv as FieldLegend,
10948
+ Tv as FieldSeparator,
10949
+ yv as FieldSet,
10950
+ _v as FieldTitle,
10951
+ kv as Form,
10952
+ Pv as FormControl,
10953
+ Dv as FormDescription,
10954
+ Av as FormField,
10955
+ Nv as FormItem,
10956
+ Mv as FormLabel,
10957
+ Iv as FormMessage,
10959
10958
  dg as Input,
10960
10959
  fi as Label,
10961
- jv as Progress,
10960
+ Lv as Progress,
10962
10961
  gi as Separator,
10963
- Bv as Sidebar,
10964
- Xv as SidebarContent,
10965
- Yv as SidebarFooter,
10966
- qv as SidebarGroup,
10967
- Jv as SidebarGroupAction,
10968
- Qv as SidebarGroupContent,
10969
- Zv as SidebarGroupLabel,
10970
- Uv as SidebarHeader,
10971
- Gv as SidebarInput,
10972
- Wv as SidebarInset,
10973
- eb as SidebarMenu,
10974
- nb as SidebarMenuAction,
10975
- ob as SidebarMenuBadge,
10976
- rb as SidebarMenuButton,
10977
- tb as SidebarMenuItem,
10978
- ab as SidebarMenuSkeleton,
10979
- sb as SidebarMenuSub,
10980
- cb as SidebarMenuSubButton,
10981
- ib as SidebarMenuSubItem,
10982
- zv as SidebarProvider,
10983
- Hv as SidebarRail,
10984
- Kv as SidebarSeparator,
10985
- Vv as SidebarTrigger,
10986
- vv as Toaster,
10962
+ Vv as Sidebar,
10963
+ qv as SidebarContent,
10964
+ Kv as SidebarFooter,
10965
+ Zv as SidebarGroup,
10966
+ Qv as SidebarGroupAction,
10967
+ eb as SidebarGroupContent,
10968
+ Jv as SidebarGroupLabel,
10969
+ Yv as SidebarHeader,
10970
+ Uv as SidebarInput,
10971
+ Gv as SidebarInset,
10972
+ tb as SidebarMenu,
10973
+ ob as SidebarMenuAction,
10974
+ ab as SidebarMenuBadge,
10975
+ nb as SidebarMenuButton,
10976
+ rb as SidebarMenuItem,
10977
+ sb as SidebarMenuSkeleton,
10978
+ ib as SidebarMenuSub,
10979
+ lb as SidebarMenuSubButton,
10980
+ cb as SidebarMenuSubItem,
10981
+ Bv as SidebarProvider,
10982
+ Wv as SidebarRail,
10983
+ Xv as SidebarSeparator,
10984
+ Hv as SidebarTrigger,
10985
+ bv as Toaster,
10987
10986
  Sl as badgeVariants,
10988
10987
  ql as buttonVariants,
10989
10988
  k as cn,
10989
+ vv as toast,
10990
10990
  Cr as useFormField,
10991
10991
  Or as useSidebar
10992
10992
  };