@kolkrabbi/kol-component 0.360.0 → 0.361.1

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.360.0",
3
+ "version": "0.361.1",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,11 +33,11 @@
33
33
  "pdfjs-dist": "^6.3.289",
34
34
  "react-syntax-highlighter": "^16.1.1",
35
35
  "@kolkrabbi/kol-markdown": "^0.2.0",
36
- "@kolkrabbi/kol-growth": "^0.5.0",
37
- "@kolkrabbi/kol-search": "^0.3.0"
36
+ "@kolkrabbi/kol-search": "^0.3.0",
37
+ "@kolkrabbi/kol-growth": "^0.5.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@kolkrabbi/kol-icons": ">=0.68.0",
40
+ "@kolkrabbi/kol-icons": ">=0.69.0",
41
41
  "framer-motion": "^12.0.0",
42
42
  "gsap": "^3.13.0",
43
43
  "hls.js": "^1.6.0",
@@ -45,7 +45,7 @@
45
45
  "react-dom": "^18.3.0 || ^19.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@kolkrabbi/kol-icons": "^0.68.0"
48
+ "@kolkrabbi/kol-icons": "^0.69.0"
49
49
  },
50
50
  "files": [
51
51
  "src",
@@ -39,7 +39,7 @@ export function useCover(src) {
39
39
  * `.kol-play-disc` paints it after the IconFrame variants, so nothing is restated here. */
40
40
  function PlayDisc({ playing, onClick }) {
41
41
  return (
42
- <IconFrame name={playing ? 'pause' : 'play'} variant="secondary" size="lg" radius="full" onClick={onClick} aria-label={playing ? 'Pause' : 'Play'} className="relative kol-play-disc" />
42
+ <IconFrame name={playing ? 'pause-solid' : 'play-solid'} variant="secondary" size="lg" radius="full" onClick={onClick} aria-label={playing ? 'Pause' : 'Play'} className="relative kol-play-disc" />
43
43
  );
44
44
  }
45
45
 
@@ -189,7 +189,8 @@ const Slider = ({
189
189
  if (variant === 'dual') {
190
190
  const v1 = value ?? min
191
191
  const v2 = value2 ?? max
192
- const showLabels = label1 != null || label2 != null
192
+ /* an empty label is no label: `label1="" label2=""` (SettingsRange, GeneratorRail) drew an empty 16px row that pushed the rail low */
193
+ const showLabels = !!(label1 || label2)
193
194
  const ratio = max > min ? (playhead - min) / (max - min) : 0
194
195
  return (
195
196
  <div className={`control-slider gap-3 shadow-none ${className}`} style={style}>
@@ -509,7 +509,7 @@ function Thumb({ row, mediaUrl }) {
509
509
  return (
510
510
  <div className="kol-media-thumb">
511
511
  <span className="kol-media-thumb-fallback" data-painted={painted || !!row.poster}>
512
- <IconLoader name="play" size={20} />
512
+ <IconLoader name="play-solid" size={20} />
513
513
  <span className="kol-mono-12">{fileName(row.key)}</span>
514
514
  </span>
515
515
  <video
@@ -324,7 +324,7 @@ export default function RecordManager({
324
324
  <ToolbarIcon name="more" label="More" onClick={() => onOverflow(record)} />
325
325
  )}
326
326
  {onPreview && (
327
- <ToolbarIcon name="play" label="Preview" onClick={() => onPreview(record)} />
327
+ <ToolbarIcon name="play-solid" label="Preview" onClick={() => onPreview(record)} />
328
328
  )}
329
329
  {saveState != null && <span className="kol-helper-10 text-meta truncate leading-normal">{saveState}</span>}
330
330
  {onPublish && (