@kolkrabbi/kol-component 0.360.0 → 0.361.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.360.0",
3
+ "version": "0.361.0",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,8 +33,8 @@
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
40
  "@kolkrabbi/kol-icons": ">=0.68.0",
@@ -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}>