ui-ingredients 0.0.50 → 0.0.51
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/accordion/item-content.svelte +1 -1
- package/dist/accordion/item-content.svelte.d.ts +1 -1
- package/dist/accordion/item-indicator.svelte +1 -1
- package/dist/accordion/item-indicator.svelte.d.ts +1 -1
- package/dist/accordion/item-trigger.svelte +1 -1
- package/dist/accordion/item-trigger.svelte.d.ts +1 -1
- package/dist/accordion/item.svelte +4 -1
- package/dist/accordion/item.svelte.d.ts +1 -1
- package/dist/accordion/root.svelte +1 -1
- package/dist/accordion/root.svelte.d.ts +1 -1
- package/dist/avatar/fallback.svelte +2 -1
- package/dist/avatar/fallback.svelte.d.ts +1 -1
- package/dist/avatar/image.svelte +2 -1
- package/dist/avatar/image.svelte.d.ts +1 -1
- package/dist/avatar/root.svelte +1 -1
- package/dist/avatar/root.svelte.d.ts +1 -1
- package/dist/carousel/indicator-group.svelte +1 -1
- package/dist/carousel/indicator-group.svelte.d.ts +1 -1
- package/dist/carousel/indicator.svelte +4 -1
- package/dist/carousel/indicator.svelte.d.ts +1 -1
- package/dist/carousel/item-group.svelte +2 -1
- package/dist/carousel/item-group.svelte.d.ts +1 -1
- package/dist/carousel/item.svelte +4 -1
- package/dist/carousel/item.svelte.d.ts +1 -1
- package/dist/carousel/next-trigger.svelte +1 -1
- package/dist/carousel/next-trigger.svelte.d.ts +1 -1
- package/dist/carousel/prev-trigger.svelte +1 -1
- package/dist/carousel/prev-trigger.svelte.d.ts +1 -1
- package/dist/carousel/root.svelte +1 -1
- package/dist/carousel/root.svelte.d.ts +1 -1
- package/dist/carousel/viewport.svelte +2 -1
- package/dist/carousel/viewport.svelte.d.ts +1 -1
- package/dist/checkbox/control.svelte +2 -1
- package/dist/checkbox/control.svelte.d.ts +1 -1
- package/dist/checkbox/hidden-input.svelte +1 -1
- package/dist/checkbox/hidden-input.svelte.d.ts +1 -1
- package/dist/checkbox/indicator.svelte +2 -1
- package/dist/checkbox/indicator.svelte.d.ts +1 -1
- package/dist/checkbox/label.svelte +2 -1
- package/dist/checkbox/label.svelte.d.ts +1 -1
- package/dist/checkbox/root.svelte +1 -1
- package/dist/checkbox/root.svelte.d.ts +1 -1
- package/dist/clipboard/control.svelte +2 -1
- package/dist/clipboard/control.svelte.d.ts +1 -1
- package/dist/clipboard/indicator.svelte +4 -1
- package/dist/clipboard/indicator.svelte.d.ts +1 -1
- package/dist/clipboard/input.svelte +2 -1
- package/dist/clipboard/input.svelte.d.ts +1 -1
- package/dist/clipboard/label.svelte +2 -1
- package/dist/clipboard/label.svelte.d.ts +1 -1
- package/dist/clipboard/root.svelte +1 -1
- package/dist/clipboard/root.svelte.d.ts +1 -1
- package/dist/clipboard/trigger.svelte +1 -1
- package/dist/clipboard/trigger.svelte.d.ts +1 -1
- package/dist/collapsible/content.svelte +2 -1
- package/dist/collapsible/content.svelte.d.ts +1 -1
- package/dist/collapsible/root.svelte +1 -1
- package/dist/collapsible/root.svelte.d.ts +1 -1
- package/dist/collapsible/trigger.svelte +1 -1
- package/dist/collapsible/trigger.svelte.d.ts +1 -1
- package/dist/color-picker/area-background.svelte +14 -5
- package/dist/color-picker/area-background.svelte.d.ts +1 -1
- package/dist/color-picker/area-thumb.svelte +14 -5
- package/dist/color-picker/area-thumb.svelte.d.ts +1 -1
- package/dist/color-picker/area.svelte +16 -5
- package/dist/color-picker/area.svelte.d.ts +1 -1
- package/dist/color-picker/channel-input.svelte +16 -3
- package/dist/color-picker/channel-input.svelte.d.ts +1 -1
- package/dist/color-picker/channel-slider-label.svelte +10 -4
- package/dist/color-picker/channel-slider-label.svelte.d.ts +1 -1
- package/dist/color-picker/channel-slider-thumb.svelte +14 -5
- package/dist/color-picker/channel-slider-thumb.svelte.d.ts +1 -1
- package/dist/color-picker/channel-slider-track.svelte +14 -5
- package/dist/color-picker/channel-slider-track.svelte.d.ts +1 -1
- package/dist/color-picker/channel-slider-value-text.svelte +21 -9
- package/dist/color-picker/channel-slider-value-text.svelte.d.ts +1 -1
- package/dist/color-picker/channel-slider.svelte +13 -4
- package/dist/color-picker/channel-slider.svelte.d.ts +1 -1
- package/dist/color-picker/content.svelte +14 -5
- package/dist/color-picker/content.svelte.d.ts +1 -1
- package/dist/color-picker/control.svelte +15 -5
- package/dist/color-picker/control.svelte.d.ts +1 -1
- package/dist/color-picker/eye-dropper-trigger.svelte +14 -5
- package/dist/color-picker/eye-dropper-trigger.svelte.d.ts +1 -1
- package/dist/color-picker/format-select.svelte +20 -11
- package/dist/color-picker/format-select.svelte.d.ts +1 -1
- package/dist/color-picker/format-trigger.svelte +14 -5
- package/dist/color-picker/format-trigger.svelte.d.ts +1 -1
- package/dist/color-picker/hidden-input.svelte +7 -3
- package/dist/color-picker/hidden-input.svelte.d.ts +1 -1
- package/dist/color-picker/label.svelte +10 -5
- package/dist/color-picker/label.svelte.d.ts +1 -1
- package/dist/color-picker/positioner.svelte +14 -5
- package/dist/color-picker/positioner.svelte.d.ts +1 -1
- package/dist/color-picker/root.svelte +9 -5
- package/dist/color-picker/root.svelte.d.ts +1 -1
- package/dist/color-picker/swatch-group.svelte +14 -5
- package/dist/color-picker/swatch-group.svelte.d.ts +1 -1
- package/dist/color-picker/swatch-indicator.svelte +14 -5
- package/dist/color-picker/swatch-indicator.svelte.d.ts +1 -1
- package/dist/color-picker/swatch-trigger.svelte +15 -5
- package/dist/color-picker/swatch-trigger.svelte.d.ts +1 -1
- package/dist/color-picker/swatch.svelte +16 -6
- package/dist/color-picker/swatch.svelte.d.ts +1 -1
- package/dist/color-picker/transparency-grid.svelte +18 -5
- package/dist/color-picker/transparency-grid.svelte.d.ts +1 -1
- package/dist/color-picker/trigger.svelte +14 -5
- package/dist/color-picker/trigger.svelte.d.ts +1 -1
- package/dist/color-picker/value-text.svelte +18 -9
- package/dist/color-picker/value-text.svelte.d.ts +1 -1
- package/dist/combobox/clear-trigger.svelte +1 -1
- package/dist/combobox/clear-trigger.svelte.d.ts +1 -1
- package/dist/combobox/content.svelte +1 -1
- package/dist/combobox/content.svelte.d.ts +1 -1
- package/dist/combobox/control.svelte +2 -1
- package/dist/combobox/control.svelte.d.ts +1 -1
- package/dist/combobox/input.svelte +2 -1
- package/dist/combobox/input.svelte.d.ts +1 -1
- package/dist/combobox/item-group-label.svelte +1 -1
- package/dist/combobox/item-group-label.svelte.d.ts +1 -1
- package/dist/combobox/item-group.svelte +2 -1
- package/dist/combobox/item-group.svelte.d.ts +1 -1
- package/dist/combobox/item-indicator.svelte +1 -1
- package/dist/combobox/item-indicator.svelte.d.ts +1 -1
- package/dist/combobox/item-text.svelte +2 -1
- package/dist/combobox/item-text.svelte.d.ts +1 -1
- package/dist/combobox/item.svelte +4 -1
- package/dist/combobox/item.svelte.d.ts +1 -1
- package/dist/combobox/label.svelte +2 -1
- package/dist/combobox/label.svelte.d.ts +1 -1
- package/dist/combobox/list.svelte +2 -1
- package/dist/combobox/list.svelte.d.ts +1 -1
- package/dist/combobox/positioner.svelte +2 -1
- package/dist/combobox/positioner.svelte.d.ts +1 -1
- package/dist/combobox/root.svelte +1 -1
- package/dist/combobox/root.svelte.d.ts +1 -1
- package/dist/combobox/trigger.svelte +2 -1
- package/dist/combobox/trigger.svelte.d.ts +1 -1
- package/dist/date-picker/clear-trigger.svelte +1 -1
- package/dist/date-picker/clear-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/content.svelte +1 -1
- package/dist/date-picker/content.svelte.d.ts +1 -1
- package/dist/date-picker/control.svelte +2 -1
- package/dist/date-picker/control.svelte.d.ts +1 -1
- package/dist/date-picker/create-date-picker.svelte.js +2 -2
- package/dist/date-picker/day-table-cell-trigger.svelte +1 -1
- package/dist/date-picker/day-table-cell-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/day-table-cell.svelte +1 -1
- package/dist/date-picker/day-table-cell.svelte.d.ts +1 -1
- package/dist/date-picker/input.svelte +4 -1
- package/dist/date-picker/input.svelte.d.ts +1 -1
- package/dist/date-picker/label.svelte +4 -1
- package/dist/date-picker/label.svelte.d.ts +1 -1
- package/dist/date-picker/month-select.svelte +1 -1
- package/dist/date-picker/month-select.svelte.d.ts +1 -1
- package/dist/date-picker/month-table-cell-trigger.svelte +1 -1
- package/dist/date-picker/month-table-cell-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/month-table-cell.svelte +4 -1
- package/dist/date-picker/month-table-cell.svelte.d.ts +1 -1
- package/dist/date-picker/next-trigger.svelte +1 -1
- package/dist/date-picker/next-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/positioner.svelte +1 -1
- package/dist/date-picker/positioner.svelte.d.ts +1 -1
- package/dist/date-picker/preset-trigger.svelte +4 -1
- package/dist/date-picker/preset-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/prev-trigger.svelte +1 -1
- package/dist/date-picker/prev-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/range-text.svelte +1 -1
- package/dist/date-picker/range-text.svelte.d.ts +1 -1
- package/dist/date-picker/root.svelte +1 -1
- package/dist/date-picker/root.svelte.d.ts +1 -1
- package/dist/date-picker/table-body.svelte +1 -1
- package/dist/date-picker/table-body.svelte.d.ts +1 -1
- package/dist/date-picker/table-head.svelte +1 -1
- package/dist/date-picker/table-head.svelte.d.ts +1 -1
- package/dist/date-picker/table-header.svelte +1 -1
- package/dist/date-picker/table-header.svelte.d.ts +1 -1
- package/dist/date-picker/table-row.svelte +2 -1
- package/dist/date-picker/table-row.svelte.d.ts +1 -1
- package/dist/date-picker/table.svelte +4 -1
- package/dist/date-picker/table.svelte.d.ts +1 -1
- package/dist/date-picker/trigger.svelte +1 -1
- package/dist/date-picker/trigger.svelte.d.ts +1 -1
- package/dist/date-picker/view-control.svelte +1 -1
- package/dist/date-picker/view-control.svelte.d.ts +1 -1
- package/dist/date-picker/view-trigger.svelte +1 -1
- package/dist/date-picker/view-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/view.svelte +1 -1
- package/dist/date-picker/view.svelte.d.ts +1 -1
- package/dist/date-picker/year-select.svelte +1 -1
- package/dist/date-picker/year-select.svelte.d.ts +1 -1
- package/dist/date-picker/year-table-cell-trigger.svelte +1 -1
- package/dist/date-picker/year-table-cell-trigger.svelte.d.ts +1 -1
- package/dist/date-picker/year-table-cell.svelte +4 -1
- package/dist/date-picker/year-table-cell.svelte.d.ts +1 -1
- package/dist/dialog/backdrop.svelte +1 -1
- package/dist/dialog/backdrop.svelte.d.ts +1 -1
- package/dist/dialog/close-trigger.svelte +1 -1
- package/dist/dialog/close-trigger.svelte.d.ts +1 -1
- package/dist/dialog/content.svelte +1 -1
- package/dist/dialog/content.svelte.d.ts +1 -1
- package/dist/dialog/description.svelte +2 -1
- package/dist/dialog/description.svelte.d.ts +1 -1
- package/dist/dialog/positioner.svelte +2 -1
- package/dist/dialog/positioner.svelte.d.ts +1 -1
- package/dist/dialog/title.svelte +2 -1
- package/dist/dialog/title.svelte.d.ts +1 -1
- package/dist/dialog/trigger.svelte +2 -1
- package/dist/dialog/trigger.svelte.d.ts +1 -1
- package/dist/editable/area.svelte +2 -1
- package/dist/editable/area.svelte.d.ts +1 -1
- package/dist/editable/cancel-trigger.svelte +1 -1
- package/dist/editable/cancel-trigger.svelte.d.ts +1 -1
- package/dist/editable/control.svelte +2 -1
- package/dist/editable/control.svelte.d.ts +1 -1
- package/dist/editable/edit-trigger.svelte +1 -1
- package/dist/editable/edit-trigger.svelte.d.ts +1 -1
- package/dist/editable/input.svelte +2 -1
- package/dist/editable/input.svelte.d.ts +1 -1
- package/dist/editable/label.svelte +2 -1
- package/dist/editable/label.svelte.d.ts +1 -1
- package/dist/editable/preview.svelte +2 -1
- package/dist/editable/preview.svelte.d.ts +1 -1
- package/dist/editable/root.svelte +1 -1
- package/dist/editable/root.svelte.d.ts +1 -1
- package/dist/editable/submit-trigger.svelte +1 -1
- package/dist/editable/submit-trigger.svelte.d.ts +1 -1
- package/dist/field/error-text.svelte +2 -1
- package/dist/field/error-text.svelte.d.ts +1 -1
- package/dist/field/helper-text.svelte +2 -1
- package/dist/field/helper-text.svelte.d.ts +1 -1
- package/dist/field/input.svelte +2 -1
- package/dist/field/input.svelte.d.ts +1 -1
- package/dist/field/label.svelte +2 -1
- package/dist/field/label.svelte.d.ts +1 -1
- package/dist/field/root.svelte +1 -1
- package/dist/field/root.svelte.d.ts +1 -1
- package/dist/field/select.svelte +2 -1
- package/dist/field/select.svelte.d.ts +1 -1
- package/dist/field/textarea.svelte +2 -1
- package/dist/field/textarea.svelte.d.ts +1 -1
- package/dist/file-upload/dropzone.svelte +2 -1
- package/dist/file-upload/dropzone.svelte.d.ts +1 -1
- package/dist/file-upload/hidden-input.svelte +1 -1
- package/dist/file-upload/hidden-input.svelte.d.ts +1 -1
- package/dist/file-upload/item-delete-trigger.svelte +1 -1
- package/dist/file-upload/item-delete-trigger.svelte.d.ts +1 -1
- package/dist/file-upload/item-group.svelte +1 -1
- package/dist/file-upload/item-group.svelte.d.ts +1 -1
- package/dist/file-upload/item-name.svelte +1 -1
- package/dist/file-upload/item-name.svelte.d.ts +1 -1
- package/dist/file-upload/item-preview-image.svelte +1 -1
- package/dist/file-upload/item-preview-image.svelte.d.ts +1 -1
- package/dist/file-upload/item-preview.svelte +1 -1
- package/dist/file-upload/item-preview.svelte.d.ts +1 -1
- package/dist/file-upload/item-size-text.svelte +1 -1
- package/dist/file-upload/item-size-text.svelte.d.ts +1 -1
- package/dist/file-upload/item.svelte +1 -1
- package/dist/file-upload/item.svelte.d.ts +1 -1
- package/dist/file-upload/label.svelte +2 -1
- package/dist/file-upload/label.svelte.d.ts +1 -1
- package/dist/file-upload/root.svelte +1 -1
- package/dist/file-upload/root.svelte.d.ts +1 -1
- package/dist/file-upload/trigger.svelte +1 -1
- package/dist/file-upload/trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/body.svelte +2 -1
- package/dist/floating-panel/body.svelte.d.ts +1 -1
- package/dist/floating-panel/close-trigger.svelte +1 -1
- package/dist/floating-panel/close-trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/content.svelte +1 -1
- package/dist/floating-panel/content.svelte.d.ts +1 -1
- package/dist/floating-panel/drag-trigger.svelte +1 -1
- package/dist/floating-panel/drag-trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/header.svelte +1 -1
- package/dist/floating-panel/header.svelte.d.ts +1 -1
- package/dist/floating-panel/maximize-trigger.svelte +1 -1
- package/dist/floating-panel/maximize-trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/minimize-trigger.svelte +1 -1
- package/dist/floating-panel/minimize-trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/positioner.svelte +1 -1
- package/dist/floating-panel/positioner.svelte.d.ts +1 -1
- package/dist/floating-panel/resize-trigger.svelte +4 -1
- package/dist/floating-panel/resize-trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/restore-trigger.svelte +1 -1
- package/dist/floating-panel/restore-trigger.svelte.d.ts +1 -1
- package/dist/floating-panel/title.svelte +1 -1
- package/dist/floating-panel/title.svelte.d.ts +1 -1
- package/dist/floating-panel/trigger.svelte +1 -1
- package/dist/floating-panel/trigger.svelte.d.ts +1 -1
- package/dist/highlight/highlight.svelte +1 -1
- package/dist/highlight/highlight.svelte.d.ts +1 -1
- package/dist/hover-card/arrow-tip.svelte +2 -1
- package/dist/hover-card/arrow-tip.svelte.d.ts +1 -1
- package/dist/hover-card/arrow.svelte +2 -1
- package/dist/hover-card/arrow.svelte.d.ts +1 -1
- package/dist/hover-card/content.svelte +1 -1
- package/dist/hover-card/content.svelte.d.ts +1 -1
- package/dist/hover-card/positioner.svelte +1 -1
- package/dist/hover-card/positioner.svelte.d.ts +1 -1
- package/dist/hover-card/trigger.svelte +2 -1
- package/dist/hover-card/trigger.svelte.d.ts +1 -1
- package/dist/menu/arrow-tip.svelte +2 -1
- package/dist/menu/arrow-tip.svelte.d.ts +1 -1
- package/dist/menu/arrow.svelte +2 -1
- package/dist/menu/arrow.svelte.d.ts +1 -1
- package/dist/menu/content.svelte +1 -1
- package/dist/menu/content.svelte.d.ts +1 -1
- package/dist/menu/context-trigger.svelte +1 -1
- package/dist/menu/context-trigger.svelte.d.ts +1 -1
- package/dist/menu/indicator.svelte +2 -1
- package/dist/menu/indicator.svelte.d.ts +1 -1
- package/dist/menu/item-group-label.svelte +1 -1
- package/dist/menu/item-group-label.svelte.d.ts +1 -1
- package/dist/menu/item-group.svelte +2 -1
- package/dist/menu/item-group.svelte.d.ts +1 -1
- package/dist/menu/item.svelte +4 -1
- package/dist/menu/item.svelte.d.ts +1 -1
- package/dist/menu/option-item-indicator.svelte +1 -1
- package/dist/menu/option-item-indicator.svelte.d.ts +1 -1
- package/dist/menu/option-item-text.svelte +1 -1
- package/dist/menu/option-item-text.svelte.d.ts +1 -1
- package/dist/menu/option-item.svelte +1 -1
- package/dist/menu/option-item.svelte.d.ts +1 -1
- package/dist/menu/positioner.svelte +2 -1
- package/dist/menu/positioner.svelte.d.ts +1 -1
- package/dist/menu/separator.svelte +2 -1
- package/dist/menu/separator.svelte.d.ts +1 -1
- package/dist/menu/trigger-item.svelte +1 -1
- package/dist/menu/trigger-item.svelte.d.ts +1 -1
- package/dist/menu/trigger.svelte +2 -1
- package/dist/menu/trigger.svelte.d.ts +1 -1
- package/dist/number-input/control.svelte +1 -1
- package/dist/number-input/control.svelte.d.ts +1 -1
- package/dist/number-input/decrement-trigger.svelte +1 -1
- package/dist/number-input/decrement-trigger.svelte.d.ts +1 -1
- package/dist/number-input/increment-trigger.svelte +1 -1
- package/dist/number-input/increment-trigger.svelte.d.ts +1 -1
- package/dist/number-input/input.svelte +2 -1
- package/dist/number-input/input.svelte.d.ts +1 -1
- package/dist/number-input/label.svelte +2 -1
- package/dist/number-input/label.svelte.d.ts +1 -1
- package/dist/number-input/root.svelte +1 -1
- package/dist/number-input/root.svelte.d.ts +1 -1
- package/dist/number-input/scrubber.svelte +1 -1
- package/dist/number-input/scrubber.svelte.d.ts +1 -1
- package/dist/pagination/ellipsis.svelte +4 -1
- package/dist/pagination/ellipsis.svelte.d.ts +1 -1
- package/dist/pagination/item.svelte +4 -1
- package/dist/pagination/item.svelte.d.ts +1 -1
- package/dist/pagination/next-trigger.svelte +1 -1
- package/dist/pagination/next-trigger.svelte.d.ts +1 -1
- package/dist/pagination/prev-trigger.svelte +1 -1
- package/dist/pagination/prev-trigger.svelte.d.ts +1 -1
- package/dist/pagination/root.svelte +1 -1
- package/dist/pagination/root.svelte.d.ts +1 -1
- package/dist/pin-input/clear-trigger.svelte +1 -1
- package/dist/pin-input/clear-trigger.svelte.d.ts +1 -1
- package/dist/pin-input/hidden-input.svelte +1 -1
- package/dist/pin-input/hidden-input.svelte.d.ts +1 -1
- package/dist/pin-input/input.svelte +4 -1
- package/dist/pin-input/input.svelte.d.ts +1 -1
- package/dist/pin-input/label.svelte +2 -1
- package/dist/pin-input/label.svelte.d.ts +1 -1
- package/dist/pin-input/root.svelte +1 -1
- package/dist/pin-input/root.svelte.d.ts +1 -1
- package/dist/popover/arrow-tip.svelte +2 -1
- package/dist/popover/arrow-tip.svelte.d.ts +1 -1
- package/dist/popover/arrow.svelte +2 -1
- package/dist/popover/arrow.svelte.d.ts +1 -1
- package/dist/popover/close-trigger.svelte +1 -1
- package/dist/popover/close-trigger.svelte.d.ts +1 -1
- package/dist/popover/content.svelte +1 -1
- package/dist/popover/content.svelte.d.ts +1 -1
- package/dist/popover/description.svelte +2 -1
- package/dist/popover/description.svelte.d.ts +1 -1
- package/dist/popover/positioner.svelte +2 -1
- package/dist/popover/positioner.svelte.d.ts +1 -1
- package/dist/popover/title.svelte +2 -1
- package/dist/popover/title.svelte.d.ts +1 -1
- package/dist/popover/trigger.svelte +2 -1
- package/dist/popover/trigger.svelte.d.ts +1 -1
- package/dist/presence/root.svelte +1 -1
- package/dist/presence/root.svelte.d.ts +1 -1
- package/dist/progress/circle-range.svelte +1 -1
- package/dist/progress/circle-range.svelte.d.ts +1 -1
- package/dist/progress/circle-track.svelte +1 -1
- package/dist/progress/circle-track.svelte.d.ts +1 -1
- package/dist/progress/circle.svelte +2 -1
- package/dist/progress/circle.svelte.d.ts +1 -1
- package/dist/progress/label.svelte +2 -1
- package/dist/progress/label.svelte.d.ts +1 -1
- package/dist/progress/range.svelte +2 -1
- package/dist/progress/range.svelte.d.ts +1 -1
- package/dist/progress/root.svelte +1 -1
- package/dist/progress/root.svelte.d.ts +1 -1
- package/dist/progress/track.svelte +2 -1
- package/dist/progress/track.svelte.d.ts +1 -1
- package/dist/progress/value-text.svelte +2 -1
- package/dist/progress/value-text.svelte.d.ts +1 -1
- package/dist/progress/view.svelte +1 -1
- package/dist/progress/view.svelte.d.ts +1 -1
- package/dist/qr-code/frame.svelte +2 -1
- package/dist/qr-code/frame.svelte.d.ts +1 -1
- package/dist/qr-code/overlay.svelte +2 -1
- package/dist/qr-code/overlay.svelte.d.ts +1 -1
- package/dist/qr-code/pattern.svelte +2 -1
- package/dist/qr-code/pattern.svelte.d.ts +1 -1
- package/dist/qr-code/root.svelte +1 -1
- package/dist/qr-code/root.svelte.d.ts +1 -1
- package/dist/radio-group/indicator.svelte +1 -1
- package/dist/radio-group/indicator.svelte.d.ts +1 -1
- package/dist/radio-group/item-control.svelte +1 -1
- package/dist/radio-group/item-control.svelte.d.ts +1 -1
- package/dist/radio-group/item-hidden-input.svelte +1 -1
- package/dist/radio-group/item-hidden-input.svelte.d.ts +1 -1
- package/dist/radio-group/item-text.svelte +1 -1
- package/dist/radio-group/item-text.svelte.d.ts +1 -1
- package/dist/radio-group/item.svelte +4 -1
- package/dist/radio-group/item.svelte.d.ts +1 -1
- package/dist/radio-group/label.svelte +2 -1
- package/dist/radio-group/label.svelte.d.ts +1 -1
- package/dist/radio-group/root.svelte +1 -1
- package/dist/radio-group/root.svelte.d.ts +1 -1
- package/dist/rating-group/control.svelte +2 -1
- package/dist/rating-group/control.svelte.d.ts +1 -1
- package/dist/rating-group/hidden-input.svelte +1 -1
- package/dist/rating-group/hidden-input.svelte.d.ts +1 -1
- package/dist/rating-group/item.svelte +4 -1
- package/dist/rating-group/item.svelte.d.ts +1 -1
- package/dist/rating-group/label.svelte +2 -1
- package/dist/rating-group/label.svelte.d.ts +1 -1
- package/dist/rating-group/root.svelte +1 -1
- package/dist/rating-group/root.svelte.d.ts +1 -1
- package/dist/segment-group/indicator.svelte +1 -1
- package/dist/segment-group/indicator.svelte.d.ts +1 -1
- package/dist/segment-group/item-control.svelte +1 -1
- package/dist/segment-group/item-control.svelte.d.ts +1 -1
- package/dist/segment-group/item-hidden-input.svelte +1 -1
- package/dist/segment-group/item-hidden-input.svelte.d.ts +1 -1
- package/dist/segment-group/item-text.svelte +1 -1
- package/dist/segment-group/item-text.svelte.d.ts +1 -1
- package/dist/segment-group/item.svelte +4 -1
- package/dist/segment-group/item.svelte.d.ts +1 -1
- package/dist/segment-group/label.svelte +2 -1
- package/dist/segment-group/label.svelte.d.ts +1 -1
- package/dist/segment-group/root.svelte +1 -1
- package/dist/segment-group/root.svelte.d.ts +1 -1
- package/dist/select/clear-trigger.svelte +1 -1
- package/dist/select/clear-trigger.svelte.d.ts +1 -1
- package/dist/select/content.svelte +1 -1
- package/dist/select/content.svelte.d.ts +1 -1
- package/dist/select/control.svelte +2 -1
- package/dist/select/control.svelte.d.ts +1 -1
- package/dist/select/hidden-select.svelte +1 -1
- package/dist/select/hidden-select.svelte.d.ts +1 -1
- package/dist/select/indicator.svelte +2 -1
- package/dist/select/indicator.svelte.d.ts +1 -1
- package/dist/select/item-group-label.svelte +1 -1
- package/dist/select/item-group-label.svelte.d.ts +1 -1
- package/dist/select/item-group.svelte +2 -1
- package/dist/select/item-group.svelte.d.ts +1 -1
- package/dist/select/item-indicator.svelte +1 -1
- package/dist/select/item-indicator.svelte.d.ts +1 -1
- package/dist/select/item-text.svelte +2 -1
- package/dist/select/item-text.svelte.d.ts +1 -1
- package/dist/select/item.svelte +4 -1
- package/dist/select/item.svelte.d.ts +1 -1
- package/dist/select/label.svelte +2 -1
- package/dist/select/label.svelte.d.ts +1 -1
- package/dist/select/list.svelte +2 -1
- package/dist/select/list.svelte.d.ts +1 -1
- package/dist/select/positioner.svelte +2 -1
- package/dist/select/positioner.svelte.d.ts +1 -1
- package/dist/select/root.svelte +1 -1
- package/dist/select/root.svelte.d.ts +1 -1
- package/dist/select/trigger.svelte +2 -1
- package/dist/select/trigger.svelte.d.ts +1 -1
- package/dist/select/value-text.svelte +2 -1
- package/dist/select/value-text.svelte.d.ts +1 -1
- package/dist/signature-pad/clear-trigger.svelte +1 -1
- package/dist/signature-pad/clear-trigger.svelte.d.ts +1 -1
- package/dist/signature-pad/control.svelte +1 -1
- package/dist/signature-pad/control.svelte.d.ts +1 -1
- package/dist/signature-pad/current-segment-path.svelte +1 -1
- package/dist/signature-pad/current-segment-path.svelte.d.ts +1 -1
- package/dist/signature-pad/guide.svelte +2 -1
- package/dist/signature-pad/guide.svelte.d.ts +1 -1
- package/dist/signature-pad/hidden-input.svelte +4 -1
- package/dist/signature-pad/hidden-input.svelte.d.ts +1 -1
- package/dist/signature-pad/label.svelte +1 -1
- package/dist/signature-pad/label.svelte.d.ts +1 -1
- package/dist/signature-pad/root.svelte +1 -1
- package/dist/signature-pad/root.svelte.d.ts +1 -1
- package/dist/signature-pad/segment-path.svelte +4 -1
- package/dist/signature-pad/segment-path.svelte.d.ts +1 -1
- package/dist/signature-pad/segment.svelte +1 -1
- package/dist/signature-pad/segment.svelte.d.ts +1 -1
- package/dist/slider/control.svelte +2 -1
- package/dist/slider/control.svelte.d.ts +1 -1
- package/dist/slider/hidden-input.svelte +1 -1
- package/dist/slider/hidden-input.svelte.d.ts +1 -1
- package/dist/slider/label.svelte +2 -1
- package/dist/slider/label.svelte.d.ts +1 -1
- package/dist/slider/marker-group.svelte +2 -1
- package/dist/slider/marker-group.svelte.d.ts +1 -1
- package/dist/slider/marker.svelte +1 -1
- package/dist/slider/marker.svelte.d.ts +1 -1
- package/dist/slider/range.svelte +2 -1
- package/dist/slider/range.svelte.d.ts +1 -1
- package/dist/slider/root.svelte +1 -1
- package/dist/slider/root.svelte.d.ts +1 -1
- package/dist/slider/thumb.svelte +1 -1
- package/dist/slider/thumb.svelte.d.ts +1 -1
- package/dist/slider/track.svelte +2 -1
- package/dist/slider/track.svelte.d.ts +1 -1
- package/dist/slider/value-text.svelte +2 -1
- package/dist/slider/value-text.svelte.d.ts +1 -1
- package/dist/splitter/panel.svelte +1 -1
- package/dist/splitter/panel.svelte.d.ts +1 -1
- package/dist/splitter/resize-trigger.svelte +1 -1
- package/dist/splitter/resize-trigger.svelte.d.ts +1 -1
- package/dist/splitter/root.svelte +1 -1
- package/dist/splitter/root.svelte.d.ts +1 -1
- package/dist/steps/completed-content.svelte +1 -1
- package/dist/steps/completed-content.svelte.d.ts +1 -1
- package/dist/steps/content.svelte +1 -1
- package/dist/steps/content.svelte.d.ts +1 -1
- package/dist/steps/indicator.svelte +2 -1
- package/dist/steps/indicator.svelte.d.ts +1 -1
- package/dist/steps/item.svelte +4 -1
- package/dist/steps/item.svelte.d.ts +1 -1
- package/dist/steps/list.svelte +2 -1
- package/dist/steps/list.svelte.d.ts +1 -1
- package/dist/steps/next-trigger.svelte +1 -1
- package/dist/steps/next-trigger.svelte.d.ts +1 -1
- package/dist/steps/prev-trigger.svelte +1 -1
- package/dist/steps/prev-trigger.svelte.d.ts +1 -1
- package/dist/steps/progress.svelte +2 -1
- package/dist/steps/progress.svelte.d.ts +1 -1
- package/dist/steps/root.svelte +1 -1
- package/dist/steps/root.svelte.d.ts +1 -1
- package/dist/steps/separator.svelte +2 -1
- package/dist/steps/separator.svelte.d.ts +1 -1
- package/dist/steps/trigger.svelte +2 -1
- package/dist/steps/trigger.svelte.d.ts +1 -1
- package/dist/switch/control.svelte +2 -1
- package/dist/switch/control.svelte.d.ts +1 -1
- package/dist/switch/hidden-input.svelte +1 -1
- package/dist/switch/hidden-input.svelte.d.ts +1 -1
- package/dist/switch/label.svelte +2 -1
- package/dist/switch/label.svelte.d.ts +1 -1
- package/dist/switch/root.svelte +1 -1
- package/dist/switch/root.svelte.d.ts +1 -1
- package/dist/switch/thumb.svelte +2 -1
- package/dist/switch/thumb.svelte.d.ts +1 -1
- package/dist/tabs/content.svelte +1 -1
- package/dist/tabs/content.svelte.d.ts +1 -1
- package/dist/tabs/list.svelte +2 -1
- package/dist/tabs/list.svelte.d.ts +1 -1
- package/dist/tabs/root.svelte +1 -1
- package/dist/tabs/root.svelte.d.ts +1 -1
- package/dist/tabs/trigger.svelte +4 -1
- package/dist/tabs/trigger.svelte.d.ts +1 -1
- package/dist/tags-input/clear-trigger.svelte +1 -1
- package/dist/tags-input/clear-trigger.svelte.d.ts +1 -1
- package/dist/tags-input/control.svelte +2 -1
- package/dist/tags-input/control.svelte.d.ts +1 -1
- package/dist/tags-input/hidden-input.svelte +1 -1
- package/dist/tags-input/hidden-input.svelte.d.ts +1 -1
- package/dist/tags-input/input.svelte +2 -1
- package/dist/tags-input/input.svelte.d.ts +1 -1
- package/dist/tags-input/item-delete-trigger.svelte +1 -1
- package/dist/tags-input/item-delete-trigger.svelte.d.ts +1 -1
- package/dist/tags-input/item-input.svelte +1 -1
- package/dist/tags-input/item-input.svelte.d.ts +1 -1
- package/dist/tags-input/item-preview.svelte +1 -1
- package/dist/tags-input/item-preview.svelte.d.ts +1 -1
- package/dist/tags-input/item-text.svelte +2 -1
- package/dist/tags-input/item-text.svelte.d.ts +1 -1
- package/dist/tags-input/item.svelte +4 -1
- package/dist/tags-input/item.svelte.d.ts +1 -1
- package/dist/tags-input/label.svelte +2 -1
- package/dist/tags-input/label.svelte.d.ts +1 -1
- package/dist/tags-input/root.svelte +1 -1
- package/dist/tags-input/root.svelte.d.ts +1 -1
- package/dist/time-picker/clear-trigger.svelte +1 -1
- package/dist/time-picker/clear-trigger.svelte.d.ts +1 -1
- package/dist/time-picker/column.svelte +1 -1
- package/dist/time-picker/column.svelte.d.ts +1 -1
- package/dist/time-picker/content.svelte +1 -1
- package/dist/time-picker/content.svelte.d.ts +1 -1
- package/dist/time-picker/control.svelte +2 -1
- package/dist/time-picker/control.svelte.d.ts +1 -1
- package/dist/time-picker/hour-cell.svelte +1 -1
- package/dist/time-picker/hour-cell.svelte.d.ts +1 -1
- package/dist/time-picker/input.svelte +2 -1
- package/dist/time-picker/input.svelte.d.ts +1 -1
- package/dist/time-picker/label.svelte +2 -1
- package/dist/time-picker/label.svelte.d.ts +1 -1
- package/dist/time-picker/minute-cell.svelte +1 -1
- package/dist/time-picker/minute-cell.svelte.d.ts +1 -1
- package/dist/time-picker/period-cell.svelte +4 -1
- package/dist/time-picker/period-cell.svelte.d.ts +1 -1
- package/dist/time-picker/positioner.svelte +1 -1
- package/dist/time-picker/positioner.svelte.d.ts +1 -1
- package/dist/time-picker/root.svelte +1 -1
- package/dist/time-picker/root.svelte.d.ts +1 -1
- package/dist/time-picker/second-cell.svelte +1 -1
- package/dist/time-picker/second-cell.svelte.d.ts +1 -1
- package/dist/time-picker/spacer.svelte +2 -1
- package/dist/time-picker/spacer.svelte.d.ts +1 -1
- package/dist/time-picker/trigger.svelte +1 -1
- package/dist/time-picker/trigger.svelte.d.ts +1 -1
- package/dist/timer/action-trigger.svelte +4 -1
- package/dist/timer/action-trigger.svelte.d.ts +1 -1
- package/dist/timer/area.svelte +2 -1
- package/dist/timer/area.svelte.d.ts +1 -1
- package/dist/timer/control.svelte +2 -1
- package/dist/timer/control.svelte.d.ts +1 -1
- package/dist/timer/item-label.svelte +2 -1
- package/dist/timer/item-label.svelte.d.ts +1 -1
- package/dist/timer/item-value.svelte +2 -1
- package/dist/timer/item-value.svelte.d.ts +1 -1
- package/dist/timer/item.svelte +1 -1
- package/dist/timer/item.svelte.d.ts +1 -1
- package/dist/timer/root.svelte +1 -1
- package/dist/timer/root.svelte.d.ts +1 -1
- package/dist/timer/separator.svelte +2 -1
- package/dist/timer/separator.svelte.d.ts +1 -1
- package/dist/toast/action-trigger.svelte +1 -1
- package/dist/toast/action-trigger.svelte.d.ts +1 -1
- package/dist/toast/close-trigger.svelte +1 -1
- package/dist/toast/close-trigger.svelte.d.ts +1 -1
- package/dist/toast/description.svelte +2 -1
- package/dist/toast/description.svelte.d.ts +1 -1
- package/dist/toast/ghost-after.svelte +2 -1
- package/dist/toast/ghost-after.svelte.d.ts +1 -1
- package/dist/toast/ghost-before.svelte +2 -1
- package/dist/toast/ghost-before.svelte.d.ts +1 -1
- package/dist/toast/root.svelte +1 -1
- package/dist/toast/root.svelte.d.ts +1 -1
- package/dist/toast/title.svelte +2 -1
- package/dist/toast/title.svelte.d.ts +1 -1
- package/dist/toast/toaster.svelte +1 -1
- package/dist/toast/toaster.svelte.d.ts +1 -1
- package/dist/toggle-group/item.svelte +4 -1
- package/dist/toggle-group/item.svelte.d.ts +1 -1
- package/dist/toggle-group/root.svelte +1 -1
- package/dist/toggle-group/root.svelte.d.ts +1 -1
- package/dist/tooltip/arrow-tip.svelte +2 -1
- package/dist/tooltip/arrow-tip.svelte.d.ts +1 -1
- package/dist/tooltip/arrow.svelte +2 -1
- package/dist/tooltip/arrow.svelte.d.ts +1 -1
- package/dist/tooltip/content.svelte +1 -1
- package/dist/tooltip/content.svelte.d.ts +1 -1
- package/dist/tooltip/positioner.svelte +2 -1
- package/dist/tooltip/positioner.svelte.d.ts +1 -1
- package/dist/tooltip/trigger.svelte +2 -1
- package/dist/tooltip/trigger.svelte.d.ts +1 -1
- package/dist/tour/arrow-tip.svelte +2 -1
- package/dist/tour/arrow-tip.svelte.d.ts +1 -1
- package/dist/tour/arrow.svelte +2 -1
- package/dist/tour/arrow.svelte.d.ts +1 -1
- package/dist/tour/close-trigger.svelte +1 -1
- package/dist/tour/close-trigger.svelte.d.ts +1 -1
- package/dist/tour/content.svelte +2 -1
- package/dist/tour/content.svelte.d.ts +1 -1
- package/dist/tour/description.svelte +2 -1
- package/dist/tour/description.svelte.d.ts +1 -1
- package/dist/tour/next-trigger.svelte +2 -1
- package/dist/tour/next-trigger.svelte.d.ts +1 -1
- package/dist/tour/overlay.svelte +2 -1
- package/dist/tour/overlay.svelte.d.ts +1 -1
- package/dist/tour/positioner.svelte +2 -1
- package/dist/tour/positioner.svelte.d.ts +1 -1
- package/dist/tour/prev-trigger.svelte +2 -1
- package/dist/tour/prev-trigger.svelte.d.ts +1 -1
- package/dist/tour/progress-text.svelte +2 -1
- package/dist/tour/progress-text.svelte.d.ts +1 -1
- package/dist/tour/skip-trigger.svelte +2 -1
- package/dist/tour/skip-trigger.svelte.d.ts +1 -1
- package/dist/tour/spotlight.svelte +2 -1
- package/dist/tour/spotlight.svelte.d.ts +1 -1
- package/dist/tour/title.svelte +2 -1
- package/dist/tour/title.svelte.d.ts +1 -1
- package/dist/tree-view/branch-content.svelte +1 -1
- package/dist/tree-view/branch-content.svelte.d.ts +1 -1
- package/dist/tree-view/branch-control.svelte +1 -1
- package/dist/tree-view/branch-control.svelte.d.ts +1 -1
- package/dist/tree-view/branch-indicator.svelte +1 -1
- package/dist/tree-view/branch-indicator.svelte.d.ts +1 -1
- package/dist/tree-view/branch-text.svelte +1 -1
- package/dist/tree-view/branch-text.svelte.d.ts +1 -1
- package/dist/tree-view/branch-trigger.svelte +1 -1
- package/dist/tree-view/branch-trigger.svelte.d.ts +1 -1
- package/dist/tree-view/branch.svelte +4 -1
- package/dist/tree-view/branch.svelte.d.ts +1 -1
- package/dist/tree-view/item-indicator.svelte +1 -1
- package/dist/tree-view/item-indicator.svelte.d.ts +1 -1
- package/dist/tree-view/item-text.svelte +2 -1
- package/dist/tree-view/item-text.svelte.d.ts +1 -1
- package/dist/tree-view/item.svelte +4 -1
- package/dist/tree-view/item.svelte.d.ts +1 -1
- package/dist/tree-view/label.svelte +2 -1
- package/dist/tree-view/label.svelte.d.ts +1 -1
- package/dist/tree-view/root.svelte +1 -1
- package/dist/tree-view/root.svelte.d.ts +1 -1
- package/dist/tree-view/tree.svelte +2 -1
- package/dist/tree-view/tree.svelte.d.ts +1 -1
- package/dist/types.d.ts +7 -9
- package/package.json +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerAreaBackgroundProps
|
5
|
-
extends HtmlIngredientProps<'div'> {}
|
5
|
+
extends HtmlIngredientProps<'div', HTMLDivElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
@@ -12,7 +12,12 @@
|
|
12
12
|
getColorPickerContext,
|
13
13
|
} from './context.svelte.js';
|
14
14
|
|
15
|
-
let {
|
15
|
+
let {
|
16
|
+
this: e,
|
17
|
+
asChild,
|
18
|
+
children,
|
19
|
+
...props
|
20
|
+
}: ColorPickerAreaBackgroundProps = $props();
|
16
21
|
|
17
22
|
let colorPicker = getColorPickerContext();
|
18
23
|
let areaProps = getColorPickerAreaPropsContext();
|
@@ -22,6 +27,10 @@
|
|
22
27
|
);
|
23
28
|
</script>
|
24
29
|
|
25
|
-
|
26
|
-
{@render
|
27
|
-
|
30
|
+
{#if asChild}
|
31
|
+
{@render asChild(mergedProps)}
|
32
|
+
{:else}
|
33
|
+
<div bind:this={e} {...mergedProps}>
|
34
|
+
{@render children?.()}
|
35
|
+
</div>
|
36
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerAreaBackgroundProps extends HtmlIngredientProps<'div'> {
|
2
|
+
export interface ColorPickerAreaBackgroundProps extends HtmlIngredientProps<'div', HTMLDivElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerAreaThumbProps
|
5
|
-
extends HtmlIngredientProps<'div'> {}
|
5
|
+
extends HtmlIngredientProps<'div', HTMLDivElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
@@ -12,7 +12,12 @@
|
|
12
12
|
getColorPickerContext,
|
13
13
|
} from './context.svelte.js';
|
14
14
|
|
15
|
-
let {
|
15
|
+
let {
|
16
|
+
this: e,
|
17
|
+
asChild,
|
18
|
+
children,
|
19
|
+
...props
|
20
|
+
}: ColorPickerAreaThumbProps = $props();
|
16
21
|
|
17
22
|
let colorPicker = getColorPickerContext();
|
18
23
|
let areaProps = getColorPickerAreaPropsContext();
|
@@ -22,6 +27,10 @@
|
|
22
27
|
);
|
23
28
|
</script>
|
24
29
|
|
25
|
-
|
26
|
-
{@render
|
27
|
-
|
30
|
+
{#if asChild}
|
31
|
+
{@render asChild(mergedProps)}
|
32
|
+
{:else}
|
33
|
+
<div bind:this={e} {...mergedProps}>
|
34
|
+
{@render children?.()}
|
35
|
+
</div>
|
36
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerAreaThumbProps extends HtmlIngredientProps<'div'> {
|
2
|
+
export interface ColorPickerAreaThumbProps extends HtmlIngredientProps<'div', HTMLDivElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import type {AreaProps} from '@zag-js/color-picker';
|
4
4
|
|
5
5
|
export interface ColorPickerAreaProps
|
6
|
-
extends Assign<HtmlIngredientProps<'div'>, AreaProps> {}
|
6
|
+
extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, AreaProps> {}
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
@@ -13,7 +13,14 @@
|
|
13
13
|
setColorPickerAreaPropsContext,
|
14
14
|
} from './context.svelte.js';
|
15
15
|
|
16
|
-
let {
|
16
|
+
let {
|
17
|
+
this: e,
|
18
|
+
xChannel,
|
19
|
+
yChannel,
|
20
|
+
asChild,
|
21
|
+
children,
|
22
|
+
...props
|
23
|
+
}: ColorPickerAreaProps = $props();
|
17
24
|
|
18
25
|
let colorPicker = getColorPickerContext();
|
19
26
|
let areaProps: AreaProps = $derived({
|
@@ -28,6 +35,10 @@
|
|
28
35
|
setColorPickerAreaPropsContext(() => areaProps);
|
29
36
|
</script>
|
30
37
|
|
31
|
-
|
32
|
-
{@render
|
33
|
-
|
38
|
+
{#if asChild}
|
39
|
+
{@render asChild(mergedProps)}
|
40
|
+
{:else}
|
41
|
+
<div bind:this={e} {...mergedProps}>
|
42
|
+
{@render children?.()}
|
43
|
+
</div>
|
44
|
+
{/if}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
2
|
import type { AreaProps } from '@zag-js/color-picker';
|
3
|
-
export interface ColorPickerAreaProps extends Assign<HtmlIngredientProps<'div'>, AreaProps> {
|
3
|
+
export interface ColorPickerAreaProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, AreaProps> {
|
4
4
|
}
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -3,14 +3,23 @@
|
|
3
3
|
import type {ChannelInputProps} from '@zag-js/color-picker';
|
4
4
|
|
5
5
|
export interface ColorPickerChannelInputProps
|
6
|
-
extends Assign<
|
6
|
+
extends Assign<
|
7
|
+
HtmlIngredientProps<'input', HTMLInputElement>,
|
8
|
+
ChannelInputProps
|
9
|
+
> {}
|
7
10
|
</script>
|
8
11
|
|
9
12
|
<script lang="ts">
|
10
13
|
import {mergeProps} from '../merge-props.js';
|
11
14
|
import {getColorPickerContext} from './context.svelte.js';
|
12
15
|
|
13
|
-
let {
|
16
|
+
let {
|
17
|
+
this: e,
|
18
|
+
channel,
|
19
|
+
orientation,
|
20
|
+
asChild,
|
21
|
+
...props
|
22
|
+
}: ColorPickerChannelInputProps = $props();
|
14
23
|
|
15
24
|
let colorPicker = getColorPickerContext();
|
16
25
|
|
@@ -25,4 +34,8 @@
|
|
25
34
|
);
|
26
35
|
</script>
|
27
36
|
|
28
|
-
|
37
|
+
{#if asChild}
|
38
|
+
{@render asChild(mergedProps)}
|
39
|
+
{:else}
|
40
|
+
<input bind:this={e} {...mergedProps} />
|
41
|
+
{/if}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
2
|
import type { ChannelInputProps } from '@zag-js/color-picker';
|
3
|
-
export interface ColorPickerChannelInputProps extends Assign<HtmlIngredientProps<'input'>, ChannelInputProps> {
|
3
|
+
export interface ColorPickerChannelInputProps extends Assign<HtmlIngredientProps<'input', HTMLInputElement>, ChannelInputProps> {
|
4
4
|
}
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import type {ChannelProps} from '@zag-js/color-picker';
|
4
4
|
|
5
5
|
export interface ColorPickerChannelSliderLabelProps
|
6
|
-
extends Assign<HtmlIngredientProps<'div'>, ChannelProps> {}
|
6
|
+
extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, ChannelProps> {}
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
@@ -14,8 +14,10 @@
|
|
14
14
|
} from './context.svelte.js';
|
15
15
|
|
16
16
|
let {
|
17
|
+
this: e,
|
17
18
|
channel,
|
18
19
|
orientation,
|
20
|
+
asChild,
|
19
21
|
children,
|
20
22
|
...props
|
21
23
|
}: ColorPickerChannelSliderLabelProps = $props();
|
@@ -31,6 +33,10 @@
|
|
31
33
|
);
|
32
34
|
</script>
|
33
35
|
|
34
|
-
|
35
|
-
{@render
|
36
|
-
|
36
|
+
{#if asChild}
|
37
|
+
{@render asChild(mergedProps)}
|
38
|
+
{:else}
|
39
|
+
<div bind:this={e} {...mergedProps}>
|
40
|
+
{@render children?.()}
|
41
|
+
</div>
|
42
|
+
{/if}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
2
|
import type { ChannelProps } from '@zag-js/color-picker';
|
3
|
-
export interface ColorPickerChannelSliderLabelProps extends Assign<HtmlIngredientProps<'div'>, ChannelProps> {
|
3
|
+
export interface ColorPickerChannelSliderLabelProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, ChannelProps> {
|
4
4
|
}
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerChannelSliderThumbProps
|
5
|
-
extends HtmlIngredientProps<'div'> {}
|
5
|
+
extends HtmlIngredientProps<'div', HTMLDivElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
@@ -12,7 +12,12 @@
|
|
12
12
|
getColorPickerContext,
|
13
13
|
} from './context.svelte.js';
|
14
14
|
|
15
|
-
let {
|
15
|
+
let {
|
16
|
+
this: e,
|
17
|
+
asChild,
|
18
|
+
children,
|
19
|
+
...props
|
20
|
+
}: ColorPickerChannelSliderThumbProps = $props();
|
16
21
|
|
17
22
|
let colorPicker = getColorPickerContext();
|
18
23
|
let channelSliderProps = getColorPickerChannelSliderPropsContext();
|
@@ -25,6 +30,10 @@
|
|
25
30
|
);
|
26
31
|
</script>
|
27
32
|
|
28
|
-
|
29
|
-
{@render
|
30
|
-
|
33
|
+
{#if asChild}
|
34
|
+
{@render asChild(mergedProps)}
|
35
|
+
{:else}
|
36
|
+
<div bind:this={e} {...mergedProps}>
|
37
|
+
{@render children?.()}
|
38
|
+
</div>
|
39
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerChannelSliderThumbProps extends HtmlIngredientProps<'div'> {
|
2
|
+
export interface ColorPickerChannelSliderThumbProps extends HtmlIngredientProps<'div', HTMLDivElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerChannelSliderTrackProps
|
5
|
-
extends HtmlIngredientProps<'div'> {}
|
5
|
+
extends HtmlIngredientProps<'div', HTMLDivElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
@@ -12,7 +12,12 @@
|
|
12
12
|
getColorPickerContext,
|
13
13
|
} from './context.svelte.js';
|
14
14
|
|
15
|
-
let {
|
15
|
+
let {
|
16
|
+
this: e,
|
17
|
+
asChild,
|
18
|
+
children,
|
19
|
+
...props
|
20
|
+
}: ColorPickerChannelSliderTrackProps = $props();
|
16
21
|
|
17
22
|
let colorPicker = getColorPickerContext();
|
18
23
|
let channelSliderProps = getColorPickerChannelSliderPropsContext();
|
@@ -25,6 +30,10 @@
|
|
25
30
|
);
|
26
31
|
</script>
|
27
32
|
|
28
|
-
|
29
|
-
{@render
|
30
|
-
|
33
|
+
{#if asChild}
|
34
|
+
{@render asChild(mergedProps)}
|
35
|
+
{:else}
|
36
|
+
<div bind:this={e} {...mergedProps}>
|
37
|
+
{@render children?.()}
|
38
|
+
</div>
|
39
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerChannelSliderTrackProps extends HtmlIngredientProps<'div'> {
|
2
|
+
export interface ColorPickerChannelSliderTrackProps extends HtmlIngredientProps<'div', HTMLDivElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerChannelSliderValueTextProps
|
5
|
-
extends HtmlIngredientProps<'div'> {}
|
5
|
+
extends HtmlIngredientProps<'div', HTMLDivElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
@@ -13,7 +13,12 @@
|
|
13
13
|
getColorPickerContext,
|
14
14
|
} from './context.svelte.js';
|
15
15
|
|
16
|
-
let {
|
16
|
+
let {
|
17
|
+
this: e,
|
18
|
+
asChild,
|
19
|
+
children,
|
20
|
+
...props
|
21
|
+
}: ColorPickerChannelSliderValueTextProps = $props();
|
17
22
|
|
18
23
|
let locale = getLocaleContext();
|
19
24
|
let colorPicker = getColorPickerContext();
|
@@ -27,10 +32,17 @@
|
|
27
32
|
);
|
28
33
|
</script>
|
29
34
|
|
30
|
-
|
31
|
-
{
|
32
|
-
|
33
|
-
{
|
34
|
-
{
|
35
|
-
|
36
|
-
|
35
|
+
{#if asChild}
|
36
|
+
{@render asChild(mergedProps)}
|
37
|
+
{:else}
|
38
|
+
<div bind:this={e} {...mergedProps}>
|
39
|
+
{#if children}
|
40
|
+
{@render children()}
|
41
|
+
{:else}
|
42
|
+
{colorPicker.getChannelValueText(
|
43
|
+
channelSliderProps.channel,
|
44
|
+
locale.locale,
|
45
|
+
)}
|
46
|
+
{/if}
|
47
|
+
</div>
|
48
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerChannelSliderValueTextProps extends HtmlIngredientProps<'div'> {
|
2
|
+
export interface ColorPickerChannelSliderValueTextProps extends HtmlIngredientProps<'div', HTMLDivElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -3,7 +3,10 @@
|
|
3
3
|
import type {ChannelSliderProps} from '@zag-js/color-picker';
|
4
4
|
|
5
5
|
export interface ColorPickerChannelSliderProps
|
6
|
-
extends Assign<
|
6
|
+
extends Assign<
|
7
|
+
HtmlIngredientProps<'div', HTMLDivElement>,
|
8
|
+
ChannelSliderProps
|
9
|
+
> {}
|
7
10
|
</script>
|
8
11
|
|
9
12
|
<script lang="ts">
|
@@ -14,9 +17,11 @@
|
|
14
17
|
} from './context.svelte.js';
|
15
18
|
|
16
19
|
let {
|
20
|
+
this: e,
|
17
21
|
format,
|
18
22
|
channel,
|
19
23
|
orientation,
|
24
|
+
asChild,
|
20
25
|
children,
|
21
26
|
...props
|
22
27
|
}: ColorPickerChannelSliderProps = $props();
|
@@ -35,6 +40,10 @@
|
|
35
40
|
setColorPickerChannelSliderPropsContext(() => channelSliderProps);
|
36
41
|
</script>
|
37
42
|
|
38
|
-
|
39
|
-
{@render
|
40
|
-
|
43
|
+
{#if asChild}
|
44
|
+
{@render asChild(mergedProps)}
|
45
|
+
{:else}
|
46
|
+
<div bind:this={e} {...mergedProps}>
|
47
|
+
{@render children?.()}
|
48
|
+
</div>
|
49
|
+
{/if}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
2
|
import type { ChannelSliderProps } from '@zag-js/color-picker';
|
3
|
-
export interface ColorPickerChannelSliderProps extends Assign<HtmlIngredientProps<'div'>, ChannelSliderProps> {
|
3
|
+
export interface ColorPickerChannelSliderProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, ChannelSliderProps> {
|
4
4
|
}
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import type {Action} from 'svelte/action';
|
4
4
|
|
5
5
|
export interface ColorPickerContentProps
|
6
|
-
extends HtmlIngredientProps<'div', never, Action> {}
|
6
|
+
extends HtmlIngredientProps<'div', HTMLDivElement, never, Action> {}
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<script lang="ts">
|
@@ -11,7 +11,12 @@
|
|
11
11
|
import {getPresenceContext} from '../presence/context.svelte.js';
|
12
12
|
import {getColorPickerContext} from './context.svelte.js';
|
13
13
|
|
14
|
-
let {
|
14
|
+
let {
|
15
|
+
this: e,
|
16
|
+
asChild,
|
17
|
+
children,
|
18
|
+
...props
|
19
|
+
}: ColorPickerContentProps = $props();
|
15
20
|
|
16
21
|
let colorPicker = getColorPickerContext();
|
17
22
|
let presence = getPresenceContext();
|
@@ -25,6 +30,10 @@
|
|
25
30
|
);
|
26
31
|
</script>
|
27
32
|
|
28
|
-
|
29
|
-
{@render
|
30
|
-
|
33
|
+
{#if asChild}
|
34
|
+
{@render asChild(presence.ref, mergedProps)}
|
35
|
+
{:else}
|
36
|
+
<div bind:this={e} {...mergedProps}>
|
37
|
+
{@render children?.()}
|
38
|
+
</div>
|
39
|
+
{/if}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
2
|
import type { Action } from 'svelte/action';
|
3
|
-
export interface ColorPickerContentProps extends HtmlIngredientProps<'div', never, Action> {
|
3
|
+
export interface ColorPickerContentProps extends HtmlIngredientProps<'div', HTMLDivElement, never, Action> {
|
4
4
|
}
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,20 +1,30 @@
|
|
1
1
|
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface ColorPickerControlProps
|
4
|
+
export interface ColorPickerControlProps
|
5
|
+
extends HtmlIngredientProps<'div', HTMLDivElement> {}
|
5
6
|
</script>
|
6
7
|
|
7
8
|
<script lang="ts">
|
8
9
|
import {mergeProps} from '../merge-props.js';
|
9
10
|
import {getColorPickerContext} from './context.svelte.js';
|
10
11
|
|
11
|
-
let {
|
12
|
+
let {
|
13
|
+
this: e,
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: ColorPickerControlProps = $props();
|
12
18
|
|
13
19
|
let colorPicker = getColorPickerContext();
|
14
20
|
|
15
21
|
let mergedProps = $derived(mergeProps(props, colorPicker.getControlProps()));
|
16
22
|
</script>
|
17
23
|
|
18
|
-
|
19
|
-
{@render
|
20
|
-
|
24
|
+
{#if asChild}
|
25
|
+
{@render asChild(mergedProps)}
|
26
|
+
{:else}
|
27
|
+
<div bind:this={e} {...mergedProps}>
|
28
|
+
{@render children?.()}
|
29
|
+
</div>
|
30
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerControlProps extends HtmlIngredientProps<'div'> {
|
2
|
+
export interface ColorPickerControlProps extends HtmlIngredientProps<'div', HTMLDivElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,14 +2,19 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerEyeDropperTriggerProps
|
5
|
-
extends HtmlIngredientProps<'button'> {}
|
5
|
+
extends HtmlIngredientProps<'button', HTMLButtonElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
9
9
|
import {mergeProps} from '../merge-props.js';
|
10
10
|
import {getColorPickerContext} from './context.svelte.js';
|
11
11
|
|
12
|
-
let {
|
12
|
+
let {
|
13
|
+
this: e,
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: ColorPickerEyeDropperTriggerProps = $props();
|
13
18
|
|
14
19
|
let colorPicker = getColorPickerContext();
|
15
20
|
|
@@ -18,6 +23,10 @@
|
|
18
23
|
);
|
19
24
|
</script>
|
20
25
|
|
21
|
-
|
22
|
-
{@render
|
23
|
-
|
26
|
+
{#if asChild}
|
27
|
+
{@render asChild(mergedProps)}
|
28
|
+
{:else}
|
29
|
+
<button bind:this={e} {...mergedProps}>
|
30
|
+
{@render children?.()}
|
31
|
+
</button>
|
32
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerEyeDropperTriggerProps extends HtmlIngredientProps<'button'> {
|
2
|
+
export interface ColorPickerEyeDropperTriggerProps extends HtmlIngredientProps<'button', HTMLButtonElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,14 +2,19 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerFormatSelectProps
|
5
|
-
extends HtmlIngredientProps<'select'> {}
|
5
|
+
extends HtmlIngredientProps<'select', HTMLSelectElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
9
9
|
import {mergeProps} from '../merge-props.js';
|
10
10
|
import {getColorPickerContext} from './context.svelte.js';
|
11
11
|
|
12
|
-
let {
|
12
|
+
let {
|
13
|
+
this: e,
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: ColorPickerFormatSelectProps = $props();
|
13
18
|
|
14
19
|
let colorPicker = getColorPickerContext();
|
15
20
|
|
@@ -20,12 +25,16 @@
|
|
20
25
|
let formats = ['rgba', 'hsla', 'hsba'];
|
21
26
|
</script>
|
22
27
|
|
23
|
-
|
24
|
-
{
|
25
|
-
|
26
|
-
{
|
27
|
-
{#
|
28
|
-
|
29
|
-
{
|
30
|
-
|
31
|
-
</
|
28
|
+
{#if asChild}
|
29
|
+
{@render asChild(mergedProps)}
|
30
|
+
{:else}
|
31
|
+
<select bind:this={e} {...mergedProps}>
|
32
|
+
{#if children}
|
33
|
+
{@render children()}
|
34
|
+
{:else}
|
35
|
+
{#each formats as format}
|
36
|
+
<option value={format}>{format}</option>
|
37
|
+
{/each}
|
38
|
+
{/if}
|
39
|
+
</select>
|
40
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerFormatSelectProps extends HtmlIngredientProps<'select'> {
|
2
|
+
export interface ColorPickerFormatSelectProps extends HtmlIngredientProps<'select', HTMLSelectElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -2,14 +2,19 @@
|
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ColorPickerFormatTriggerProps
|
5
|
-
extends HtmlIngredientProps<'button'> {}
|
5
|
+
extends HtmlIngredientProps<'button', HTMLButtonElement> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
9
9
|
import {mergeProps} from '../merge-props.js';
|
10
10
|
import {getColorPickerContext} from './context.svelte.js';
|
11
11
|
|
12
|
-
let {
|
12
|
+
let {
|
13
|
+
this: e,
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: ColorPickerFormatTriggerProps = $props();
|
13
18
|
|
14
19
|
let colorPicker = getColorPickerContext();
|
15
20
|
|
@@ -18,6 +23,10 @@
|
|
18
23
|
);
|
19
24
|
</script>
|
20
25
|
|
21
|
-
|
22
|
-
{@render
|
23
|
-
|
26
|
+
{#if asChild}
|
27
|
+
{@render asChild(mergedProps)}
|
28
|
+
{:else}
|
29
|
+
<button bind:this={e} {...mergedProps}>
|
30
|
+
{@render children?.()}
|
31
|
+
</button>
|
32
|
+
{/if}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ColorPickerFormatTriggerProps extends HtmlIngredientProps<'button'> {
|
2
|
+
export interface ColorPickerFormatTriggerProps extends HtmlIngredientProps<'button', HTMLButtonElement> {
|
3
3
|
}
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
5
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|