ui-ingredients 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/accordion/context.svelte.d.ts +5 -10
- package/dist/accordion/context.svelte.js +3 -20
- package/dist/accordion/create-accordion.svelte.d.ts +6 -0
- package/dist/accordion/create-accordion.svelte.js +7 -0
- package/dist/accordion/item-content.svelte +6 -13
- package/dist/accordion/item-content.svelte.d.ts +0 -3
- package/dist/accordion/item-indicator.svelte +6 -13
- package/dist/accordion/item-indicator.svelte.d.ts +0 -3
- package/dist/accordion/item-trigger.svelte +6 -13
- package/dist/accordion/item-trigger.svelte.d.ts +0 -3
- package/dist/accordion/item.svelte +10 -25
- package/dist/accordion/item.svelte.d.ts +0 -6
- package/dist/accordion/root.svelte +15 -21
- package/dist/accordion/root.svelte.d.ts +0 -6
- package/dist/avatar/context.svelte.d.ts +3 -8
- package/dist/avatar/context.svelte.js +2 -14
- package/dist/avatar/create-avatar.svelte.d.ts +6 -0
- package/dist/avatar/create-avatar.svelte.js +7 -0
- package/dist/avatar/fallback.svelte +3 -3
- package/dist/avatar/fallback.svelte.d.ts +0 -3
- package/dist/avatar/image.svelte +3 -3
- package/dist/avatar/image.svelte.d.ts +0 -3
- package/dist/avatar/root.svelte +16 -27
- package/dist/avatar/root.svelte.d.ts +0 -6
- package/dist/carousel/context.svelte.d.ts +3 -8
- package/dist/carousel/context.svelte.js +2 -14
- package/dist/carousel/create-carousel.svelte.d.ts +6 -0
- package/dist/carousel/create-carousel.svelte.js +7 -0
- package/dist/carousel/indicator-group.svelte +4 -5
- package/dist/carousel/indicator-group.svelte.d.ts +0 -3
- package/dist/carousel/indicator.svelte +3 -3
- package/dist/carousel/indicator.svelte.d.ts +0 -4
- package/dist/carousel/item-group.svelte +3 -3
- package/dist/carousel/item-group.svelte.d.ts +0 -3
- package/dist/carousel/item.svelte +3 -4
- package/dist/carousel/item.svelte.d.ts +0 -6
- package/dist/carousel/next-trigger.svelte +4 -5
- package/dist/carousel/next-trigger.svelte.d.ts +0 -3
- package/dist/carousel/prev-trigger.svelte +4 -5
- package/dist/carousel/prev-trigger.svelte.d.ts +0 -3
- package/dist/carousel/root.svelte +15 -18
- package/dist/carousel/root.svelte.d.ts +0 -6
- package/dist/carousel/viewport.svelte +3 -3
- package/dist/carousel/viewport.svelte.d.ts +0 -3
- package/dist/checkbox/context.svelte.d.ts +3 -8
- package/dist/checkbox/context.svelte.js +2 -14
- package/dist/checkbox/control.svelte +3 -3
- package/dist/checkbox/control.svelte.d.ts +0 -3
- package/dist/checkbox/create-checkbox.svelte.d.ts +6 -0
- package/dist/checkbox/create-checkbox.svelte.js +7 -0
- package/dist/checkbox/hidden-input.svelte +4 -5
- package/dist/checkbox/hidden-input.svelte.d.ts +0 -3
- package/dist/checkbox/indicator.svelte +3 -3
- package/dist/checkbox/indicator.svelte.d.ts +0 -3
- package/dist/checkbox/label.svelte +3 -3
- package/dist/checkbox/label.svelte.d.ts +0 -3
- package/dist/checkbox/root.svelte +15 -15
- package/dist/checkbox/root.svelte.d.ts +0 -6
- package/dist/clipboard/context.svelte.d.ts +3 -8
- package/dist/clipboard/context.svelte.js +2 -14
- package/dist/clipboard/control.svelte +3 -3
- package/dist/clipboard/control.svelte.d.ts +0 -3
- package/dist/clipboard/create-clipboard.svelte.d.ts +6 -0
- package/dist/clipboard/create-clipboard.svelte.js +7 -0
- package/dist/clipboard/indicator.svelte +3 -3
- package/dist/clipboard/indicator.svelte.d.ts +0 -4
- package/dist/clipboard/input.svelte +3 -3
- package/dist/clipboard/input.svelte.d.ts +0 -3
- package/dist/clipboard/label.svelte +3 -3
- package/dist/clipboard/label.svelte.d.ts +0 -3
- package/dist/clipboard/root.svelte +14 -19
- package/dist/clipboard/root.svelte.d.ts +0 -6
- package/dist/clipboard/trigger.svelte +4 -5
- package/dist/clipboard/trigger.svelte.d.ts +0 -3
- package/dist/collapsible/content.svelte +3 -3
- package/dist/collapsible/content.svelte.d.ts +0 -3
- package/dist/collapsible/context.svelte.d.ts +3 -8
- package/dist/collapsible/context.svelte.js +2 -14
- package/dist/collapsible/create-collapsible.svelte.d.ts +6 -0
- package/dist/collapsible/create-collapsible.svelte.js +7 -0
- package/dist/collapsible/root.svelte +17 -17
- package/dist/collapsible/root.svelte.d.ts +0 -6
- package/dist/collapsible/trigger.svelte +6 -5
- package/dist/collapsible/trigger.svelte.d.ts +0 -3
- package/dist/combobox/clear-trigger.svelte +4 -5
- package/dist/combobox/clear-trigger.svelte.d.ts +0 -3
- package/dist/combobox/content.svelte +3 -3
- package/dist/combobox/content.svelte.d.ts +0 -3
- package/dist/combobox/context.svelte.d.ts +6 -16
- package/dist/combobox/context.svelte.js +4 -38
- package/dist/combobox/control.svelte +3 -3
- package/dist/combobox/control.svelte.d.ts +0 -3
- package/dist/combobox/create-combobox.svelte.d.ts +10 -0
- package/dist/combobox/create-combobox.svelte.js +19 -0
- package/dist/combobox/input.svelte +3 -3
- package/dist/combobox/input.svelte.d.ts +0 -3
- package/dist/combobox/item-group-label.svelte +5 -9
- package/dist/combobox/item-group-label.svelte.d.ts +0 -3
- package/dist/combobox/item-group.svelte +9 -10
- package/dist/combobox/item-group.svelte.d.ts +0 -4
- package/dist/combobox/item-indicator.svelte +6 -12
- package/dist/combobox/item-indicator.svelte.d.ts +0 -3
- package/dist/combobox/item-text.svelte +4 -7
- package/dist/combobox/item-text.svelte.d.ts +0 -3
- package/dist/combobox/item.svelte +10 -25
- package/dist/combobox/item.svelte.d.ts +0 -6
- package/dist/combobox/label.svelte +3 -3
- package/dist/combobox/label.svelte.d.ts +0 -3
- package/dist/combobox/list.svelte +3 -3
- package/dist/combobox/list.svelte.d.ts +0 -3
- package/dist/combobox/positioner.svelte +3 -3
- package/dist/combobox/positioner.svelte.d.ts +0 -3
- package/dist/combobox/root.svelte +15 -15
- package/dist/combobox/root.svelte.d.ts +1 -7
- package/dist/combobox/trigger.svelte +3 -3
- package/dist/combobox/trigger.svelte.d.ts +0 -3
- package/dist/date-picker/clear-trigger.svelte +3 -0
- package/dist/{menu/item-text.svelte.d.ts → date-picker/clear-trigger.svelte.d.ts} +6 -14
- package/dist/date-picker/content.svelte +3 -0
- package/dist/{menu/item-indicator.svelte.d.ts → date-picker/content.svelte.d.ts} +6 -14
- package/dist/date-picker/context.svelte.d.ts +8 -0
- package/dist/date-picker/context.svelte.js +14 -0
- package/dist/date-picker/control.svelte +3 -0
- package/dist/date-picker/control.svelte.d.ts +18 -0
- package/dist/date-picker/date-picker.d.ts +27 -0
- package/dist/date-picker/date-picker.js +27 -0
- package/dist/date-picker/day-table-cell-trigger.svelte +3 -0
- package/dist/date-picker/day-table-cell-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/day-table-cell.svelte +3 -0
- package/dist/date-picker/day-table-cell.svelte.d.ts +18 -0
- package/dist/date-picker/index.d.ts +1 -0
- package/dist/date-picker/index.js +1 -0
- package/dist/date-picker/input.svelte +3 -0
- package/dist/date-picker/input.svelte.d.ts +18 -0
- package/dist/date-picker/label.svelte +3 -0
- package/dist/date-picker/label.svelte.d.ts +18 -0
- package/dist/date-picker/month-select.svelte +3 -0
- package/dist/date-picker/month-select.svelte.d.ts +18 -0
- package/dist/date-picker/month-table-cell-trigger.svelte +3 -0
- package/dist/date-picker/month-table-cell-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/month-table-cell.svelte +3 -0
- package/dist/date-picker/month-table-cell.svelte.d.ts +18 -0
- package/dist/date-picker/next-trigger.svelte +3 -0
- package/dist/date-picker/next-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/positioner.svelte +3 -0
- package/dist/date-picker/positioner.svelte.d.ts +18 -0
- package/dist/date-picker/preset-trigger.svelte +3 -0
- package/dist/date-picker/preset-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/prev-trigger.svelte +3 -0
- package/dist/date-picker/prev-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/range-text.svelte +3 -0
- package/dist/date-picker/range-text.svelte.d.ts +18 -0
- package/dist/date-picker/root.svelte +3 -0
- package/dist/date-picker/root.svelte.d.ts +18 -0
- package/dist/date-picker/table-body.svelte +3 -0
- package/dist/date-picker/table-body.svelte.d.ts +18 -0
- package/dist/date-picker/table-head.svelte +3 -0
- package/dist/date-picker/table-head.svelte.d.ts +18 -0
- package/dist/date-picker/table-header.svelte +3 -0
- package/dist/date-picker/table-header.svelte.d.ts +18 -0
- package/dist/date-picker/table-row.svelte +3 -0
- package/dist/date-picker/table-row.svelte.d.ts +18 -0
- package/dist/date-picker/table.svelte +3 -0
- package/dist/date-picker/table.svelte.d.ts +18 -0
- package/dist/date-picker/trigger.svelte +3 -0
- package/dist/date-picker/trigger.svelte.d.ts +18 -0
- package/dist/date-picker/view-control.svelte +3 -0
- package/dist/date-picker/view-control.svelte.d.ts +18 -0
- package/dist/date-picker/view-trigger.svelte +3 -0
- package/dist/date-picker/view-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/year-select.svelte +3 -0
- package/dist/date-picker/year-select.svelte.d.ts +18 -0
- package/dist/date-picker/year-table-cell-trigger.svelte +3 -0
- package/dist/date-picker/year-table-cell-trigger.svelte.d.ts +18 -0
- package/dist/date-picker/year-table-cell.svelte +3 -0
- package/dist/date-picker/year-table-cell.svelte.d.ts +18 -0
- package/dist/dialog/backdrop.svelte +3 -3
- package/dist/dialog/backdrop.svelte.d.ts +0 -3
- package/dist/dialog/close-trigger.svelte +4 -5
- package/dist/dialog/close-trigger.svelte.d.ts +0 -3
- package/dist/dialog/content.svelte +3 -3
- package/dist/dialog/content.svelte.d.ts +0 -3
- package/dist/dialog/context.svelte.d.ts +3 -8
- package/dist/dialog/context.svelte.js +2 -14
- package/dist/dialog/create-dialog.svelte.d.ts +6 -0
- package/dist/dialog/create-dialog.svelte.js +7 -0
- package/dist/dialog/description.svelte +3 -3
- package/dist/dialog/description.svelte.d.ts +0 -3
- package/dist/dialog/positioner.svelte +3 -3
- package/dist/dialog/positioner.svelte.d.ts +0 -3
- package/dist/dialog/root.svelte +15 -15
- package/dist/dialog/root.svelte.d.ts +0 -6
- package/dist/dialog/title.svelte +3 -3
- package/dist/dialog/title.svelte.d.ts +0 -3
- package/dist/dialog/trigger.svelte +3 -3
- package/dist/dialog/trigger.svelte.d.ts +0 -3
- package/dist/editable/area.svelte +3 -3
- package/dist/editable/area.svelte.d.ts +0 -3
- package/dist/editable/cancel-trigger.svelte +4 -5
- package/dist/editable/cancel-trigger.svelte.d.ts +0 -3
- package/dist/editable/context.svelte.d.ts +3 -8
- package/dist/editable/context.svelte.js +2 -14
- package/dist/editable/control.svelte +3 -3
- package/dist/editable/control.svelte.d.ts +0 -3
- package/dist/editable/create-editable.svelte.d.ts +6 -0
- package/dist/editable/create-editable.svelte.js +7 -0
- package/dist/editable/edit-trigger.svelte +4 -5
- package/dist/editable/edit-trigger.svelte.d.ts +0 -3
- package/dist/editable/input.svelte +3 -3
- package/dist/editable/input.svelte.d.ts +0 -3
- package/dist/editable/label.svelte +3 -3
- package/dist/editable/label.svelte.d.ts +0 -3
- package/dist/editable/preview.svelte +3 -3
- package/dist/editable/preview.svelte.d.ts +0 -3
- package/dist/editable/root.svelte +15 -16
- package/dist/editable/root.svelte.d.ts +0 -6
- package/dist/editable/submit-trigger.svelte +4 -5
- package/dist/editable/submit-trigger.svelte.d.ts +0 -3
- package/dist/environment-provider/context.svelte.d.ts +7 -13
- package/dist/environment-provider/context.svelte.js +3 -25
- package/dist/environment-provider/index.d.ts +2 -2
- package/dist/environment-provider/index.js +2 -2
- package/dist/environment-provider/root.svelte +13 -10
- package/dist/environment-provider/root.svelte.d.ts +0 -5
- package/dist/file-upload/context.svelte.d.ts +8 -0
- package/dist/file-upload/context.svelte.js +14 -0
- package/dist/file-upload/dropzone.svelte +3 -0
- package/dist/file-upload/dropzone.svelte.d.ts +18 -0
- package/dist/file-upload/file-upload.d.ts +12 -0
- package/dist/file-upload/file-upload.js +12 -0
- package/dist/file-upload/hidden-input.svelte +3 -0
- package/dist/file-upload/hidden-input.svelte.d.ts +18 -0
- package/dist/file-upload/index.d.ts +1 -0
- package/dist/file-upload/index.js +1 -0
- package/dist/file-upload/item-delete-trigger.svelte +3 -0
- package/dist/file-upload/item-delete-trigger.svelte.d.ts +18 -0
- package/dist/file-upload/item-group.svelte +3 -0
- package/dist/file-upload/item-group.svelte.d.ts +18 -0
- package/dist/file-upload/item-name.svelte +3 -0
- package/dist/file-upload/item-name.svelte.d.ts +18 -0
- package/dist/file-upload/item-preview-image.svelte +3 -0
- package/dist/file-upload/item-preview-image.svelte.d.ts +18 -0
- package/dist/file-upload/item-preview.svelte +3 -0
- package/dist/file-upload/item-preview.svelte.d.ts +18 -0
- package/dist/file-upload/item-size-text.svelte +3 -0
- package/dist/file-upload/item-size-text.svelte.d.ts +18 -0
- package/dist/file-upload/item.svelte +3 -0
- package/dist/file-upload/item.svelte.d.ts +18 -0
- package/dist/file-upload/label.svelte +3 -0
- package/dist/file-upload/label.svelte.d.ts +18 -0
- package/dist/file-upload/root.svelte +3 -0
- package/dist/file-upload/root.svelte.d.ts +18 -0
- package/dist/file-upload/trigger.svelte +3 -0
- package/dist/file-upload/trigger.svelte.d.ts +18 -0
- package/dist/hover-card/arrow-tip.svelte +3 -3
- package/dist/hover-card/arrow-tip.svelte.d.ts +0 -3
- package/dist/hover-card/arrow.svelte +3 -3
- package/dist/hover-card/arrow.svelte.d.ts +0 -3
- package/dist/hover-card/content.svelte +3 -3
- package/dist/hover-card/content.svelte.d.ts +0 -3
- package/dist/hover-card/context.svelte.d.ts +3 -8
- package/dist/hover-card/context.svelte.js +2 -14
- package/dist/hover-card/create-hover-card.svelte.d.ts +6 -0
- package/dist/hover-card/create-hover-card.svelte.js +7 -0
- package/dist/hover-card/positioner.svelte +4 -5
- package/dist/hover-card/positioner.svelte.d.ts +0 -3
- package/dist/hover-card/root.svelte +15 -19
- package/dist/hover-card/root.svelte.d.ts +0 -6
- package/dist/hover-card/trigger.svelte +3 -3
- package/dist/hover-card/trigger.svelte.d.ts +0 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -0
- package/dist/locale-provider/context.svelte.d.ts +4 -11
- package/dist/locale-provider/context.svelte.js +3 -23
- package/dist/locale-provider/index.d.ts +3 -2
- package/dist/locale-provider/index.js +2 -2
- package/dist/locale-provider/root.svelte +10 -6
- package/dist/locale-provider/root.svelte.d.ts +0 -5
- package/dist/menu/arrow-tip.svelte +20 -0
- package/dist/menu/arrow-tip.svelte.d.ts +7 -15
- package/dist/menu/arrow.svelte +20 -0
- package/dist/menu/arrow.svelte.d.ts +7 -15
- package/dist/menu/content.svelte +20 -0
- package/dist/menu/content.svelte.d.ts +7 -15
- package/dist/menu/context-trigger.svelte +20 -0
- package/dist/menu/context-trigger.svelte.d.ts +7 -15
- package/dist/menu/context.svelte.d.ts +6 -10
- package/dist/menu/context.svelte.js +4 -20
- package/dist/menu/create-menu.svelte.d.ts +6 -0
- package/dist/menu/create-menu.svelte.js +7 -0
- package/dist/menu/index.d.ts +18 -1
- package/dist/menu/index.js +18 -1
- package/dist/menu/indicator.svelte +20 -0
- package/dist/menu/indicator.svelte.d.ts +7 -15
- package/dist/menu/item-group-label.svelte +29 -0
- package/dist/menu/item-group-label.svelte.d.ts +7 -15
- package/dist/menu/item-group.svelte +31 -0
- package/dist/menu/item-group.svelte.d.ts +7 -15
- package/dist/menu/item.svelte +33 -0
- package/dist/menu/item.svelte.d.ts +7 -15
- package/dist/menu/menu.d.ts +16 -1
- package/dist/menu/menu.js +16 -1
- package/dist/menu/option-item-indicator.svelte +22 -0
- package/dist/menu/option-item-indicator.svelte.d.ts +18 -0
- package/dist/menu/option-item-text.svelte +26 -0
- package/dist/menu/option-item-text.svelte.d.ts +18 -0
- package/dist/menu/option-item.svelte +51 -0
- package/dist/menu/option-item.svelte.d.ts +7 -15
- package/dist/menu/positioner.svelte +20 -0
- package/dist/menu/positioner.svelte.d.ts +7 -15
- package/dist/menu/root.svelte +75 -0
- package/dist/menu/root.svelte.d.ts +7 -15
- package/dist/menu/separator.svelte +20 -0
- package/dist/menu/separator.svelte.d.ts +7 -15
- package/dist/menu/trigger-item.svelte +20 -0
- package/dist/menu/trigger-item.svelte.d.ts +7 -15
- package/dist/menu/trigger.svelte +20 -0
- package/dist/menu/trigger.svelte.d.ts +7 -15
- package/dist/number-input/context.svelte.d.ts +3 -8
- package/dist/number-input/context.svelte.js +2 -14
- package/dist/number-input/control.svelte +4 -5
- package/dist/number-input/control.svelte.d.ts +0 -3
- package/dist/number-input/create-number-input.svelte.d.ts +6 -0
- package/dist/number-input/create-number-input.svelte.js +7 -0
- package/dist/number-input/decrement-trigger.svelte +4 -5
- package/dist/number-input/decrement-trigger.svelte.d.ts +0 -3
- package/dist/number-input/increment-trigger.svelte +4 -5
- package/dist/number-input/increment-trigger.svelte.d.ts +0 -3
- package/dist/number-input/input.svelte +3 -3
- package/dist/number-input/input.svelte.d.ts +0 -3
- package/dist/number-input/label.svelte +3 -3
- package/dist/number-input/label.svelte.d.ts +0 -3
- package/dist/number-input/root.svelte +17 -17
- package/dist/number-input/root.svelte.d.ts +0 -6
- package/dist/number-input/scrubber.svelte +4 -5
- package/dist/number-input/scrubber.svelte.d.ts +0 -3
- package/dist/pagination/context.svelte.d.ts +3 -8
- package/dist/pagination/context.svelte.js +2 -14
- package/dist/pagination/create-pagination.svelte.d.ts +6 -0
- package/dist/pagination/create-pagination.svelte.js +7 -0
- package/dist/pagination/ellipsis.svelte +3 -3
- package/dist/pagination/ellipsis.svelte.d.ts +0 -4
- package/dist/pagination/item.svelte +10 -11
- package/dist/pagination/item.svelte.d.ts +0 -4
- package/dist/pagination/next-trigger.svelte +4 -5
- package/dist/pagination/next-trigger.svelte.d.ts +0 -3
- package/dist/pagination/prev-trigger.svelte +4 -5
- package/dist/pagination/prev-trigger.svelte.d.ts +0 -3
- package/dist/pagination/root.svelte +15 -18
- package/dist/pagination/root.svelte.d.ts +0 -6
- package/dist/pin-input/clear-trigger.svelte +4 -5
- package/dist/pin-input/clear-trigger.svelte.d.ts +0 -3
- package/dist/pin-input/context.svelte.d.ts +3 -8
- package/dist/pin-input/context.svelte.js +2 -14
- package/dist/pin-input/create-pin-input.svelte.d.ts +6 -0
- package/dist/pin-input/create-pin-input.svelte.js +7 -0
- package/dist/pin-input/hidden-input.svelte +4 -5
- package/dist/pin-input/hidden-input.svelte.d.ts +0 -3
- package/dist/pin-input/input.svelte +4 -5
- package/dist/pin-input/input.svelte.d.ts +0 -4
- package/dist/pin-input/label.svelte +3 -3
- package/dist/pin-input/label.svelte.d.ts +0 -3
- package/dist/pin-input/root.svelte +14 -17
- package/dist/pin-input/root.svelte.d.ts +0 -6
- package/dist/popover/arrow-tip.svelte +3 -3
- package/dist/popover/arrow-tip.svelte.d.ts +0 -3
- package/dist/popover/arrow.svelte +3 -3
- package/dist/popover/arrow.svelte.d.ts +0 -3
- package/dist/popover/close-trigger.svelte +4 -5
- package/dist/popover/close-trigger.svelte.d.ts +0 -3
- package/dist/popover/content.svelte +3 -3
- package/dist/popover/content.svelte.d.ts +0 -3
- package/dist/popover/context.svelte.d.ts +3 -8
- package/dist/popover/context.svelte.js +2 -14
- package/dist/popover/create-popover.svelte.d.ts +6 -0
- package/dist/popover/create-popover.svelte.js +7 -0
- package/dist/popover/description.svelte +3 -3
- package/dist/popover/description.svelte.d.ts +0 -3
- package/dist/popover/positioner.svelte +3 -3
- package/dist/popover/positioner.svelte.d.ts +0 -3
- package/dist/popover/root.svelte +15 -15
- package/dist/popover/root.svelte.d.ts +0 -6
- package/dist/popover/title.svelte +3 -3
- package/dist/popover/title.svelte.d.ts +0 -3
- package/dist/popover/trigger.svelte +3 -3
- package/dist/popover/trigger.svelte.d.ts +0 -3
- package/dist/portal/root.svelte +5 -3
- package/dist/portal/root.svelte.d.ts +0 -7
- package/dist/presence/root.svelte +3 -1
- package/dist/presence/root.svelte.d.ts +0 -4
- package/dist/progress/circle-range.svelte +4 -5
- package/dist/progress/circle-range.svelte.d.ts +0 -3
- package/dist/progress/circle-track.svelte +4 -5
- package/dist/progress/circle-track.svelte.d.ts +0 -3
- package/dist/progress/circle.svelte +3 -3
- package/dist/progress/circle.svelte.d.ts +0 -3
- package/dist/progress/context.svelte.d.ts +3 -8
- package/dist/progress/context.svelte.js +2 -14
- package/dist/progress/create-progress.svelte.d.ts +6 -0
- package/dist/progress/create-progress.svelte.js +7 -0
- package/dist/progress/label.svelte +3 -3
- package/dist/progress/label.svelte.d.ts +0 -3
- package/dist/progress/range.svelte +3 -3
- package/dist/progress/range.svelte.d.ts +0 -3
- package/dist/progress/root.svelte +15 -18
- package/dist/progress/root.svelte.d.ts +0 -6
- package/dist/progress/track.svelte +3 -3
- package/dist/progress/track.svelte.d.ts +0 -3
- package/dist/progress/value-text.svelte +3 -3
- package/dist/progress/value-text.svelte.d.ts +0 -3
- package/dist/qr-code/context.svelte.d.ts +3 -8
- package/dist/qr-code/context.svelte.js +2 -14
- package/dist/qr-code/create-qr-code.svelte.d.ts +6 -0
- package/dist/qr-code/create-qr-code.svelte.js +7 -0
- package/dist/qr-code/frame.svelte +3 -3
- package/dist/qr-code/frame.svelte.d.ts +0 -3
- package/dist/qr-code/overlay.svelte +3 -3
- package/dist/qr-code/overlay.svelte.d.ts +0 -3
- package/dist/qr-code/pattern.svelte +3 -3
- package/dist/qr-code/pattern.svelte.d.ts +0 -3
- package/dist/qr-code/root.svelte +16 -18
- package/dist/qr-code/root.svelte.d.ts +0 -6
- package/dist/radio-group/context.svelte.d.ts +5 -10
- package/dist/radio-group/context.svelte.js +3 -20
- package/dist/radio-group/create-radio-group.svelte.d.ts +6 -0
- package/dist/radio-group/create-radio-group.svelte.js +7 -0
- package/dist/radio-group/indicator.svelte +4 -5
- package/dist/radio-group/indicator.svelte.d.ts +0 -3
- package/dist/radio-group/item-control.svelte +6 -12
- package/dist/radio-group/item-control.svelte.d.ts +0 -3
- package/dist/radio-group/item-hidden-input.svelte +6 -12
- package/dist/radio-group/item-hidden-input.svelte.d.ts +0 -3
- package/dist/radio-group/item-text.svelte +5 -9
- package/dist/radio-group/item-text.svelte.d.ts +0 -3
- package/dist/radio-group/item.svelte +10 -27
- package/dist/radio-group/item.svelte.d.ts +0 -6
- package/dist/radio-group/label.svelte +3 -3
- package/dist/radio-group/label.svelte.d.ts +0 -3
- package/dist/radio-group/root.svelte +15 -18
- package/dist/radio-group/root.svelte.d.ts +0 -6
- package/dist/rating-group/context.svelte.d.ts +3 -8
- package/dist/rating-group/context.svelte.js +2 -14
- package/dist/rating-group/control.svelte +3 -3
- package/dist/rating-group/control.svelte.d.ts +0 -3
- package/dist/rating-group/create-rating-group.svelte.d.ts +6 -0
- package/dist/rating-group/create-rating-group.svelte.js +7 -0
- package/dist/rating-group/hidden-input.svelte +4 -5
- package/dist/rating-group/hidden-input.svelte.d.ts +0 -3
- package/dist/rating-group/item.svelte +3 -3
- package/dist/rating-group/item.svelte.d.ts +0 -6
- package/dist/rating-group/label.svelte +3 -3
- package/dist/rating-group/label.svelte.d.ts +0 -3
- package/dist/rating-group/root.svelte +17 -17
- package/dist/rating-group/root.svelte.d.ts +0 -6
- package/dist/segment-group/context.svelte.d.ts +5 -10
- package/dist/segment-group/context.svelte.js +3 -60
- package/dist/segment-group/create-segment-group.svelte.d.ts +6 -0
- package/dist/segment-group/create-segment-group.svelte.js +7 -0
- package/dist/segment-group/indicator.svelte +8 -7
- package/dist/segment-group/indicator.svelte.d.ts +0 -3
- package/dist/segment-group/item-control.svelte +9 -11
- package/dist/segment-group/item-control.svelte.d.ts +0 -3
- package/dist/segment-group/item-hidden-input.svelte +6 -12
- package/dist/segment-group/item-hidden-input.svelte.d.ts +0 -3
- package/dist/segment-group/item-text.svelte +11 -11
- package/dist/segment-group/item-text.svelte.d.ts +0 -3
- package/dist/segment-group/item.svelte +13 -28
- package/dist/segment-group/item.svelte.d.ts +0 -6
- package/dist/segment-group/label.svelte +7 -5
- package/dist/segment-group/label.svelte.d.ts +0 -3
- package/dist/segment-group/root.svelte +21 -20
- package/dist/segment-group/root.svelte.d.ts +0 -6
- package/dist/select/clear-trigger.svelte +4 -5
- package/dist/select/clear-trigger.svelte.d.ts +0 -3
- package/dist/select/content.svelte +3 -3
- package/dist/select/content.svelte.d.ts +0 -3
- package/dist/select/context.svelte.d.ts +6 -16
- package/dist/select/context.svelte.js +4 -38
- package/dist/select/control.svelte +3 -3
- package/dist/select/control.svelte.d.ts +0 -3
- package/dist/select/create-select.svelte.d.ts +10 -0
- package/dist/select/create-select.svelte.js +19 -0
- package/dist/select/hidden-select.svelte +4 -5
- package/dist/select/hidden-select.svelte.d.ts +0 -3
- package/dist/select/indicator.svelte +3 -3
- package/dist/select/indicator.svelte.d.ts +0 -3
- package/dist/select/item-group-label.svelte +6 -13
- package/dist/select/item-group-label.svelte.d.ts +0 -3
- package/dist/select/item-group.svelte +9 -10
- package/dist/select/item-group.svelte.d.ts +0 -4
- package/dist/select/item-indicator.svelte +6 -12
- package/dist/select/item-indicator.svelte.d.ts +0 -3
- package/dist/select/item-text.svelte +4 -7
- package/dist/select/item-text.svelte.d.ts +0 -3
- package/dist/select/item.svelte +10 -25
- package/dist/select/item.svelte.d.ts +0 -6
- package/dist/select/label.svelte +3 -3
- package/dist/select/label.svelte.d.ts +0 -3
- package/dist/select/list.svelte +3 -3
- package/dist/select/list.svelte.d.ts +0 -3
- package/dist/select/positioner.svelte +3 -3
- package/dist/select/positioner.svelte.d.ts +0 -3
- package/dist/select/root.svelte +15 -18
- package/dist/select/root.svelte.d.ts +1 -7
- package/dist/select/trigger.svelte +3 -3
- package/dist/select/trigger.svelte.d.ts +0 -3
- package/dist/select/value-text.svelte +3 -3
- package/dist/select/value-text.svelte.d.ts +0 -3
- package/dist/slider/context.svelte.d.ts +5 -10
- package/dist/slider/context.svelte.js +3 -20
- package/dist/slider/control.svelte +3 -3
- package/dist/slider/control.svelte.d.ts +0 -3
- package/dist/slider/create-slider.svelte.d.ts +6 -0
- package/dist/slider/create-slider.svelte.js +7 -0
- package/dist/slider/hidden-input.svelte +6 -12
- package/dist/slider/hidden-input.svelte.d.ts +0 -3
- package/dist/slider/label.svelte +3 -3
- package/dist/slider/label.svelte.d.ts +0 -3
- package/dist/slider/marker-group.svelte +3 -3
- package/dist/slider/marker-group.svelte.d.ts +0 -3
- package/dist/slider/marker.svelte +4 -5
- package/dist/slider/marker.svelte.d.ts +0 -4
- package/dist/slider/range.svelte +3 -3
- package/dist/slider/range.svelte.d.ts +0 -3
- package/dist/slider/root.svelte +15 -18
- package/dist/slider/root.svelte.d.ts +0 -6
- package/dist/slider/thumb.svelte +9 -19
- package/dist/slider/thumb.svelte.d.ts +0 -4
- package/dist/slider/track.svelte +3 -3
- package/dist/slider/track.svelte.d.ts +0 -3
- package/dist/slider/value-text.svelte +3 -3
- package/dist/slider/value-text.svelte.d.ts +0 -3
- package/dist/steps/content.svelte +4 -5
- package/dist/steps/content.svelte.d.ts +0 -4
- package/dist/steps/context.svelte.d.ts +5 -10
- package/dist/steps/context.svelte.js +3 -20
- package/dist/steps/create-steps.svelte.d.ts +6 -0
- package/dist/steps/create-steps.svelte.js +7 -0
- package/dist/steps/indicator.svelte +4 -4
- package/dist/steps/indicator.svelte.d.ts +0 -3
- package/dist/steps/item.svelte +9 -6
- package/dist/steps/item.svelte.d.ts +0 -6
- package/dist/steps/list.svelte +3 -3
- package/dist/steps/list.svelte.d.ts +0 -3
- package/dist/steps/next-trigger.svelte +4 -5
- package/dist/steps/next-trigger.svelte.d.ts +0 -3
- package/dist/steps/prev-trigger.svelte +4 -5
- package/dist/steps/prev-trigger.svelte.d.ts +0 -3
- package/dist/steps/progress.svelte +3 -3
- package/dist/steps/progress.svelte.d.ts +0 -3
- package/dist/steps/root.svelte +15 -18
- package/dist/steps/root.svelte.d.ts +0 -6
- package/dist/steps/separator.svelte +4 -4
- package/dist/steps/separator.svelte.d.ts +0 -3
- package/dist/steps/trigger.svelte +4 -4
- package/dist/steps/trigger.svelte.d.ts +0 -3
- package/dist/switch/context.svelte.d.ts +3 -8
- package/dist/switch/context.svelte.js +2 -14
- package/dist/switch/control.svelte +3 -3
- package/dist/switch/control.svelte.d.ts +0 -3
- package/dist/switch/create-switch.svelte.d.ts +6 -0
- package/dist/switch/create-switch.svelte.js +7 -0
- package/dist/switch/hidden-input.svelte +4 -5
- package/dist/switch/hidden-input.svelte.d.ts +0 -3
- package/dist/switch/label.svelte +3 -3
- package/dist/switch/label.svelte.d.ts +0 -3
- package/dist/switch/root.svelte +15 -18
- package/dist/switch/root.svelte.d.ts +0 -6
- package/dist/switch/thumb.svelte +3 -3
- package/dist/switch/thumb.svelte.d.ts +0 -3
- package/dist/tabs/content.svelte +4 -5
- package/dist/tabs/content.svelte.d.ts +0 -4
- package/dist/tabs/context.svelte.d.ts +3 -8
- package/dist/tabs/context.svelte.js +2 -14
- package/dist/tabs/create-tabs.svelte.d.ts +6 -0
- package/dist/tabs/create-tabs.svelte.js +7 -0
- package/dist/tabs/list.svelte +3 -3
- package/dist/tabs/list.svelte.d.ts +0 -3
- package/dist/tabs/root.svelte +15 -18
- package/dist/tabs/root.svelte.d.ts +0 -6
- package/dist/tabs/trigger.svelte +11 -6
- package/dist/tabs/trigger.svelte.d.ts +0 -4
- package/dist/tags-input/clear-trigger.svelte +4 -5
- package/dist/tags-input/clear-trigger.svelte.d.ts +0 -3
- package/dist/tags-input/context.svelte.d.ts +5 -10
- package/dist/tags-input/context.svelte.js +3 -20
- package/dist/tags-input/control.svelte +3 -3
- package/dist/tags-input/control.svelte.d.ts +0 -3
- package/dist/tags-input/create-tags-input.svelte.d.ts +6 -0
- package/dist/tags-input/create-tags-input.svelte.js +7 -0
- package/dist/tags-input/hidden-input.svelte +4 -5
- package/dist/tags-input/hidden-input.svelte.d.ts +0 -3
- package/dist/tags-input/input.svelte +3 -3
- package/dist/tags-input/input.svelte.d.ts +0 -3
- package/dist/tags-input/item-delete-trigger.svelte +6 -12
- package/dist/tags-input/item-delete-trigger.svelte.d.ts +0 -3
- package/dist/tags-input/item-input.svelte +5 -9
- package/dist/tags-input/item-input.svelte.d.ts +0 -3
- package/dist/tags-input/item-preview.svelte +6 -12
- package/dist/tags-input/item-preview.svelte.d.ts +0 -3
- package/dist/tags-input/item-text.svelte +4 -7
- package/dist/tags-input/item-text.svelte.d.ts +0 -3
- package/dist/tags-input/item.svelte +10 -27
- package/dist/tags-input/item.svelte.d.ts +0 -6
- package/dist/tags-input/label.svelte +3 -3
- package/dist/tags-input/label.svelte.d.ts +0 -3
- package/dist/tags-input/root.svelte +15 -21
- package/dist/tags-input/root.svelte.d.ts +0 -6
- package/dist/timer/action-trigger.svelte +4 -6
- package/dist/timer/action-trigger.svelte.d.ts +0 -4
- package/dist/timer/context.svelte.d.ts +5 -10
- package/dist/timer/context.svelte.js +3 -20
- package/dist/timer/create-timer.svelte.d.ts +6 -0
- package/dist/timer/create-timer.svelte.js +7 -0
- package/dist/timer/item-label.svelte +4 -4
- package/dist/timer/item-label.svelte.d.ts +0 -3
- package/dist/timer/item-value.svelte +4 -4
- package/dist/timer/item-value.svelte.d.ts +0 -3
- package/dist/timer/item.svelte +10 -7
- package/dist/timer/item.svelte.d.ts +0 -4
- package/dist/timer/root.svelte +13 -16
- package/dist/timer/root.svelte.d.ts +0 -6
- package/dist/timer/separator.svelte +3 -3
- package/dist/timer/separator.svelte.d.ts +0 -3
- package/dist/toast/action-trigger.svelte +4 -5
- package/dist/toast/action-trigger.svelte.d.ts +0 -3
- package/dist/toast/actor.svelte +5 -8
- package/dist/toast/actor.svelte.d.ts +2 -2
- package/dist/toast/close-trigger.svelte +4 -5
- package/dist/toast/close-trigger.svelte.d.ts +0 -3
- package/dist/toast/context.svelte.d.ts +3 -8
- package/dist/toast/context.svelte.js +2 -14
- package/dist/toast/create-toast.svelte.d.ts +6 -0
- package/dist/toast/create-toast.svelte.js +7 -0
- package/dist/toast/create-toaster.svelte.js +4 -4
- package/dist/toast/description.svelte +3 -3
- package/dist/toast/description.svelte.d.ts +0 -3
- package/dist/toast/root.svelte +6 -7
- package/dist/toast/root.svelte.d.ts +0 -6
- package/dist/toast/title.svelte +3 -3
- package/dist/toast/title.svelte.d.ts +0 -3
- package/dist/toast/toast.d.ts +3 -3
- package/dist/toast/toast.js +3 -3
- package/dist/toast/toaster.svelte +4 -5
- package/dist/toast/toaster.svelte.d.ts +0 -8
- package/dist/toggle-group/context.svelte.d.ts +3 -8
- package/dist/toggle-group/context.svelte.js +2 -14
- package/dist/toggle-group/create-toggle-group.svelte.d.ts +6 -0
- package/dist/toggle-group/create-toggle-group.svelte.js +7 -0
- package/dist/toggle-group/item.svelte +9 -7
- package/dist/toggle-group/item.svelte.d.ts +0 -6
- package/dist/toggle-group/root.svelte +17 -17
- package/dist/toggle-group/root.svelte.d.ts +0 -6
- package/dist/tooltip/arrow-tip.svelte +3 -3
- package/dist/tooltip/arrow-tip.svelte.d.ts +0 -3
- package/dist/tooltip/arrow.svelte +3 -3
- package/dist/tooltip/arrow.svelte.d.ts +0 -3
- package/dist/tooltip/content.svelte +3 -3
- package/dist/tooltip/content.svelte.d.ts +0 -3
- package/dist/tooltip/context.svelte.d.ts +3 -8
- package/dist/tooltip/context.svelte.js +2 -14
- package/dist/tooltip/create-tooltip.svelte.d.ts +6 -0
- package/dist/tooltip/create-tooltip.svelte.js +7 -0
- package/dist/tooltip/positioner.svelte +3 -3
- package/dist/tooltip/positioner.svelte.d.ts +0 -3
- package/dist/tooltip/root.svelte +15 -15
- package/dist/tooltip/root.svelte.d.ts +0 -6
- package/dist/tooltip/trigger.svelte +3 -3
- package/dist/tooltip/trigger.svelte.d.ts +0 -3
- package/dist/types.d.ts +1 -0
- package/dist/utils.svelte.d.ts +12 -0
- package/dist/utils.svelte.js +44 -0
- package/package.json +5 -4
- package/dist/date-picker/.gitkeep +0 -0
- package/dist/file-upload/.gitkeep +0 -0
- package/dist/menu/item-indicator.svelte +0 -0
- package/dist/menu/item-text.svelte +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface CarouselItemGroupProps extends HtmlIngredientProps<'div'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {carouselContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: CarouselItemGroupProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = carouselContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getItemGroupProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CarouselItemGroupProps extends HtmlIngredientProps<'div'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
3
|
import type {ItemProps, ItemState} from '@zag-js/carousel';
|
4
4
|
import type {Snippet} from 'svelte';
|
@@ -11,14 +11,13 @@
|
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
13
|
import {mergeProps} from '@zag-js/svelte';
|
14
|
-
import {
|
14
|
+
import {carouselContext} from './context.svelte.js';
|
15
15
|
|
16
16
|
let {index, children, ...props}: CarouselItemProps = $props();
|
17
17
|
|
18
|
-
let context =
|
18
|
+
let context = carouselContext.get();
|
19
19
|
|
20
20
|
let state = $derived(context.getItemState({index}));
|
21
|
-
|
22
21
|
let attrs = $derived(mergeProps(props, context.getItemProps({index})));
|
23
22
|
</script>
|
24
23
|
|
@@ -1,9 +1,3 @@
|
|
1
|
-
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
|
-
import type { ItemProps, ItemState } from '@zag-js/carousel';
|
3
|
-
import type { Snippet } from 'svelte';
|
4
|
-
export interface CarouselItemProps extends Assign<Omit<HtmlIngredientProps<'button'>, 'children'>, ItemProps> {
|
5
|
-
children?: Snippet<[state: ItemState]>;
|
6
|
-
}
|
7
1
|
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> {
|
8
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
9
3
|
$$bindings?: Bindings;
|
@@ -1,17 +1,16 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface CarouselNextTriggerProps
|
5
|
-
extends HtmlIngredientProps<'button'> {}
|
4
|
+
export interface CarouselNextTriggerProps extends HtmlIngredientProps<'button'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
9
8
|
import {mergeProps} from '@zag-js/svelte';
|
10
|
-
import {
|
9
|
+
import {carouselContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {children, ...props}: CarouselNextTriggerProps = $props();
|
13
12
|
|
14
|
-
let context =
|
13
|
+
let context = carouselContext.get();
|
15
14
|
|
16
15
|
let attrs = $derived(mergeProps(props, context.getNextTriggerProps()));
|
17
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CarouselNextTriggerProps extends HtmlIngredientProps<'button'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,17 +1,16 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface CarouselPrevTriggerProps
|
5
|
-
extends HtmlIngredientProps<'button'> {}
|
4
|
+
export interface CarouselPrevTriggerProps extends HtmlIngredientProps<'button'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
9
8
|
import {mergeProps} from '@zag-js/svelte';
|
10
|
-
import {
|
9
|
+
import {carouselContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {children, ...props}: CarouselPrevTriggerProps = $props();
|
13
12
|
|
14
|
-
let context =
|
13
|
+
let context = carouselContext.get();
|
15
14
|
|
16
15
|
let attrs = $derived(mergeProps(props, context.getPrevTriggerProps()));
|
17
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CarouselPrevTriggerProps extends HtmlIngredientProps<'button'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,26 +1,21 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
3
|
import type {Snippet} from 'svelte';
|
4
|
-
import type {
|
5
|
-
CreateCarouselContextProps,
|
6
|
-
CreateCarouselContextReturn,
|
7
|
-
} from './context.svelte.js';
|
4
|
+
import type {CreateCarouselProps, CreateCarouselReturn} from './create-carousel.svelte.js';
|
8
5
|
|
9
6
|
export interface CarouselProps
|
10
|
-
extends Assign<
|
11
|
-
|
12
|
-
Omit<CreateCarouselContextProps, 'id'>
|
13
|
-
> {
|
14
|
-
children?: Snippet<[context: CreateCarouselContextReturn]>;
|
7
|
+
extends Assign<Omit<HtmlIngredientProps<'div'>, 'children'>, Omit<CreateCarouselProps, 'id'>> {
|
8
|
+
children?: Snippet<[api: CreateCarouselReturn]>;
|
15
9
|
}
|
16
10
|
</script>
|
17
11
|
|
18
12
|
<script lang="ts">
|
19
|
-
import {
|
20
|
-
import {
|
13
|
+
import {getEnvironmentContext} from '../environment-provider/index.js';
|
14
|
+
import {getLocaleContext} from '../locale-provider/index.js';
|
21
15
|
import {createUniqueId} from '../utils.svelte.js';
|
22
16
|
import {mergeProps} from '@zag-js/svelte';
|
23
|
-
import {
|
17
|
+
import {carouselContext} from './context.svelte.js';
|
18
|
+
import {createCarousel} from './create-carousel.svelte.js';
|
24
19
|
|
25
20
|
let {
|
26
21
|
id,
|
@@ -38,11 +33,13 @@
|
|
38
33
|
...props
|
39
34
|
}: CarouselProps = $props();
|
40
35
|
|
41
|
-
let localeContext =
|
42
|
-
let environmentContext =
|
36
|
+
let localeContext = getLocaleContext();
|
37
|
+
let environmentContext = getEnvironmentContext();
|
43
38
|
|
44
|
-
let
|
45
|
-
|
39
|
+
let uid = createUniqueId();
|
40
|
+
|
41
|
+
let context = createCarousel({
|
42
|
+
id: id ?? uid,
|
46
43
|
ids,
|
47
44
|
dir: dir ?? localeContext?.dir,
|
48
45
|
loop,
|
@@ -57,7 +54,7 @@
|
|
57
54
|
|
58
55
|
let attrs = $derived(mergeProps(props, context.getRootProps()));
|
59
56
|
|
60
|
-
|
57
|
+
carouselContext.set(context);
|
61
58
|
</script>
|
62
59
|
|
63
60
|
<div {...attrs}>
|
@@ -1,9 +1,3 @@
|
|
1
|
-
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
|
-
import type { Snippet } from 'svelte';
|
3
|
-
import type { CreateCarouselContextProps, CreateCarouselContextReturn } from './context.svelte.js';
|
4
|
-
export interface CarouselProps extends Assign<Omit<HtmlIngredientProps<'div'>, 'children'>, Omit<CreateCarouselContextProps, 'id'>> {
|
5
|
-
children?: Snippet<[context: CreateCarouselContextReturn]>;
|
6
|
-
}
|
7
1
|
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> {
|
8
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
9
3
|
$$bindings?: Bindings;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface CarouselViewportProps extends HtmlIngredientProps<'div'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {carouselContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: CarouselViewportProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = carouselContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getViewportProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CarouselViewportProps extends HtmlIngredientProps<'div'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,8 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
export interface CreateCheckboxContextReturn extends ReturnType<typeof createCheckboxContext> {
|
5
|
-
}
|
6
|
-
export declare function createCheckboxContext(props: CreateCheckboxContextProps): any;
|
7
|
-
export declare function setCheckboxContext(value: CreateCheckboxContextReturn): void;
|
8
|
-
export declare function useCheckboxContext(): CreateCheckboxContextReturn;
|
1
|
+
import { Context } from '../utils.svelte.js';
|
2
|
+
import type { CreateCheckboxReturn } from './create-checkbox.svelte.js';
|
3
|
+
export declare const checkboxContext: Context<CreateCheckboxReturn>;
|
@@ -1,14 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import { getContext, setContext } from 'svelte';
|
4
|
-
export function createCheckboxContext(props) {
|
5
|
-
const [state, send] = useMachine(checkbox.machine(props));
|
6
|
-
const api = $derived(reflect(() => checkbox.connect(state, send, normalizeProps)));
|
7
|
-
return api;
|
8
|
-
}
|
9
|
-
export function setCheckboxContext(value) {
|
10
|
-
setContext('Checkbox', value);
|
11
|
-
}
|
12
|
-
export function useCheckboxContext() {
|
13
|
-
return getContext('Checkbox');
|
14
|
-
}
|
1
|
+
import { Context } from '../utils.svelte.js';
|
2
|
+
export const checkboxContext = new Context('Checkbox');
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface CheckboxControlProps extends HtmlIngredientProps<'div'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {checkboxContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: CheckboxControlProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = checkboxContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getControlProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CheckboxControlProps extends HtmlIngredientProps<'div'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as checkbox from '@zag-js/checkbox';
|
2
|
+
export interface CreateCheckboxProps extends checkbox.Context {
|
3
|
+
}
|
4
|
+
export interface CreateCheckboxReturn extends checkbox.Api {
|
5
|
+
}
|
6
|
+
export declare function createCheckbox(props: CreateCheckboxProps): CreateCheckboxReturn;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as checkbox from '@zag-js/checkbox';
|
2
|
+
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
3
|
+
export function createCheckbox(props) {
|
4
|
+
const [state, send] = useMachine(checkbox.machine(props));
|
5
|
+
const api = $derived(reflect(() => checkbox.connect(state, send, normalizeProps)));
|
6
|
+
return api;
|
7
|
+
}
|
@@ -1,17 +1,16 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface CheckboxHiddenInputProps
|
5
|
-
extends HtmlIngredientProps<'input'> {}
|
4
|
+
export interface CheckboxHiddenInputProps extends HtmlIngredientProps<'input'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
9
8
|
import {mergeProps} from '@zag-js/svelte';
|
10
|
-
import {
|
9
|
+
import {checkboxContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {...props}: CheckboxHiddenInputProps = $props();
|
13
12
|
|
14
|
-
let context =
|
13
|
+
let context = checkboxContext.get();
|
15
14
|
|
16
15
|
let attrs = $derived(mergeProps(props, context.getHiddenInputProps()));
|
17
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CheckboxHiddenInputProps extends HtmlIngredientProps<'input'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface CheckboxIndicatorProps extends HtmlIngredientProps<'span'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {checkboxContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: CheckboxIndicatorProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = checkboxContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getIndicatorProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CheckboxIndicatorProps extends HtmlIngredientProps<'span'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface CheckboxLabelProps extends HtmlIngredientProps<'span'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {checkboxContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: CheckboxLabelProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = checkboxContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getLabelProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface CheckboxLabelProps extends HtmlIngredientProps<'span'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,26 +1,24 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
3
|
import type {Snippet} from 'svelte';
|
4
|
-
import type {
|
5
|
-
CreateCheckboxContextProps,
|
6
|
-
CreateCheckboxContextReturn,
|
7
|
-
} from './context.svelte.js';
|
4
|
+
import type {CreateCheckboxProps, CreateCheckboxReturn} from './create-checkbox.svelte.js';
|
8
5
|
|
9
6
|
export interface CheckboxProps
|
10
7
|
extends Assign<
|
11
8
|
Omit<HtmlIngredientProps<'label'>, 'children'>,
|
12
|
-
Omit<
|
9
|
+
Omit<CreateCheckboxProps, 'id'>
|
13
10
|
> {
|
14
|
-
children?: Snippet<[
|
11
|
+
children?: Snippet<[api: CreateCheckboxReturn]>;
|
15
12
|
}
|
16
13
|
</script>
|
17
14
|
|
18
15
|
<script lang="ts">
|
19
|
-
import {
|
20
|
-
import {
|
16
|
+
import {getEnvironmentContext} from '../environment-provider/index.js';
|
17
|
+
import {getLocaleContext} from '../locale-provider/index.js';
|
21
18
|
import {createUniqueId} from '../utils.svelte.js';
|
22
19
|
import {mergeProps} from '@zag-js/svelte';
|
23
|
-
import {
|
20
|
+
import {checkboxContext} from './context.svelte.js';
|
21
|
+
import {createCheckbox} from './create-checkbox.svelte.js';
|
24
22
|
|
25
23
|
let {
|
26
24
|
id,
|
@@ -40,11 +38,13 @@
|
|
40
38
|
...props
|
41
39
|
}: CheckboxProps = $props();
|
42
40
|
|
43
|
-
let localeContext =
|
44
|
-
let environmentContext =
|
41
|
+
let localeContext = getLocaleContext();
|
42
|
+
let environmentContext = getEnvironmentContext();
|
45
43
|
|
46
|
-
let
|
47
|
-
|
44
|
+
let uid = createUniqueId();
|
45
|
+
|
46
|
+
let context = createCheckbox({
|
47
|
+
id: id ?? uid,
|
48
48
|
ids,
|
49
49
|
dir: dir ?? localeContext?.dir,
|
50
50
|
form,
|
@@ -61,7 +61,7 @@
|
|
61
61
|
|
62
62
|
let attrs = $derived(mergeProps(props, context.getRootProps()));
|
63
63
|
|
64
|
-
|
64
|
+
checkboxContext.set(context);
|
65
65
|
</script>
|
66
66
|
|
67
67
|
<label {...attrs}>
|
@@ -1,9 +1,3 @@
|
|
1
|
-
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
|
-
import type { Snippet } from 'svelte';
|
3
|
-
import type { CreateCheckboxContextProps, CreateCheckboxContextReturn } from './context.svelte.js';
|
4
|
-
export interface CheckboxProps extends Assign<Omit<HtmlIngredientProps<'label'>, 'children'>, Omit<CreateCheckboxContextProps, 'id'>> {
|
5
|
-
children?: Snippet<[context: CreateCheckboxContextReturn]>;
|
6
|
-
}
|
7
1
|
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> {
|
8
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
9
3
|
$$bindings?: Bindings;
|
@@ -1,8 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
export interface CreateClipboardContextReturn extends ReturnType<typeof createClipboardContext> {
|
5
|
-
}
|
6
|
-
export declare function createClipboardContext(props: CreateClipboardContextProps): any;
|
7
|
-
export declare function setClipboardContext(value: CreateClipboardContextReturn): void;
|
8
|
-
export declare function useClipboardContext(): CreateClipboardContextReturn;
|
1
|
+
import { Context } from '../utils.svelte.js';
|
2
|
+
import type { CreateClipboardReturn } from './create-clipboard.svelte.js';
|
3
|
+
export declare const clipboardContext: Context<CreateClipboardReturn>;
|
@@ -1,14 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import { getContext, setContext } from 'svelte';
|
4
|
-
export function createClipboardContext(props) {
|
5
|
-
const [state, send] = useMachine(clipboard.machine(props));
|
6
|
-
const api = $derived(reflect(() => clipboard.connect(state, send, normalizeProps)));
|
7
|
-
return api;
|
8
|
-
}
|
9
|
-
export function setClipboardContext(value) {
|
10
|
-
setContext('Clipboard', value);
|
11
|
-
}
|
12
|
-
export function useClipboardContext() {
|
13
|
-
return getContext('Clipboard');
|
14
|
-
}
|
1
|
+
import { Context } from '../utils.svelte.js';
|
2
|
+
export const clipboardContext = new Context('Clipboard');
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ClipboardControlProps extends HtmlIngredientProps<'div'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {clipboardContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: ClipboardControlProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = clipboardContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getControlProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ClipboardControlProps extends HtmlIngredientProps<'div'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as clipboard from '@zag-js/clipboard';
|
2
|
+
export interface CreateClipboardProps extends clipboard.Context {
|
3
|
+
}
|
4
|
+
export interface CreateClipboardReturn extends clipboard.Api {
|
5
|
+
}
|
6
|
+
export declare function createClipboard(props: CreateClipboardProps): CreateClipboardReturn;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as clipboard from '@zag-js/clipboard';
|
2
|
+
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
3
|
+
export function createClipboard(props) {
|
4
|
+
const [state, send] = useMachine(clipboard.machine(props));
|
5
|
+
const api = $derived(reflect(() => clipboard.connect(state, send, normalizeProps)));
|
6
|
+
return api;
|
7
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {Assign, HtmlIngredientProps} from '../types.js';
|
3
3
|
import type {IndicatorProps} from '@zag-js/clipboard';
|
4
4
|
|
@@ -8,11 +8,11 @@
|
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
10
|
import {mergeProps} from '@zag-js/svelte';
|
11
|
-
import {
|
11
|
+
import {clipboardContext} from './context.svelte.js';
|
12
12
|
|
13
13
|
let {copied = false, children, ...props}: ClipboardIndicatorProps = $props();
|
14
14
|
|
15
|
-
let context =
|
15
|
+
let context = clipboardContext.get();
|
16
16
|
|
17
17
|
let attrs = $derived(mergeProps(props, context.getIndicatorProps({copied})));
|
18
18
|
</script>
|
@@ -1,7 +1,3 @@
|
|
1
|
-
import type { Assign, HtmlIngredientProps } from '../types.js';
|
2
|
-
import type { IndicatorProps } from '@zag-js/clipboard';
|
3
|
-
export interface ClipboardIndicatorProps extends Assign<HtmlIngredientProps<'span'>, Partial<IndicatorProps>> {
|
4
|
-
}
|
5
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
7
3
|
$$bindings?: Bindings;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ClipboardInputProps extends HtmlIngredientProps<'input'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {clipboardContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {...props}: ClipboardInputProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = clipboardContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getInputProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ClipboardInputProps extends HtmlIngredientProps<'input'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<script lang="ts"
|
1
|
+
<script lang="ts" module>
|
2
2
|
import type {HtmlIngredientProps} from '../types.js';
|
3
3
|
|
4
4
|
export interface ClipboardLabelProps extends HtmlIngredientProps<'label'> {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {
|
9
|
+
import {clipboardContext} from './context.svelte.js';
|
10
10
|
|
11
11
|
let {children, ...props}: ClipboardLabelProps = $props();
|
12
12
|
|
13
|
-
let context =
|
13
|
+
let context = clipboardContext.get();
|
14
14
|
|
15
15
|
let attrs = $derived(mergeProps(props, context.getLabelProps()));
|
16
16
|
</script>
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { HtmlIngredientProps } from '../types.js';
|
2
|
-
export interface ClipboardLabelProps extends HtmlIngredientProps<'label'> {
|
3
|
-
}
|
4
1
|
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
2
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
3
|
$$bindings?: Bindings;
|