ui-ingredients 0.0.39 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/dist/accordion/item-content.svelte +42 -32
- package/dist/accordion/item-indicator.svelte +3 -4
- package/dist/accordion/item-trigger.svelte +31 -32
- package/dist/accordion/item.svelte +39 -43
- package/dist/accordion/root.svelte +5 -6
- package/dist/avatar/fallback.svelte +2 -4
- package/dist/avatar/image.svelte +2 -4
- package/dist/avatar/root.svelte +5 -6
- package/dist/carousel/indicator-group.svelte +3 -4
- package/dist/carousel/indicator.svelte +2 -4
- package/dist/carousel/item-group.svelte +2 -4
- package/dist/carousel/item.svelte +2 -6
- package/dist/carousel/next-trigger.svelte +3 -4
- package/dist/carousel/prev-trigger.svelte +3 -4
- package/dist/carousel/root.svelte +5 -6
- package/dist/carousel/viewport.svelte +2 -4
- package/dist/checkbox/control.svelte +2 -4
- package/dist/checkbox/hidden-input.svelte +9 -4
- package/dist/checkbox/indicator.svelte +2 -4
- package/dist/checkbox/label.svelte +2 -4
- package/dist/checkbox/root.svelte +5 -6
- package/dist/clipboard/control.svelte +2 -4
- package/dist/clipboard/indicator.svelte +2 -4
- package/dist/clipboard/input.svelte +2 -4
- package/dist/clipboard/label.svelte +2 -4
- package/dist/clipboard/root.svelte +5 -6
- package/dist/clipboard/trigger.svelte +3 -4
- package/dist/collapsible/content.svelte +2 -4
- package/dist/collapsible/root.svelte +5 -6
- package/dist/collapsible/trigger.svelte +3 -4
- package/dist/color-picker/area-background.svelte +4 -3
- package/dist/color-picker/area-thumb.svelte +3 -2
- package/dist/color-picker/area.svelte +2 -2
- package/dist/color-picker/channel-input.svelte +2 -2
- package/dist/color-picker/channel-slider-label.svelte +2 -2
- package/dist/color-picker/channel-slider-thumb.svelte +2 -2
- package/dist/color-picker/channel-slider-track.svelte +2 -2
- package/dist/color-picker/channel-slider-value-text.svelte +2 -2
- package/dist/color-picker/channel-slider.svelte +2 -2
- package/dist/color-picker/content.svelte +28 -20
- package/dist/color-picker/control.svelte +2 -2
- package/dist/color-picker/eye-dropper-trigger.svelte +2 -2
- package/dist/color-picker/format-select.svelte +3 -2
- package/dist/color-picker/format-trigger.svelte +3 -2
- package/dist/color-picker/hidden-input.svelte +3 -2
- package/dist/color-picker/label.svelte +2 -2
- package/dist/color-picker/positioner.svelte +29 -22
- package/dist/color-picker/root.svelte +68 -60
- package/dist/color-picker/swatch-group.svelte +3 -2
- package/dist/color-picker/swatch-indicator.svelte +3 -2
- package/dist/color-picker/swatch-trigger.svelte +5 -2
- package/dist/color-picker/swatch.svelte +2 -2
- package/dist/color-picker/transparency-grid.svelte +2 -2
- package/dist/color-picker/trigger.svelte +3 -2
- package/dist/color-picker/value-text.svelte +3 -2
- package/dist/combobox/clear-trigger.svelte +3 -4
- package/dist/combobox/content.svelte +28 -26
- package/dist/combobox/control.svelte +2 -4
- package/dist/combobox/input.svelte +2 -4
- package/dist/combobox/item-group-label.svelte +3 -4
- package/dist/combobox/item-group.svelte +2 -4
- package/dist/combobox/item-indicator.svelte +3 -4
- package/dist/combobox/item-text.svelte +2 -4
- package/dist/combobox/item.svelte +2 -6
- package/dist/combobox/label.svelte +2 -4
- package/dist/combobox/list.svelte +2 -4
- package/dist/combobox/positioner.svelte +32 -26
- package/dist/combobox/root.svelte +91 -84
- package/dist/combobox/trigger.svelte +2 -4
- package/dist/date-picker/clear-trigger.svelte +3 -4
- package/dist/date-picker/content.svelte +32 -26
- package/dist/date-picker/control.svelte +2 -4
- package/dist/date-picker/day-table-cell-trigger.svelte +2 -4
- package/dist/date-picker/day-table-cell.svelte +5 -6
- package/dist/date-picker/input.svelte +2 -4
- package/dist/date-picker/label.svelte +2 -4
- package/dist/date-picker/month-select.svelte +3 -4
- package/dist/date-picker/month-table-cell-trigger.svelte +2 -4
- package/dist/date-picker/month-table-cell.svelte +2 -6
- package/dist/date-picker/next-trigger.svelte +3 -4
- package/dist/date-picker/positioner.svelte +33 -28
- package/dist/date-picker/preset-trigger.svelte +2 -4
- package/dist/date-picker/prev-trigger.svelte +3 -4
- package/dist/date-picker/range-text.svelte +3 -4
- package/dist/date-picker/root.svelte +78 -71
- package/dist/date-picker/table-body.svelte +3 -4
- package/dist/date-picker/table-head.svelte +3 -4
- package/dist/date-picker/table-header.svelte +3 -4
- package/dist/date-picker/table-row.svelte +2 -4
- package/dist/date-picker/table.svelte +2 -4
- package/dist/date-picker/trigger.svelte +3 -4
- package/dist/date-picker/view-control.svelte +3 -4
- package/dist/date-picker/view-trigger.svelte +3 -4
- package/dist/date-picker/view.svelte +2 -4
- package/dist/date-picker/year-select.svelte +3 -4
- package/dist/date-picker/year-table-cell-trigger.svelte +2 -4
- package/dist/date-picker/year-table-cell.svelte +2 -6
- package/dist/dialog/backdrop.svelte +32 -26
- package/dist/dialog/close-trigger.svelte +3 -4
- package/dist/dialog/content.svelte +28 -26
- package/dist/dialog/description.svelte +2 -4
- package/dist/dialog/positioner.svelte +28 -27
- package/dist/dialog/root.svelte +32 -24
- package/dist/dialog/title.svelte +2 -4
- package/dist/dialog/trigger.svelte +2 -4
- package/dist/editable/area.svelte +2 -4
- package/dist/editable/cancel-trigger.svelte +3 -4
- package/dist/editable/control.svelte +2 -4
- package/dist/editable/edit-trigger.svelte +3 -4
- package/dist/editable/input.svelte +2 -4
- package/dist/editable/label.svelte +2 -4
- package/dist/editable/preview.svelte +2 -4
- package/dist/editable/root.svelte +5 -6
- package/dist/editable/submit-trigger.svelte +3 -4
- package/dist/field/create-field.svelte.d.ts +8 -8
- package/dist/field/error-text.svelte +2 -4
- package/dist/field/helper-text.svelte +2 -4
- package/dist/field/input.svelte +2 -4
- package/dist/field/label.svelte +2 -4
- package/dist/field/root.svelte +6 -5
- package/dist/field/select.svelte +2 -4
- package/dist/field/textarea.svelte +2 -4
- package/dist/file-upload/dropzone.svelte +2 -4
- package/dist/file-upload/hidden-input.svelte +9 -4
- package/dist/file-upload/item-delete-trigger.svelte +2 -4
- package/dist/file-upload/item-group.svelte +3 -4
- package/dist/file-upload/item-name.svelte +3 -4
- package/dist/file-upload/item-preview-image.svelte +3 -4
- package/dist/file-upload/item-preview.svelte +3 -4
- package/dist/file-upload/item-size-text.svelte +3 -4
- package/dist/file-upload/item.svelte +2 -4
- package/dist/file-upload/label.svelte +2 -4
- package/dist/file-upload/root.svelte +5 -6
- package/dist/file-upload/trigger.svelte +3 -4
- package/dist/hover-card/arrow-tip.svelte +2 -4
- package/dist/hover-card/arrow.svelte +2 -4
- package/dist/hover-card/content.svelte +28 -26
- package/dist/hover-card/positioner.svelte +33 -26
- package/dist/hover-card/root.svelte +32 -24
- package/dist/hover-card/trigger.svelte +2 -4
- package/dist/menu/arrow-tip.svelte +2 -4
- package/dist/menu/arrow.svelte +2 -4
- package/dist/menu/content.svelte +28 -26
- package/dist/menu/context-trigger.svelte +3 -4
- package/dist/menu/indicator.svelte +2 -4
- package/dist/menu/item-group-label.svelte +3 -4
- package/dist/menu/item-group.svelte +2 -4
- package/dist/menu/item.svelte +2 -6
- package/dist/menu/option-item-indicator.svelte +3 -4
- package/dist/menu/option-item-text.svelte +3 -4
- package/dist/menu/option-item.svelte +5 -6
- package/dist/menu/positioner.svelte +28 -26
- package/dist/menu/root.svelte +32 -24
- package/dist/menu/separator.svelte +2 -4
- package/dist/menu/trigger-item.svelte +3 -4
- package/dist/menu/trigger.svelte +2 -4
- package/dist/number-input/control.svelte +3 -4
- package/dist/number-input/decrement-trigger.svelte +2 -4
- package/dist/number-input/increment-trigger.svelte +2 -4
- package/dist/number-input/input.svelte +2 -4
- package/dist/number-input/label.svelte +2 -4
- package/dist/number-input/root.svelte +5 -6
- package/dist/number-input/scrubber.svelte +3 -4
- package/dist/pagination/ellipsis.svelte +2 -4
- package/dist/pagination/item.svelte +2 -4
- package/dist/pagination/next-trigger.svelte +3 -4
- package/dist/pagination/prev-trigger.svelte +3 -4
- package/dist/pagination/root.svelte +5 -6
- package/dist/pin-input/clear-trigger.svelte +3 -4
- package/dist/pin-input/create-pin-input.svelte.d.ts +2 -2
- package/dist/pin-input/hidden-input.svelte +9 -4
- package/dist/pin-input/input.svelte +2 -4
- package/dist/pin-input/label.svelte +2 -4
- package/dist/pin-input/root.svelte +5 -6
- package/dist/popover/arrow-tip.svelte +2 -4
- package/dist/popover/arrow.svelte +2 -4
- package/dist/popover/close-trigger.svelte +3 -4
- package/dist/popover/content.svelte +28 -26
- package/dist/popover/description.svelte +2 -4
- package/dist/popover/positioner.svelte +32 -26
- package/dist/popover/root.svelte +32 -24
- package/dist/popover/title.svelte +2 -4
- package/dist/popover/trigger.svelte +2 -4
- package/dist/presence/create-presence.svelte.d.ts +3 -10
- package/dist/presence/create-presence.svelte.js +15 -24
- package/dist/presence/root.svelte +30 -30
- package/dist/progress/circle-range.svelte +3 -4
- package/dist/progress/circle-track.svelte +3 -4
- package/dist/progress/circle.svelte +2 -4
- package/dist/progress/label.svelte +2 -4
- package/dist/progress/range.svelte +2 -4
- package/dist/progress/root.svelte +6 -7
- package/dist/progress/track.svelte +2 -4
- package/dist/progress/value-text.svelte +2 -4
- package/dist/progress/view.svelte +2 -4
- package/dist/qr-code/frame.svelte +2 -4
- package/dist/qr-code/overlay.svelte +2 -4
- package/dist/qr-code/pattern.svelte +2 -4
- package/dist/qr-code/root.svelte +5 -6
- package/dist/radio-group/indicator.svelte +3 -4
- package/dist/radio-group/item-control.svelte +3 -4
- package/dist/radio-group/item-hidden-input.svelte +9 -4
- package/dist/radio-group/item-text.svelte +3 -4
- package/dist/radio-group/item.svelte +2 -6
- package/dist/radio-group/label.svelte +2 -4
- package/dist/radio-group/root.svelte +5 -6
- package/dist/rating-group/control.svelte +2 -4
- package/dist/rating-group/hidden-input.svelte +9 -4
- package/dist/rating-group/item.svelte +2 -6
- package/dist/rating-group/label.svelte +2 -4
- package/dist/rating-group/root.svelte +5 -6
- package/dist/segment-group/indicator.svelte +3 -4
- package/dist/segment-group/item-control.svelte +3 -4
- package/dist/segment-group/item-hidden-input.svelte +8 -4
- package/dist/segment-group/item-text.svelte +3 -4
- package/dist/segment-group/item.svelte +2 -6
- package/dist/segment-group/label.svelte +2 -4
- package/dist/segment-group/root.svelte +3 -7
- package/dist/select/clear-trigger.svelte +3 -4
- package/dist/select/content.svelte +28 -26
- package/dist/select/control.svelte +2 -4
- package/dist/select/hidden-select.svelte +11 -6
- package/dist/select/indicator.svelte +2 -4
- package/dist/select/item-group-label.svelte +3 -4
- package/dist/select/item-group.svelte +2 -4
- package/dist/select/item-indicator.svelte +3 -4
- package/dist/select/item-text.svelte +2 -4
- package/dist/select/item.svelte +2 -6
- package/dist/select/label.svelte +2 -4
- package/dist/select/list.svelte +2 -4
- package/dist/select/positioner.svelte +28 -26
- package/dist/select/root.svelte +78 -71
- package/dist/select/trigger.svelte +2 -4
- package/dist/select/value-text.svelte +2 -4
- package/dist/signature-pad/clear-trigger.svelte +3 -4
- package/dist/signature-pad/control.svelte +3 -4
- package/dist/signature-pad/current-segment-path.svelte +2 -4
- package/dist/signature-pad/guide.svelte +2 -4
- package/dist/signature-pad/hidden-input.svelte +8 -4
- package/dist/signature-pad/label.svelte +3 -4
- package/dist/signature-pad/root.svelte +3 -7
- package/dist/signature-pad/segment-path.svelte +2 -4
- package/dist/signature-pad/segment.svelte +3 -4
- package/dist/slider/control.svelte +2 -4
- package/dist/slider/hidden-input.svelte +9 -4
- package/dist/slider/label.svelte +2 -4
- package/dist/slider/marker-group.svelte +2 -4
- package/dist/slider/marker.svelte +2 -4
- package/dist/slider/range.svelte +2 -4
- package/dist/slider/root.svelte +5 -6
- package/dist/slider/thumb.svelte +2 -4
- package/dist/slider/track.svelte +2 -4
- package/dist/slider/value-text.svelte +2 -4
- package/dist/splitter/panel.svelte +2 -4
- package/dist/splitter/resize-trigger.svelte +5 -6
- package/dist/splitter/root.svelte +5 -6
- package/dist/steps/completed-content.svelte +3 -4
- package/dist/steps/content.svelte +2 -4
- package/dist/steps/indicator.svelte +2 -4
- package/dist/steps/item.svelte +2 -6
- package/dist/steps/list.svelte +2 -4
- package/dist/steps/next-trigger.svelte +3 -4
- package/dist/steps/prev-trigger.svelte +3 -4
- package/dist/steps/progress.svelte +2 -4
- package/dist/steps/root.svelte +5 -6
- package/dist/steps/separator.svelte +2 -4
- package/dist/steps/trigger.svelte +2 -4
- package/dist/switch/control.svelte +2 -4
- package/dist/switch/hidden-input.svelte +9 -4
- package/dist/switch/label.svelte +2 -4
- package/dist/switch/root.svelte +5 -6
- package/dist/switch/thumb.svelte +2 -4
- package/dist/tabs/content.svelte +2 -4
- package/dist/tabs/list.svelte +2 -4
- package/dist/tabs/root.svelte +5 -6
- package/dist/tabs/trigger.svelte +2 -4
- package/dist/tags-input/clear-trigger.svelte +3 -4
- package/dist/tags-input/control.svelte +2 -4
- package/dist/tags-input/hidden-input.svelte +9 -4
- package/dist/tags-input/input.svelte +2 -4
- package/dist/tags-input/item-delete-trigger.svelte +3 -4
- package/dist/tags-input/item-input.svelte +3 -4
- package/dist/tags-input/item-preview.svelte +3 -4
- package/dist/tags-input/item-text.svelte +2 -4
- package/dist/tags-input/item.svelte +2 -6
- package/dist/tags-input/label.svelte +2 -4
- package/dist/tags-input/root.svelte +5 -6
- package/dist/time-picker/clear-trigger.svelte +3 -4
- package/dist/time-picker/column.svelte +2 -4
- package/dist/time-picker/content.svelte +24 -26
- package/dist/time-picker/control.svelte +2 -4
- package/dist/time-picker/hour-cell.svelte +2 -4
- package/dist/time-picker/input.svelte +2 -4
- package/dist/time-picker/label.svelte +2 -4
- package/dist/time-picker/minute-cell.svelte +2 -4
- package/dist/time-picker/period-cell.svelte +2 -4
- package/dist/time-picker/positioner.svelte +3 -4
- package/dist/time-picker/root.svelte +5 -6
- package/dist/time-picker/second-cell.svelte +2 -4
- package/dist/time-picker/spacer.svelte +2 -4
- package/dist/time-picker/trigger.svelte +3 -4
- package/dist/timer/action-trigger.svelte +2 -4
- package/dist/timer/item-label.svelte +2 -4
- package/dist/timer/item-value.svelte +2 -4
- package/dist/timer/item.svelte +3 -4
- package/dist/timer/root.svelte +5 -6
- package/dist/timer/separator.svelte +2 -4
- package/dist/toast/action-trigger.svelte +3 -4
- package/dist/toast/close-trigger.svelte +3 -4
- package/dist/toast/description.svelte +2 -4
- package/dist/toast/ghost-after.svelte +10 -5
- package/dist/toast/ghost-before.svelte +10 -5
- package/dist/toast/root.svelte +3 -6
- package/dist/toast/title.svelte +2 -4
- package/dist/toast/toaster.svelte +4 -5
- package/dist/toggle-group/item.svelte +3 -7
- package/dist/toggle-group/root.svelte +5 -6
- package/dist/tooltip/arrow-tip.svelte +2 -4
- package/dist/tooltip/arrow.svelte +2 -4
- package/dist/tooltip/content.svelte +28 -26
- package/dist/tooltip/positioner.svelte +32 -26
- package/dist/tooltip/root.svelte +32 -24
- package/dist/tooltip/trigger.svelte +2 -4
- package/dist/tree-view/branch-content.svelte +3 -4
- package/dist/tree-view/branch-control.svelte +3 -4
- package/dist/tree-view/branch-indicator.svelte +3 -4
- package/dist/tree-view/branch-text.svelte +3 -4
- package/dist/tree-view/branch-trigger.svelte +3 -4
- package/dist/tree-view/branch.svelte +2 -6
- package/dist/tree-view/item-indicator.svelte +3 -4
- package/dist/tree-view/item-text.svelte +2 -4
- package/dist/tree-view/item.svelte +2 -6
- package/dist/tree-view/label.svelte +2 -4
- package/dist/tree-view/root.svelte +5 -6
- package/dist/tree-view/tree.svelte +2 -4
- package/dist/types.d.ts +16 -4
- package/package.json +50 -50
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditableCancelTriggerProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface EditableCancelTriggerProps
|
5
|
+
extends HtmlIngredientProps<'button'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditableControlProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface EditableControlProps extends HtmlIngredientProps<'div'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditableEditTriggerProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface EditableEditTriggerProps
|
5
|
+
extends HtmlIngredientProps<'button'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditableInputProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface EditableInputProps extends HtmlIngredientProps<'input'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditableLabelProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface EditableLabelProps extends HtmlIngredientProps<'label'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditablePreviewProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface EditablePreviewProps extends HtmlIngredientProps<'div'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,16 +1,15 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
3
|
-
import type {Snippet} from 'svelte';
|
2
|
+
import type {Assign, HtmlIngredientProps} from '../types.js';
|
4
3
|
import type {
|
5
4
|
CreateEditableProps,
|
6
5
|
CreateEditableReturn,
|
7
6
|
} from './create-editable.svelte.js';
|
8
7
|
|
9
8
|
export interface EditableProps
|
10
|
-
extends Assign<
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
extends Assign<
|
10
|
+
HtmlIngredientProps<'div', CreateEditableReturn>,
|
11
|
+
CreateEditableProps
|
12
|
+
> {}
|
14
13
|
</script>
|
15
14
|
|
16
15
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface EditableSubmitTriggerProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface EditableSubmitTriggerProps
|
5
|
+
extends HtmlIngredientProps<'button'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { HtmlProps } from '../types.js';
|
2
2
|
interface ElementIds {
|
3
3
|
root?: string;
|
4
4
|
label?: string;
|
@@ -29,12 +29,12 @@ export declare function createField(props: CreateFieldProps): {
|
|
29
29
|
readonly readOnly: boolean;
|
30
30
|
readonly invalid: boolean;
|
31
31
|
readonly 'aria-describedby': string;
|
32
|
-
getRootProps: () =>
|
33
|
-
getLabelProps: () =>
|
34
|
-
getErrorTextProps: () =>
|
35
|
-
getHelperTextProps: () =>
|
36
|
-
getInputProps: () =>
|
37
|
-
getSelectProps: () =>
|
38
|
-
getTextareaProps: () =>
|
32
|
+
getRootProps: () => HtmlProps<"div">;
|
33
|
+
getLabelProps: () => HtmlProps<"label">;
|
34
|
+
getErrorTextProps: () => HtmlProps<"div">;
|
35
|
+
getHelperTextProps: () => HtmlProps<"div">;
|
36
|
+
getInputProps: () => HtmlProps<"input">;
|
37
|
+
getSelectProps: () => HtmlProps<"select">;
|
38
|
+
getTextareaProps: () => HtmlProps<"textarea">;
|
39
39
|
};
|
40
40
|
export {};
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FieldErrorTextProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FieldErrorTextProps extends HtmlIngredientProps<'div'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FieldHelperTextProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FieldHelperTextProps extends HtmlIngredientProps<'div'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
package/dist/field/input.svelte
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FieldInputProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FieldInputProps extends HtmlIngredientProps<'input'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
package/dist/field/label.svelte
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FieldLabelProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FieldLabelProps extends HtmlIngredientProps<'label'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
package/dist/field/root.svelte
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
3
|
import type {
|
4
4
|
CreateFieldProps,
|
5
5
|
CreateFieldReturn,
|
6
6
|
} from './create-field.svelte.js';
|
7
7
|
|
8
8
|
export interface FieldProps
|
9
|
-
extends Assign<
|
10
|
-
|
11
|
-
|
9
|
+
extends Assign<
|
10
|
+
HtmlIngredientProps<'div', CreateFieldReturn>,
|
11
|
+
CreateFieldProps
|
12
|
+
> {}
|
12
13
|
</script>
|
13
14
|
|
14
15
|
<script lang="ts">
|
@@ -42,6 +43,6 @@
|
|
42
43
|
{@render asChild(mergedProps, field)}
|
43
44
|
{:else}
|
44
45
|
<div {...mergedProps}>
|
45
|
-
{@render children?.()}
|
46
|
+
{@render children?.(field)}
|
46
47
|
</div>
|
47
48
|
{/if}
|
package/dist/field/select.svelte
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FieldSelectProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FieldSelectProps extends HtmlIngredientProps<'select'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FieldTextareaProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FieldTextareaProps extends HtmlIngredientProps<'textarea'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadDropzoneProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FileUploadDropzoneProps extends HtmlIngredientProps<'div'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,14 +1,15 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadHiddenInputProps
|
4
|
+
export interface FileUploadHiddenInputProps
|
5
|
+
extends HtmlIngredientProps<'input'> {}
|
5
6
|
</script>
|
6
7
|
|
7
8
|
<script lang="ts">
|
8
9
|
import {mergeProps} from '../merge-props.js';
|
9
10
|
import {getFileUploadContext} from './context.svelte.js';
|
10
11
|
|
11
|
-
let {...props}: FileUploadHiddenInputProps = $props();
|
12
|
+
let {asChild, ...props}: FileUploadHiddenInputProps = $props();
|
12
13
|
|
13
14
|
let fileUpload = getFileUploadContext();
|
14
15
|
|
@@ -17,4 +18,8 @@
|
|
17
18
|
);
|
18
19
|
</script>
|
19
20
|
|
20
|
-
|
21
|
+
{#if asChild}
|
22
|
+
{@render asChild(mergedProps)}
|
23
|
+
{:else}
|
24
|
+
<input {...mergedProps} />
|
25
|
+
{/if}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface FileUploadItemDeleteTriggerProps
|
5
|
-
extends
|
6
|
-
asChild?: AsChild;
|
7
|
-
}
|
5
|
+
extends HtmlIngredientProps<'button'> {}
|
8
6
|
</script>
|
9
7
|
|
10
8
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadItemGroupProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface FileUploadItemGroupProps
|
5
|
+
extends HtmlIngredientProps<'div'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadItemNameProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface FileUploadItemNameProps
|
5
|
+
extends HtmlIngredientProps<'span'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadItemPreviewImageProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface FileUploadItemPreviewImageProps
|
5
|
+
extends HtmlIngredientProps<'img'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadItemPreviewProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface FileUploadItemPreviewProps
|
5
|
+
extends HtmlIngredientProps<'div'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadItemSizeTextProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface FileUploadItemSizeTextProps
|
5
|
+
extends HtmlIngredientProps<'span'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
3
|
import type {ItemProps} from '@zag-js/file-upload';
|
4
4
|
|
5
5
|
export interface FileUploadItemProps
|
6
|
-
extends Assign<
|
7
|
-
asChild?: AsChild;
|
8
|
-
}
|
6
|
+
extends Assign<HtmlIngredientProps<'div'>, ItemProps> {}
|
9
7
|
</script>
|
10
8
|
|
11
9
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadLabelProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface FileUploadLabelProps extends HtmlIngredientProps<'label'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,16 +1,15 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
3
|
-
import type {Snippet} from 'svelte';
|
2
|
+
import type {Assign, HtmlIngredientProps} from '../types.js';
|
4
3
|
import type {
|
5
4
|
CreateFileUploadProps,
|
6
5
|
CreateFileUploadReturn,
|
7
6
|
} from './create-file-upload.svelte.js';
|
8
7
|
|
9
8
|
export interface FileUploadProps
|
10
|
-
extends Assign<
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
extends Assign<
|
10
|
+
HtmlIngredientProps<'div', CreateFileUploadReturn>,
|
11
|
+
CreateFileUploadProps
|
12
|
+
> {}
|
14
13
|
</script>
|
15
14
|
|
16
15
|
<script lang="ts">
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface FileUploadTriggerProps
|
5
|
-
|
6
|
-
}
|
4
|
+
export interface FileUploadTriggerProps
|
5
|
+
extends HtmlIngredientProps<'button'> {}
|
7
6
|
</script>
|
8
7
|
|
9
8
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface HoverCardArrowTipProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface HoverCardArrowTipProps extends HtmlIngredientProps<'span'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface HoverCardArrowProps extends
|
5
|
-
asChild?: AsChild;
|
6
|
-
}
|
4
|
+
export interface HoverCardArrowProps extends HtmlIngredientProps<'span'> {}
|
7
5
|
</script>
|
8
6
|
|
9
7
|
<script lang="ts">
|
@@ -1,26 +1,28 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {
|
3
|
-
|
4
|
-
export interface HoverCardContentProps extends
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
import {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
let
|
16
|
-
|
17
|
-
let mergedProps = $derived(
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
{
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
{
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface HoverCardContentProps extends HtmlIngredientProps<'div'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '../merge-props.js';
|
9
|
+
import {getPresenceContext} from '../presence/context.svelte.js';
|
10
|
+
import {getHoverCardContext} from './context.svelte.js';
|
11
|
+
|
12
|
+
let {asChild, children, ...props}: HoverCardContentProps = $props();
|
13
|
+
|
14
|
+
let hoverCard = getHoverCardContext();
|
15
|
+
let presence = getPresenceContext();
|
16
|
+
|
17
|
+
let mergedProps = $derived(
|
18
|
+
mergeProps(props, hoverCard.getContentProps(), presence.getPresenceProps()),
|
19
|
+
);
|
20
|
+
</script>
|
21
|
+
|
22
|
+
{#if asChild}
|
23
|
+
{@render asChild(mergedProps)}
|
24
|
+
{:else}
|
25
|
+
<div use:presence.ref {...mergedProps}>
|
26
|
+
{@render children?.()}
|
27
|
+
</div>
|
28
|
+
{/if}
|
@@ -1,26 +1,33 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {
|
3
|
-
|
4
|
-
export interface HoverCardPositionerProps
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
import {
|
11
|
-
import {getHoverCardContext} from './context.svelte.js';
|
12
|
-
|
13
|
-
let {asChild, children, ...props}: HoverCardPositionerProps = $props();
|
14
|
-
|
15
|
-
let hoverCard = getHoverCardContext();
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface HoverCardPositionerProps
|
5
|
+
extends HtmlIngredientProps<'div'> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {getPresenceContext} from '../presence/context.svelte.js';
|
11
|
+
import {getHoverCardContext} from './context.svelte.js';
|
12
|
+
|
13
|
+
let {asChild, children, ...props}: HoverCardPositionerProps = $props();
|
14
|
+
|
15
|
+
let hoverCard = getHoverCardContext();
|
16
|
+
let presence = getPresenceContext();
|
17
|
+
|
18
|
+
let mergedProps = $derived(
|
19
|
+
mergeProps(
|
20
|
+
props,
|
21
|
+
hoverCard.getPositionerProps(),
|
22
|
+
presence.getPresenceProps(),
|
23
|
+
),
|
24
|
+
);
|
25
|
+
</script>
|
26
|
+
|
27
|
+
{#if asChild}
|
28
|
+
{@render asChild(mergedProps)}
|
29
|
+
{:else}
|
30
|
+
<div {...mergedProps}>
|
31
|
+
{@render children?.()}
|
32
|
+
</div>
|
33
|
+
{/if}
|
@@ -1,24 +1,32 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {Snippet} from 'svelte';
|
3
|
-
import type {
|
4
|
-
CreateHoverCardProps,
|
5
|
-
CreateHoverCardReturn,
|
6
|
-
} from './create-hover-card.svelte.js';
|
7
|
-
|
8
|
-
export interface HoverCardProps extends CreateHoverCardProps {
|
9
|
-
children?: Snippet<[
|
10
|
-
}
|
11
|
-
</script>
|
12
|
-
|
13
|
-
<script lang="ts">
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
let
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {Snippet} from 'svelte';
|
3
|
+
import type {
|
4
|
+
CreateHoverCardProps,
|
5
|
+
CreateHoverCardReturn,
|
6
|
+
} from './create-hover-card.svelte.js';
|
7
|
+
|
8
|
+
export interface HoverCardProps extends CreateHoverCardProps {
|
9
|
+
children?: Snippet<[CreateHoverCardReturn]>;
|
10
|
+
}
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script lang="ts">
|
14
|
+
import {setPresenceContext} from '../presence/context.svelte.js';
|
15
|
+
import {createPresence} from '../presence/create-presence.svelte.js';
|
16
|
+
import {setHoverCardContext} from './context.svelte.js';
|
17
|
+
import {createHoverCard} from './create-hover-card.svelte.js';
|
18
|
+
|
19
|
+
let {children, ...props}: HoverCardProps = $props();
|
20
|
+
|
21
|
+
let hoverCard = createHoverCard(props);
|
22
|
+
let presence = createPresence({
|
23
|
+
get present() {
|
24
|
+
return hoverCard.open;
|
25
|
+
},
|
26
|
+
});
|
27
|
+
|
28
|
+
setHoverCardContext(hoverCard);
|
29
|
+
setPresenceContext(presence);
|
30
|
+
</script>
|
31
|
+
|
32
|
+
{@render children?.(hoverCard)}
|