@segmentify/ui 0.0.44 → 0.0.46

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.
@@ -20534,10 +20534,11 @@ function $M({
20534
20534
  className: e,
20535
20535
  children: t,
20536
20536
  showCloseButton: n = !0,
20537
- ...r
20537
+ overlayClassName: r,
20538
+ ...o
20538
20539
  }) {
20539
20540
  return /* @__PURE__ */ ne(VX, { "data-slot": "dialog-portal", children: [
20540
- /* @__PURE__ */ v($X, {}),
20541
+ /* @__PURE__ */ v($X, { className: r }),
20541
20542
  /* @__PURE__ */ ne(
20542
20543
  lu,
20543
20544
  {
@@ -20546,7 +20547,7 @@ function $M({
20546
20547
  "ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:fixed ui:top-[50%] ui:left-[50%] ui:z-50 ui:grid ui:w-full ui:max-w-[calc(100%-2rem)] ui:translate-x-[-50%] ui:translate-y-[-50%] ui:gap-4 ui:rounded-lg ui:border ui:p-6 ui:shadow-lg ui:duration-200 ui:outline-none ui:sm:max-w-lg",
20547
20548
  e
20548
20549
  ),
20549
- ...r,
20550
+ ...o,
20550
20551
  children: [
20551
20552
  t,
20552
20553
  n && /* @__PURE__ */ ne(
@@ -26863,7 +26864,7 @@ function QE({
26863
26864
  showClear: o = !1,
26864
26865
  ...i
26865
26866
  }) {
26866
- return /* @__PURE__ */ ne(nJ, { className: F("ui:w-auto", e), children: [
26867
+ return /* @__PURE__ */ ne(nJ, { className: F("ui:w-auto ui:shrink-0", e), children: [
26867
26868
  /* @__PURE__ */ v(ew, { render: /* @__PURE__ */ v(sJ, { disabled: n }), ...i }),
26868
26869
  /* @__PURE__ */ ne(oJ, { align: "inline-end", children: [
26869
26870
  r && /* @__PURE__ */ v(
@@ -26907,7 +26908,7 @@ function uJ({
26907
26908
  "data-slot": "combobox-content",
26908
26909
  "data-chips": !!i,
26909
26910
  className: F(
26910
- "ui:bg-popover ui:text-popover-foreground ui:data-open:animate-in ui:data-closed:animate-out ui:data-closed:fade-out-0 ui:data-open:fade-in-0 ui:data-closed:zoom-out-95 ui:data-open:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:ring-foreground/10 ui:*:data-[slot=input-group]:bg-input/30 ui:*:data-[slot=input-group]:border-input/30 ui:group/combobox-content ui:relative ui:max-h-96 ui:w-(--anchor-width) ui:max-w-(--available-width) ui:min-w-[calc(var(--anchor-width)+--spacing(7))] ui:origin-(--transform-origin) ui:overflow-hidden ui:rounded-md ui:shadow-md ui:ring-1 ui:duration-100 ui:data-[chips=true]:min-w-(--anchor-width) ui:*:data-[slot=input-group]:m-1 ui:*:data-[slot=input-group]:mb-0 ui:*:data-[slot=input-group]:h-8 ui:*:data-[slot=input-group]:shadow-none",
26911
+ "ui:bg-popover ui:text-popover-foreground ui:data-open:animate-in ui:data-closed:animate-out ui:data-closed:fade-out-0 ui:data-open:fade-in-0 ui:data-closed:zoom-out-95 ui:data-open:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:ring-foreground/10 ui:*:data-[slot=input-group]:bg-input/30 ui:*:data-[slot=input-group]:border-input/30 ui:group/combobox-content ui:relative ui:flex ui:min-h-0 ui:max-h-96 ui:flex-col ui:w-(--anchor-width) ui:max-w-(--available-width) ui:min-w-[calc(var(--anchor-width)+--spacing(7))] ui:origin-(--transform-origin) ui:overflow-hidden ui:rounded-md ui:shadow-md ui:ring-1 ui:duration-100 ui:data-[chips=true]:min-w-(--anchor-width) ui:*:data-[slot=input-group]:m-1 ui:*:data-[slot=input-group]:mb-0 ui:*:data-[slot=input-group]:h-8 ui:*:data-[slot=input-group]:shadow-none",
26911
26912
  e
26912
26913
  ),
26913
26914
  ...s
@@ -26921,10 +26922,7 @@ function cJ({ className: e, ...t }) {
26921
26922
  XD,
26922
26923
  {
26923
26924
  "data-slot": "combobox-list",
26924
- className: F(
26925
- "ui:max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] ui:scroll-py-1 ui:overflow-y-auto ui:p-1 ui:data-empty:p-0",
26926
- e
26927
- ),
26925
+ className: F("ui:min-h-0 ui:flex-1 ui:overflow-y-auto ui:scroll-py-1 ui:p-1 ui:data-empty:p-0", e),
26928
26926
  ...t
26929
26927
  }
26930
26928
  );
@@ -26935,7 +26933,7 @@ function dJ({ className: e, children: t, ...n }) {
26935
26933
  {
26936
26934
  "data-slot": "combobox-item",
26937
26935
  className: F(
26938
- "ui:data-highlighted:bg-accent ui:data-highlighted:text-accent-foreground ui:relative ui:flex ui:w-full ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-8 ui:pl-2 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*=size-])]:size-4",
26936
+ "ui:data-highlighted:bg-accent ui:data-highlighted:text-accent-foreground ui:relative ui:flex ui:w-full ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-8 ui:pl-2 ui:text-sm ui:outline-hidden ui:select-none ui:data-disabled:pointer-events-none ui:data-disabled:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*=size-])]:size-4",
26939
26937
  e
26940
26938
  ),
26941
26939
  ...n,
@@ -26959,7 +26957,7 @@ function fJ({ className: e, ...t }) {
26959
26957
  {
26960
26958
  "data-slot": "combobox-empty",
26961
26959
  className: F(
26962
- "ui:text-muted-foreground ui:hidden ui:w-full ui:justify-center ui:py-2 ui:text-center ui:text-sm ui:group-data-empty/combobox-content:flex",
26960
+ "ui:hidden ui:w-full ui:shrink-0 ui:justify-center ui:py-2 ui:text-center ui:text-sm ui:text-muted-foreground ui:group-data-empty/combobox-content:flex",
26963
26961
  e
26964
26962
  ),
26965
26963
  ...t
@@ -27117,7 +27115,7 @@ const vJ = (e) => e.label, yJ = (e, t) => e.value === t.value, pk = ({
27117
27115
  children: [
27118
27116
  c === "popup" && /* @__PURE__ */ v(QE, { showTrigger: !1, placeholder: "Search...", onChange: S }),
27119
27117
  /* @__PURE__ */ v(fJ, { children: a }),
27120
- l && n && /* @__PURE__ */ ne("div", { className: "ui:group-data-empty/combobox-content:hidden", children: [
27118
+ l && n && /* @__PURE__ */ ne("div", { className: "ui:shrink-0 ui:group-data-empty/combobox-content:hidden", children: [
27121
27119
  /* @__PURE__ */ v("div", { className: F("ui:p-1 ui:pb-0", c === "popup" ? "ui:mt-1" : ""), children: /* @__PURE__ */ ne(
27122
27120
  "div",
27123
27121
  {
@@ -27199,7 +27197,7 @@ const xJ = ({
27199
27197
  o
27200
27198
  ),
27201
27199
  children: [
27202
- /* @__PURE__ */ v(QL, { className: "ui:mr-2 ui:h-4 ui:w-4" }),
27200
+ /* @__PURE__ */ v(QL, { className: "ui:h-4 ui:w-4" }),
27203
27201
  f?.from ? f.to ? /* @__PURE__ */ ne(Mr, { children: [
27204
27202
  hl(f.from, "LLL dd, y", { locale: u }),
27205
27203
  " -",
@@ -34978,7 +34976,7 @@ const Lv = [
34978
34976
  { bg: "ui:bg-orange-600/10", text: "ui:text-orange-600" }
34979
34977
  ], zne = (e) => Array.from({ length: e }, () => Math.floor(Math.random() * Lv.length)), Ype = ({ items: e, header: t, className: n, onItemClick: r, dateLocale: o }) => {
34980
34978
  const [i] = ht(() => zne(e.length));
34981
- return /* @__PURE__ */ ne("div", { className: F("ui:w-full", n), children: [
34979
+ return /* @__PURE__ */ ne("div", { className: F("ui:w-full ui:bg-white ui:rounded-lg ui:border ui:shadow-sm ui:p-6", n), children: [
34982
34980
  t && /* @__PURE__ */ v("div", { className: "ui:mb-4 ui:text-sm ui:text-muted-foreground", children: t }),
34983
34981
  /* @__PURE__ */ v("div", { className: "ui:relative", children: e.map((s, a) => {
34984
34982
  const { iconConfig: l, title: u, description: c, timestamp: d, tags: f, topRightSlot: p, bottomRightSlot: h } = s, g = l.icon, b = i[a] ?? a % Lv.length, y = Lv[b], w = l.bg ?? y.bg, C = l.text ?? y.text, x = !!r;
@@ -34998,11 +34996,11 @@ const Lv = [
34998
34996
  ),
34999
34997
  children: [
35000
34998
  /* @__PURE__ */ ne("div", { className: "ui:space-y-1", children: [
35001
- /* @__PURE__ */ v("h3", { className: "ui:text-sm", children: u }),
34999
+ /* @__PURE__ */ v("h3", { className: "ui:text-base", children: u }),
35002
35000
  /* @__PURE__ */ v("p", { className: "ui:text-sm ui:text-muted-foreground", children: c }),
35003
35001
  f && /* @__PURE__ */ v("div", { className: "ui:flex ui:items-center ui:gap-1.5 ui:pt-1 ui:text-xs ui:text-muted-foreground", children: f.map((S) => /* @__PURE__ */ v(bP, { variant: "outline", className: "ui:shrink-0", children: S }, S)) }),
35004
35002
  /* @__PURE__ */ ne("div", { className: "ui:flex ui:items-center ui:gap-1.5 ui:pt-1 ui:text-xs ui:text-muted-foreground", children: [
35005
- /* @__PURE__ */ v(gF, { className: "ui:size-3.5" }),
35003
+ /* @__PURE__ */ v(gF, { className: "ui:size-3" }),
35006
35004
  /* @__PURE__ */ v("span", { children: hl(new Date(d), void 0, { locale: o }) })
35007
35005
  ] })
35008
35006
  ] }),
package/dist/ui.css CHANGED
@@ -429,6 +429,10 @@
429
429
  width: calc(var(--ui-spacing) * 2.5);
430
430
  height: calc(var(--ui-spacing) * 2.5);
431
431
  }
432
+ .ui\:size-3 {
433
+ width: calc(var(--ui-spacing) * 3);
434
+ height: calc(var(--ui-spacing) * 3);
435
+ }
432
436
  .ui\:size-3\.5 {
433
437
  width: calc(var(--ui-spacing) * 3.5);
434
438
  height: calc(var(--ui-spacing) * 3.5);
@@ -571,9 +575,6 @@
571
575
  .ui\:max-h-\[300px\] {
572
576
  max-height: 300px;
573
577
  }
574
- .ui\:max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\] {
575
- max-height: min(calc(calc(var(--ui-spacing) * 96) - calc(var(--ui-spacing) * 9)), calc(var(--available-height) - calc(var(--ui-spacing) * 9)));
576
- }
577
578
  .ui\:min-h-0 {
578
579
  min-height: calc(var(--ui-spacing) * 0);
579
580
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentify/ui",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
5
5
  "repository": {
6
6
  "type": "git",