Skip to content

Commit b8b9399

Browse files
fix: ts compilation
1 parent 60794b8 commit b8b9399

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

packages/react/v2/components/primitives/color-picker.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ export const ColorPickerFormat = ({ className, ...props }: ColorPickerFormatProp
378378
readOnly
379379
type="text"
380380
value={`rgba(${rgb.join(', ')}, ${alpha}%)`}
381-
{...props}
382381
/>
383382
</div>
384383
)

packages/react/v2/components/primitives/drop-zone.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@ import { Typography } from './typography'
1212

1313
import { createRequiredContext } from '../../../src/react/hooks/create-required-context'
1414
import { cn } from '../../../src/react/utils/cn'
15+
declare namespace Intl {
16+
type ListType = 'conjunction' | 'disjunction'
17+
18+
interface ListFormatOptions {
19+
localeMatcher?: 'lookup' | 'best fit'
20+
type?: ListType
21+
style?: 'long' | 'short' | 'narrow'
22+
}
23+
24+
interface ListFormatPart {
25+
type: 'element' | 'literal'
26+
value: string
27+
}
28+
29+
class ListFormat {
30+
constructor(locales?: string | string[], options?: ListFormatOptions)
31+
format(values: any[]): string
32+
formatToParts(values: any[]): ListFormatPart[]
33+
supportedLocalesOf(locales: string | string[], options?: ListFormatOptions): string[]
34+
}
35+
}
1536

1637
interface DropzoneContextType extends DropzoneState {
1738
src?: File[]

0 commit comments

Comments
 (0)