@hanzo/ui 4.2.4 → 4.2.5
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
package/primitives/combobox.tsx
CHANGED
|
@@ -97,6 +97,7 @@ const Combobox = <T, P extends ComboboxTriggerProps<T>>({
|
|
|
97
97
|
popoverClx='',
|
|
98
98
|
listItemClx='',
|
|
99
99
|
listItemSelectedClx='',
|
|
100
|
+
listItemDisabledClx='',
|
|
100
101
|
noCheckmark=false,
|
|
101
102
|
listItemImageClx='',
|
|
102
103
|
searchPlaceholder='Search...',
|
|
@@ -117,6 +118,7 @@ const Combobox = <T, P extends ComboboxTriggerProps<T>>({
|
|
|
117
118
|
popoverClx?: string
|
|
118
119
|
listItemClx?: string
|
|
119
120
|
listItemSelectedClx?: string
|
|
121
|
+
listItemDisabledClx?: string
|
|
120
122
|
listItemImageClx?: string
|
|
121
123
|
listItemImageSize?: number
|
|
122
124
|
noCheckmark?: boolean
|
|
@@ -192,11 +194,13 @@ const Combobox = <T, P extends ComboboxTriggerProps<T>>({
|
|
|
192
194
|
key={adaptor.getValue(el)}
|
|
193
195
|
value={adaptor.getValue(el)}
|
|
194
196
|
onSelect={handleSelect}
|
|
197
|
+
disabled={adaptor.isDisabled ? adaptor.isDisabled(el) : false}
|
|
195
198
|
className={cn(
|
|
196
199
|
'flex',
|
|
197
200
|
noCheckmark ? 'justify-start' : 'justify-between',
|
|
198
201
|
listItemClx,
|
|
199
|
-
(isCurrent(el) ? listItemSelectedClx : '')
|
|
202
|
+
(isCurrent(el) ? listItemSelectedClx : ''),
|
|
203
|
+
((adaptor.isDisabled && adaptor.isDisabled(el)) ? listItemDisabledClx : '')
|
|
200
204
|
)}
|
|
201
205
|
>
|
|
202
206
|
<div className='flex justify-start items-center gap-2'>
|
package/primitives/command.tsx
CHANGED
|
@@ -118,8 +118,8 @@ const CommandItem = React.forwardRef<
|
|
|
118
118
|
ref={ref}
|
|
119
119
|
className={cn(
|
|
120
120
|
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none',
|
|
121
|
-
'
|
|
122
|
-
'data-[disabled]:pointer-events-none data-[disabled]:opacity-
|
|
121
|
+
'data-selected:bg-level-3 aria-selected:text-accent',
|
|
122
|
+
'data-[disabled]:pointer-events-none data-[disabled]:opacity-35',
|
|
123
123
|
className
|
|
124
124
|
)}
|
|
125
125
|
{...props}
|
|
@@ -648,12 +648,17 @@ export default {
|
|
|
648
648
|
20: '0.2',
|
|
649
649
|
25: '0.25',
|
|
650
650
|
30: '0.3',
|
|
651
|
+
35: '0.35',
|
|
651
652
|
40: '0.4',
|
|
653
|
+
45: '0.45',
|
|
652
654
|
50: '0.5',
|
|
655
|
+
55: '0.55',
|
|
653
656
|
60: '0.6',
|
|
657
|
+
65: '0.65',
|
|
654
658
|
70: '0.7',
|
|
655
659
|
75: '0.75',
|
|
656
660
|
80: '0.8',
|
|
661
|
+
85: '0.85',
|
|
657
662
|
90: '0.9',
|
|
658
663
|
95: '0.95',
|
|
659
664
|
100: '1',
|