@soybeanjs/headless 0.13.8 → 0.15.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -1
- package/README.zh-CN.md +73 -2
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPrimitive.js +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPropertyKey.js +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/typeof.js +1 -0
- package/dist/components/accordion/accordion-compact.js +1 -0
- package/dist/components/accordion/accordion-compact.vue.d.ts +21 -0
- package/dist/components/accordion/accordion-content.js +1 -1
- package/dist/components/accordion/accordion-content.vue.d.ts +3 -3
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-item.vue.d.ts +6 -6
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/accordion-trigger.vue.d.ts +3 -3
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/index.d.ts +8 -8
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/types.d.ts +38 -2
- package/dist/components/affix/affix-content.js +1 -0
- package/dist/components/affix/affix-content.vue.d.ts +20 -0
- package/dist/components/affix/affix-placeholder.js +1 -0
- package/dist/components/affix/affix-placeholder.vue.d.ts +8 -0
- package/dist/components/affix/affix-root.js +1 -0
- package/dist/components/affix/affix-root.vue.d.ts +28 -0
- package/dist/components/affix/context.d.ts +8 -0
- package/dist/components/affix/context.js +1 -0
- package/dist/components/affix/index.d.ts +6 -0
- package/dist/components/affix/index.js +1 -0
- package/dist/components/affix/shared.js +1 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/anchor/anchor-link.js +1 -0
- package/dist/components/anchor/anchor-link.vue.d.ts +21 -0
- package/dist/components/anchor/anchor-root.js +1 -0
- package/dist/components/anchor/anchor-root.vue.d.ts +38 -0
- package/dist/components/anchor/context.d.ts +8 -0
- package/dist/components/anchor/context.js +1 -0
- package/dist/components/anchor/index.d.ts +5 -0
- package/dist/components/anchor/index.js +1 -0
- package/dist/components/anchor/shared.js +1 -0
- package/dist/components/anchor/types.d.ts +32 -0
- package/dist/components/arrow/arrow.vue.d.ts +2 -2
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/autocomplete/autocomplete-anchor.js +1 -0
- package/dist/components/autocomplete/autocomplete-anchor.vue.d.ts +21 -0
- package/dist/components/autocomplete/autocomplete-content.js +1 -0
- package/dist/components/autocomplete/autocomplete-content.vue.d.ts +24 -0
- package/dist/components/autocomplete/autocomplete-group-label.js +1 -0
- package/dist/components/autocomplete/autocomplete-group-label.vue.d.ts +18 -0
- package/dist/components/autocomplete/autocomplete-group.js +1 -0
- package/dist/components/autocomplete/autocomplete-group.vue.d.ts +18 -0
- package/dist/components/autocomplete/autocomplete-input.js +1 -0
- package/dist/components/autocomplete/autocomplete-input.vue.d.ts +28 -0
- package/dist/components/autocomplete/autocomplete-item-indicator.js +1 -0
- package/dist/components/autocomplete/autocomplete-item-indicator.vue.d.ts +18 -0
- package/dist/components/autocomplete/autocomplete-item.js +1 -0
- package/dist/components/autocomplete/autocomplete-item.vue.d.ts +26 -0
- package/dist/components/autocomplete/autocomplete-root.js +1 -0
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +35 -0
- package/dist/components/autocomplete/autocomplete-separator.js +1 -0
- package/dist/components/autocomplete/autocomplete-separator.vue.d.ts +18 -0
- package/dist/components/autocomplete/autocomplete-trigger.js +1 -0
- package/dist/components/autocomplete/autocomplete-trigger.vue.d.ts +21 -0
- package/dist/components/autocomplete/autocomplete-viewport.js +1 -0
- package/dist/components/autocomplete/autocomplete-viewport.vue.d.ts +18 -0
- package/dist/components/autocomplete/context.d.ts +8 -0
- package/dist/components/autocomplete/context.js +1 -0
- package/dist/components/autocomplete/index.d.ts +16 -0
- package/dist/components/autocomplete/index.js +1 -0
- package/dist/components/autocomplete/types.d.ts +57 -0
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/badge/context.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/breadcrumb/context.d.ts +2 -2
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-collapsible-trigger.vue.d.ts +2 -2
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.vue.d.ts +4 -4
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/card/context.d.ts +2 -2
- package/dist/components/carousel/carousel-content.js +1 -0
- package/dist/components/carousel/carousel-content.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-item.js +1 -0
- package/dist/components/carousel/carousel-item.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-next.js +1 -0
- package/dist/components/carousel/carousel-next.vue.d.ts +28 -0
- package/dist/components/carousel/carousel-previous.js +1 -0
- package/dist/components/carousel/carousel-previous.vue.d.ts +28 -0
- package/dist/components/carousel/carousel-root.js +1 -0
- package/dist/components/carousel/carousel-root.vue.d.ts +15 -0
- package/dist/components/carousel/context.d.ts +8 -0
- package/dist/components/carousel/context.js +1 -0
- package/dist/components/carousel/index.d.ts +8 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/carousel/types.d.ts +26 -0
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/checkbox/context.d.ts +2 -2
- package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +7 -7
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +2 -2
- package/dist/components/color-area/color-area-area.js +1 -0
- package/dist/components/color-area/color-area-area.vue.d.ts +21 -0
- package/dist/components/color-area/color-area-root.js +1 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +39 -0
- package/dist/components/color-area/color-area-thumb.js +1 -0
- package/dist/components/color-area/color-area-thumb.vue.d.ts +21 -0
- package/dist/components/color-area/context.d.ts +8 -0
- package/dist/components/color-area/context.js +1 -0
- package/dist/components/color-area/index.d.ts +6 -0
- package/dist/components/color-area/index.js +1 -0
- package/dist/components/color-area/shared.js +1 -0
- package/dist/components/color-area/types.d.ts +31 -0
- package/dist/components/color-field/color-field-input.js +1 -0
- package/dist/components/color-field/color-field-input.vue.d.ts +8 -0
- package/dist/components/color-field/color-field-root.js +1 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +36 -0
- package/dist/components/color-field/context.d.ts +8 -0
- package/dist/components/color-field/context.js +1 -0
- package/dist/components/color-field/index.d.ts +5 -0
- package/dist/components/color-field/index.js +1 -0
- package/dist/components/color-field/types.d.ts +28 -0
- package/dist/components/color-picker/color-picker-root.js +1 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +40 -0
- package/dist/components/color-picker/index.d.ts +3 -0
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/color-picker/types.d.ts +24 -0
- package/dist/components/color-slider/color-slider-root.js +1 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +39 -0
- package/dist/components/color-slider/color-slider-thumb.js +1 -0
- package/dist/components/color-slider/color-slider-thumb.vue.d.ts +21 -0
- package/dist/components/color-slider/color-slider-track.js +1 -0
- package/dist/components/color-slider/color-slider-track.vue.d.ts +18 -0
- package/dist/components/color-slider/context.d.ts +8 -0
- package/dist/components/color-slider/context.js +1 -0
- package/dist/components/color-slider/index.d.ts +6 -0
- package/dist/components/color-slider/index.js +1 -0
- package/dist/components/color-slider/types.d.ts +31 -0
- package/dist/components/color-swatch/color-swatch.js +1 -0
- package/dist/components/color-swatch/color-swatch.vue.d.ts +26 -0
- package/dist/components/color-swatch/index.d.ts +3 -0
- package/dist/components/color-swatch/index.js +1 -0
- package/dist/components/color-swatch/types.d.ts +11 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.vue.d.ts +18 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.vue.d.ts +18 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item.vue.d.ts +23 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +30 -0
- package/dist/components/color-swatch-picker/context.d.ts +8 -0
- package/dist/components/color-swatch-picker/context.js +1 -0
- package/dist/components/color-swatch-picker/index.d.ts +7 -0
- package/dist/components/color-swatch-picker/index.js +1 -0
- package/dist/components/color-swatch-picker/types.d.ts +18 -0
- package/dist/components/combobox/combobox-content.js +1 -0
- package/dist/components/combobox/combobox-content.vue.d.ts +36 -0
- package/dist/components/combobox/combobox-empty.js +1 -0
- package/dist/components/combobox/combobox-empty.vue.d.ts +18 -0
- package/dist/components/combobox/combobox-group-label.js +1 -0
- package/dist/components/combobox/combobox-group-label.vue.d.ts +18 -0
- package/dist/components/combobox/combobox-group.js +1 -0
- package/dist/components/combobox/combobox-group.vue.d.ts +18 -0
- package/dist/components/combobox/combobox-input.js +1 -0
- package/dist/components/combobox/combobox-input.vue.d.ts +28 -0
- package/dist/components/combobox/combobox-item-indicator.js +1 -0
- package/dist/components/combobox/combobox-item-indicator.vue.d.ts +21 -0
- package/dist/components/combobox/combobox-item.js +1 -0
- package/dist/components/combobox/combobox-item.vue.d.ts +23 -0
- package/dist/components/combobox/combobox-root.js +1 -0
- package/dist/components/combobox/combobox-root.vue.d.ts +32 -0
- package/dist/components/combobox/combobox-separator.js +1 -0
- package/dist/components/combobox/combobox-separator.vue.d.ts +18 -0
- package/dist/components/combobox/combobox-trigger.js +1 -0
- package/dist/components/combobox/combobox-trigger.vue.d.ts +24 -0
- package/dist/components/combobox/combobox-viewport.js +9 -0
- package/dist/components/combobox/combobox-viewport.vue.d.ts +18 -0
- package/dist/components/combobox/context.d.ts +8 -0
- package/dist/components/combobox/context.js +1 -0
- package/dist/components/combobox/index.d.ts +16 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox/types.d.ts +49 -0
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +4 -4
- package/dist/components/config-provider/types.d.ts +8 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +33 -0
- package/dist/components/context-menu/context-menu-compact.js +1 -0
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +32 -0
- package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -0
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +33 -0
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -0
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +41 -0
- package/dist/components/context-menu/index.d.ts +23 -19
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/context-menu/types.d.ts +30 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/dialog-close.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +33 -0
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +32 -0
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +9 -9
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +33 -0
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +5 -5
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +5 -5
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +42 -0
- package/dist/components/dropdown-menu/index.d.ts +24 -20
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +33 -2
- package/dist/components/editable/context.d.ts +8 -0
- package/dist/components/editable/context.js +1 -0
- package/dist/components/editable/editable-area.js +1 -0
- package/dist/components/editable/editable-area.vue.d.ts +21 -0
- package/dist/components/editable/editable-cancel-trigger.js +1 -0
- package/dist/components/editable/editable-cancel-trigger.vue.d.ts +21 -0
- package/dist/components/editable/editable-edit-trigger.js +1 -0
- package/dist/components/editable/editable-edit-trigger.vue.d.ts +21 -0
- package/dist/components/editable/editable-input.js +1 -0
- package/dist/components/editable/editable-input.vue.d.ts +18 -0
- package/dist/components/editable/editable-preview.js +1 -0
- package/dist/components/editable/editable-preview.vue.d.ts +21 -0
- package/dist/components/editable/editable-root.js +1 -0
- package/dist/components/editable/editable-root.vue.d.ts +52 -0
- package/dist/components/editable/editable-submit-trigger.js +1 -0
- package/dist/components/editable/editable-submit-trigger.vue.d.ts +21 -0
- package/dist/components/editable/index.d.ts +10 -0
- package/dist/components/editable/index.js +1 -0
- package/dist/components/editable/types.d.ts +59 -0
- package/dist/components/empty/context.d.ts +8 -0
- package/dist/components/empty/context.js +1 -0
- package/dist/components/empty/empty-content.js +1 -0
- package/dist/components/empty/empty-content.vue.d.ts +18 -0
- package/dist/components/empty/empty-description.js +1 -0
- package/dist/components/empty/empty-description.vue.d.ts +18 -0
- package/dist/components/empty/empty-header.js +1 -0
- package/dist/components/empty/empty-header.vue.d.ts +18 -0
- package/dist/components/empty/empty-media.js +1 -0
- package/dist/components/empty/empty-media.vue.d.ts +18 -0
- package/dist/components/empty/empty-root.js +1 -0
- package/dist/components/empty/empty-root.vue.d.ts +18 -0
- package/dist/components/empty/empty-title.js +1 -0
- package/dist/components/empty/empty-title.vue.d.ts +18 -0
- package/dist/components/empty/index.d.ts +9 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/empty/types.d.ts +14 -0
- package/dist/components/form/context.d.ts +2 -2
- package/dist/components/form/form-control.vue.d.ts +2 -2
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/hover-card/context.js +1 -0
- package/dist/components/hover-card/hover-card-popup.js +1 -0
- package/dist/components/hover-card/hover-card-popup.vue.d.ts +18 -0
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -0
- package/dist/components/hover-card/hover-card-positioner.js +1 -0
- package/dist/components/hover-card/hover-card-positioner.vue.d.ts +29 -0
- package/dist/components/hover-card/hover-card-root.js +1 -0
- package/dist/components/hover-card/hover-card-root.vue.d.ts +29 -0
- package/dist/components/hover-card/hover-card-trigger.js +1 -0
- package/dist/components/hover-card/hover-card-trigger.vue.d.ts +21 -0
- package/dist/components/hover-card/index.d.ts +11 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/hover-card/shared.js +1 -0
- package/dist/components/hover-card/types.d.ts +27 -0
- package/dist/components/icon/icon-render.js +1 -0
- package/dist/components/icon/icon-render.vue.d.ts +8 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon/types.d.ts +9 -0
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/input-number/context.d.ts +2 -2
- package/dist/components/input-number/input-number-control.vue.d.ts +2 -2
- package/dist/components/input-number/input-number-decrement.vue.d.ts +4 -4
- package/dist/components/input-number/input-number-increment.vue.d.ts +4 -4
- package/dist/components/input-number/input-number-root.vue.d.ts +5 -5
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/kbd.vue.d.ts +4 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/context.d.ts +2 -2
- package/dist/components/layout/layout-content.vue.d.ts +2 -2
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
- package/dist/components/layout/layout-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/listbox/context.d.ts +2 -2
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +1 -1
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/hooks.js +1 -0
- package/dist/components/menu/index.d.ts +20 -16
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-checkbox-options-compact.js +1 -0
- package/dist/components/menu/menu-checkbox-options-compact.vue.d.ts +23 -0
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +8 -8
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-impl.js +1 -1
- package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
- package/dist/components/menu/menu-item-slot-compact.js +1 -0
- package/dist/components/menu/menu-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-option-compact.js +1 -0
- package/dist/components/menu/menu-option-compact.vue.d.ts +31 -0
- package/dist/components/menu/menu-options-compact.js +1 -0
- package/dist/components/menu/menu-options-compact.vue.d.ts +31 -0
- package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-item.js +1 -1
- package/dist/components/menu/menu-radio-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-radio-options-compact.js +1 -0
- package/dist/components/menu/menu-radio-options-compact.vue.d.ts +23 -0
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +8 -8
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/menu/shared.js +1 -1
- package/dist/components/menu/types.d.ts +121 -6
- package/dist/components/menubar/context.d.ts +8 -0
- package/dist/components/menubar/context.js +1 -0
- package/dist/components/menubar/index.d.ts +22 -0
- package/dist/components/menubar/index.js +1 -0
- package/dist/components/menubar/menubar-compact.js +1 -0
- package/dist/components/menubar/menubar-compact.vue.d.ts +33 -0
- package/dist/components/menubar/menubar-content.js +1 -0
- package/dist/components/menubar/menubar-content.vue.d.ts +38 -0
- package/dist/components/menubar/menubar-menu.js +1 -0
- package/dist/components/menubar/menubar-menu.vue.d.ts +22 -0
- package/dist/components/menubar/menubar-root.js +1 -0
- package/dist/components/menubar/menubar-root.vue.d.ts +29 -0
- package/dist/components/menubar/menubar-sub-content.js +1 -0
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +35 -0
- package/dist/components/menubar/menubar-sub-trigger.js +1 -0
- package/dist/components/menubar/menubar-sub-trigger.vue.d.ts +18 -0
- package/dist/components/menubar/menubar-trigger.js +1 -0
- package/dist/components/menubar/menubar-trigger.vue.d.ts +21 -0
- package/dist/components/menubar/shared.js +1 -0
- package/dist/components/menubar/types.d.ts +54 -0
- package/dist/components/navigation-menu/context.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/page-tabs/context.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-close.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +6 -6
- package/dist/components/page-tabs/page-tabs-pin.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +4 -4
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.vue.d.ts +5 -5
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
- package/dist/components/popover/popover-root.vue.d.ts +4 -4
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +2 -2
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-popup.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +52 -52
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/progress/context.d.ts +8 -0
- package/dist/components/progress/context.js +1 -0
- package/dist/components/progress/index.d.ts +6 -0
- package/dist/components/progress/index.js +1 -0
- package/dist/components/progress/progress-circle.js +1 -0
- package/dist/components/progress/progress-circle.vue.d.ts +25 -0
- package/dist/components/progress/progress-indicator.js +1 -0
- package/dist/components/progress/progress-indicator.vue.d.ts +21 -0
- package/dist/components/progress/progress-root.js +1 -0
- package/dist/components/progress/progress-root.vue.d.ts +33 -0
- package/dist/components/progress/shared.js +1 -0
- package/dist/components/progress/types.d.ts +34 -0
- package/dist/components/radio-group/context.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +6 -6
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/scroll-area/context.d.ts +8 -0
- package/dist/components/scroll-area/context.js +1 -0
- package/dist/components/scroll-area/index.d.ts +8 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/scroll-area/scroll-area-corner.js +1 -0
- package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +21 -0
- package/dist/components/scroll-area/scroll-area-root.js +1 -0
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +23 -0
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -0
- package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +22 -0
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -0
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +21 -0
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -0
- package/dist/components/scroll-area/scroll-area-viewport.vue.d.ts +21 -0
- package/dist/components/scroll-area/shared.js +1 -0
- package/dist/components/scroll-area/types.d.ts +31 -0
- package/dist/components/select/context.d.ts +2 -2
- package/dist/components/select/select-arrow.vue.d.ts +2 -2
- package/dist/components/select/select-content.vue.d.ts +7 -7
- package/dist/components/select/select-group-label.vue.d.ts +2 -2
- package/dist/components/select/select-group.vue.d.ts +2 -2
- package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.vue.d.ts +2 -2
- package/dist/components/select/select-item.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +3 -3
- package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.vue.d.ts +4 -4
- package/dist/components/select/select-value.vue.d.ts +3 -3
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/separator/context.d.ts +2 -2
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/skeleton/skeleton.js +1 -0
- package/dist/components/skeleton/skeleton.vue.d.ts +21 -0
- package/dist/components/skeleton/types.d.ts +7 -0
- package/dist/components/slider/context.d.ts +8 -0
- package/dist/components/slider/context.js +1 -0
- package/dist/components/slider/index.d.ts +7 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/shared.js +1 -0
- package/dist/components/slider/slider-range.js +1 -0
- package/dist/components/slider/slider-range.vue.d.ts +21 -0
- package/dist/components/slider/slider-root.js +1 -0
- package/dist/components/slider/slider-root.vue.d.ts +41 -0
- package/dist/components/slider/slider-thumb.js +1 -0
- package/dist/components/slider/slider-thumb.vue.d.ts +21 -0
- package/dist/components/slider/slider-track.js +1 -0
- package/dist/components/slider/slider-track.vue.d.ts +21 -0
- package/dist/components/slider/types.d.ts +69 -0
- package/dist/components/slot/slot.d.ts +2 -2
- package/dist/components/splitter/context.d.ts +8 -0
- package/dist/components/splitter/context.js +1 -0
- package/dist/components/splitter/index.d.ts +6 -0
- package/dist/components/splitter/index.js +1 -0
- package/dist/components/splitter/shared.js +1 -0
- package/dist/components/splitter/splitter-group.js +1 -0
- package/dist/components/splitter/splitter-group.vue.d.ts +32 -0
- package/dist/components/splitter/splitter-panel.js +1 -0
- package/dist/components/splitter/splitter-panel.vue.d.ts +51 -0
- package/dist/components/splitter/splitter-resize-handle.js +1 -0
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +30 -0
- package/dist/components/splitter/types.d.ts +127 -0
- package/dist/components/stepper/context.d.ts +8 -0
- package/dist/components/stepper/context.js +1 -0
- package/dist/components/stepper/index.d.ts +10 -0
- package/dist/components/stepper/index.js +1 -0
- package/dist/components/stepper/stepper-description.js +1 -0
- package/dist/components/stepper/stepper-description.vue.d.ts +21 -0
- package/dist/components/stepper/stepper-indicator.js +1 -0
- package/dist/components/stepper/stepper-indicator.vue.d.ts +23 -0
- package/dist/components/stepper/stepper-item.js +1 -0
- package/dist/components/stepper/stepper-item.vue.d.ts +25 -0
- package/dist/components/stepper/stepper-root.js +1 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +56 -0
- package/dist/components/stepper/stepper-separator.js +1 -0
- package/dist/components/stepper/stepper-separator.vue.d.ts +20 -0
- package/dist/components/stepper/stepper-title.js +1 -0
- package/dist/components/stepper/stepper-title.vue.d.ts +21 -0
- package/dist/components/stepper/stepper-trigger.js +1 -0
- package/dist/components/stepper/stepper-trigger.vue.d.ts +21 -0
- package/dist/components/stepper/types.d.ts +55 -0
- package/dist/components/switch/context.d.ts +2 -2
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +3 -3
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/context.js +1 -1
- package/dist/components/table/hooks.js +1 -0
- package/dist/components/table/index.d.ts +10 -8
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/shared.d.ts +39 -0
- package/dist/components/table/shared.js +1 -0
- package/dist/components/table/table-body.vue.d.ts +2 -2
- package/dist/components/table/table-cell.vue.d.ts +2 -2
- package/dist/components/table/table-compact-cell.js +1 -0
- package/dist/components/table/table-compact-head.js +1 -0
- package/dist/components/table/table-compact-row.js +1 -0
- package/dist/components/table/table-compact.js +1 -0
- package/dist/components/table/table-compact.vue.d.ts +25 -0
- package/dist/components/table/table-content.js +1 -1
- package/dist/components/table/table-content.vue.d.ts +2 -2
- package/dist/components/table/table-footer.vue.d.ts +2 -2
- package/dist/components/table/table-head.vue.d.ts +2 -2
- package/dist/components/table/table-header.vue.d.ts +2 -2
- package/dist/components/table/table-root.js +1 -1
- package/dist/components/table/table-root.vue.d.ts +2 -2
- package/dist/components/table/table-row.vue.d.ts +2 -2
- package/dist/components/table/table-virtual-spacer-row.js +1 -0
- package/dist/components/table/types.d.ts +315 -5
- package/dist/components/tabs/context.d.ts +2 -2
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/tags-input/context.d.ts +8 -0
- package/dist/components/tags-input/context.js +1 -0
- package/dist/components/tags-input/index.d.ts +9 -0
- package/dist/components/tags-input/index.js +1 -0
- package/dist/components/tags-input/tags-input-clear.js +1 -0
- package/dist/components/tags-input/tags-input-clear.vue.d.ts +21 -0
- package/dist/components/tags-input/tags-input-input.js +1 -0
- package/dist/components/tags-input/tags-input-input.vue.d.ts +21 -0
- package/dist/components/tags-input/tags-input-item-delete.js +1 -0
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +21 -0
- package/dist/components/tags-input/tags-input-item-text.js +1 -0
- package/dist/components/tags-input/tags-input-item-text.vue.d.ts +21 -0
- package/dist/components/tags-input/tags-input-item.js +1 -0
- package/dist/components/tags-input/tags-input-item.vue.d.ts +21 -0
- package/dist/components/tags-input/tags-input-root.js +1 -0
- package/dist/components/tags-input/tags-input-root.vue.d.ts +28 -0
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/context.d.ts +2 -2
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/context.d.ts +3 -4
- package/dist/components/toast/context.js +1 -1
- package/dist/components/toast/hooks.js +1 -0
- package/dist/components/toast/index.d.ts +5 -12
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toast/state.d.ts +27 -0
- package/dist/components/toast/state.js +1 -0
- package/dist/components/toast/toast-render.js +1 -0
- package/dist/components/toast/toast.js +1 -0
- package/dist/components/toast/toaster.js +1 -0
- package/dist/components/toast/toaster.vue.d.ts +26 -0
- package/dist/components/toast/types.d.ts +98 -80
- package/dist/components/toggle/index.d.ts +3 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/toggle.js +1 -0
- package/dist/components/toggle/toggle.vue.d.ts +33 -0
- package/dist/components/toggle/types.d.ts +27 -0
- package/dist/components/toggle-group/context.d.ts +8 -0
- package/dist/components/toggle-group/context.js +1 -0
- package/dist/components/toggle-group/index.d.ts +5 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/toggle-group-item.js +1 -0
- package/dist/components/toggle-group/toggle-group-item.vue.d.ts +25 -0
- package/dist/components/toggle-group/toggle-group-root.js +1 -0
- package/dist/components/toggle-group/toggle-group-root.vue.d.ts +26 -0
- package/dist/components/toggle-group/types.d.ts +30 -0
- package/dist/components/toolbar/context.d.ts +8 -0
- package/dist/components/toolbar/context.js +1 -0
- package/dist/components/toolbar/index.d.ts +9 -0
- package/dist/components/toolbar/index.js +1 -0
- package/dist/components/toolbar/toolbar-button.js +1 -0
- package/dist/components/toolbar/toolbar-button.vue.d.ts +22 -0
- package/dist/components/toolbar/toolbar-link.js +1 -0
- package/dist/components/toolbar/toolbar-link.vue.d.ts +21 -0
- package/dist/components/toolbar/toolbar-root.js +1 -0
- package/dist/components/toolbar/toolbar-root.vue.d.ts +21 -0
- package/dist/components/toolbar/toolbar-separator.js +1 -0
- package/dist/components/toolbar/toolbar-separator.vue.d.ts +18 -0
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -0
- package/dist/components/toolbar/toolbar-toggle-group.vue.d.ts +24 -0
- package/dist/components/toolbar/toolbar-toggle-item.js +1 -0
- package/dist/components/toolbar/toolbar-toggle-item.vue.d.ts +22 -0
- package/dist/components/toolbar/types.d.ts +36 -0
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tooltip/types.d.ts +4 -0
- package/dist/components/tree/tree-item.vue.d.ts +5 -5
- package/dist/components/tree/tree-root.vue.d.ts +3 -3
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +5 -5
- package/dist/components/tree-menu/context.d.ts +14 -14
- package/dist/components/tree-menu/context.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +5 -5
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
- package/dist/components/tree-menu/types.d.ts +1 -1
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +5 -5
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +4 -4
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.js +1 -1
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-focus-scope.js +1 -1
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-presence.d.ts +2 -2
- package/dist/composables/use-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/composables/use-typeahead.d.ts +2 -2
- package/dist/constants/components.d.ts +25 -0
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +399 -235
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +732 -460
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.0/node_modules/@soybeanjs/utils/dist/index.js +1 -0
- package/dist/nuxt/index.d.ts +2 -2
- package/dist/resolver/index.d.ts +2 -2
- package/dist/shared/color.d.ts +42 -0
- package/dist/shared/color.js +1 -0
- package/dist/shared/index.d.ts +3 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/vue.d.ts +4 -2
- package/dist/shared/vue.js +1 -1
- package/dist/types/common.d.ts +2 -1
- package/dist/types/event.d.ts +1 -10
- package/dist/types/index.d.ts +2 -2
- package/package.json +11 -9
- package/dist/components/toast/toast-action.js +0 -1
- package/dist/components/toast/toast-action.vue.d.ts +0 -21
- package/dist/components/toast/toast-announce.js +0 -1
- package/dist/components/toast/toast-close.js +0 -1
- package/dist/components/toast/toast-close.vue.d.ts +0 -21
- package/dist/components/toast/toast-description.js +0 -1
- package/dist/components/toast/toast-description.vue.d.ts +0 -18
- package/dist/components/toast/toast-focus-proxy.js +0 -1
- package/dist/components/toast/toast-provider.js +0 -1
- package/dist/components/toast/toast-provider.vue.d.ts +0 -24
- package/dist/components/toast/toast-root.js +0 -1
- package/dist/components/toast/toast-root.vue.d.ts +0 -46
- package/dist/components/toast/toast-title.js +0 -1
- package/dist/components/toast/toast-title.vue.d.ts +0 -18
- package/dist/components/toast/toast-viewport.js +0 -1
- package/dist/components/toast/toast-viewport.vue.d.ts +0 -23
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useColorFieldRootContext as e,useColorFieldUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,shallowRef as o,unref as s}from"vue";const c=[`inputmode`,`value`,`placeholder`,`disabled`,`readonly`,`data-disabled`,`data-readonly`],l=r({name:`ColorFieldInput`,__name:`color-field-input`,setup(r){let l=t(`input`),{updateValue:u,commit:d,handleWheel:f,increment:p,decrement:m,incrementPage:h,decrementPage:g,incrementToMax:_,decrementToMin:v,channel:y,inputValue:b,placeholder:x,disabled:S,readonly:C}=e(`ColorFieldInput`),w=o(!1);function T(e){u(e.target.value)}function E(){w.value=!1,d()}function D(){w.value=!0}function O(e){w.value&&f(e)}function k(e){switch(e.key){case`ArrowUp`:e.preventDefault(),p();break;case`ArrowDown`:e.preventDefault(),m();break;case`PageUp`:e.preventDefault(),h();break;case`PageDown`:e.preventDefault(),g();break;case`Home`:e.preventDefault(),v();break;case`End`:e.preventDefault(),_();break;case`Enter`:e.preventDefault(),d();break}}function A(e){if(!y.value)return;let t=e.data;t&&!/[\d.-]/.test(t)&&e.preventDefault()}return(e,t)=>(a(),n(`input`,{class:i(s(l)),type:`text`,inputmode:s(y)?`decimal`:`text`,value:s(b),placeholder:s(x),disabled:s(S),readonly:s(C),"data-disabled":s(S)?``:void 0,"data-readonly":s(C)?``:void 0,onInput:T,onBlur:E,onFocus:D,onKeydown:k,onWheel:O,onBeforeinput:A},null,42,c))}});export{l as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorFieldInputProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/color-field/color-field-input.vue.d.ts
|
|
5
|
+
declare const __VLS_export: _$vue.DefineComponent<ColorFieldInputProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatChannelValue as e,formatColor as t,getChannelRange as n,getChannelValue as r,isValidColor as i,setChannelValue as a,toColorObject as o}from"../../shared/color.js";import{isFormControl as s,transformPropsToContext as c}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as l}from"../../composables/use-controllable-state.js";import{useForwardElement as u}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as d}from"../primitive/primitive.js";import"../primitive/index.js";import f from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideColorFieldRootContext as p,useColorFieldUi as m}from"./context.js";import{computed as h,createBlock as g,createCommentVNode as _,defineComponent as v,normalizeClass as y,openBlock as b,renderSlot as x,shallowRef as S,unref as C,watch as w,withCtx as T}from"vue";const E=v({name:`ColorFieldRoot`,__name:`color-field-root`,props:{modelValue:{default:void 0},defaultValue:{default:`#000000`},colorSpace:{default:`hsl`},channel:{},format:{default:`hex`},placeholder:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disableWheelChange:{type:Boolean,default:!1},step:{default:void 0},asChild:{type:Boolean},as:{default:`div`},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`],setup(v,{emit:E}){let D=v,O=E,[k,A]=u(),j=m(`root`);function M(e){return D.channel?o(e,D.colorSpace):o(e,`rgb`)}let N=l(()=>D.modelValue,e=>{O(`update:modelValue`,typeof e==`string`?e:t(e,D.format))},D.defaultValue),P=S(M(N.value)),F=S(``),I=S(!1),L=h(()=>s(k.value));function R(){if(P.value=M(N.value),!I.value){if(D.channel){F.value=e(D.channel,r(P.value,D.channel,D.colorSpace));return}F.value=t(P.value,D.format)}}function z(e){let n=t(e,D.format);P.value=M(e),N.value=n,O(`update:color`,M(e))}function B(){return D.step==null?D.channel?n(D.channel).step:1:D.step}function V(e){I.value=!0,F.value=e}function H(e){let t=o(P.value,`rgb`),n=Math.round(t.r)<<16|Math.round(t.g)<<8|Math.round(t.b);z(`#${Math.min(16777215,Math.max(0,n+Math.trunc(e))).toString(16).padStart(6,`0`)}`)}function U(){if(I.value=!1,D.channel){let t=Number.parseFloat(F.value);Number.isNaN(t)||z(a(P.value,D.channel,t,D.colorSpace)),F.value=e(D.channel,r(P.value,D.channel,D.colorSpace));return}let n=F.value.trim();i(n)&&z(n),F.value=t(P.value,D.format)}function W(n){if(!(D.disabled||D.readonly)){if(D.channel){let t=r(P.value,D.channel,D.colorSpace);z(a(P.value,D.channel,t+n,D.colorSpace)),F.value=e(D.channel,r(P.value,D.channel,D.colorSpace));return}H(n),F.value=t(P.value,D.format)}}function G(){W(B())}function K(){W(-B())}function q(){W(B()*10)}function J(){W(-B()*10)}function Y(){if(!D.channel){H(16777215),F.value=t(P.value,D.format);return}z(a(P.value,D.channel,n(D.channel).max,D.colorSpace)),F.value=e(D.channel,r(P.value,D.channel,D.colorSpace))}function X(){if(!D.channel){H(-16777215),F.value=t(P.value,D.format);return}z(a(P.value,D.channel,n(D.channel).min,D.colorSpace)),F.value=e(D.channel,r(P.value,D.channel,D.colorSpace))}function Z(e){if(!(D.disableWheelChange||D.disabled||D.readonly)){if(e.preventDefault(),e.deltaY>0){K();return}G()}}return w(()=>[D.modelValue,D.channel,D.colorSpace,D.format],R,{immediate:!0}),p({color:P,inputValue:F,updateValue:V,commit:U,increment:G,decrement:K,incrementPage:q,decrementPage:J,incrementToMax:Y,decrementToMin:X,handleWheel:Z,...c(D,[`channel`,`colorSpace`,`format`,`disabled`,`readonly`,`disableWheelChange`,`placeholder`])}),(e,n)=>(b(),g(C(d),{ref:C(A),as:v.as,"as-child":v.asChild,class:y(C(j)),role:`group`,"data-disabled":v.disabled?``:void 0,"data-readonly":v.readonly?``:void 0},{default:T(()=>[x(e.$slots,`default`),L.value&&v.name?(b(),g(C(f),{key:0,type:`text`,value:C(t)(P.value,v.format),name:v.name,disabled:v.disabled,readonly:v.readonly,required:v.required},null,8,[`value`,`name`,`disabled`,`readonly`,`required`])):_(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-readonly`]))}});export{E as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
3
|
+
import { ColorFieldRootProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/color-field/color-field-root.vue.d.ts
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string) => any;
|
|
13
|
+
"update:color": (value: NormalizedColor) => any;
|
|
14
|
+
}, string, _$vue.PublicProps, Readonly<ColorFieldRootProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
+
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
format: ColorFormat;
|
|
20
|
+
as: AsTag | _$vue.Component;
|
|
21
|
+
step: number;
|
|
22
|
+
defaultValue: string | ColorValue;
|
|
23
|
+
modelValue: string | ColorValue;
|
|
24
|
+
disableWheelChange: boolean;
|
|
25
|
+
readonly: boolean;
|
|
26
|
+
colorSpace: ColorSpace;
|
|
27
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { _default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
|
+
import { ColorFieldUiSlot } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-field/context.d.ts
|
|
6
|
+
declare const provideColorFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>, useColorFieldUi: <S extends ColorFieldUiSlot | undefined = undefined>(slot?: S | undefined) => S extends ColorFieldUiSlot ? _$vue.ComputedRef<ClassValue> : _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { provideColorFieldUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";const[n,r]=e(`ColorFieldRoot`),[i,a]=t(`ColorFieldUi`);export{n as provideColorFieldRootContext,i as provideColorFieldUi,r as useColorFieldRootContext,a as useColorFieldUi};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot } from "./types.js";
|
|
2
|
+
import { _default as _default$1 } from "./color-field-root.vue.js";
|
|
3
|
+
import { _default } from "./color-field-input.vue.js";
|
|
4
|
+
import { provideColorFieldUi } from "./context.js";
|
|
5
|
+
export { _default as ColorFieldInput, type ColorFieldInputProps, _default$1 as ColorFieldRoot, type ColorFieldRootEmits, type ColorFieldRootProps, type ColorFieldUi, type ColorFieldUiSlot, provideColorFieldUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideColorFieldUi as e}from"./context.js";import t from"./color-field-root.js";import n from"./color-field-input.js";export{n as ColorFieldInput,t as ColorFieldRoot,e as provideColorFieldUi};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
|
+
import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
5
|
+
import { HTMLAttributes, InputHTMLAttributes, ShallowRef } from "vue";
|
|
6
|
+
|
|
7
|
+
//#region src/components/color-field/types.d.ts
|
|
8
|
+
interface ColorFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
9
|
+
modelValue?: string | ColorValue;
|
|
10
|
+
defaultValue?: string | ColorValue;
|
|
11
|
+
colorSpace?: ColorSpace;
|
|
12
|
+
channel?: ColorChannel;
|
|
13
|
+
format?: ColorFormat;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
disableWheelChange?: boolean;
|
|
18
|
+
step?: number;
|
|
19
|
+
}
|
|
20
|
+
type ColorFieldRootEmits = {
|
|
21
|
+
'update:modelValue': [value: string];
|
|
22
|
+
'update:color': [value: NormalizedColor];
|
|
23
|
+
};
|
|
24
|
+
interface ColorFieldInputProps extends /** @vue-ignore */InputHTMLAttributes {}
|
|
25
|
+
type ColorFieldUiSlot = 'root' | 'input';
|
|
26
|
+
type ColorFieldUi = UiClass<ColorFieldUiSlot>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatColor as e,toColorObject as t}from"../../shared/color.js";import{isFormControl as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as a}from"../primitive/primitive.js";import"../primitive/index.js";import o from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{computed as s,createBlock as c,createCommentVNode as l,defineComponent as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m,watch as h,withCtx as g}from"vue";const _=u({name:`ColorPickerRoot`,__name:`color-picker-root`,props:{modelValue:{default:void 0},defaultValue:{default:`#000000`},format:{default:`hex`},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:`div`},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`change`],setup(u,{emit:_}){let v=u,y=_,[b,x]=i(),S=r(()=>v.modelValue,t=>{y(`update:modelValue`,typeof t==`string`?t:e(t,v.format))},v.defaultValue),C=p(),w=p(v.modelValue??v.defaultValue),T=s(()=>w.value),E=s(()=>e(w.value,v.format)),D=s(()=>n(b.value));h(()=>v.modelValue,e=>{e!=null&&(typeof e==`string`&&e===C.value||(w.value=e))},{immediate:!0});function O(n){let r=e(n,v.format);w.value=n,C.value=r,S.value=r,y(`update:color`,t(n,`rgb`)),y(`change`,r)}return(e,t)=>(d(),c(m(a),{ref:m(x),as:u.as,"as-child":u.asChild,role:`group`,"data-disabled":u.disabled?``:void 0},{default:g(()=>[f(e.$slots,`default`,{color:T.value,formattedValue:E.value,setColor:O}),D.value&&u.name?(d(),c(m(o),{key:0,type:`text`,value:E.value,name:u.name,disabled:u.disabled,required:u.required},null,8,[`value`,`name`,`disabled`,`required`])):l(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`data-disabled`]))}});export{_ as default};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { ColorFormat, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
3
|
+
import { ColorPickerRootProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
import * as _$_soybeanjs_colord0 from "@soybeanjs/colord";
|
|
6
|
+
|
|
7
|
+
//#region src/components/color-picker/color-picker-root.vue.d.ts
|
|
8
|
+
declare function setColor(nextColor: ColorValue): void;
|
|
9
|
+
declare var __VLS_8: {
|
|
10
|
+
color: _$_soybeanjs_colord0.AnyColor;
|
|
11
|
+
formattedValue: string;
|
|
12
|
+
setColor: typeof setColor;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_8) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorPickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: string) => any;
|
|
19
|
+
change: (value: string) => any;
|
|
20
|
+
"update:color": (value: NormalizedColor) => any;
|
|
21
|
+
}, string, _$vue.PublicProps, Readonly<ColorPickerRootProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
|
+
onChange?: ((value: string) => any) | undefined;
|
|
24
|
+
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
format: ColorFormat;
|
|
28
|
+
as: AsTag | _$vue.Component;
|
|
29
|
+
defaultValue: string | ColorValue;
|
|
30
|
+
modelValue: string | ColorValue;
|
|
31
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { _default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ColorPickerRootEmits, ColorPickerRootProps, ColorPickerRootSlotProps } from "./types.js";
|
|
2
|
+
import { _default } from "./color-picker-root.vue.js";
|
|
3
|
+
export { _default as ColorPickerRoot, type ColorPickerRootEmits, type ColorPickerRootProps, type ColorPickerRootSlotProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./color-picker-root.js";export{e as ColorPickerRoot};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FormFieldCommonProps } from "../../types/component.js";
|
|
2
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
3
|
+
import { ColorFormat, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
4
|
+
import { ComputedRef, HTMLAttributes } from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/color-picker/types.d.ts
|
|
7
|
+
interface ColorPickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
8
|
+
modelValue?: string | ColorValue;
|
|
9
|
+
defaultValue?: string | ColorValue;
|
|
10
|
+
format?: ColorFormat;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
type ColorPickerRootEmits = {
|
|
14
|
+
'update:modelValue': [value: string];
|
|
15
|
+
'update:color': [value: NormalizedColor];
|
|
16
|
+
change: [value: string];
|
|
17
|
+
};
|
|
18
|
+
interface ColorPickerRootSlotProps {
|
|
19
|
+
color: ComputedRef<ColorValue>;
|
|
20
|
+
formattedValue: ComputedRef<string>;
|
|
21
|
+
setColor: (color: ColorValue) => void;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ColorPickerRootEmits, ColorPickerRootProps, ColorPickerRootSlotProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{areColorsEqual as e,formatColor as t,getChannelObjectSpace as n,getChannelRange as r,getChannelValue as i,hasVisibleChromaticity as a,setChannelValue as o,toColorObject as s}from"../../shared/color.js";import{snapValueToStep as c}from"../../shared/value.js";import{transformPropsToContext as l}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as u}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{useDirection as d}from"../config-provider/context.js";import f from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import p from"../slider/slider-root.js";import"../slider/index.js";import{provideColorSliderRootContext as m,useColorSliderUi as h}from"./context.js";import{computed as g,createBlock as _,createCommentVNode as v,defineComponent as y,normalizeClass as b,openBlock as x,renderSlot as S,shallowRef as C,unref as w,watch as T,withCtx as E}from"vue";const D=y({name:`ColorSliderRoot`,__name:`color-slider-root`,props:{modelValue:{default:void 0},defaultValue:{default:`#000000`},colorSpace:{default:`hsl`},channel:{},format:{default:`hex`},orientation:{default:`horizontal`},dir:{},inverted:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},step:{default:void 0},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(y,{emit:D}){let O=y,k=D,A=h(`root`),j=u(()=>O.modelValue,e=>{k(`update:modelValue`,typeof e==`string`?e:t(e,O.format))},O.defaultValue),M=d(()=>O.dir),N=g(()=>n(O.channel,O.colorSpace)),P=C(),F=C(O.modelValue??O.defaultValue),I=C(H(F.value)),L=g(()=>r(O.channel)),R=g(()=>O.step??L.value.step),z=g(()=>i(I.value,O.channel,O.colorSpace)),B=g({get:()=>I.value,set:e=>{let n=s(e,N.value),r=t(e,O.format);I.value=n,F.value=e,P.value=r,j.value=r,k(`update:color`,n)}}),V=g({get:()=>[c(z.value,L.value.min,L.value.max,R.value)],set:e=>{let n=o(B.value,O.channel,e[0]??L.value.min,O.colorSpace),r=t(n,O.format);B.value=n,k(`change`,r)}});function H(e){return s(e,N.value)}function U(){let t=H(F.value);if(!e(t,I.value)){if(O.channel===`hue`&&!a(t,O.colorSpace)){I.value=o(t,O.channel,z.value,O.colorSpace);return}I.value=t}}function W(){k(`changeEnd`,t(B.value,O.format))}return T(()=>O.modelValue,e=>{e!=null&&(typeof e==`string`&&e===P.value||(F.value=e,U()))},{immediate:!0}),T(()=>[O.channel,O.colorSpace,O.format],U,{immediate:!0}),m({color:B,channelValue:z,range:L,...l(O,[`channel`,`colorSpace`,`format`,`orientation`,`disabled`,`inverted`])}),(e,n)=>(x(),_(w(p),{modelValue:V.value,"onUpdate:modelValue":n[0]||(n[0]=e=>V.value=e),as:y.as,"as-child":y.asChild,class:b(w(A)),orientation:y.orientation,dir:w(M),disabled:y.disabled,inverted:y.inverted,min:L.value.min,max:L.value.max,step:R.value,onValueCommit:W},{default:E(()=>[S(e.$slots,`default`),y.name?(x(),_(w(f),{key:0,type:`text`,value:w(t)(B.value,y.format),name:y.name,disabled:y.disabled,required:y.required},null,8,[`value`,`name`,`disabled`,`required`])):v(`v-if`,!0)]),_:3},8,[`modelValue`,`as`,`as-child`,`class`,`orientation`,`dir`,`disabled`,`inverted`,`min`,`max`,`step`]))}});export{D as default};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DataOrientation } from "../../types/common.js";
|
|
2
|
+
import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
3
|
+
import { ColorSliderRootProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/color-slider/color-slider-root.vue.d.ts
|
|
7
|
+
declare var __VLS_10: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string) => any;
|
|
13
|
+
change: (value: string) => any;
|
|
14
|
+
"update:color": (value: NormalizedColor) => any;
|
|
15
|
+
changeEnd: (value: string) => any;
|
|
16
|
+
}, string, _$vue.PublicProps, Readonly<ColorSliderRootProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
+
onChange?: ((value: string) => any) | undefined;
|
|
19
|
+
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
20
|
+
onChangeEnd?: ((value: string) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
format: ColorFormat;
|
|
24
|
+
orientation: DataOrientation;
|
|
25
|
+
step: number;
|
|
26
|
+
inverted: boolean;
|
|
27
|
+
defaultValue: string | ColorValue;
|
|
28
|
+
modelValue: string | ColorValue;
|
|
29
|
+
colorSpace: ColorSpace;
|
|
30
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatChannelValue as e,getChannelName as t}from"../../shared/color.js";import"../../shared/index.js";import n from"../slider/slider-thumb.js";import"../slider/index.js";import{useColorSliderRootContext as r,useColorSliderUi as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,normalizeClass as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=s({name:`ColorSliderThumb`,__name:`color-slider-thumb`,props:{asChild:{type:Boolean},as:{}},setup(s){let p=i(`thumb`),{channel:m,channelValue:h}=r(`ColorSliderThumb`),g=a(()=>t(m.value)),_=a(()=>e(m.value,h.value));return(e,t)=>(l(),o(d(n),{as:s.as,"as-child":s.asChild,class:c(d(p)),index:0,"aria-label":g.value,"aria-valuetext":_.value},{default:f(()=>[u(e.$slots,`default`,{channelName:g.value,channelValue:d(h)})]),_:3},8,[`as`,`as-child`,`class`,`aria-label`,`aria-valuetext`]))}});export{p as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ColorSliderThumbProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/color-slider/color-slider-thumb.vue.d.ts
|
|
5
|
+
declare var __VLS_8: {
|
|
6
|
+
channelName: string;
|
|
7
|
+
channelValue: number;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_8) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSliderThumbProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorSliderThumbProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getSliderBackgroundStyle as e}from"../../shared/color.js";import"../../shared/index.js";import t from"../slider/slider-track.js";import"../slider/index.js";import{useColorSliderRootContext as n,useColorSliderUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=o({name:`ColorSliderTrack`,__name:`color-slider-track`,props:{asChild:{type:Boolean},as:{}},setup(o){let p=r(`track`),{color:m,channel:h,colorSpace:g}=n(`ColorSliderTrack`),_=i(()=>e(m.value,h.value,g.value));return(e,n)=>(l(),a(d(t),{as:o.as,"as-child":o.asChild,class:s(d(p)),style:c(_.value)},{default:f(()=>[u(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`style`]))}});export{p as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColorSliderTrackProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/color-slider/color-slider-track.vue.d.ts
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSliderTrackProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorSliderTrackProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
|
+
import { ColorSliderUiSlot } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-slider/context.d.ts
|
|
6
|
+
declare const provideColorSliderUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>, useColorSliderUi: <S extends ColorSliderUiSlot | undefined = undefined>(slot?: S | undefined) => S extends ColorSliderUiSlot ? _$vue.ComputedRef<ClassValue> : _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { provideColorSliderUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";const[n,r]=e(`ColorSliderRoot`),[i,a]=t(`ColorSliderUi`);export{n as provideColorSliderRootContext,i as provideColorSliderUi,r as useColorSliderRootContext,a as useColorSliderUi};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColorSliderRootEmits, ColorSliderRootProps, ColorSliderThumbProps, ColorSliderTrackProps, ColorSliderUi, ColorSliderUiSlot } from "./types.js";
|
|
2
|
+
import { _default } from "./color-slider-root.vue.js";
|
|
3
|
+
import { _default as _default$2 } from "./color-slider-track.vue.js";
|
|
4
|
+
import { _default as _default$1 } from "./color-slider-thumb.vue.js";
|
|
5
|
+
import { provideColorSliderUi } from "./context.js";
|
|
6
|
+
export { _default as ColorSliderRoot, type ColorSliderRootEmits, type ColorSliderRootProps, _default$1 as ColorSliderThumb, type ColorSliderThumbProps, _default$2 as ColorSliderTrack, type ColorSliderTrackProps, type ColorSliderUi, type ColorSliderUiSlot, provideColorSliderUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideColorSliderUi as e}from"./context.js";import t from"./color-slider-root.js";import n from"./color-slider-track.js";import r from"./color-slider-thumb.js";export{t as ColorSliderRoot,r as ColorSliderThumb,n as ColorSliderTrack,e as provideColorSliderUi};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DataOrientation, Direction, UiClass } from "../../types/common.js";
|
|
2
|
+
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
|
+
import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
5
|
+
import { ComputedRef, HTMLAttributes } from "vue";
|
|
6
|
+
|
|
7
|
+
//#region src/components/color-slider/types.d.ts
|
|
8
|
+
interface ColorSliderRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
9
|
+
modelValue?: string | ColorValue;
|
|
10
|
+
defaultValue?: string | ColorValue;
|
|
11
|
+
colorSpace?: ColorSpace;
|
|
12
|
+
channel: ColorChannel;
|
|
13
|
+
format?: ColorFormat;
|
|
14
|
+
orientation?: DataOrientation;
|
|
15
|
+
dir?: Direction;
|
|
16
|
+
inverted?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
step?: number;
|
|
19
|
+
}
|
|
20
|
+
type ColorSliderRootEmits = {
|
|
21
|
+
'update:modelValue': [value: string];
|
|
22
|
+
'update:color': [value: NormalizedColor];
|
|
23
|
+
change: [value: string];
|
|
24
|
+
changeEnd: [value: string];
|
|
25
|
+
};
|
|
26
|
+
interface ColorSliderTrackProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
27
|
+
interface ColorSliderThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
28
|
+
type ColorSliderUiSlot = 'root' | 'track' | 'thumb';
|
|
29
|
+
type ColorSliderUi = UiClass<ColorSliderUiSlot>;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ColorSliderRootEmits, ColorSliderRootProps, ColorSliderThumbProps, ColorSliderTrackProps, ColorSliderUi, ColorSliderUiSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatColor as e,getColorContrast as t,getColorLabel as n,toColorObject as r}from"../../shared/color.js";import"../../shared/index.js";import{Primitive as i}from"../primitive/primitive.js";import"../primitive/index.js";import{computed as a,createBlock as o,defineComponent as s,normalizeStyle as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=s({name:`ColorSwatch`,__name:`color-swatch`,props:{color:{default:``},label:{},asChild:{type:Boolean},as:{default:`div`}},setup(s){let p=s,m=a(()=>p.color?e(p.color,`rgb`):`transparent`),h=a(()=>r(p.color,`rgb`)),g=a(()=>h.value.alpha),_=a(()=>!p.color||g.value<=0),v=a(()=>n(p.color,p.label)),y=a(()=>t(p.color));return(e,t)=>(l(),o(d(i),{role:`img`,"aria-label":v.value,"aria-roledescription":`color swatch`,as:s.as,"as-child":s.asChild,"data-color-contrast":y.value,"data-no-color":_.value?``:void 0,style:c({"--soybean-color-swatch-color":m.value,"--soybean-color-swatch-alpha":String(g.value)})},{default:f(()=>[u(e.$slots,`default`,{color:m.value,alpha:g.value})]),_:3},8,[`aria-label`,`as`,`as-child`,`data-color-contrast`,`data-no-color`,`style`]))}});export{p as default};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { ColorValue } from "../../shared/color.js";
|
|
3
|
+
import { ColorSwatchProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/color-swatch/color-swatch.vue.d.ts
|
|
7
|
+
declare var __VLS_8: {
|
|
8
|
+
color: string;
|
|
9
|
+
alpha: number;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_8) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSwatchProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorSwatchProps> & Readonly<{}>, {
|
|
15
|
+
color: string | ColorValue;
|
|
16
|
+
as: AsTag | _$vue.Component;
|
|
17
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./color-swatch.js";export{e as ColorSwatch};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
2
|
+
import { ColorValue } from "../../shared/color.js";
|
|
3
|
+
import { HTMLAttributes } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-swatch/types.d.ts
|
|
6
|
+
interface ColorSwatchProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'color'> {
|
|
7
|
+
color?: string | ColorValue;
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ColorSwatchProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../listbox/listbox-item-indicator.js";import"../listbox/index.js";import{createBlock as t,defineComponent as n,openBlock as r,renderSlot as i,unref as a,withCtx as o}from"vue";const s=n({name:`ColorSwatchPickerItemIndicator`,__name:`color-swatch-picker-item-indicator`,props:{asChild:{type:Boolean},as:{}},setup(n){return(s,c)=>(r(),t(a(e),{as:n.as,"as-child":n.asChild},{default:o(()=>[i(s.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColorSwatchPickerItemIndicatorProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/color-swatch-picker/color-swatch-picker-item-indicator.vue.d.ts
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSwatchPickerItemIndicatorProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorSwatchPickerItemIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../color-swatch/color-swatch.js";import"../color-swatch/index.js";import{useColorSwatchPickerItemContext as t,useColorSwatchPickerUi as n}from"./context.js";import{createBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`ColorSwatchPickerItemSwatch`,__name:`color-swatch-picker-item-swatch`,props:{label:{},asChild:{type:Boolean},as:{}},setup(i){let u=n(`swatch`),{color:d}=t(`ColorSwatchPickerItemSwatch`);return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,class:a(c(u)),color:c(d),label:i.label},{default:l(()=>[s(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`color`,`label`]))}});export{u as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColorSwatchPickerItemSwatchProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/color-swatch-picker/color-swatch-picker-item-swatch.vue.d.ts
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSwatchPickerItemSwatchProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorSwatchPickerItemSwatchProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getColorLabel as e}from"../../shared/color.js";import"../../shared/index.js";import t from"../listbox/listbox-item.js";import"../listbox/index.js";import{provideColorSwatchPickerItemContext as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeStyle as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`ColorSwatchPickerItem`,__name:`color-swatch-picker-item`,props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`select`],setup(a,{emit:d}){let f=a,p=d,m=r(()=>f.value),h=r(()=>e(m.value));return n({color:m}),(e,n)=>(s(),i(l(t),{value:a.value,"aria-label":h.value,"data-color":a.value,style:o({"--soybean-color-swatch-picker-item-color":a.value}),onSelect:n[0]||(n[0]=e=>p(`select`,e))},{default:u(()=>[c(e.$slots,`default`)]),_:3},8,[`value`,`aria-label`,`data-color`,`style`]))}});export{d as default};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SelectEvent } from "../../types/event.js";
|
|
2
|
+
import { ColorSwatchPickerItemProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-swatch-picker/color-swatch-picker-item.vue.d.ts
|
|
6
|
+
declare var __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorSwatchPickerItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
|
+
select: (event: SelectEvent<string>) => any;
|
|
12
|
+
}, string, _$vue.PublicProps, Readonly<ColorSwatchPickerItemProps> & Readonly<{
|
|
13
|
+
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../listbox/listbox-root.js";import r from"../listbox/listbox-content.js";import"../listbox/index.js";import{createBlock as i,createVNode as a,defineComponent as o,isRef as s,mergeProps as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=o({name:`ColorSwatchPickerRoot`,__name:`color-swatch-picker-root`,props:{asChild:{type:Boolean},as:{default:`div`},orientation:{default:`horizontal`},dir:{default:`ltr`},disabled:{type:Boolean,default:!1},selectionBehavior:{},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{default:void 0},multiple:{},singleClearable:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(o,{emit:p}){let m=o,h=p,g=e(()=>m.modelValue,e=>{h(`update:modelValue`,e)},m.defaultValue??(m.multiple?[]:void 0)),_=t(m,[`modelValue`,`defaultValue`,`class`]);return(e,t)=>(l(),i(d(n),c(d(_),{modelValue:d(g),"onUpdate:modelValue":t[0]||(t[0]=e=>s(g)?g.value=e:null),onHighlight:t[1]||(t[1]=e=>h(`highlight`,e)),onEntryFocus:t[2]||(t[2]=e=>h(`entryFocus`,e)),onLeave:t[3]||(t[3]=e=>h(`leave`,e))}),{default:f(()=>[a(d(r),{as:o.as,"as-child":o.asChild},{default:f(()=>[u(e.$slots,`default`,{modelValue:d(g)})]),_:3},8,[`as`,`as-child`])]),_:3},16,[`modelValue`]))}});export{p as default};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CollectionItemData } from "../../composables/use-collection.js";
|
|
2
|
+
import { ListboxCollectionItemData } from "../listbox/types.js";
|
|
3
|
+
import { ColorSwatchPickerRootProps } from "./types.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts
|
|
7
|
+
declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<ColorSwatchPickerRootProps<M> & {
|
|
9
|
+
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
|
+
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
11
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
12
|
+
onLeave?: ((event: Event) => any) | undefined;
|
|
13
|
+
}> & (typeof globalThis extends {
|
|
14
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
15
|
+
} ? P : {});
|
|
16
|
+
expose: (exposed: {}) => void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: {
|
|
19
|
+
default?: (props: {
|
|
20
|
+
modelValue: ((M extends true ? string[] : string) | undefined) & (M extends true ? string[] | undefined : string | undefined);
|
|
21
|
+
}) => any;
|
|
22
|
+
};
|
|
23
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
|
|
24
|
+
}>) => _$vue.VNode & {
|
|
25
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
|
+
import { ColorSwatchPickerUiSlot } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-swatch-picker/context.d.ts
|
|
6
|
+
declare const provideColorSwatchPickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>, useColorSwatchPickerUi: <S extends ColorSwatchPickerUiSlot | undefined = undefined>(slot?: S | undefined) => S extends ColorSwatchPickerUiSlot ? _$vue.ComputedRef<ClassValue> : _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { provideColorSwatchPickerUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{provideListboxUi as n}from"../listbox/context.js";import{computed as r}from"vue";const[i,a]=e(`ColorSwatchPickerItem`),[o,s]=t(`ColorSwatchPickerUi`,e=>(n(r(()=>({content:e.value.root,item:e.value.item,itemIndicator:e.value.itemIndicator}))),e));export{i as provideColorSwatchPickerItemContext,o as provideColorSwatchPickerUi,a as useColorSwatchPickerItemContext,s as useColorSwatchPickerUi};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ColorSwatchPickerItemEmits, ColorSwatchPickerItemIndicatorProps, ColorSwatchPickerItemProps, ColorSwatchPickerItemSwatchProps, ColorSwatchPickerRootEmits, ColorSwatchPickerRootProps, ColorSwatchPickerUi, ColorSwatchPickerUiSlot } from "./types.js";
|
|
2
|
+
import { _default as _default$3 } from "./color-swatch-picker-root.vue.js";
|
|
3
|
+
import { _default } from "./color-swatch-picker-item.vue.js";
|
|
4
|
+
import { _default as _default$1 } from "./color-swatch-picker-item-indicator.vue.js";
|
|
5
|
+
import { _default as _default$2 } from "./color-swatch-picker-item-swatch.vue.js";
|
|
6
|
+
import { provideColorSwatchPickerUi } from "./context.js";
|
|
7
|
+
export { _default as ColorSwatchPickerItem, type ColorSwatchPickerItemEmits, _default$1 as ColorSwatchPickerItemIndicator, type ColorSwatchPickerItemIndicatorProps, type ColorSwatchPickerItemProps, _default$2 as ColorSwatchPickerItemSwatch, type ColorSwatchPickerItemSwatchProps, _default$3 as ColorSwatchPickerRoot, type ColorSwatchPickerRootEmits, type ColorSwatchPickerRootProps, type ColorSwatchPickerUi, type ColorSwatchPickerUiSlot, provideColorSwatchPickerUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./color-swatch-picker-root.js";import{provideColorSwatchPickerUi as t}from"./context.js";import n from"./color-swatch-picker-item.js";import r from"./color-swatch-picker-item-indicator.js";import i from"./color-swatch-picker-item-swatch.js";export{n as ColorSwatchPickerItem,r as ColorSwatchPickerItemIndicator,i as ColorSwatchPickerItemSwatch,e as ColorSwatchPickerRoot,t as provideColorSwatchPickerUi};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
3
|
+
import { ListboxItemEmits, ListboxItemIndicatorProps, ListboxItemProps, ListboxRootEmits, ListboxRootProps } from "../listbox/types.js";
|
|
4
|
+
import { ComputedRef, HTMLAttributes } from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/color-swatch-picker/types.d.ts
|
|
7
|
+
interface ColorSwatchPickerRootProps<M extends boolean = false> extends PrimitiveProps, ListboxRootProps<M> {}
|
|
8
|
+
type ColorSwatchPickerRootEmits<M extends boolean = false> = ListboxRootEmits<M>;
|
|
9
|
+
interface ColorSwatchPickerItemProps extends ListboxItemProps {}
|
|
10
|
+
type ColorSwatchPickerItemEmits = ListboxItemEmits;
|
|
11
|
+
interface ColorSwatchPickerItemIndicatorProps extends ListboxItemIndicatorProps {}
|
|
12
|
+
interface ColorSwatchPickerItemSwatchProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
type ColorSwatchPickerUiSlot = 'root' | 'item' | 'itemIndicator' | 'swatch';
|
|
16
|
+
type ColorSwatchPickerUi = UiClass<ColorSwatchPickerUiSlot>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ColorSwatchPickerItemEmits, ColorSwatchPickerItemIndicatorProps, ColorSwatchPickerItemProps, ColorSwatchPickerItemSwatchProps, ColorSwatchPickerRootEmits, ColorSwatchPickerRootProps, ColorSwatchPickerUi, ColorSwatchPickerUiSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{popperCssVars as t}from"../popper/shared.js";import n from"../popper/popper-popup.js";import"../popper/index.js";import{usePopoverRootContext as r}from"../popover/context.js";import i from"../popover/popover-positioner.js";import"../popover/index.js";import{createBlock as a,createVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=s({name:`ComboboxContent`,__name:`combobox-content`,props:{popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean,default:!0},reference:{},forceMount:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(s,{emit:p}){let m=p,{dataState:h,popupId:g,initPopupId:_,onPopupElementChange:v}=r(`ComboboxContent`),[y,b]=e(v),x={"--soybean-combobox-content-transform-origin":`var(${t.transformOrigin})`,"--soybean-combobox-content-available-width":`var(${t.availableWidth})`,"--soybean-combobox-content-available-height":`var(${t.availableHeight})`,"--soybean-combobox-trigger-width":`var(${t.anchorWidth})`,"--soybean-combobox-trigger-height":`var(${t.anchorHeight})`};return _(),(e,t)=>(l(),a(d(i),{side:s.side,align:s.align,"side-offset":s.sideOffset,"align-offset":s.alignOffset,sticky:s.sticky,"avoid-collisions":s.avoidCollisions,"collision-boundary":s.collisionBoundary,"collision-padding":s.collisionPadding,"arrow-padding":s.arrowPadding,"prioritize-position":s.prioritizePosition,"hide-when-detached":s.hideWhenDetached,"update-position-strategy":s.updatePositionStrategy,"position-strategy":s.positionStrategy,"force-mount":s.forceMount,onCloseAutoFocus:t[0]||(t[0]=e=>m(`closeAutoFocus`,e)),onEscapeKeyDown:t[1]||(t[1]=e=>m(`escapeKeyDown`,e)),onPointerDownOutside:t[2]||(t[2]=e=>m(`pointerDownOutside`,e)),onFocusOutside:t[3]||(t[3]=e=>m(`focusOutside`,e)),onInteractOutside:t[4]||(t[4]=e=>m(`interactOutside`,e))},{default:f(()=>[o(d(n),c({id:d(g),ref:d(b),"data-dismissable-layer":``,"data-state":d(h),style:x},s.popupProps),{default:f(()=>[u(e.$slots,`default`)]),_:3},16,[`id`,`data-state`])]),_:3},8,[`side`,`align`,`side-offset`,`align-offset`,`sticky`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`hide-when-detached`,`update-position-strategy`,`position-strategy`,`force-mount`]))}});export{p as default};
|