Skip to content

Commit 61358b6

Browse files
committed
fix: 🐛 export de l’alias de type DsfrRangeProps
1 parent 756c2d6 commit 61358b6

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

docs/types.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ outline: [2,3]
168168
<<< ../src/components/DsfrRadioButton/DsfrRadioButton.types.ts
169169
:::
170170

171+
### `DsfrRange`
172+
173+
::: code-group
174+
<<< ../src/components/DsfrRange/DsfrRange.types.ts
175+
:::
176+
171177
### `DsfrSearchBar`
172178

173179
::: code-group
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export type DsfrRangeProps = {
2+
id?: string
3+
min?: number
4+
max?: number
5+
modelValue?: number
6+
lowerValue?: number
7+
label: string
8+
hint?: string
9+
message?: string
10+
prefix?: string
11+
suffix?: string
12+
small?: boolean
13+
hideIndicators?: boolean
14+
step?: number
15+
disabled?: boolean
16+
}

src/components/DsfrRange/DsfrRange.vue

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,9 @@ import { computed, onMounted, ref, watch } from 'vue'
33
44
import { getRandomId } from '../../utils/random-utils'
55
6-
const props = withDefaults(defineProps<{
7-
id?: string
8-
min?: number
9-
max?: number
10-
modelValue?: number
11-
lowerValue?: number
12-
label: string
13-
hint?: string
14-
message?: string
15-
prefix?: string
16-
suffix?: string
17-
small?: boolean
18-
hideIndicators?: boolean
19-
step?: number
20-
disabled?: boolean
21-
}>(), {
6+
import type { DsfrRangeProps } from './DsfrRange.types'
7+
8+
const props = withDefaults(defineProps<DsfrRangeProps>(), {
229
id: () => getRandomId('range'),
2310
min: 0,
2411
max: 100,

src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export { default as DsfrRadioButton } from './DsfrRadioButton/DsfrRadioButton.vu
7373
export * from './DsfrRadioButton/DsfrRadioButton.types'
7474
export { default as DsfrRadioButtonSet } from './DsfrRadioButton/DsfrRadioButtonSet.vue'
7575
export { default as DsfrRange } from './DsfrRange/DsfrRange.vue'
76+
export * from './DsfrRange/DsfrRange.types'
7677
export { default as DsfrSearchBar } from './DsfrSearchBar/DsfrSearchBar.vue'
7778
export * from './DsfrSearchBar/DsfrSearchBar.types'
7879
export { default as DsfrSegmented } from './DsfrSegmented/DsfrSegmented.vue'

0 commit comments

Comments
 (0)