ui-ingredients 0.14.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -60
- package/dist/accordion/accordion-anatomy.d.ts +1 -0
- package/dist/accordion/accordion-anatomy.js +1 -0
- package/dist/accordion/accordion-item-content.svelte +55 -55
- package/dist/accordion/accordion-item-indicator.svelte +36 -36
- package/dist/accordion/accordion-item-trigger.svelte +36 -36
- package/dist/accordion/accordion-item.svelte +47 -47
- package/dist/accordion/accordion-root.svelte +66 -66
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +1 -1
- package/dist/alert/alert-description.svelte +25 -25
- package/dist/alert/alert-indicator.svelte +25 -25
- package/dist/alert/alert-root.svelte +29 -29
- package/dist/alert/alert-title.svelte +25 -25
- package/dist/alert-dialog/alert-dialog-backdrop.svelte +49 -49
- package/dist/alert-dialog/alert-dialog-close-trigger.svelte +32 -32
- package/dist/alert-dialog/alert-dialog-content.svelte +41 -41
- package/dist/alert-dialog/alert-dialog-description.svelte +32 -32
- package/dist/alert-dialog/alert-dialog-positioner.svelte +40 -40
- package/dist/alert-dialog/alert-dialog-root.svelte +48 -48
- package/dist/alert-dialog/alert-dialog-title.svelte +30 -30
- package/dist/alert-dialog/alert-dialog-trigger.svelte +30 -30
- package/dist/anatomy.d.ts +46 -0
- package/dist/anatomy.js +46 -0
- package/dist/avatar/avatar-anatomy.d.ts +1 -0
- package/dist/avatar/avatar-anatomy.js +1 -0
- package/dist/avatar/avatar-fallback.svelte +30 -30
- package/dist/avatar/avatar-image.svelte +23 -23
- package/dist/avatar/avatar-root.svelte +46 -46
- package/dist/avatar/index.d.ts +2 -1
- package/dist/avatar/index.js +2 -1
- package/dist/breadcrumbs/breadcrumbs-anatomy.d.ts +2 -2
- package/dist/breadcrumbs/breadcrumbs-item.svelte +25 -25
- package/dist/breadcrumbs/breadcrumbs-link.svelte +33 -33
- package/dist/breadcrumbs/breadcrumbs-list.svelte +25 -25
- package/dist/breadcrumbs/breadcrumbs-root.svelte +29 -29
- package/dist/breadcrumbs/breadcrumbs-separator.svelte +25 -25
- package/dist/carousel/carousel-anatomy.d.ts +1 -0
- package/dist/carousel/carousel-anatomy.js +1 -0
- package/dist/carousel/carousel-indicator-group.svelte +32 -32
- package/dist/carousel/carousel-indicator.svelte +41 -41
- package/dist/carousel/carousel-item-group.svelte +30 -30
- package/dist/carousel/carousel-item.svelte +42 -42
- package/dist/carousel/carousel-next-trigger.svelte +30 -30
- package/dist/carousel/carousel-prev-trigger.svelte +30 -30
- package/dist/carousel/carousel-root.svelte +56 -56
- package/dist/carousel/carousel-viewport.svelte +30 -30
- package/dist/carousel/index.d.ts +1 -1
- package/dist/carousel/index.js +1 -1
- package/dist/checkbox/checkbox-anatomy.d.ts +1 -0
- package/dist/checkbox/checkbox-anatomy.js +1 -0
- package/dist/checkbox/checkbox-control.svelte +30 -30
- package/dist/checkbox/checkbox-hidden-input.svelte +27 -27
- package/dist/checkbox/checkbox-indicator.svelte +30 -30
- package/dist/checkbox/checkbox-label.svelte +30 -30
- package/dist/checkbox/checkbox-root.svelte +59 -59
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/clipboard/clipboard-anatomy.d.ts +1 -0
- package/dist/clipboard/clipboard-anatomy.js +1 -0
- package/dist/clipboard/clipboard-control.svelte +30 -30
- package/dist/clipboard/clipboard-indicator.svelte +37 -37
- package/dist/clipboard/clipboard-input.svelte +27 -27
- package/dist/clipboard/clipboard-label.svelte +30 -30
- package/dist/clipboard/clipboard-root.svelte +52 -52
- package/dist/clipboard/clipboard-trigger.svelte +30 -30
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/index.js +1 -1
- package/dist/collapsible/collapsible-anatomy.d.ts +1 -0
- package/dist/collapsible/collapsible-anatomy.js +1 -0
- package/dist/collapsible/collapsible-content.svelte +41 -41
- package/dist/collapsible/collapsible-root.svelte +75 -75
- package/dist/collapsible/collapsible-trigger.svelte +29 -29
- package/dist/collapsible/index.d.ts +1 -1
- package/dist/collapsible/index.js +1 -1
- package/dist/color-picker/color-picker-anatomy.d.ts +2 -2
- package/dist/color-picker/color-picker-area-background.svelte +36 -36
- package/dist/color-picker/color-picker-area-thumb.svelte +36 -36
- package/dist/color-picker/color-picker-area.svelte +44 -44
- package/dist/color-picker/color-picker-channel-input.svelte +41 -41
- package/dist/color-picker/color-picker-channel-slider-label.svelte +36 -36
- package/dist/color-picker/color-picker-channel-slider-thumb.svelte +45 -45
- package/dist/color-picker/color-picker-channel-slider-track.svelte +45 -45
- package/dist/color-picker/color-picker-channel-slider-value-text.svelte +45 -45
- package/dist/color-picker/color-picker-channel-slider.svelte +51 -51
- package/dist/color-picker/color-picker-content.svelte +41 -41
- package/dist/color-picker/color-picker-control.svelte +30 -30
- package/dist/color-picker/color-picker-eye-dropper-trigger.svelte +32 -32
- package/dist/color-picker/color-picker-format-select.svelte +40 -40
- package/dist/color-picker/color-picker-format-trigger.svelte +32 -32
- package/dist/color-picker/color-picker-hidden-input.svelte +29 -29
- package/dist/color-picker/color-picker-label.svelte +30 -30
- package/dist/color-picker/color-picker-positioner.svelte +38 -38
- package/dist/color-picker/color-picker-root.svelte +87 -87
- package/dist/color-picker/color-picker-swatch-group.svelte +32 -32
- package/dist/color-picker/color-picker-swatch-indicator.svelte +36 -36
- package/dist/color-picker/color-picker-swatch-trigger.svelte +44 -44
- package/dist/color-picker/color-picker-swatch.svelte +44 -44
- package/dist/color-picker/color-picker-transparency-grid.svelte +37 -37
- package/dist/color-picker/color-picker-trigger.svelte +30 -30
- package/dist/color-picker/color-picker-value-swatch.svelte +41 -41
- package/dist/color-picker/color-picker-value-text.svelte +36 -36
- package/dist/color-picker/color-picker-view.svelte +41 -41
- package/dist/combobox/combobox-anatomy.d.ts +1 -0
- package/dist/combobox/combobox-anatomy.js +1 -0
- package/dist/combobox/combobox-clear-trigger.svelte +32 -32
- package/dist/combobox/combobox-content.svelte +37 -37
- package/dist/combobox/combobox-control.svelte +30 -30
- package/dist/combobox/combobox-input.svelte +25 -25
- package/dist/combobox/combobox-item-group-label.svelte +41 -41
- package/dist/combobox/combobox-item-group.svelte +45 -45
- package/dist/combobox/combobox-item-indicator.svelte +36 -36
- package/dist/combobox/combobox-item-text.svelte +40 -40
- package/dist/combobox/combobox-item.svelte +47 -47
- package/dist/combobox/combobox-label.svelte +30 -30
- package/dist/combobox/combobox-list.svelte +30 -30
- package/dist/combobox/combobox-positioner.svelte +40 -40
- package/dist/combobox/combobox-root.svelte +101 -101
- package/dist/combobox/combobox-trigger.svelte +30 -30
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/date-picker/date-picker-anatomy.d.ts +2 -2
- package/dist/date-picker/date-picker-clear-trigger.svelte +32 -32
- package/dist/date-picker/date-picker-content.svelte +41 -41
- package/dist/date-picker/date-picker-control.svelte +30 -30
- package/dist/date-picker/date-picker-day-table-cell-trigger.svelte +36 -36
- package/dist/date-picker/date-picker-day-table-cell.svelte +52 -52
- package/dist/date-picker/date-picker-input.svelte +34 -34
- package/dist/date-picker/date-picker-label.svelte +37 -37
- package/dist/date-picker/date-picker-month-select.svelte +41 -41
- package/dist/date-picker/date-picker-month-table-cell-trigger.svelte +36 -36
- package/dist/date-picker/date-picker-month-table-cell.svelte +50 -50
- package/dist/date-picker/date-picker-next-trigger.svelte +36 -36
- package/dist/date-picker/date-picker-positioner.svelte +40 -40
- package/dist/date-picker/date-picker-preset-trigger.svelte +37 -37
- package/dist/date-picker/date-picker-prev-trigger.svelte +36 -36
- package/dist/date-picker/date-picker-range-text.svelte +34 -34
- package/dist/date-picker/date-picker-root.svelte +90 -90
- package/dist/date-picker/date-picker-table-body.svelte +36 -36
- package/dist/date-picker/date-picker-table-head.svelte +36 -36
- package/dist/date-picker/date-picker-table-header.svelte +36 -36
- package/dist/date-picker/date-picker-table-row.svelte +36 -36
- package/dist/date-picker/date-picker-table.svelte +46 -46
- package/dist/date-picker/date-picker-trigger.svelte +30 -30
- package/dist/date-picker/date-picker-view-control.svelte +36 -36
- package/dist/date-picker/date-picker-view-trigger.svelte +36 -36
- package/dist/date-picker/date-picker-view.svelte +41 -41
- package/dist/date-picker/date-picker-year-select.svelte +38 -38
- package/dist/date-picker/date-picker-year-table-cell-trigger.svelte +36 -36
- package/dist/date-picker/date-picker-year-table-cell.svelte +50 -50
- package/dist/dialog/dialog-anatomy.d.ts +1 -0
- package/dist/dialog/dialog-anatomy.js +1 -0
- package/dist/dialog/dialog-backdrop.svelte +45 -45
- package/dist/dialog/dialog-close-trigger.svelte +30 -30
- package/dist/dialog/dialog-content.svelte +37 -37
- package/dist/dialog/dialog-description.svelte +30 -30
- package/dist/dialog/dialog-positioner.svelte +36 -36
- package/dist/dialog/dialog-root.svelte +48 -48
- package/dist/dialog/dialog-title.svelte +30 -30
- package/dist/dialog/dialog-trigger.svelte +30 -30
- package/dist/dialog/index.d.ts +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/drawer/drawer-anatomy.d.ts +2 -2
- package/dist/drawer/drawer-backdrop.svelte +45 -45
- package/dist/drawer/drawer-body.svelte +30 -30
- package/dist/drawer/drawer-close-trigger.svelte +30 -30
- package/dist/drawer/drawer-content.svelte +37 -37
- package/dist/drawer/drawer-description.svelte +30 -30
- package/dist/drawer/drawer-footer.svelte +30 -30
- package/dist/drawer/drawer-header.svelte +30 -30
- package/dist/drawer/drawer-positioner.svelte +36 -36
- package/dist/drawer/drawer-root.svelte +48 -48
- package/dist/drawer/drawer-title.svelte +30 -30
- package/dist/drawer/drawer-trigger.svelte +30 -30
- package/dist/editable/editable-anatomy.d.ts +1 -0
- package/dist/editable/editable-anatomy.js +1 -0
- package/dist/editable/editable-area.svelte +30 -30
- package/dist/editable/editable-cancel-trigger.svelte +32 -32
- package/dist/editable/editable-control.svelte +30 -30
- package/dist/editable/editable-edit-trigger.svelte +30 -30
- package/dist/editable/editable-input.svelte +23 -23
- package/dist/editable/editable-label.svelte +30 -30
- package/dist/editable/editable-preview.svelte +37 -37
- package/dist/editable/editable-root.svelte +74 -74
- package/dist/editable/editable-submit-trigger.svelte +32 -32
- package/dist/editable/index.d.ts +1 -1
- package/dist/editable/index.js +1 -1
- package/dist/environment-provider/environment-provider.svelte +41 -41
- package/dist/field/field-anatomy.d.ts +2 -2
- package/dist/field/field-error-text.svelte +50 -50
- package/dist/field/field-helper-text.svelte +32 -32
- package/dist/field/field-input.svelte +23 -23
- package/dist/field/field-label.svelte +30 -30
- package/dist/field/field-required-indicator.svelte +36 -36
- package/dist/field/field-root.svelte +63 -63
- package/dist/field/field-select.svelte +28 -28
- package/dist/field/field-textarea.svelte +51 -51
- package/dist/file-upload/file-upload-anatomy.d.ts +1 -0
- package/dist/file-upload/file-upload-anatomy.js +1 -0
- package/dist/file-upload/file-upload-clear-trigger.svelte +32 -32
- package/dist/file-upload/file-upload-dropzone.svelte +30 -30
- package/dist/file-upload/file-upload-hidden-input.svelte +29 -29
- package/dist/file-upload/file-upload-item-delete-trigger.svelte +36 -36
- package/dist/file-upload/file-upload-item-group.svelte +30 -30
- package/dist/file-upload/file-upload-item-name.svelte +40 -40
- package/dist/file-upload/file-upload-item-preview-image.svelte +41 -41
- package/dist/file-upload/file-upload-item-preview.svelte +36 -36
- package/dist/file-upload/file-upload-item-size-text.svelte +40 -40
- package/dist/file-upload/file-upload-item.svelte +43 -43
- package/dist/file-upload/file-upload-label.svelte +30 -30
- package/dist/file-upload/file-upload-root.svelte +66 -66
- package/dist/file-upload/file-upload-trigger.svelte +30 -30
- package/dist/file-upload/index.d.ts +1 -1
- package/dist/file-upload/index.js +1 -1
- package/dist/floating-panel/floating-panel-anatomy.d.ts +1 -0
- package/dist/floating-panel/floating-panel-anatomy.js +1 -0
- package/dist/floating-panel/floating-panel-body.svelte +30 -30
- package/dist/floating-panel/floating-panel-close-trigger.svelte +32 -32
- package/dist/floating-panel/floating-panel-content.svelte +41 -41
- package/dist/floating-panel/floating-panel-drag-trigger.svelte +32 -32
- package/dist/floating-panel/floating-panel-header.svelte +30 -30
- package/dist/floating-panel/floating-panel-maximize-trigger.svelte +32 -32
- package/dist/floating-panel/floating-panel-minimize-trigger.svelte +32 -32
- package/dist/floating-panel/floating-panel-positioner.svelte +40 -40
- package/dist/floating-panel/floating-panel-resize-trigger.svelte +44 -44
- package/dist/floating-panel/floating-panel-restore-trigger.svelte +32 -32
- package/dist/floating-panel/floating-panel-root.svelte +47 -47
- package/dist/floating-panel/floating-panel-title.svelte +30 -30
- package/dist/floating-panel/floating-panel-trigger.svelte +32 -32
- package/dist/floating-panel/index.d.ts +1 -1
- package/dist/floating-panel/index.js +1 -1
- package/dist/highlight/highlight.svelte +42 -42
- package/dist/hover-card/hover-card-anatomy.d.ts +1 -0
- package/dist/hover-card/hover-card-anatomy.js +1 -0
- package/dist/hover-card/hover-card-arrow-tip.svelte +30 -30
- package/dist/hover-card/hover-card-arrow.svelte +30 -30
- package/dist/hover-card/hover-card-content.svelte +37 -37
- package/dist/hover-card/hover-card-positioner.svelte +40 -40
- package/dist/hover-card/hover-card-root.svelte +52 -52
- package/dist/hover-card/hover-card-trigger.svelte +30 -30
- package/dist/hover-card/index.d.ts +1 -1
- package/dist/hover-card/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locale-provider/local-provider.svelte +26 -26
- package/dist/menu/index.d.ts +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/menu/menu-anatomy.d.ts +1 -0
- package/dist/menu/menu-anatomy.js +1 -0
- package/dist/menu/menu-arrow-tip.svelte +30 -30
- package/dist/menu/menu-arrow.svelte +30 -30
- package/dist/menu/menu-content.svelte +37 -37
- package/dist/menu/menu-context-trigger.svelte +30 -30
- package/dist/menu/menu-indicator.svelte +30 -30
- package/dist/menu/menu-item-group-label.svelte +42 -42
- package/dist/menu/menu-item-group.svelte +45 -45
- package/dist/menu/menu-item.svelte +47 -47
- package/dist/menu/menu-option-item-indicator.svelte +37 -37
- package/dist/menu/menu-option-item-text.svelte +41 -41
- package/dist/menu/menu-option-item.svelte +56 -56
- package/dist/menu/menu-positioner.svelte +36 -36
- package/dist/menu/menu-root.svelte +74 -74
- package/dist/menu/menu-separator.svelte +30 -30
- package/dist/menu/menu-trigger-item.svelte +30 -30
- package/dist/menu/menu-trigger.svelte +30 -30
- package/dist/number-input/index.d.ts +1 -1
- package/dist/number-input/index.js +1 -1
- package/dist/number-input/number-input-anatomy.d.ts +1 -0
- package/dist/number-input/number-input-anatomy.js +1 -0
- package/dist/number-input/number-input-control.svelte +30 -30
- package/dist/number-input/number-input-decrement-trigger.svelte +32 -32
- package/dist/number-input/number-input-increment-trigger.svelte +32 -32
- package/dist/number-input/number-input-input.svelte +27 -27
- package/dist/number-input/number-input-label.svelte +30 -30
- package/dist/number-input/number-input-root.svelte +74 -74
- package/dist/number-input/number-input-scrubber.svelte +30 -30
- package/dist/number-input/number-input-value-text.svelte +36 -36
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/pagination-anatomy.d.ts +1 -0
- package/dist/pagination/pagination-anatomy.js +1 -0
- package/dist/pagination/pagination-ellipsis.svelte +41 -41
- package/dist/pagination/pagination-item.svelte +47 -47
- package/dist/pagination/pagination-next-trigger.svelte +32 -32
- package/dist/pagination/pagination-prev-trigger.svelte +32 -32
- package/dist/pagination/pagination-root.svelte +57 -57
- package/dist/pin-input/pin-input-anatomy.d.ts +2 -2
- package/dist/pin-input/pin-input-clear-trigger.svelte +32 -32
- package/dist/pin-input/pin-input-control.svelte +30 -30
- package/dist/pin-input/pin-input-hidden-input.svelte +27 -27
- package/dist/pin-input/pin-input-input.svelte +34 -34
- package/dist/pin-input/pin-input-label.svelte +30 -30
- package/dist/pin-input/pin-input-root.svelte +68 -68
- package/dist/popover/index.d.ts +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/popover/popover-anatomy.d.ts +1 -0
- package/dist/popover/popover-anatomy.js +1 -0
- package/dist/popover/popover-anchor.svelte +30 -30
- package/dist/popover/popover-arrow-tip.svelte +30 -30
- package/dist/popover/popover-arrow.svelte +30 -30
- package/dist/popover/popover-close-trigger.svelte +30 -30
- package/dist/popover/popover-content.svelte +37 -37
- package/dist/popover/popover-description.svelte +30 -30
- package/dist/popover/popover-indicator.svelte +30 -30
- package/dist/popover/popover-positioner.svelte +40 -40
- package/dist/popover/popover-root.svelte +60 -60
- package/dist/popover/popover-title.svelte +30 -30
- package/dist/popover/popover-trigger.svelte +30 -30
- package/dist/portal/portal.svelte +32 -32
- package/dist/presence/presence.svelte +48 -48
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/progress/progress-anatomy.d.ts +1 -0
- package/dist/progress/progress-anatomy.js +1 -0
- package/dist/progress/progress-circle-range.svelte +30 -30
- package/dist/progress/progress-circle-track.svelte +30 -30
- package/dist/progress/progress-circle.svelte +30 -30
- package/dist/progress/progress-label.svelte +30 -30
- package/dist/progress/progress-range.svelte +30 -30
- package/dist/progress/progress-root.svelte +54 -54
- package/dist/progress/progress-track.svelte +30 -30
- package/dist/progress/progress-value-text.svelte +34 -34
- package/dist/progress/progress-view.svelte +32 -32
- package/dist/qr-code/index.d.ts +1 -1
- package/dist/qr-code/index.js +1 -1
- package/dist/qr-code/qr-code-anatomy.d.ts +1 -0
- package/dist/qr-code/qr-code-anatomy.js +1 -0
- package/dist/qr-code/qr-code-frame.svelte +30 -30
- package/dist/qr-code/qr-code-overlay.svelte +30 -30
- package/dist/qr-code/qr-code-pattern.svelte +30 -30
- package/dist/qr-code/qr-code-root.svelte +48 -48
- package/dist/radio-group/index.d.ts +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-group/radio-group-anatomy.d.ts +1 -0
- package/dist/radio-group/radio-group-anatomy.js +1 -0
- package/dist/radio-group/radio-group-indicator.svelte +30 -30
- package/dist/radio-group/radio-group-item-control.svelte +36 -36
- package/dist/radio-group/radio-group-item-hidden-input.svelte +33 -33
- package/dist/radio-group/radio-group-item-text.svelte +36 -36
- package/dist/radio-group/radio-group-item.svelte +48 -48
- package/dist/radio-group/radio-group-label.svelte +30 -30
- package/dist/radio-group/radio-group-root.svelte +56 -56
- package/dist/rating-group/index.d.ts +1 -1
- package/dist/rating-group/index.js +1 -1
- package/dist/rating-group/rating-group-anatomy.d.ts +1 -0
- package/dist/rating-group/rating-group-anatomy.js +1 -0
- package/dist/rating-group/rating-group-control.svelte +30 -30
- package/dist/rating-group/rating-group-hidden-input.svelte +29 -29
- package/dist/rating-group/rating-group-item.svelte +42 -42
- package/dist/rating-group/rating-group-label.svelte +30 -30
- package/dist/rating-group/rating-group-root.svelte +63 -63
- package/dist/segment-group/create-segment-group.svelte.js +1 -1
- package/dist/segment-group/segment-group-anatomy.d.ts +2 -2
- package/dist/segment-group/segment-group-indicator.svelte +32 -32
- package/dist/segment-group/segment-group-item-control.svelte +36 -36
- package/dist/segment-group/segment-group-item-hidden-input.svelte +33 -33
- package/dist/segment-group/segment-group-item-text.svelte +36 -36
- package/dist/segment-group/segment-group-item.svelte +47 -47
- package/dist/segment-group/segment-group-label.svelte +30 -30
- package/dist/segment-group/segment-group-root.svelte +58 -58
- package/dist/select/index.d.ts +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/select-anatomy.d.ts +1 -0
- package/dist/select/select-anatomy.js +1 -0
- package/dist/select/select-clear-trigger.svelte +30 -30
- package/dist/select/select-content.svelte +37 -37
- package/dist/select/select-control.svelte +30 -30
- package/dist/select/select-hidden-select.svelte +30 -30
- package/dist/select/select-indicator.svelte +30 -30
- package/dist/select/select-item-group-label.svelte +40 -40
- package/dist/select/select-item-group.svelte +45 -45
- package/dist/select/select-item-indicator.svelte +36 -36
- package/dist/select/select-item-text.svelte +40 -40
- package/dist/select/select-item.svelte +47 -47
- package/dist/select/select-label.svelte +30 -30
- package/dist/select/select-list.svelte +30 -30
- package/dist/select/select-positioner.svelte +36 -36
- package/dist/select/select-root.svelte +88 -88
- package/dist/select/select-trigger.svelte +32 -32
- package/dist/select/select-value-text.svelte +37 -37
- package/dist/signature-pad/index.d.ts +1 -1
- package/dist/signature-pad/index.js +1 -1
- package/dist/signature-pad/signature-pad-anatomy.d.ts +1 -0
- package/dist/signature-pad/signature-pad-anatomy.js +1 -0
- package/dist/signature-pad/signature-pad-clear-trigger.svelte +32 -32
- package/dist/signature-pad/signature-pad-control.svelte +30 -30
- package/dist/signature-pad/signature-pad-current-segment-path.svelte +39 -39
- package/dist/signature-pad/signature-pad-guide.svelte +30 -30
- package/dist/signature-pad/signature-pad-hidden-input.svelte +34 -34
- package/dist/signature-pad/signature-pad-label.svelte +30 -30
- package/dist/signature-pad/signature-pad-root.svelte +59 -59
- package/dist/signature-pad/signature-pad-segment-path.svelte +37 -37
- package/dist/signature-pad/signature-pad-segment.svelte +30 -30
- package/dist/slider/index.d.ts +1 -1
- package/dist/slider/index.js +1 -1
- package/dist/slider/slider-anatomy.d.ts +1 -0
- package/dist/slider/slider-anatomy.js +1 -0
- package/dist/slider/slider-control.svelte +30 -30
- package/dist/slider/slider-dragging-indicator.svelte +36 -36
- package/dist/slider/slider-hidden-input.svelte +33 -33
- package/dist/slider/slider-label.svelte +30 -30
- package/dist/slider/slider-marker-group.svelte +30 -30
- package/dist/slider/slider-marker.svelte +39 -39
- package/dist/slider/slider-range.svelte +30 -30
- package/dist/slider/slider-root.svelte +69 -69
- package/dist/slider/slider-thumb.svelte +43 -43
- package/dist/slider/slider-track.svelte +30 -30
- package/dist/slider/slider-value-text.svelte +34 -34
- package/dist/splitter/index.d.ts +1 -1
- package/dist/splitter/index.js +1 -1
- package/dist/splitter/splitter-anatomy.d.ts +1 -0
- package/dist/splitter/splitter-anatomy.js +1 -0
- package/dist/splitter/splitter-panel.svelte +38 -38
- package/dist/splitter/splitter-resize-trigger.svelte +52 -52
- package/dist/splitter/splitter-root.svelte +53 -53
- package/dist/steps/index.d.ts +1 -1
- package/dist/steps/index.js +1 -1
- package/dist/steps/steps-anatomy.d.ts +1 -0
- package/dist/steps/steps-anatomy.js +1 -0
- package/dist/steps/steps-completed-content.svelte +37 -37
- package/dist/steps/steps-content.svelte +32 -32
- package/dist/steps/steps-indicator.svelte +37 -37
- package/dist/steps/steps-item.svelte +48 -48
- package/dist/steps/steps-list.svelte +30 -30
- package/dist/steps/steps-next-trigger.svelte +30 -30
- package/dist/steps/steps-prev-trigger.svelte +30 -30
- package/dist/steps/steps-progress.svelte +30 -30
- package/dist/steps/steps-root.svelte +55 -55
- package/dist/steps/steps-separator.svelte +36 -36
- package/dist/steps/steps-trigger.svelte +36 -36
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/switch-anatomy.d.ts +1 -0
- package/dist/switch/switch-anatomy.js +1 -0
- package/dist/switch/switch-control.svelte +30 -30
- package/dist/switch/switch-hidden-input.svelte +27 -27
- package/dist/switch/switch-label.svelte +30 -30
- package/dist/switch/switch-root.svelte +59 -59
- package/dist/switch/switch-thumb.svelte +30 -30
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/tabs-anatomy.d.ts +1 -0
- package/dist/tabs/tabs-anatomy.js +1 -0
- package/dist/tabs/tabs-content.svelte +38 -38
- package/dist/tabs/tabs-indicator.svelte +30 -30
- package/dist/tabs/tabs-list.svelte +30 -30
- package/dist/tabs/tabs-root.svelte +57 -57
- package/dist/tabs/tabs-trigger.svelte +41 -41
- package/dist/tags-input/index.d.ts +1 -1
- package/dist/tags-input/index.js +1 -1
- package/dist/tags-input/tags-input-anatomy.d.ts +1 -0
- package/dist/tags-input/tags-input-anatomy.js +1 -0
- package/dist/tags-input/tags-input-clear-trigger.svelte +32 -32
- package/dist/tags-input/tags-input-control.svelte +30 -30
- package/dist/tags-input/tags-input-hidden-input.svelte +29 -29
- package/dist/tags-input/tags-input-input.svelte +27 -27
- package/dist/tags-input/tags-input-item-delete-trigger.svelte +36 -36
- package/dist/tags-input/tags-input-item-input.svelte +33 -33
- package/dist/tags-input/tags-input-item-preview.svelte +36 -36
- package/dist/tags-input/tags-input-item-text.svelte +36 -36
- package/dist/tags-input/tags-input-item.svelte +48 -48
- package/dist/tags-input/tags-input-label.svelte +30 -30
- package/dist/tags-input/tags-input-root.svelte +74 -74
- package/dist/time-picker/index.d.ts +2 -1
- package/dist/time-picker/index.js +1 -1
- package/dist/time-picker/time-picker-anatomy.d.ts +1 -0
- package/dist/time-picker/time-picker-anatomy.js +1 -0
- package/dist/time-picker/time-picker-clear-trigger.svelte +32 -32
- package/dist/time-picker/time-picker-column.svelte +34 -34
- package/dist/time-picker/time-picker-content.svelte +39 -39
- package/dist/time-picker/time-picker-control.svelte +30 -30
- package/dist/time-picker/time-picker-hour-cell.svelte +34 -34
- package/dist/time-picker/time-picker-input.svelte +27 -27
- package/dist/time-picker/time-picker-label.svelte +30 -30
- package/dist/time-picker/time-picker-minute-cell.svelte +34 -34
- package/dist/time-picker/time-picker-period-cell.svelte +42 -42
- package/dist/time-picker/time-picker-positioner.svelte +38 -38
- package/dist/time-picker/time-picker-root.svelte +81 -81
- package/dist/time-picker/time-picker-second-cell.svelte +34 -34
- package/dist/time-picker/time-picker-spacer.svelte +30 -30
- package/dist/time-picker/time-picker-trigger.svelte +30 -30
- package/dist/timer/index.d.ts +1 -1
- package/dist/timer/index.js +1 -1
- package/dist/timer/timer-action-trigger.svelte +37 -37
- package/dist/timer/timer-anatomy.d.ts +1 -0
- package/dist/timer/timer-anatomy.js +1 -0
- package/dist/timer/timer-area.svelte +30 -30
- package/dist/timer/timer-control.svelte +30 -30
- package/dist/timer/timer-item-label.svelte +36 -36
- package/dist/timer/timer-item-value.svelte +40 -40
- package/dist/timer/timer-item.svelte +43 -43
- package/dist/timer/timer-root.svelte +55 -55
- package/dist/timer/timer-separator.svelte +30 -30
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/toast-action-trigger.svelte +32 -32
- package/dist/toast/toast-actor.svelte +19 -19
- package/dist/toast/toast-anatomy.d.ts +1 -0
- package/dist/toast/toast-anatomy.js +1 -0
- package/dist/toast/toast-close-trigger.svelte +30 -30
- package/dist/toast/toast-description.svelte +34 -34
- package/dist/toast/toast-ghost-after.svelte +30 -30
- package/dist/toast/toast-ghost-before.svelte +30 -30
- package/dist/toast/toast-root.svelte +33 -33
- package/dist/toast/toast-title.svelte +34 -34
- package/dist/toast/toaster.svelte +60 -60
- package/dist/toggle/create-toggle.svelte.js +1 -1
- package/dist/toggle/index.d.ts +1 -1
- package/dist/toggle/index.js +1 -1
- package/dist/toggle/toggle-root.svelte +50 -50
- package/dist/toggle-group/index.d.ts +1 -1
- package/dist/toggle-group/index.js +1 -1
- package/dist/toggle-group/toggle-group-anatomy.d.ts +1 -0
- package/dist/toggle-group/toggle-group-anatomy.js +1 -0
- package/dist/toggle-group/toggle-group-item.svelte +43 -43
- package/dist/toggle-group/toggle-group-root.svelte +58 -58
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/tooltip-anatomy.d.ts +1 -0
- package/dist/tooltip/tooltip-anatomy.js +1 -0
- package/dist/tooltip/tooltip-arrow-tip.svelte +30 -30
- package/dist/tooltip/tooltip-arrow.svelte +30 -30
- package/dist/tooltip/tooltip-content.svelte +37 -37
- package/dist/tooltip/tooltip-positioner.svelte +40 -40
- package/dist/tooltip/tooltip-root.svelte +44 -44
- package/dist/tooltip/tooltip-trigger.svelte +30 -30
- package/dist/tour/index.d.ts +1 -1
- package/dist/tour/tour-action-trigger.svelte +39 -39
- package/dist/tour/tour-arrow-tip.svelte +32 -32
- package/dist/tour/tour-arrow.svelte +32 -32
- package/dist/tour/tour-backdrop.svelte +44 -44
- package/dist/tour/tour-close-trigger.svelte +30 -30
- package/dist/tour/tour-content.svelte +37 -37
- package/dist/tour/tour-description.svelte +34 -34
- package/dist/tour/tour-positioner.svelte +36 -36
- package/dist/tour/tour-progress-text.svelte +34 -34
- package/dist/tour/tour-root.svelte +47 -47
- package/dist/tour/tour-spotlight.svelte +30 -30
- package/dist/tour/tour-title.svelte +34 -34
- package/dist/tour/tour-trigger.svelte +30 -30
- package/dist/tree-view/index.d.ts +1 -1
- package/dist/tree-view/index.js +1 -1
- package/dist/tree-view/tree-view-anatomy.d.ts +1 -0
- package/dist/tree-view/tree-view-anatomy.js +1 -0
- package/dist/tree-view/tree-view-branch-content.svelte +55 -55
- package/dist/tree-view/tree-view-branch-control.svelte +35 -35
- package/dist/tree-view/tree-view-branch-indent-guide.svelte +35 -35
- package/dist/tree-view/tree-view-branch-indicator.svelte +35 -35
- package/dist/tree-view/tree-view-branch-text.svelte +35 -35
- package/dist/tree-view/tree-view-branch-trigger.svelte +35 -35
- package/dist/tree-view/tree-view-branch.svelte +47 -47
- package/dist/tree-view/tree-view-item-indicator.svelte +35 -35
- package/dist/tree-view/tree-view-item-text.svelte +35 -35
- package/dist/tree-view/tree-view-item.svelte +43 -43
- package/dist/tree-view/tree-view-label.svelte +29 -29
- package/dist/tree-view/tree-view-root.svelte +68 -68
- package/dist/tree-view/tree-view-tree.svelte +29 -29
- package/package.json +5 -1
- /package/dist/toggle/{anatomy.d.ts → toggle-anatomy.d.ts} +0 -0
- /package/dist/toggle/{anatomy.js → toggle-anatomy.js} +0 -0
@@ -1,30 +1,30 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {HtmlIngredientProps} from '../types.js';
|
3
|
-
|
4
|
-
export interface AlertDialogTitleProps
|
5
|
-
extends HtmlIngredientProps<'h2', HTMLHeadingElement> {}
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script lang="ts">
|
9
|
-
import {mergeProps} from '../merge-props.js';
|
10
|
-
import {getAlertDialogContext} from './alert-dialog-context.svelte.js';
|
11
|
-
|
12
|
-
let {
|
13
|
-
ref = $bindable(null),
|
14
|
-
asChild,
|
15
|
-
children,
|
16
|
-
...props
|
17
|
-
}: AlertDialogTitleProps = $props();
|
18
|
-
|
19
|
-
let alertDialog = getAlertDialogContext();
|
20
|
-
|
21
|
-
let mergedProps = $derived(mergeProps(alertDialog.getTitleProps(), props));
|
22
|
-
</script>
|
23
|
-
|
24
|
-
{#if asChild}
|
25
|
-
{@render asChild(mergedProps)}
|
26
|
-
{:else}
|
27
|
-
<h2 bind:this={ref} {...mergedProps}>
|
28
|
-
{@render children?.()}
|
29
|
-
</h2>
|
30
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface AlertDialogTitleProps
|
5
|
+
extends HtmlIngredientProps<'h2', HTMLHeadingElement> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {getAlertDialogContext} from './alert-dialog-context.svelte.js';
|
11
|
+
|
12
|
+
let {
|
13
|
+
ref = $bindable(null),
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: AlertDialogTitleProps = $props();
|
18
|
+
|
19
|
+
let alertDialog = getAlertDialogContext();
|
20
|
+
|
21
|
+
let mergedProps = $derived(mergeProps(alertDialog.getTitleProps(), props));
|
22
|
+
</script>
|
23
|
+
|
24
|
+
{#if asChild}
|
25
|
+
{@render asChild(mergedProps)}
|
26
|
+
{:else}
|
27
|
+
<h2 bind:this={ref} {...mergedProps}>
|
28
|
+
{@render children?.()}
|
29
|
+
</h2>
|
30
|
+
{/if}
|
@@ -1,30 +1,30 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {HtmlIngredientProps} from '../types.js';
|
3
|
-
|
4
|
-
export interface AlertDialogTriggerProps
|
5
|
-
extends HtmlIngredientProps<'button', HTMLButtonElement> {}
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script lang="ts">
|
9
|
-
import {mergeProps} from '../merge-props.js';
|
10
|
-
import {getAlertDialogContext} from './alert-dialog-context.svelte.js';
|
11
|
-
|
12
|
-
let {
|
13
|
-
ref = $bindable(null),
|
14
|
-
asChild,
|
15
|
-
children,
|
16
|
-
...props
|
17
|
-
}: AlertDialogTriggerProps = $props();
|
18
|
-
|
19
|
-
let alertDialog = getAlertDialogContext();
|
20
|
-
|
21
|
-
let mergedProps = $derived(mergeProps(alertDialog.getTriggerProps(), props));
|
22
|
-
</script>
|
23
|
-
|
24
|
-
{#if asChild}
|
25
|
-
{@render asChild(mergedProps)}
|
26
|
-
{:else}
|
27
|
-
<button bind:this={ref} {...mergedProps}>
|
28
|
-
{@render children?.()}
|
29
|
-
</button>
|
30
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface AlertDialogTriggerProps
|
5
|
+
extends HtmlIngredientProps<'button', HTMLButtonElement> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {getAlertDialogContext} from './alert-dialog-context.svelte.js';
|
11
|
+
|
12
|
+
let {
|
13
|
+
ref = $bindable(null),
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: AlertDialogTriggerProps = $props();
|
18
|
+
|
19
|
+
let alertDialog = getAlertDialogContext();
|
20
|
+
|
21
|
+
let mergedProps = $derived(mergeProps(alertDialog.getTriggerProps(), props));
|
22
|
+
</script>
|
23
|
+
|
24
|
+
{#if asChild}
|
25
|
+
{@render asChild(mergedProps)}
|
26
|
+
{:else}
|
27
|
+
<button bind:this={ref} {...mergedProps}>
|
28
|
+
{@render children?.()}
|
29
|
+
</button>
|
30
|
+
{/if}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
export { anatomy as accordionAnatomy } from './accordion/accordion-anatomy.js';
|
2
|
+
export { anatomy as alertDialogAnatomy } from './alert-dialog/alert-dialog-anatomy.js';
|
3
|
+
export { anatomy as alertAnatomy } from './alert/alert-anatomy.js';
|
4
|
+
export { anatomy as avatarAnatomy } from './avatar/avatar-anatomy.js';
|
5
|
+
export { anatomy as breadcrumbsAnatomy } from './breadcrumbs/breadcrumbs-anatomy.js';
|
6
|
+
export { anatomy as carouselAnatomy } from './carousel/carousel-anatomy.js';
|
7
|
+
export { anatomy as checkboxAnatomy } from './checkbox/checkbox-anatomy.js';
|
8
|
+
export { anatomy as clipboardAnatomy } from './clipboard/clipboard-anatomy.js';
|
9
|
+
export { anatomy as collapsibleAnatomy } from './collapsible/collapsible-anatomy.js';
|
10
|
+
export { anatomy as colorPickerAnatomy } from './color-picker/color-picker-anatomy.js';
|
11
|
+
export { anatomy as comboboxAnatomy } from './combobox/combobox-anatomy.js';
|
12
|
+
export { anatomy as datePickerAnatomy } from './date-picker/date-picker-anatomy.js';
|
13
|
+
export { anatomy as dialogAnatomy } from './dialog/dialog-anatomy.js';
|
14
|
+
export { anatomy as drawerAnatomy } from './drawer/drawer-anatomy.js';
|
15
|
+
export { anatomy as editableAnatomy } from './editable/editable-anatomy.js';
|
16
|
+
export { anatomy as fieldAnatomy } from './field/field-anatomy.js';
|
17
|
+
export { anatomy as fileUploadAnatomy } from './file-upload/file-upload-anatomy.js';
|
18
|
+
export { anatomy as floatingPanelAnatomy } from './floating-panel/floating-panel-anatomy.js';
|
19
|
+
export { anatomy as hoverCardAnatomy } from './hover-card/hover-card-anatomy.js';
|
20
|
+
export { anatomy as menuAnatomy } from './menu/menu-anatomy.js';
|
21
|
+
export { anatomy as numberInputAnatomy } from './number-input/number-input-anatomy.js';
|
22
|
+
export { anatomy as paginationAnatomy } from './pagination/pagination-anatomy.js';
|
23
|
+
export { anatomy as pinInputAnatomy } from './pin-input/pin-input-anatomy.js';
|
24
|
+
export { anatomy as popoverAnatomy } from './popover/popover-anatomy.js';
|
25
|
+
export { anatomy as progressAnatomy } from './progress/progress-anatomy.js';
|
26
|
+
export { anatomy as qrCodeAnatomy } from './qr-code/qr-code-anatomy.js';
|
27
|
+
export { anatomy as radioGroupAnatomy } from './radio-group/radio-group-anatomy.js';
|
28
|
+
export { anatomy as ratingGroupAnatomy } from './rating-group/rating-group-anatomy.js';
|
29
|
+
export { anatomy as segmentGroupAnatomy } from './segment-group/segment-group-anatomy.js';
|
30
|
+
export { anatomy as selectAnatomy } from './select/select-anatomy.js';
|
31
|
+
export { anatomy as signaturePadAnatomy } from './signature-pad/signature-pad-anatomy.js';
|
32
|
+
export { anatomy as sliderAnatomy } from './slider/slider-anatomy.js';
|
33
|
+
export { anatomy as splitterAnatomy } from './splitter/splitter-anatomy.js';
|
34
|
+
export { anatomy as stepsAnatomy } from './steps/steps-anatomy.js';
|
35
|
+
export { anatomy as switchAnatomy } from './switch/switch-anatomy.js';
|
36
|
+
export { anatomy as tabsAnatomy } from './tabs/tabs-anatomy.js';
|
37
|
+
export { anatomy as tagsInputAnatomy } from './tags-input/tags-input-anatomy.js';
|
38
|
+
export { anatomy as timePickerAnatomy } from './time-picker/time-picker-anatomy.js';
|
39
|
+
export { anatomy as timerAnatomy } from './timer/timer-anatomy.js';
|
40
|
+
export { anatomy as toastAnatomy } from './toast/toast-anatomy.js';
|
41
|
+
export { anatomy as toggleGroupAnatomy } from './toggle-group/toggle-group-anatomy.js';
|
42
|
+
export { anatomy as toggleAnatomy } from './toggle/toggle-anatomy.js';
|
43
|
+
export { anatomy as tooltipAnatomy } from './tooltip/tooltip-anatomy.js';
|
44
|
+
export { anatomy as tourAnatomy } from './tour/tour-anatomy.js';
|
45
|
+
export { anatomy as treeViewAnatomy } from './tree-view/tree-view-anatomy.js';
|
46
|
+
export * from '@zag-js/anatomy';
|
package/dist/anatomy.js
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
export { anatomy as accordionAnatomy } from './accordion/accordion-anatomy.js';
|
2
|
+
export { anatomy as alertDialogAnatomy } from './alert-dialog/alert-dialog-anatomy.js';
|
3
|
+
export { anatomy as alertAnatomy } from './alert/alert-anatomy.js';
|
4
|
+
export { anatomy as avatarAnatomy } from './avatar/avatar-anatomy.js';
|
5
|
+
export { anatomy as breadcrumbsAnatomy } from './breadcrumbs/breadcrumbs-anatomy.js';
|
6
|
+
export { anatomy as carouselAnatomy } from './carousel/carousel-anatomy.js';
|
7
|
+
export { anatomy as checkboxAnatomy } from './checkbox/checkbox-anatomy.js';
|
8
|
+
export { anatomy as clipboardAnatomy } from './clipboard/clipboard-anatomy.js';
|
9
|
+
export { anatomy as collapsibleAnatomy } from './collapsible/collapsible-anatomy.js';
|
10
|
+
export { anatomy as colorPickerAnatomy } from './color-picker/color-picker-anatomy.js';
|
11
|
+
export { anatomy as comboboxAnatomy } from './combobox/combobox-anatomy.js';
|
12
|
+
export { anatomy as datePickerAnatomy } from './date-picker/date-picker-anatomy.js';
|
13
|
+
export { anatomy as dialogAnatomy } from './dialog/dialog-anatomy.js';
|
14
|
+
export { anatomy as drawerAnatomy } from './drawer/drawer-anatomy.js';
|
15
|
+
export { anatomy as editableAnatomy } from './editable/editable-anatomy.js';
|
16
|
+
export { anatomy as fieldAnatomy } from './field/field-anatomy.js';
|
17
|
+
export { anatomy as fileUploadAnatomy } from './file-upload/file-upload-anatomy.js';
|
18
|
+
export { anatomy as floatingPanelAnatomy } from './floating-panel/floating-panel-anatomy.js';
|
19
|
+
export { anatomy as hoverCardAnatomy } from './hover-card/hover-card-anatomy.js';
|
20
|
+
export { anatomy as menuAnatomy } from './menu/menu-anatomy.js';
|
21
|
+
export { anatomy as numberInputAnatomy } from './number-input/number-input-anatomy.js';
|
22
|
+
export { anatomy as paginationAnatomy } from './pagination/pagination-anatomy.js';
|
23
|
+
export { anatomy as pinInputAnatomy } from './pin-input/pin-input-anatomy.js';
|
24
|
+
export { anatomy as popoverAnatomy } from './popover/popover-anatomy.js';
|
25
|
+
export { anatomy as progressAnatomy } from './progress/progress-anatomy.js';
|
26
|
+
export { anatomy as qrCodeAnatomy } from './qr-code/qr-code-anatomy.js';
|
27
|
+
export { anatomy as radioGroupAnatomy } from './radio-group/radio-group-anatomy.js';
|
28
|
+
export { anatomy as ratingGroupAnatomy } from './rating-group/rating-group-anatomy.js';
|
29
|
+
export { anatomy as segmentGroupAnatomy } from './segment-group/segment-group-anatomy.js';
|
30
|
+
export { anatomy as selectAnatomy } from './select/select-anatomy.js';
|
31
|
+
export { anatomy as signaturePadAnatomy } from './signature-pad/signature-pad-anatomy.js';
|
32
|
+
export { anatomy as sliderAnatomy } from './slider/slider-anatomy.js';
|
33
|
+
export { anatomy as splitterAnatomy } from './splitter/splitter-anatomy.js';
|
34
|
+
export { anatomy as stepsAnatomy } from './steps/steps-anatomy.js';
|
35
|
+
export { anatomy as switchAnatomy } from './switch/switch-anatomy.js';
|
36
|
+
export { anatomy as tabsAnatomy } from './tabs/tabs-anatomy.js';
|
37
|
+
export { anatomy as tagsInputAnatomy } from './tags-input/tags-input-anatomy.js';
|
38
|
+
export { anatomy as timePickerAnatomy } from './time-picker/time-picker-anatomy.js';
|
39
|
+
export { anatomy as timerAnatomy } from './timer/timer-anatomy.js';
|
40
|
+
export { anatomy as toastAnatomy } from './toast/toast-anatomy.js';
|
41
|
+
export { anatomy as toggleGroupAnatomy } from './toggle-group/toggle-group-anatomy.js';
|
42
|
+
export { anatomy as toggleAnatomy } from './toggle/toggle-anatomy.js';
|
43
|
+
export { anatomy as tooltipAnatomy } from './tooltip/tooltip-anatomy.js';
|
44
|
+
export { anatomy as tourAnatomy } from './tour/tour-anatomy.js';
|
45
|
+
export { anatomy as treeViewAnatomy } from './tree-view/tree-view-anatomy.js';
|
46
|
+
export * from '@zag-js/anatomy';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { anatomy } from '@zag-js/avatar';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { anatomy } from '@zag-js/avatar';
|
@@ -1,30 +1,30 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {HtmlIngredientProps} from '../types.js';
|
3
|
-
|
4
|
-
export interface AvatarFallbackProps
|
5
|
-
extends HtmlIngredientProps<'span', HTMLSpanElement> {}
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script lang="ts">
|
9
|
-
import {mergeProps} from '../merge-props.js';
|
10
|
-
import {getAvatarContext} from './avatar-context.svelte.js';
|
11
|
-
|
12
|
-
let {
|
13
|
-
ref = $bindable(null),
|
14
|
-
asChild,
|
15
|
-
children,
|
16
|
-
...props
|
17
|
-
}: AvatarFallbackProps = $props();
|
18
|
-
|
19
|
-
let avatar = getAvatarContext();
|
20
|
-
|
21
|
-
let mergedProps = $derived(mergeProps(avatar.getFallbackProps(), props));
|
22
|
-
</script>
|
23
|
-
|
24
|
-
{#if asChild}
|
25
|
-
{@render asChild(mergedProps)}
|
26
|
-
{:else}
|
27
|
-
<span bind:this={ref} {...mergedProps}>
|
28
|
-
{@render children?.()}
|
29
|
-
</span>
|
30
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface AvatarFallbackProps
|
5
|
+
extends HtmlIngredientProps<'span', HTMLSpanElement> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {getAvatarContext} from './avatar-context.svelte.js';
|
11
|
+
|
12
|
+
let {
|
13
|
+
ref = $bindable(null),
|
14
|
+
asChild,
|
15
|
+
children,
|
16
|
+
...props
|
17
|
+
}: AvatarFallbackProps = $props();
|
18
|
+
|
19
|
+
let avatar = getAvatarContext();
|
20
|
+
|
21
|
+
let mergedProps = $derived(mergeProps(avatar.getFallbackProps(), props));
|
22
|
+
</script>
|
23
|
+
|
24
|
+
{#if asChild}
|
25
|
+
{@render asChild(mergedProps)}
|
26
|
+
{:else}
|
27
|
+
<span bind:this={ref} {...mergedProps}>
|
28
|
+
{@render children?.()}
|
29
|
+
</span>
|
30
|
+
{/if}
|
@@ -1,23 +1,23 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {HtmlIngredientProps} from '../types.js';
|
3
|
-
|
4
|
-
export interface AvatarImageProps
|
5
|
-
extends HtmlIngredientProps<'img', HTMLImageElement> {}
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script lang="ts">
|
9
|
-
import {mergeProps} from '../merge-props.js';
|
10
|
-
import {getAvatarContext} from './avatar-context.svelte.js';
|
11
|
-
|
12
|
-
let {ref = $bindable(null), asChild, ...props}: AvatarImageProps = $props();
|
13
|
-
|
14
|
-
let avatar = getAvatarContext();
|
15
|
-
|
16
|
-
let mergedProps = $derived(mergeProps(avatar.getImageProps(), props));
|
17
|
-
</script>
|
18
|
-
|
19
|
-
{#if asChild}
|
20
|
-
{@render asChild(mergedProps)}
|
21
|
-
{:else}
|
22
|
-
<img bind:this={ref} {...mergedProps} />
|
23
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface AvatarImageProps
|
5
|
+
extends HtmlIngredientProps<'img', HTMLImageElement> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {getAvatarContext} from './avatar-context.svelte.js';
|
11
|
+
|
12
|
+
let {ref = $bindable(null), asChild, ...props}: AvatarImageProps = $props();
|
13
|
+
|
14
|
+
let avatar = getAvatarContext();
|
15
|
+
|
16
|
+
let mergedProps = $derived(mergeProps(avatar.getImageProps(), props));
|
17
|
+
</script>
|
18
|
+
|
19
|
+
{#if asChild}
|
20
|
+
{@render asChild(mergedProps)}
|
21
|
+
{:else}
|
22
|
+
<img bind:this={ref} {...mergedProps} />
|
23
|
+
{/if}
|
@@ -1,46 +1,46 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
|
-
import {
|
4
|
-
type CreateAvatarProps,
|
5
|
-
type CreateAvatarReturn,
|
6
|
-
} from './create-avatar.svelte.js';
|
7
|
-
|
8
|
-
export interface AvatarProps
|
9
|
-
extends Assign<
|
10
|
-
HtmlIngredientProps<'div', HTMLDivElement, CreateAvatarReturn>,
|
11
|
-
CreateAvatarProps
|
12
|
-
> {}
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script lang="ts">
|
16
|
-
import {mergeProps} from '../merge-props.js';
|
17
|
-
import {reflect} from '@zag-js/svelte';
|
18
|
-
import {createSplitProps} from '@zag-js/utils';
|
19
|
-
import {setAvatarContext} from './avatar-context.svelte.js';
|
20
|
-
import {createAvatar} from './create-avatar.svelte.js';
|
21
|
-
|
22
|
-
let {
|
23
|
-
ref = $bindable(null),
|
24
|
-
asChild,
|
25
|
-
children,
|
26
|
-
...props
|
27
|
-
}: AvatarProps = $props();
|
28
|
-
|
29
|
-
let [createAvatarProps, localProps] = $derived(
|
30
|
-
createSplitProps<CreateAvatarProps>(['id', 'ids', 'onStatusChange'])(props),
|
31
|
-
);
|
32
|
-
|
33
|
-
let avatar = createAvatar(reflect(() => createAvatarProps));
|
34
|
-
|
35
|
-
let mergedProps = $derived(mergeProps(avatar.getRootProps(), localProps));
|
36
|
-
|
37
|
-
setAvatarContext(avatar);
|
38
|
-
</script>
|
39
|
-
|
40
|
-
{#if asChild}
|
41
|
-
{@render asChild(mergedProps, avatar)}
|
42
|
-
{:else}
|
43
|
-
<div bind:this={ref} {...mergedProps}>
|
44
|
-
{@render children?.(avatar)}
|
45
|
-
</div>
|
46
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
|
+
import {
|
4
|
+
type CreateAvatarProps,
|
5
|
+
type CreateAvatarReturn,
|
6
|
+
} from './create-avatar.svelte.js';
|
7
|
+
|
8
|
+
export interface AvatarProps
|
9
|
+
extends Assign<
|
10
|
+
HtmlIngredientProps<'div', HTMLDivElement, CreateAvatarReturn>,
|
11
|
+
CreateAvatarProps
|
12
|
+
> {}
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script lang="ts">
|
16
|
+
import {mergeProps} from '../merge-props.js';
|
17
|
+
import {reflect} from '@zag-js/svelte';
|
18
|
+
import {createSplitProps} from '@zag-js/utils';
|
19
|
+
import {setAvatarContext} from './avatar-context.svelte.js';
|
20
|
+
import {createAvatar} from './create-avatar.svelte.js';
|
21
|
+
|
22
|
+
let {
|
23
|
+
ref = $bindable(null),
|
24
|
+
asChild,
|
25
|
+
children,
|
26
|
+
...props
|
27
|
+
}: AvatarProps = $props();
|
28
|
+
|
29
|
+
let [createAvatarProps, localProps] = $derived(
|
30
|
+
createSplitProps<CreateAvatarProps>(['id', 'ids', 'onStatusChange'])(props),
|
31
|
+
);
|
32
|
+
|
33
|
+
let avatar = createAvatar(reflect(() => createAvatarProps));
|
34
|
+
|
35
|
+
let mergedProps = $derived(mergeProps(avatar.getRootProps(), localProps));
|
36
|
+
|
37
|
+
setAvatarContext(avatar);
|
38
|
+
</script>
|
39
|
+
|
40
|
+
{#if asChild}
|
41
|
+
{@render asChild(mergedProps, avatar)}
|
42
|
+
{:else}
|
43
|
+
<div bind:this={ref} {...mergedProps}>
|
44
|
+
{@render children?.(avatar)}
|
45
|
+
</div>
|
46
|
+
{/if}
|
package/dist/avatar/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
export * from './avatar-anatomy.js';
|
1
2
|
export * as Avatar from './avatar.js';
|
2
3
|
export type { AvatarFallbackProps } from './avatar-fallback.svelte';
|
3
4
|
export type { AvatarImageProps } from './avatar-image.svelte';
|
4
5
|
export type { AvatarProps } from './avatar-root.svelte';
|
5
|
-
export { anatomy as avatarAnatomy } from '
|
6
|
+
export { anatomy as avatarAnatomy } from './avatar-anatomy.js';
|
6
7
|
export { getAvatarContext } from './avatar-context.svelte.js';
|
package/dist/avatar/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"
|
2
|
-
export declare const parts: Record<"
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"root" | "list" | "item" | "link" | "separator">;
|
2
|
+
export declare const parts: Record<"root" | "list" | "item" | "link" | "separator", import("@zag-js/anatomy").AnatomyPart>;
|
@@ -1,25 +1,25 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {HtmlIngredientProps} from '../types.js';
|
3
|
-
|
4
|
-
export interface BreadcrumbsItemProps
|
5
|
-
extends HtmlIngredientProps<'li', HTMLLIElement> {}
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script lang="ts">
|
9
|
-
import {mergeProps} from '../merge-props.js';
|
10
|
-
import {createBreadcrumbs} from './create-breadcrumbs.js';
|
11
|
-
|
12
|
-
let {ref, asChild, children, ...props}: BreadcrumbsItemProps = $props();
|
13
|
-
|
14
|
-
let breadcrumbs = createBreadcrumbs();
|
15
|
-
|
16
|
-
let attrs = $derived(mergeProps(breadcrumbs.getItemProps(), props));
|
17
|
-
</script>
|
18
|
-
|
19
|
-
{#if asChild}
|
20
|
-
{@render asChild(attrs)}
|
21
|
-
{:else}
|
22
|
-
<li bind:this={ref} {...attrs}>
|
23
|
-
{@render children?.()}
|
24
|
-
</li>
|
25
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface BreadcrumbsItemProps
|
5
|
+
extends HtmlIngredientProps<'li', HTMLLIElement> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {createBreadcrumbs} from './create-breadcrumbs.js';
|
11
|
+
|
12
|
+
let {ref, asChild, children, ...props}: BreadcrumbsItemProps = $props();
|
13
|
+
|
14
|
+
let breadcrumbs = createBreadcrumbs();
|
15
|
+
|
16
|
+
let attrs = $derived(mergeProps(breadcrumbs.getItemProps(), props));
|
17
|
+
</script>
|
18
|
+
|
19
|
+
{#if asChild}
|
20
|
+
{@render asChild(attrs)}
|
21
|
+
{:else}
|
22
|
+
<li bind:this={ref} {...attrs}>
|
23
|
+
{@render children?.()}
|
24
|
+
</li>
|
25
|
+
{/if}
|
@@ -1,33 +1,33 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
|
-
import type {LinkProps} from './create-breadcrumbs.js';
|
4
|
-
|
5
|
-
export interface BreadcrumbsLinkProps
|
6
|
-
extends Assign<HtmlIngredientProps<'a', HTMLAnchorElement>, LinkProps> {}
|
7
|
-
</script>
|
8
|
-
|
9
|
-
<script lang="ts">
|
10
|
-
import {mergeProps} from '../merge-props.js';
|
11
|
-
import {createSplitProps} from '@zag-js/utils';
|
12
|
-
import {getBreadcrumbsContext} from './breadcrumbs-context.svelte.js';
|
13
|
-
|
14
|
-
let {ref, asChild, children, ...props}: BreadcrumbsLinkProps = $props();
|
15
|
-
|
16
|
-
let [linkProps, localProps] = $derived(
|
17
|
-
createSplitProps<LinkProps>(['href', 'current'])(props),
|
18
|
-
);
|
19
|
-
|
20
|
-
let breadcrumbs = getBreadcrumbsContext();
|
21
|
-
|
22
|
-
let attrs = $derived(
|
23
|
-
mergeProps(breadcrumbs.getLinkProps(linkProps), localProps),
|
24
|
-
);
|
25
|
-
</script>
|
26
|
-
|
27
|
-
{#if asChild}
|
28
|
-
{@render asChild(attrs)}
|
29
|
-
{:else}
|
30
|
-
<a bind:this={ref} {...attrs}>
|
31
|
-
{@render children?.()}
|
32
|
-
</a>
|
33
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
|
+
import type {LinkProps} from './create-breadcrumbs.js';
|
4
|
+
|
5
|
+
export interface BreadcrumbsLinkProps
|
6
|
+
extends Assign<HtmlIngredientProps<'a', HTMLAnchorElement>, LinkProps> {}
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<script lang="ts">
|
10
|
+
import {mergeProps} from '../merge-props.js';
|
11
|
+
import {createSplitProps} from '@zag-js/utils';
|
12
|
+
import {getBreadcrumbsContext} from './breadcrumbs-context.svelte.js';
|
13
|
+
|
14
|
+
let {ref, asChild, children, ...props}: BreadcrumbsLinkProps = $props();
|
15
|
+
|
16
|
+
let [linkProps, localProps] = $derived(
|
17
|
+
createSplitProps<LinkProps>(['href', 'current'])(props),
|
18
|
+
);
|
19
|
+
|
20
|
+
let breadcrumbs = getBreadcrumbsContext();
|
21
|
+
|
22
|
+
let attrs = $derived(
|
23
|
+
mergeProps(breadcrumbs.getLinkProps(linkProps), localProps),
|
24
|
+
);
|
25
|
+
</script>
|
26
|
+
|
27
|
+
{#if asChild}
|
28
|
+
{@render asChild(attrs)}
|
29
|
+
{:else}
|
30
|
+
<a bind:this={ref} {...attrs}>
|
31
|
+
{@render children?.()}
|
32
|
+
</a>
|
33
|
+
{/if}
|
@@ -1,25 +1,25 @@
|
|
1
|
-
<script lang="ts" module>
|
2
|
-
import type {HtmlIngredientProps} from '../types.js';
|
3
|
-
|
4
|
-
export interface BreadcrumbsListProps
|
5
|
-
extends HtmlIngredientProps<'ol', HTMLOListElement> {}
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script lang="ts">
|
9
|
-
import {mergeProps} from '../merge-props.js';
|
10
|
-
import {getBreadcrumbsContext} from './breadcrumbs-context.svelte.js';
|
11
|
-
|
12
|
-
let {ref, asChild, children, ...props}: BreadcrumbsListProps = $props();
|
13
|
-
|
14
|
-
let breadcrumbs = getBreadcrumbsContext();
|
15
|
-
|
16
|
-
let attrs = $derived(mergeProps(breadcrumbs.getListProps(), props));
|
17
|
-
</script>
|
18
|
-
|
19
|
-
{#if asChild}
|
20
|
-
{@render asChild(attrs)}
|
21
|
-
{:else}
|
22
|
-
<ol bind:this={ref} {...attrs}>
|
23
|
-
{@render children?.()}
|
24
|
-
</ol>
|
25
|
-
{/if}
|
1
|
+
<script lang="ts" module>
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface BreadcrumbsListProps
|
5
|
+
extends HtmlIngredientProps<'ol', HTMLOListElement> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '../merge-props.js';
|
10
|
+
import {getBreadcrumbsContext} from './breadcrumbs-context.svelte.js';
|
11
|
+
|
12
|
+
let {ref, asChild, children, ...props}: BreadcrumbsListProps = $props();
|
13
|
+
|
14
|
+
let breadcrumbs = getBreadcrumbsContext();
|
15
|
+
|
16
|
+
let attrs = $derived(mergeProps(breadcrumbs.getListProps(), props));
|
17
|
+
</script>
|
18
|
+
|
19
|
+
{#if asChild}
|
20
|
+
{@render asChild(attrs)}
|
21
|
+
{:else}
|
22
|
+
<ol bind:this={ref} {...attrs}>
|
23
|
+
{@render children?.()}
|
24
|
+
</ol>
|
25
|
+
{/if}
|