@kolkrabbi/kol-component 0.249.0 → 0.251.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-component",
3
- "version": "0.249.0",
3
+ "version": "0.251.0",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  "embla-carousel-react": "^8.6.0",
27
27
  "pdfjs-dist": "^6.3.289",
28
28
  "react-syntax-highlighter": "^16.1.1",
29
- "@kolkrabbi/kol-search": "^0.3.0",
30
- "@kolkrabbi/kol-markdown": "^0.1.3"
29
+ "@kolkrabbi/kol-markdown": "^0.1.3",
30
+ "@kolkrabbi/kol-search": "^0.3.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@kolkrabbi/kol-icons": ">=0.22.0",
@@ -38,7 +38,7 @@
38
38
  "react-dom": "^18.3.0 || ^19.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@kolkrabbi/kol-icons": "^0.35.0"
41
+ "@kolkrabbi/kol-icons": "^0.37.0"
42
42
  },
43
43
  "files": [
44
44
  "src",
@@ -2,6 +2,7 @@ import { createContext, useContext, useEffect, useMemo, useState } from 'react'
2
2
  import { Icon } from '@kolkrabbi/kol-icons'
3
3
  import ActionButton from '../molecules/ActionButton.jsx'
4
4
  import Button from '../atoms/Button.jsx'
5
+ import CloseButton from '../atoms/CloseButton.jsx'
5
6
  import Divider from '../atoms/Divider.jsx'
6
7
  import Dropdown from '../molecules/Dropdown.jsx'
7
8
  import Input from '../atoms/Input.jsx'
@@ -1084,7 +1085,10 @@ function PickerBrowse({ client, accept, onClose, onSelect, title = 'MEDIA', ...b
1084
1085
  onClose?.()
1085
1086
  }
1086
1087
  return (
1087
- <FullscreenOverlay open scrim onClose={onClose}>
1088
+ /* THE X SITS ON THE HEADER ROW (MediaPickerCloseOnTheHeaderRow, kol-fxr 2026-10-10 — user: *"x
1089
+ * close is in a weird place, align better"*). The overlay's corner close floated ~100px above
1090
+ * the header and lined up with nothing; it rides `headerTrailing`, after the gear, instead. */
1091
+ <FullscreenOverlay open scrim onClose={onClose} closeButton={false}>
1088
1092
  <div className="kol-media-picker gap-4">
1089
1093
  <MediaLibraryBrowse
1090
1094
  {...browseProps}
@@ -1095,6 +1099,7 @@ function PickerBrowse({ client, accept, onClose, onSelect, title = 'MEDIA', ...b
1095
1099
  settings={settings}
1096
1100
  onSettingsChange={setSettings}
1097
1101
  onPickFile={setFile}
1102
+ headerTrailing={<>{browseProps.headerTrailing}<CloseButton onClick={onClose} /></>}
1098
1103
  />
1099
1104
  <div className="mt-auto flex items-center justify-end gap-4">
1100
1105
  <span className="kol-mono-12 text-fg-48 truncate mr-auto">{file ? file.key : 'Select a file'}</span>
@@ -2599,7 +2599,7 @@ export function MediaLibraryBrowse({
2599
2599
  {atTop ? '1 folder' : `${bucketList.length} ${bucketList.length === 1 ? 'bucket' : 'buckets'}`}
2600
2600
  {folderTree && ` · ${Object.values(folderTree).reduce((n, t) => n + (t.files ?? 0), 0)} files · ${formatSize(Object.values(folderTree).reduce((n, t) => n + (t.bytes ?? 0), 0))}`}
2601
2601
  </p>
2602
- {isWall ? sizeSlider : rowSlider}
2602
+ {isWall ? sizeSlider : !phone && rowSlider}
2603
2603
  </div>
2604
2604
  ) : isWall ? (
2605
2605
  /* ONE LINE'S HEIGHT, like the other views' count line — the slider is 24px tall and made