brd-ui-kit 0.1.20 → 0.1.21

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
@@ -11876,7 +11876,7 @@ function ma({ className: e, ...t }) {
11876
11876
  "fieldset",
11877
11877
  {
11878
11878
  "data-slot": "field-set",
11879
- className: z(FC, e, "min-w-0 flex-1"),
11879
+ className: z(FC, e, "min-w-0 flex-1 w-full"),
11880
11880
  ...t
11881
11881
  }
11882
11882
  );
@@ -12031,21 +12031,13 @@ const YC = Ae(
12031
12031
  sizeInput: "md"
12032
12032
  }
12033
12033
  }
12034
- ), Vd = ({
12035
- className: e,
12036
- type: t = "text",
12037
- variant: n,
12038
- sizeInput: r,
12039
- ref: o,
12040
- ...i
12041
- }) => /* @__PURE__ */ x(
12034
+ ), Vd = ({ className: e, sizeInput: t, type: n, variant: r, ...o }) => /* @__PURE__ */ x(
12042
12035
  "input",
12043
12036
  {
12044
12037
  "data-slot": "input",
12045
- type: t,
12046
- className: z(YC({ variant: n, sizeInput: r }), e),
12047
- ref: o,
12048
- ...i
12038
+ type: n || "text",
12039
+ className: z(YC({ variant: r, sizeInput: t }), e),
12040
+ ...o
12049
12041
  }
12050
12042
  ), XC = [
12051
12043
  `border-inp-default-border bg-primary-bg text-primary-text flex h-31 w-full
@@ -12055,12 +12047,11 @@ const YC = Ae(
12055
12047
  `disabled:border-inp-disabled-border disabled:bg-disabled-bg
12056
12048
  disabled:text-disabled-text disabled:placeholder:text-disabled-text
12057
12049
  aria-invalid:border-error-text`
12058
- ].join(" "), ha = ({ className: e, ref: t, ...n }) => /* @__PURE__ */ x(
12050
+ ].join(" "), ha = (e) => /* @__PURE__ */ x(
12059
12051
  "textarea",
12060
12052
  {
12061
- className: z(XC, e),
12062
- ref: t,
12063
- ...n
12053
+ className: z(XC, e.className),
12054
+ ...e
12064
12055
  }
12065
12056
  );
12066
12057
  ha.displayName = "Textarea";
@@ -12182,7 +12173,7 @@ function t1({ className: e, ...t }) {
12182
12173
  }
12183
12174
  );
12184
12175
  }
12185
- function zd({ className: e, ...t }) {
12176
+ function zd(e) {
12186
12177
  return /* @__PURE__ */ x(
12187
12178
  Vd,
12188
12179
  {
@@ -12191,9 +12182,9 @@ function zd({ className: e, ...t }) {
12191
12182
  `w-0 min-w-0 flex-1 rounded-none border-0 bg-transparent shadow-none
12192
12183
  focus-visible:ring-0 disabled:border-0 disabled:bg-transparent
12193
12184
  dark:bg-transparent`,
12194
- e
12185
+ e.className
12195
12186
  ),
12196
- ...t
12187
+ ...e
12197
12188
  }
12198
12189
  );
12199
12190
  }
@@ -12245,7 +12236,7 @@ shadow-[0px_4px_12px_0px_rgba(0,0,0,0.1)] duration-100 *:data-[slot=input-group]
12245
12236
  *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8
12246
12237
  *:data-[slot=input-group]:shadow-none`, aw = `text-primary-text data-disabled:text-disabled-text
12247
12238
  data-highlighted:bg-primary-hover-bg relative flex w-full cursor-pointer items-center gap-2
12248
- px-2 py-2 text-sm outline-none select-none data-disabled:pointer-events-none
12239
+ text-sm outline-none select-none data-disabled:pointer-events-none
12249
12240
  [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`, lw = "text-secondary-text px-4 py-2 text-xs", cw = `text-secondary-text hidden w-full justify-center py-2
12250
12241
  text-center text-sm group-data-empty/combobox-content:flex`, uw = "bg-delicate-border -mx-1 my-1 h-px", dw = Ae(
12251
12242
  `border-inp-default-border bg-primary-bg text-primary-text hover:border-inp-hover-border
@@ -13648,12 +13639,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
13648
13639
  }, FS = nf, VS = of, LS = af, vf = lf, yf = cf, xf = df, Cf = pf, wf = mf;
13649
13640
  const $S = [
13650
13641
  "data-open:animate-in data-closed:animate-out data-closed:fade-out-0",
13651
- "data-open:fade-in-0 bg-primary-inverse-bg/20 duration-100",
13652
- "fixed inset-0 isolate z-50"
13642
+ "data-open:fade-in-0 bg-primary-inverse-bg/20 duration-100"
13653
13643
  ], zS = [
13654
13644
  "fixed left-[50%] top-[50%] z-50 grid translate-x-[-50%]",
13655
13645
  "translate-y-[-50%] gap-8 bg-primary-bg p-6 shadow-[0px_10px_40px_0px_rgba(0,0,0,0.15)] duration-200",
13656
13646
  "rounded-[8px] w-max",
13647
+ "[&>[data-base-ui-portal]]:absolute [&>[data-base-ui-portal]]:h-0 [&>[data-base-ui-portal]]:w-0 [&>[data-base-ui-portal]]:overflow-visible",
13657
13648
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
13658
13649
  "data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
13659
13650
  "data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]"
@@ -17791,41 +17782,44 @@ const v1 = ({
17791
17782
  label: r,
17792
17783
  description: o,
17793
17784
  classes: i,
17794
- ...s
17785
+ ref: s,
17786
+ ...a
17795
17787
  }) => {
17796
- const a = {
17788
+ const l = {
17797
17789
  ...t === !0 && !n && { "aria-valid": !0 },
17798
17790
  ...t === !1 && !n && { "aria-invalid": !0 },
17799
17791
  disabled: n
17800
17792
  };
17801
17793
  return /* @__PURE__ */ x(ma, { className: i?.fieldset, children: /* @__PURE__ */ x(Wo, { className: i?.fieldgroup, children: /* @__PURE__ */ ce(Uo, { className: i?.field, children: [
17802
- r && /* @__PURE__ */ x(Sr, { ...a, children: r }),
17794
+ r && /* @__PURE__ */ x(Sr, { ...l, children: r }),
17803
17795
  e.length > 0 ? /* @__PURE__ */ ce(Ld, { "data-slot": !0, children: [
17804
17796
  /* @__PURE__ */ x(
17805
17797
  zd,
17806
17798
  {
17807
- ...s,
17799
+ ref: s,
17808
17800
  ...a,
17801
+ ...l,
17809
17802
  disabled: n
17810
17803
  }
17811
17804
  ),
17812
- e.map((l) => /* @__PURE__ */ x(
17805
+ e.map((c) => /* @__PURE__ */ x(
17813
17806
  $d,
17814
17807
  {
17815
- align: l.position,
17816
- children: l.component
17808
+ align: c.position,
17809
+ children: c.component
17817
17810
  },
17818
- l.id
17811
+ c.id
17819
17812
  ))
17820
17813
  ] }) : /* @__PURE__ */ x(
17821
17814
  Vd,
17822
17815
  {
17823
- ...s,
17816
+ ref: s,
17824
17817
  ...a,
17818
+ ...l,
17825
17819
  disabled: n
17826
17820
  }
17827
17821
  ),
17828
- o && /* @__PURE__ */ x(qo, { ...a, children: o })
17822
+ o && /* @__PURE__ */ x(qo, { ...l, children: o })
17829
17823
  ] }) }) });
17830
17824
  }, y1 = ({ ...e }) => {
17831
17825
  const { isOpened: t, togglePopup: n } = Xp();
@@ -18061,7 +18055,7 @@ const sr = (e) => typeof e == "object", sg = (e) => sr(e) ? e.value : e, jE = (e
18061
18055
  {
18062
18056
  disabled: r,
18063
18057
  value: N,
18064
- className: _ ? "bg-tertiary-bg" : "",
18058
+ className: `${_ ? "bg-tertiary-bg" : ""} ${typeof N == "string" ? "py-1" : "px-2 py-2"}`,
18065
18059
  children: sr(N) ? /* @__PURE__ */ x(
18066
18060
  Ka,
18067
18061
  {