-
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Calendar/DatePicker): expose disabled state
- Loading branch information
Showing
25 changed files
with
265 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- This file was automatic generated. Do not edit it manually --> | ||
|
||
<PropsTable :data="[ | ||
{ | ||
'name': 'as', | ||
'description': '<p>The element or component this component should render as. Can be overwritten by <code>asChild</code>.</p>\n', | ||
'type': 'AsTag | Component', | ||
'required': false, | ||
'default': '\'div\'' | ||
}, | ||
{ | ||
'name': 'asChild', | ||
'description': '<p>Change the default rendered element for the one passed as a child, merging their props and behavior.</p>\n<p>Read our <a href=\'https://www.reka-ui.com/docs/guides/composition\'>Composition</a> guide for more details.</p>\n', | ||
'type': 'boolean', | ||
'required': false | ||
}, | ||
{ | ||
'name': 'loop', | ||
'description': '<p>When <code>true</code>, tabbing from last item will focus first tabbable\nand shift+tab from first item will focus last tababble.</p>\n', | ||
'type': 'boolean', | ||
'required': false, | ||
'default': 'false' | ||
}, | ||
{ | ||
'name': 'trapped', | ||
'description': '<p>When <code>true</code>, focus cannot escape the focus scope via keyboard,\npointer, or a programmatic focus.</p>\n', | ||
'type': 'boolean', | ||
'required': false, | ||
'default': 'false' | ||
} | ||
]" /> | ||
|
||
<EmitsTable :data="[ | ||
{ | ||
'name': 'mountAutoFocus', | ||
'description': '<p>Event handler called when auto-focusing on mount.\nCan be prevented.</p>\n', | ||
'type': '[event: Event]' | ||
}, | ||
{ | ||
'name': 'unmountAutoFocus', | ||
'description': '<p>Event handler called when auto-focusing on unmount.\nCan be prevented.</p>\n', | ||
'type': '[event: Event]' | ||
} | ||
]" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
<script lang="ts"> | ||
import type { CalendarCellTriggerSlot } from '@/Calendar/CalendarCellTrigger.vue' | ||
import { CalendarCellTrigger, type CalendarCellTriggerProps } from '..' | ||
export interface DatePickerCellTriggerProps extends CalendarCellTriggerProps {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const props = defineProps<DatePickerCellTriggerProps>() | ||
defineSlots<CalendarCellTriggerSlot> | ||
</script> | ||
|
||
<template> | ||
<CalendarCellTrigger v-bind="props"> | ||
<slot /> | ||
<CalendarCellTrigger | ||
v-slot="slotProps" | ||
v-bind="props" | ||
> | ||
<slot v-bind="slotProps" /> | ||
</CalendarCellTrigger> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
<script lang="ts"> | ||
import type { CalendarNextSlot } from '@/Calendar/CalendarNext.vue' | ||
import { CalendarNext, type CalendarNextProps } from '..' | ||
export interface DatePickerNextProps extends CalendarNextProps {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const props = defineProps<DatePickerNextProps>() | ||
defineSlots<CalendarNextSlot>() | ||
</script> | ||
|
||
<template> | ||
<CalendarNext v-bind="props"> | ||
<slot /> | ||
<CalendarNext | ||
v-slot="slotProps" | ||
v-bind="props" | ||
> | ||
<slot v-bind="slotProps" /> | ||
</CalendarNext> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
<script lang="ts"> | ||
import type { CalendarPrevSlot } from '@/Calendar/CalendarPrev.vue' | ||
import { CalendarPrev, type CalendarPrevProps } from '..' | ||
export interface DatePickerPrevProps extends CalendarPrevProps {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const props = defineProps<DatePickerPrevProps>() | ||
defineSlots<CalendarPrevSlot>() | ||
</script> | ||
|
||
<template> | ||
<CalendarPrev v-bind="props"> | ||
<slot /> | ||
<CalendarPrev | ||
v-slot="slotProps" | ||
v-bind="props" | ||
> | ||
<slot v-bind="slotProps" /> | ||
</CalendarPrev> | ||
</template> |
12 changes: 9 additions & 3 deletions
12
packages/core/src/DateRangePicker/DateRangePickerCellTrigger.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
<script lang="ts"> | ||
import { RangeCalendarCellTrigger, type RangeCalendarCellTriggerProps } from '..' | ||
import type { RangeCalendarCellTriggerProps, RangeCalendarCellTriggerSlot } from '@/RangeCalendar/RangeCalendarCellTrigger.vue' | ||
import { RangeCalendarCellTrigger } from '..' | ||
export interface DateRangePickerCellTriggerProps extends RangeCalendarCellTriggerProps {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const props = defineProps<DateRangePickerCellTriggerProps>() | ||
defineSlots<RangeCalendarCellTriggerSlot>() | ||
</script> | ||
|
||
<template> | ||
<RangeCalendarCellTrigger v-bind="props"> | ||
<slot /> | ||
<RangeCalendarCellTrigger | ||
v-slot="slotProps" | ||
v-bind="props" | ||
> | ||
<slot v-bind="slotProps" /> | ||
</RangeCalendarCellTrigger> | ||
</template> |
Oops, something went wrong.