ui-ingredients 0.0.44 → 0.0.46
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/dist/accordion/context.svelte.d.ts +2 -2
- package/dist/accordion/create-accordion.svelte.js +3 -4
- package/dist/accordion/item-content.svelte +14 -13
- package/dist/accordion/item-indicator.svelte +7 -2
- package/dist/accordion/item-trigger.svelte +7 -2
- package/dist/accordion/item.svelte +4 -4
- package/dist/accordion/root.svelte +61 -63
- package/dist/avatar/context.svelte.d.ts +1 -1
- package/dist/avatar/create-avatar.svelte.js +3 -4
- package/dist/avatar/fallback.svelte +2 -2
- package/dist/avatar/image.svelte +2 -2
- package/dist/avatar/root.svelte +4 -4
- package/dist/carousel/context.svelte.d.ts +1 -1
- package/dist/carousel/create-carousel.svelte.js +3 -4
- package/dist/carousel/indicator-group.svelte +7 -2
- package/dist/carousel/indicator.svelte +4 -4
- package/dist/carousel/item-group.svelte +2 -2
- package/dist/carousel/item.svelte +4 -4
- package/dist/carousel/next-trigger.svelte +7 -2
- package/dist/carousel/prev-trigger.svelte +7 -2
- package/dist/carousel/root.svelte +4 -4
- package/dist/carousel/viewport.svelte +2 -2
- package/dist/checkbox/context.svelte.d.ts +1 -1
- package/dist/checkbox/control.svelte +2 -2
- package/dist/checkbox/create-checkbox.svelte.js +4 -5
- 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 +4 -4
- package/dist/clipboard/context.svelte.d.ts +1 -1
- package/dist/clipboard/control.svelte +2 -2
- package/dist/clipboard/create-clipboard.svelte.js +3 -4
- package/dist/clipboard/indicator.svelte +2 -1
- package/dist/clipboard/input.svelte +2 -2
- package/dist/clipboard/label.svelte +2 -2
- package/dist/clipboard/root.svelte +4 -4
- package/dist/clipboard/trigger.svelte +2 -2
- package/dist/collapsible/content.svelte +7 -2
- package/dist/collapsible/context.svelte.d.ts +1 -1
- package/dist/collapsible/create-collapsible.svelte.js +3 -4
- package/dist/collapsible/root.svelte +4 -4
- package/dist/collapsible/trigger.svelte +7 -2
- package/dist/color-picker/context.svelte.d.ts +5 -5
- package/dist/color-picker/create-color-picker.svelte.js +3 -4
- package/dist/color-picker/root.svelte +2 -2
- package/dist/combobox/clear-trigger.svelte +7 -2
- package/dist/combobox/content.svelte +2 -2
- package/dist/combobox/context.svelte.d.ts +3 -3
- package/dist/combobox/control.svelte +2 -2
- package/dist/combobox/create-combobox.svelte.js +4 -5
- package/dist/combobox/input.svelte +2 -2
- package/dist/combobox/item-group-label.svelte +7 -2
- package/dist/combobox/item-group.svelte +8 -2
- package/dist/combobox/item-indicator.svelte +7 -2
- package/dist/combobox/item-text.svelte +2 -2
- package/dist/combobox/item.svelte +4 -4
- package/dist/combobox/label.svelte +2 -2
- package/dist/combobox/list.svelte +2 -2
- package/dist/combobox/positioner.svelte +7 -2
- package/dist/combobox/root.svelte +12 -18
- package/dist/combobox/trigger.svelte +2 -2
- package/dist/create-context.svelte.d.ts +8 -3
- package/dist/create-context.svelte.js +15 -20
- package/dist/date-picker/clear-trigger.svelte +7 -2
- package/dist/date-picker/content.svelte +2 -2
- package/dist/date-picker/context.svelte.d.ts +5 -5
- package/dist/date-picker/control.svelte +2 -2
- package/dist/date-picker/create-date-picker.svelte.js +2 -3
- package/dist/date-picker/day-table-cell-trigger.svelte +7 -3
- package/dist/date-picker/day-table-cell.svelte +9 -4
- package/dist/date-picker/input.svelte +2 -2
- package/dist/date-picker/label.svelte +8 -2
- package/dist/date-picker/month-select.svelte +7 -2
- package/dist/date-picker/month-table-cell-trigger.svelte +7 -3
- package/dist/date-picker/month-table-cell.svelte +9 -4
- package/dist/date-picker/next-trigger.svelte +7 -2
- package/dist/date-picker/positioner.svelte +7 -2
- package/dist/date-picker/preset-trigger.svelte +8 -3
- package/dist/date-picker/prev-trigger.svelte +7 -2
- package/dist/date-picker/range-text.svelte +7 -2
- package/dist/date-picker/root.svelte +12 -20
- package/dist/date-picker/table-body.svelte +7 -2
- package/dist/date-picker/table-head.svelte +7 -2
- package/dist/date-picker/table-header.svelte +7 -2
- package/dist/date-picker/table-row.svelte +7 -2
- package/dist/date-picker/table.svelte +9 -3
- package/dist/date-picker/trigger.svelte +2 -2
- package/dist/date-picker/view-control.svelte +7 -2
- package/dist/date-picker/view-trigger.svelte +7 -2
- package/dist/date-picker/view.svelte +2 -1
- package/dist/date-picker/year-select.svelte +7 -2
- package/dist/date-picker/year-table-cell-trigger.svelte +7 -3
- package/dist/date-picker/year-table-cell.svelte +9 -4
- package/dist/dialog/backdrop.svelte +9 -14
- package/dist/dialog/close-trigger.svelte +7 -2
- package/dist/dialog/content.svelte +2 -2
- package/dist/dialog/context.svelte.d.ts +1 -1
- package/dist/dialog/create-dialog.svelte.js +3 -4
- package/dist/dialog/description.svelte +2 -2
- package/dist/dialog/positioner.svelte +2 -2
- package/dist/dialog/root.svelte +6 -12
- 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 +7 -2
- package/dist/editable/context.svelte.d.ts +1 -1
- package/dist/editable/control.svelte +2 -2
- package/dist/editable/create-editable.svelte.js +4 -5
- package/dist/editable/edit-trigger.svelte +7 -2
- package/dist/editable/input.svelte +2 -2
- package/dist/editable/label.svelte +2 -2
- package/dist/editable/preview.svelte +2 -2
- package/dist/editable/root.svelte +4 -4
- package/dist/editable/submit-trigger.svelte +7 -2
- package/dist/environment-provider/context.svelte.d.ts +1 -1
- package/dist/environment-provider/root.svelte +5 -8
- package/dist/field/context.svelte.d.ts +1 -1
- package/dist/field/create-field.svelte.d.ts +1 -22
- package/dist/field/create-field.svelte.js +9 -20
- package/dist/field/error-text.svelte +2 -2
- package/dist/field/helper-text.svelte +2 -2
- package/dist/field/input.svelte +2 -2
- package/dist/field/label.svelte +2 -2
- package/dist/field/root.svelte +4 -4
- package/dist/field/select.svelte +2 -2
- package/dist/field/textarea.svelte +2 -2
- package/dist/file-upload/context.svelte.d.ts +2 -2
- package/dist/file-upload/create-file-upload.svelte.js +4 -5
- package/dist/file-upload/dropzone.svelte +7 -2
- package/dist/file-upload/hidden-input.svelte +2 -2
- package/dist/file-upload/item-delete-trigger.svelte +7 -3
- package/dist/file-upload/item-group.svelte +7 -2
- package/dist/file-upload/item-name.svelte +7 -2
- package/dist/file-upload/item-preview-image.svelte +2 -2
- package/dist/file-upload/item-preview.svelte +7 -2
- package/dist/file-upload/item-size-text.svelte +7 -2
- package/dist/file-upload/item.svelte +4 -4
- package/dist/file-upload/label.svelte +2 -2
- package/dist/file-upload/root.svelte +4 -4
- package/dist/file-upload/trigger.svelte +2 -2
- package/dist/floating-panel/body.svelte +2 -2
- package/dist/floating-panel/close-trigger.svelte +7 -2
- package/dist/floating-panel/content.svelte +7 -2
- package/dist/floating-panel/context.svelte.d.ts +1 -1
- package/dist/floating-panel/create-floating-panel.svelte.js +3 -4
- package/dist/floating-panel/drag-trigger.svelte +7 -2
- package/dist/floating-panel/header.svelte +7 -2
- package/dist/floating-panel/maximize-trigger.svelte +7 -3
- package/dist/floating-panel/minimize-trigger.svelte +7 -3
- package/dist/floating-panel/positioner.svelte +7 -2
- package/dist/floating-panel/resize-trigger.svelte +9 -4
- package/dist/floating-panel/restore-trigger.svelte +7 -3
- package/dist/floating-panel/root.svelte +6 -11
- package/dist/floating-panel/title.svelte +7 -2
- package/dist/floating-panel/trigger.svelte +7 -2
- package/dist/highlight/highlight.svelte +42 -0
- package/dist/highlight/highlight.svelte.d.ts +18 -0
- package/dist/highlight/index.d.ts +1 -0
- package/dist/highlight/index.js +1 -0
- 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/context.svelte.d.ts +1 -1
- package/dist/hover-card/create-hover-card.svelte.js +3 -4
- package/dist/hover-card/positioner.svelte +7 -2
- package/dist/hover-card/root.svelte +6 -11
- package/dist/hover-card/trigger.svelte +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locale-provider/context.svelte.d.ts +1 -1
- package/dist/locale-provider/root.svelte +8 -6
- package/dist/menu/arrow-tip.svelte +2 -2
- package/dist/menu/arrow.svelte +2 -2
- package/dist/menu/content.svelte +2 -2
- package/dist/menu/context-trigger.svelte +7 -2
- package/dist/menu/context.svelte.d.ts +3 -3
- package/dist/menu/create-menu.svelte.js +3 -4
- package/dist/menu/indicator.svelte +2 -2
- package/dist/menu/item-group-label.svelte +7 -2
- package/dist/menu/item-group.svelte +2 -2
- package/dist/menu/item.svelte +4 -4
- package/dist/menu/option-item-indicator.svelte +7 -2
- package/dist/menu/option-item-text.svelte +7 -2
- package/dist/menu/option-item.svelte +4 -4
- package/dist/menu/positioner.svelte +2 -2
- package/dist/menu/root.svelte +6 -12
- package/dist/menu/separator.svelte +2 -2
- package/dist/menu/trigger-item.svelte +7 -2
- package/dist/menu/trigger.svelte +2 -2
- package/dist/number-input/context.svelte.d.ts +1 -1
- package/dist/number-input/control.svelte +7 -2
- package/dist/number-input/create-number-input.svelte.js +4 -5
- package/dist/number-input/decrement-trigger.svelte +7 -3
- package/dist/number-input/increment-trigger.svelte +7 -3
- package/dist/number-input/input.svelte +2 -2
- package/dist/number-input/label.svelte +2 -2
- package/dist/number-input/root.svelte +4 -4
- package/dist/number-input/scrubber.svelte +7 -2
- package/dist/pagination/context.svelte.d.ts +1 -1
- package/dist/pagination/create-pagination.svelte.js +3 -4
- package/dist/pagination/ellipsis.svelte +8 -2
- package/dist/pagination/item.svelte +8 -2
- package/dist/pagination/next-trigger.svelte +7 -2
- package/dist/pagination/prev-trigger.svelte +7 -2
- package/dist/pagination/root.svelte +4 -4
- package/dist/pin-input/clear-trigger.svelte +7 -2
- package/dist/pin-input/context.svelte.d.ts +1 -1
- package/dist/pin-input/create-pin-input.svelte.js +4 -5
- 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 +4 -4
- package/dist/popover/arrow-tip.svelte +2 -2
- package/dist/popover/arrow.svelte +2 -2
- package/dist/popover/close-trigger.svelte +7 -2
- package/dist/popover/content.svelte +2 -2
- package/dist/popover/context.svelte.d.ts +1 -1
- package/dist/popover/create-popover.svelte.js +3 -4
- package/dist/popover/description.svelte +7 -2
- package/dist/popover/positioner.svelte +2 -2
- package/dist/popover/root.svelte +6 -11
- package/dist/popover/title.svelte +2 -2
- package/dist/popover/trigger.svelte +2 -2
- package/dist/presence/context.svelte.d.ts +2 -2
- package/dist/presence/root.svelte +2 -2
- package/dist/progress/circle-range.svelte +7 -2
- package/dist/progress/circle-track.svelte +7 -2
- package/dist/progress/circle.svelte +2 -2
- package/dist/progress/context.svelte.d.ts +1 -1
- package/dist/progress/create-progress.svelte.js +3 -4
- package/dist/progress/label.svelte +2 -2
- package/dist/progress/range.svelte +2 -2
- package/dist/progress/root.svelte +4 -4
- package/dist/progress/track.svelte +2 -2
- package/dist/progress/value-text.svelte +2 -2
- package/dist/progress/view.svelte +8 -2
- package/dist/qr-code/context.svelte.d.ts +1 -1
- package/dist/qr-code/create-qr-code.svelte.js +3 -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 +4 -4
- package/dist/radio-group/context.svelte.d.ts +2 -2
- package/dist/radio-group/create-radio-group.svelte.js +3 -4
- package/dist/radio-group/indicator.svelte +7 -2
- package/dist/radio-group/item-control.svelte +7 -2
- package/dist/radio-group/item-hidden-input.svelte +2 -2
- package/dist/radio-group/item-text.svelte +7 -2
- package/dist/radio-group/item.svelte +4 -4
- package/dist/radio-group/label.svelte +2 -2
- package/dist/radio-group/root.svelte +4 -4
- package/dist/rating-group/context.svelte.d.ts +1 -1
- package/dist/rating-group/control.svelte +7 -2
- package/dist/rating-group/create-rating-group.svelte.js +4 -5
- package/dist/rating-group/hidden-input.svelte +2 -2
- package/dist/rating-group/item.svelte +8 -2
- package/dist/rating-group/label.svelte +2 -2
- package/dist/rating-group/root.svelte +4 -4
- package/dist/segment-group/context.svelte.d.ts +2 -2
- package/dist/segment-group/create-segment-group.svelte.js +3 -4
- package/dist/segment-group/indicator.svelte +7 -2
- package/dist/segment-group/item-control.svelte +7 -2
- package/dist/segment-group/item-hidden-input.svelte +2 -2
- package/dist/segment-group/item-text.svelte +7 -2
- package/dist/segment-group/item.svelte +4 -4
- package/dist/segment-group/label.svelte +2 -2
- package/dist/segment-group/root.svelte +4 -4
- package/dist/select/clear-trigger.svelte +7 -2
- package/dist/select/content.svelte +2 -2
- package/dist/select/context.svelte.d.ts +3 -3
- package/dist/select/control.svelte +2 -2
- package/dist/select/create-select.svelte.js +4 -5
- package/dist/select/hidden-select.svelte +7 -2
- package/dist/select/indicator.svelte +2 -2
- package/dist/select/item-group-label.svelte +7 -2
- package/dist/select/item-group.svelte +8 -2
- package/dist/select/item-indicator.svelte +7 -2
- package/dist/select/item-text.svelte +2 -2
- package/dist/select/item.svelte +4 -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 +13 -21
- package/dist/select/trigger.svelte +2 -2
- package/dist/select/value-text.svelte +8 -3
- package/dist/signature-pad/clear-trigger.svelte +7 -2
- package/dist/signature-pad/context.svelte.d.ts +1 -1
- package/dist/signature-pad/control.svelte +7 -2
- package/dist/signature-pad/create-signature-pad.svelte.js +3 -4
- package/dist/signature-pad/current-segment-path.svelte +7 -3
- package/dist/signature-pad/guide.svelte +2 -2
- package/dist/signature-pad/hidden-input.svelte +7 -2
- package/dist/signature-pad/label.svelte +2 -2
- package/dist/signature-pad/root.svelte +4 -4
- package/dist/signature-pad/segment-path.svelte +8 -3
- package/dist/signature-pad/segment.svelte +7 -2
- package/dist/slider/context.svelte.d.ts +2 -2
- package/dist/slider/control.svelte +2 -2
- package/dist/slider/create-slider.svelte.js +3 -4
- package/dist/slider/hidden-input.svelte +2 -2
- package/dist/slider/label.svelte +2 -2
- package/dist/slider/marker-group.svelte +2 -2
- package/dist/slider/marker.svelte +8 -2
- package/dist/slider/range.svelte +2 -2
- package/dist/slider/root.svelte +4 -4
- package/dist/slider/thumb.svelte +4 -4
- package/dist/slider/track.svelte +2 -2
- package/dist/slider/value-text.svelte +2 -2
- package/dist/splitter/context.svelte.d.ts +1 -1
- package/dist/splitter/create-splitter.svelte.js +3 -4
- package/dist/splitter/panel.svelte +4 -4
- package/dist/splitter/resize-trigger.svelte +9 -4
- package/dist/splitter/root.svelte +4 -4
- package/dist/steps/completed-content.svelte +7 -2
- package/dist/steps/content.svelte +8 -2
- package/dist/steps/context.svelte.d.ts +2 -2
- package/dist/steps/create-steps.svelte.js +3 -4
- package/dist/steps/indicator.svelte +2 -2
- package/dist/steps/item.svelte +4 -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 +4 -4
- package/dist/steps/separator.svelte +2 -2
- package/dist/steps/trigger.svelte +2 -2
- package/dist/switch/context.svelte.d.ts +1 -1
- package/dist/switch/control.svelte +4 -4
- package/dist/switch/create-switch.svelte.d.ts +3 -3
- package/dist/switch/create-switch.svelte.js +7 -8
- package/dist/switch/hidden-input.svelte +4 -4
- package/dist/switch/label.svelte +4 -4
- package/dist/switch/root.svelte +8 -8
- package/dist/switch/thumb.svelte +4 -4
- package/dist/tabs/content.svelte +4 -4
- package/dist/tabs/context.svelte.d.ts +1 -1
- package/dist/tabs/create-tabs.svelte.js +3 -4
- package/dist/tabs/list.svelte +2 -2
- package/dist/tabs/root.svelte +4 -4
- package/dist/tabs/trigger.svelte +4 -4
- package/dist/tags-input/clear-trigger.svelte +7 -2
- package/dist/tags-input/context.svelte.d.ts +2 -2
- package/dist/tags-input/control.svelte +2 -2
- package/dist/tags-input/create-tags-input.svelte.js +4 -5
- 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 +7 -2
- package/dist/tags-input/item-input.svelte +2 -2
- package/dist/tags-input/item-preview.svelte +7 -2
- package/dist/tags-input/item-text.svelte +2 -2
- package/dist/tags-input/item.svelte +4 -4
- package/dist/tags-input/label.svelte +2 -2
- package/dist/tags-input/root.svelte +4 -4
- package/dist/time-picker/clear-trigger.svelte +7 -2
- package/dist/time-picker/column.svelte +8 -2
- package/dist/time-picker/content.svelte +2 -2
- package/dist/time-picker/context.svelte.d.ts +1 -1
- package/dist/time-picker/control.svelte +2 -2
- package/dist/time-picker/create-time-picker.svelte.js +3 -4
- package/dist/time-picker/hour-cell.svelte +8 -2
- package/dist/time-picker/input.svelte +2 -2
- package/dist/time-picker/label.svelte +2 -2
- package/dist/time-picker/minute-cell.svelte +8 -3
- package/dist/time-picker/period-cell.svelte +8 -3
- package/dist/time-picker/positioner.svelte +7 -2
- package/dist/time-picker/root.svelte +13 -23
- package/dist/time-picker/second-cell.svelte +8 -3
- package/dist/time-picker/spacer.svelte +2 -2
- package/dist/time-picker/trigger.svelte +2 -2
- package/dist/timer/action-trigger.svelte +8 -2
- package/dist/timer/context.svelte.d.ts +2 -2
- package/dist/timer/create-timer.svelte.js +3 -4
- package/dist/timer/item-label.svelte +2 -2
- package/dist/timer/item-value.svelte +2 -2
- package/dist/timer/item.svelte +4 -4
- package/dist/timer/root.svelte +4 -4
- package/dist/timer/separator.svelte +2 -2
- package/dist/toast/action-trigger.svelte +7 -2
- package/dist/toast/close-trigger.svelte +2 -2
- package/dist/toast/context.svelte.d.ts +1 -1
- package/dist/toast/create-toast.svelte.js +1 -2
- package/dist/toast/create-toaster.svelte.js +2 -3
- package/dist/toast/description.svelte +2 -2
- package/dist/toast/ghost-after.svelte +2 -2
- package/dist/toast/ghost-before.svelte +2 -2
- package/dist/toast/root.svelte +2 -2
- package/dist/toast/title.svelte +2 -2
- package/dist/toast/toaster.svelte +2 -2
- package/dist/toggle-group/context.svelte.d.ts +1 -1
- package/dist/toggle-group/create-toggle-group.svelte.js +3 -4
- package/dist/toggle-group/item.svelte +4 -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/context.svelte.d.ts +1 -1
- package/dist/tooltip/create-tooltip.svelte.js +3 -4
- package/dist/tooltip/positioner.svelte +2 -2
- package/dist/tooltip/root.svelte +6 -12
- package/dist/tooltip/trigger.svelte +2 -2
- package/dist/tour/arrow-tip.svelte +2 -2
- package/dist/tour/arrow.svelte +2 -2
- package/dist/tour/close-trigger.svelte +2 -2
- package/dist/tour/content.svelte +2 -2
- package/dist/tour/context.svelte.d.ts +1 -1
- package/dist/tour/create-tour.svelte.js +3 -4
- package/dist/tour/description.svelte +2 -2
- package/dist/tour/next-trigger.svelte +2 -2
- package/dist/tour/overlay.svelte +9 -14
- package/dist/tour/positioner.svelte +2 -2
- package/dist/tour/prev-trigger.svelte +2 -2
- package/dist/tour/progress-text.svelte +2 -2
- package/dist/tour/root.svelte +6 -11
- package/dist/tour/skip-trigger.svelte +2 -2
- package/dist/tour/spotlight.svelte +2 -2
- package/dist/tour/title.svelte +2 -2
- package/dist/tree-view/branch-content.svelte +7 -2
- package/dist/tree-view/branch-control.svelte +7 -2
- package/dist/tree-view/branch-indicator.svelte +7 -2
- package/dist/tree-view/branch-text.svelte +7 -2
- package/dist/tree-view/branch-trigger.svelte +7 -2
- package/dist/tree-view/branch.svelte +4 -4
- package/dist/tree-view/context.svelte.d.ts +3 -3
- package/dist/tree-view/create-tree-view.svelte.js +3 -4
- package/dist/tree-view/item-indicator.svelte +7 -2
- package/dist/tree-view/item-text.svelte +2 -2
- package/dist/tree-view/item.svelte +4 -4
- package/dist/tree-view/label.svelte +2 -2
- package/dist/tree-view/root.svelte +4 -4
- package/dist/tree-view/tree.svelte +2 -2
- package/dist/types.d.ts +2 -1
- package/package.json +176 -175
@@ -19,9 +19,9 @@
|
|
19
19
|
import {setTreeViewContext} from './context.svelte.js';
|
20
20
|
import {createTreeView} from './create-tree-view.svelte.js';
|
21
21
|
|
22
|
-
let {asChild, children, ...props}: TreeViewProps = $props();
|
22
|
+
let {this: e, asChild, children, ...props}: TreeViewProps = $props();
|
23
23
|
|
24
|
-
let [treeViewProps,
|
24
|
+
let [treeViewProps, localProps] = $derived(
|
25
25
|
createSplitProps<CreateTreeViewProps>([
|
26
26
|
'id',
|
27
27
|
'ids',
|
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
let treeView = createTreeView(reflect(() => treeViewProps));
|
41
41
|
|
42
|
-
let mergedProps = $derived(mergeProps(
|
42
|
+
let mergedProps = $derived(mergeProps(localProps, treeView.getRootProps()));
|
43
43
|
|
44
44
|
setTreeViewContext(treeView);
|
45
45
|
</script>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
{#if asChild}
|
48
48
|
{@render asChild(mergedProps, treeView)}
|
49
49
|
{:else}
|
50
|
-
<div {...mergedProps}>
|
50
|
+
<div bind:this={e} {...mergedProps}>
|
51
51
|
{@render children?.(treeView)}
|
52
52
|
</div>
|
53
53
|
{/if}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import {mergeProps} from '../merge-props.js';
|
9
9
|
import {getTreeViewContext} from './context.svelte.js';
|
10
10
|
|
11
|
-
let {asChild, children, ...props}: TreeViewTreeProps = $props();
|
11
|
+
let {this: e, asChild, children, ...props}: TreeViewTreeProps = $props();
|
12
12
|
|
13
13
|
let treeView = getTreeViewContext();
|
14
14
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
{#if asChild}
|
19
19
|
{@render asChild(mergedProps)}
|
20
20
|
{:else}
|
21
|
-
<div {...mergedProps}>
|
21
|
+
<div bind:this={e} {...mergedProps}>
|
22
22
|
{@render children?.()}
|
23
23
|
</div>
|
24
24
|
{/if}
|
package/dist/types.d.ts
CHANGED
@@ -15,7 +15,8 @@ export type AsChild<Ref extends Action, Context = never> = [Ref] extends [never]
|
|
15
15
|
type Children<T = never> = [T] extends [never] ? Snippet : Snippet<[context: T]>;
|
16
16
|
type PropsWithoutChildren<T> = Omit<T, 'children'>;
|
17
17
|
export type HtmlIngredientProps<Element extends IntrinsicElement, Context = never, Ref extends Action = never> = PropsWithoutChildren<HtmlProps<Element>> & {
|
18
|
-
|
18
|
+
this?: any;
|
19
19
|
asChild?: AsChild<Ref, Context>;
|
20
|
+
children?: Children<Context>;
|
20
21
|
};
|
21
22
|
export {};
|
package/package.json
CHANGED
@@ -1,175 +1,176 @@
|
|
1
|
-
{
|
2
|
-
"name": "ui-ingredients",
|
3
|
-
"type": "module",
|
4
|
-
"version": "0.0.
|
5
|
-
"packageManager": "pnpm@9.7.0",
|
6
|
-
"svelte": "./dist/index.js",
|
7
|
-
"types": "./dist/index.d.ts",
|
8
|
-
"exports": {
|
9
|
-
".": {
|
10
|
-
"types": "./dist/index.d.ts",
|
11
|
-
"svelte": "./dist/index.js"
|
12
|
-
}
|
13
|
-
},
|
14
|
-
"files": [
|
15
|
-
"dist",
|
16
|
-
"!dist/**/*.test.*",
|
17
|
-
"!dist/**/*.spec.*"
|
18
|
-
],
|
19
|
-
"author": {
|
20
|
-
"name": "John Paul Calvo",
|
21
|
-
"email": "calvojp92@gmail.com"
|
22
|
-
},
|
23
|
-
"repository": {
|
24
|
-
"type": "git",
|
25
|
-
"url": "git+https://github.com/calvo-jp/ui-ingredients.git",
|
26
|
-
"directory": "packages/ui-ingredients"
|
27
|
-
},
|
28
|
-
"bugs": {
|
29
|
-
"url": "https://github.com/calvo-jp/ui-ingredients/issues",
|
30
|
-
"email": "calvojp92@gmail.com"
|
31
|
-
},
|
32
|
-
"description": "Headless component library for Svelte powered by zag",
|
33
|
-
"keywords": [
|
34
|
-
"Svelte",
|
35
|
-
"Component Library",
|
36
|
-
"Headless",
|
37
|
-
"Accordion",
|
38
|
-
"Avatar",
|
39
|
-
"Carousel",
|
40
|
-
"Checkbox",
|
41
|
-
"Clipboard",
|
42
|
-
"Collapsible",
|
43
|
-
"Color Picker",
|
44
|
-
"Combobox",
|
45
|
-
"Date Picker",
|
46
|
-
"Dialog",
|
47
|
-
"Editable",
|
48
|
-
"File Upload",
|
49
|
-
"Hover Card",
|
50
|
-
"Menu",
|
51
|
-
"Number Input",
|
52
|
-
"Pagination",
|
53
|
-
"Pin Input",
|
54
|
-
"Popover",
|
55
|
-
"Presence",
|
56
|
-
"Progress",
|
57
|
-
"QR Code",
|
58
|
-
"Radio Group",
|
59
|
-
"Rating Group",
|
60
|
-
"Select",
|
61
|
-
"Signature Pad",
|
62
|
-
"Slider",
|
63
|
-
"Splitter",
|
64
|
-
"Steps",
|
65
|
-
"Switch",
|
66
|
-
"Tabs",
|
67
|
-
"Tags Input",
|
68
|
-
"Timer",
|
69
|
-
"Toast",
|
70
|
-
"Toggle Group",
|
71
|
-
"Tooltip"
|
72
|
-
],
|
73
|
-
"publishConfig": {
|
74
|
-
"access": "public"
|
75
|
-
},
|
76
|
-
"scripts": {
|
77
|
-
"dev": "vite dev",
|
78
|
-
"build": "vite build && npm run package",
|
79
|
-
"preview": "vite preview",
|
80
|
-
"package": "svelte-kit sync && svelte-package && publint",
|
81
|
-
"prepublishOnly": "npm run package",
|
82
|
-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
83
|
-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
84
|
-
"test": "vitest",
|
85
|
-
"release": "release-it"
|
86
|
-
},
|
87
|
-
"dependencies": {
|
88
|
-
"@zag-js/accordion": "0.
|
89
|
-
"@zag-js/anatomy": "0.
|
90
|
-
"@zag-js/avatar": "0.
|
91
|
-
"@zag-js/carousel": "0.
|
92
|
-
"@zag-js/checkbox": "0.
|
93
|
-
"@zag-js/clipboard": "0.
|
94
|
-
"@zag-js/collapsible": "0.
|
95
|
-
"@zag-js/color-picker": "0.
|
96
|
-
"@zag-js/combobox": "0.
|
97
|
-
"@zag-js/date-picker": "0.
|
98
|
-
"@zag-js/dialog": "0.
|
99
|
-
"@zag-js/dom-query": "0.
|
100
|
-
"@zag-js/editable": "0.
|
101
|
-
"@zag-js/file-upload": "0.
|
102
|
-
"@zag-js/floating-panel": "0.
|
103
|
-
"@zag-js/
|
104
|
-
"@zag-js/
|
105
|
-
"@zag-js/
|
106
|
-
"@zag-js/
|
107
|
-
"@zag-js/
|
108
|
-
"@zag-js/
|
109
|
-
"@zag-js/
|
110
|
-
"@zag-js/
|
111
|
-
"@zag-js/
|
112
|
-
"@zag-js/
|
113
|
-
"@zag-js/
|
114
|
-
"@zag-js/
|
115
|
-
"@zag-js/
|
116
|
-
"@zag-js/
|
117
|
-
"@zag-js/
|
118
|
-
"@zag-js/
|
119
|
-
"@zag-js/
|
120
|
-
"@zag-js/
|
121
|
-
"@zag-js/
|
122
|
-
"@zag-js/
|
123
|
-
"@zag-js/
|
124
|
-
"@zag-js/
|
125
|
-
"@zag-js/
|
126
|
-
"@zag-js/
|
127
|
-
"@zag-js/
|
128
|
-
"@zag-js/
|
129
|
-
"@zag-js/
|
130
|
-
"@zag-js/
|
131
|
-
"@zag-js/
|
132
|
-
"
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
"@sveltejs/
|
140
|
-
"@sveltejs/
|
141
|
-
"@sveltejs/
|
142
|
-
"@
|
143
|
-
"
|
144
|
-
"
|
145
|
-
"
|
146
|
-
"
|
147
|
-
"
|
148
|
-
"
|
149
|
-
"svelte
|
150
|
-
"
|
151
|
-
"tailwind-
|
152
|
-
"
|
153
|
-
"
|
154
|
-
"
|
155
|
-
"
|
156
|
-
"vitest
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
"
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
}
|
1
|
+
{
|
2
|
+
"name": "ui-ingredients",
|
3
|
+
"type": "module",
|
4
|
+
"version": "0.0.46",
|
5
|
+
"packageManager": "pnpm@9.7.0",
|
6
|
+
"svelte": "./dist/index.js",
|
7
|
+
"types": "./dist/index.d.ts",
|
8
|
+
"exports": {
|
9
|
+
".": {
|
10
|
+
"types": "./dist/index.d.ts",
|
11
|
+
"svelte": "./dist/index.js"
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"files": [
|
15
|
+
"dist",
|
16
|
+
"!dist/**/*.test.*",
|
17
|
+
"!dist/**/*.spec.*"
|
18
|
+
],
|
19
|
+
"author": {
|
20
|
+
"name": "John Paul Calvo",
|
21
|
+
"email": "calvojp92@gmail.com"
|
22
|
+
},
|
23
|
+
"repository": {
|
24
|
+
"type": "git",
|
25
|
+
"url": "git+https://github.com/calvo-jp/ui-ingredients.git",
|
26
|
+
"directory": "packages/ui-ingredients"
|
27
|
+
},
|
28
|
+
"bugs": {
|
29
|
+
"url": "https://github.com/calvo-jp/ui-ingredients/issues",
|
30
|
+
"email": "calvojp92@gmail.com"
|
31
|
+
},
|
32
|
+
"description": "Headless component library for Svelte powered by zag",
|
33
|
+
"keywords": [
|
34
|
+
"Svelte",
|
35
|
+
"Component Library",
|
36
|
+
"Headless",
|
37
|
+
"Accordion",
|
38
|
+
"Avatar",
|
39
|
+
"Carousel",
|
40
|
+
"Checkbox",
|
41
|
+
"Clipboard",
|
42
|
+
"Collapsible",
|
43
|
+
"Color Picker",
|
44
|
+
"Combobox",
|
45
|
+
"Date Picker",
|
46
|
+
"Dialog",
|
47
|
+
"Editable",
|
48
|
+
"File Upload",
|
49
|
+
"Hover Card",
|
50
|
+
"Menu",
|
51
|
+
"Number Input",
|
52
|
+
"Pagination",
|
53
|
+
"Pin Input",
|
54
|
+
"Popover",
|
55
|
+
"Presence",
|
56
|
+
"Progress",
|
57
|
+
"QR Code",
|
58
|
+
"Radio Group",
|
59
|
+
"Rating Group",
|
60
|
+
"Select",
|
61
|
+
"Signature Pad",
|
62
|
+
"Slider",
|
63
|
+
"Splitter",
|
64
|
+
"Steps",
|
65
|
+
"Switch",
|
66
|
+
"Tabs",
|
67
|
+
"Tags Input",
|
68
|
+
"Timer",
|
69
|
+
"Toast",
|
70
|
+
"Toggle Group",
|
71
|
+
"Tooltip"
|
72
|
+
],
|
73
|
+
"publishConfig": {
|
74
|
+
"access": "public"
|
75
|
+
},
|
76
|
+
"scripts": {
|
77
|
+
"dev": "vite dev",
|
78
|
+
"build": "vite build && npm run package",
|
79
|
+
"preview": "vite preview",
|
80
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
81
|
+
"prepublishOnly": "npm run package",
|
82
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
83
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
84
|
+
"test": "vitest",
|
85
|
+
"release": "release-it"
|
86
|
+
},
|
87
|
+
"dependencies": {
|
88
|
+
"@zag-js/accordion": "0.68.0",
|
89
|
+
"@zag-js/anatomy": "0.68.0",
|
90
|
+
"@zag-js/avatar": "0.68.0",
|
91
|
+
"@zag-js/carousel": "0.68.0",
|
92
|
+
"@zag-js/checkbox": "0.68.0",
|
93
|
+
"@zag-js/clipboard": "0.68.0",
|
94
|
+
"@zag-js/collapsible": "0.68.0",
|
95
|
+
"@zag-js/color-picker": "0.68.0",
|
96
|
+
"@zag-js/combobox": "0.68.0",
|
97
|
+
"@zag-js/date-picker": "0.68.0",
|
98
|
+
"@zag-js/dialog": "0.68.0",
|
99
|
+
"@zag-js/dom-query": "0.68.0",
|
100
|
+
"@zag-js/editable": "0.68.0",
|
101
|
+
"@zag-js/file-upload": "0.68.0",
|
102
|
+
"@zag-js/floating-panel": "0.68.0",
|
103
|
+
"@zag-js/highlight-word": "0.68.0",
|
104
|
+
"@zag-js/hover-card": "0.68.0",
|
105
|
+
"@zag-js/i18n-utils": "0.68.0",
|
106
|
+
"@zag-js/menu": "0.68.0",
|
107
|
+
"@zag-js/number-input": "0.68.0",
|
108
|
+
"@zag-js/pagination": "0.68.0",
|
109
|
+
"@zag-js/pin-input": "0.68.0",
|
110
|
+
"@zag-js/popover": "0.68.0",
|
111
|
+
"@zag-js/presence": "0.68.0",
|
112
|
+
"@zag-js/progress": "0.68.0",
|
113
|
+
"@zag-js/qr-code": "0.68.0",
|
114
|
+
"@zag-js/radio-group": "0.68.0",
|
115
|
+
"@zag-js/rating-group": "0.68.0",
|
116
|
+
"@zag-js/select": "0.68.0",
|
117
|
+
"@zag-js/signature-pad": "0.68.0",
|
118
|
+
"@zag-js/slider": "0.68.0",
|
119
|
+
"@zag-js/splitter": "0.68.0",
|
120
|
+
"@zag-js/steps": "0.68.0",
|
121
|
+
"@zag-js/svelte": "0.68.0",
|
122
|
+
"@zag-js/switch": "0.68.0",
|
123
|
+
"@zag-js/tabs": "0.68.0",
|
124
|
+
"@zag-js/tags-input": "0.68.0",
|
125
|
+
"@zag-js/time-picker": "0.68.0",
|
126
|
+
"@zag-js/timer": "0.68.0",
|
127
|
+
"@zag-js/toast": "0.68.0",
|
128
|
+
"@zag-js/toggle-group": "0.68.0",
|
129
|
+
"@zag-js/tooltip": "0.68.0",
|
130
|
+
"@zag-js/tour": "0.68.0",
|
131
|
+
"@zag-js/tree-view": "0.68.0",
|
132
|
+
"@zag-js/utils": "0.68.0",
|
133
|
+
"uid": "2.0.2"
|
134
|
+
},
|
135
|
+
"peerDependencies": {
|
136
|
+
"svelte": "^5.0.0-next.1"
|
137
|
+
},
|
138
|
+
"devDependencies": {
|
139
|
+
"@sveltejs/adapter-vercel": "5.4.3",
|
140
|
+
"@sveltejs/kit": "2.5.26",
|
141
|
+
"@sveltejs/package": "2.3.4",
|
142
|
+
"@sveltejs/vite-plugin-svelte": "4.0.0-next.6",
|
143
|
+
"@untitled-theme/icons-svelte": "0.10.7",
|
144
|
+
"autoprefixer": "10.4.20",
|
145
|
+
"globals": "15.9.0",
|
146
|
+
"postcss": "8.4.45",
|
147
|
+
"publint": "0.2.10",
|
148
|
+
"release-it": "17.6.0",
|
149
|
+
"svelte": "5.0.0-next.244",
|
150
|
+
"svelte-check": "4.0.2",
|
151
|
+
"tailwind-merge": "2.5.2",
|
152
|
+
"tailwind-variants": "0.2.1",
|
153
|
+
"tailwindcss": "3.4.11",
|
154
|
+
"typescript": "5.6.2",
|
155
|
+
"vite": "5.4.4",
|
156
|
+
"vitest": "2.1.0",
|
157
|
+
"vitest-axe": "0.1.0"
|
158
|
+
},
|
159
|
+
"release-it": {
|
160
|
+
"git": {
|
161
|
+
"commitMessage": "chore: release ${npm.name} v${version}",
|
162
|
+
"tagName": "${npm.name}@${version}"
|
163
|
+
},
|
164
|
+
"github": {
|
165
|
+
"release": false
|
166
|
+
},
|
167
|
+
"hooks": {
|
168
|
+
"before:init": [
|
169
|
+
"pnpm check"
|
170
|
+
],
|
171
|
+
"after:bump": [
|
172
|
+
"pnpm package"
|
173
|
+
]
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|