@medixdeck/ui 0.1.22 → 0.1.23

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.js CHANGED
@@ -11902,7 +11902,15 @@ function zt({ label: e, children: t, placement: n = "top", ...r }) {
11902
11902
  onOpenChange: s ? (c) => o(c.open) : void 0,
11903
11903
  ...r,
11904
11904
  children: [
11905
- /* @__PURE__ */ l(Ir.Trigger, { asChild: !0, children: /* @__PURE__ */ l("span", { ref: a, style: { display: "inline-flex" }, onClick: u, children: t }) }),
11905
+ /* @__PURE__ */ l(Ir.Trigger, { asChild: !0, children: /* @__PURE__ */ l(
11906
+ "span",
11907
+ {
11908
+ ref: a,
11909
+ style: { display: "inline-flex", alignItems: "center", justifyContent: "center" },
11910
+ onClick: u,
11911
+ children: t
11912
+ }
11913
+ ) }),
11906
11914
  /* @__PURE__ */ l(Ir.Positioner, { children: /* @__PURE__ */ l(
11907
11915
  Ir.Content,
11908
11916
  {
@@ -11923,7 +11931,7 @@ function zt({ label: e, children: t, placement: n = "top", ...r }) {
11923
11931
  }
11924
11932
  );
11925
11933
  }
11926
- const Oy = { BASE_URL: "/", DEV: !1, MODE: "production", PACKAGE_VERSION: "0.1.22", PROD: !0, SSR: !1, VITE_STORYBOOK_URL: "https://medixdeck-ui.vercel.app", VITE_WHATSAPP_COMMUNITY_LINK: "https://medixdeck.com/whatsapp" }, zy = {
11934
+ const Oy = { BASE_URL: "/", DEV: !1, MODE: "production", PACKAGE_VERSION: "0.1.23", PROD: !0, SSR: !1, VITE_STORYBOOK_URL: "https://medixdeck-ui.vercel.app", VITE_WHATSAPP_COMMUNITY_LINK: "https://medixdeck.com/whatsapp" }, zy = {
11927
11935
  blue: {
11928
11936
  solid: "#0685FF",
11929
11937
  hoverBgLight: "rgba(6,133,255,0.08)",
@@ -12777,7 +12785,7 @@ function Xo({
12777
12785
  }
12778
12786
  );
12779
12787
  }
12780
- const F = /* @__PURE__ */ l(zt, { label: e.label, placement: "right", children: /* @__PURE__ */ g(
12788
+ const F = /* @__PURE__ */ l(m, { display: "flex", justifyContent: "center", alignItems: "center", w: "full", children: /* @__PURE__ */ l(zt, { label: e.label, placement: "right", children: /* @__PURE__ */ g(
12781
12789
  m,
12782
12790
  {
12783
12791
  display: "flex",
@@ -12857,7 +12865,7 @@ function Xo({
12857
12865
  )
12858
12866
  ]
12859
12867
  }
12860
- ) });
12868
+ ) }) });
12861
12869
  return t(e, F);
12862
12870
  }
12863
12871
  const S = /* @__PURE__ */ g(
@@ -12987,28 +12995,17 @@ function Xo({
12987
12995
  transition: { duration: 0.2, ease: [0, 0, 0.2, 1] },
12988
12996
  style: { overflow: "hidden" },
12989
12997
  "aria-hidden": !y,
12990
- children: /* @__PURE__ */ l(
12991
- m,
12998
+ children: /* @__PURE__ */ l(m, { display: "flex", flexDirection: "column", gap: "0.5", pl: "9", mt: "0.5", mb: "1", children: e.subItems.map((F) => /* @__PURE__ */ l(
12999
+ Xo,
12992
13000
  {
12993
- display: "flex",
12994
- flexDirection: "column",
12995
- gap: "0.5",
12996
- pl: "9",
12997
- mt: "0.5",
12998
- mb: "1",
12999
- children: e.subItems.map((F) => /* @__PURE__ */ l(
13000
- Xo,
13001
- {
13002
- item: F,
13003
- renderLink: t,
13004
- onClick: n,
13005
- scheme: r,
13006
- isCollapsed: !1
13007
- },
13008
- F.href
13009
- ))
13010
- }
13011
- )
13001
+ item: F,
13002
+ renderLink: t,
13003
+ onClick: n,
13004
+ scheme: r,
13005
+ isCollapsed: !1
13006
+ },
13007
+ F.href
13008
+ )) })
13012
13009
  }
13013
13010
  )
13014
13011
  ] });
@@ -13241,7 +13238,7 @@ function ab({
13241
13238
  }) {
13242
13239
  const r = rb[e.tier], i = e.name.split(" ").map((a) => a[0]).join("").slice(0, 2).toUpperCase();
13243
13240
  if (n) {
13244
- const a = /* @__PURE__ */ l(
13241
+ const a = /* @__PURE__ */ l(m, { display: "flex", justifyContent: "center", alignItems: "center", w: "full", my: "2", children: /* @__PURE__ */ l(
13245
13242
  zt,
13246
13243
  {
13247
13244
  label: `${e.role} — ${e.name} (${r.label}, ${e.medixScore} pts)`,
@@ -13252,7 +13249,8 @@ function ab({
13252
13249
  display: "flex",
13253
13250
  alignItems: "center",
13254
13251
  justifyContent: "center",
13255
- my: "3",
13252
+ w: "36px",
13253
+ h: "36px",
13256
13254
  mx: "auto",
13257
13255
  "aria-label": `${e.role} ${e.name}`,
13258
13256
  cursor: e.link ? "pointer" : "default",
@@ -13302,7 +13300,7 @@ function ab({
13302
13300
  }
13303
13301
  )
13304
13302
  }
13305
- );
13303
+ ) });
13306
13304
  return e.link ? /* @__PURE__ */ l(Le, { children: t({ label: e.role, href: e.link }, a) }) : /* @__PURE__ */ l(Le, { children: a });
13307
13305
  }
13308
13306
  const o = /* @__PURE__ */ g(
@@ -13592,7 +13590,18 @@ function sb({
13592
13590
  ]
13593
13591
  }
13594
13592
  ),
13595
- y && /* @__PURE__ */ l(m, { display: { base: "none", md: "block" }, flexShrink: 0, pt: c ? "1" : "3", children: /* @__PURE__ */ l(ab, { data: y, renderLink: a, isCollapsed: c }) }),
13593
+ y && /* @__PURE__ */ l(
13594
+ m,
13595
+ {
13596
+ display: { base: "none", md: c ? "flex" : "block" },
13597
+ justifyContent: c ? "center" : void 0,
13598
+ alignItems: c ? "center" : void 0,
13599
+ w: "full",
13600
+ flexShrink: 0,
13601
+ pt: c ? "1" : "3",
13602
+ children: /* @__PURE__ */ l(ab, { data: y, renderLink: a, isCollapsed: c })
13603
+ }
13604
+ ),
13596
13605
  /* @__PURE__ */ l(
13597
13606
  m,
13598
13607
  {
@@ -13632,74 +13641,90 @@ function sb({
13632
13641
  ] }, T))
13633
13642
  }
13634
13643
  ),
13635
- /* @__PURE__ */ l(m, { px: c ? "2" : "3", pb: "4", pt: "2", flexShrink: 0, borderTop: "1px solid", borderColor: "border", children: c ? /* @__PURE__ */ l(zt, { label: "Log out", placement: "right", children: /* @__PURE__ */ l(
13636
- m,
13637
- {
13638
- as: "button",
13639
- display: "flex",
13640
- alignItems: "center",
13641
- justifyContent: "center",
13642
- w: "full",
13643
- h: "10",
13644
- borderRadius: "lg",
13645
- border: "none",
13646
- bg: "transparent",
13647
- cursor: "pointer",
13648
- "aria-label": "Log out",
13649
- onMouseEnter: () => x(!0),
13650
- onMouseLeave: () => x(!1),
13651
- onClick: () => {
13652
- i(), o == null || o();
13653
- },
13654
- style: {
13655
- background: b ? Ko : "transparent",
13656
- color: Lt,
13657
- transition: "background 0.15s ease"
13658
- },
13659
- children: /* @__PURE__ */ l(m, { flexShrink: 0, style: { color: Lt }, children: /* @__PURE__ */ l(qo, {}) })
13660
- }
13661
- ) }) : /* @__PURE__ */ g(
13644
+ /* @__PURE__ */ l(
13662
13645
  m,
13663
13646
  {
13664
- as: "button",
13665
- display: "flex",
13666
- alignItems: "center",
13667
- justifyContent: "flex-start",
13668
- gap: "3",
13647
+ px: c ? "2" : "3",
13648
+ pb: "4",
13649
+ pt: "2",
13650
+ flexShrink: 0,
13651
+ borderTop: "1px solid",
13652
+ borderColor: "border",
13653
+ display: c ? "flex" : "block",
13654
+ justifyContent: c ? "center" : void 0,
13655
+ alignItems: c ? "center" : void 0,
13669
13656
  w: "full",
13670
- px: "3",
13671
- py: "2.5",
13672
- borderRadius: "lg",
13673
- border: "none",
13674
- bg: "transparent",
13675
- cursor: "pointer",
13676
- "aria-label": "Log out",
13677
- onMouseEnter: () => x(!0),
13678
- onMouseLeave: () => x(!1),
13679
- onClick: () => {
13680
- i(), o == null || o();
13681
- },
13682
- style: {
13683
- background: b ? Ko : "transparent",
13684
- color: Lt,
13685
- transition: "background 0.15s ease"
13686
- },
13687
- children: [
13688
- /* @__PURE__ */ l(m, { flexShrink: 0, style: { color: Lt }, children: /* @__PURE__ */ l(qo, {}) }),
13689
- /* @__PURE__ */ l(
13690
- m,
13691
- {
13692
- as: "span",
13693
- fontSize: "sm",
13694
- fontWeight: "500",
13695
- fontFamily: "var(--font-body)",
13696
- style: { color: Lt },
13697
- children: "Log out"
13698
- }
13699
- )
13700
- ]
13657
+ children: c ? /* @__PURE__ */ l(zt, { label: "Log out", placement: "right", children: /* @__PURE__ */ l(
13658
+ m,
13659
+ {
13660
+ as: "button",
13661
+ display: "flex",
13662
+ alignItems: "center",
13663
+ justifyContent: "center",
13664
+ w: "10",
13665
+ h: "10",
13666
+ mx: "auto",
13667
+ borderRadius: "lg",
13668
+ border: "none",
13669
+ bg: "transparent",
13670
+ cursor: "pointer",
13671
+ "aria-label": "Log out",
13672
+ onMouseEnter: () => x(!0),
13673
+ onMouseLeave: () => x(!1),
13674
+ onClick: () => {
13675
+ i(), o == null || o();
13676
+ },
13677
+ style: {
13678
+ background: b ? Ko : "transparent",
13679
+ color: Lt,
13680
+ transition: "background 0.15s ease"
13681
+ },
13682
+ children: /* @__PURE__ */ l(m, { flexShrink: 0, style: { color: Lt }, children: /* @__PURE__ */ l(qo, {}) })
13683
+ }
13684
+ ) }) : /* @__PURE__ */ g(
13685
+ m,
13686
+ {
13687
+ as: "button",
13688
+ display: "flex",
13689
+ alignItems: "center",
13690
+ justifyContent: "flex-start",
13691
+ gap: "3",
13692
+ w: "full",
13693
+ px: "3",
13694
+ py: "2.5",
13695
+ borderRadius: "lg",
13696
+ border: "none",
13697
+ bg: "transparent",
13698
+ cursor: "pointer",
13699
+ "aria-label": "Log out",
13700
+ onMouseEnter: () => x(!0),
13701
+ onMouseLeave: () => x(!1),
13702
+ onClick: () => {
13703
+ i(), o == null || o();
13704
+ },
13705
+ style: {
13706
+ background: b ? Ko : "transparent",
13707
+ color: Lt,
13708
+ transition: "background 0.15s ease"
13709
+ },
13710
+ children: [
13711
+ /* @__PURE__ */ l(m, { flexShrink: 0, style: { color: Lt }, children: /* @__PURE__ */ l(qo, {}) }),
13712
+ /* @__PURE__ */ l(
13713
+ m,
13714
+ {
13715
+ as: "span",
13716
+ fontSize: "sm",
13717
+ fontWeight: "500",
13718
+ fontFamily: "var(--font-body)",
13719
+ style: { color: Lt },
13720
+ children: "Log out"
13721
+ }
13722
+ )
13723
+ ]
13724
+ }
13725
+ )
13701
13726
  }
13702
- ) })
13727
+ )
13703
13728
  ]
13704
13729
  }
13705
13730
  )
