@kolkrabbi/kol-component 0.50.0 → 0.51.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.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,7 +44,6 @@ import { Icon } from '@kolkrabbi/kol-icons'
44
44
 
45
45
  const SIZE_TYPE = { sm: 'kol-mono-12', md: 'kol-mono-14' }
46
46
  const ICON_SIZE = { sm: 14, md: 14 }
47
- const CUBIC_EASE = 'var(--kol-ease-house)'
48
47
 
49
48
  export default function SearchInput({
50
49
  value = '',
@@ -80,8 +79,9 @@ export default function SearchInput({
80
79
  if (expanding) {
81
80
  return (
82
81
  <div
83
- className={`flex items-center bg-fg-04 rounded-full h-9 ${className}`.trim()}
84
- style={{ width: isOpen ? expandedWidth : 36, transition: `width 600ms ${CUBIC_EASE}` }}
82
+ className={`kol-expand flex items-center bg-fg-04 rounded-full h-9 ${className}`.trim()}
83
+ /* motion is `.kol-expand` in kol-theme; only the WIDTH is per-instance */
84
+ style={{ width: isOpen ? expandedWidth : 36 }}
85
85
  >
86
86
  <button
87
87
  type="button"
@@ -231,13 +231,12 @@ const ContentFilters = ({
231
231
  <IconSeam name="filter" size={16} />
232
232
  </button>
233
233
  <div
234
- className="flex items-center justify-center rounded-sm cursor-pointer hover:bg-fg-04 transition-colors"
234
+ className="kol-expand flex items-center justify-center rounded-sm cursor-pointer hover:bg-fg-04"
235
235
  style={{
236
236
  height: 32,
237
237
  width: searchOpen ? 200 : 32,
238
238
  background: searchOpen ? 'var(--kol-surface-secondary)' : 'transparent',
239
239
  border: 'none',
240
- transition: 'width 600ms var(--kol-ease-house), background 400ms var(--kol-ease-house)',
241
240
  overflow: 'hidden',
242
241
  }}
243
242
  onClick={() => {
@@ -249,10 +248,9 @@ const ContentFilters = ({
249
248
  * wearing kol-btn chrome. The clickable thing is the wrapper
250
249
  * div, not this span. */}
251
250
  <span
252
- className="flex items-center justify-center flex-shrink-0"
251
+ className="kol-expand-content flex items-center justify-center flex-shrink-0"
253
252
  style={{
254
253
  opacity: searchOpen ? 0 : 1,
255
- transition: 'opacity 300ms var(--kol-ease-house)',
256
254
  position: searchOpen ? 'absolute' : 'relative',
257
255
  }}
258
256
  >