File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import React, {
77 type ReactNode ,
88 type ComponentProps
99} from "react" ;
10- import { assert , Equals } from "tsafe" ;
10+ import { assert , type Equals } from "tsafe" ;
1111import { symToStr } from "tsafe/symToStr" ;
12- import { CxArg } from "tss-react" ;
12+ import { type CxArg } from "tss-react" ;
1313import { fr } from "./fr" ;
1414import { cx } from "./tools/cx" ;
1515import { useAnalyticsId } from "./tools/useAnalyticsId" ;
@@ -55,10 +55,7 @@ export type RangeProps = {
5555
5656//https://main--ds-gouv.netlify.app/example/component/range/
5757export namespace RangeProps {
58- type NativeInputProps = DetailedHTMLProps <
59- InputHTMLAttributes < HTMLInputElement > ,
60- HTMLInputElement
61- > ;
58+ type NativeInputProps = ComponentProps < "input" > ;
6259
6360 export type AsSingle = {
6461 double ?: never ;
Original file line number Diff line number Diff line change 11import {
2- CSSProperties ,
3- DetailedHTMLProps ,
2+ type ComponentProps ,
3+ type CSSProperties ,
44 forwardRef ,
5- InputHTMLAttributes ,
65 memo ,
7- ReactNode ,
6+ type ReactNode ,
87 useId
98} from "react" ;
10- import { assert , Equals } from "tsafe" ;
11- import { fr , FrIconClassName , RiIconClassName } from "./fr" ;
9+ import { assert , type Equals } from "tsafe" ;
10+ import { fr , type FrIconClassName , type RiIconClassName } from "./fr" ;
1211import React from "react" ;
13- import { CxArg } from "tss-react" ;
12+ import { type CxArg } from "tss-react" ;
1413import { cx } from "./tools/cx" ;
1514import { useAnalyticsId } from "./tools/useAnalyticsId" ;
1615
@@ -64,10 +63,7 @@ export namespace SegmentedControlProps {
6463
6564 export type Segment = {
6665 label : ReactNode ;
67- nativeInputProps ?: DetailedHTMLProps <
68- InputHTMLAttributes < HTMLInputElement > ,
69- HTMLInputElement
70- > ;
66+ nativeInputProps ?: ComponentProps < "input" > ;
7167 iconId ?: FrIconClassName | RiIconClassName ;
7268 } ;
7369
You can’t perform that action at this time.
0 commit comments