@@ -14420,7 +14445,7 @@ function vb({
14420
14445
  children: /* @__PURE__ */ l(
14421
14446
  m,
14422
14447
  {
14423
- bg: "bg.surface",
14448
+ bg: "bg",
14424
14449
  border: "1px solid",
14425
14450
  borderColor: "border",
14426
14451
  borderRadius: "card",
@@ -14478,33 +14503,42 @@ function vb({
14478
14503
  }
14479
14504
  ),
14480
14505
  /* @__PURE__ */ g(m, { flex: "1", minW: "0", children: [
14481
- /* @__PURE__ */ g(m, { display: "flex", alignItems: "center", gap: "1.5", justifyContent: "space-between", children: [
14482
- /* @__PURE__ */ g(
14483
- m,
14484
- {
14485
- as: "span",
14486
- display: "inline-flex",
14487
- alignItems: "center",
14488
- gap: "1.5",
14489
- fontSize: "sm",
14490
- fontWeight: "semibold",
14491
- fontFamily: "var(--font-heading)",
14492
- children: [
14493
- /* @__PURE__ */ l("span", { children: f.label }),
14494
- f.isExternal && /* @__PURE__ */ l(hi, {})
14495
- ]
14496
- }
14497
- ),
14498
- /* @__PURE__ */ l(Rn, { badge: f.badge, scheme: t })
14499
- ] }),
14506
+ /* @__PURE__ */ g(
14507
+ m,
14508
+ {
14509
+ display: "flex",
14510
+ alignItems: "center",
14511
+ gap: "1.5",
14512
+ justifyContent: "space-between",
14513
+ children: [
14514
+ /* @__PURE__ */ g(
14515
+ m,
14516
+ {
14517
+ as: "span",
14518
+ display: "inline-flex",
14519
+ alignItems: "center",
14520
+ gap: "1.5",
14521
+ fontSize: "sm",
14522
+ fontWeight: "semibold",
14523
+ fontFamily: "var(--font-heading)",
14524
+ children: [
14525
+ /* @__PURE__ */ l("span", { children: f.label }),
14526
+ f.isExternal && /* @__PURE__ */ l(hi, {})
14527
+ ]
14528
+ }
14529
+ ),
14530
+ /* @__PURE__ */ l(Rn, { badge: f.badge, scheme: t })
14531
+ ]
14532
+ }
14533
+ ),
14500
14534
  f.description && /* @__PURE__ */ l(
14501
14535
  m,
14502
14536
  {
14503
14537
  as: "span",
14504
14538
  display: "block",
14505
14539
  fontSize: "xs",
14506
- color: "text.muted",
14507
- _dark: { color: "text.muted" },
14540
+ color: "text.body",
14541
+ _dark: { color: "text.body" },
14508
14542
  fontFamily: "var(--font-body)",
14509
14543
  mt: "0.5",
14510
14544
  lineHeight: "1.4",
@@ -14537,7 +14571,10 @@ function vb({
14537
14571
  fontWeight: "medium",
14538
14572
  fontFamily: "var(--font-body)",
14539
14573
  color: e.isActive ? t.hover : "text.body",
14540
- _dark: { color: e.isActive ? t.hover : "text.body", _hover: { bg: t.hoverBgDark, color: t.hover } },
14574
+ _dark: {
14575
+ color: e.isActive ? t.hover : "text.body",
14576
+ _hover: { bg: t.hoverBgDark, color: t.hover }
14577
+ },
14541
14578
  borderRadius: "md",
14542
14579
  transition: "all 0.15s",
14543
14580
  _hover: { color: t.hover, bg: t.hoverBg },
@@ -14575,7 +14612,10 @@ function kb({
14575
14612
  fontWeight: "medium",
14576
14613
  fontFamily: "var(--font-body)",
14577
14614
  color: e.isActive ? t.hover : "text.body",
14578
- _dark: { color: e.isActive ? t.hover : "text.body", _hover: { color: t.hover, bg: "bg.subtle" } },
14615
+ _dark: {
14616
+ color: e.isActive ? t.hover : "text.body",
14617
+ _hover: { color: t.hover, bg: "bg.subtle" }
14618
+ },
14579
14619
  borderRadius: "md",
14580
14620
  _hover: { color: t.hover, bg: "bg.subtle" },
14581
14621
  cursor: "pointer",
@@ -14666,7 +14706,10 @@ function kb({
14666
14706
  py: "2",
14667
14707
  borderRadius: "md",
14668
14708
  color: "text.body",
14669
- _dark: { color: "text.body", _hover: { color: t.hover, bg: "bg.subtle" } },
14709
+ _dark: {
14710
+ color: "text.body",
14711
+ _hover: { color: t.hover, bg: "bg.subtle" }
14712
+ },
14670
14713
  _hover: { color: t.hover, bg: "bg.subtle" },
14671
14714
  cursor: "pointer",
14672
14715
  onClick: r,
@@ -14689,25 +14732,34 @@ function kb({
14689
14732
  }
14690
14733
  ),
14691
14734
  /* @__PURE__ */ g(m, { flex: "1", minW: "0", children: [
14692
- /* @__PURE__ */ g(m, { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "1", children: [
14693
- /* @__PURE__ */ g(
14694
- m,
14695
- {
14696
- as: "span",
14697
- display: "inline-flex",
14698
- alignItems: "center",
14699
- gap: "1",
14700
- fontSize: "sm",
14701
- fontWeight: "medium",
14702
- fontFamily: "var(--font-heading)",
14703
- children: [
14704
- /* @__PURE__ */ l("span", { children: u.label }),
14705
- u.isExternal && /* @__PURE__ */ l(hi, {})
14706
- ]
14707
- }
14708
- ),
14709
- /* @__PURE__ */ l(Rn, { badge: u.badge, scheme: t })
14710
- ] }),
14735
+ /* @__PURE__ */ g(
14736
+ m,
14737
+ {
14738
+ display: "flex",
14739
+ alignItems: "center",
14740
+ justifyContent: "space-between",
14741
+ gap: "1",
14742
+ children: [
14743
+ /* @__PURE__ */ g(
14744
+ m,
14745
+ {
14746
+ as: "span",
14747
+ display: "inline-flex",
14748
+ alignItems: "center",
14749
+ gap: "1",
14750
+ fontSize: "sm",
14751
+ fontWeight: "medium",
14752
+ fontFamily: "var(--font-heading)",
14753
+ children: [
14754
+ /* @__PURE__ */ l("span", { children: u.label }),
14755
+ u.isExternal && /* @__PURE__ */ l(hi, {})
14756
+ ]
14757
+ }
14758
+ ),
14759
+ /* @__PURE__ */ l(Rn, { badge: u.badge, scheme: t })
14760
+ ]
14761
+ }
14762
+ ),
14711
14763
  u.description && /* @__PURE__ */ l(
14712
14764
  m,
14713
14765
  {