ui-ingredients 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -3
- package/dist/accordion/create-accordion.svelte.js +4 -4
- package/dist/accordion/item-content.svelte +2 -3
- package/dist/accordion/item-indicator.svelte +2 -3
- package/dist/accordion/item-trigger.svelte +2 -3
- package/dist/accordion/item.svelte +3 -4
- package/dist/accordion/root.svelte +5 -5
- package/dist/avatar/create-avatar.svelte.js +4 -4
- package/dist/avatar/fallback.svelte +2 -2
- package/dist/avatar/image.svelte +2 -2
- package/dist/avatar/root.svelte +5 -5
- package/dist/carousel/create-carousel.svelte.js +4 -4
- package/dist/carousel/indicator-group.svelte +2 -2
- package/dist/carousel/indicator.svelte +2 -2
- package/dist/carousel/item-group.svelte +2 -2
- package/dist/carousel/item.svelte +3 -3
- package/dist/carousel/next-trigger.svelte +2 -2
- package/dist/carousel/prev-trigger.svelte +2 -2
- package/dist/carousel/root.svelte +5 -5
- package/dist/carousel/viewport.svelte +2 -2
- package/dist/checkbox/control.svelte +2 -2
- package/dist/checkbox/create-checkbox.svelte.js +4 -4
- package/dist/checkbox/hidden-input.svelte +2 -2
- package/dist/checkbox/indicator.svelte +2 -2
- package/dist/checkbox/label.svelte +2 -2
- package/dist/checkbox/root.svelte +5 -5
- package/dist/clipboard/control.svelte +2 -2
- package/dist/clipboard/create-clipboard.svelte.js +2 -2
- package/dist/clipboard/indicator.svelte +2 -2
- package/dist/clipboard/input.svelte +2 -2
- package/dist/clipboard/label.svelte +2 -2
- package/dist/clipboard/root.svelte +5 -5
- package/dist/clipboard/trigger.svelte +2 -2
- package/dist/collapsible/content.svelte +2 -2
- package/dist/collapsible/create-collapsible.svelte.js +4 -4
- package/dist/collapsible/root.svelte +5 -5
- package/dist/collapsible/trigger.svelte +3 -3
- package/dist/combobox/clear-trigger.svelte +2 -2
- package/dist/combobox/content.svelte +2 -2
- package/dist/combobox/control.svelte +2 -2
- package/dist/combobox/create-combobox.svelte.js +4 -4
- package/dist/combobox/input.svelte +2 -2
- package/dist/combobox/item-group-label.svelte +2 -3
- package/dist/combobox/item-group.svelte +2 -2
- package/dist/combobox/item-indicator.svelte +2 -3
- package/dist/combobox/item-text.svelte +3 -4
- package/dist/combobox/item.svelte +3 -4
- package/dist/combobox/label.svelte +2 -2
- package/dist/combobox/list.svelte +2 -2
- package/dist/combobox/positioner.svelte +2 -2
- package/dist/combobox/root.svelte +5 -5
- package/dist/combobox/trigger.svelte +2 -2
- package/dist/date-picker/anatomy.js +3 -0
- package/dist/date-picker/clear-trigger.svelte +19 -2
- package/dist/date-picker/clear-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/content.svelte +19 -2
- package/dist/date-picker/content.svelte.d.ts +3 -3
- package/dist/date-picker/context.svelte.d.ts +8 -8
- package/dist/date-picker/context.svelte.js +6 -14
- package/dist/date-picker/control.svelte +19 -2
- package/dist/date-picker/control.svelte.d.ts +3 -3
- package/dist/date-picker/create-date-picker.svelte.d.ts +14 -0
- package/dist/date-picker/create-date-picker.svelte.js +24 -0
- package/dist/date-picker/date-picker.d.ts +3 -3
- package/dist/date-picker/date-picker.js +3 -3
- package/dist/date-picker/day-table-cell-trigger.svelte +20 -2
- package/dist/date-picker/day-table-cell-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/day-table-cell.svelte +39 -2
- package/dist/date-picker/day-table-cell.svelte.d.ts +3 -3
- package/dist/date-picker/index.d.ts +29 -0
- package/dist/date-picker/index.js +2 -0
- package/dist/date-picker/input.svelte +18 -2
- package/dist/date-picker/input.svelte.d.ts +3 -3
- package/dist/date-picker/label.svelte +20 -2
- package/dist/date-picker/label.svelte.d.ts +3 -3
- package/dist/date-picker/month-select.svelte +40 -2
- package/dist/date-picker/month-select.svelte.d.ts +3 -3
- package/dist/date-picker/month-table-cell-trigger.svelte +20 -2
- package/dist/date-picker/month-table-cell-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/month-table-cell.svelte +39 -2
- package/dist/date-picker/month-table-cell.svelte.d.ts +3 -3
- package/dist/date-picker/next-trigger.svelte +20 -2
- package/dist/date-picker/next-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/positioner.svelte +19 -2
- package/dist/date-picker/positioner.svelte.d.ts +3 -3
- package/dist/date-picker/preset-trigger.svelte +21 -2
- package/dist/date-picker/preset-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/prev-trigger.svelte +20 -2
- package/dist/date-picker/prev-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/range-text.svelte +23 -2
- package/dist/date-picker/range-text.svelte.d.ts +3 -3
- package/dist/date-picker/root.svelte +87 -2
- package/dist/date-picker/root.svelte.d.ts +3 -3
- package/dist/date-picker/table-body.svelte +20 -2
- package/dist/date-picker/table-body.svelte.d.ts +3 -3
- package/dist/date-picker/table-head.svelte +20 -2
- package/dist/date-picker/table-head.svelte.d.ts +3 -3
- package/dist/date-picker/table-header.svelte +20 -2
- package/dist/date-picker/table-header.svelte.d.ts +3 -3
- package/dist/date-picker/table-row.svelte +20 -2
- package/dist/date-picker/table-row.svelte.d.ts +3 -3
- package/dist/date-picker/table.svelte +29 -2
- package/dist/date-picker/table.svelte.d.ts +3 -3
- package/dist/date-picker/trigger.svelte +19 -2
- package/dist/date-picker/trigger.svelte.d.ts +3 -3
- package/dist/date-picker/view-control.svelte +20 -2
- package/dist/date-picker/view-control.svelte.d.ts +3 -3
- package/dist/date-picker/view.svelte +24 -0
- package/dist/date-picker/{view-trigger.svelte.d.ts → view.svelte.d.ts} +5 -5
- package/dist/date-picker/year-select.svelte +40 -2
- package/dist/date-picker/year-select.svelte.d.ts +3 -3
- package/dist/date-picker/year-table-cell-trigger.svelte +20 -2
- package/dist/date-picker/year-table-cell-trigger.svelte.d.ts +3 -3
- package/dist/date-picker/year-table-cell.svelte +39 -2
- package/dist/date-picker/year-table-cell.svelte.d.ts +3 -3
- package/dist/dialog/backdrop.svelte +2 -2
- package/dist/dialog/close-trigger.svelte +2 -2
- package/dist/dialog/content.svelte +2 -2
- package/dist/dialog/create-dialog.svelte.js +4 -4
- package/dist/dialog/description.svelte +2 -2
- package/dist/dialog/positioner.svelte +2 -2
- package/dist/dialog/root.svelte +4 -4
- package/dist/dialog/title.svelte +2 -2
- package/dist/dialog/trigger.svelte +2 -2
- package/dist/editable/area.svelte +2 -2
- package/dist/editable/cancel-trigger.svelte +2 -2
- package/dist/editable/control.svelte +2 -2
- package/dist/editable/create-editable.svelte.js +4 -4
- package/dist/editable/edit-trigger.svelte +2 -2
- package/dist/editable/input.svelte +2 -2
- package/dist/editable/label.svelte +2 -2
- package/dist/editable/preview.svelte +3 -3
- package/dist/editable/root.svelte +4 -4
- package/dist/editable/submit-trigger.svelte +2 -2
- package/dist/environment-provider/root.svelte +2 -2
- package/dist/file-upload/context.svelte.d.ts +5 -8
- package/dist/file-upload/context.svelte.js +3 -14
- package/dist/file-upload/create-file-upload.svelte.d.ts +7 -0
- package/dist/file-upload/create-file-upload.svelte.js +18 -0
- package/dist/file-upload/dropzone.svelte +19 -2
- package/dist/file-upload/dropzone.svelte.d.ts +3 -3
- package/dist/file-upload/hidden-input.svelte +17 -2
- package/dist/file-upload/hidden-input.svelte.d.ts +3 -3
- package/dist/file-upload/index.d.ts +13 -0
- package/dist/file-upload/index.js +1 -0
- package/dist/file-upload/item-delete-trigger.svelte +20 -2
- package/dist/file-upload/item-delete-trigger.svelte.d.ts +3 -3
- package/dist/file-upload/item-group.svelte +19 -2
- package/dist/file-upload/item-group.svelte.d.ts +3 -3
- package/dist/file-upload/item-name.svelte +24 -2
- package/dist/file-upload/item-name.svelte.d.ts +3 -3
- package/dist/file-upload/item-preview-image.svelte +26 -2
- package/dist/file-upload/item-preview-image.svelte.d.ts +3 -3
- package/dist/file-upload/item-preview.svelte +20 -2
- package/dist/file-upload/item-preview.svelte.d.ts +3 -3
- package/dist/file-upload/item-size-text.svelte +24 -2
- package/dist/file-upload/item-size-text.svelte.d.ts +3 -3
- package/dist/file-upload/item.svelte +25 -2
- package/dist/file-upload/item.svelte.d.ts +3 -3
- package/dist/file-upload/label.svelte +19 -2
- package/dist/file-upload/label.svelte.d.ts +3 -3
- package/dist/file-upload/root.svelte +67 -2
- package/dist/file-upload/root.svelte.d.ts +3 -3
- package/dist/file-upload/trigger.svelte +19 -2
- package/dist/file-upload/trigger.svelte.d.ts +3 -3
- package/dist/hover-card/arrow-tip.svelte +2 -2
- package/dist/hover-card/arrow.svelte +2 -2
- package/dist/hover-card/content.svelte +2 -2
- package/dist/hover-card/create-hover-card.svelte.js +4 -4
- package/dist/hover-card/positioner.svelte +2 -2
- package/dist/hover-card/root.svelte +4 -4
- package/dist/hover-card/trigger.svelte +2 -2
- package/dist/locale-provider/root.svelte +2 -2
- package/dist/menu/arrow-tip.svelte +2 -2
- package/dist/menu/arrow.svelte +2 -2
- package/dist/menu/context-trigger.svelte +2 -2
- package/dist/menu/create-menu.svelte.js +4 -4
- package/dist/menu/indicator.svelte +2 -2
- package/dist/menu/item-group-label.svelte +2 -3
- package/dist/menu/item-group.svelte +2 -2
- package/dist/menu/item.svelte +3 -4
- package/dist/menu/option-item-indicator.svelte +2 -3
- package/dist/menu/option-item-text.svelte +2 -3
- package/dist/menu/option-item.svelte +3 -4
- package/dist/menu/positioner.svelte +2 -2
- package/dist/menu/root.svelte +4 -4
- package/dist/menu/separator.svelte +2 -2
- package/dist/menu/trigger-item.svelte +2 -2
- package/dist/menu/trigger.svelte +2 -2
- package/dist/number-input/control.svelte +2 -2
- package/dist/number-input/create-number-input.svelte.d.ts +1 -1
- package/dist/number-input/create-number-input.svelte.js +5 -5
- package/dist/number-input/decrement-trigger.svelte +2 -2
- package/dist/number-input/increment-trigger.svelte +2 -2
- package/dist/number-input/input.svelte +2 -2
- package/dist/number-input/label.svelte +2 -2
- package/dist/number-input/root.svelte +7 -5
- package/dist/number-input/scrubber.svelte +2 -2
- package/dist/pagination/create-pagination.svelte.js +4 -4
- package/dist/pagination/ellipsis.svelte +2 -2
- package/dist/pagination/item.svelte +2 -2
- package/dist/pagination/next-trigger.svelte +2 -2
- package/dist/pagination/prev-trigger.svelte +2 -2
- package/dist/pagination/root.svelte +5 -5
- package/dist/pin-input/clear-trigger.svelte +2 -2
- package/dist/pin-input/create-pin-input.svelte.js +4 -4
- package/dist/pin-input/hidden-input.svelte +2 -2
- package/dist/pin-input/input.svelte +2 -2
- package/dist/pin-input/label.svelte +2 -2
- package/dist/pin-input/root.svelte +5 -5
- package/dist/popover/arrow-tip.svelte +2 -2
- package/dist/popover/arrow.svelte +2 -2
- package/dist/popover/close-trigger.svelte +2 -2
- package/dist/popover/content.svelte +2 -2
- package/dist/popover/create-popover.svelte.js +4 -4
- package/dist/popover/description.svelte +2 -2
- package/dist/popover/positioner.svelte +2 -2
- package/dist/popover/root.svelte +4 -4
- package/dist/popover/title.svelte +2 -2
- package/dist/popover/trigger.svelte +2 -2
- package/dist/portal/root.svelte +2 -4
- package/dist/presence/create-presence.svelte.d.ts +10 -0
- package/dist/presence/create-presence.svelte.js +19 -0
- package/dist/presence/root.svelte +11 -20
- package/dist/progress/circle-range.svelte +2 -2
- package/dist/progress/circle-track.svelte +2 -2
- package/dist/progress/circle.svelte +2 -2
- package/dist/progress/create-progress.svelte.js +4 -4
- package/dist/progress/label.svelte +2 -2
- package/dist/progress/range.svelte +2 -2
- package/dist/progress/root.svelte +5 -5
- package/dist/progress/track.svelte +2 -2
- package/dist/progress/value-text.svelte +3 -3
- package/dist/qr-code/create-qr-code.svelte.js +4 -4
- package/dist/qr-code/frame.svelte +2 -2
- package/dist/qr-code/overlay.svelte +2 -2
- package/dist/qr-code/pattern.svelte +2 -2
- package/dist/qr-code/root.svelte +5 -5
- package/dist/radio-group/create-radio-group.svelte.js +4 -4
- package/dist/radio-group/indicator.svelte +2 -2
- package/dist/radio-group/item-control.svelte +2 -3
- package/dist/radio-group/item-hidden-input.svelte +2 -3
- package/dist/radio-group/item-text.svelte +2 -3
- package/dist/radio-group/item.svelte +3 -4
- package/dist/radio-group/label.svelte +2 -2
- package/dist/radio-group/root.svelte +5 -5
- package/dist/rating-group/control.svelte +2 -2
- package/dist/rating-group/create-rating-group.svelte.js +4 -4
- package/dist/rating-group/hidden-input.svelte +2 -2
- package/dist/rating-group/item.svelte +3 -4
- package/dist/rating-group/label.svelte +2 -2
- package/dist/rating-group/root.svelte +5 -5
- package/dist/segment-group/create-segment-group.svelte.js +4 -4
- package/dist/segment-group/indicator.svelte +2 -2
- package/dist/segment-group/item-control.svelte +2 -3
- package/dist/segment-group/item-hidden-input.svelte +2 -3
- package/dist/segment-group/item-text.svelte +2 -3
- package/dist/segment-group/item.svelte +3 -4
- package/dist/segment-group/label.svelte +2 -2
- package/dist/segment-group/root.svelte +5 -5
- package/dist/select/clear-trigger.svelte +2 -2
- package/dist/select/content.svelte +2 -2
- package/dist/select/control.svelte +2 -2
- package/dist/select/create-select.svelte.js +4 -4
- package/dist/select/hidden-select.svelte +2 -2
- package/dist/select/indicator.svelte +2 -2
- package/dist/select/item-group-label.svelte +2 -3
- package/dist/select/item-group.svelte +2 -2
- package/dist/select/item-indicator.svelte +2 -3
- package/dist/select/item-text.svelte +3 -4
- package/dist/select/item.svelte +3 -4
- package/dist/select/label.svelte +2 -2
- package/dist/select/list.svelte +2 -2
- package/dist/select/positioner.svelte +2 -2
- package/dist/select/root.svelte +5 -5
- package/dist/select/trigger.svelte +2 -2
- package/dist/select/value-text.svelte +4 -4
- package/dist/slider/control.svelte +2 -2
- package/dist/slider/create-slider.svelte.js +4 -4
- package/dist/slider/hidden-input.svelte +2 -3
- package/dist/slider/label.svelte +2 -2
- package/dist/slider/marker-group.svelte +2 -2
- package/dist/slider/marker.svelte +2 -2
- package/dist/slider/range.svelte +2 -2
- package/dist/slider/root.svelte +5 -5
- package/dist/slider/thumb.svelte +2 -3
- package/dist/slider/track.svelte +2 -2
- package/dist/slider/value-text.svelte +3 -3
- package/dist/steps/content.svelte +2 -2
- package/dist/steps/create-steps.svelte.js +4 -4
- package/dist/steps/indicator.svelte +2 -3
- package/dist/steps/item.svelte +3 -4
- package/dist/steps/list.svelte +2 -2
- package/dist/steps/next-trigger.svelte +2 -2
- package/dist/steps/prev-trigger.svelte +2 -2
- package/dist/steps/progress.svelte +2 -2
- package/dist/steps/root.svelte +5 -5
- package/dist/steps/separator.svelte +2 -3
- package/dist/steps/trigger.svelte +2 -3
- package/dist/switch/control.svelte +2 -2
- package/dist/switch/create-switch.svelte.js +4 -4
- package/dist/switch/hidden-input.svelte +2 -2
- package/dist/switch/label.svelte +2 -2
- package/dist/switch/root.svelte +5 -5
- package/dist/switch/thumb.svelte +2 -2
- package/dist/tabs/content.svelte +2 -2
- package/dist/tabs/create-tabs.svelte.js +4 -4
- package/dist/tabs/list.svelte +2 -2
- package/dist/tabs/root.svelte +5 -5
- package/dist/tabs/trigger.svelte +2 -2
- package/dist/tags-input/clear-trigger.svelte +2 -2
- package/dist/tags-input/control.svelte +2 -2
- package/dist/tags-input/create-tags-input.svelte.js +4 -4
- package/dist/tags-input/hidden-input.svelte +2 -2
- package/dist/tags-input/input.svelte +2 -2
- package/dist/tags-input/item-delete-trigger.svelte +2 -3
- package/dist/tags-input/item-input.svelte +2 -3
- package/dist/tags-input/item-preview.svelte +2 -3
- package/dist/tags-input/item-text.svelte +2 -3
- package/dist/tags-input/item.svelte +3 -4
- package/dist/tags-input/label.svelte +2 -2
- package/dist/tags-input/root.svelte +5 -5
- package/dist/timer/action-trigger.svelte +2 -2
- package/dist/timer/create-timer.svelte.js +2 -2
- package/dist/timer/item-label.svelte +2 -3
- package/dist/timer/item-value.svelte +3 -4
- package/dist/timer/item.svelte +2 -3
- package/dist/timer/root.svelte +5 -5
- package/dist/timer/separator.svelte +2 -2
- package/dist/toast/create-toaster.svelte.js +4 -4
- package/dist/toggle-group/create-toggle-group.svelte.js +4 -4
- package/dist/toggle-group/item.svelte +3 -4
- package/dist/toggle-group/root.svelte +4 -4
- package/dist/tooltip/arrow-tip.svelte +2 -2
- package/dist/tooltip/arrow.svelte +2 -2
- package/dist/tooltip/content.svelte +2 -2
- package/dist/tooltip/create-tooltip.svelte.js +4 -4
- package/dist/tooltip/positioner.svelte +2 -2
- package/dist/tooltip/root.svelte +4 -4
- package/dist/tooltip/trigger.svelte +2 -2
- package/package.json +3 -2
- package/dist/date-picker/view-trigger.svelte +0 -3
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxClearTriggerProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getClearTriggerProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<button type="button" {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxContentProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getContentProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxControlProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getControlProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -10,14 +10,14 @@ export function createCombobox(props) {
|
|
10
10
|
itemToString: (item) => (props.itemToString ? props.itemToString(item) : String(item)),
|
11
11
|
isItemDisabled: (item) => (props.isItemDisabled ? props.isItemDisabled(item) : false),
|
12
12
|
}));
|
13
|
-
const
|
14
|
-
const
|
13
|
+
const locale = getLocaleContext();
|
14
|
+
const environment = getEnvironmentContext();
|
15
15
|
const [state, send] = useMachine(combobox.machine({
|
16
16
|
...props,
|
17
17
|
id: props.id ?? createUniqueId(),
|
18
|
-
dir:
|
18
|
+
dir: locale?.dir,
|
19
19
|
open: props.defaultOpen,
|
20
|
-
getRootNode:
|
20
|
+
getRootNode: environment?.getRootNode,
|
21
21
|
'open.controlled': props.open != null,
|
22
22
|
collection,
|
23
23
|
}));
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {...props}: ComboboxInputProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getInputProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<input {...attrs} />
|
@@ -10,14 +10,13 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxItemGroupLabelProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let combobox = comboboxContext.get();
|
15
14
|
let itemGroupProps = comboboxItemGroupPropsContext.get();
|
16
15
|
|
17
16
|
let attrs = $derived(
|
18
17
|
mergeProps(
|
19
18
|
props,
|
20
|
-
|
19
|
+
combobox.getItemGroupLabelProps({
|
21
20
|
htmlFor: itemGroupProps.id,
|
22
21
|
}),
|
23
22
|
),
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
let {id, children, ...props}: ComboboxItemGroupProps = $props();
|
15
15
|
|
16
|
-
let
|
16
|
+
let combobox = comboboxContext.get();
|
17
17
|
|
18
18
|
let uid = createUniqueId();
|
19
19
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
id: id ?? uid,
|
22
22
|
});
|
23
23
|
|
24
|
-
let attrs = $derived(mergeProps(props,
|
24
|
+
let attrs = $derived(mergeProps(props, combobox.getItemGroupProps(comboboxItemGroupProps)));
|
25
25
|
|
26
26
|
comboboxItemGroupPropsContext.set(() => comboboxItemGroupProps);
|
27
27
|
</script>
|
@@ -10,11 +10,10 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxItemIndicatorProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let combobox = comboboxContext.get();
|
15
14
|
let itemProps = comboboxItemPropsContext.get();
|
16
15
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
16
|
+
let attrs = $derived(mergeProps(props, combobox.getItemIndicatorProps(itemProps)));
|
18
17
|
</script>
|
19
18
|
|
20
19
|
<span {...attrs}>
|
@@ -10,17 +10,16 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxItemTextProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let combobox = comboboxContext.get();
|
15
14
|
let itemProps = comboboxItemPropsContext.get();
|
16
15
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
16
|
+
let attrs = $derived(mergeProps(props, combobox.getItemTextProps(itemProps)));
|
18
17
|
</script>
|
19
18
|
|
20
19
|
<span {...attrs}>
|
21
20
|
{#if children}
|
22
21
|
{@render children?.()}
|
23
22
|
{:else}
|
24
|
-
{
|
23
|
+
{combobox.collection.stringifyItem(itemProps.item)}
|
25
24
|
{/if}
|
26
25
|
</span>
|
@@ -14,15 +14,14 @@
|
|
14
14
|
|
15
15
|
let {children, item, persistFocus, ...props}: ComboboxItemProps = $props();
|
16
16
|
|
17
|
-
let
|
18
|
-
|
17
|
+
let combobox = comboboxContext.get();
|
19
18
|
let itemProps = $derived({
|
20
19
|
item,
|
21
20
|
persistFocus,
|
22
21
|
});
|
23
22
|
|
24
|
-
let state = $derived(
|
25
|
-
let attrs = $derived(mergeProps(props,
|
23
|
+
let state = $derived(combobox.getItemState(itemProps));
|
24
|
+
let attrs = $derived(mergeProps(props, combobox.getItemProps(itemProps)));
|
26
25
|
|
27
26
|
comboboxItemPropsContext.set(() => itemProps);
|
28
27
|
</script>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxLabelProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getLabelProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<label {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxListProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getListProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxPositionerProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getPositionerProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
export interface ComboboxProps<T>
|
7
7
|
extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateComboboxProps<T>> {
|
8
|
-
children?: Snippet<[
|
8
|
+
children?: Snippet<[combobox: CreateComboboxReturn]>;
|
9
9
|
}
|
10
10
|
</script>
|
11
11
|
|
@@ -60,7 +60,7 @@
|
|
60
60
|
...props
|
61
61
|
}: ComboboxProps<T> = $props();
|
62
62
|
|
63
|
-
let
|
63
|
+
let combobox = createCombobox({
|
64
64
|
id,
|
65
65
|
ids,
|
66
66
|
name,
|
@@ -104,11 +104,11 @@
|
|
104
104
|
scrollToIndexFn,
|
105
105
|
});
|
106
106
|
|
107
|
-
let attrs = $derived(mergeProps(props,
|
107
|
+
let attrs = $derived(mergeProps(props, combobox.getRootProps()));
|
108
108
|
|
109
|
-
comboboxContext.set(
|
109
|
+
comboboxContext.set(combobox);
|
110
110
|
</script>
|
111
111
|
|
112
112
|
<div {...attrs}>
|
113
|
-
{@render children?.(
|
113
|
+
{@render children?.(combobox)}
|
114
114
|
</div>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: ComboboxTriggerProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let combobox = comboboxContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, combobox.getTriggerProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<button type="button" {...attrs}>
|
@@ -1,3 +1,20 @@
|
|
1
|
-
<script lang="ts" module
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlProps} from '../types.js';
|
2
3
|
|
3
|
-
<
|
4
|
+
export interface DatePickerClearTriggerProps extends HtmlProps<'button'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {datePickerContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: DatePickerClearTriggerProps = $props();
|
12
|
+
|
13
|
+
let datePicker = datePickerContext.get();
|
14
|
+
|
15
|
+
let attrs = $derived(mergeProps(props, datePicker.getClearTriggerProps()));
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<button type="button" {...attrs}>
|
19
|
+
{@render children?.()}
|
20
|
+
</button>
|
@@ -2,7 +2,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
2
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
3
3
|
$$bindings?: Bindings;
|
4
4
|
} & Exports;
|
5
|
-
(internal: unknown, props: {
|
5
|
+
(internal: unknown, props: Props & {
|
6
6
|
$$events?: Events;
|
7
7
|
$$slots?: Slots;
|
8
8
|
}): Exports & {
|
@@ -11,8 +11,8 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
11
11
|
};
|
12
12
|
z_$$bindings?: Bindings;
|
13
13
|
}
|
14
|
-
declare const ClearTrigger: $$__sveltets_2_IsomorphicComponent<
|
14
|
+
declare const ClearTrigger: $$__sveltets_2_IsomorphicComponent<DatePickerClearTriggerProps, {
|
15
15
|
[evt: string]: CustomEvent<any>;
|
16
|
-
}, {}, {},
|
16
|
+
}, {}, {}, "">;
|
17
17
|
type ClearTrigger = InstanceType<typeof ClearTrigger>;
|
18
18
|
export default ClearTrigger;
|
@@ -1,3 +1,20 @@
|
|
1
|
-
<script lang="ts" module
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlProps} from '../types.js';
|
2
3
|
|
3
|
-
<
|
4
|
+
export interface DatePickerContentProps extends HtmlProps<'div'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {datePickerContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: DatePickerContentProps = $props();
|
12
|
+
|
13
|
+
let datePicker = datePickerContext.get();
|
14
|
+
|
15
|
+
let attrs = $derived(mergeProps(props, datePicker.getContentProps()));
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<div {...attrs}>
|
19
|
+
{@render children?.()}
|
20
|
+
</div>
|
@@ -2,7 +2,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
2
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
3
3
|
$$bindings?: Bindings;
|
4
4
|
} & Exports;
|
5
|
-
(internal: unknown, props: {
|
5
|
+
(internal: unknown, props: Props & {
|
6
6
|
$$events?: Events;
|
7
7
|
$$slots?: Slots;
|
8
8
|
}): Exports & {
|
@@ -11,8 +11,8 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
11
11
|
};
|
12
12
|
z_$$bindings?: Bindings;
|
13
13
|
}
|
14
|
-
declare const Content: $$__sveltets_2_IsomorphicComponent<
|
14
|
+
declare const Content: $$__sveltets_2_IsomorphicComponent<DatePickerContentProps, {
|
15
15
|
[evt: string]: CustomEvent<any>;
|
16
|
-
}, {}, {},
|
16
|
+
}, {}, {}, "">;
|
17
17
|
type Content = InstanceType<typeof Content>;
|
18
18
|
export default Content;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
}
|
4
|
-
export
|
5
|
-
|
6
|
-
export declare
|
7
|
-
export declare
|
8
|
-
export declare
|
1
|
+
import { Context } from '../utils.svelte.js';
|
2
|
+
import type { DayTableCellProps, TableCellProps, TableProps, ViewProps } from '@zag-js/date-picker';
|
3
|
+
import type { CreateDatePickerReturn } from './create-date-picker.svelte.js';
|
4
|
+
export declare const datePickerContext: Context<CreateDatePickerReturn>;
|
5
|
+
export declare const datePickerViewPropsContext: Context<ViewProps>;
|
6
|
+
export declare const datePickerTablePropsContext: Context<TableProps>;
|
7
|
+
export declare const datePickerTableCellPropsContext: Context<TableCellProps>;
|
8
|
+
export declare const datePickerDayTableCellPropsContext: Context<DayTableCellProps>;
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
return api;
|
8
|
-
}
|
9
|
-
export function setDatePickerContext(value) {
|
10
|
-
setContext('DatePicker', value);
|
11
|
-
}
|
12
|
-
export function useDatePickerContext() {
|
13
|
-
return getContext('DatePicker');
|
14
|
-
}
|
1
|
+
import { Context } from '../utils.svelte.js';
|
2
|
+
export const datePickerContext = new Context('DatePicker');
|
3
|
+
export const datePickerViewPropsContext = new Context('DatePickerView');
|
4
|
+
export const datePickerTablePropsContext = new Context('DatePickerTable');
|
5
|
+
export const datePickerTableCellPropsContext = new Context('DatePickerTableCell');
|
6
|
+
export const datePickerDayTableCellPropsContext = new Context('DatePickerDayTableCell');
|
@@ -1,3 +1,20 @@
|
|
1
|
-
<script lang="ts" module
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlProps} from '../types.js';
|
2
3
|
|
3
|
-
<
|
4
|
+
export interface DatePickerControlProps extends HtmlProps<'div'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {datePickerContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: DatePickerControlProps = $props();
|
12
|
+
|
13
|
+
let datePicker = datePickerContext.get();
|
14
|
+
|
15
|
+
let attrs = $derived(mergeProps(props, datePicker.getControlProps()));
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<div {...attrs}>
|
19
|
+
{@render children?.()}
|
20
|
+
</div>
|
@@ -2,7 +2,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
2
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
3
3
|
$$bindings?: Bindings;
|
4
4
|
} & Exports;
|
5
|
-
(internal: unknown, props: {
|
5
|
+
(internal: unknown, props: Props & {
|
6
6
|
$$events?: Events;
|
7
7
|
$$slots?: Slots;
|
8
8
|
}): Exports & {
|
@@ -11,8 +11,8 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
11
11
|
};
|
12
12
|
z_$$bindings?: Bindings;
|
13
13
|
}
|
14
|
-
declare const Control: $$__sveltets_2_IsomorphicComponent<
|
14
|
+
declare const Control: $$__sveltets_2_IsomorphicComponent<DatePickerControlProps, {
|
15
15
|
[evt: string]: CustomEvent<any>;
|
16
|
-
}, {}, {},
|
16
|
+
}, {}, {}, "">;
|
17
17
|
type Control = InstanceType<typeof Control>;
|
18
18
|
export default Control;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as datePicker from '@zag-js/date-picker';
|
2
|
+
type Omitted = 'id' | 'dir' | 'min' | 'max' | 'value' | 'focusedValue' | 'getRootNode' | 'open.controlled';
|
3
|
+
export interface CreateDatePickerProps extends Omit<datePicker.Context, Omitted> {
|
4
|
+
id?: string | null;
|
5
|
+
min?: string | Date;
|
6
|
+
max?: string | Date;
|
7
|
+
value?: string[] | Date[];
|
8
|
+
focusedValue?: string | Date;
|
9
|
+
defaultOpen?: boolean;
|
10
|
+
}
|
11
|
+
export interface CreateDatePickerReturn extends datePicker.Api {
|
12
|
+
}
|
13
|
+
export declare function createDatePicker(props: CreateDatePickerProps): CreateDatePickerReturn;
|
14
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { getEnvironmentContext } from '../environment-provider/context.svelte.js';
|
2
|
+
import { getLocaleContext } from '../locale-provider/context.svelte.js';
|
3
|
+
import { createUniqueId } from '../utils.svelte.js';
|
4
|
+
import * as datePicker from '@zag-js/date-picker';
|
5
|
+
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
6
|
+
export function createDatePicker(props) {
|
7
|
+
const locale = getLocaleContext();
|
8
|
+
const environment = getEnvironmentContext();
|
9
|
+
const [state, send] = useMachine(datePicker.machine({
|
10
|
+
...props,
|
11
|
+
id: props.id ?? createUniqueId(),
|
12
|
+
dir: locale?.dir,
|
13
|
+
min: props.min ? datePicker.parse(props.min) : undefined,
|
14
|
+
max: props.max ? datePicker.parse(props.max) : undefined,
|
15
|
+
value: props.value ? datePicker.parse(props.value) : undefined,
|
16
|
+
focusedValue: props.focusedValue ? datePicker.parse(props.focusedValue) : undefined,
|
17
|
+
open: props.defaultOpen,
|
18
|
+
'open.controlled': props.open != null,
|
19
|
+
locale: props.locale ?? locale?.locale,
|
20
|
+
getRootNode: environment?.getRootNode,
|
21
|
+
}));
|
22
|
+
const api = $derived(reflect(() => datePicker.connect(state, send, normalizeProps)));
|
23
|
+
return api;
|
24
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export { default as ClearTrigger } from './clear-trigger.svelte';
|
2
2
|
export { default as Content } from './content.svelte';
|
3
3
|
export { default as Control } from './control.svelte';
|
4
|
-
export { default as
|
5
|
-
export { default as
|
4
|
+
export { default as DayTableCellTrigger } from './day-table-cell-trigger.svelte';
|
5
|
+
export { default as DayTableCell } from './day-table-cell.svelte';
|
6
6
|
export { default as Input } from './input.svelte';
|
7
7
|
export { default as Label } from './label.svelte';
|
8
8
|
export { default as MonthSelect } from './month-select.svelte';
|
@@ -21,7 +21,7 @@ export { default as TableRow } from './table-row.svelte';
|
|
21
21
|
export { default as Table } from './table.svelte';
|
22
22
|
export { default as Trigger } from './trigger.svelte';
|
23
23
|
export { default as ViewControl } from './view-control.svelte';
|
24
|
-
export { default as
|
24
|
+
export { default as View } from './view.svelte';
|
25
25
|
export { default as YearSelect } from './year-select.svelte';
|
26
26
|
export { default as YearTableCellTrigger } from './year-table-cell-trigger.svelte';
|
27
27
|
export { default as YearTableCell } from './year-table-cell.svelte';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export { default as ClearTrigger } from './clear-trigger.svelte';
|
2
2
|
export { default as Content } from './content.svelte';
|
3
3
|
export { default as Control } from './control.svelte';
|
4
|
-
export { default as
|
5
|
-
export { default as
|
4
|
+
export { default as DayTableCellTrigger } from './day-table-cell-trigger.svelte';
|
5
|
+
export { default as DayTableCell } from './day-table-cell.svelte';
|
6
6
|
export { default as Input } from './input.svelte';
|
7
7
|
export { default as Label } from './label.svelte';
|
8
8
|
export { default as MonthSelect } from './month-select.svelte';
|
@@ -21,7 +21,7 @@ export { default as TableRow } from './table-row.svelte';
|
|
21
21
|
export { default as Table } from './table.svelte';
|
22
22
|
export { default as Trigger } from './trigger.svelte';
|
23
23
|
export { default as ViewControl } from './view-control.svelte';
|
24
|
-
export { default as
|
24
|
+
export { default as View } from './view.svelte';
|
25
25
|
export { default as YearSelect } from './year-select.svelte';
|
26
26
|
export { default as YearTableCellTrigger } from './year-table-cell-trigger.svelte';
|
27
27
|
export { default as YearTableCell } from './year-table-cell.svelte';
|
@@ -1,3 +1,21 @@
|
|
1
|
-
<script lang="ts" module
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlProps} from '../types.js';
|
2
3
|
|
3
|
-
<
|
4
|
+
export interface DatePickerDayTableCellTriggerProps extends HtmlProps<'button'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {datePickerContext, datePickerDayTableCellPropsContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: DatePickerDayTableCellTriggerProps = $props();
|
12
|
+
|
13
|
+
let datePicker = datePickerContext.get();
|
14
|
+
let tableCellProps = datePickerDayTableCellPropsContext.get();
|
15
|
+
|
16
|
+
let attrs = $derived(mergeProps(props, datePicker.getDayTableCellTriggerProps(tableCellProps)));
|
17
|
+
</script>
|
18
|
+
|
19
|
+
<button type="button" {...attrs}>
|
20
|
+
{@render children?.()}
|
21
|
+
</button>
|
@@ -2,7 +2,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
2
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
3
3
|
$$bindings?: Bindings;
|
4
4
|
} & Exports;
|
5
|
-
(internal: unknown, props: {
|
5
|
+
(internal: unknown, props: Props & {
|
6
6
|
$$events?: Events;
|
7
7
|
$$slots?: Slots;
|
8
8
|
}): Exports & {
|
@@ -11,8 +11,8 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
11
11
|
};
|
12
12
|
z_$$bindings?: Bindings;
|
13
13
|
}
|
14
|
-
declare const DayTableCellTrigger: $$__sveltets_2_IsomorphicComponent<
|
14
|
+
declare const DayTableCellTrigger: $$__sveltets_2_IsomorphicComponent<DatePickerDayTableCellTriggerProps, {
|
15
15
|
[evt: string]: CustomEvent<any>;
|
16
|
-
}, {}, {},
|
16
|
+
}, {}, {}, "">;
|
17
17
|
type DayTableCellTrigger = InstanceType<typeof DayTableCellTrigger>;
|
18
18
|
export default DayTableCellTrigger;
|
@@ -1,3 +1,40 @@
|
|
1
|
-
<script lang="ts" module
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {Assign, HtmlProps} from '../types.js';
|
3
|
+
import type {DayTableCellProps, DayTableCellState} from '@zag-js/date-picker';
|
4
|
+
import type {Snippet} from 'svelte';
|
2
5
|
|
3
|
-
|
6
|
+
export interface DatePickerDayTableCellProps
|
7
|
+
extends Assign<Omit<HtmlProps<'div'>, 'children'>, DayTableCellProps> {
|
8
|
+
children?: Snippet<[state: DayTableCellState]>;
|
9
|
+
}
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<script lang="ts">
|
13
|
+
import {mergeProps} from '@zag-js/svelte';
|
14
|
+
import {datePickerContext, datePickerDayTableCellPropsContext} from './context.svelte.js';
|
15
|
+
|
16
|
+
let {
|
17
|
+
/**/
|
18
|
+
value,
|
19
|
+
disabled,
|
20
|
+
visibleRange,
|
21
|
+
children,
|
22
|
+
...props
|
23
|
+
}: DatePickerDayTableCellProps = $props();
|
24
|
+
|
25
|
+
let datePicker = datePickerContext.get();
|
26
|
+
let tableCellProps: DayTableCellProps = $derived({
|
27
|
+
value,
|
28
|
+
disabled,
|
29
|
+
visibleRange,
|
30
|
+
});
|
31
|
+
|
32
|
+
let state = $derived(datePicker.getDayTableCellState(tableCellProps));
|
33
|
+
let attrs = $derived(mergeProps(props, datePicker.getDayTableCellProps(tableCellProps)));
|
34
|
+
|
35
|
+
datePickerDayTableCellPropsContext.set(() => tableCellProps);
|
36
|
+
</script>
|
37
|
+
|
38
|
+
<div {...attrs}>
|
39
|
+
{@render children?.(state)}
|
40
|
+
</div>
|
@@ -2,7 +2,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
2
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
3
3
|
$$bindings?: Bindings;
|
4
4
|
} & Exports;
|
5
|
-
(internal: unknown, props: {
|
5
|
+
(internal: unknown, props: Props & {
|
6
6
|
$$events?: Events;
|
7
7
|
$$slots?: Slots;
|
8
8
|
}): Exports & {
|
@@ -11,8 +11,8 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
11
11
|
};
|
12
12
|
z_$$bindings?: Bindings;
|
13
13
|
}
|
14
|
-
declare const DayTableCell: $$__sveltets_2_IsomorphicComponent<
|
14
|
+
declare const DayTableCell: $$__sveltets_2_IsomorphicComponent<DatePickerDayTableCellProps, {
|
15
15
|
[evt: string]: CustomEvent<any>;
|
16
|
-
}, {}, {},
|
16
|
+
}, {}, {}, "">;
|
17
17
|
type DayTableCell = InstanceType<typeof DayTableCell>;
|
18
18
|
export default DayTableCell;
|