@krak-stack/registry 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @krak-stack/registry
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Prevent virtualized combobox group headings from collapsing into options after asynchronous search results refresh.
8
+
3
9
  ## 0.2.1
4
10
 
5
11
  ### Patch Changes
@@ -995,7 +995,7 @@ var VirtualizedComboboxList = ({
995
995
  }));
996
996
  const selectedEntries = itemEntries.filter(({ item }) => selectedValues.has(item.value));
997
997
  const availableEntries = itemEntries.filter(({ item }) => !selectedValues.has(item.value));
998
- const entries = groupSelections ? [
998
+ const entries = filteredItems.length === 0 ? [] : groupSelections ? [
999
999
  ...selectedEntries.length > 0 ? [
1000
1000
  {
1001
1001
  kind: "group",
@@ -1114,7 +1114,7 @@ var VirtualizedComboboxContent = ({
1114
1114
  side: "bottom",
1115
1115
  sideOffset: 6,
1116
1116
  children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
1117
- className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
1117
+ className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95 relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md shadow-md ring-1 duration-100", contentClassName),
1118
1118
  children: [
1119
1119
  /* @__PURE__ */ jsx12("div", {
1120
1120
  className: "min-w-0 shrink-0 p-1 pb-0",
@@ -999,7 +999,7 @@ var VirtualizedComboboxList = ({
999
999
  }));
1000
1000
  const selectedEntries = itemEntries.filter(({ item }) => selectedValues.has(item.value));
1001
1001
  const availableEntries = itemEntries.filter(({ item }) => !selectedValues.has(item.value));
1002
- const entries = groupSelections ? [
1002
+ const entries = filteredItems.length === 0 ? [] : groupSelections ? [
1003
1003
  ...selectedEntries.length > 0 ? [
1004
1004
  {
1005
1005
  kind: "group",
@@ -1118,7 +1118,7 @@ var VirtualizedComboboxContent = ({
1118
1118
  side: "bottom",
1119
1119
  sideOffset: 6,
1120
1120
  children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
1121
- className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
1121
+ className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95 relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md shadow-md ring-1 duration-100", contentClassName),
1122
1122
  children: [
1123
1123
  /* @__PURE__ */ jsx12("div", {
1124
1124
  className: "min-w-0 shrink-0 p-1 pb-0",
@@ -172,7 +172,7 @@ var VirtualizedComboboxList = ({
172
172
  }));
173
173
  const selectedEntries = itemEntries.filter(({ item }) => selectedValues.has(item.value));
174
174
  const availableEntries = itemEntries.filter(({ item }) => !selectedValues.has(item.value));
175
- const entries = groupSelections ? [
175
+ const entries = filteredItems.length === 0 ? [] : groupSelections ? [
176
176
  ...selectedEntries.length > 0 ? [
177
177
  {
178
178
  kind: "group",
@@ -291,7 +291,7 @@ var VirtualizedComboboxContent = ({
291
291
  side: "bottom",
292
292
  sideOffset: 6,
293
293
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
294
- className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
294
+ className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95 relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md shadow-md ring-1 duration-100", contentClassName),
295
295
  children: [
296
296
  /* @__PURE__ */ jsx4("div", {
297
297
  className: "min-w-0 shrink-0 p-1 pb-0",
@@ -158,7 +158,7 @@ var VirtualizedComboboxList = ({
158
158
  }));
159
159
  const selectedEntries = itemEntries.filter(({ item }) => selectedValues.has(item.value));
160
160
  const availableEntries = itemEntries.filter(({ item }) => !selectedValues.has(item.value));
161
- const entries = groupSelections ? [
161
+ const entries = filteredItems.length === 0 ? [] : groupSelections ? [
162
162
  ...selectedEntries.length > 0 ? [
163
163
  {
164
164
  kind: "group",
@@ -277,7 +277,7 @@ var VirtualizedComboboxContent = ({
277
277
  side: "bottom",
278
278
  sideOffset: 6,
279
279
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
280
- className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
280
+ className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95 relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md shadow-md ring-1 duration-100", contentClassName),
281
281
  children: [
282
282
  /* @__PURE__ */ jsx4("div", {
283
283
  className: "min-w-0 shrink-0 p-1 pb-0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {