@soybeanjs/headless 0.18.0 → 0.19.0
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/dist/components/_icon/types.d.ts +1 -10
- package/dist/components/accordion/accordion-content.js +1 -1
- package/dist/components/accordion/accordion-description.js +1 -1
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/types.d.ts +6 -5
- package/dist/components/affix/affix-content.js +1 -1
- package/dist/components/affix/affix-placeholder.js +1 -1
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/types.d.ts +5 -4
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +5 -4
- package/dist/components/alert/alert-compact.js +1 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -0
- package/dist/components/alert/alert-content.js +1 -1
- package/dist/components/alert/alert-description.js +1 -1
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/alert-title.js +1 -1
- package/dist/components/alert/types.d.ts +16 -9
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +2 -2
- package/dist/components/anchor/context.js +1 -1
- package/dist/components/anchor/types.d.ts +5 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/types.d.ts +2 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/types.d.ts +2 -3
- package/dist/components/autocomplete/autocomplete-compact.js +1 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/types.d.ts +4 -3
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/types.d.ts +5 -4
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +3 -7
- package/dist/components/backtop/types.d.ts +2 -2
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/types.d.ts +4 -3
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-popup.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/context.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +8 -8
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/types.d.ts +3 -2
- package/dist/components/calendar/calendar-cell-trigger.js +1 -1
- package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +3 -16
- package/dist/components/calendar/calendar-cell.js +1 -1
- package/dist/components/calendar/calendar-compact.js +1 -1
- package/dist/components/calendar/calendar-compact.vue.d.ts +3 -3
- package/dist/components/calendar/calendar-grid-body.js +1 -1
- package/dist/components/calendar/calendar-grid-head.js +1 -1
- package/dist/components/calendar/calendar-grid-row.js +1 -1
- package/dist/components/calendar/calendar-grid.js +1 -1
- package/dist/components/calendar/calendar-head-cell.js +1 -1
- package/dist/components/calendar/calendar-header.js +1 -1
- package/dist/components/calendar/calendar-header.vue.d.ts +1 -4
- package/dist/components/calendar/calendar-heading.js +1 -1
- package/dist/components/calendar/calendar-heading.vue.d.ts +6 -8
- package/dist/components/calendar/calendar-next.js +1 -1
- package/dist/components/calendar/calendar-next.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-prev.js +1 -1
- package/dist/components/calendar/calendar-prev.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/calendar-root.vue.d.ts +2 -4
- package/dist/components/calendar/index.d.ts +2 -2
- package/dist/components/calendar/shared.js +1 -0
- package/dist/components/calendar/types.d.ts +119 -202
- package/dist/components/calendar/use-calendar.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -0
- package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +15 -0
- package/dist/components/calendar-range/calendar-range-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-cell.vue.d.ts → calendar-range/calendar-range-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-compact.js +1 -0
- package/dist/components/{range-calendar/range-calendar-compact.vue.d.ts → calendar-range/calendar-range-compact.vue.d.ts} +5 -5
- package/dist/components/calendar-range/calendar-range-grid-body.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-body.vue.d.ts → calendar-range/calendar-range-grid-body.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-head.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-head.vue.d.ts → calendar-range/calendar-range-grid-head.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-row.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-row.vue.d.ts → calendar-range/calendar-range-grid-row.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid.vue.d.ts → calendar-range/calendar-range-grid.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-head-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-head-cell.vue.d.ts → calendar-range/calendar-range-head-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-header.js +1 -0
- package/dist/components/calendar-range/calendar-range-header.vue.d.ts +18 -0
- package/dist/components/calendar-range/calendar-range-heading.js +1 -0
- package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-next.js +1 -0
- package/dist/components/calendar-range/calendar-range-next.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-prev.js +1 -0
- package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-root.js +1 -0
- package/dist/components/{range-calendar/range-calendar-root.vue.d.ts → calendar-range/calendar-range-root.vue.d.ts} +11 -23
- package/dist/components/calendar-range/context.d.ts +9 -0
- package/dist/components/calendar-range/context.js +1 -0
- package/dist/components/calendar-range/index.d.ts +16 -0
- package/dist/components/calendar-range/index.js +1 -0
- package/dist/components/calendar-range/types.d.ts +471 -0
- package/dist/components/{range-calendar/use-range-calendar.js → calendar-range/use-calendar-range.js} +1 -1
- package/dist/components/card/card-collapsible-trigger.js +1 -1
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-description.js +1 -1
- package/dist/components/card/card-footer.js +1 -1
- package/dist/components/card/card-header.js +1 -1
- package/dist/components/card/card-root.js +1 -1
- package/dist/components/card/card-title-root.js +1 -1
- package/dist/components/card/card-title.js +1 -1
- package/dist/components/card/types.d.ts +6 -6
- package/dist/components/carousel/carousel-container.js +1 -1
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -1
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -1
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/types.d.ts +8 -7
- package/dist/components/checkbox/checkbox-card-compact.js +1 -1
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-compact.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +8 -6
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/types.d.ts +1 -1
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-root.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -4
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/types.d.ts +6 -5
- package/dist/components/color-area/color-area-area.js +1 -1
- package/dist/components/color-area/color-area-area.vue.d.ts +1 -4
- package/dist/components/color-area/color-area-compact.js +1 -0
- package/dist/components/color-area/color-area-compact.vue.d.ts +19 -0
- package/dist/components/color-area/color-area-root.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -4
- package/dist/components/color-area/color-area-thumb.js +1 -1
- package/dist/components/color-area/index.d.ts +5 -4
- package/dist/components/color-area/index.js +1 -1
- package/dist/components/color-area/types.d.ts +24 -7
- package/dist/components/color-field/color-field-compact.js +1 -0
- package/dist/components/color-field/color-field-compact.vue.d.ts +15 -0
- package/dist/components/color-field/color-field-input.js +1 -1
- package/dist/components/color-field/color-field-root.js +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -4
- package/dist/components/color-field/index.d.ts +5 -4
- package/dist/components/color-field/index.js +1 -1
- package/dist/components/color-field/types.d.ts +20 -6
- package/dist/components/color-picker/color-picker-compact.js +1 -0
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +60 -0
- package/dist/components/color-picker/color-picker-root.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +16 -5
- package/dist/components/color-picker/color-picker-trigger.js +1 -0
- package/dist/components/color-picker/color-picker-trigger.vue.d.ts +25 -0
- package/dist/components/color-picker/context.d.ts +9 -0
- package/dist/components/color-picker/context.js +1 -0
- package/dist/components/color-picker/index.d.ts +6 -3
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/shared.js +1 -0
- package/dist/components/color-picker/types.d.ts +132 -5
- package/dist/components/color-slider/color-slider-compact.js +1 -0
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +19 -0
- package/dist/components/color-slider/color-slider-root.js +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
- package/dist/components/color-slider/color-slider-thumb.js +1 -1
- package/dist/components/color-slider/color-slider-track.js +1 -1
- package/dist/components/color-slider/index.d.ts +6 -5
- package/dist/components/color-slider/index.js +1 -1
- package/dist/components/color-slider/types.d.ts +24 -7
- package/dist/components/color-swatch/color-swatch-checker.js +1 -0
- package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-compact.js +1 -0
- package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +15 -0
- package/dist/components/color-swatch/color-swatch-fill.js +1 -0
- package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-root.js +1 -0
- package/dist/components/color-swatch/color-swatch-root.vue.d.ts +15 -0
- package/dist/components/color-swatch/context.d.ts +9 -0
- package/dist/components/color-swatch/context.js +1 -0
- package/dist/components/color-swatch/index.d.ts +7 -3
- package/dist/components/color-swatch/index.js +1 -1
- package/dist/components/color-swatch/types.d.ts +58 -5
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +28 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +1 -1
- package/dist/components/color-swatch-picker/context.js +1 -1
- package/dist/components/color-swatch-picker/index.d.ts +7 -6
- package/dist/components/color-swatch-picker/index.js +1 -1
- package/dist/components/color-swatch-picker/types.d.ts +63 -8
- package/dist/components/combobox/combobox-arrow.js +1 -1
- package/dist/components/combobox/combobox-cancel.js +1 -1
- package/dist/components/combobox/combobox-compact.js +1 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-content.js +1 -1
- package/dist/components/combobox/combobox-empty.js +1 -1
- package/dist/components/combobox/combobox-empty.vue.d.ts +1 -4
- package/dist/components/combobox/combobox-group.js +1 -1
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-separator.js +1 -1
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-viewport.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -1
- package/dist/components/combobox/types.d.ts +9 -8
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/types.d.ts +4 -4
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +9 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context.js +1 -1
- package/dist/components/date-field/date-field-compact.js +1 -1
- package/dist/components/date-field/date-field-compact.vue.d.ts +17 -5
- package/dist/components/date-field/date-field-input.js +1 -1
- package/dist/components/date-field/date-field-root.js +1 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +14 -22
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/types.d.ts +44 -144
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +290 -10
- package/dist/components/date-picker/index.d.ts +2 -7
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +11 -274
- package/dist/components/date-range-field/date-range-field-compact.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.vue.d.ts +2 -2
- package/dist/components/date-range-field/date-range-field-root.js +1 -1
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +15 -30
- package/dist/components/date-range-field/index.d.ts +3 -3
- package/dist/components/date-range-field/types.d.ts +36 -183
- package/dist/components/date-range-picker/context.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +293 -12
- package/dist/components/date-range-picker/index.d.ts +2 -5
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/types.d.ts +14 -269
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-cancel.js +1 -1
- package/dist/components/dialog/dialog-close.js +1 -1
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +7 -7
- package/dist/components/dialog/dialog-confirm.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-description.js +1 -1
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-popup.js +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/dialog-title.js +1 -1
- package/dist/components/dialog/dialog-trigger.js +1 -1
- package/dist/components/dialog/dialog-trigger.vue.d.ts +5 -1
- package/dist/components/dialog/types.d.ts +21 -14
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/editable/context.js +1 -1
- package/dist/components/editable/editable-area.js +1 -1
- package/dist/components/editable/editable-area.vue.d.ts +1 -4
- package/dist/components/editable/editable-cancel-trigger.js +1 -1
- package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -4
- package/dist/components/editable/editable-compact.js +1 -1
- package/dist/components/editable/editable-edit-trigger.js +1 -1
- package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -4
- package/dist/components/editable/editable-input.js +1 -1
- package/dist/components/editable/editable-input.vue.d.ts +4 -1
- package/dist/components/editable/editable-preview.js +1 -1
- package/dist/components/editable/editable-root.js +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +2 -4
- package/dist/components/editable/editable-submit-trigger.js +1 -1
- package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -4
- package/dist/components/editable/types.d.ts +10 -9
- package/dist/components/empty/empty-content.js +1 -1
- package/dist/components/empty/empty-description.js +1 -1
- package/dist/components/empty/empty-header.js +1 -1
- package/dist/components/empty/empty-media.js +1 -1
- package/dist/components/empty/empty-root.js +1 -1
- package/dist/components/empty/empty-title.js +1 -1
- package/dist/components/empty/types.d.ts +8 -8
- package/dist/components/form/form-compact.js +1 -1
- package/dist/components/form/form-control.js +1 -1
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/types.d.ts +7 -6
- package/dist/components/hover-card/context.js +1 -1
- package/dist/components/hover-card/hover-card-popup.js +1 -1
- package/dist/components/hover-card/hover-card-positioner.js +1 -1
- package/dist/components/hover-card/hover-card-root.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
- package/dist/components/hover-card/hover-card-trigger.js +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/input/input-clear.js +1 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/input-root.vue.d.ts +1 -1
- package/dist/components/input/types.d.ts +10 -9
- package/dist/components/input-number/context.js +1 -1
- package/dist/components/input-number/index.d.ts +7 -6
- package/dist/components/input-number/index.js +1 -1
- package/dist/components/input-number/input-number-clear.js +1 -0
- package/dist/components/input-number/input-number-compact.js +1 -0
- package/dist/components/input-number/input-number-compact.vue.d.ts +21 -0
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-decrement.js +1 -1
- package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-increment.js +1 -1
- package/dist/components/input-number/input-number-increment.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +4 -4
- package/dist/components/input-number/types.d.ts +87 -14
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-input.js +1 -1
- package/dist/components/input-otp/input-otp-positioner.js +1 -1
- package/dist/components/input-otp/input-otp-root.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +2 -2
- package/dist/components/input-otp/types.d.ts +5 -4
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +2 -3
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/types.d.ts +2 -3
- package/dist/components/layout/layout-classic-placeholder.js +1 -1
- package/dist/components/layout/layout-classic-root.js +1 -1
- package/dist/components/layout/layout-content.js +1 -1
- package/dist/components/layout/layout-footer.js +1 -1
- package/dist/components/layout/layout-header.js +1 -1
- package/dist/components/layout/layout-main.js +1 -1
- package/dist/components/layout/layout-mobile.js +1 -1
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +2 -2
- package/dist/components/layout/layout-sidebar.js +1 -1
- package/dist/components/layout/layout-tab.js +1 -1
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +1 -4
- package/dist/components/layout/types.d.ts +13 -12
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/types.d.ts +2 -3
- package/dist/components/list/list-content.js +1 -1
- package/dist/components/list/list-description.js +1 -1
- package/dist/components/list/list-item.js +1 -1
- package/dist/components/list/list-root.js +1 -1
- package/dist/components/list/list-title.js +1 -1
- package/dist/components/list/types.d.ts +6 -7
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-group-label.js +1 -1
- package/dist/components/listbox/listbox-group.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-item.vue.d.ts +1 -4
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/types.d.ts +9 -8
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +1 -1
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-group-label.js +1 -1
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-item-impl.js +1 -1
- package/dist/components/menu/menu-item-indicator.js +1 -1
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-radio-group.js +1 -1
- 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-options-compact.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +1 -1
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/types.d.ts +11 -12
- package/dist/components/menubar/context.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-content.js +1 -1
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-menu.js +1 -1
- package/dist/components/menubar/menubar-root.js +1 -1
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/menubar/menubar-sub-content.js +1 -1
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-sub-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +1 -4
- package/dist/components/menubar/types.d.ts +5 -7
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +12 -11
- package/dist/components/page-tabs/hooks.js +1 -1
- package/dist/components/page-tabs/index.d.ts +6 -5
- package/dist/components/page-tabs/index.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-compact.js +1 -0
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +27 -0
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-pin.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +3 -2
- package/dist/components/page-tabs/types.d.ts +208 -9
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.js +1 -1
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.js +1 -1
- package/dist/components/pagination/types.d.ts +8 -6
- package/dist/components/password/context.d.ts +9 -0
- package/dist/components/password/context.js +1 -0
- package/dist/components/password/index.d.ts +4 -0
- package/dist/components/password/index.js +1 -0
- package/dist/components/password/password-compact.js +1 -0
- package/dist/components/password/password-compact.vue.d.ts +23 -0
- package/dist/components/password/types.d.ts +97 -0
- package/dist/components/popconfirm/context.d.ts +9 -0
- package/dist/components/popconfirm/context.js +1 -0
- package/dist/components/popconfirm/index.d.ts +21 -0
- package/dist/components/popconfirm/index.js +1 -0
- package/dist/components/popconfirm/popconfirm-cancel.js +1 -0
- package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +22 -0
- package/dist/components/popconfirm/popconfirm-compact.js +1 -0
- package/dist/components/{date-picker/date-picker-content.vue.d.ts → popconfirm/popconfirm-compact.vue.d.ts} +17 -7
- package/dist/components/popconfirm/popconfirm-confirm.js +1 -0
- package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +22 -0
- package/dist/components/popconfirm/popconfirm-content.js +1 -0
- package/dist/components/popconfirm/popconfirm-content.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-description.js +1 -0
- package/dist/components/popconfirm/popconfirm-description.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-footer.js +1 -0
- package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-header.js +1 -0
- package/dist/components/popconfirm/popconfirm-header.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-title.js +1 -0
- package/dist/components/popconfirm/popconfirm-title.vue.d.ts +18 -0
- package/dist/components/popconfirm/types.d.ts +221 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.js +1 -1
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-close.vue.d.ts +3 -6
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-popup.js +1 -1
- package/dist/components/popover/popover-positioner-impl.js +1 -1
- package/dist/components/popover/popover-positioner.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +1 -0
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +1 -1
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +13 -15
- package/dist/components/popper/index.d.ts +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +3 -2
- package/dist/components/popper/types.d.ts +7 -6
- package/dist/components/primitive/index.d.ts +2 -2
- package/dist/components/primitive/types.d.ts +3 -1
- package/dist/components/progress/index.d.ts +8 -6
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress-circle-compact.js +1 -0
- package/dist/components/progress/progress-circle-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-circle-svg.js +1 -0
- package/dist/components/progress/{progress-circle.vue.d.ts → progress-circle-svg.vue.d.ts} +3 -3
- package/dist/components/progress/progress-compact.js +1 -0
- package/dist/components/progress/progress-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-indicator.js +1 -1
- package/dist/components/progress/progress-indicator.vue.d.ts +1 -4
- package/dist/components/progress/progress-provider.js +1 -1
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/progress-root.vue.d.ts +1 -3
- package/dist/components/progress/shared.js +1 -1
- package/dist/components/progress/types.d.ts +67 -22
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.js +1 -1
- package/dist/components/radio-group/radio-group-item.js +1 -1
- package/dist/components/radio-group/radio-group-label.js +1 -1
- 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/radio-group/types.d.ts +9 -7
- package/dist/components/roving-focus/context.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/roving-focus-item.js +1 -1
- package/dist/components/roving-focus/types.d.ts +3 -4
- package/dist/components/scroll-area/index.d.ts +8 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area-compact.js +1 -0
- package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +15 -0
- package/dist/components/scroll-area/scroll-area-corner.js +1 -1
- package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/components/scroll-area/types.d.ts +46 -8
- package/dist/components/segment/index.d.ts +1 -1
- package/dist/components/segment/segment-compact.js +1 -1
- package/dist/components/segment/segment-compact.vue.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-bubble-select.js +1 -1
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-group-label.js +1 -1
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-item-aligned-popup.js +1 -1
- package/dist/components/select/select-item-aligned-positioner.js +1 -1
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-text.js +1 -1
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-popper-popup.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-button-impl.js +1 -1
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-separator.js +1 -1
- package/dist/components/select/select-trigger-icon.js +1 -1
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/types.d.ts +16 -14
- package/dist/components/separator/index.d.ts +5 -4
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator-compact.js +1 -0
- package/dist/components/separator/separator-compact.vue.d.ts +18 -0
- package/dist/components/separator/separator-label.js +1 -1
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/types.d.ts +26 -5
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/skeleton.vue.d.ts +1 -4
- package/dist/components/skeleton/types.d.ts +2 -3
- package/dist/components/slider/index.d.ts +7 -6
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/shared.js +1 -1
- package/dist/components/slider/slider-compact.js +1 -0
- package/dist/components/slider/slider-compact.vue.d.ts +21 -0
- package/dist/components/slider/slider-range.js +1 -1
- package/dist/components/slider/slider-range.vue.d.ts +1 -4
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +1 -3
- package/dist/components/slider/slider-thumb.js +1 -1
- package/dist/components/slider/slider-thumb.vue.d.ts +1 -4
- package/dist/components/slider/slider-track.js +1 -1
- package/dist/components/slider/slider-track.vue.d.ts +1 -4
- package/dist/components/slider/types.d.ts +55 -8
- package/dist/components/splitter/context.js +1 -1
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -3
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +4 -6
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +0 -2
- package/dist/components/splitter/types.d.ts +5 -5
- package/dist/components/stepper/context.js +1 -1
- package/dist/components/stepper/stepper-description.js +1 -1
- package/dist/components/stepper/stepper-indicator.js +1 -1
- package/dist/components/stepper/stepper-item.js +1 -1
- package/dist/components/stepper/stepper-item.vue.d.ts +0 -2
- package/dist/components/stepper/stepper-root.js +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +2 -4
- package/dist/components/stepper/stepper-separator.js +1 -1
- package/dist/components/stepper/stepper-title.js +1 -1
- package/dist/components/stepper/stepper-trigger.js +1 -1
- package/dist/components/stepper/types.d.ts +8 -8
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/index.d.ts +6 -5
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch-compact.js +1 -0
- package/dist/components/switch/switch-compact.vue.d.ts +22 -0
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/switch-root.vue.d.ts +1 -1
- package/dist/components/switch/switch-thumb.js +1 -1
- package/dist/components/switch/types.d.ts +51 -6
- package/dist/components/table/hooks.js +1 -1
- package/dist/components/table/shared.js +1 -1
- package/dist/components/table/table-body.js +1 -1
- package/dist/components/table/table-cell.js +1 -1
- package/dist/components/table/table-compact.js +1 -1
- package/dist/components/table/table-content.js +1 -1
- package/dist/components/table/table-footer.js +1 -1
- package/dist/components/table/table-head.js +1 -1
- package/dist/components/table/table-header.js +1 -1
- package/dist/components/table/table-root.js +1 -1
- package/dist/components/table/table-row.js +1 -1
- package/dist/components/table/table-scroll.js +1 -1
- package/dist/components/table/table-virtual-spacer-row.js +1 -1
- package/dist/components/table/types.d.ts +15 -11
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/tabs-compact.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/types.d.ts +8 -7
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +2 -3
- package/dist/components/tags-input/index.d.ts +8 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/tags-input-clear.js +1 -1
- package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-compact.js +1 -0
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +25 -0
- package/dist/components/tags-input/tags-input-control.js +1 -0
- package/dist/components/tags-input/tags-input-control.vue.d.ts +8 -0
- package/dist/components/tags-input/tags-input-item-delete.js +1 -1
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-item-text.js +1 -1
- package/dist/components/tags-input/tags-input-item-text.vue.d.ts +3 -6
- package/dist/components/tags-input/tags-input-item.js +1 -1
- package/dist/components/tags-input/tags-input-item.vue.d.ts +14 -14
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +29 -21
- package/dist/components/tags-input/types.d.ts +75 -63
- package/dist/components/textarea/index.d.ts +7 -5
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea-clear.js +1 -0
- package/dist/components/textarea/textarea-clear.vue.d.ts +22 -0
- package/dist/components/textarea/textarea-compact.js +1 -0
- package/dist/components/textarea/textarea-compact.vue.d.ts +21 -0
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-counter.js +1 -1
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/textarea-root.vue.d.ts +3 -1
- package/dist/components/textarea/types.d.ts +96 -6
- package/dist/components/time-field/index.d.ts +6 -4
- package/dist/components/time-field/index.js +1 -1
- package/dist/components/time-field/time-field-compact.js +1 -0
- package/dist/components/time-field/time-field-compact.vue.d.ts +15 -0
- package/dist/components/time-field/time-field-input.js +1 -1
- package/dist/components/time-field/time-field-input.vue.d.ts +2 -2
- package/dist/components/time-field/time-field-root.js +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +5 -15
- package/dist/components/time-field/types.d.ts +33 -132
- package/dist/components/time-range-field/index.d.ts +2 -2
- package/dist/components/time-range-field/time-range-field-compact.js +1 -1
- package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +1 -2
- package/dist/components/time-range-field/time-range-field-input.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +6 -20
- package/dist/components/time-range-field/types.d.ts +36 -184
- package/dist/components/toast/toast-provider.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toaster.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +1 -1
- package/dist/components/toast/types.d.ts +3 -2
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +1 -4
- package/dist/components/toggle/types.d.ts +2 -7
- package/dist/components/toggle-group/context.js +1 -1
- package/dist/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/components/toggle-group/toggle-group-root.js +1 -1
- package/dist/components/toggle-group/types.d.ts +3 -5
- package/dist/components/toolbar/context.js +1 -1
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar-link.js +1 -1
- package/dist/components/toolbar/toolbar-root.js +1 -1
- package/dist/components/toolbar/toolbar-separator.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
- package/dist/components/toolbar/types.d.ts +4 -4
- package/dist/components/tooltip/index.d.ts +8 -7
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-compact.js +1 -0
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +28 -0
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +1 -0
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/types.d.ts +58 -2
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-root.vue.d.ts +1 -1
- package/dist/components/tree/tree-virtualizer-item.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/types.d.ts +5 -5
- package/dist/components/tree-menu/index.d.ts +12 -8
- package/dist/components/tree-menu/index.js +1 -1
- package/dist/components/tree-menu/shared.js +1 -0
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +24 -0
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +33 -0
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +34 -0
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -1
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +28 -0
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/types.d.ts +241 -12
- package/dist/components/virtualizer/types.d.ts +7 -6
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-item.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/visually-hidden/types.d.ts +2 -3
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.js +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-bool-prop.d.ts +12 -0
- package/dist/composables/use-bool-prop.js +1 -0
- package/dist/composables/use-collection.d.ts +0 -3
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-controllable-state.d.ts +10 -1
- package/dist/composables/use-controllable-state.js +1 -1
- package/dist/composables/use-selection.js +1 -1
- package/dist/constants/components.d.ts +3 -7
- package/dist/constants/components.js +1 -1
- package/dist/date/calendar.d.ts +22 -24
- package/dist/date/calendar.js +1 -1
- package/dist/date/comparators.d.ts +29 -30
- package/dist/date/formatter.d.ts +1 -1
- package/dist/date/index.d.ts +8 -8
- package/dist/date/index.js +1 -1
- package/dist/date/parser.d.ts +14 -13
- package/dist/date/parser.js +1 -1
- package/dist/date/parts.d.ts +6 -6
- package/dist/date/placeholders.d.ts +2 -21
- package/dist/date/placeholders.js +1 -1
- package/dist/date/types.d.ts +12 -11
- package/dist/date/use-date-field.d.ts +6 -8
- package/dist/date/use-date-field.js +1 -1
- package/dist/date/utils.d.ts +3 -7
- package/dist/date/utils.js +1 -1
- package/dist/index.d.ts +423 -414
- package/dist/index.js +1 -1
- package/dist/locale/hooks.d.ts +14 -0
- package/dist/locale/hooks.js +1 -0
- package/dist/locale/index.d.ts +5 -0
- package/dist/locale/index.js +1 -0
- package/dist/locale/langs/en.d.ts +6 -0
- package/dist/locale/langs/en.js +1 -0
- package/dist/locale/langs/zh-CN.d.ts +6 -0
- package/dist/locale/langs/zh-CN.js +1 -0
- package/dist/locale/locales.d.ts +23 -0
- package/dist/locale/locales.js +1 -0
- package/dist/locale/types.d.ts +234 -0
- package/dist/namespaced/index.d.ts +983 -966
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/color.d.ts +3 -13
- package/dist/shared/color.js +1 -1
- package/dist/shared/index.d.ts +4 -4
- package/dist/shared/index.js +1 -1
- package/dist/shared/object.d.ts +2 -1
- package/dist/shared/object.js +1 -1
- package/dist/shared/string.d.ts +6 -1
- package/dist/shared/string.js +1 -1
- package/dist/shared/time-picker.d.ts +1 -2
- package/dist/shared/vue.js +1 -1
- package/dist/types/color.d.ts +16 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/vue.d.ts +4 -2
- package/package.json +13 -3
- package/dist/components/_icon/icon.vue.d.ts +0 -8
- package/dist/components/_icon/index.d.ts +0 -3
- package/dist/components/_icon/index.js +0 -1
- package/dist/components/calendar/use-calendar.d.ts +0 -45
- package/dist/components/color-swatch/color-swatch.js +0 -1
- package/dist/components/color-swatch/color-swatch.vue.d.ts +0 -26
- package/dist/components/date-picker/date-picker-content.js +0 -1
- package/dist/components/date-picker/date-picker-root.js +0 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +0 -38
- package/dist/components/date-range-picker/date-range-picker-popup.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-range-picker/date-range-picker-root.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +0 -50
- package/dist/components/date-range-picker/date-range-picker-trigger.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/context.d.ts +0 -9
- package/dist/components/month-picker/context.js +0 -1
- package/dist/components/month-picker/index.d.ts +0 -6
- package/dist/components/month-picker/index.js +0 -1
- package/dist/components/month-picker/month-picker-popup.js +0 -1
- package/dist/components/month-picker/month-picker-popup.vue.d.ts +0 -36
- package/dist/components/month-picker/month-picker-root.js +0 -1
- package/dist/components/month-picker/month-picker-root.vue.d.ts +0 -39
- package/dist/components/month-picker/month-picker-trigger.js +0 -1
- package/dist/components/month-picker/month-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/types.d.ts +0 -202
- package/dist/components/month-range-picker/context.d.ts +0 -9
- package/dist/components/month-range-picker/context.js +0 -1
- package/dist/components/month-range-picker/index.d.ts +0 -6
- package/dist/components/month-range-picker/index.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/month-range-picker/month-range-picker-root.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +0 -43
- package/dist/components/month-range-picker/month-range-picker-trigger.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-range-picker/types.d.ts +0 -234
- package/dist/components/progress/progress-circle.js +0 -1
- package/dist/components/range-calendar/context.d.ts +0 -9
- package/dist/components/range-calendar/context.js +0 -1
- package/dist/components/range-calendar/index.d.ts +0 -16
- package/dist/components/range-calendar/index.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +0 -33
- package/dist/components/range-calendar/range-calendar-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-compact.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-body.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-head.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-row.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid.js +0 -1
- package/dist/components/range-calendar/range-calendar-head-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.vue.d.ts +0 -21
- package/dist/components/range-calendar/range-calendar-heading.js +0 -1
- package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +0 -22
- package/dist/components/range-calendar/range-calendar-next.js +0 -1
- package/dist/components/range-calendar/range-calendar-next.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-prev.js +0 -1
- package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-root.js +0 -1
- package/dist/components/range-calendar/types.d.ts +0 -488
- package/dist/components/tags-input/tags-input-input.js +0 -1
- package/dist/components/tags-input/tags-input-input.vue.d.ts +0 -21
- package/dist/components/time-picker/context.d.ts +0 -9
- package/dist/components/time-picker/context.js +0 -1
- package/dist/components/time-picker/index.d.ts +0 -6
- package/dist/components/time-picker/index.js +0 -1
- package/dist/components/time-picker/time-picker-popup.js +0 -1
- package/dist/components/time-picker/time-picker-popup.vue.d.ts +0 -27
- package/dist/components/time-picker/time-picker-root.js +0 -1
- package/dist/components/time-picker/time-picker-root.vue.d.ts +0 -45
- package/dist/components/time-picker/time-picker-trigger.js +0 -1
- package/dist/components/time-picker/time-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-picker/types.d.ts +0 -224
- package/dist/components/time-range-picker/context.d.ts +0 -9
- package/dist/components/time-range-picker/context.js +0 -1
- package/dist/components/time-range-picker/index.d.ts +0 -7
- package/dist/components/time-range-picker/index.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +0 -31
- package/dist/components/time-range-picker/time-range-picker-popup.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +0 -30
- package/dist/components/time-range-picker/time-range-picker-root.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +0 -50
- package/dist/components/time-range-picker/time-range-picker-trigger.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-range-picker/types.d.ts +0 -304
- package/dist/components/year-picker/context.d.ts +0 -9
- package/dist/components/year-picker/context.js +0 -1
- package/dist/components/year-picker/index.d.ts +0 -6
- package/dist/components/year-picker/index.js +0 -1
- package/dist/components/year-picker/types.d.ts +0 -207
- package/dist/components/year-picker/year-picker-popup.js +0 -1
- package/dist/components/year-picker/year-picker-popup.vue.d.ts +0 -36
- package/dist/components/year-picker/year-picker-root.js +0 -1
- package/dist/components/year-picker/year-picker-root.vue.d.ts +0 -39
- package/dist/components/year-picker/year-picker-trigger.js +0 -1
- package/dist/components/year-picker/year-picker-trigger.vue.d.ts +0 -21
- package/dist/components/year-range-picker/context.d.ts +0 -9
- package/dist/components/year-range-picker/context.js +0 -1
- package/dist/components/year-range-picker/index.d.ts +0 -6
- package/dist/components/year-range-picker/index.js +0 -1
- package/dist/components/year-range-picker/types.d.ts +0 -239
- package/dist/components/year-range-picker/year-range-picker-popup.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/year-range-picker/year-range-picker-root.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +0 -43
- package/dist/components/year-range-picker/year-range-picker-trigger.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import{useCheckboxCardUi as n}from"./context.js";import r from"./checkbox-root.js";import i from"./checkbox-control.js";import a from"./checkbox-indicator.js";import o from"./checkbox-label.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createTextVNode as f,createVNode as p,defineComponent as m,guardReactiveProps as h,mergeProps as g,normalizeClass as _,normalizeProps as v,openBlock as y,renderSlot as b,toDisplayString as x,unref as S,useId as C,useSlots as w,withCtx as T}from"vue";const E=m({name:`CheckboxCardCompact`,__name:`checkbox-card-compact`,props:{icon:{},description:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(m,{emit:E}){let D=m,O=E,k=w(),A=e(D,[`label`,`icon`,`description`,`controlProps`,`indicatorProps`,`labelProps`]),j=n(),M=C(),N=s(()=>D.id||`checkbox-${M}`),P=s(()=>D.modelValue===`indeterminate`);return(e,n)=>(y(),c(r,g(S(A),{"onUpdate:modelValue":n[0]||(n[0]=e=>O(`update:modelValue`,e))}),{default:T(()=>[d(`div`,{class:_(S(j).content)},[p(t,{icon:m.icon,class:_(S(j).icon)},null,8,[`icon`,`class`]),d(`div`,{class:_(S(j).textContent)},[p(o,g(m.labelProps,{for:N.value}),{default:T(()=>[b(e.$slots,`default`,{id:N.value},()=>[f(x(m.label),1)])]),_:3},16,[`for`]),S(k).description||m.description?(y(),u(`p`,{key:0,class:_(S(j).description)},[b(e.$slots,`description`,{},()=>[f(x(m.description),1)])],2)):l(`v-if`,!0)],2)],2),p(i,g(m.controlProps,{id:N.value
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import{useCheckboxCardUi as n}from"./context.js";import r from"./checkbox-root.js";import i from"./checkbox-control.js";import a from"./checkbox-indicator.js";import o from"./checkbox-label.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createTextVNode as f,createVNode as p,defineComponent as m,guardReactiveProps as h,mergeProps as g,normalizeClass as _,normalizeProps as v,openBlock as y,renderSlot as b,toDisplayString as x,unref as S,useId as C,useSlots as w,withCtx as T}from"vue";const E=m({name:`CheckboxCardCompact`,__name:`checkbox-card-compact`,props:{icon:{},description:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(m,{emit:E}){let D=m,O=E,k=w(),A=e(D,[`label`,`icon`,`description`,`controlProps`,`indicatorProps`,`labelProps`]),j=n(),M=C(),N=s(()=>D.id||`checkbox-${M}`),P=s(()=>D.modelValue===`indeterminate`);return(e,n)=>(y(),c(r,g(S(A),{"onUpdate:modelValue":n[0]||(n[0]=e=>O(`update:modelValue`,e))}),{default:T(()=>[d(`div`,{class:_(S(j).content)},[p(t,{icon:m.icon,class:_(S(j).icon)},null,8,[`icon`,`class`]),d(`div`,{class:_(S(j).textContent)},[p(o,g(m.labelProps,{for:N.value}),{default:T(()=>[b(e.$slots,`default`,{id:N.value},()=>[f(x(m.label),1)])]),_:3},16,[`for`]),S(k).description||m.description?(y(),u(`p`,{key:0,class:_(S(j).description)},[b(e.$slots,`description`,{},()=>[f(x(m.description),1)])],2)):l(`v-if`,!0)],2)],2),p(i,g(m.controlProps,{id:N.value}),{default:T(()=>[p(a,v(h(m.indicatorProps)),{default:T(n=>[b(e.$slots,`indicator`,v(h(n)),()=>[p(t,{icon:P.value?`lucide:minus`:`lucide:check`,class:_(S(j)[`indicator-icon`])},null,8,[`icon`,`class`])])]),_:3},16)]),_:3},16,[`id`])]),_:3},16))}});export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./checkbox-card-compact.js";import n from"./checkbox-group-root.js";import{Fragment as r,createBlock as i,createElementBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,unref as u,withCtx as d}from"vue";const f=o({name:`CheckboxCardGroupCompact`,__name:`checkbox-card-group-compact`,props:{items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(o,{emit:f}){let p=o,m=f,h=e(p,[`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]);return(e,f)=>(c(),i(n,s(u(h),{"onUpdate:modelValue":f[0]||(f[0]=e=>m(`update:modelValue`,e))}),{default:d(()=>[(c(!0),a(r,null,l(o.items,e=>(c(),i(t,{key:e.value,label:e.label,icon:e.icon,description:e.description,value:e.value,disabled:o.disabled||e.disabled,"control-props":o.controlProps,"indicator-props":o.indicatorProps,"label-props":o.labelProps},null,8,[`label`,`icon`,`description`,`value`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16))}});export{f as default};
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./checkbox-card-compact.js";import n from"./checkbox-group-root.js";import{Fragment as r,createBlock as i,createElementBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,unref as u,withCtx as d}from"vue";const f=o({name:`CheckboxCardGroupCompact`,__name:`checkbox-card-group-compact`,props:{items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(o,{emit:f}){let p=o,m=f,h=e(p,[`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]);return(e,f)=>(c(),i(n,s(u(h),{"onUpdate:modelValue":f[0]||(f[0]=e=>m(`update:modelValue`,e))}),{default:d(()=>[(c(!0),a(r,null,l(o.items,e=>(c(),i(t,{key:e.value,label:e.label,icon:e.icon,description:e.description,value:e.value,disabled:o.disabled||e.disabled,"control-props":o.controlProps,"indicator-props":o.indicatorProps,"label-props":o.labelProps},null,8,[`label`,`icon`,`description`,`value`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16))}});export{f as default};
|
|
@@ -4,11 +4,11 @@ import * as _$vue from "vue";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/checkbox/checkbox-compact.vue.d.ts
|
|
6
6
|
declare var __VLS_22: {
|
|
7
|
-
modelValue: CheckedState | null
|
|
7
|
+
modelValue: CheckedState | null;
|
|
8
8
|
state: CheckedState;
|
|
9
9
|
}, __VLS_35: {
|
|
10
10
|
id: string;
|
|
11
|
-
modelValue: CheckedState | null
|
|
11
|
+
modelValue: CheckedState | null;
|
|
12
12
|
state: CheckedState;
|
|
13
13
|
};
|
|
14
14
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isValueEqualOrExist as t}from"../../shared/comparison.js";import{isIndeterminate as n}from"../../shared/value.js";import{getAriaLabel as r}from"../../shared/dom.js";import"../../shared/index.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useCheckboxGroupRootContext as
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isValueEqualOrExist as t}from"../../shared/comparison.js";import{isIndeterminate as n}from"../../shared/value.js";import{getAriaLabel as r}from"../../shared/dom.js";import"../../shared/index.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import"../../composables/index.js";import a from"../button/button.js";import{useCheckboxGroupRootContext as o,useCheckboxRootContext as s,useCheckboxUi as c}from"./context.js";import l from"../roving-focus/roving-focus-item.js";import"../roving-focus/index.js";import{computed as u,createBlock as d,defineComponent as f,mergeProps as p,openBlock as m,renderSlot as h,resolveDynamicComponent as g,unref as _,useAttrs as v,watchEffect as y,withCtx as b,withKeys as x,withModifiers as S}from"vue";const C=f({name:`CheckboxControl`,__name:`checkbox-control`,props:{id:{},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(f){let C=f,w=v(),T=c(`control`),E=o(),{modelValue:D,value:O,disabled:k,state:A,ariaChecked:j,dataState:M,required:N,initControlId:P}=s(`CheckboxControl`),[F,I]=i(),L=u(()=>E?.rovingFocus?.value),R=u(()=>r(F.value,C.id,w[`aria-label`])),z=u(()=>L.value?!k.value:void 0),B=()=>{if(E){let n=[...E.modelValue.value||[]];if(t(n,O.value)){let e=n.findIndex(e=>e===O.value);n.splice(e,1)}else e(O.value)||n.push(O.value);E.modelValue.value=n}else D.value=n(D.value)?!0:!D.value};return y(()=>{C.id&&P(C.id)}),(e,t)=>(m(),d(g(L.value?_(l):a),p({ref:_(I)},C,{as:L.value?a:C.as,"data-soybean-checkbox-control":``,class:_(T),focusable:z.value,role:`checkbox`,disabled:_(k),"aria-checked":_(j),"aria-label":R.value,"aria-required":_(N),"data-state":_(M),onClick:B,onKeydown:x(S(B,[`prevent`]),[`enter`])}),{default:b(()=>[h(e.$slots,`default`,{modelValue:_(D),state:_(A)})]),_:3},16,[`as`,`class`,`focusable`,`disabled`,`aria-checked`,`aria-label`,`aria-required`,`data-state`,`onKeydown`]))}});export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./checkbox-compact.js";import n from"./checkbox-group-root.js";import{Fragment as r,createBlock as i,createElementBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,unref as u,withCtx as d}from"vue";const f=o({name:`CheckboxGroupCompact`,__name:`checkbox-group-compact`,props:{items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(o,{emit:f}){let p=o,m=f,h=e(p,[`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]);return(e,f)=>(c(),i(n,s(u(h),{"onUpdate:modelValue":f[0]||(f[0]=e=>m(`update:modelValue`,e))}),{default:d(()=>[(c(!0),a(r,null,l(o.items,e=>(c(),i(t,s({ref_for:!0},o.rootProps,{key:e.value,value:e.value,label:e.label,disabled:o.disabled||e.disabled,"control-props":o.controlProps,"indicator-props":o.indicatorProps,"label-props":o.labelProps}),null,16,[`value`,`label`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16))}});export{f as default};
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./checkbox-compact.js";import n from"./checkbox-group-root.js";import{Fragment as r,createBlock as i,createElementBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,unref as u,withCtx as d}from"vue";const f=o({name:`CheckboxGroupCompact`,__name:`checkbox-group-compact`,props:{items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(o,{emit:f}){let p=o,m=f,h=e(p,[`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]);return(e,f)=>(c(),i(n,s(u(h),{"onUpdate:modelValue":f[0]||(f[0]=e=>m(`update:modelValue`,e))}),{default:d(()=>[(c(!0),a(r,null,l(o.items,e=>(c(),i(t,s({ref_for:!0},o.rootProps,{key:e.value,value:e.value,label:e.label,disabled:o.disabled||e.disabled,"control-props":o.controlProps,"indicator-props":o.indicatorProps,"label-props":o.labelProps}),null,16,[`value`,`label`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isFormControl as e,transformPropsToContext as t}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as n}from"../../composables/use-controllable-state.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import"../../composables/index.js";import i from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCheckboxGroupRootContext as a,useCheckboxUi as o}from"./context.js";import s from"../roving-focus/roving-focus-group.js";import"../roving-focus/index.js";import{computed as c,createBlock as l,createCommentVNode as u,defineComponent as d,mergeProps as f,openBlock as p,renderSlot as m,resolveDynamicComponent as h,unref as g,withCtx as _}from"vue";const v=d({name:`CheckboxGroupRoot`,__name:`checkbox-group-root`,props:{modelValue:{default:void 0},defaultValue:{},rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:v}){let y=d,b=v,x=o(`groupRoot`),S=c(()=>{let{rovingFocus:e,loop:t,dir:n,orientation:r}=y;return e?{loop:t,dir:n,orientation:r}:{}}),C=n(()=>y.modelValue,e=>{b(`update:modelValue`,e
|
|
1
|
+
import{isFormControl as e,transformPropsToContext as t}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as n}from"../../composables/use-controllable-state.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import"../../composables/index.js";import i from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCheckboxGroupRootContext as a,useCheckboxUi as o}from"./context.js";import s from"../roving-focus/roving-focus-group.js";import"../roving-focus/index.js";import{computed as c,createBlock as l,createCommentVNode as u,defineComponent as d,mergeProps as f,openBlock as p,renderSlot as m,resolveDynamicComponent as h,unref as g,withCtx as _}from"vue";const v=d({name:`CheckboxGroupRoot`,__name:`checkbox-group-root`,props:{modelValue:{default:void 0},defaultValue:{},rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:v}){let y=d,b=v,x=o(`groupRoot`),S=c(()=>{let{rovingFocus:e,loop:t,dir:n,orientation:r}=y;return e?{loop:t,dir:n,orientation:r}:{}}),C=n(()=>y.modelValue,e=>{b(`update:modelValue`,e)},y.defaultValue??[]);a({...t(y,[`modelValue`,`defaultValue`,`rovingFocus`,`disabled`]),modelValue:C});let[w,T]=r(),E=c(()=>e(w.value));return(e,t)=>(p(),l(h(d.rovingFocus?g(s):`div`),f(S.value,{ref:g(T),"data-soybean-checkbox-group-root":``,class:g(x),as:`div`}),{default:_(()=>[m(e.$slots,`default`),E.value&&d.name?(p(),l(g(i),{key:0,name:d.name,value:g(C),required:d.required},null,8,[`name`,`value`,`required`])):u(`v-if`,!0)]),_:3},16,[`class`]))}});export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isIndeterminate as e}from"../../shared/value.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useCheckboxRootContext as i,useCheckboxUi as a}from"./context.js";import{createBlock as o,createCommentVNode as s,defineComponent as c,normalizeClass as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,withCtx as m}from"vue";const h=c({name:`CheckboxIndicator`,__name:`checkbox-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}
|
|
1
|
+
import{isIndeterminate as e}from"../../shared/value.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useCheckboxRootContext as i,useCheckboxUi as a}from"./context.js";import{createBlock as o,createCommentVNode as s,defineComponent as c,normalizeClass as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,withCtx as m}from"vue";const h=c({name:`CheckboxIndicator`,__name:`checkbox-indicator`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:`span`}},setup(c){let h=c,g=a(`indicator`),[_,v]=t(),{state:y,dataDisabled:b,dataState:x}=i(`CheckboxIndicator`),S=h.forceMount?f(!0):n(_,()=>e(y.value)||y.value===!0);return(e,t)=>p(S)?(u(),o(p(r),{key:0,ref:p(v),as:c.as,"as-child":c.asChild,"data-soybean-checkbox-indicator":``,class:l(p(g)),"data-disabled":p(b),"data-state":p(x),style:{"pointer-events":`none`}},{default:m(()=>[d(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-state`])):s(`v-if`,!0)}});export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCheckboxRootContext as e,useCheckboxUi as t}from"./context.js";import n from"../label/label.js";import"../label/index.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`CheckboxLabel`,__name:`checkbox-label`,props:{for:{}},setup(a){let d=a,f=t(`label`),{controlId:p}=e(`CheckboxLabel`),m=r(()=>d.for||p.value);return(e,t)=>(s(),i(l(n),{for:m.value,class:o(l(f))},{default:u(()=>[c(e.$slots,`default`)]),_:3},8,[`for`,`class`]))}});export{d as default};
|
|
1
|
+
import{useCheckboxRootContext as e,useCheckboxUi as t}from"./context.js";import n from"../label/label.js";import"../label/index.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`CheckboxLabel`,__name:`checkbox-label`,props:{for:{}},setup(a){let d=a,f=t(`label`),{controlId:p}=e(`CheckboxLabel`),m=r(()=>d.for||p.value);return(e,t)=>(s(),i(l(n),{"data-soybean-checkbox-label":``,for:m.value,class:o(l(f))},{default:u(()=>[c(e.$slots,`default`)]),_:3},8,[`for`,`class`]))}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isValueEqualOrExist as t}from"../../shared/comparison.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import a from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCheckboxRootContext as o,useCheckboxGroupRootContext as s,useCheckboxUi as c}from"./context.js";import{computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,defineComponent as p,normalizeClass as m,openBlock as h,renderSlot as g,unref as _,useTemplateRef as v}from"vue";const y=[`data-state`],b=p({name:`CheckboxRoot`,__name:`checkbox-root`,props:{id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{default:`on`},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(p,{emit:b}){let x=p,S=b,C=c(`root`),w=v(`rootElement`),T=s(),E=i(()=>x.modelValue,e=>{
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isValueEqualOrExist as t}from"../../shared/comparison.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import a from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideCheckboxRootContext as o,useCheckboxGroupRootContext as s,useCheckboxUi as c}from"./context.js";import{computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,defineComponent as p,normalizeClass as m,openBlock as h,renderSlot as g,unref as _,useTemplateRef as v}from"vue";const y=[`data-state`],b=p({name:`CheckboxRoot`,__name:`checkbox-root`,props:{id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{default:`on`},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(p,{emit:b}){let x=p,S=b,C=c(`root`),w=v(`rootElement`),T=s(),E=i(()=>x.modelValue,e=>{S(`update:modelValue`,e)},x.defaultValue??null),D=l(()=>n(w.value)),O=l(()=>T?.disabled?.value||x.disabled),k=l(()=>e(T?.modelValue?.value)?e(E.value)?!1:E.value===`indeterminate`?`indeterminate`:E.value:t(T?.modelValue.value,x.value)),{dataState:A}=o({...r(x,[`value`,`name`,`required`]),modelValue:E,disabled:O,state:k});return(e,t)=>(h(),f(`div`,{ref_key:`rootElement`,ref:w,"data-soybean-checkbox-root":``,class:m(_(C)),"data-state":_(A)},[g(e.$slots,`default`,{modelValue:_(E),state:k.value}),D.value&&p.name&&!_(T)?(h(),u(_(a),{key:0,type:`checkbox`,checked:!!k.value,name:p.name,value:p.value,disabled:O.value,required:p.required},null,8,[`checked`,`name`,`value`,`disabled`,`required`])):d(`v-if`,!0)],10,y))}});export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e,isIndeterminate as t}from"../../shared/value.js";import
|
|
1
|
+
import{getCheckedState as e,isIndeterminate as t}from"../../shared/value.js";import{useContext as n}from"../../composables/use-context.js";import"../../shared/index.js";import{useUiContext as r}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as i,shallowRef as a}from"vue";const[o,s]=n(`CheckboxGroupRoot`,e=>e),[c,l]=n(`CheckboxRoot`,n=>{let{modelValue:r,state:o}=n,s=i(()=>t(o.value)?`mixed`:o.value),c=i(()=>n.disabled.value?``:void 0),l=i(()=>e(o.value)),u=a(``),d=e=>{u.value=e};return{...n,modelValue:r,state:o,ariaChecked:s,dataDisabled:c,dataState:l,controlId:u,initControlId:d}}),[u,d]=r(`CheckboxUi`),[f,p]=r(`CheckboxCardUi`,e=>(u(e),e));export{f as provideCheckboxCardUi,o as provideCheckboxGroupRootContext,c as provideCheckboxRootContext,u as provideCheckboxUi,p as useCheckboxCardUi,s as useCheckboxGroupRootContext,l as useCheckboxRootContext,d as useCheckboxUi};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { IconValue } from "../_icon/types.js";
|
|
2
1
|
import { CheckedState, DefinedValue, UiClass } from "../../types/common.js";
|
|
3
2
|
import { ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
|
|
4
|
-
import {
|
|
3
|
+
import { BaseProps } from "../../types/vue.js";
|
|
4
|
+
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
5
|
+
import { ButtonProps } from "../button/types.js";
|
|
6
|
+
import { IconValue } from "../_icon/types.js";
|
|
5
7
|
import { LabelProps } from "../label/types.js";
|
|
6
8
|
import { RovingFocusGroupProps } from "../roving-focus/types.js";
|
|
7
|
-
import {
|
|
9
|
+
import { ComputedRef, ShallowRef } from "vue";
|
|
8
10
|
|
|
9
11
|
//#region src/components/checkbox/types.d.ts
|
|
10
12
|
/**
|
|
11
13
|
* Properties for the CheckboxRoot component.
|
|
12
14
|
*/
|
|
13
|
-
interface CheckboxRootProps extends FormFieldCommonProps,
|
|
15
|
+
interface CheckboxRootProps extends FormFieldCommonProps, BaseProps {
|
|
14
16
|
/**
|
|
15
17
|
* Id.
|
|
16
18
|
*/
|
|
@@ -41,14 +43,14 @@ type CheckboxRootEmits = {
|
|
|
41
43
|
/**
|
|
42
44
|
* Properties for the CheckboxControl component.
|
|
43
45
|
*/
|
|
44
|
-
interface CheckboxControlProps extends
|
|
46
|
+
interface CheckboxControlProps extends ButtonProps {
|
|
45
47
|
/** Id of the element */
|
|
46
48
|
id?: string;
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
49
51
|
* Properties for the CheckboxIndicator component.
|
|
50
52
|
*/
|
|
51
|
-
interface CheckboxIndicatorProps extends
|
|
53
|
+
interface CheckboxIndicatorProps extends ForceMountProps, PrimitiveWithBaseProps {}
|
|
52
54
|
/**
|
|
53
55
|
* Option data for the CheckboxGroup component.
|
|
54
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import"../button/index.js";import{computed as r,createBlock as i,createElementVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,unref as h,withCtx as g}from"vue";import{useClipboard as _}from"@vueuse/core";const v={"aria-hidden":`true`},y=c({name:`Clipboard`,__name:`clipboard`,props:{value:{},copiedDuration:{default:2e3},legacy:{type:Boolean,default:!0},copyIcon:{default:`lucide:copy`},copiedIcon:{default:`lucide:check`},copyText:{default:`Copy`},copiedText:{default:`Copied`},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`,`copied`,`copyError`],setup(c,{emit:y}){let b=c,x=y,{copied:S,copy:C,isSupported:w}=_({copiedDuring:b.copiedDuration,legacy:b.legacy}),T=r(()=>b.disabled||!w.value),E=r(()=>w.value?S.value?`copied`:`ready`:`unsupported`),D=e(b,[`value`,`copiedDuration`,`legacy`,`disabled`,`copyIcon`,`copiedIcon`,`copyText`,`copiedText`]),O=r(()=>S.value?b.copiedIcon:b.copyIcon),k=r(()=>S.value?b.copiedText:b.copyText),A=async()=>{if(!T.value)try{await C(b.value),x(`copied`,b.value)}catch(e){x(`copyError`,e)}},j=r(()=>({copied:S.value,disabled:T.value,icon:O.value,supported:w.value,state:E.value,text:k.value,copy:A})),M=async e=>{x(`click`,e),await A()};return(e,r)=>(f(),i(h(n),u(h(D),{disabled:T.value,"data-state":E.value,onClick:M}),{default:g(()=>[p(e.$slots,`leading`,d(l(j.value)),()=>[a(`span`,v,[s(t,{icon:O.value},null,8,[`icon`])])]),p(e.$slots,`default`,d(l(j.value)),()=>[o(m(k.value),1)]),p(e.$slots,`trailing`,d(l(j.value)))]),_:3},16,[`disabled`,`data-state`]))}});export{y as default};
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import"../button/index.js";import{computed as r,createBlock as i,createElementVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,unref as h,withCtx as g}from"vue";import{useClipboard as _}from"@vueuse/core";const v={"aria-hidden":`true`},y=c({name:`Clipboard`,__name:`clipboard`,props:{value:{},copiedDuration:{default:2e3},legacy:{type:Boolean,default:!0},copyIcon:{default:`lucide:copy`},copiedIcon:{default:`lucide:check`},copyText:{default:`Copy`},copiedText:{default:`Copied`},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`,`copied`,`copyError`],setup(c,{emit:y}){let b=c,x=y,{copied:S,copy:C,isSupported:w}=_({copiedDuring:b.copiedDuration,legacy:b.legacy}),T=r(()=>b.disabled||!w.value),E=r(()=>w.value?S.value?`copied`:`ready`:`unsupported`),D=e(b,[`value`,`copiedDuration`,`legacy`,`disabled`,`copyIcon`,`copiedIcon`,`copyText`,`copiedText`]),O=r(()=>S.value?b.copiedIcon:b.copyIcon),k=r(()=>S.value?b.copiedText:b.copyText),A=async()=>{if(!T.value)try{await C(b.value),x(`copied`,b.value)}catch(e){x(`copyError`,e)}},j=r(()=>({copied:S.value,disabled:T.value,icon:O.value,supported:w.value,state:E.value,text:k.value,copy:A})),M=async e=>{x(`click`,e),await A()};return(e,r)=>(f(),i(h(n),u(h(D),{"data-soybean-clipboard":``,disabled:T.value,"data-state":E.value,onClick:M}),{default:g(()=>[p(e.$slots,`leading`,d(l(j.value)),()=>[a(`span`,v,[s(t,{icon:O.value},null,8,[`icon`])])]),p(e.$slots,`default`,d(l(j.value)),()=>[o(m(k.value),1)]),p(e.$slots,`trailing`,d(l(j.value)))]),_:3},16,[`disabled`,`data-state`]))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{usePresence as t}from"../../composables/use-presence.js";import"../../composables/index.js";import{useCollapsibleRootContext as n,useCollapsibleUi as r}from"./context.js";import{Primitive as i}from"../primitive/primitive.js";import"../primitive/index.js";import{collapsibleContentCssVars as a}from"./shared.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,nextTick as u,normalizeClass as d,onMounted as f,openBlock as p,renderSlot as m,shallowRef as h,unref as g,watch as _,withCtx as v}from"vue";const y=l({name:`CollapsibleContent`,__name:`collapsible-content`,props:{
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{usePresence as t}from"../../composables/use-presence.js";import"../../composables/index.js";import{useCollapsibleRootContext as n,useCollapsibleUi as r}from"./context.js";import{Primitive as i}from"../primitive/primitive.js";import"../primitive/index.js";import{collapsibleContentCssVars as a}from"./shared.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,nextTick as u,normalizeClass as d,onMounted as f,openBlock as p,renderSlot as m,shallowRef as h,unref as g,watch as _,withCtx as v}from"vue";const y=l({name:`CollapsibleContent`,__name:`collapsible-content`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(l){let y=l,[b,x]=e(),{contentId:S,initContentId:C,open:w,dataDisabled:T,dataState:E,unmountOnHide:D}=n(`CollapsibleContent`),O=r(`content`),k=y.forceMount?h(!0):t(b,w,F),A={[a.width]:`0px`,[a.height]:`0px`},j=o(()=>k.value||w.value),M=w.value,N,P=o(()=>{if(!j.value)return D.value?``:`until-found`});function F(){let e=b.value;if(!e)return;let t=e.style;N||(N={transitionDuration:t.transitionDuration,animationName:t.animationName}),t.transitionDuration=`0s`,t.animationName=`none`;let n=e.getBoundingClientRect();t.setProperty(a.width,`${n.width}px`),t.setProperty(a.height,`${n.height}px`),M||(t.transitionDuration=N.transitionDuration,t.animationName=N.animationName)}return _(j,async()=>{await u(),F()},{immediate:!0,flush:`post`}),C(),f(()=>{requestAnimationFrame(()=>{M=!1})}),(e,t)=>(p(),s(g(i),{id:g(S),ref:g(x),as:l.as,"as-child":l.asChild,"data-soybean-collapsible-content":``,class:d(g(O)),"data-disabled":g(T),"data-state":g(E),hidden:P.value,style:A},{default:v(()=>[!g(D)||j.value?m(e.$slots,`default`,{key:0}):c(`v-if`,!0)]),_:3},8,[`id`,`as`,`as-child`,`class`,`data-disabled`,`data-state`,`hidden`]))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useOmitProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import{provideCollapsibleRootContext as r,useCollapsibleUi as i}from"./context.js";import{Primitive as a}from"../primitive/primitive.js";import"../primitive/index.js";import{createBlock 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:`CollapsibleRoot`,__name:`collapsible-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(s,{expose:p,emit:m}){let h=s,g=m,_=n(h,[`open`,`defaultOpen`,`disabled`,`unmountOnHide`]),v=i(`root`),y=t(()=>h.open,e=>{
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useOmitProps as n}from"../../composables/use-props.js";import"../../composables/index.js";import{provideCollapsibleRootContext as r,useCollapsibleUi as i}from"./context.js";import{Primitive as a}from"../primitive/primitive.js";import"../primitive/index.js";import{createBlock 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:`CollapsibleRoot`,__name:`collapsible-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(s,{expose:p,emit:m}){let h=s,g=m,_=n(h,[`open`,`defaultOpen`,`disabled`,`unmountOnHide`]),v=i(`root`),y=t(()=>h.open,e=>{g(`update:open`,e)},h.defaultOpen),{dataDisabled:b,dataState:x}=r({open:y,...e(h,[`disabled`,`unmountOnHide`])});return p({open:y}),(e,t)=>(l(),o(d(a),c(d(_),{"data-soybean-collapsible-root":``,class:d(v),"data-disabled":d(b),"data-state":d(x)}),{default:f(()=>[u(e.$slots,`default`,{open:d(y)})]),_:3},16,[`class`,`data-disabled`,`data-state`]))}});export{p as default};
|
|
@@ -3,13 +3,13 @@ import * as _$vue from "vue";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/collapsible/collapsible-root.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {
|
|
6
|
-
open: boolean
|
|
6
|
+
open: boolean;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: _$vue.DefineComponent<CollapsibleRootProps, {
|
|
12
|
-
open: _$vue.ShallowRef<boolean
|
|
12
|
+
open: _$vue.ShallowRef<boolean>;
|
|
13
13
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
14
14
|
"update:open": (value: boolean) => any;
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<CollapsibleRootProps> & Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCollapsibleRootContext as e,useCollapsibleUi as t}from"./context.js";import
|
|
1
|
+
import{useCollapsibleRootContext as e,useCollapsibleUi as t}from"./context.js";import n from"../button/button.js";import{createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`CollapsibleTrigger`,__name:`collapsible-trigger`,props:{disabledCollapsible:{type:Boolean},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(i){let u=i,{open:d,onOpenToggle:f,contentId:p,disabled:m,dataState:h}=e(`CollapsibleTrigger`),g=t(`trigger`),_=()=>{f()};return(e,t)=>(o(),r(n,a(u,{"data-soybean-collapsible-trigger":``,class:c(g),disabled:c(m)||i.disabledCollapsible,"aria-controls":c(p),"aria-expanded":c(d),"data-state":c(h),onClick:_}),{default:l(()=>[s(e.$slots,`default`,{open:c(d)})]),_:3},16,[`class`,`disabled`,`aria-controls`,`aria-expanded`,`data-state`]))}});export{u as default};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
1
|
import { CollapsibleTriggerProps } from "./types.js";
|
|
3
2
|
import * as _$vue from "vue";
|
|
4
3
|
|
|
@@ -9,9 +8,7 @@ declare var __VLS_10: {
|
|
|
9
8
|
type __VLS_Slots = {} & {
|
|
10
9
|
default?: (props: typeof __VLS_10) => any;
|
|
11
10
|
};
|
|
12
|
-
declare const __VLS_base: _$vue.DefineComponent<CollapsibleTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CollapsibleTriggerProps> & Readonly<{}>, {
|
|
13
|
-
as: AsTag | _$vue.Component;
|
|
14
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_base: _$vue.DefineComponent<CollapsibleTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CollapsibleTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
15
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
13
|
declare const _default: typeof __VLS_export;
|
|
17
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getDisclosureState as e}from"../../shared/value.js";import
|
|
1
|
+
import{getDisclosureState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import"../../shared/index.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r,shallowRef as i,useId as a}from"vue";const[o,s]=t(`CollapsibleRoot`,t=>{let{open:n,disabled:o,unmountOnHide:s}=t,c=()=>{o.value||(n.value=!n.value)},l=i(``);return{open:n,disabled:o,unmountOnHide:s,onOpenToggle:c,contentId:l,initContentId:()=>{l.value||(l.value=`soybean-collapsible-content-${a()}`)},dataDisabled:r(()=>o.value?``:void 0),dataState:r(()=>e(n.value))}}),[c,l]=n(`CollapsibleUi`);export{o as provideCollapsibleRootContext,c as provideCollapsibleUi,s as useCollapsibleRootContext,l as useCollapsibleUi};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { ForceMountProps } from "../../types/component.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
4
|
+
import { ButtonProps } from "../button/types.js";
|
|
5
|
+
import { Ref } from "vue";
|
|
5
6
|
|
|
6
7
|
//#region src/components/collapsible/types.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* Properties for the CollapsibleRoot component.
|
|
9
10
|
*/
|
|
10
|
-
interface CollapsibleRootProps extends
|
|
11
|
+
interface CollapsibleRootProps extends PrimitiveWithBaseProps {
|
|
11
12
|
/**
|
|
12
13
|
* The open state of the collapsible when it is initially rendered.
|
|
13
14
|
*
|
|
@@ -30,11 +31,11 @@ type CollapsibleRootEmits = {
|
|
|
30
31
|
/**
|
|
31
32
|
* Properties for the CollapsibleContent component.
|
|
32
33
|
*/
|
|
33
|
-
interface CollapsibleContentProps extends
|
|
34
|
+
interface CollapsibleContentProps extends ForceMountProps, PrimitiveWithBaseProps {}
|
|
34
35
|
/**
|
|
35
36
|
* Properties for the CollapsibleTrigger component.
|
|
36
37
|
*/
|
|
37
|
-
interface CollapsibleTriggerProps extends
|
|
38
|
+
interface CollapsibleTriggerProps extends ButtonProps {
|
|
38
39
|
/** When `true`, prevents the user from toggling the collapsible. */
|
|
39
40
|
disabledCollapsible?: boolean;
|
|
40
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useColorAreaRootContext as n,useColorAreaUi as r}from"./context.js";import{createLinearScale as i}from"./shared.js";import{createBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,shallowRef as d,unref as f,withCtx as p}from"vue";const m=o({name:`ColorAreaArea`,__name:`color-area-area`,props:{asChild:{type:Boolean},as:{
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useColorAreaRootContext as n,useColorAreaUi as r}from"./context.js";import{createLinearScale as i}from"./shared.js";import{createBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,shallowRef as d,unref as f,withCtx as p}from"vue";const m=o({name:`ColorAreaArea`,__name:`color-area-area`,props:{asChild:{type:Boolean},as:{}},setup(o){let[m,h]=e(),g=r(`area`),{xRange:_,yRange:v,xValue:y,yValue:b,areaStyle:x,thumbElement:S,updateValues:C,commitValues:w,disabled:T}=n(`ColorAreaArea`),E=d(!1),D=d({x:0,y:0});function O(e){let t=m.value?.getBoundingClientRect();if(!t)return null;let n=i([0,t.width],[_.value.min,_.value.max]),r=i([0,t.height],[v.value.max,v.value.min]);return{x:n(e.clientX-t.left-D.value.x),y:r(e.clientY-t.top-D.value.y)}}function k(e){let t=S.value?.getBoundingClientRect(),n=e.target;return!t||!(n instanceof Node)||!S.value?.contains(n)?(D.value={x:0,y:0},!1):(D.value={x:e.clientX-(t.left+t.width/2),y:e.clientY-(t.top+t.height/2)},!0)}function A(e){if(T.value)return;if(e.currentTarget.setPointerCapture(e.pointerId),e.preventDefault(),E.value=!0,k(e)){S.value?.focus();return}let t=O(e);t&&(C(t.x,t.y),S.value?.focus())}function j(e){if(!E.value||T.value||!e.currentTarget.hasPointerCapture(e.pointerId))return;let t=O(e);t&&C(t.x,t.y)}function M(e){if(!E.value)return;let t=e.currentTarget;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),E.value=!1,D.value={x:0,y:0},w()}function N(e){if(T.value)return;let t=e.shiftKey?10:1,n=_.value.step*t,r=v.value.step*t,i=0,a=0;switch(e.key){case`ArrowLeft`:i=-n;break;case`ArrowRight`:i=n;break;case`ArrowUp`:a=r;break;case`ArrowDown`:a=-r;break;case`PageUp`:a=r*10;break;case`PageDown`:a=-r*10;break;case`Home`:i=-n*10;break;case`End`:i=n*10;break;default:return}e.preventDefault(),C(y.value+i,b.value+a),w()}return(e,n)=>(l(),a(f(t),{ref:f(h),as:o.as,"as-child":o.asChild,"data-soybean-color-area-area":``,class:s(f(g)),role:`application`,"aria-roledescription":`Color picker area`,"aria-disabled":f(T)?`true`:void 0,"data-disabled":f(T)?``:void 0,style:c({...f(x),touchAction:`none`}),onKeydown:N,onPointerdown:A,onPointermove:j,onPointerup:M,onPointercancel:M},{default:p(()=>[u(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-disabled`,`data-disabled`,`style`]))}});export{m as default};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AsTag } from "../primitive/types.js";
|
|
2
1
|
import { ColorAreaAreaProps } from "./types.js";
|
|
3
2
|
import * as _$vue from "vue";
|
|
4
3
|
|
|
@@ -7,9 +6,7 @@ declare var __VLS_14: {};
|
|
|
7
6
|
type __VLS_Slots = {} & {
|
|
8
7
|
default?: (props: typeof __VLS_14) => any;
|
|
9
8
|
};
|
|
10
|
-
declare const __VLS_base: _$vue.DefineComponent<ColorAreaAreaProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorAreaAreaProps> & Readonly<{}>, {
|
|
11
|
-
as: AsTag | _$vue.Component;
|
|
12
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ColorAreaAreaProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ColorAreaAreaProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
11
|
declare const _default: typeof __VLS_export;
|
|
15
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./color-area-area.js";import r from"./color-area-root.js";import i from"./color-area-thumb.js";import{createBlock as a,createVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,toHandlers as f,unref as p,withCtx as m}from"vue";const h=s({name:`ColorAreaCompact`,__name:`color-area-compact`,props:{areaProps:{},thumbProps:{},modelValue:{},defaultValue:{},colorSpace:{},format:{},xChannel:{},yChannel:{},disabled:{type:Boolean},xName:{},yName:{},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(s,{emit:h}){let g=s,_=h,v=t(g,[`areaProps`,`thumbProps`]),y=e(_);return(e,t)=>(d(),a(r,l(p(v),f(p(y))),{default:m(()=>[o(n,u(c(s.areaProps)),{default:m(()=>[o(i,u(c(s.thumbProps)),null,16)]),_:1},16)]),_:1},16))}});export{h as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NormalizedColor } from "../../types/color.js";
|
|
2
|
+
import { ColorAreaCompactProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-area/color-area-compact.vue.d.ts
|
|
6
|
+
declare const __VLS_export: _$vue.DefineComponent<ColorAreaCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
+
change: (value: string) => any;
|
|
8
|
+
"update:modelValue": (value: string) => any;
|
|
9
|
+
"update:color": (value: NormalizedColor) => any;
|
|
10
|
+
changeEnd: (value: string) => any;
|
|
11
|
+
}, string, _$vue.PublicProps, Readonly<ColorAreaCompactProps> & Readonly<{
|
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
15
|
+
onChangeEnd?: ((value: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{formatColor as e,getAreaBackgroundStyle as t,getChannelRange as n,getChannelValue as r,hasVisibleChromaticity as i,setChannelValues 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{provideColorAreaRootContext as p,useColorAreaUi 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:`ColorAreaRoot`,__name:`color-area-root`,props:{modelValue:{default:void 0},defaultValue:{default:`#ff0000`},colorSpace:{default:`hsl`},format:{default:`hex`},xChannel:{default:`saturation`},yChannel:{default:`lightness`},disabled:{type:Boolean,default:!1},xName:{},yName:{},
|
|
1
|
+
import{formatColor as e,getAreaBackgroundStyle as t,getChannelRange as n,getChannelValue as r,hasVisibleChromaticity as i,setChannelValues 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{provideColorAreaRootContext as p,useColorAreaUi 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:`ColorAreaRoot`,__name:`color-area-root`,props:{modelValue:{default:void 0},defaultValue:{default:`#ff0000`},colorSpace:{default:`hsl`},format:{default:`hex`},xChannel:{default:`saturation`},yChannel:{default:`lightness`},disabled:{type:Boolean,default:!1},xName:{},yName:{},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:color`,`change`,`changeEnd`],setup(v,{emit:E}){let D=v,O=E,[k,A]=u(),j=m(`root`),M=l(()=>D.modelValue,t=>{O(`update:modelValue`,typeof t==`string`?t:e(t,D.format))},D.defaultValue),N=h(()=>o(M.value,D.colorSpace)),P=h(()=>n(D.xChannel)),F=h(()=>n(D.yChannel)),I=S(r(N.value,D.xChannel,D.colorSpace)),L=S(r(N.value,D.yChannel,D.colorSpace)),R=S(r(N.value,`hue`,D.colorSpace)),z=h(()=>s(k.value)),B=h(()=>t(N.value,D.xChannel,D.yChannel,D.colorSpace)),V=S();function H(){I.value=r(N.value,D.xChannel,D.colorSpace),L.value=r(N.value,D.yChannel,D.colorSpace),i(N.value,D.colorSpace)&&(R.value=r(N.value,`hue`,D.colorSpace))}function U(t){let n=e(t,D.format);M.value=n,O(`update:color`,o(t,D.colorSpace)),O(`change`,n)}function W(e,t){let n=Math.min(P.value.max,Math.max(P.value.min,e)),r=Math.min(F.value.max,Math.max(F.value.min,t));I.value=n,L.value=r;let i=[{channel:D.xChannel,value:n},{channel:D.yChannel,value:r}];D.xChannel!==`hue`&&D.yChannel!==`hue`&&i.push({channel:`hue`,value:R.value}),U(a(N.value,i,D.colorSpace))}function G(){O(`changeEnd`,e(N.value,D.format))}return w(N,H,{immediate:!0}),p({color:N,xValue:I,yValue:L,xRange:P,yRange:F,areaStyle:B,thumbElement:V,setThumbElement(e){V.value!==e&&(V.value=e)},updateValues:W,commitValues:G,...c(D,[`colorSpace`,`format`,`xChannel`,`yChannel`,`disabled`])}),(e,t)=>(b(),g(C(d),{ref:C(A),as:v.as,"as-child":v.asChild,"data-soybean-color-area-root":``,class:y(C(j)),role:`group`,"aria-disabled":v.disabled?`true`:void 0,"data-disabled":v.disabled?``:void 0},{default:T(()=>[x(e.$slots,`default`),z.value&&v.xName?(b(),g(C(f),{key:0,type:`text`,value:I.value,name:v.xName,disabled:v.disabled},null,8,[`value`,`name`,`disabled`])):_(`v-if`,!0),z.value&&v.yName?(b(),g(C(f),{key:1,type:`text`,value:L.value,name:v.yName,disabled:v.disabled},null,8,[`value`,`name`,`disabled`])):_(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`class`,`aria-disabled`,`data-disabled`]))}});export{E as default};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
1
|
+
import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../types/color.js";
|
|
3
2
|
import { ColorAreaAxisChannel, ColorAreaRootProps } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
@@ -21,10 +20,9 @@ declare const __VLS_base: _$vue.DefineComponent<ColorAreaRootProps, {}, {}, {},
|
|
|
21
20
|
}>, {
|
|
22
21
|
disabled: boolean;
|
|
23
22
|
format: ColorFormat;
|
|
24
|
-
as: AsTag | _$vue.Component;
|
|
25
|
-
colorSpace: ColorSpace;
|
|
26
23
|
modelValue: string | ColorValue;
|
|
27
24
|
defaultValue: string | ColorValue;
|
|
25
|
+
colorSpace: ColorSpace;
|
|
28
26
|
xChannel: ColorAreaAxisChannel;
|
|
29
27
|
yChannel: ColorAreaAxisChannel;
|
|
30
28
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{formatChannelValue as e,getChannelName as t}from"../../shared/color.js";import"../../shared/index.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useColorAreaRootContext as i,useColorAreaUi as a}from"./context.js";import{convertValueToPercentage as o}from"./shared.js";import{computed as s,createBlock as c,defineComponent as l,normalizeClass as u,normalizeStyle as d,openBlock as f,renderSlot as p,unref as m,withCtx as h}from"vue";const g=l({name:`ColorAreaThumb`,__name:`color-area-thumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(l){let{setThumbElement:g,xChannel:_,yChannel:v,xValue:y,yValue:b,xRange:x,yRange:S,disabled:C}=i(`ColorAreaThumb`),[w,T]=n(e=>{g(e)}),E=a(`thumb`),D=s(()=>_.value??`saturation`),O=s(()=>v.value??`lightness`),k=s(()=>o(y.value,x.value.min,x.value.max)),A=s(()=>o(b.value,S.value.min,S.value.max)),j=s(()=>`${t(D.value)}, ${t(O.value)}`),M=s(()=>`${t(D.value)} ${e(D.value,y.value)}, ${t(O.value)} ${e(O.value,b.value)}`);return(e,t)=>(f(),c(m(r),{ref:m(T),as:l.as,"as-child":l.asChild,class:u(m(E)),role:`slider`,tabindex:m(C)?void 0:0,"aria-label":j.value,"aria-roledescription":`Color thumb`,"aria-valuemin":m(x).min,"aria-valuemax":m(x).max,"aria-valuenow":m(y),"aria-valuetext":M.value,"aria-orientation":`horizontal`,"data-disabled":m(C)?``:void 0,style:d({position:`absolute`,left:`${k.value}%`,top:`${100-A.value}%`,transform:`translate(-50%, -50%)`,touchAction:`none`})},{default:h(()=>[p(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`tabindex`,`aria-label`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-valuetext`,`data-disabled`,`style`]))}});export{g as default};
|
|
1
|
+
import{formatChannelValue as e,getChannelName as t}from"../../shared/color.js";import"../../shared/index.js";import{useForwardElement as n}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useColorAreaRootContext as i,useColorAreaUi as a}from"./context.js";import{convertValueToPercentage as o}from"./shared.js";import{computed as s,createBlock as c,defineComponent as l,normalizeClass as u,normalizeStyle as d,openBlock as f,renderSlot as p,unref as m,withCtx as h}from"vue";const g=l({name:`ColorAreaThumb`,__name:`color-area-thumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(l){let{setThumbElement:g,xChannel:_,yChannel:v,xValue:y,yValue:b,xRange:x,yRange:S,disabled:C}=i(`ColorAreaThumb`),[w,T]=n(e=>{g(e)}),E=a(`thumb`),D=s(()=>_.value??`saturation`),O=s(()=>v.value??`lightness`),k=s(()=>o(y.value,x.value.min,x.value.max)),A=s(()=>o(b.value,S.value.min,S.value.max)),j=s(()=>`${t(D.value)}, ${t(O.value)}`),M=s(()=>`${t(D.value)} ${e(D.value,y.value)}, ${t(O.value)} ${e(O.value,b.value)}`);return(e,t)=>(f(),c(m(r),{ref:m(T),as:l.as,"as-child":l.asChild,"data-soybean-color-area-thumb":``,class:u(m(E)),role:`slider`,tabindex:m(C)?void 0:0,"aria-label":j.value,"aria-roledescription":`Color thumb`,"aria-valuemin":m(x).min,"aria-valuemax":m(x).max,"aria-valuenow":m(y),"aria-valuetext":M.value,"aria-orientation":`horizontal`,"data-disabled":m(C)?``:void 0,style:d({position:`absolute`,left:`${k.value}%`,top:`${100-A.value}%`,transform:`translate(-50%, -50%)`,touchAction:`none`})},{default:h(()=>[p(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`tabindex`,`aria-label`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-valuetext`,`data-disabled`,`style`]))}});export{g as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ColorAreaAreaProps, ColorAreaAxisChannel, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot } from "./types.js";
|
|
2
|
-
import { _default as _default$1 } from "./color-area-
|
|
1
|
+
import { ColorAreaAreaProps, ColorAreaAxisChannel, ColorAreaCompactEmits, ColorAreaCompactProps, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot } from "./types.js";
|
|
2
|
+
import { _default as _default$1 } from "./color-area-compact.vue.js";
|
|
3
|
+
import { _default as _default$2 } from "./color-area-root.vue.js";
|
|
3
4
|
import { _default } from "./color-area-area.vue.js";
|
|
4
|
-
import { _default as _default$
|
|
5
|
+
import { _default as _default$3 } from "./color-area-thumb.vue.js";
|
|
5
6
|
import { provideColorAreaUi } from "./context.js";
|
|
6
|
-
export { _default as ColorAreaArea, type ColorAreaAreaProps, type ColorAreaAxisChannel, _default$1 as ColorAreaRoot, type ColorAreaRootEmits, type ColorAreaRootProps, _default$
|
|
7
|
+
export { _default as ColorAreaArea, type ColorAreaAreaProps, type ColorAreaAxisChannel, _default$1 as ColorAreaCompact, type ColorAreaCompactEmits, type ColorAreaCompactProps, _default$2 as ColorAreaRoot, type ColorAreaRootEmits, type ColorAreaRootProps, _default$3 as ColorAreaThumb, type ColorAreaThumbProps, type ColorAreaUi, type ColorAreaUiSlot, provideColorAreaUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideColorAreaUi as e}from"./context.js";import t from"./color-area-
|
|
1
|
+
import{provideColorAreaUi as e}from"./context.js";import t from"./color-area-area.js";import n from"./color-area-root.js";import r from"./color-area-thumb.js";import i from"./color-area-compact.js";export{t as ColorAreaArea,i as ColorAreaCompact,n as ColorAreaRoot,r as ColorAreaThumb,e as provideColorAreaUi};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../types/color.js";
|
|
1
2
|
import { UiClass } from "../../types/common.js";
|
|
2
3
|
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CSSProperties, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
4
|
+
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
5
|
+
import { CSSProperties, ComputedRef, ShallowRef } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/color-area/types.d.ts
|
|
8
8
|
/**
|
|
@@ -12,7 +12,7 @@ type ColorAreaAxisChannel = Extract<ColorChannel, 'hue' | 'saturation' | 'lightn
|
|
|
12
12
|
/**
|
|
13
13
|
* Properties for the ColorAreaRoot component.
|
|
14
14
|
*/
|
|
15
|
-
interface ColorAreaRootProps extends
|
|
15
|
+
interface ColorAreaRootProps extends FormFieldCommonProps, Omit<PrimitiveWithBaseProps, 'onChange'> {
|
|
16
16
|
/**
|
|
17
17
|
* Current model value.
|
|
18
18
|
*/
|
|
@@ -74,11 +74,28 @@ type ColorAreaRootEmits = {
|
|
|
74
74
|
/**
|
|
75
75
|
* Properties for the ColorAreaArea component.
|
|
76
76
|
*/
|
|
77
|
-
interface ColorAreaAreaProps extends
|
|
77
|
+
interface ColorAreaAreaProps extends PrimitiveWithBaseProps {}
|
|
78
78
|
/**
|
|
79
79
|
* Properties for the ColorAreaThumb component.
|
|
80
80
|
*/
|
|
81
|
-
interface ColorAreaThumbProps extends
|
|
81
|
+
interface ColorAreaThumbProps extends PrimitiveWithBaseProps {}
|
|
82
|
+
/**
|
|
83
|
+
* Properties for the ColorAreaCompact component.
|
|
84
|
+
*/
|
|
85
|
+
interface ColorAreaCompactProps extends ColorAreaRootProps {
|
|
86
|
+
/**
|
|
87
|
+
* Properties forwarded to the area element.
|
|
88
|
+
*/
|
|
89
|
+
areaProps?: ColorAreaAreaProps;
|
|
90
|
+
/**
|
|
91
|
+
* Properties forwarded to the thumb element.
|
|
92
|
+
*/
|
|
93
|
+
thumbProps?: ColorAreaThumbProps;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Events for the ColorAreaCompact component.
|
|
97
|
+
*/
|
|
98
|
+
type ColorAreaCompactEmits = ColorAreaRootEmits;
|
|
82
99
|
/**
|
|
83
100
|
* Available UI slots for the ColorArea component.
|
|
84
101
|
*/
|
|
@@ -88,4 +105,4 @@ type ColorAreaUiSlot = 'root' | 'area' | 'thumb';
|
|
|
88
105
|
*/
|
|
89
106
|
type ColorAreaUi = UiClass<ColorAreaUiSlot>;
|
|
90
107
|
//#endregion
|
|
91
|
-
export { ColorAreaAreaProps, ColorAreaAxisChannel, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot };
|
|
108
|
+
export { ColorAreaAreaProps, ColorAreaAxisChannel, ColorAreaCompactEmits, ColorAreaCompactProps, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"./color-field-input.js";import r from"./color-field-root.js";import{createBlock as i,createVNode as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`ColorFieldCompact`,inheritAttrs:!1,__name:`color-field-compact`,props:{inputProps:{},modelValue:{},defaultValue:{},colorSpace:{},channel:{},format:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},disableWheelChange:{type:Boolean},step:{},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:color`],setup(o,{emit:m}){let h=o,g=m,_=t(h,[`inputProps`]),v=e(g);return(e,t)=>(u(),i(r,c(f(_),d(f(v))),{default:p(()=>[a(n,l(s(o.inputProps)),null,16)]),_:1},16))}});export{m as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NormalizedColor } from "../../types/color.js";
|
|
2
|
+
import { ColorFieldCompactProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/color-field/color-field-compact.vue.d.ts
|
|
6
|
+
declare const __VLS_export: _$vue.DefineComponent<ColorFieldCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
"update:color": (value: NormalizedColor) => any;
|
|
9
|
+
}, string, _$vue.PublicProps, Readonly<ColorFieldCompactProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _default };
|
|
@@ -1 +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};
|
|
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`,{"data-soybean-color-field-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};
|
|
@@ -1 +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},
|
|
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},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},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,"data-soybean-color-field-root":``,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};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../shared/color.js";
|
|
1
|
+
import { ColorFormat, ColorSpace, ColorValue, NormalizedColor } from "../../types/color.js";
|
|
3
2
|
import { ColorFieldRootProps } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
@@ -17,12 +16,11 @@ declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {},
|
|
|
17
16
|
}>, {
|
|
18
17
|
disabled: boolean;
|
|
19
18
|
format: ColorFormat;
|
|
20
|
-
as: AsTag | _$vue.Component;
|
|
21
19
|
step: number;
|
|
22
|
-
colorSpace: ColorSpace;
|
|
23
20
|
modelValue: string | ColorValue;
|
|
24
21
|
defaultValue: string | ColorValue;
|
|
25
22
|
readonly: boolean;
|
|
23
|
+
colorSpace: ColorSpace;
|
|
26
24
|
disableWheelChange: boolean;
|
|
27
25
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot } from "./types.js";
|
|
2
|
-
import { _default
|
|
3
|
-
import { _default } from "./color-field-
|
|
1
|
+
import { ColorFieldCompactEmits, ColorFieldCompactProps, ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot } from "./types.js";
|
|
2
|
+
import { _default } from "./color-field-compact.vue.js";
|
|
3
|
+
import { _default as _default$2 } from "./color-field-root.vue.js";
|
|
4
|
+
import { _default as _default$1 } from "./color-field-input.vue.js";
|
|
4
5
|
import { provideColorFieldUi } from "./context.js";
|
|
5
|
-
export { _default as ColorFieldInput, type ColorFieldInputProps, _default$
|
|
6
|
+
export { _default as ColorFieldCompact, type ColorFieldCompactEmits, type ColorFieldCompactProps, _default$1 as ColorFieldInput, type ColorFieldInputProps, _default$2 as ColorFieldRoot, type ColorFieldRootEmits, type ColorFieldRootProps, type ColorFieldUi, type ColorFieldUiSlot, provideColorFieldUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideColorFieldUi as e}from"./context.js";import t from"./color-field-
|
|
1
|
+
import{provideColorFieldUi as e}from"./context.js";import t from"./color-field-input.js";import n from"./color-field-root.js";import r from"./color-field-compact.js";export{r as ColorFieldCompact,t as ColorFieldInput,n as ColorFieldRoot,e as provideColorFieldUi};
|