@firecms/ui 3.0.0-canary.30 → 3.0.0-canary.31

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.es.js CHANGED
@@ -1,31 +1,31 @@
1
1
  import { jsx as e, jsxs as y, Fragment as U } from "react/jsx-runtime";
2
2
  import * as K from "react";
3
- import k, { useEffect as M, useCallback as an, useRef as rn, useState as V, useMemo as Rn, useLayoutEffect as Nn, useDeferredValue as On } from "react";
3
+ import k, { useEffect as M, useCallback as an, useRef as rn, useState as V, useMemo as Nn, useLayoutEffect as On, useDeferredValue as En } from "react";
4
4
  import * as X from "@radix-ui/react-collapsible";
5
- import { clsx as En } from "clsx";
6
- import { twMerge as Hn } from "tailwind-merge";
5
+ import { clsx as Hn } from "clsx";
6
+ import { twMerge as Wn } from "tailwind-merge";
7
7
  import * as yn from "@radix-ui/react-checkbox";
8
8
  import "@material-design-icons/font/filled.css";
9
- import Wn from "react-datepicker";
10
- import * as N from "@radix-ui/react-dialog";
11
- import { useDropzone as zn } from "react-dropzone";
9
+ import zn from "react-datepicker";
12
10
  import * as Kn from "@radix-ui/react-label";
13
- import qn from "react-fast-compare";
14
- import Vn from "markdown-it";
11
+ import * as N from "@radix-ui/react-dialog";
12
+ import { useDropzone as qn } from "react-dropzone";
13
+ import Vn from "react-fast-compare";
14
+ import Gn from "markdown-it";
15
15
  import * as Y from "@radix-ui/react-dropdown-menu";
16
16
  import { Command as tn } from "cmdk";
17
17
  import * as nn from "@radix-ui/react-radio-group";
18
18
  import * as R from "@radix-ui/react-select";
19
19
  import * as pn from "@radix-ui/react-separator";
20
- import * as Gn from "react-dom";
20
+ import * as jn from "react-dom";
21
21
  import * as J from "@radix-ui/react-tooltip";
22
22
  import * as _n from "@radix-ui/react-tabs";
23
23
  import * as Z from "@radix-ui/react-popover";
24
- const A = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent", mn = "focus:bg-opacity-70 focus:bg-slate-100 focus:dark:bg-gray-800 focus:dark:bg-opacity-60", In = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ", q = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:bg-opacity-60 transition duration-150 ease-in-out", bn = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0 transition duration-150 ease-in-out", G = "bg-opacity-80 dark:bg-opacity-90", z = "hover:bg-opacity-70 dark:hover:bg-opacity-90", j = "border-gray-100 dark:border-gray-800 dark:border-opacity-80", Q = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-90 border-gray-100", jn = "bg-white rounded-md dark:bg-gray-950 dark:border-gray-800 dark:border-opacity-50 transition duration-200 ease-in-out m-1 -p-1 border border-transparent", Un = "hover:bg-primary-bg dark:hover:bg-primary-bg hover:bg-opacity-20 dark:hover:bg-opacity-20 hover:ring-2 hover:ring-primary cursor-pointer", Ye = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
24
+ const A = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent", mn = "focus:bg-opacity-70 focus:bg-slate-100 focus:dark:bg-gray-800 focus:dark:bg-opacity-60", In = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ", q = "bg-opacity-50 bg-slate-200 dark:bg-gray-700 dark:bg-opacity-40 transition duration-150 ease-in-out", bn = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0 transition duration-150 ease-in-out", G = "dark:bg-gray-800 bg-opacity-80 dark:bg-opacity-90", z = "hover:bg-opacity-70 dark:hover:bg-opacity-60", j = "border-gray-100 dark:border-gray-900 dark:border-opacity-60", Q = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-80 border-gray-100", Un = "bg-white rounded-md dark:bg-gray-950 border-gray-100 dark:border-gray-900 dark:border-opacity-60 transition duration-200 ease-in-out m-1 -p-1 border ", Qn = "hover:bg-primary-bg dark:hover:bg-primary-bg hover:bg-opacity-20 dark:hover:bg-opacity-20 hover:ring-2 hover:ring-primary cursor-pointer", Ye = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
25
25
  function _(...n) {
26
- return Hn(En(n));
26
+ return Wn(Hn(n));
27
27
  }
