cynx-ui 1.2.24 → 1.2.25

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.
@@ -123,11 +123,11 @@ export default function Input({
123
123
  ...style,
124
124
  }}
125
125
  value={value}
126
+ {...props}
126
127
  onFocus={e => { setFocused(true); props.onFocus?.(e); }}
127
- onBlur={e => { setFocused(false); props.onBlur?.(e); }}
128
+ onBlur={e => { setFocused(false); setHovered(false); props.onBlur?.(e); }}
128
129
  onMouseEnter={() => setHovered(true)}
129
130
  onMouseLeave={() => setHovered(false)}
130
- {...props}
131
131
  />
132
132
 
133
133
  {showClear && (
@@ -161,18 +161,6 @@ export function Modal({ open, onClose, onBeforeClose, title, children, footer, m
161
161
  borderRadius: '14px 14px 0 0',
162
162
  }}>
163
163
  <span className="modal-title" style={{ fontSize: '.88rem', fontWeight: 700, letterSpacing: '-.01em' }}>{title}</span>
164
- <button className="modal-close" onClick={close} style={{
165
- background: 'none', border: 'none', cursor: 'pointer', padding: 4, borderRadius: 6,
166
- color: 'var(--muted)', display: 'flex', alignItems: 'center', transition: 'all .14s',
167
- }}
168
- onMouseEnter={e => { e.currentTarget.style.color = 'var(--primary-text)'; e.currentTarget.style.background = 'var(--grey-1)'; }}
169
- onMouseLeave={e => { e.currentTarget.style.color = 'var(--muted)'; e.currentTarget.style.background = 'none'; }}>
170
- <svg width="13" height="13" viewBox="0 0 13 13" fill="none" stroke="currentColor"
171
- strokeWidth="2" strokeLinecap="round">
172
- <line x1="1.5" y1="1.5" x2="11.5" y2="11.5"/>
173
- <line x1="11.5" y1="1.5" x2="1.5" y2="11.5"/>
174
- </svg>
175
- </button>
176
164
  </div>
177
165
  <div className="modal-body" style={{ padding: 20, overflowX: 'hidden', overflowY: 'auto', flex: 1, minHeight: 0, ...bodyStyle }}>{resolvedChildren}</div>
178
166
  {resolvedFooter && <div className="modal-footer" style={{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-ui",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js"