cynx-ui 1.3.3 → 1.3.4

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.
@@ -519,8 +519,8 @@ export function TimePicker({
519
519
  const presets24 = ['00:00', '07:00', '08:00', '09:00', '12:00', '18:00', '23:00'];
520
520
  const presets12 = ['07:00 AM', '09:00 AM', '12:00 PM', '03:00 PM', '06:00 PM', '11:00 PM'];
521
521
 
522
- const inputHeight = size === 'sm' ? '32px' : '38px';
523
- const fontSize = size === 'sm' ? '.78rem' : '.85rem';
522
+ const inputHeight = size === 'xs' ? '24px' : (size === 'sm' ? '32px' : '38px');
523
+ const fontSize = size === 'xs' ? '.72rem' : (size === 'sm' ? '.78rem' : '.85rem');
524
524
 
525
525
  return (
526
526
  <div
@@ -580,8 +580,8 @@ export function TimePicker({
580
580
  maxWidth: '100%',
581
581
  boxSizing: 'border-box',
582
582
  height: inputHeight,
583
- paddingLeft: displayClockIcon ? 28 : 10,
584
- paddingRight: 26,
583
+ paddingLeft: displayClockIcon ? (size === 'xs' ? 22 : 28) : (size === 'xs' ? 6 : 10),
584
+ paddingRight: size === 'xs' ? 18 : 26,
585
585
  border: `1px solid ${open ? 'var(--accent)' : 'var(--bd, var(--border, #d7d8e0))'}`,
586
586
  borderRadius: 'var(--rads, 8px)',
587
587
  fontSize: fontSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-ui",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js"