28
- function Qn(n, t = 166) {
28
+ function Jn(n, t = 166) {
29
29
  let r;
30
30
  function c(...i) {
31
31
  const a = () => {
@@ -37,7 +37,7 @@ function Qn(n, t = 166) {
37
37
  clearTimeout(r);
38
38
  }, c;
39
39
  }
40
- function Jn(n) {
40
+ function Zn(n) {
41
41
  let t = 0, r, c;
42
42
  for (r = 0; r < n.length; r++)
43
43
  c = n.charCodeAt(r), t = (t << 5) - t + c, t |= 0;
@@ -85,11 +85,11 @@ const ln = {
85
85
  purpleDarker: { color: "#6b1cb0", text: "#ede2fe" },
86
86
  grayDarker: { color: "#444", text: "#eee" }
87
87
  };
88
- function Zn(n) {
88
+ function $n(n) {
89
89
  return ln[n];
90
90
  }
91
91
  function Xe(n) {
92
- const t = Jn(n), r = Object.keys(ln), c = t % r.length;
92
+ const t = Zn(n), r = Object.keys(ln), c = t % r.length;
93
93
  return ln[r[c]];
94
94
  }
95
95
  function no(n) {
@@ -118,7 +118,7 @@ function kn(n, t, r = !0) {
118
118
  function wn(n) {
119
119
  return n instanceof HTMLElement ? n.getAttribute("role") === "presentation" ? !0 : wn(n.parentNode) : !1;
120
120
  }
121
- function $n({
121
+ function Yn({
122
122
  children: n,
123
123
  className: t,
124
124
  in: r = !1,
@@ -188,7 +188,7 @@ function oo({
188
188
  }) {
189
189
  const c = k.useRef(null);
190
190
  return kn(c, () => r(!1)), /* @__PURE__ */ e(
191
- $n,
191
+ Yn,
192
192
  {
193
193
  in: t,
194
194
  duration: 50,
@@ -226,7 +226,7 @@ function to({
226
226
  }
227
227
  );
228
228
  }
229
- const Yn = (n) => {
229
+ const Xn = (n) => {
230
230
  switch (n) {
231
231
  case "small":
232
232
  return "px-4 py-1";
@@ -236,7 +236,7 @@ const Yn = (n) => {
236
236
  default:
237
237
  return "px-4 py-2";
238
238
  }
239
- }, Xn = (n) => {
239
+ }, ne = (n) => {
240
240
  switch (n) {
241
241
  case "error":
242
242
  return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900";
@@ -259,13 +259,13 @@ const Yn = (n) => {
259
259
  className: a,
260
260
  style: u
261
261
  }) => {
262
- const l = Xn(r);
262
+ const l = ne(r);
263
263
  return /* @__PURE__ */ y(
264
264
  "div",
265
265
  {
266
266
  style: u,
267
267
  className: _(
268
- Yn(c),
268
+ Xn(c),
269
269
  "w-full",
270
270
  "font-medium",
271
271
  "rounded-md flex items-center gap-2",
@@ -286,7 +286,7 @@ const Yn = (n) => {
286
286
  ]
287
287
  }
288
288
  );
289
- }, ne = ({
289
+ }, ee = ({
290
290
  src: n,
291
291
  alt: t,
292
292
  children: r,
@@ -328,7 +328,7 @@ const Yn = (n) => {
328
328
  }
329
329
  )
330
330
  }
331
- ), co = k.forwardRef(ne), ee = k.forwardRef(
331
+ ), co = k.forwardRef(ee), oe = k.forwardRef(
332
332
  function({
333
333
  value: t,
334
334
  allowIndeterminate: r,
@@ -431,7 +431,7 @@ const Yn = (n) => {
431
431
  },
432
432
  children: [
433
433
  /* @__PURE__ */ e(
434
- ee,
434
+ oe,
435
435
  {
436
436
  value: t,
437
437
  ref: d,
@@ -521,7 +521,7 @@ const Yn = (n) => {
521
521
  );
522
522
  });
523
523
  vn.displayName = "Button";
524
- const oe = vn, ao = k.forwardRef(({
524
+ const te = vn, ao = k.forwardRef(({
525
525
  children: n,
526
526
  className: t,
527
527
  onClick: r,
@@ -539,13 +539,13 @@ const oe = vn, ao = k.forwardRef(({
539
539
  role: r ? "button" : void 0,
540
540
  tabIndex: r ? 0 : void 0,
541
541
  onClick: r,
542
- className: _(jn, r && A, r && Un, t),
542
+ className: _(Un, r && A, r && Qn, t),
543
543
  style: c,
544
544
  ...i,
545
545
  children: n
546
546
  }
547
547
  );
548
- }), te = {
548
+ }), re = {
549
549
  xs: "max-w-xs",
550
550
  sm: "max-w-sm",
551
551
  md: "max-w-md",
@@ -557,13 +557,13 @@ const oe = vn, ao = k.forwardRef(({
557
557
  "5xl": "max-w-5xl",
558
558
  "6xl": "max-w-6xl",
559
559
  "7xl": "max-w-7xl"
560
- }, re = ({
560
+ }, ce = ({
561
561
  children: n,
562
562
  className: t,
563
563
  style: r,
564
564
  maxWidth: c = "7xl"
565
565
  }, i) => {
566
- const a = c ? te[c] : "";
566
+ const a = c ? re[c] : "";
567
567
  return /* @__PURE__ */ e(
568
568
  "div",
569
569
  {
@@ -577,7 +577,7 @@ const oe = vn, ao = k.forwardRef(({
577
577
  children: n
578
578
  }
579
579
  );
580
- }, ce = k.forwardRef(re);
580
+ }, ie = k.forwardRef(ce);
581
581
  function uo({
582
582
  children: n,
583
583
  maxWidth: t,
@@ -585,7 +585,7 @@ function uo({
585
585
  fullScreen: c
586
586
  }) {
587
587
  return /* @__PURE__ */ e("div", { className: _("flex flex-col flex-grow", c ? "h-screen" : "h-full"), children: /* @__PURE__ */ e(
588
- ce,
588
+ ie,
589
589
  {
590
590
  className: _("m-auto", r),
591
591
  maxWidth: t,
@@ -4134,7 +4134,7 @@ const _o = [
4134
4134
  "sports_baseball",
4135
4135
  "storm",
4136
4136
  "stairs"
4137
- ], ie = {
4137
+ ], ae = {
4138
4138
  inherit: "",
4139
4139
  primary: "text-primary",
4140
4140
  success: "text-green-500",
@@ -4178,7 +4178,7 @@ function o({
4178
4178
  },
4179
4179
  className: _(
4180
4180
  "material-icons",
4181
- r ? ie[r] : "",
4181
+ r ? ae[r] : "",
4182
4182
  "select-none",
4183
4183
  c
4184
4184
  ),
@@ -5794,7 +5794,7 @@ function Ys(n) {
5794
5794
  function Xs(n) {
5795
5795
  return /* @__PURE__ */ e(o, { ...n, iconKey: "calendar_clock" });
5796
5796
  }
5797
- function ae(n) {
5797
+ function ue(n) {
5798
5798
  return /* @__PURE__ */ e(o, { ...n, iconKey: "calendar_month" });
5799
5799
  }
5800
5800
  function nf(n) {
@@ -6034,7 +6034,7 @@ function vd(n) {
6034
6034
  function xd(n) {
6035
6035
  return /* @__PURE__ */ e(o, { ...n, iconKey: "chat_paste_go" });
6036
6036
  }
6037
- function ue(n) {
6037
+ function _e(n) {
6038
6038
  return /* @__PURE__ */ e(o, { ...n, iconKey: "check" });
6039
6039
  }
6040
6040
  function Sd(n) {
@@ -7426,7 +7426,7 @@ function nk(n) {
7426
7426
  function ek(n) {
7427
7427
  return /* @__PURE__ */ e(o, { ...n, iconKey: "equalizer" });
7428
7428
  }
7429
- function _e(n) {
7429
+ function le(n) {
7430
7430
  return /* @__PURE__ */ e(o, { ...n, iconKey: "error" });
7431
7431
  }
7432
7432
  function ok(n) {
@@ -12106,7 +12106,7 @@ function jW(n) {
12106
12106
  function UW(n) {
12107
12107
  return /* @__PURE__ */ e(o, { ...n, iconKey: "sdk" });
12108
12108
  }
12109
- function le(n) {
12109
+ function se(n) {
12110
12110
  return /* @__PURE__ */ e(o, { ...n, iconKey: "search" });
12111
12111
  }
12112
12112
  function QW(n) {
@@ -14602,22 +14602,22 @@ function don(n) {
14602
14602
  function yon(n) {
14603
14603
  return /* @__PURE__ */ e(o, { ...n, iconKey: "zoom_out_map" });
14604
14604
  }
14605
- const se = {
14605
+ const fe = {
14606
14606
  large: "w-6 h-6 rounded flex items-center justify-center",
14607
14607
  medium: "w-5 h-5 rounded flex items-center justify-center",
14608
14608
  small: "w-4 h-4 rounded flex items-center justify-center",
14609
14609
  tiny: "w-4 h-4 rounded flex items-center justify-center"
14610
- }, fe = {
14610
+ }, de = {
14611
14611
  medium: "w-10 h-10",
14612
14612
  small: "w-8 h-8",
14613
14613
  large: "w-12 h-12 ",
14614
14614
  tiny: "w-6 h-6"
14615
- }, de = {
14615
+ }, ye = {
14616
14616
  medium: "p-2",
14617
14617
  small: "p-2",
14618
14618
  large: "p-2",
14619
14619
  tiny: ""
14620
- }, ye = {
14620
+ }, pe = {
14621
14621
  primary: "bg-primary",
14622
14622
  secondary: "bg-secondary"
14623
14623
  }, pon = ({
@@ -14638,8 +14638,8 @@ const se = {
14638
14638
  disabled: c,
14639
14639
  onCheckedChange: c ? void 0 : a,
14640
14640
  children: /* @__PURE__ */ e("div", { className: _(
14641
- r ? de[i] : "",
14642
- fe[i],
14641
+ r ? ye[i] : "",
14642
+ de[i],
14643
14643
  "inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150",
14644
14644
  a ? "rounded-full hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:hover:bg-opacity-75" : "",
14645
14645
  a ? "cursor-pointer" : "cursor-default"
@@ -14648,8 +14648,8 @@ const se = {
14648
14648
  {
14649
14649
  className: _(
14650
14650
  "border-2 relative transition-colors ease-in-out duration-150",
14651
- se[i],
14652
- c ? "bg-slate-400 dark:bg-slate-600" : t || l ? ye[u] : "bg-white dark:bg-slate-900",
14651
+ fe[i],
14652
+ c ? "bg-slate-400 dark:bg-slate-600" : t || l ? pe[u] : "bg-white dark:bg-slate-900",
14653
14653
  t || l ? "text-slate-100 dark:text-slate-900" : "",
14654
14654
  c || t || l ? "border-transparent" : "border-slate-800 dark:border-slate-200"
14655
14655
  ),
@@ -14658,7 +14658,7 @@ const se = {
14658
14658
  ) })
14659
14659
  }
14660
14660
  );
14661
- }, pe = {
14661
+ }, me = {
14662
14662
  tiny: "px-2 py-0.5 text-sm",
14663
14663
  small: "px-3 py-1 text-sm",
14664
14664
  medium: "px-4 py-1.5 text-sm"
@@ -14673,7 +14673,7 @@ function mon({
14673
14673
  size: u = "medium",
14674
14674
  className: l
14675
14675
  }) {
14676
- const s = typeof t == "string" ? Zn(t) : t;
14676
+ const s = typeof t == "string" ? $n(t) : t;
14677
14677
  return /* @__PURE__ */ y(
14678
14678
  "div",
14679
14679
  {
@@ -14681,7 +14681,7 @@ function mon({
14681
14681
  "rounded-lg w-fit h-fit font-regular inline-flex gap-1",
14682
14682
  "text-ellipsis",
14683
14683
  i ? "cursor-pointer hover:bg-slate-300 hover:dark:bg-slate-700" : "",
14684
- pe[u],
14684
+ me[u],
14685
14685
  r || !s ? "bg-slate-200 dark:bg-slate-800 text-slate-800 dark:text-white" : "",
14686
14686
  r ? "text-red-500 dark:text-red-400" : "",
14687
14687
  l
@@ -14702,15 +14702,15 @@ function mon({
14702
14702
  }
14703
14703
  );
14704
14704
  }
14705
- const me = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:hover:bg-opacity-50", Ie = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150", he = "text-slate-600 visited:text-slate-600 dark:text-slate-300 dark:visited:text-gray-300", ge = {
14705
+ const Ie = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:hover:bg-opacity-50", he = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150", ge = "text-slate-600 visited:text-slate-600 dark:text-slate-300 dark:visited:text-gray-300", Ke = {
14706
14706
  medium: "w-10 !h-10 min-w-10 min-h-10",
14707
14707
  small: "w-8 !h-8 min-w-8 min-h-8",
14708
14708
  smallest: "w-6 !h-6 min-w-6 min-h-6",
14709
14709
  large: "w-12 !h-12 min-w-12 min-h-12"
14710
- }, Ke = {
14710
+ }, be = {
14711
14711
  circular: "rounded-full",
14712
14712
  square: "rounded-md"
14713
- }, be = ({
14713
+ }, ke = ({
14714
14714
  children: n,
14715
14715
  className: t,
14716
14716
  size: r = "medium",
@@ -14730,17 +14730,26 @@ const me = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:h
14730
14730
  A,
14731
14731
  a ? "opacity-50 pointer-events-none" : "cursor-pointer",
14732
14732
  u ? "outline outline-2 outline-primary" : "",
14733
+ ge,
14734
+ c === "ghost" ? "bg-transparent" : "bg-slate-200 bg-opacity-50 dark:bg-gray-950 dark:bg-opacity-50",
14733
14735
  he,
14734
- c === "ghost" ? "bg-transparent" : "bg-slate-50 dark:bg-gray-950 dark:bg-opacity-50",
14735
14736
  Ie,
14736
- me,
14737
- Ke[i],
14738
- ge[r],
14737
+ be[i],
14738
+ Ke[r],
14739
14739
  t
14740
14740
  ),
14741
14741
  children: n
14742
14742
  }
14743
- ), sn = k.forwardRef(be), Cn = K.forwardRef(function(t, r) {
14743
+ ), sn = k.forwardRef(ke), Cn = K.forwardRef(({ className: n, ...t }, r) => /* @__PURE__ */ e(
14744
+ Kn.Root,
14745
+ {
14746
+ ref: r,
14747
+ className: _("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", j, n),
14748
+ ...t
14749
+ }
14750
+ ));
14751
+ Cn.displayName = Kn.Root.displayName;
14752
+ const An = K.forwardRef(function(t, r) {
14744
14753
  const {
14745
14754
  shrink: c,
14746
14755
  className: i,
@@ -14758,7 +14767,7 @@ const me = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:h
14758
14767
  i
14759
14768
  );
14760
14769
  return /* @__PURE__ */ e(
14761
- "label",
14770
+ Cn,
14762
14771
  {
14763
14772
  "data-shrink": c,
14764
14773
  ref: r,
@@ -14781,14 +14790,14 @@ const me = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:h
14781
14790
  inherit: "p",
14782
14791
  caption: "p",
14783
14792
  button: "span"
14784
- }, ke = {
14793
+ }, we = {
14785
14794
  inherit: "text-inherit",
14786
14795
  initial: "text-current",
14787
14796
  primary: "text-text-primary dark:text-text-primary-dark",
14788
14797
  secondary: "text-text-secondary dark:text-text-secondary-dark",
14789
14798
  disabled: "text-text-disabled dark:text-text-disabled-dark",
14790
14799
  error: "text-red-600 dark:text-red-500"
14791
- }, we = {
14800
+ }, ve = {
14792
14801
  h1: "text-6xl font-headers font-light",
14793
14802
  h2: "text-5xl font-headers font-light",
14794
14803
  h3: "text-4xl font-headers font-normal",
@@ -14821,8 +14830,8 @@ function cn({
14821
14830
  }) {
14822
14831
  const g = i || (l ? "p" : f[s] || hn[s]) || "span", b = _(
14823
14832
  A,
14824
- we[s],
14825
- t ? ke[t] : "",
14833
+ ve[s],
14834
+ t ? we[t] : "",
14826
14835
  n !== "inherit" && `text-${n}`,
14827
14836
  a && "mb-[0.35em]",
14828
14837
  u && "truncate",
@@ -14848,7 +14857,7 @@ const Ion = ({
14848
14857
  clearable: i,
14849
14858
  mode: a = "date",
14850
14859
  error: u,
14851
- size: l,
14860
+ size: l = "medium",
14852
14861
  className: s,
14853
14862
  style: f,
14854
14863
  inputClassName: m,
@@ -14857,9 +14866,9 @@ const Ion = ({
14857
14866
  locale: g
14858
14867
  }) => {
14859
14868
  const b = rn(null), v = rn(null), [C, w] = k.useState(document.activeElement === v.current), P = n != null, x = n != null && !(n instanceof Date);
14860
- en("DateTimeField", ve);
14869
+ en("DateTimeField", xe);
14861
14870
  const D = (B) => {
14862
- B.preventDefault(), r(null);
14871
+ B.preventDefault(), r(void 0);
14863
14872
  };
14864
14873
  return /* @__PURE__ */ y(U, { children: [
14865
14874
  /* @__PURE__ */ y(
@@ -14878,7 +14887,7 @@ const Ion = ({
14878
14887
  style: f,
14879
14888
  children: [
14880
14889
  t && /* @__PURE__ */ e(
14881
- Cn,
14890
+ An,
14882
14891
  {
14883
14892
  className: _(
14884
14893
  "absolute top-1 pointer-events-none",
@@ -14890,7 +14899,7 @@ const Ion = ({
14890
14899
  }
14891
14900
  ),
14892
14901
  /* @__PURE__ */ e(
14893
- Wn,
14902
+ zn,
14894
14903
  {
14895
14904
  ref: b,
14896
14905
  locale: g,
@@ -14924,7 +14933,7 @@ const Ion = ({
14924
14933
  {
14925
14934
  onClick: () => b.current?.setOpen(!0),
14926
14935
  className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-slate-500 ",
14927
- children: /* @__PURE__ */ e(ae, { color: "disabled" })
14936
+ children: /* @__PURE__ */ e(ue, { color: "disabled" })
14928
14937
  }
14929
14938
  ),
14930
14939
  i && n && /* @__PURE__ */ e(
@@ -14943,7 +14952,7 @@ const Ion = ({
14943
14952
  {
14944
14953
  className: "flex items-center m-2",
14945
14954
  children: [
14946
- /* @__PURE__ */ e(_e, { size: "small", color: "error" }),
14955
+ /* @__PURE__ */ e(le, { size: "small", color: "error" }),
14947
14956
  /* @__PURE__ */ y("div", { className: "pl-2", children: [
14948
14957
  /* @__PURE__ */ e(
14949
14958
  cn,
@@ -14959,7 +14968,7 @@ const Ion = ({
14959
14968
  }
14960
14969
  )
14961
14970
  ] });
14962
- }, ve = `
14971
+ }, xe = `
14963
14972
  .react-datepicker__year-read-view--down-arrow,
14964
14973
  .react-datepicker__month-read-view--down-arrow,
14965
14974
  .react-datepicker__month-year-read-view--down-arrow, .react-datepicker__navigation-icon::before {
@@ -15793,7 +15802,7 @@ const Ion = ({
15793
15802
  .react-datepicker__day--outside-month{
15794
15803
  color: #666 !important;
15795
15804
  }
15796
- `, xe = {
15805
+ `, Se = {
15797
15806
  xs: "max-w-xs min-w-xs w-xs",
15798
15807
  sm: "max-w-sm min-w-sm w-sm",
15799
15808
  md: "max-w-md min-w-md w-md",
@@ -15871,7 +15880,7 @@ const Ion = ({
15871
15880
  "ease-in-out duration-200",
15872
15881
  l && "overflow-y-auto",
15873
15882
  I && n ? "opacity-100" : "opacity-0",
15874
- s && !u ? xe[s] : void 0,
15883
+ s && !u ? Se[s] : void 0,
15875
15884
  c
15876
15885
  ),
15877
15886
  children: r
@@ -15968,7 +15977,8 @@ function bon({
15968
15977
  {
15969
15978
  className: _(
15970
15979
  !r && j + " border",
15971
- "rounded-md"
15980
+ "rounded-md",
15981
+ "w-full"
15972
15982
  ),
15973
15983
  open: f,
15974
15984
  onOpenChange: (g) => {
@@ -16026,7 +16036,7 @@ function kon({
16026
16036
  isDragActive: g,
16027
16037
  isDragAccept: b,
16028
16038
  isDragReject: v
16029
- } = zn(
16039
+ } = qn(
16030
16040
  {
16031
16041
  accept: n,
16032
16042
  noDragEventsBubbling: !0,
@@ -16084,7 +16094,7 @@ function kon({
16084
16094
  }
16085
16095
  );
16086
16096
  }
16087
- const Se = {
16097
+ const Ce = {
16088
16098
  info: "bg-sky-200 dark:bg-teal-900",
16089
16099
  warn: "bg-orange-200 dark:bg-yellow-950"
16090
16100
  };
@@ -16095,20 +16105,11 @@ function won({
16095
16105
  return /* @__PURE__ */ e(
16096
16106
  "div",
16097
16107
  {
16098
- className: _("my-3 py-2 px-4 rounded", Se[t]),
16108
+ className: _("my-3 py-2 px-4 rounded", Ce[t]),
16099
16109
  children: n
16100
16110
  }
16101
16111
  );
16102
16112
  }
16103
- const Ce = K.forwardRef(({ className: n, ...t }, r) => /* @__PURE__ */ e(
16104
- Kn.Root,
16105
- {
16106
- ref: r,
16107
- className: _("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", j, n),
16108
- ...t
16109
- }
16110
- ));
16111
- Ce.displayName = Kn.Root.displayName;
16112
16113
  function von({
16113
16114
  children: n,
16114
16115
  loading: t,
@@ -16118,7 +16119,7 @@ function von({
16118
16119
  ...a
16119
16120
  }) {
16120
16121
  return /* @__PURE__ */ y(
16121
- oe,
16122
+ te,
16122
16123
  {
16123
16124
  disabled: t || r,
16124
16125
  onClick: c,
@@ -16138,13 +16139,13 @@ const Ae = {
16138
16139
  large: "prose-lg",
16139
16140
  xl: "prose-xl",
16140
16141
  "2xl": "prose-2xl"
16141
- }, Pe = new Vn({ html: !0 }), xon = k.memo(
16142
+ }, Pe = new Gn({ html: !0 }), xon = k.memo(
16142
16143
  function({
16143
16144
  source: t,
16144
16145
  className: r,
16145
16146
  size: c = "medium"
16146
16147
  }) {
16147
- const i = Rn(() => Pe.render(typeof t == "string" ? t : ""), [t]);
16148
+ const i = Nn(() => Pe.render(typeof t == "string" ? t : ""), [t]);
16148
16149
  return /* @__PURE__ */ e(
16149
16150
  "div",
16150
16151
  {
@@ -16153,7 +16154,7 @@ const Ae = {
16153
16154
  }
16154
16155
  );
16155
16156
  },
16156
- qn
16157
+ Vn
16157
16158
  );
16158
16159
  function Son({
16159
16160
  children: n,
@@ -16178,29 +16179,32 @@ function Son({
16178
16179
  }
16179
16180
  function Con({
16180
16181
  children: n,
16181
- dense: t,
16182
+ dense: t = !1,
16183
+ // Default value is false if not provided
16182
16184
  onClick: r
16183
16185
  }) {
16186
+ const c = _(
16187
+ A,
16188
+ r && "cursor-pointer",
16189
+ "rounded-md text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center gap-4",
16190
+ t ? "px-3 py-1.5" : "px-4 py-2"
16191
+ );
16184
16192
  return /* @__PURE__ */ e(
16185
16193
  Y.Item,
16186
16194
  {
16187
- className: _(
16188
- A,
16189
- r && "cursor-pointer",
16190
- "rounded-md px-4 py-2 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center gap-4"
16191
- ),
16195
+ className: c,
16192
16196
  onClick: r,
16193
16197
  children: n
16194
16198
  }
16195
16199
  );
16196
16200
  }
16197
- function An({ children: n, error: t }) {
16201
+ function Pn({ children: n, error: t }) {
16198
16202
  return /* @__PURE__ */ e("div", { className: _(
16199
16203
  "text-sm font-medium ml-3.5 mb-1",
16200
16204
  t ? "text-red-500 dark:text-red-600" : "text-slate-500 dark:text-slate-300"
16201
16205
  ), children: n });
16202
16206
  }
16203
- const Pn = K.createContext({});
16207
+ const Dn = K.createContext({});
16204
16208
  function Aon({
16205
16209
  value: n,
16206
16210
  open: t,
@@ -16237,7 +16241,7 @@ function Aon({
16237
16241
  L(g.current?.getBoundingClientRect() ?? null), w(!0);
16238
16242
  }, []), F = B ?? g.current?.getBoundingClientRect(), H = window.innerHeight - (F?.top ?? 0) - (F?.height ?? 0) - 16;
16239
16243
  return /* @__PURE__ */ y(U, { children: [
16240
- typeof i == "string" ? /* @__PURE__ */ e(An, { error: d, children: i }) : i,
16244
+ typeof i == "string" ? /* @__PURE__ */ e(Pn, { error: d, children: i }) : i,
16241
16245
  /* @__PURE__ */ y(
16242
16246
  tn,
16243
16247
  {
@@ -16290,7 +16294,7 @@ function Aon({
16290
16294
  }
16291
16295
  ),
16292
16296
  /* @__PURE__ */ e(N.Root, { open: C, onOpenChange: w, children: /* @__PURE__ */ e(N.Portal, { children: /* @__PURE__ */ e(
16293
- Pn.Provider,
16297
+ Dn.Provider,
16294
16298
  {
16295
16299
  value: {
16296
16300
  fieldValue: n,
@@ -16327,7 +16331,7 @@ function Aon({
16327
16331
  ] });
16328
16332
  }
16329
16333
  function Pon({ children: n, value: t, className: r }) {
16330
- const c = K.useContext(Pn);
16334
+ const c = K.useContext(Dn);
16331
16335
  if (!c)
16332
16336
  throw new Error("MultiSelectItem must be used inside a MultiSelect");
16333
16337
  const { fieldValue: i, setInputValue: a, onValueChangeInternal: u } = c;
@@ -16368,7 +16372,10 @@ function Don({
16368
16372
  }
16369
16373
  );
16370
16374
  }
16371
- const De = K.forwardRef(({ className: n, ...t }, r) => /* @__PURE__ */ e(
16375
+ const De = K.forwardRef(({
16376
+ className: n,
16377
+ ...t
16378
+ }, r) => /* @__PURE__ */ e(
16372
16379
  nn.Root,
16373
16380
  {
16374
16381
  className: _("grid gap-2", n),
@@ -16377,7 +16384,10 @@ const De = K.forwardRef(({ className: n, ...t }, r) => /* @__PURE__ */ e(
16377
16384
  }
16378
16385
  ));
16379
16386
  De.displayName = nn.Root.displayName;
16380
- const Fe = K.forwardRef(({ className: n, ...t }, r) => /* @__PURE__ */ e(
16387
+ const Fe = K.forwardRef(({
16388
+ className: n,
16389
+ ...t
16390
+ }, r) => /* @__PURE__ */ e(
16381
16391
  nn.Item,
16382
16392
  {
16383
16393
  ref: r,
@@ -16442,7 +16452,7 @@ function Fon({
16442
16452
  "div",
16443
16453
  {
16444
16454
  className: "absolute p-0 px-4 h-full absolute pointer-events-none flex items-center justify-center top-0",
16445
- children: f ? /* @__PURE__ */ e(xn, { size: "small" }) : /* @__PURE__ */ e(le, { className: "text-slate-500 dark:text-gray-500" })
16455
+ children: f ? /* @__PURE__ */ e(xn, { size: "small" }) : /* @__PURE__ */ e(se, { className: "text-slate-500 dark:text-gray-500" })
16446
16456
  }
16447
16457
  ),
16448
16458
  /* @__PURE__ */ e(
@@ -16535,7 +16545,7 @@ function Bon({
16535
16545
  },
16536
16546
  ...F,
16537
16547
  children: [
16538
- typeof b == "string" ? /* @__PURE__ */ e(An, { error: w, children: b }) : b,
16548
+ typeof b == "string" ? /* @__PURE__ */ e(Pn, { error: w, children: b }) : b,
16539
16549
  /* @__PURE__ */ y(
16540
16550
  "div",
16541
16551
  {
@@ -16655,7 +16665,7 @@ function Ton({
16655
16665
  "div",
16656
16666
  {
16657
16667
  className: "absolute left-1 data-[state=checked]:block hidden",
16658
- children: /* @__PURE__ */ e(ue, { size: 16 })
16668
+ children: /* @__PURE__ */ e(_e, { size: 16 })
16659
16669
  }
16660
16670
  )
16661
16671
  ]
@@ -16851,15 +16861,15 @@ const Le = K.forwardRef(function(t, r) {
16851
16861
  const T = d?.current ?? P.current, on = P.current;
16852
16862
  T.style.width = h.width, on.value = p.value || t.placeholder || "x", on.value.slice(-1) === `
16853
16863
  ` && (on.value += " ");
16854
- const Dn = h.boxSizing, Fn = $(h.paddingBottom) + $(h.paddingTop), Bn = $(h.borderBottomWidth) + $(h.borderTopWidth), Tn = $(h.minHeight), dn = T.scrollHeight;
16864
+ const Fn = h.boxSizing, Bn = $(h.paddingBottom) + $(h.paddingTop), Tn = $(h.borderBottomWidth) + $(h.borderTopWidth), Ln = $(h.minHeight), dn = T.scrollHeight;
16855
16865
  on.value = "x";
16856
16866
  const un = T.scrollHeight;
16857
16867
  let W = dn;
16858
- l && (W = Math.max(Number(l) * un, W)), u && (W = Math.min(Number(u) * un, W)), W = Math.max(W, un, Tn);
16859
- const Ln = W + (!g && Dn === "border-box" ? Fn + Bn : 0), Mn = Math.abs(W - dn) <= 1;
16868
+ l && (W = Math.max(Number(l) * un, W)), u && (W = Math.min(Number(u) * un, W)), W = Math.max(W, un, Ln);
16869
+ const Mn = W + (!g && Fn === "border-box" ? Bn + Tn : 0), Rn = Math.abs(W - dn) <= 1;
16860
16870
  return {
16861
- outerHeightStyle: Ln,
16862
- overflow: Mn
16871
+ outerHeightStyle: Mn,
16872
+ overflow: Rn
16863
16873
  };
16864
16874
  }, [u, l, t.placeholder]), E = (p, S) => {
16865
16875
  const {
@@ -16881,12 +16891,12 @@ const Le = K.forwardRef(function(t, r) {
16881
16891
  gn(p) || (a && a(p), B((S) => E(S, p)));
16882
16892
  }, [L, a]), F = () => {
16883
16893
  const p = L();
16884
- gn(p) || Gn.flushSync(() => {
16894
+ gn(p) || jn.flushSync(() => {
16885
16895
  B((S) => E(S, p));
16886
16896
  });
16887
16897
  };
16888
16898
  K.useEffect(() => {
16889
- const p = Qn(() => {
16899
+ const p = Jn(() => {
16890
16900
  x.current = 0, C.current && F();
16891
16901
  });
16892
16902
  let S;
@@ -16895,7 +16905,7 @@ const Le = K.forwardRef(function(t, r) {
16895
16905
  return T.addEventListener("resize", p), typeof ResizeObserver < "u" && (S = new ResizeObserver(p), S.observe(h)), () => {
16896
16906
  p.clear(), T.removeEventListener("resize", p), S && S.disconnect();
16897
16907
  };
16898
- }), Nn(() => {
16908
+ }), On(() => {
16899
16909
  O();
16900
16910
  }), K.useEffect(() => {
16901
16911
  x.current = 0;
@@ -17049,7 +17059,7 @@ function Ne({
17049
17059
  style: b,
17050
17060
  children: [
17051
17061
  r && /* @__PURE__ */ e(
17052
- Cn,
17062
+ An,
17053
17063
  {
17054
17064
  className: _(
17055
17065
  "pointer-events-none absolute",
@@ -17439,7 +17449,7 @@ const He = `
17439
17449
  )
17440
17450
  ] });
17441
17451
  function Qon(n) {
17442
- const t = k.useRef(), [r, c] = k.useState(n.value), i = On(r);
17452
+ const t = k.useRef(), [r, c] = k.useState(n.value), i = En(r);
17443
17453
  M(() => {
17444
17454
  c(n.value);
17445
17455
  }, [n.value]), M(() => {
@@ -17865,7 +17875,7 @@ export {
17865
17875
  Pl as BookmarkManagerIcon,
17866
17876
  Dl as BookmarkRemoveIcon,
17867
17877
  Fl as BookmarksIcon,
17868
- ee as BooleanSwitch,
17878
+ oe as BooleanSwitch,
17869
17879
  io as BooleanSwitchWithLabel,
17870
17880
  Bl as BorderAllIcon,
17871
17881
  Tl as BorderBottomIcon,
@@ -17933,7 +17943,7 @@ export {
17933
17943
  zs as BusinessChipIcon,
17934
17944
  Hs as BusinessIcon,
17935
17945
  qs as BusinessMessagesIcon,
17936
- oe as Button,
17946
+ te as Button,
17937
17947
  Vs as ButtonsAltIcon,
17938
17948
  ln as CHIP_COLORS,
17939
17949
  Gs as CabinIcon,
@@ -17945,7 +17955,7 @@ export {
17945
17955
  $s as CalendarAddOnIcon,
17946
17956
  Ys as CalendarAppsScriptIcon,
17947
17957
  Xs as CalendarClockIcon,
17948
- ae as CalendarMonthIcon,
17958
+ ue as CalendarMonthIcon,
17949
17959
  nf as CalendarTodayIcon,
17950
17960
  ef as CalendarViewDayIcon,
17951
17961
  of as CalendarViewMonthIcon,
@@ -18032,7 +18042,7 @@ export {
18032
18042
  Pd as CheckCircleFilledIcon,
18033
18043
  Ad as CheckCircleIcon,
18034
18044
  Dd as CheckCircleOutlineIcon,
18035
- ue as CheckIcon,
18045
+ _e as CheckIcon,
18036
18046
  Fd as CheckInOutIcon,
18037
18047
  Bd as CheckIndeterminateSmallIcon,
18038
18048
  Td as CheckSmallIcon,
@@ -18106,7 +18116,7 @@ export {
18106
18116
  qy as CoffeeIcon,
18107
18117
  Vy as CoffeeMakerIcon,
18108
18118
  Gy as CognitionIcon,
18109
- $n as Collapse,
18119
+ Yn as Collapse,
18110
18120
  jy as CollapseAllIcon,
18111
18121
  Uy as CollapseContentIcon,
18112
18122
  Jy as CollectionsBookmarkIcon,
@@ -18148,7 +18158,7 @@ export {
18148
18158
  Dp as ContactlessOffIcon,
18149
18159
  Fp as ContactsIcon,
18150
18160
  Bp as ContactsProductIcon,
18151
- ce as Container,
18161
+ ie as Container,
18152
18162
  Tp as ContentCopyIcon,
18153
18163
  Lp as ContentCutIcon,
18154
18164
  Rp as ContentPasteGoIcon,
@@ -18502,7 +18512,7 @@ export {
18502
18512
  nk as EqualIcon,
18503
18513
  ek as EqualizerIcon,
18504
18514
  ok as ErrorCircleRoundedIcon,
18505
- _e as ErrorIcon,
18515
+ le as ErrorIcon,
18506
18516
  tk as ErrorMedIcon,
18507
18517
  rk as ErrorOutlineIcon,
18508
18518
  ck as EscalatorIcon,
@@ -19017,7 +19027,7 @@ export {
19017
19027
  KA as InpatientIcon,
19018
19028
  kA as InputCircleIcon,
19019
19029
  bA as InputIcon,
19020
- Cn as InputLabel,
19030
+ An as InputLabel,
19021
19031
  vA as InsertChartFilledIcon,
19022
19032
  wA as InsertChartIcon,
19023
19033
  xA as InsertChartOutlinedIcon,
@@ -19095,7 +19105,7 @@ export {
19095
19105
  qP as LabPanelIcon,
19096
19106
  VP as LabProfileIcon,
19097
19107
  GP as LabResearchIcon,
19098
- Ce as Label,
19108
+ Cn as Label,
19099
19109
  jP as LabelIcon,
19100
19110
  UP as LabelImportantIcon,
19101
19111
  QP as LabelImportantOutlineIcon,
@@ -19428,7 +19438,7 @@ export {
19428
19438
  UL as MovingMinistryIcon,
19429
19439
  QL as MpIcon,
19430
19440
  Aon as MultiSelect,
19431
- Pn as MultiSelectContext,
19441
+ Dn as MultiSelectContext,
19432
19442
  Pon as MultiSelectItem,
19433
19443
  JL as MulticookerIcon,
19434
19444
  ZL as MultilineChartIcon,
@@ -20084,7 +20094,7 @@ export {
20084
20094
  Fon as SearchBar,
20085
20095
  QW as SearchCheckIcon,
20086
20096
  JW as SearchHandsFreeIcon,
20087
- le as SearchIcon,
20097
+ se as SearchIcon,
20088
20098
  ZW as SearchOffIcon,
20089
20099
  $W as SecurityIcon,
20090
20100
  YW as SecurityKeyIcon,
@@ -20995,12 +21005,12 @@ export {
20995
21005
  Kt as _9kIcon,
20996
21006
  bt as _9kPlusIcon,
20997
21007
  kt as _9mpIcon,
20998
- Un as cardClickableMixin,
20999
- jn as cardMixin,
21008
+ Qn as cardClickableMixin,
21009
+ Un as cardMixin,
21000
21010
  Ye as cardSelectedMixin,
21001
21011
  _ as cn,
21002
21012
  lo as coolIconKeys,
21003
- Qn as debounce,
21013
+ Jn as debounce,
21004
21014
  j as defaultBorderMixin,
21005
21015
  G as fieldBackgroundDisabledMixin,
21006
21016
  z as fieldBackgroundHoverMixin,
@@ -21009,7 +21019,7 @@ export {
21009
21019
  In as focusedClasses,
21010
21020
  mn as focusedInvisibleMixin,
21011
21021
  A as focusedMixin,
21012
- Zn as getColorSchemeForKey,
21022
+ $n as getColorSchemeForKey,
21013
21023
  Xe as getColorSchemeForSeed,
21014
21024
  _o as iconKeys,
21015
21025
  no as keyToIconComponent,