@ark-ui/solid 2.1.1 → 3.0.0-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/LICENSE +1 -1
- package/package.json +77 -83
- package/CHANGELOG.md +0 -396
- package/cjs/index.js +0 -4254
- package/cjs/index.js.map +0 -1
- package/esm/index.js +0 -3862
- package/esm/index.js.map +0 -1
- package/source/accordion/accordion-context.js +0 -5
- package/source/accordion/accordion-item-content.jsx +0 -15
- package/source/accordion/accordion-item-context.js +0 -5
- package/source/accordion/accordion-item-indicator.jsx +0 -10
- package/source/accordion/accordion-item-trigger.jsx +0 -12
- package/source/accordion/accordion-item.jsx +0 -20
- package/source/accordion/accordion-root.jsx +0 -29
- package/source/accordion/accordion.jsx +0 -6
- package/source/accordion/index.js +0 -9
- package/source/accordion/use-accordion.js +0 -10
- package/source/avatar/avatar-context.js +0 -5
- package/source/avatar/avatar-fallback.jsx +0 -8
- package/source/avatar/avatar-image.jsx +0 -8
- package/source/avatar/avatar-root.jsx +0 -18
- package/source/avatar/avatar.jsx +0 -4
- package/source/avatar/index.js +0 -6
- package/source/avatar/use-avatar.js +0 -10
- package/source/carousel/carousel-context.js +0 -5
- package/source/carousel/carousel-control.jsx +0 -7
- package/source/carousel/carousel-indicator-group.jsx +0 -8
- package/source/carousel/carousel-indicator.jsx +0 -13
- package/source/carousel/carousel-item-group.jsx +0 -8
- package/source/carousel/carousel-item.jsx +0 -10
- package/source/carousel/carousel-next-trigger.jsx +0 -8
- package/source/carousel/carousel-prev-trigger.jsx +0 -8
- package/source/carousel/carousel-root.jsx +0 -27
- package/source/carousel/carousel-viewport.jsx +0 -8
- package/source/carousel/carousel.jsx +0 -10
- package/source/carousel/index.js +0 -12
- package/source/carousel/use-carousel.js +0 -10
- package/source/checkbox/checkbox-context.js +0 -5
- package/source/checkbox/checkbox-control.jsx +0 -11
- package/source/checkbox/checkbox-indicator.jsx +0 -8
- package/source/checkbox/checkbox-label.jsx +0 -8
- package/source/checkbox/checkbox-root.jsx +0 -28
- package/source/checkbox/checkbox.jsx +0 -5
- package/source/checkbox/index.js +0 -7
- package/source/checkbox/use-checkbox.js +0 -10
- package/source/clipboard/clipboard-context.js +0 -5
- package/source/clipboard/clipboard-control.jsx +0 -8
- package/source/clipboard/clipboard-indicator.jsx +0 -16
- package/source/clipboard/clipboard-input.jsx +0 -8
- package/source/clipboard/clipboard-label.jsx +0 -8
- package/source/clipboard/clipboard-root.jsx +0 -22
- package/source/clipboard/clipboard-trigger.jsx +0 -8
- package/source/clipboard/clipboard.jsx +0 -7
- package/source/clipboard/index.js +0 -9
- package/source/clipboard/use-clipboard.jsx +0 -10
- package/source/color-picker/color-picker-area-background.jsx +0 -10
- package/source/color-picker/color-picker-area-context.js +0 -5
- package/source/color-picker/color-picker-area-thumb.jsx +0 -10
- package/source/color-picker/color-picker-area.jsx +0 -13
- package/source/color-picker/color-picker-channel-input.jsx +0 -13
- package/source/color-picker/color-picker-channel-slider-context.js +0 -5
- package/source/color-picker/color-picker-channel-slider-thumb.jsx +0 -10
- package/source/color-picker/color-picker-channel-slider-track.jsx +0 -10
- package/source/color-picker/color-picker-channel-slider.jsx +0 -16
- package/source/color-picker/color-picker-content.jsx +0 -13
- package/source/color-picker/color-picker-context.js +0 -5
- package/source/color-picker/color-picker-control.jsx +0 -8
- package/source/color-picker/color-picker-eye-dropper-trigger.jsx +0 -8
- package/source/color-picker/color-picker-format-select.jsx +0 -13
- package/source/color-picker/color-picker-format-trigger.jsx +0 -8
- package/source/color-picker/color-picker-label.jsx +0 -8
- package/source/color-picker/color-picker-positioner.jsx +0 -13
- package/source/color-picker/color-picker-root.jsx +0 -43
- package/source/color-picker/color-picker-swatch-context.js +0 -5
- package/source/color-picker/color-picker-swatch-group.jsx +0 -8
- package/source/color-picker/color-picker-swatch-indicator.jsx +0 -10
- package/source/color-picker/color-picker-swatch-trigger.jsx +0 -13
- package/source/color-picker/color-picker-swatch.jsx +0 -16
- package/source/color-picker/color-picker-transparency-grid.jsx +0 -10
- package/source/color-picker/color-picker-trigger.jsx +0 -8
- package/source/color-picker/color-picker-value-text.jsx +0 -9
- package/source/color-picker/color-picker-view.jsx +0 -13
- package/source/color-picker/color-picker.jsx +0 -24
- package/source/color-picker/index.js +0 -28
- package/source/color-picker/use-color-picker.js +0 -16
- package/source/combobox/combobox-clear-trigger.jsx +0 -8
- package/source/combobox/combobox-content.jsx +0 -13
- package/source/combobox/combobox-context.js +0 -6
- package/source/combobox/combobox-control.jsx +0 -8
- package/source/combobox/combobox-input.jsx +0 -8
- package/source/combobox/combobox-item-context.js +0 -5
- package/source/combobox/combobox-item-group-label.jsx +0 -10
- package/source/combobox/combobox-item-group.jsx +0 -10
- package/source/combobox/combobox-item-indicator.jsx +0 -10
- package/source/combobox/combobox-item-text.jsx +0 -10
- package/source/combobox/combobox-item.jsx +0 -15
- package/source/combobox/combobox-label.jsx +0 -8
- package/source/combobox/combobox-positioner.jsx +0 -13
- package/source/combobox/combobox-root.jsx +0 -57
- package/source/combobox/combobox-trigger.jsx +0 -8
- package/source/combobox/combobox.jsx +0 -14
- package/source/combobox/index.js +0 -16
- package/source/combobox/use-combobox.js +0 -20
- package/source/create-context.js +0 -19
- package/source/create-split-props.js +0 -2
- package/source/date-picker/date-picker-clear-trigger.jsx +0 -8
- package/source/date-picker/date-picker-content.jsx +0 -13
- package/source/date-picker/date-picker-context.js +0 -5
- package/source/date-picker/date-picker-control.jsx +0 -8
- package/source/date-picker/date-picker-input.jsx +0 -10
- package/source/date-picker/date-picker-label.jsx +0 -8
- package/source/date-picker/date-picker-month-select.jsx +0 -12
- package/source/date-picker/date-picker-next-trigger.jsx +0 -10
- package/source/date-picker/date-picker-positioner.jsx +0 -13
- package/source/date-picker/date-picker-preset-trigger.jsx +0 -10
- package/source/date-picker/date-picker-prev-trigger.jsx +0 -10
- package/source/date-picker/date-picker-range-text.jsx +0 -8
- package/source/date-picker/date-picker-root.jsx +0 -52
- package/source/date-picker/date-picker-table-body.jsx +0 -10
- package/source/date-picker/date-picker-table-cell-context.js +0 -5
- package/source/date-picker/date-picker-table-cell-trigger.jsx +0 -18
- package/source/date-picker/date-picker-table-cell.jsx +0 -26
- package/source/date-picker/date-picker-table-context.js +0 -5
- package/source/date-picker/date-picker-table-head.jsx +0 -10
- package/source/date-picker/date-picker-table-header.jsx +0 -10
- package/source/date-picker/date-picker-table-row.jsx +0 -10
- package/source/date-picker/date-picker-table.jsx +0 -19
- package/source/date-picker/date-picker-trigger.jsx +0 -8
- package/source/date-picker/date-picker-view-context.js +0 -5
- package/source/date-picker/date-picker-view-control.jsx +0 -10
- package/source/date-picker/date-picker-view-trigger.jsx +0 -10
- package/source/date-picker/date-picker-view.jsx +0 -18
- package/source/date-picker/date-picker-year-select.jsx +0 -17
- package/source/date-picker/date-picker.jsx +0 -25
- package/source/date-picker/index.js +0 -30
- package/source/date-picker/use-date-picker.js +0 -17
- package/source/dialog/dialog-backdrop.jsx +0 -14
- package/source/dialog/dialog-close-trigger.jsx +0 -8
- package/source/dialog/dialog-content.jsx +0 -13
- package/source/dialog/dialog-context.js +0 -5
- package/source/dialog/dialog-description.jsx +0 -8
- package/source/dialog/dialog-positioner.jsx +0 -13
- package/source/dialog/dialog-root.jsx +0 -39
- package/source/dialog/dialog-title.jsx +0 -8
- package/source/dialog/dialog-trigger.jsx +0 -10
- package/source/dialog/dialog.jsx +0 -9
- package/source/dialog/index.js +0 -11
- package/source/dialog/use-dialog.js +0 -10
- package/source/editable/editable-area.jsx +0 -8
- package/source/editable/editable-cancel-trigger.jsx +0 -8
- package/source/editable/editable-context.js +0 -5
- package/source/editable/editable-control.jsx +0 -8
- package/source/editable/editable-edit-trigger.jsx +0 -8
- package/source/editable/editable-input.jsx +0 -8
- package/source/editable/editable-label.jsx +0 -8
- package/source/editable/editable-preview.jsx +0 -8
- package/source/editable/editable-root.jsx +0 -42
- package/source/editable/editable-submit-trigger.jsx +0 -8
- package/source/editable/editable.jsx +0 -10
- package/source/editable/index.js +0 -12
- package/source/editable/use-editable.js +0 -10
- package/source/environment/environment-context.js +0 -6
- package/source/environment/environment.jsx +0 -11
- package/source/environment/index.js +0 -3
- package/source/factory.jsx +0 -25
- package/source/file-upload/file-upload-context.js +0 -5
- package/source/file-upload/file-upload-dropzone.jsx +0 -11
- package/source/file-upload/file-upload-item-context.js +0 -5
- package/source/file-upload/file-upload-item-delete-trigger.jsx +0 -10
- package/source/file-upload/file-upload-item-group.jsx +0 -10
- package/source/file-upload/file-upload-item-name.jsx +0 -12
- package/source/file-upload/file-upload-item-preview-image.jsx +0 -13
- package/source/file-upload/file-upload-item-preview.jsx +0 -12
- package/source/file-upload/file-upload-item-size-text.jsx +0 -12
- package/source/file-upload/file-upload-item.jsx +0 -15
- package/source/file-upload/file-upload-label.jsx +0 -8
- package/source/file-upload/file-upload-root.jsx +0 -34
- package/source/file-upload/file-upload-trigger.jsx +0 -8
- package/source/file-upload/file-upload.jsx +0 -12
- package/source/file-upload/index.js +0 -14
- package/source/file-upload/use-file-upload.js +0 -10
- package/source/hover-card/hover-card-arrow-tip.jsx +0 -8
- package/source/hover-card/hover-card-arrow.jsx +0 -8
- package/source/hover-card/hover-card-content.jsx +0 -13
- package/source/hover-card/hover-card-context.js +0 -5
- package/source/hover-card/hover-card-positioner.jsx +0 -13
- package/source/hover-card/hover-card-root.jsx +0 -26
- package/source/hover-card/hover-card-trigger.jsx +0 -8
- package/source/hover-card/hover-card.jsx +0 -7
- package/source/hover-card/index.js +0 -9
- package/source/hover-card/use-hover-card.js +0 -10
- package/source/index.jsx +0 -35
- package/source/locale/index.js +0 -2
- package/source/locale/locale-context.jsx +0 -7
- package/source/locale/locale.jsx +0 -24
- package/source/menu/index.js +0 -16
- package/source/menu/menu-arrow-tip.jsx +0 -8
- package/source/menu/menu-arrow.jsx +0 -8
- package/source/menu/menu-content.jsx +0 -13
- package/source/menu/menu-context-trigger.jsx +0 -8
- package/source/menu/menu-context.js +0 -16
- package/source/menu/menu-item-group-label.jsx +0 -10
- package/source/menu/menu-item-group.jsx +0 -10
- package/source/menu/menu-item.jsx +0 -15
- package/source/menu/menu-option-item.jsx +0 -23
- package/source/menu/menu-positioner.jsx +0 -13
- package/source/menu/menu-root.jsx +0 -50
- package/source/menu/menu-separator.jsx +0 -8
- package/source/menu/menu-trigger-item.jsx +0 -8
- package/source/menu/menu-trigger.jsx +0 -10
- package/source/menu/menu.jsx +0 -14
- package/source/menu/use-menu.js +0 -13
- package/source/number-input/index.js +0 -10
- package/source/number-input/number-input-context.js +0 -5
- package/source/number-input/number-input-control.jsx +0 -8
- package/source/number-input/number-input-decrement-trigger.jsx +0 -8
- package/source/number-input/number-input-increment-trigger.jsx +0 -8
- package/source/number-input/number-input-input.jsx +0 -8
- package/source/number-input/number-input-label.jsx +0 -8
- package/source/number-input/number-input-root.jsx +0 -42
- package/source/number-input/number-input-scrubber.jsx +0 -8
- package/source/number-input/number-input.jsx +0 -8
- package/source/number-input/use-number-input.js +0 -10
- package/source/pagination/index.js +0 -8
- package/source/pagination/pagination-context.js +0 -5
- package/source/pagination/pagination-ellipsis.jsx +0 -10
- package/source/pagination/pagination-item.jsx +0 -10
- package/source/pagination/pagination-next-trigger.jsx +0 -8
- package/source/pagination/pagination-prev-trigger.jsx +0 -8
- package/source/pagination/pagination-root.jsx +0 -27
- package/source/pagination/pagination.jsx +0 -6
- package/source/pagination/use-pagination.js +0 -10
- package/source/pin-input/index.js +0 -7
- package/source/pin-input/pin-input-context.js +0 -5
- package/source/pin-input/pin-input-control.jsx +0 -8
- package/source/pin-input/pin-input-input.jsx +0 -10
- package/source/pin-input/pin-input-label.jsx +0 -8
- package/source/pin-input/pin-input-root.jsx +0 -36
- package/source/pin-input/pin-input.jsx +0 -5
- package/source/pin-input/use-pin-input.js +0 -10
- package/source/popover/index.js +0 -14
- package/source/popover/popover-anchor.jsx +0 -8
- package/source/popover/popover-arrow-tip.jsx +0 -8
- package/source/popover/popover-arrow.jsx +0 -8
- package/source/popover/popover-close-trigger.jsx +0 -8
- package/source/popover/popover-content.jsx +0 -13
- package/source/popover/popover-context.js +0 -5
- package/source/popover/popover-description.jsx +0 -8
- package/source/popover/popover-indicator.jsx +0 -8
- package/source/popover/popover-positioner.jsx +0 -13
- package/source/popover/popover-root.jsx +0 -34
- package/source/popover/popover-title.jsx +0 -8
- package/source/popover/popover-trigger.jsx +0 -10
- package/source/popover/popover.jsx +0 -12
- package/source/popover/use-popover.js +0 -10
- package/source/presence/index.js +0 -6
- package/source/presence/presence-context.js +0 -5
- package/source/presence/presence-props-context.js +0 -5
- package/source/presence/presence.jsx +0 -13
- package/source/presence/split-presence-props.js +0 -9
- package/source/presence/use-presence.js +0 -26
- package/source/progress/index.js +0 -12
- package/source/progress/progress-circle-range.jsx +0 -8
- package/source/progress/progress-circle-track.jsx +0 -8
- package/source/progress/progress-circle.jsx +0 -8
- package/source/progress/progress-context.js +0 -5
- package/source/progress/progress-label.jsx +0 -8
- package/source/progress/progress-range.jsx +0 -8
- package/source/progress/progress-root.jsx +0 -24
- package/source/progress/progress-track.jsx +0 -8
- package/source/progress/progress-value-text.jsx +0 -10
- package/source/progress/progress-view.jsx +0 -10
- package/source/progress/progress.jsx +0 -10
- package/source/progress/use-progress.js +0 -10
- package/source/radio-group/index.js +0 -10
- package/source/radio-group/radio-group-context.js +0 -5
- package/source/radio-group/radio-group-indicator.jsx +0 -8
- package/source/radio-group/radio-group-item-context.js +0 -5
- package/source/radio-group/radio-group-item-control.jsx +0 -13
- package/source/radio-group/radio-group-item-text.jsx +0 -10
- package/source/radio-group/radio-group-item.jsx +0 -20
- package/source/radio-group/radio-group-label.jsx +0 -8
- package/source/radio-group/radio-group-root.jsx +0 -24
- package/source/radio-group/radio-group.jsx +0 -7
- package/source/radio-group/use-radio-group.js +0 -12
- package/source/rating-group/index.js +0 -8
- package/source/rating-group/rating-group-context.js +0 -5
- package/source/rating-group/rating-group-control.jsx +0 -13
- package/source/rating-group/rating-group-item-context.js +0 -5
- package/source/rating-group/rating-group-item.jsx +0 -17
- package/source/rating-group/rating-group-label.jsx +0 -8
- package/source/rating-group/rating-group-root.jsx +0 -29
- package/source/rating-group/rating-group.jsx +0 -5
- package/source/rating-group/use-rating-group.js +0 -10
- package/source/run-if-fn.js +0 -4
- package/source/segment-group/index.js +0 -10
- package/source/segment-group/segment-group-context.js +0 -5
- package/source/segment-group/segment-group-indicator.jsx +0 -9
- package/source/segment-group/segment-group-item-context.js +0 -5
- package/source/segment-group/segment-group-item-control.jsx +0 -14
- package/source/segment-group/segment-group-item-text.jsx +0 -11
- package/source/segment-group/segment-group-item.jsx +0 -21
- package/source/segment-group/segment-group-label.jsx +0 -9
- package/source/segment-group/segment-group-root.jsx +0 -25
- package/source/segment-group/segment-group.jsx +0 -7
- package/source/segment-group/use-segment-group.js +0 -10
- package/source/select/index.js +0 -18
- package/source/select/select-clear-trigger.jsx +0 -8
- package/source/select/select-content.jsx +0 -13
- package/source/select/select-context.js +0 -6
- package/source/select/select-control.jsx +0 -20
- package/source/select/select-indicator.jsx +0 -8
- package/source/select/select-item-context.js +0 -5
- package/source/select/select-item-group-label.jsx +0 -10
- package/source/select/select-item-group.jsx +0 -10
- package/source/select/select-item-indicator.jsx +0 -10
- package/source/select/select-item-text.jsx +0 -10
- package/source/select/select-item.jsx +0 -15
- package/source/select/select-label.jsx +0 -8
- package/source/select/select-positioner.jsx +0 -13
- package/source/select/select-root.jsx +0 -48
- package/source/select/select-trigger.jsx +0 -8
- package/source/select/select-value-text.jsx +0 -9
- package/source/select/select.jsx +0 -15
- package/source/select/use-select.js +0 -25
- package/source/slider/index.js +0 -12
- package/source/slider/slider-context.js +0 -5
- package/source/slider/slider-control.jsx +0 -8
- package/source/slider/slider-label.jsx +0 -8
- package/source/slider/slider-marker-group.jsx +0 -8
- package/source/slider/slider-marker.jsx +0 -10
- package/source/slider/slider-range.jsx +0 -8
- package/source/slider/slider-root.jsx +0 -41
- package/source/slider/slider-thumb.jsx +0 -10
- package/source/slider/slider-track.jsx +0 -8
- package/source/slider/slider-value-text.jsx +0 -10
- package/source/slider/slider.jsx +0 -10
- package/source/slider/use-slider.js +0 -10
- package/source/splitter/index.js +0 -6
- package/source/splitter/splitter-context.js +0 -5
- package/source/splitter/splitter-panel.jsx +0 -10
- package/source/splitter/splitter-resize-trigger.jsx +0 -14
- package/source/splitter/splitter-root.jsx +0 -25
- package/source/splitter/splitter.jsx +0 -4
- package/source/splitter/use-splitter.js +0 -10
- package/source/switch/index.js +0 -7
- package/source/switch/switch-context.js +0 -5
- package/source/switch/switch-control.jsx +0 -11
- package/source/switch/switch-label.jsx +0 -8
- package/source/switch/switch-root.jsx +0 -29
- package/source/switch/switch-thumb.jsx +0 -8
- package/source/switch/switch.jsx +0 -5
- package/source/switch/use-switch.js +0 -10
- package/source/tabs/index.js +0 -8
- package/source/tabs/tab-content.jsx +0 -18
- package/source/tabs/tab-indicator.jsx +0 -8
- package/source/tabs/tab-list.jsx +0 -8
- package/source/tabs/tab-trigger.jsx +0 -10
- package/source/tabs/tabs-context.js +0 -5
- package/source/tabs/tabs-root.jsx +0 -29
- package/source/tabs/tabs.jsx +0 -6
- package/source/tabs/use-tabs.js +0 -10
- package/source/tags-input/index.js +0 -14
- package/source/tags-input/tags-input-clear-trigger.jsx +0 -8
- package/source/tags-input/tags-input-context.js +0 -5
- package/source/tags-input/tags-input-control.jsx +0 -8
- package/source/tags-input/tags-input-input.jsx +0 -8
- package/source/tags-input/tags-input-item-context.js +0 -5
- package/source/tags-input/tags-input-item-delete-trigger.jsx +0 -10
- package/source/tags-input/tags-input-item-input.jsx +0 -10
- package/source/tags-input/tags-input-item-preview.jsx +0 -10
- package/source/tags-input/tags-input-item-text.jsx +0 -10
- package/source/tags-input/tags-input-item.jsx +0 -19
- package/source/tags-input/tags-input-label.jsx +0 -8
- package/source/tags-input/tags-input-root.jsx +0 -44
- package/source/tags-input/tags-input.jsx +0 -11
- package/source/tags-input/use-tags-input.js +0 -10
- package/source/toast/create-toaster.jsx +0 -30
- package/source/toast/index.js +0 -8
- package/source/toast/toast-close-trigger.jsx +0 -8
- package/source/toast/toast-context.js +0 -5
- package/source/toast/toast-description.jsx +0 -8
- package/source/toast/toast-group.jsx +0 -4
- package/source/toast/toast-root.jsx +0 -8
- package/source/toast/toast-title.jsx +0 -8
- package/source/toast/toast.jsx +0 -6
- package/source/toggle-group/index.js +0 -5
- package/source/toggle-group/toggle-group-context.js +0 -5
- package/source/toggle-group/toggle-group-item.jsx +0 -10
- package/source/toggle-group/toggle-group-root.jsx +0 -25
- package/source/toggle-group/toggle-group.jsx +0 -3
- package/source/toggle-group/use-toggle-group.js +0 -12
- package/source/tooltip/index.js +0 -9
- package/source/tooltip/tooltip-arrow-tip.jsx +0 -8
- package/source/tooltip/tooltip-arrow.jsx +0 -8
- package/source/tooltip/tooltip-content.jsx +0 -13
- package/source/tooltip/tooltip-context.js +0 -5
- package/source/tooltip/tooltip-positioner.jsx +0 -13
- package/source/tooltip/tooltip-root.jsx +0 -31
- package/source/tooltip/tooltip-trigger.jsx +0 -8
- package/source/tooltip/tooltip.jsx +0 -7
- package/source/tooltip/use-tooltip.js +0 -10
- package/source/tree-view/index.js +0 -15
- package/source/tree-view/tree-view-branch-content.jsx +0 -10
- package/source/tree-view/tree-view-branch-context.js +0 -5
- package/source/tree-view/tree-view-branch-control.jsx +0 -10
- package/source/tree-view/tree-view-branch-indicator.jsx +0 -13
- package/source/tree-view/tree-view-branch-text.jsx +0 -10
- package/source/tree-view/tree-view-branch-trigger.jsx +0 -10
- package/source/tree-view/tree-view-branch.jsx +0 -20
- package/source/tree-view/tree-view-context.js +0 -5
- package/source/tree-view/tree-view-depth-context.js +0 -5
- package/source/tree-view/tree-view-item-context.js +0 -5
- package/source/tree-view/tree-view-item-indicator.jsx +0 -10
- package/source/tree-view/tree-view-item-text.jsx +0 -10
- package/source/tree-view/tree-view-item.jsx +0 -18
- package/source/tree-view/tree-view-label.jsx +0 -8
- package/source/tree-view/tree-view-root.jsx +0 -27
- package/source/tree-view/tree-view-tree.jsx +0 -11
- package/source/tree-view/tree-view.jsx +0 -13
- package/source/tree-view/use-tree-view.js +0 -10
- package/source/types.js +0 -2
- package/types/accordion/accordion-context.d.ts +0 -4
- package/types/accordion/accordion-item-content.d.ts +0 -4
- package/types/accordion/accordion-item-context.d.ts +0 -4
- package/types/accordion/accordion-item-indicator.d.ts +0 -4
- package/types/accordion/accordion-item-trigger.d.ts +0 -4
- package/types/accordion/accordion-item.d.ts +0 -11
- package/types/accordion/accordion-root.d.ts +0 -10
- package/types/accordion/accordion.d.ts +0 -6
- package/types/accordion/index.d.ts +0 -11
- package/types/accordion/use-accordion.d.ts +0 -9
- package/types/avatar/avatar-context.d.ts +0 -4
- package/types/avatar/avatar-fallback.d.ts +0 -4
- package/types/avatar/avatar-image.d.ts +0 -4
- package/types/avatar/avatar-root.d.ts +0 -6
- package/types/avatar/avatar.d.ts +0 -4
- package/types/avatar/index.d.ts +0 -8
- package/types/avatar/use-avatar.d.ts +0 -9
- package/types/carousel/carousel-context.d.ts +0 -4
- package/types/carousel/carousel-control.d.ts +0 -4
- package/types/carousel/carousel-indicator-group.d.ts +0 -4
- package/types/carousel/carousel-indicator.d.ts +0 -6
- package/types/carousel/carousel-item-group.d.ts +0 -4
- package/types/carousel/carousel-item.d.ts +0 -6
- package/types/carousel/carousel-next-trigger.d.ts +0 -4
- package/types/carousel/carousel-prev-trigger.d.ts +0 -4
- package/types/carousel/carousel-root.d.ts +0 -11
- package/types/carousel/carousel-viewport.d.ts +0 -4
- package/types/carousel/carousel.d.ts +0 -10
- package/types/carousel/index.d.ts +0 -14
- package/types/carousel/use-carousel.d.ts +0 -9
- package/types/checkbox/checkbox-context.d.ts +0 -4
- package/types/checkbox/checkbox-control.d.ts +0 -4
- package/types/checkbox/checkbox-indicator.d.ts +0 -4
- package/types/checkbox/checkbox-label.d.ts +0 -4
- package/types/checkbox/checkbox-root.d.ts +0 -11
- package/types/checkbox/checkbox.d.ts +0 -5
- package/types/checkbox/index.d.ts +0 -9
- package/types/checkbox/use-checkbox.d.ts +0 -9
- package/types/clipboard/clipboard-context.d.ts +0 -4
- package/types/clipboard/clipboard-control.d.ts +0 -4
- package/types/clipboard/clipboard-indicator.d.ts +0 -10
- package/types/clipboard/clipboard-input.d.ts +0 -4
- package/types/clipboard/clipboard-label.d.ts +0 -4
- package/types/clipboard/clipboard-root.d.ts +0 -11
- package/types/clipboard/clipboard-trigger.d.ts +0 -4
- package/types/clipboard/clipboard.d.ts +0 -7
- package/types/clipboard/index.d.ts +0 -11
- package/types/clipboard/use-clipboard.d.ts +0 -9
- package/types/color-picker/color-picker-area-background.d.ts +0 -4
- package/types/color-picker/color-picker-area-context.d.ts +0 -4
- package/types/color-picker/color-picker-area-thumb.d.ts +0 -4
- package/types/color-picker/color-picker-area.d.ts +0 -6
- package/types/color-picker/color-picker-channel-input.d.ts +0 -6
- package/types/color-picker/color-picker-channel-slider-context.d.ts +0 -4
- package/types/color-picker/color-picker-channel-slider-thumb.d.ts +0 -4
- package/types/color-picker/color-picker-channel-slider-track.d.ts +0 -4
- package/types/color-picker/color-picker-channel-slider.d.ts +0 -6
- package/types/color-picker/color-picker-content.d.ts +0 -4
- package/types/color-picker/color-picker-context.d.ts +0 -4
- package/types/color-picker/color-picker-control.d.ts +0 -4
- package/types/color-picker/color-picker-eye-dropper-trigger.d.ts +0 -4
- package/types/color-picker/color-picker-format-select.d.ts +0 -4
- package/types/color-picker/color-picker-format-trigger.d.ts +0 -4
- package/types/color-picker/color-picker-label.d.ts +0 -4
- package/types/color-picker/color-picker-positioner.d.ts +0 -4
- package/types/color-picker/color-picker-root.d.ts +0 -12
- package/types/color-picker/color-picker-swatch-context.d.ts +0 -4
- package/types/color-picker/color-picker-swatch-group.d.ts +0 -4
- package/types/color-picker/color-picker-swatch-indicator.d.ts +0 -4
- package/types/color-picker/color-picker-swatch-trigger.d.ts +0 -6
- package/types/color-picker/color-picker-swatch.d.ts +0 -6
- package/types/color-picker/color-picker-transparency-grid.d.ts +0 -6
- package/types/color-picker/color-picker-trigger.d.ts +0 -4
- package/types/color-picker/color-picker-value-text.d.ts +0 -8
- package/types/color-picker/color-picker-view.d.ts +0 -7
- package/types/color-picker/color-picker.d.ts +0 -24
- package/types/color-picker/index.d.ts +0 -30
- package/types/color-picker/use-color-picker.d.ts +0 -13
- package/types/combobox/combobox-clear-trigger.d.ts +0 -4
- package/types/combobox/combobox-content.d.ts +0 -4
- package/types/combobox/combobox-context.d.ts +0 -5
- package/types/combobox/combobox-control.d.ts +0 -4
- package/types/combobox/combobox-input.d.ts +0 -4
- package/types/combobox/combobox-item-context.d.ts +0 -4
- package/types/combobox/combobox-item-group-label.d.ts +0 -9
- package/types/combobox/combobox-item-group.d.ts +0 -6
- package/types/combobox/combobox-item-indicator.d.ts +0 -4
- package/types/combobox/combobox-item-text.d.ts +0 -4
- package/types/combobox/combobox-item.d.ts +0 -11
- package/types/combobox/combobox-label.d.ts +0 -4
- package/types/combobox/combobox-positioner.d.ts +0 -4
- package/types/combobox/combobox-root.d.ts +0 -10
- package/types/combobox/combobox-trigger.d.ts +0 -4
- package/types/combobox/combobox.d.ts +0 -14
- package/types/combobox/index.d.ts +0 -19
- package/types/combobox/use-combobox.d.ts +0 -10
- package/types/create-context.d.ts +0 -10
- package/types/create-split-props.d.ts +0 -3
- package/types/date-picker/date-picker-clear-trigger.d.ts +0 -4
- package/types/date-picker/date-picker-content.d.ts +0 -4
- package/types/date-picker/date-picker-context.d.ts +0 -4
- package/types/date-picker/date-picker-control.d.ts +0 -4
- package/types/date-picker/date-picker-input.d.ts +0 -6
- package/types/date-picker/date-picker-label.d.ts +0 -4
- package/types/date-picker/date-picker-month-select.d.ts +0 -4
- package/types/date-picker/date-picker-next-trigger.d.ts +0 -4
- package/types/date-picker/date-picker-positioner.d.ts +0 -4
- package/types/date-picker/date-picker-preset-trigger.d.ts +0 -6
- package/types/date-picker/date-picker-prev-trigger.d.ts +0 -4
- package/types/date-picker/date-picker-range-text.d.ts +0 -4
- package/types/date-picker/date-picker-root.d.ts +0 -12
- package/types/date-picker/date-picker-table-body.d.ts +0 -4
- package/types/date-picker/date-picker-table-cell-context.d.ts +0 -9
- package/types/date-picker/date-picker-table-cell-trigger.d.ts +0 -4
- package/types/date-picker/date-picker-table-cell.d.ts +0 -5
- package/types/date-picker/date-picker-table-context.d.ts +0 -4
- package/types/date-picker/date-picker-table-head.d.ts +0 -4
- package/types/date-picker/date-picker-table-header.d.ts +0 -4
- package/types/date-picker/date-picker-table-row.d.ts +0 -4
- package/types/date-picker/date-picker-table.d.ts +0 -6
- package/types/date-picker/date-picker-trigger.d.ts +0 -4
- package/types/date-picker/date-picker-view-context.d.ts +0 -4
- package/types/date-picker/date-picker-view-control.d.ts +0 -4
- package/types/date-picker/date-picker-view-trigger.d.ts +0 -4
- package/types/date-picker/date-picker-view.d.ts +0 -12
- package/types/date-picker/date-picker-year-select.d.ts +0 -4
- package/types/date-picker/date-picker.d.ts +0 -25
- package/types/date-picker/index.d.ts +0 -32
- package/types/date-picker/use-date-picker.d.ts +0 -17
- package/types/dialog/dialog-backdrop.d.ts +0 -4
- package/types/dialog/dialog-close-trigger.d.ts +0 -4
- package/types/dialog/dialog-content.d.ts +0 -4
- package/types/dialog/dialog-context.d.ts +0 -4
- package/types/dialog/dialog-description.d.ts +0 -4
- package/types/dialog/dialog-positioner.d.ts +0 -4
- package/types/dialog/dialog-root.d.ts +0 -7
- package/types/dialog/dialog-title.d.ts +0 -4
- package/types/dialog/dialog-trigger.d.ts +0 -4
- package/types/dialog/dialog.d.ts +0 -9
- package/types/dialog/index.d.ts +0 -13
- package/types/dialog/use-dialog.d.ts +0 -9
- package/types/editable/editable-area.d.ts +0 -4
- package/types/editable/editable-cancel-trigger.d.ts +0 -4
- package/types/editable/editable-context.d.ts +0 -4
- package/types/editable/editable-control.d.ts +0 -4
- package/types/editable/editable-edit-trigger.d.ts +0 -4
- package/types/editable/editable-input.d.ts +0 -4
- package/types/editable/editable-label.d.ts +0 -4
- package/types/editable/editable-preview.d.ts +0 -4
- package/types/editable/editable-root.d.ts +0 -11
- package/types/editable/editable-submit-trigger.d.ts +0 -4
- package/types/editable/editable.d.ts +0 -10
- package/types/editable/index.d.ts +0 -14
- package/types/editable/use-editable.d.ts +0 -9
- package/types/environment/environment-context.d.ts +0 -3
- package/types/environment/environment.d.ts +0 -6
- package/types/environment/index.d.ts +0 -4
- package/types/factory.d.ts +0 -17
- package/types/file-upload/file-upload-context.d.ts +0 -4
- package/types/file-upload/file-upload-dropzone.d.ts +0 -4
- package/types/file-upload/file-upload-item-context.d.ts +0 -4
- package/types/file-upload/file-upload-item-delete-trigger.d.ts +0 -4
- package/types/file-upload/file-upload-item-group.d.ts +0 -10
- package/types/file-upload/file-upload-item-name.d.ts +0 -4
- package/types/file-upload/file-upload-item-preview-image.d.ts +0 -4
- package/types/file-upload/file-upload-item-preview.d.ts +0 -12
- package/types/file-upload/file-upload-item-size-text.d.ts +0 -4
- package/types/file-upload/file-upload-item.d.ts +0 -6
- package/types/file-upload/file-upload-label.d.ts +0 -4
- package/types/file-upload/file-upload-root.d.ts +0 -11
- package/types/file-upload/file-upload-trigger.d.ts +0 -4
- package/types/file-upload/file-upload.d.ts +0 -12
- package/types/file-upload/index.d.ts +0 -16
- package/types/file-upload/use-file-upload.d.ts +0 -9
- package/types/hover-card/hover-card-arrow-tip.d.ts +0 -4
- package/types/hover-card/hover-card-arrow.d.ts +0 -4
- package/types/hover-card/hover-card-content.d.ts +0 -4
- package/types/hover-card/hover-card-context.d.ts +0 -4
- package/types/hover-card/hover-card-positioner.d.ts +0 -4
- package/types/hover-card/hover-card-root.d.ts +0 -7
- package/types/hover-card/hover-card-trigger.d.ts +0 -4
- package/types/hover-card/hover-card.d.ts +0 -7
- package/types/hover-card/index.d.ts +0 -11
- package/types/hover-card/use-hover-card.d.ts +0 -9
- package/types/index.d.ts +0 -35
- package/types/locale/index.d.ts +0 -2
- package/types/locale/locale-context.d.ts +0 -5
- package/types/locale/locale.d.ts +0 -9
- package/types/menu/index.d.ts +0 -18
- package/types/menu/menu-arrow-tip.d.ts +0 -4
- package/types/menu/menu-arrow.d.ts +0 -4
- package/types/menu/menu-content.d.ts +0 -4
- package/types/menu/menu-context-trigger.d.ts +0 -4
- package/types/menu/menu-context.d.ts +0 -7
- package/types/menu/menu-item-group-label.d.ts +0 -9
- package/types/menu/menu-item-group.d.ts +0 -8
- package/types/menu/menu-item.d.ts +0 -6
- package/types/menu/menu-option-item.d.ts +0 -11
- package/types/menu/menu-positioner.d.ts +0 -4
- package/types/menu/menu-root.d.ts +0 -9
- package/types/menu/menu-separator.d.ts +0 -4
- package/types/menu/menu-trigger-item.d.ts +0 -4
- package/types/menu/menu-trigger.d.ts +0 -4
- package/types/menu/menu.d.ts +0 -14
- package/types/menu/use-menu.d.ts +0 -11
- package/types/number-input/index.d.ts +0 -12
- package/types/number-input/number-input-context.d.ts +0 -4
- package/types/number-input/number-input-control.d.ts +0 -4
- package/types/number-input/number-input-decrement-trigger.d.ts +0 -4
- package/types/number-input/number-input-increment-trigger.d.ts +0 -4
- package/types/number-input/number-input-input.d.ts +0 -4
- package/types/number-input/number-input-label.d.ts +0 -4
- package/types/number-input/number-input-root.d.ts +0 -11
- package/types/number-input/number-input-scrubber.d.ts +0 -4
- package/types/number-input/number-input.d.ts +0 -8
- package/types/number-input/use-number-input.d.ts +0 -9
- package/types/pagination/index.d.ts +0 -10
- package/types/pagination/pagination-context.d.ts +0 -4
- package/types/pagination/pagination-ellipsis.d.ts +0 -6
- package/types/pagination/pagination-item.d.ts +0 -6
- package/types/pagination/pagination-next-trigger.d.ts +0 -4
- package/types/pagination/pagination-prev-trigger.d.ts +0 -4
- package/types/pagination/pagination-root.d.ts +0 -11
- package/types/pagination/pagination.d.ts +0 -6
- package/types/pagination/use-pagination.d.ts +0 -9
- package/types/pin-input/index.d.ts +0 -9
- package/types/pin-input/pin-input-context.d.ts +0 -4
- package/types/pin-input/pin-input-control.d.ts +0 -4
- package/types/pin-input/pin-input-input.d.ts +0 -9
- package/types/pin-input/pin-input-label.d.ts +0 -4
- package/types/pin-input/pin-input-root.d.ts +0 -6
- package/types/pin-input/pin-input.d.ts +0 -5
- package/types/pin-input/use-pin-input.d.ts +0 -9
- package/types/popover/index.d.ts +0 -16
- package/types/popover/popover-anchor.d.ts +0 -4
- package/types/popover/popover-arrow-tip.d.ts +0 -4
- package/types/popover/popover-arrow.d.ts +0 -4
- package/types/popover/popover-close-trigger.d.ts +0 -4
- package/types/popover/popover-content.d.ts +0 -4
- package/types/popover/popover-context.d.ts +0 -4
- package/types/popover/popover-description.d.ts +0 -4
- package/types/popover/popover-indicator.d.ts +0 -4
- package/types/popover/popover-positioner.d.ts +0 -4
- package/types/popover/popover-root.d.ts +0 -7
- package/types/popover/popover-title.d.ts +0 -4
- package/types/popover/popover-trigger.d.ts +0 -4
- package/types/popover/popover.d.ts +0 -12
- package/types/popover/use-popover.d.ts +0 -9
- package/types/presence/index.d.ts +0 -7
- package/types/presence/presence-context.d.ts +0 -4
- package/types/presence/presence-props-context.d.ts +0 -4
- package/types/presence/presence.d.ts +0 -6
- package/types/presence/split-presence-props.d.ts +0 -2
- package/types/presence/use-presence.d.ts +0 -25
- package/types/progress/index.d.ts +0 -13
- package/types/progress/progress-circle-range.d.ts +0 -4
- package/types/progress/progress-circle-track.d.ts +0 -4
- package/types/progress/progress-circle.d.ts +0 -4
- package/types/progress/progress-context.d.ts +0 -4
- package/types/progress/progress-label.d.ts +0 -4
- package/types/progress/progress-range.d.ts +0 -4
- package/types/progress/progress-root.d.ts +0 -11
- package/types/progress/progress-track.d.ts +0 -4
- package/types/progress/progress-value-text.d.ts +0 -4
- package/types/progress/progress-view.d.ts +0 -6
- package/types/progress/progress.d.ts +0 -10
- package/types/progress/use-progress.d.ts +0 -9
- package/types/radio-group/index.d.ts +0 -12
- package/types/radio-group/radio-group-context.d.ts +0 -4
- package/types/radio-group/radio-group-indicator.d.ts +0 -4
- package/types/radio-group/radio-group-item-context.d.ts +0 -4
- package/types/radio-group/radio-group-item-control.d.ts +0 -4
- package/types/radio-group/radio-group-item-text.d.ts +0 -4
- package/types/radio-group/radio-group-item.d.ts +0 -11
- package/types/radio-group/radio-group-label.d.ts +0 -4
- package/types/radio-group/radio-group-root.d.ts +0 -6
- package/types/radio-group/radio-group.d.ts +0 -7
- package/types/radio-group/use-radio-group.d.ts +0 -9
- package/types/rating-group/index.d.ts +0 -10
- package/types/rating-group/rating-group-context.d.ts +0 -4
- package/types/rating-group/rating-group-control.d.ts +0 -11
- package/types/rating-group/rating-group-item-context.d.ts +0 -4
- package/types/rating-group/rating-group-item.d.ts +0 -11
- package/types/rating-group/rating-group-label.d.ts +0 -4
- package/types/rating-group/rating-group-root.d.ts +0 -6
- package/types/rating-group/rating-group.d.ts +0 -5
- package/types/rating-group/use-rating-group.d.ts +0 -9
- package/types/run-if-fn.d.ts +0 -2
- package/types/segment-group/index.d.ts +0 -12
- package/types/segment-group/segment-group-context.d.ts +0 -4
- package/types/segment-group/segment-group-indicator.d.ts +0 -4
- package/types/segment-group/segment-group-item-context.d.ts +0 -4
- package/types/segment-group/segment-group-item-control.d.ts +0 -4
- package/types/segment-group/segment-group-item-text.d.ts +0 -4
- package/types/segment-group/segment-group-item.d.ts +0 -12
- package/types/segment-group/segment-group-label.d.ts +0 -4
- package/types/segment-group/segment-group-root.d.ts +0 -6
- package/types/segment-group/segment-group.d.ts +0 -7
- package/types/segment-group/use-segment-group.d.ts +0 -9
- package/types/select/index.d.ts +0 -21
- package/types/select/select-clear-trigger.d.ts +0 -4
- package/types/select/select-content.d.ts +0 -4
- package/types/select/select-context.d.ts +0 -5
- package/types/select/select-control.d.ts +0 -4
- package/types/select/select-indicator.d.ts +0 -4
- package/types/select/select-item-context.d.ts +0 -4
- package/types/select/select-item-group-label.d.ts +0 -9
- package/types/select/select-item-group.d.ts +0 -6
- package/types/select/select-item-indicator.d.ts +0 -4
- package/types/select/select-item-text.d.ts +0 -4
- package/types/select/select-item.d.ts +0 -11
- package/types/select/select-label.d.ts +0 -4
- package/types/select/select-positioner.d.ts +0 -4
- package/types/select/select-root.d.ts +0 -10
- package/types/select/select-trigger.d.ts +0 -4
- package/types/select/select-value-text.d.ts +0 -8
- package/types/select/select.d.ts +0 -15
- package/types/select/use-select.d.ts +0 -10
- package/types/slider/index.d.ts +0 -14
- package/types/slider/slider-context.d.ts +0 -4
- package/types/slider/slider-control.d.ts +0 -4
- package/types/slider/slider-label.d.ts +0 -4
- package/types/slider/slider-marker-group.d.ts +0 -4
- package/types/slider/slider-marker.d.ts +0 -6
- package/types/slider/slider-range.d.ts +0 -4
- package/types/slider/slider-root.d.ts +0 -11
- package/types/slider/slider-thumb.d.ts +0 -6
- package/types/slider/slider-track.d.ts +0 -4
- package/types/slider/slider-value-text.d.ts +0 -4
- package/types/slider/slider.d.ts +0 -10
- package/types/slider/use-slider.d.ts +0 -9
- package/types/splitter/index.d.ts +0 -8
- package/types/splitter/splitter-context.d.ts +0 -4
- package/types/splitter/splitter-panel.d.ts +0 -8
- package/types/splitter/splitter-resize-trigger.d.ts +0 -8
- package/types/splitter/splitter-root.d.ts +0 -11
- package/types/splitter/splitter.d.ts +0 -4
- package/types/splitter/use-splitter.d.ts +0 -9
- package/types/switch/index.d.ts +0 -9
- package/types/switch/switch-context.d.ts +0 -4
- package/types/switch/switch-control.d.ts +0 -4
- package/types/switch/switch-label.d.ts +0 -4
- package/types/switch/switch-root.d.ts +0 -11
- package/types/switch/switch-thumb.d.ts +0 -4
- package/types/switch/switch.d.ts +0 -5
- package/types/switch/use-switch.d.ts +0 -9
- package/types/tabs/index.d.ts +0 -10
- package/types/tabs/tab-content.d.ts +0 -6
- package/types/tabs/tab-indicator.d.ts +0 -4
- package/types/tabs/tab-list.d.ts +0 -4
- package/types/tabs/tab-trigger.d.ts +0 -6
- package/types/tabs/tabs-context.d.ts +0 -4
- package/types/tabs/tabs-root.d.ts +0 -10
- package/types/tabs/tabs.d.ts +0 -6
- package/types/tabs/use-tabs.d.ts +0 -9
- package/types/tags-input/index.d.ts +0 -16
- package/types/tags-input/tags-input-clear-trigger.d.ts +0 -4
- package/types/tags-input/tags-input-context.d.ts +0 -4
- package/types/tags-input/tags-input-control.d.ts +0 -4
- package/types/tags-input/tags-input-input.d.ts +0 -4
- package/types/tags-input/tags-input-item-context.d.ts +0 -4
- package/types/tags-input/tags-input-item-delete-trigger.d.ts +0 -4
- package/types/tags-input/tags-input-item-input.d.ts +0 -4
- package/types/tags-input/tags-input-item-preview.d.ts +0 -4
- package/types/tags-input/tags-input-item-text.d.ts +0 -4
- package/types/tags-input/tags-input-item.d.ts +0 -11
- package/types/tags-input/tags-input-label.d.ts +0 -4
- package/types/tags-input/tags-input-root.d.ts +0 -11
- package/types/tags-input/tags-input.d.ts +0 -11
- package/types/tags-input/use-tags-input.d.ts +0 -9
- package/types/toast/create-toaster.d.ts +0 -17
- package/types/toast/index.d.ts +0 -9
- package/types/toast/toast-close-trigger.d.ts +0 -4
- package/types/toast/toast-context.d.ts +0 -11
- package/types/toast/toast-description.d.ts +0 -4
- package/types/toast/toast-group.d.ts +0 -4
- package/types/toast/toast-root.d.ts +0 -4
- package/types/toast/toast-title.d.ts +0 -4
- package/types/toast/toast.d.ts +0 -6
- package/types/toggle-group/index.d.ts +0 -7
- package/types/toggle-group/toggle-group-context.d.ts +0 -4
- package/types/toggle-group/toggle-group-item.d.ts +0 -6
- package/types/toggle-group/toggle-group-root.d.ts +0 -6
- package/types/toggle-group/toggle-group.d.ts +0 -3
- package/types/toggle-group/use-toggle-group.d.ts +0 -9
- package/types/tooltip/index.d.ts +0 -11
- package/types/tooltip/tooltip-arrow-tip.d.ts +0 -4
- package/types/tooltip/tooltip-arrow.d.ts +0 -4
- package/types/tooltip/tooltip-content.d.ts +0 -4
- package/types/tooltip/tooltip-context.d.ts +0 -4
- package/types/tooltip/tooltip-positioner.d.ts +0 -4
- package/types/tooltip/tooltip-root.d.ts +0 -7
- package/types/tooltip/tooltip-trigger.d.ts +0 -4
- package/types/tooltip/tooltip.d.ts +0 -7
- package/types/tooltip/use-tooltip.d.ts +0 -9
- package/types/tree-view/index.d.ts +0 -17
- package/types/tree-view/tree-view-branch-content.d.ts +0 -4
- package/types/tree-view/tree-view-branch-context.d.ts +0 -6
- package/types/tree-view/tree-view-branch-control.d.ts +0 -4
- package/types/tree-view/tree-view-branch-indicator.d.ts +0 -4
- package/types/tree-view/tree-view-branch-text.d.ts +0 -4
- package/types/tree-view/tree-view-branch-trigger.d.ts +0 -4
- package/types/tree-view/tree-view-branch.d.ts +0 -12
- package/types/tree-view/tree-view-context.d.ts +0 -4
- package/types/tree-view/tree-view-depth-context.d.ts +0 -2
- package/types/tree-view/tree-view-item-context.d.ts +0 -6
- package/types/tree-view/tree-view-item-indicator.d.ts +0 -4
- package/types/tree-view/tree-view-item-text.d.ts +0 -4
- package/types/tree-view/tree-view-item.d.ts +0 -12
- package/types/tree-view/tree-view-label.d.ts +0 -4
- package/types/tree-view/tree-view-root.d.ts +0 -11
- package/types/tree-view/tree-view-tree.d.ts +0 -4
- package/types/tree-view/tree-view.d.ts +0 -13
- package/types/tree-view/use-tree-view.d.ts +0 -9
- package/types/types.d.ts +0 -5
package/esm/index.js
DELETED
|
@@ -1,3862 +0,0 @@
|
|
|
1
|
-
import { createComponent, Dynamic, mergeProps, memo, use, template, spread, insert, effect } from 'solid-js/web';
|
|
2
|
-
import { createContext as createContext$1, useContext, splitProps, createSignal, createMemo, createEffect, Show, createUniqueId, children, Index, onCleanup } from 'solid-js';
|
|
3
|
-
import { useMachine, normalizeProps, mergeProps as mergeProps$1, useActor } from '@zag-js/solid';
|
|
4
|
-
import * as presence from '@zag-js/presence';
|
|
5
|
-
import * as accordion$1 from '@zag-js/accordion';
|
|
6
|
-
import * as avatar$1 from '@zag-js/avatar';
|
|
7
|
-
import { carouselAnatomy, colorPickerAnatomy, datePickerAnatomy, segmentGroupAnatomy, selectAnatomy, treeViewAnatomy } from '@ark-ui/anatomy';
|
|
8
|
-
import * as carousel$1 from '@zag-js/carousel';
|
|
9
|
-
import * as checkbox$1 from '@zag-js/checkbox';
|
|
10
|
-
import * as clipboard$1 from '@zag-js/clipboard';
|
|
11
|
-
import * as colorPicker$1 from '@zag-js/color-picker';
|
|
12
|
-
import * as combobox$1 from '@zag-js/combobox';
|
|
13
|
-
import * as datePicker$1 from '@zag-js/date-picker';
|
|
14
|
-
import * as dialog$1 from '@zag-js/dialog';
|
|
15
|
-
import * as editable$1 from '@zag-js/editable';
|
|
16
|
-
import * as fileUpload$1 from '@zag-js/file-upload';
|
|
17
|
-
import * as hoverCard$1 from '@zag-js/hover-card';
|
|
18
|
-
import { trackLocale, isRTL } from '@zag-js/i18n-utils';
|
|
19
|
-
import * as menu$1 from '@zag-js/menu';
|
|
20
|
-
import * as numberInput$1 from '@zag-js/number-input';
|
|
21
|
-
import * as pagination$1 from '@zag-js/pagination';
|
|
22
|
-
import * as pinInput$1 from '@zag-js/pin-input';
|
|
23
|
-
import * as popover$1 from '@zag-js/popover';
|
|
24
|
-
import * as progress$1 from '@zag-js/progress';
|
|
25
|
-
import * as radio from '@zag-js/radio-group';
|
|
26
|
-
import * as rating from '@zag-js/rating-group';
|
|
27
|
-
import * as select$1 from '@zag-js/select';
|
|
28
|
-
import * as slider$1 from '@zag-js/slider';
|
|
29
|
-
import * as splitter$1 from '@zag-js/splitter';
|
|
30
|
-
import * as zagSwitch from '@zag-js/switch';
|
|
31
|
-
import * as tabs$1 from '@zag-js/tabs';
|
|
32
|
-
import * as tagsInput$1 from '@zag-js/tags-input';
|
|
33
|
-
import * as toast$1 from '@zag-js/toast';
|
|
34
|
-
import * as toggleGroup$1 from '@zag-js/toggle-group';
|
|
35
|
-
import * as tooltip$1 from '@zag-js/tooltip';
|
|
36
|
-
import * as treeView$1 from '@zag-js/tree-view';
|
|
37
|
-
|
|
38
|
-
function getErrorMessage(hook, provider) {
|
|
39
|
-
return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
|
|
40
|
-
}
|
|
41
|
-
function createContext(options = {}) {
|
|
42
|
-
const {
|
|
43
|
-
strict = true,
|
|
44
|
-
hookName = 'useContext',
|
|
45
|
-
providerName = 'Provider',
|
|
46
|
-
errorMessage
|
|
47
|
-
} = options;
|
|
48
|
-
const Context = createContext$1(undefined);
|
|
49
|
-
function useContext$1() {
|
|
50
|
-
const context = useContext(Context);
|
|
51
|
-
if (!context && strict) {
|
|
52
|
-
const error = new Error(errorMessage ?? getErrorMessage(hookName, providerName));
|
|
53
|
-
error.name = 'ContextError';
|
|
54
|
-
Error.captureStackTrace?.(error, useContext$1);
|
|
55
|
-
throw error;
|
|
56
|
-
}
|
|
57
|
-
return context;
|
|
58
|
-
}
|
|
59
|
-
return [Context.Provider, useContext$1, Context];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const [AccordionProvider, useAccordionContext] = createContext({
|
|
63
|
-
hookName: 'useAccordionContext',
|
|
64
|
-
providerName: '<AccordionProvider />'
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
const createSplitProps = () => (props, keys) => splitProps(props, keys);
|
|
68
|
-
|
|
69
|
-
const withAsProp = Component => {
|
|
70
|
-
const ArkComponent = props => {
|
|
71
|
-
const [localProps, otherProps] = splitProps(props, ['as']);
|
|
72
|
-
return createComponent(Dynamic, mergeProps({
|
|
73
|
-
get component() {
|
|
74
|
-
return localProps.as || Component;
|
|
75
|
-
}
|
|
76
|
-
}, otherProps));
|
|
77
|
-
};
|
|
78
|
-
return ArkComponent;
|
|
79
|
-
};
|
|
80
|
-
function jsxFactory() {
|
|
81
|
-
const cache = new Map();
|
|
82
|
-
return new Proxy(withAsProp, {
|
|
83
|
-
apply(target, thisArg, argArray) {
|
|
84
|
-
return withAsProp(argArray[0]);
|
|
85
|
-
},
|
|
86
|
-
get(_, element) {
|
|
87
|
-
const asElement = element;
|
|
88
|
-
if (!cache.has(asElement)) {
|
|
89
|
-
cache.set(asElement, withAsProp(asElement));
|
|
90
|
-
}
|
|
91
|
-
return cache.get(asElement);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
const ark = jsxFactory();
|
|
96
|
-
|
|
97
|
-
function splitPresenceProps(props) {
|
|
98
|
-
return createSplitProps()(props, ['lazyMount', 'onExitComplete', 'present', 'unmountOnExit']);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const usePresence = props => {
|
|
102
|
-
const [localProps, machineProps] = splitProps(props, ['lazyMount', 'unmountOnExit']);
|
|
103
|
-
const [wasEverPresent, setWasEverPresent] = createSignal(false);
|
|
104
|
-
const [state, send] = useMachine(presence.machine(machineProps), {
|
|
105
|
-
context: machineProps
|
|
106
|
-
});
|
|
107
|
-
const api = createMemo(() => presence.connect(state, send, normalizeProps));
|
|
108
|
-
createEffect(() => {
|
|
109
|
-
const isPresent = api().isPresent;
|
|
110
|
-
if (isPresent) setWasEverPresent(true);
|
|
111
|
-
});
|
|
112
|
-
return createMemo(() => ({
|
|
113
|
-
isUnmounted: !api().isPresent && !wasEverPresent() && localProps.lazyMount || localProps.unmountOnExit && !api().isPresent && wasEverPresent(),
|
|
114
|
-
isPresent: api().isPresent,
|
|
115
|
-
presenceProps: {
|
|
116
|
-
ref: api().setNode,
|
|
117
|
-
hidden: !api().isPresent,
|
|
118
|
-
'data-state': machineProps.present ? 'open' : 'closed'
|
|
119
|
-
}
|
|
120
|
-
}));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const Presence = props => {
|
|
124
|
-
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
125
|
-
const api = usePresence(presenceProps);
|
|
126
|
-
const mergedProps = mergeProps$1(() => api().presenceProps, localProps);
|
|
127
|
-
return createComponent(Show, {
|
|
128
|
-
get when() {
|
|
129
|
-
return !api().isUnmounted;
|
|
130
|
-
},
|
|
131
|
-
get children() {
|
|
132
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
133
|
-
"data-scope": "presence",
|
|
134
|
-
"data-part": "root"
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const [PresenceProvider, usePresenceContext] = createContext({
|
|
141
|
-
hookName: 'usePresenceContext',
|
|
142
|
-
providerName: '<PresenceProvider />'
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
const [PresencePropsProvider, usePresencePropsContext] = createContext({
|
|
146
|
-
hookName: 'usePresencePropsContext',
|
|
147
|
-
providerName: '<PresencePropsProvider />'
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
const isFunction = value => typeof value === 'function';
|
|
151
|
-
const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
|
152
|
-
|
|
153
|
-
const [AccordionItemProvider, useAccordionItemContext] = createContext({
|
|
154
|
-
hookName: 'useAccordionItemContext',
|
|
155
|
-
providerName: '<AccordionItemProvider />'
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
const AccordionItem = props => {
|
|
159
|
-
const [itemProps, localProps] = createSplitProps()(props, ['value', 'disabled']);
|
|
160
|
-
const api = useAccordionContext();
|
|
161
|
-
const presenceProps = usePresencePropsContext();
|
|
162
|
-
const presenceApi = usePresence(mergeProps$1(presenceProps, () => ({
|
|
163
|
-
present: api().getItemState(itemProps).isOpen
|
|
164
|
-
})));
|
|
165
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
166
|
-
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
167
|
-
return createComponent(AccordionItemProvider, {
|
|
168
|
-
value: itemProps,
|
|
169
|
-
get children() {
|
|
170
|
-
return createComponent(PresenceProvider, {
|
|
171
|
-
value: presenceApi,
|
|
172
|
-
get children() {
|
|
173
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
174
|
-
get children() {
|
|
175
|
-
return getChildren();
|
|
176
|
-
}
|
|
177
|
-
}));
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
const AccordionItemContent = props => {
|
|
185
|
-
const api = useAccordionContext();
|
|
186
|
-
const accordionItem = useAccordionItemContext();
|
|
187
|
-
const presenceApi = usePresenceContext();
|
|
188
|
-
const mergedProps = mergeProps$1(() => api().getItemContentProps(accordionItem), () => presenceApi().presenceProps, props);
|
|
189
|
-
return createComponent(Show, {
|
|
190
|
-
get when() {
|
|
191
|
-
return !presenceApi().isUnmounted;
|
|
192
|
-
},
|
|
193
|
-
get children() {
|
|
194
|
-
return createComponent(ark.div, mergedProps);
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
const AccordionItemIndicator = props => {
|
|
200
|
-
const api = useAccordionContext();
|
|
201
|
-
const itemParams = useAccordionItemContext();
|
|
202
|
-
const mergedProps = mergeProps$1(() => api().getItemIndicatorProps(itemParams), props);
|
|
203
|
-
return createComponent(ark.div, mergedProps);
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
const AccordionItemTrigger = props => {
|
|
207
|
-
const api = useAccordionContext();
|
|
208
|
-
const item = useAccordionItemContext();
|
|
209
|
-
const presenceApi = usePresenceContext();
|
|
210
|
-
const mergedProps = mergeProps$1(() => api().getItemTriggerProps(item), () => ({
|
|
211
|
-
'aria-controls': presenceApi().isUnmounted && null
|
|
212
|
-
}), props);
|
|
213
|
-
return createComponent(ark.button, mergedProps);
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
const [EnvironmentProvider, useEnvironmentContext] = createContext({
|
|
217
|
-
hookName: 'useEnvironmentContext',
|
|
218
|
-
providerName: '<EnvironmentProvider />',
|
|
219
|
-
strict: false
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
var _tmpl$$c = /*#__PURE__*/template(`<span hidden>`);
|
|
223
|
-
const Environment = props => {
|
|
224
|
-
// eslint-disable-next-line prefer-const
|
|
225
|
-
let spanRef = undefined;
|
|
226
|
-
const currentEnv = createMemo(() => () => props.value ?? spanRef?.ownerDocument ?? document);
|
|
227
|
-
return createComponent(EnvironmentProvider, {
|
|
228
|
-
get value() {
|
|
229
|
-
return currentEnv();
|
|
230
|
-
},
|
|
231
|
-
get children() {
|
|
232
|
-
return [memo(() => props.children), memo(() => memo(() => !!!props.value)() && (() => {
|
|
233
|
-
var _el$ = _tmpl$$c();
|
|
234
|
-
var _ref$ = spanRef;
|
|
235
|
-
typeof _ref$ === "function" ? use(_ref$, _el$) : spanRef = _el$;
|
|
236
|
-
return _el$;
|
|
237
|
-
})())];
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
const useAccordion = props => {
|
|
243
|
-
const getRootNode = useEnvironmentContext();
|
|
244
|
-
const context = mergeProps$1({
|
|
245
|
-
id: createUniqueId(),
|
|
246
|
-
getRootNode
|
|
247
|
-
}, props);
|
|
248
|
-
const [state, send] = useMachine(accordion$1.machine(context), {
|
|
249
|
-
context
|
|
250
|
-
});
|
|
251
|
-
return createMemo(() => accordion$1.connect(state, send, normalizeProps));
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
const AccordionRoot = props => {
|
|
255
|
-
const [presenceProps, accordionProps] = splitPresenceProps(props);
|
|
256
|
-
const [useAccordionProps, localProps] = createSplitProps()(accordionProps, ['collapsible', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'multiple', 'onFocusChange', 'onValueChange', 'orientation', 'value']);
|
|
257
|
-
const api = useAccordion(useAccordionProps);
|
|
258
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
259
|
-
return createComponent(AccordionProvider, {
|
|
260
|
-
value: api,
|
|
261
|
-
get children() {
|
|
262
|
-
return createComponent(PresencePropsProvider, {
|
|
263
|
-
value: presenceProps,
|
|
264
|
-
get children() {
|
|
265
|
-
return createComponent(ark.div, mergedProps);
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
var accordion = /*#__PURE__*/Object.freeze({
|
|
273
|
-
__proto__: null,
|
|
274
|
-
Item: AccordionItem,
|
|
275
|
-
ItemContent: AccordionItemContent,
|
|
276
|
-
ItemIndicator: AccordionItemIndicator,
|
|
277
|
-
ItemTrigger: AccordionItemTrigger,
|
|
278
|
-
Root: AccordionRoot
|
|
279
|
-
});
|
|
280
|
-
|
|
281
|
-
const [AvatarProvider, useAvatarContext] = createContext({
|
|
282
|
-
hookName: 'useAvatarContext',
|
|
283
|
-
providerName: '<AvatarProvider />'
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
const AvatarFallback = props => {
|
|
287
|
-
const avatar = useAvatarContext();
|
|
288
|
-
const mergedProps = mergeProps$1(() => avatar().fallbackProps, props);
|
|
289
|
-
return createComponent(ark.span, mergedProps);
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
const AvatarImage = props => {
|
|
293
|
-
const avatar = useAvatarContext();
|
|
294
|
-
const mergedProps = mergeProps$1(() => avatar().imageProps, props);
|
|
295
|
-
return createComponent(ark.img, mergedProps);
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
const useAvatar = props => {
|
|
299
|
-
const getRootNode = useEnvironmentContext();
|
|
300
|
-
const context = mergeProps$1({
|
|
301
|
-
id: createUniqueId(),
|
|
302
|
-
getRootNode
|
|
303
|
-
}, props);
|
|
304
|
-
const [state, send] = useMachine(avatar$1.machine(context), {
|
|
305
|
-
context
|
|
306
|
-
});
|
|
307
|
-
return createMemo(() => avatar$1.connect(state, send, normalizeProps));
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
const AvatarRoot = props => {
|
|
311
|
-
const [params, localProps] = createSplitProps()(props, ['dir', 'getRootNode', 'id', 'onLoadingStatusChange']);
|
|
312
|
-
const api = useAvatar(params);
|
|
313
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
314
|
-
return createComponent(AvatarProvider, {
|
|
315
|
-
value: api,
|
|
316
|
-
get children() {
|
|
317
|
-
return createComponent(ark.div, mergedProps);
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
var avatar = /*#__PURE__*/Object.freeze({
|
|
323
|
-
__proto__: null,
|
|
324
|
-
Fallback: AvatarFallback,
|
|
325
|
-
Image: AvatarImage,
|
|
326
|
-
Root: AvatarRoot
|
|
327
|
-
});
|
|
328
|
-
|
|
329
|
-
const [CarouselProvider, useCarouselContext] = createContext({
|
|
330
|
-
hookName: 'useCarouselContext',
|
|
331
|
-
providerName: '<CarouselProvider />'
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
const CarouselControl = props => {
|
|
335
|
-
const mergedProps = mergeProps$1(() => carouselAnatomy.build().control.attrs, props);
|
|
336
|
-
return createComponent(ark.div, mergedProps);
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
const CarouselIndicator = props => {
|
|
340
|
-
const [indicatorProps, localProps] = createSplitProps()(props, ['index', 'readOnly']);
|
|
341
|
-
const api = useCarouselContext();
|
|
342
|
-
const mergedProps = mergeProps$1(() => api().getIndicatorProps(indicatorProps), localProps);
|
|
343
|
-
return createComponent(ark.button, mergedProps);
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
const CarouselIndicatorGroup = props => {
|
|
347
|
-
const api = useCarouselContext();
|
|
348
|
-
const mergedProps = mergeProps$1(() => api().indicatorGroupProps, props);
|
|
349
|
-
return createComponent(ark.div, mergedProps);
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
const CarouselItem = props => {
|
|
353
|
-
const [slideParams, localProps] = createSplitProps()(props, ['index']);
|
|
354
|
-
const api = useCarouselContext();
|
|
355
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(slideParams), localProps);
|
|
356
|
-
return createComponent(ark.div, mergedProps);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
const CarouselItemGroup = props => {
|
|
360
|
-
const api = useCarouselContext();
|
|
361
|
-
const mergedProps = mergeProps$1(() => api().itemGroupProps, props);
|
|
362
|
-
return createComponent(ark.div, mergedProps);
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
const CarouselNextTrigger = props => {
|
|
366
|
-
const api = useCarouselContext();
|
|
367
|
-
const mergedProps = mergeProps$1(() => api().nextTriggerProps, props);
|
|
368
|
-
return createComponent(ark.button, mergedProps);
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
const CarouselPrevTrigger = props => {
|
|
372
|
-
const api = useCarouselContext();
|
|
373
|
-
const mergedProps = mergeProps$1(() => api().prevTriggerProps, props);
|
|
374
|
-
return createComponent(ark.button, mergedProps);
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
const useCarousel = props => {
|
|
378
|
-
const getRootNode = useEnvironmentContext();
|
|
379
|
-
const context = mergeProps$1({
|
|
380
|
-
id: createUniqueId(),
|
|
381
|
-
getRootNode
|
|
382
|
-
}, props);
|
|
383
|
-
const [state, send] = useMachine(carousel$1.machine(context), {
|
|
384
|
-
context
|
|
385
|
-
});
|
|
386
|
-
return createMemo(() => carousel$1.connect(state, send, normalizeProps));
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
const CarouselRoot = props => {
|
|
390
|
-
const [useCarouselProps, localProps] = createSplitProps()(props, ['align', 'dir', 'getRootNode', 'id', 'ids', 'index', 'loop', 'onIndexChange', 'orientation', 'slidesPerView', 'spacing']);
|
|
391
|
-
const api = useCarousel(useCarouselProps);
|
|
392
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
393
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
394
|
-
return createComponent(CarouselProvider, {
|
|
395
|
-
value: api,
|
|
396
|
-
get children() {
|
|
397
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
398
|
-
get children() {
|
|
399
|
-
return getChildren();
|
|
400
|
-
}
|
|
401
|
-
}));
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
const CarouselViewport = props => {
|
|
407
|
-
const api = useCarouselContext();
|
|
408
|
-
const mergedProps = mergeProps$1(() => api().viewportProps, props);
|
|
409
|
-
return createComponent(ark.div, mergedProps);
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
var carousel = /*#__PURE__*/Object.freeze({
|
|
413
|
-
__proto__: null,
|
|
414
|
-
Control: CarouselControl,
|
|
415
|
-
Indicator: CarouselIndicator,
|
|
416
|
-
IndicatorGroup: CarouselIndicatorGroup,
|
|
417
|
-
Item: CarouselItem,
|
|
418
|
-
ItemGroup: CarouselItemGroup,
|
|
419
|
-
NextTrigger: CarouselNextTrigger,
|
|
420
|
-
PrevTrigger: CarouselPrevTrigger,
|
|
421
|
-
Root: CarouselRoot,
|
|
422
|
-
Viewport: CarouselViewport
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
const [CheckboxProvider, useCheckboxContext] = createContext({
|
|
426
|
-
hookName: 'useCheckboxContext',
|
|
427
|
-
providerName: '<CheckboxProvider />'
|
|
428
|
-
});
|
|
429
|
-
|
|
430
|
-
var _tmpl$$b = /*#__PURE__*/template(`<input>`);
|
|
431
|
-
const CheckboxControl = props => {
|
|
432
|
-
const api = useCheckboxContext();
|
|
433
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
434
|
-
return [createComponent(ark.div, mergedProps), (() => {
|
|
435
|
-
var _el$ = _tmpl$$b();
|
|
436
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
437
|
-
return _el$;
|
|
438
|
-
})()];
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
const CheckboxIndicator = props => {
|
|
442
|
-
const api = useCheckboxContext();
|
|
443
|
-
const mergedProps = mergeProps$1(() => api().indicatorProps, props);
|
|
444
|
-
return createComponent(ark.div, mergedProps);
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
const CheckboxLabel = props => {
|
|
448
|
-
const checkbox = useCheckboxContext();
|
|
449
|
-
const mergedProps = mergeProps$1(() => checkbox().labelProps, props);
|
|
450
|
-
return createComponent(ark.span, mergedProps);
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
const useCheckbox = props => {
|
|
454
|
-
const getRootNode = useEnvironmentContext();
|
|
455
|
-
const context = mergeProps$1({
|
|
456
|
-
id: createUniqueId(),
|
|
457
|
-
getRootNode
|
|
458
|
-
}, props);
|
|
459
|
-
const [state, send] = useMachine(checkbox$1.machine(context), {
|
|
460
|
-
context
|
|
461
|
-
});
|
|
462
|
-
return createMemo(() => checkbox$1.connect(state, send, normalizeProps));
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
const CheckboxRoot = props => {
|
|
466
|
-
const [useCheckboxProps, labelprops] = createSplitProps()(props, ['checked', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'name', 'onCheckedChange', 'required', 'value']);
|
|
467
|
-
const api = useCheckbox(useCheckboxProps);
|
|
468
|
-
const mergedProps = mergeProps$1(() => api().rootProps, labelprops);
|
|
469
|
-
const getChildren = () => runIfFn(props.children, api);
|
|
470
|
-
return createComponent(CheckboxProvider, {
|
|
471
|
-
value: api,
|
|
472
|
-
get children() {
|
|
473
|
-
return createComponent(ark.label, mergeProps(mergedProps, {
|
|
474
|
-
get children() {
|
|
475
|
-
return getChildren();
|
|
476
|
-
}
|
|
477
|
-
}));
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
var checkbox = /*#__PURE__*/Object.freeze({
|
|
483
|
-
__proto__: null,
|
|
484
|
-
Control: CheckboxControl,
|
|
485
|
-
Indicator: CheckboxIndicator,
|
|
486
|
-
Label: CheckboxLabel,
|
|
487
|
-
Root: CheckboxRoot
|
|
488
|
-
});
|
|
489
|
-
|
|
490
|
-
const [ClipboardProvider, useClipboardContext] = createContext({
|
|
491
|
-
hookName: 'useClipboardContext',
|
|
492
|
-
providerName: '<ClipboardProvider />'
|
|
493
|
-
});
|
|
494
|
-
|
|
495
|
-
const ClipboardControl = props => {
|
|
496
|
-
const api = useClipboardContext();
|
|
497
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
498
|
-
return createComponent(ark.div, mergedProps);
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
const ClipboardIndicator = props => {
|
|
502
|
-
const [indicatorProps, localProps] = createSplitProps()(props, ['copied']);
|
|
503
|
-
const api = useClipboardContext();
|
|
504
|
-
const mergedProps = mergeProps$1(api().getIndicatorProps({
|
|
505
|
-
copied: api().isCopied
|
|
506
|
-
}), localProps);
|
|
507
|
-
const getChildren = children(() => localProps.children);
|
|
508
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
509
|
-
get children() {
|
|
510
|
-
return createComponent(Show, {
|
|
511
|
-
get when() {
|
|
512
|
-
return api().isCopied;
|
|
513
|
-
},
|
|
514
|
-
get fallback() {
|
|
515
|
-
return getChildren();
|
|
516
|
-
},
|
|
517
|
-
get children() {
|
|
518
|
-
return indicatorProps.copied;
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
}));
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
const ClipboardInput = props => {
|
|
526
|
-
const api = useClipboardContext();
|
|
527
|
-
const mergedProps = mergeProps$1(() => api().inputProps, props);
|
|
528
|
-
return createComponent(ark.input, mergedProps);
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
const ClipboardLabel = props => {
|
|
532
|
-
const api = useClipboardContext();
|
|
533
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
534
|
-
return createComponent(ark.label, mergedProps);
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
const useClipboard = props => {
|
|
538
|
-
const getRootNode = useEnvironmentContext();
|
|
539
|
-
const context = mergeProps$1({
|
|
540
|
-
id: createUniqueId(),
|
|
541
|
-
getRootNode
|
|
542
|
-
}, props);
|
|
543
|
-
const [state, send] = useMachine(clipboard$1.machine(context), {
|
|
544
|
-
context
|
|
545
|
-
});
|
|
546
|
-
return createMemo(() => clipboard$1.connect(state, send, normalizeProps));
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
const ClipboardRoot = props => {
|
|
550
|
-
const [useClipboardProps, localProps] = createSplitProps()(props, ['getRootNode', 'id', 'ids', 'value', 'timeout', 'onCopyStatusChange']);
|
|
551
|
-
const api = useClipboard(useClipboardProps);
|
|
552
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
553
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
554
|
-
return createComponent(ClipboardProvider, {
|
|
555
|
-
value: api,
|
|
556
|
-
get children() {
|
|
557
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
558
|
-
get children() {
|
|
559
|
-
return getChildren();
|
|
560
|
-
}
|
|
561
|
-
}));
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
const ClipboardTrigger = props => {
|
|
567
|
-
const api = useClipboardContext();
|
|
568
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, props);
|
|
569
|
-
return createComponent(ark.button, mergedProps);
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
var clipboard = /*#__PURE__*/Object.freeze({
|
|
573
|
-
__proto__: null,
|
|
574
|
-
Control: ClipboardControl,
|
|
575
|
-
Indicator: ClipboardIndicator,
|
|
576
|
-
Input: ClipboardInput,
|
|
577
|
-
Label: ClipboardLabel,
|
|
578
|
-
Root: ClipboardRoot,
|
|
579
|
-
Trigger: ClipboardTrigger
|
|
580
|
-
});
|
|
581
|
-
|
|
582
|
-
const [ColorPickerAreaProvider, useColorPickerAreaContext] = createContext({
|
|
583
|
-
hookName: 'useColorPickerAreaContext',
|
|
584
|
-
providerName: '<ColorPickerAreaProvider />'
|
|
585
|
-
});
|
|
586
|
-
|
|
587
|
-
const [ColorPickerProvider, useColorPickerContext] = createContext({
|
|
588
|
-
hookName: 'useColorPickerContext',
|
|
589
|
-
providerName: '<ColorPickerProvider />'
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
const ColorPickerArea = props => {
|
|
593
|
-
const [channelProps, divprops] = createSplitProps()(props, ['xChannel', 'yChannel']);
|
|
594
|
-
const api = useColorPickerContext();
|
|
595
|
-
const mergedProps = mergeProps$1(() => api().getAreaProps(channelProps), divprops);
|
|
596
|
-
return createComponent(ColorPickerAreaProvider, {
|
|
597
|
-
value: channelProps,
|
|
598
|
-
get children() {
|
|
599
|
-
return createComponent(ark.div, mergedProps);
|
|
600
|
-
}
|
|
601
|
-
});
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
const ColorPickerAreaBackground = props => {
|
|
605
|
-
const colorAreaProps = useColorPickerAreaContext();
|
|
606
|
-
const api = useColorPickerContext();
|
|
607
|
-
const mergedProps = mergeProps$1(() => api().getAreaBackgroundProps(colorAreaProps), props);
|
|
608
|
-
return createComponent(ark.div, mergedProps);
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
const ColorPickerAreaThumb = props => {
|
|
612
|
-
const colorAreaProps = useColorPickerAreaContext();
|
|
613
|
-
const api = useColorPickerContext();
|
|
614
|
-
const mergedProps = mergeProps$1(() => api().getAreaThumbProps(colorAreaProps), props);
|
|
615
|
-
return createComponent(ark.div, mergedProps);
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
const ColorPickerChannelInput = props => {
|
|
619
|
-
const [channelProps, inputProps] = createSplitProps()(props, ['channel', 'orientation']);
|
|
620
|
-
const api = useColorPickerContext();
|
|
621
|
-
const mergedProps = mergeProps$1(() => api().getChannelInputProps(channelProps), inputProps);
|
|
622
|
-
return createComponent(ark.input, mergedProps);
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
const [ColorPickerChannelSliderProvider, useColorPickerChannelSliderContext] = createContext({
|
|
626
|
-
hookName: 'useColorPickerChannelSliderContext',
|
|
627
|
-
providerName: '<ColorPickerChannelSliderProvider />'
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
const ColorPickerChannelSlider = props => {
|
|
631
|
-
const [channelProps, localProps] = createSplitProps()(props, ['channel', 'orientation']);
|
|
632
|
-
const api = useColorPickerContext();
|
|
633
|
-
const mergedProps = mergeProps$1(() => api().getChannelSliderProps(channelProps), localProps);
|
|
634
|
-
return createComponent(ColorPickerChannelSliderProvider, {
|
|
635
|
-
value: channelProps,
|
|
636
|
-
get children() {
|
|
637
|
-
return createComponent(ark.div, mergedProps);
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
const ColorPickerChannelSliderThumb = props => {
|
|
643
|
-
const sliderContext = useColorPickerChannelSliderContext();
|
|
644
|
-
const api = useColorPickerContext();
|
|
645
|
-
const mergedProps = mergeProps$1(() => api().getChannelSliderThumbProps(sliderContext), props);
|
|
646
|
-
return createComponent(ark.div, mergedProps);
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
const ColorPickerChannelSliderTrack = props => {
|
|
650
|
-
const sliderContext = useColorPickerChannelSliderContext();
|
|
651
|
-
const api = useColorPickerContext();
|
|
652
|
-
const mergedProps = mergeProps$1(() => api().getChannelSliderTrackProps(sliderContext), props);
|
|
653
|
-
return createComponent(ark.div, mergedProps);
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
const ColorPickerContent = props => {
|
|
657
|
-
const api = useColorPickerContext();
|
|
658
|
-
const presenceApi = usePresenceContext();
|
|
659
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
660
|
-
return createComponent(Show, {
|
|
661
|
-
get when() {
|
|
662
|
-
return !presenceApi().isUnmounted;
|
|
663
|
-
},
|
|
664
|
-
get children() {
|
|
665
|
-
return createComponent(ark.div, mergedProps);
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
const ColorPickerControl = props => {
|
|
671
|
-
const api = useColorPickerContext();
|
|
672
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
673
|
-
return createComponent(ark.div, mergedProps);
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
const ColorPickerEyeDropperTrigger = props => {
|
|
677
|
-
const api = useColorPickerContext();
|
|
678
|
-
const mergedProps = mergeProps$1(() => api().eyeDropperTriggerProps, props);
|
|
679
|
-
return createComponent(ark.button, mergedProps);
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
const ColorPickerFormatSelect = props => {
|
|
683
|
-
const api = useColorPickerContext();
|
|
684
|
-
const mergedProps = mergeProps$1(() => api().formatSelectProps, props);
|
|
685
|
-
return createComponent(ark.select, mergeProps(mergedProps, {
|
|
686
|
-
get children() {
|
|
687
|
-
return createComponent(Index, {
|
|
688
|
-
each: ['rgba', 'hsla', 'hsba'],
|
|
689
|
-
children: format => createComponent(ark.option, {
|
|
690
|
-
get value() {
|
|
691
|
-
return format();
|
|
692
|
-
},
|
|
693
|
-
get children() {
|
|
694
|
-
return format();
|
|
695
|
-
}
|
|
696
|
-
})
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
}));
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
const ColorPickerFormatTrigger = props => {
|
|
703
|
-
const api = useColorPickerContext();
|
|
704
|
-
const mergedProps = mergeProps$1(() => api().formatTriggerProps, props);
|
|
705
|
-
return createComponent(ark.button, mergedProps);
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
const ColorPickerLabel = props => {
|
|
709
|
-
const api = useColorPickerContext();
|
|
710
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
711
|
-
return createComponent(ark.label, mergedProps);
|
|
712
|
-
};
|
|
713
|
-
|
|
714
|
-
const ColorPickerPositioner = props => {
|
|
715
|
-
const api = useColorPickerContext();
|
|
716
|
-
const presenceApi = usePresenceContext();
|
|
717
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
718
|
-
return createComponent(Show, {
|
|
719
|
-
get when() {
|
|
720
|
-
return !presenceApi().isUnmounted;
|
|
721
|
-
},
|
|
722
|
-
get children() {
|
|
723
|
-
return createComponent(ark.div, mergedProps);
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
};
|
|
727
|
-
|
|
728
|
-
const useColorPicker = props => {
|
|
729
|
-
const [local, rest] = splitProps(props, ['value']);
|
|
730
|
-
const getRootNode = useEnvironmentContext();
|
|
731
|
-
const context = mergeProps$1(() => ({
|
|
732
|
-
id: createUniqueId(),
|
|
733
|
-
getRootNode,
|
|
734
|
-
value: local.value ? colorPicker$1.parse(local.value) : undefined,
|
|
735
|
-
'open.controlled': props.open !== undefined
|
|
736
|
-
}), rest);
|
|
737
|
-
const [state, send] = useMachine(colorPicker$1.machine(context), {
|
|
738
|
-
context
|
|
739
|
-
});
|
|
740
|
-
return createMemo(() => colorPicker$1.connect(state, send, normalizeProps));
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
var _tmpl$$a = /*#__PURE__*/template(`<input>`);
|
|
744
|
-
const ColorPickerRoot = props => {
|
|
745
|
-
const [presenceProps, colorPickerProps] = splitPresenceProps(props);
|
|
746
|
-
const [useColorPickerProps, localProps] = createSplitProps()(colorPickerProps, ['closeOnSelect', 'dir', 'disabled', 'format', 'getRootNode', 'id', 'ids', 'initialFocusEl', 'name', 'name', 'onFocusOutside', 'onFormatChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'onValueChangeEnd', 'open', 'positioning', 'readOnly', 'value']);
|
|
747
|
-
const api = useColorPicker(useColorPickerProps);
|
|
748
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
749
|
-
present: api().isOpen
|
|
750
|
-
})));
|
|
751
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
752
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
753
|
-
return createComponent(ColorPickerProvider, {
|
|
754
|
-
value: api,
|
|
755
|
-
get children() {
|
|
756
|
-
return [createComponent(PresenceProvider, {
|
|
757
|
-
value: apiPresence,
|
|
758
|
-
get children() {
|
|
759
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
760
|
-
get children() {
|
|
761
|
-
return getChildren();
|
|
762
|
-
}
|
|
763
|
-
}));
|
|
764
|
-
}
|
|
765
|
-
}), (() => {
|
|
766
|
-
var _el$ = _tmpl$$a();
|
|
767
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
768
|
-
return _el$;
|
|
769
|
-
})()];
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
const [ColorPickerSwatchProvider, useColorPickerSwatchContext] = createContext({
|
|
775
|
-
hookName: 'useColorPickerSwatchContext',
|
|
776
|
-
providerName: '<ColorPickerSwatchProvider />'
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
const ColorPickerSwatch = props => {
|
|
780
|
-
const [swatchProps, localProps] = createSplitProps()(props, ['respectAlpha', 'value']);
|
|
781
|
-
const api = useColorPickerContext();
|
|
782
|
-
const mergedProps = mergeProps$1(() => api().getSwatchProps(swatchProps), localProps);
|
|
783
|
-
return createComponent(ColorPickerSwatchProvider, {
|
|
784
|
-
value: swatchProps,
|
|
785
|
-
get children() {
|
|
786
|
-
return createComponent(ark.div, mergedProps);
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
const ColorPickerSwatchGroup = props => {
|
|
792
|
-
const api = useColorPickerContext();
|
|
793
|
-
const mergedProps = mergeProps$1(() => api().swatchGroupProps, props);
|
|
794
|
-
return createComponent(ark.div, mergedProps);
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
const ColorPickerSwatchIndicator = props => {
|
|
798
|
-
const api = useColorPickerContext();
|
|
799
|
-
const swatchProps = useColorPickerSwatchContext();
|
|
800
|
-
const mergedProps = mergeProps$1(() => api().getSwatchIndicatorProps(swatchProps), props);
|
|
801
|
-
return createComponent(ark.div, mergedProps);
|
|
802
|
-
};
|
|
803
|
-
|
|
804
|
-
const ColorPickerSwatchTrigger = props => {
|
|
805
|
-
const [triggerProps, localProps] = createSplitProps()(props, ['value', 'disabled']);
|
|
806
|
-
const api = useColorPickerContext();
|
|
807
|
-
const mergedProps = mergeProps$1(() => api().getSwatchTriggerProps(triggerProps), localProps);
|
|
808
|
-
return createComponent(ark.button, mergedProps);
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
const ColorPickerTransparencyGrid = props => {
|
|
812
|
-
const [gridProps, localProps] = createSplitProps()(props, ['size']);
|
|
813
|
-
const api = useColorPickerContext();
|
|
814
|
-
const mergedProps = mergeProps$1(() => api().getTransparencyGridProps(gridProps), localProps);
|
|
815
|
-
return createComponent(ark.div, mergedProps);
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
const ColorPickerTrigger = props => {
|
|
819
|
-
const api = useColorPickerContext();
|
|
820
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, props);
|
|
821
|
-
return createComponent(ark.button, mergedProps);
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
const ColorPickerValueText = props => {
|
|
825
|
-
const api = useColorPickerContext();
|
|
826
|
-
const mergedProps = mergeProps$1(() => colorPickerAnatomy.build().valueText.attrs, props);
|
|
827
|
-
return createComponent(ark.span, mergeProps(mergedProps, {
|
|
828
|
-
get children() {
|
|
829
|
-
return api().valueAsString || props.children;
|
|
830
|
-
}
|
|
831
|
-
}));
|
|
832
|
-
};
|
|
833
|
-
|
|
834
|
-
const ColorPickerView = props => {
|
|
835
|
-
const api = useColorPickerContext();
|
|
836
|
-
const mergedProps = mergeProps$1(() => colorPickerAnatomy.build().view.attrs, props);
|
|
837
|
-
|
|
838
|
-
// TODO @segunadebayo
|
|
839
|
-
return createComponent(Show, {
|
|
840
|
-
get when() {
|
|
841
|
-
return api().format === props.format;
|
|
842
|
-
},
|
|
843
|
-
get children() {
|
|
844
|
-
return createComponent(ark.div, mergeProps({
|
|
845
|
-
get ["data-format"]() {
|
|
846
|
-
return props.format;
|
|
847
|
-
}
|
|
848
|
-
}, mergedProps));
|
|
849
|
-
}
|
|
850
|
-
});
|
|
851
|
-
};
|
|
852
|
-
|
|
853
|
-
var colorPicker = /*#__PURE__*/Object.freeze({
|
|
854
|
-
__proto__: null,
|
|
855
|
-
Area: ColorPickerArea,
|
|
856
|
-
AreaBackground: ColorPickerAreaBackground,
|
|
857
|
-
AreaThumb: ColorPickerAreaThumb,
|
|
858
|
-
ChannelInput: ColorPickerChannelInput,
|
|
859
|
-
ChannelSlider: ColorPickerChannelSlider,
|
|
860
|
-
ChannelSliderThumb: ColorPickerChannelSliderThumb,
|
|
861
|
-
ChannelSliderTrack: ColorPickerChannelSliderTrack,
|
|
862
|
-
Content: ColorPickerContent,
|
|
863
|
-
Control: ColorPickerControl,
|
|
864
|
-
EyeDropperTrigger: ColorPickerEyeDropperTrigger,
|
|
865
|
-
FormatSelect: ColorPickerFormatSelect,
|
|
866
|
-
FormatTrigger: ColorPickerFormatTrigger,
|
|
867
|
-
Label: ColorPickerLabel,
|
|
868
|
-
Positioner: ColorPickerPositioner,
|
|
869
|
-
Root: ColorPickerRoot,
|
|
870
|
-
Swatch: ColorPickerSwatch,
|
|
871
|
-
SwatchGroup: ColorPickerSwatchGroup,
|
|
872
|
-
SwatchIndicator: ColorPickerSwatchIndicator,
|
|
873
|
-
SwatchTrigger: ColorPickerSwatchTrigger,
|
|
874
|
-
TransparencyGrid: ColorPickerTransparencyGrid,
|
|
875
|
-
Trigger: ColorPickerTrigger,
|
|
876
|
-
ValueText: ColorPickerValueText,
|
|
877
|
-
View: ColorPickerView
|
|
878
|
-
});
|
|
879
|
-
|
|
880
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
881
|
-
const [ComboboxProvider, useComboboxContext] = createContext({
|
|
882
|
-
hookName: 'useComboboxContext',
|
|
883
|
-
providerName: '<ComboboxProvider />'
|
|
884
|
-
});
|
|
885
|
-
|
|
886
|
-
const ComboboxClearTrigger = props => {
|
|
887
|
-
const combobox = useComboboxContext();
|
|
888
|
-
const mergedProps = mergeProps$1(() => combobox().clearTriggerProps, props);
|
|
889
|
-
return createComponent(ark.button, mergedProps);
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
const ComboboxContent = props => {
|
|
893
|
-
const api = useComboboxContext();
|
|
894
|
-
const presenceApi = usePresenceContext();
|
|
895
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
896
|
-
return createComponent(Show, {
|
|
897
|
-
get when() {
|
|
898
|
-
return !presenceApi().isUnmounted;
|
|
899
|
-
},
|
|
900
|
-
get children() {
|
|
901
|
-
return createComponent(ark.div, mergedProps);
|
|
902
|
-
}
|
|
903
|
-
});
|
|
904
|
-
};
|
|
905
|
-
|
|
906
|
-
const ComboboxControl = props => {
|
|
907
|
-
const combobox = useComboboxContext();
|
|
908
|
-
const mergedProps = mergeProps$1(() => combobox().controlProps, props);
|
|
909
|
-
return createComponent(ark.div, mergedProps);
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
const ComboboxInput = props => {
|
|
913
|
-
const combobox = useComboboxContext();
|
|
914
|
-
const mergedProps = mergeProps$1(() => combobox().inputProps, props);
|
|
915
|
-
return createComponent(ark.input, mergedProps);
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
const [ComboboxItemProvider, useComboboxItemContext] = createContext({
|
|
919
|
-
hookName: 'useComboboxItemContext',
|
|
920
|
-
providerName: '<ComboboxItemProvider />'
|
|
921
|
-
});
|
|
922
|
-
|
|
923
|
-
const ComboboxItem = props => {
|
|
924
|
-
const [itemProps, localProps] = createSplitProps()(props, ['item']);
|
|
925
|
-
const api = useComboboxContext();
|
|
926
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
927
|
-
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
928
|
-
return createComponent(ComboboxItemProvider, {
|
|
929
|
-
value: itemProps,
|
|
930
|
-
get children() {
|
|
931
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
932
|
-
get children() {
|
|
933
|
-
return getChildren();
|
|
934
|
-
}
|
|
935
|
-
}));
|
|
936
|
-
}
|
|
937
|
-
});
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
const ComboboxItemGroup = props => {
|
|
941
|
-
const [groupProps, localProps] = createSplitProps()(props, ['id']);
|
|
942
|
-
const combobox = useComboboxContext();
|
|
943
|
-
const mergedProps = mergeProps$1(() => combobox().getItemGroupProps(groupProps), localProps);
|
|
944
|
-
return createComponent(ark.div, mergedProps);
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
const ComboboxItemGroupLabel = props => {
|
|
948
|
-
const [labelProps, localProps] = createSplitProps()(props, ['for']);
|
|
949
|
-
const api = useComboboxContext();
|
|
950
|
-
const mergedProps = mergeProps$1(() => api().getItemGroupLabelProps({
|
|
951
|
-
htmlFor: labelProps.for
|
|
952
|
-
}), localProps);
|
|
953
|
-
return createComponent(ark.div, mergedProps);
|
|
954
|
-
};
|
|
955
|
-
|
|
956
|
-
const ComboboxItemIndicator = props => {
|
|
957
|
-
const combobox = useComboboxContext();
|
|
958
|
-
const itemProps = useComboboxItemContext();
|
|
959
|
-
const mergedProps = mergeProps$1(() => combobox().getItemIndicatorProps(itemProps), props);
|
|
960
|
-
return createComponent(ark.div, mergedProps);
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
const ComboboxItemText = props => {
|
|
964
|
-
const api = useComboboxContext();
|
|
965
|
-
const itemProps = useComboboxItemContext();
|
|
966
|
-
const mergedProps = mergeProps$1(() => api().getItemTextProps(itemProps), props);
|
|
967
|
-
return createComponent(ark.span, mergedProps);
|
|
968
|
-
};
|
|
969
|
-
|
|
970
|
-
const ComboboxLabel = props => {
|
|
971
|
-
const combobox = useComboboxContext();
|
|
972
|
-
const mergedProps = mergeProps$1(() => combobox().labelProps, props);
|
|
973
|
-
return createComponent(ark.label, mergedProps);
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
const ComboboxPositioner = props => {
|
|
977
|
-
const api = useComboboxContext();
|
|
978
|
-
const presenceApi = usePresenceContext();
|
|
979
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
980
|
-
return createComponent(Show, {
|
|
981
|
-
get when() {
|
|
982
|
-
return !presenceApi().isUnmounted;
|
|
983
|
-
},
|
|
984
|
-
get children() {
|
|
985
|
-
return createComponent(ark.div, mergedProps);
|
|
986
|
-
}
|
|
987
|
-
});
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
const useCombobox = props => {
|
|
991
|
-
const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
992
|
-
const collection = () => combobox$1.collection(collectionOptions);
|
|
993
|
-
const getRootNode = useEnvironmentContext();
|
|
994
|
-
const context = () => mergeProps$1({
|
|
995
|
-
id: createUniqueId(),
|
|
996
|
-
getRootNode,
|
|
997
|
-
collection: collection()
|
|
998
|
-
}, rest);
|
|
999
|
-
const [state, send] = useMachine(combobox$1.machine(context()), {
|
|
1000
|
-
context
|
|
1001
|
-
});
|
|
1002
|
-
return createMemo(() => combobox$1.connect(state, send, normalizeProps));
|
|
1003
|
-
};
|
|
1004
|
-
|
|
1005
|
-
const ComboboxRoot = props => {
|
|
1006
|
-
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
1007
|
-
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ['allowCustomValue', 'autoFocus', 'closeOnSelect', 'dir', 'disabled', 'form', 'getRootNode', 'highlightedValue', 'id', 'ids', 'inputBehavior', 'inputValue', 'invalid', 'isItemDisabled', 'items', 'itemToString', 'itemToValue', 'loop', 'multiple', 'name', 'onFocusOutside', 'onHighlightChange', 'onInputValueChange', 'onInteractOutside', 'onOpenChange', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'openOnClick', 'placeholder', 'positioning', 'readOnly', 'selectionBehavior', 'selectOnBlur', 'translations', 'value']);
|
|
1008
|
-
const api = useCombobox(useComboboxProps);
|
|
1009
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
1010
|
-
present: api().isOpen
|
|
1011
|
-
})));
|
|
1012
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
1013
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1014
|
-
return createComponent(ComboboxProvider, {
|
|
1015
|
-
value: api,
|
|
1016
|
-
get children() {
|
|
1017
|
-
return createComponent(PresenceProvider, {
|
|
1018
|
-
value: apiPresence,
|
|
1019
|
-
get children() {
|
|
1020
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1021
|
-
get children() {
|
|
1022
|
-
return getChildren();
|
|
1023
|
-
}
|
|
1024
|
-
}));
|
|
1025
|
-
}
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
1029
|
-
};
|
|
1030
|
-
|
|
1031
|
-
const ComboboxTrigger = props => {
|
|
1032
|
-
const combobox = useComboboxContext();
|
|
1033
|
-
const mergedProps = mergeProps$1(() => combobox().triggerProps, props);
|
|
1034
|
-
return createComponent(ark.button, mergedProps);
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
var combobox = /*#__PURE__*/Object.freeze({
|
|
1038
|
-
__proto__: null,
|
|
1039
|
-
ClearTrigger: ComboboxClearTrigger,
|
|
1040
|
-
Content: ComboboxContent,
|
|
1041
|
-
Control: ComboboxControl,
|
|
1042
|
-
Input: ComboboxInput,
|
|
1043
|
-
Item: ComboboxItem,
|
|
1044
|
-
ItemGroup: ComboboxItemGroup,
|
|
1045
|
-
ItemGroupLabel: ComboboxItemGroupLabel,
|
|
1046
|
-
ItemIndicator: ComboboxItemIndicator,
|
|
1047
|
-
ItemText: ComboboxItemText,
|
|
1048
|
-
Label: ComboboxLabel,
|
|
1049
|
-
Positioner: ComboboxPositioner,
|
|
1050
|
-
Root: ComboboxRoot,
|
|
1051
|
-
Trigger: ComboboxTrigger
|
|
1052
|
-
});
|
|
1053
|
-
|
|
1054
|
-
const [DatePickerProvider, useDatePickerContext] = createContext({
|
|
1055
|
-
hookName: 'useDatePickerContext',
|
|
1056
|
-
providerName: '<DatePickerProvider />'
|
|
1057
|
-
});
|
|
1058
|
-
|
|
1059
|
-
const DatePickerClearTrigger = props => {
|
|
1060
|
-
const api = useDatePickerContext();
|
|
1061
|
-
const mergedProps = mergeProps$1(() => api().clearTriggerProps, props);
|
|
1062
|
-
return createComponent(ark.button, mergedProps);
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
const DatePickerContent = props => {
|
|
1066
|
-
const api = useDatePickerContext();
|
|
1067
|
-
const presenceApi = usePresenceContext();
|
|
1068
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
1069
|
-
return createComponent(Show, {
|
|
1070
|
-
get when() {
|
|
1071
|
-
return !presenceApi().isUnmounted;
|
|
1072
|
-
},
|
|
1073
|
-
get children() {
|
|
1074
|
-
return createComponent(ark.div, mergedProps);
|
|
1075
|
-
}
|
|
1076
|
-
});
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
const DatePickerControl = props => {
|
|
1080
|
-
const api = useDatePickerContext();
|
|
1081
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
1082
|
-
return createComponent(ark.div, mergedProps);
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
const DatePickerInput = props => {
|
|
1086
|
-
const [inputProps, localProps] = createSplitProps()(props, ['index']);
|
|
1087
|
-
const api = useDatePickerContext();
|
|
1088
|
-
const mergedProps = mergeProps$1(() => api().getInputProps(inputProps), localProps);
|
|
1089
|
-
return createComponent(ark.input, mergedProps);
|
|
1090
|
-
};
|
|
1091
|
-
|
|
1092
|
-
const DatePickerLabel = props => {
|
|
1093
|
-
const api = useDatePickerContext();
|
|
1094
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
1095
|
-
return createComponent(ark.label, mergedProps);
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
|
-
var _tmpl$$9 = /*#__PURE__*/template(`<option>`);
|
|
1099
|
-
const DatePickerMonthSelect = props => {
|
|
1100
|
-
const api = useDatePickerContext();
|
|
1101
|
-
const mergedProps = mergeProps$1(() => api().monthSelectProps, props);
|
|
1102
|
-
return createComponent(ark.select, mergeProps(mergedProps, {
|
|
1103
|
-
get children() {
|
|
1104
|
-
return api().getMonths().map(month => (() => {
|
|
1105
|
-
var _el$ = _tmpl$$9();
|
|
1106
|
-
insert(_el$, () => month.label);
|
|
1107
|
-
effect(() => _el$.value = month.value);
|
|
1108
|
-
return _el$;
|
|
1109
|
-
})());
|
|
1110
|
-
}
|
|
1111
|
-
}));
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
const [DatePickerViewProvider, useDatePickerViewContext] = createContext({
|
|
1115
|
-
hookName: 'useDatePickerViewContext',
|
|
1116
|
-
providerName: '<DatePickerViewProvider />'
|
|
1117
|
-
});
|
|
1118
|
-
|
|
1119
|
-
const DatePickerNextTrigger = props => {
|
|
1120
|
-
const api = useDatePickerContext();
|
|
1121
|
-
const viewProps = useDatePickerViewContext();
|
|
1122
|
-
const mergedProps = mergeProps$1(() => api().getNextTriggerProps(viewProps), props);
|
|
1123
|
-
return createComponent(ark.button, mergedProps);
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
const DatePickerPositioner = props => {
|
|
1127
|
-
const api = useDatePickerContext();
|
|
1128
|
-
const presenceApi = usePresenceContext();
|
|
1129
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
1130
|
-
return createComponent(Show, {
|
|
1131
|
-
get when() {
|
|
1132
|
-
return !presenceApi().isUnmounted;
|
|
1133
|
-
},
|
|
1134
|
-
get children() {
|
|
1135
|
-
return createComponent(ark.div, mergedProps);
|
|
1136
|
-
}
|
|
1137
|
-
});
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
const DatePickerPresetTrigger = props => {
|
|
1141
|
-
const [presetTriggerProps, localProps] = createSplitProps()(props, ['value']);
|
|
1142
|
-
const api = useDatePickerContext();
|
|
1143
|
-
const mergedProps = mergeProps$1(() => api().getPresetTriggerProps(presetTriggerProps), localProps);
|
|
1144
|
-
return createComponent(ark.button, mergedProps);
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
const DatePickerPrevTrigger = props => {
|
|
1148
|
-
const api = useDatePickerContext();
|
|
1149
|
-
const viewProps = useDatePickerViewContext();
|
|
1150
|
-
const mergedProps = mergeProps$1(() => api().getPrevTriggerProps(viewProps), props);
|
|
1151
|
-
return createComponent(ark.button, mergedProps);
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
|
-
const DatePickerRangeText = props => {
|
|
1155
|
-
const api = useDatePickerContext();
|
|
1156
|
-
const mergedProps = mergeProps$1(() => api().rangeTextProps, props);
|
|
1157
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1158
|
-
get children() {
|
|
1159
|
-
return api().visibleRangeText.start;
|
|
1160
|
-
}
|
|
1161
|
-
}));
|
|
1162
|
-
};
|
|
1163
|
-
|
|
1164
|
-
const useDatePicker = props => {
|
|
1165
|
-
const [local, rest] = splitProps(props, ['value', 'focusedValue']);
|
|
1166
|
-
const getRootNode = useEnvironmentContext();
|
|
1167
|
-
const context = mergeProps$1(() => ({
|
|
1168
|
-
id: createUniqueId(),
|
|
1169
|
-
getRootNode,
|
|
1170
|
-
focusedValue: local.focusedValue ? datePicker$1.parse(local.focusedValue) : undefined,
|
|
1171
|
-
value: local.value ? datePicker$1.parse(local.value) : undefined,
|
|
1172
|
-
'open.controlled': props.open !== undefined
|
|
1173
|
-
}), rest);
|
|
1174
|
-
const [state, send] = useMachine(datePicker$1.machine(context), {
|
|
1175
|
-
context
|
|
1176
|
-
});
|
|
1177
|
-
return createMemo(() => datePicker$1.connect(state, send, normalizeProps));
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
const DatePickerRoot = props => {
|
|
1181
|
-
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
1182
|
-
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ['closeOnSelect', 'dir', 'disabled', 'fixedWeeks', 'focusedValue', 'format', 'getRootNode', 'id', 'ids', 'isDateUnavailable', 'isDateUnavailable', 'locale', 'max', 'min', 'modal', 'name', 'numOfMonths', 'onFocusChange', 'onOpenChange', 'onValueChange', 'onViewChange', 'open', 'parse', 'positioning', 'readOnly', 'selectionMode', 'startOfWeek', 'timeZone', 'translations', 'value', 'view']);
|
|
1183
|
-
const api = useDatePicker(useDatePickerProps);
|
|
1184
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
1185
|
-
present: api().isOpen
|
|
1186
|
-
})));
|
|
1187
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
1188
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1189
|
-
return createComponent(DatePickerProvider, {
|
|
1190
|
-
value: api,
|
|
1191
|
-
get children() {
|
|
1192
|
-
return createComponent(PresenceProvider, {
|
|
1193
|
-
value: apiPresence,
|
|
1194
|
-
get children() {
|
|
1195
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1196
|
-
get children() {
|
|
1197
|
-
return getChildren();
|
|
1198
|
-
}
|
|
1199
|
-
}));
|
|
1200
|
-
}
|
|
1201
|
-
});
|
|
1202
|
-
}
|
|
1203
|
-
});
|
|
1204
|
-
};
|
|
1205
|
-
|
|
1206
|
-
const [DatePickerTableProvider, useDatePickerTableContext] = createContext({
|
|
1207
|
-
hookName: 'useDatePickerTableContext',
|
|
1208
|
-
providerName: '<DatePickerTableProvider />'
|
|
1209
|
-
});
|
|
1210
|
-
|
|
1211
|
-
const DatePickerTable = props => {
|
|
1212
|
-
const [{
|
|
1213
|
-
columns
|
|
1214
|
-
}, localProps] = createSplitProps()(props, ['columns']);
|
|
1215
|
-
const api = useDatePickerContext();
|
|
1216
|
-
const viewProps = useDatePickerViewContext();
|
|
1217
|
-
const tableProps = {
|
|
1218
|
-
columns,
|
|
1219
|
-
id: createUniqueId(),
|
|
1220
|
-
...viewProps
|
|
1221
|
-
};
|
|
1222
|
-
const mergedProps = mergeProps$1(() => api().getTableProps(tableProps), localProps);
|
|
1223
|
-
return createComponent(DatePickerTableProvider, {
|
|
1224
|
-
value: tableProps,
|
|
1225
|
-
get children() {
|
|
1226
|
-
return createComponent(ark.table, mergedProps);
|
|
1227
|
-
}
|
|
1228
|
-
});
|
|
1229
|
-
};
|
|
1230
|
-
|
|
1231
|
-
const DatePickerTableBody = props => {
|
|
1232
|
-
const api = useDatePickerContext();
|
|
1233
|
-
const tableProps = useDatePickerTableContext();
|
|
1234
|
-
const mergedProps = mergeProps$1(() => api().getTableBodyProps(tableProps), props);
|
|
1235
|
-
return createComponent(ark.tbody, mergedProps);
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
const [DatePickerTableCellProvider, useDatePickerTableCellContext] = createContext({
|
|
1239
|
-
hookName: 'useDatePickerTableCellContext',
|
|
1240
|
-
providerName: '<DatePickerTableCellProvider />'
|
|
1241
|
-
});
|
|
1242
|
-
|
|
1243
|
-
const DatePickerTableCell = props => {
|
|
1244
|
-
const [cellProps, localProps] = createSplitProps()(props, ['disabled', 'value', 'visibleRange', 'columns']);
|
|
1245
|
-
const api = useDatePickerContext();
|
|
1246
|
-
const viewProps = useDatePickerViewContext();
|
|
1247
|
-
const tableCellProps = {
|
|
1248
|
-
day: api().getDayTableCellProps,
|
|
1249
|
-
month: api().getMonthTableCellProps,
|
|
1250
|
-
year: api().getYearTableCellProps
|
|
1251
|
-
// @ts-expect-error use filter guard
|
|
1252
|
-
}[viewProps.view](cellProps);
|
|
1253
|
-
const mergedProps = mergeProps$1(() => tableCellProps, localProps);
|
|
1254
|
-
return createComponent(DatePickerTableCellProvider, {
|
|
1255
|
-
value: cellProps,
|
|
1256
|
-
get children() {
|
|
1257
|
-
return createComponent(ark.td, mergedProps);
|
|
1258
|
-
}
|
|
1259
|
-
});
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1262
|
-
const DatePickerTableCellTrigger = props => {
|
|
1263
|
-
const api = useDatePickerContext();
|
|
1264
|
-
const cellProps = useDatePickerTableCellContext();
|
|
1265
|
-
const viewProps = useDatePickerViewContext();
|
|
1266
|
-
const triggerProps = {
|
|
1267
|
-
day: api().getDayTableCellTriggerProps,
|
|
1268
|
-
month: api().getMonthTableCellTriggerProps,
|
|
1269
|
-
year: api().getYearTableCellTriggerProps
|
|
1270
|
-
// @ts-expect-error value is number filter
|
|
1271
|
-
}[viewProps.view](cellProps);
|
|
1272
|
-
const mergedProps = mergeProps$1(() => triggerProps, props);
|
|
1273
|
-
return createComponent(ark.button, mergedProps);
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
const DatePickerTableHead = props => {
|
|
1277
|
-
const api = useDatePickerContext();
|
|
1278
|
-
const tableProps = useDatePickerTableContext();
|
|
1279
|
-
const mergedProps = mergeProps$1(() => api().getTableHeadProps(tableProps), props);
|
|
1280
|
-
return createComponent(ark.thead, mergedProps);
|
|
1281
|
-
};
|
|
1282
|
-
|
|
1283
|
-
const DatePickerTableHeader = props => {
|
|
1284
|
-
const api = useDatePickerContext();
|
|
1285
|
-
const tableProps = useDatePickerTableContext();
|
|
1286
|
-
const mergedProps = mergeProps$1(() => api().getTableHeaderProps(tableProps), props);
|
|
1287
|
-
return createComponent(ark.th, mergedProps);
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
const DatePickerTableRow = props => {
|
|
1291
|
-
const api = useDatePickerContext();
|
|
1292
|
-
const tableProps = useDatePickerTableContext();
|
|
1293
|
-
const mergedProps = mergeProps$1(() => api().getTableRowProps(tableProps), props);
|
|
1294
|
-
return createComponent(ark.tr, mergedProps);
|
|
1295
|
-
};
|
|
1296
|
-
|
|
1297
|
-
const DatePickerTrigger = props => {
|
|
1298
|
-
const api = useDatePickerContext();
|
|
1299
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, props);
|
|
1300
|
-
return createComponent(ark.button, mergedProps);
|
|
1301
|
-
};
|
|
1302
|
-
|
|
1303
|
-
const DatePickerView = props => {
|
|
1304
|
-
const [viewProps, localProps] = createSplitProps()(props, ['view']);
|
|
1305
|
-
const api = useDatePickerContext();
|
|
1306
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1307
|
-
const mergedProps = mergeProps$1(() => datePickerAnatomy.build().view.attrs, localProps);
|
|
1308
|
-
return createComponent(DatePickerViewProvider, {
|
|
1309
|
-
value: viewProps,
|
|
1310
|
-
get children() {
|
|
1311
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1312
|
-
get hidden() {
|
|
1313
|
-
return api().view !== viewProps.view;
|
|
1314
|
-
},
|
|
1315
|
-
get children() {
|
|
1316
|
-
return getChildren();
|
|
1317
|
-
}
|
|
1318
|
-
}));
|
|
1319
|
-
}
|
|
1320
|
-
});
|
|
1321
|
-
};
|
|
1322
|
-
|
|
1323
|
-
const DatePickerViewControl = props => {
|
|
1324
|
-
const api = useDatePickerContext();
|
|
1325
|
-
const viewProps = useDatePickerViewContext();
|
|
1326
|
-
const mergedProps = mergeProps$1(() => api().getViewControlProps(viewProps), props);
|
|
1327
|
-
return createComponent(ark.div, mergedProps);
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
const DatePickerViewTrigger = props => {
|
|
1331
|
-
const api = useDatePickerContext();
|
|
1332
|
-
const viewProps = useDatePickerViewContext();
|
|
1333
|
-
const mergedProps = mergeProps$1(() => api().getViewTriggerProps(viewProps), props);
|
|
1334
|
-
return createComponent(ark.button, mergedProps);
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
var _tmpl$$8 = /*#__PURE__*/template(`<option>`);
|
|
1338
|
-
const DatePickerYearSelect = props => {
|
|
1339
|
-
const api = useDatePickerContext();
|
|
1340
|
-
const mergedProps = mergeProps$1(() => api().yearSelectProps, props);
|
|
1341
|
-
return createComponent(ark.select, mergeProps(mergedProps, {
|
|
1342
|
-
get children() {
|
|
1343
|
-
return getYearsRange({
|
|
1344
|
-
from: 1_000,
|
|
1345
|
-
to: 4_000
|
|
1346
|
-
}).map(year => (() => {
|
|
1347
|
-
var _el$ = _tmpl$$8();
|
|
1348
|
-
_el$.value = year;
|
|
1349
|
-
insert(_el$, year);
|
|
1350
|
-
return _el$;
|
|
1351
|
-
})());
|
|
1352
|
-
}
|
|
1353
|
-
}));
|
|
1354
|
-
};
|
|
1355
|
-
function getYearsRange(range) {
|
|
1356
|
-
const years = [];
|
|
1357
|
-
for (let year = range.from; year <= range.to; year += 1) {
|
|
1358
|
-
years.push(year);
|
|
1359
|
-
}
|
|
1360
|
-
return years;
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
var datePicker = /*#__PURE__*/Object.freeze({
|
|
1364
|
-
__proto__: null,
|
|
1365
|
-
ClearTrigger: DatePickerClearTrigger,
|
|
1366
|
-
Content: DatePickerContent,
|
|
1367
|
-
Control: DatePickerControl,
|
|
1368
|
-
Input: DatePickerInput,
|
|
1369
|
-
Label: DatePickerLabel,
|
|
1370
|
-
MonthSelect: DatePickerMonthSelect,
|
|
1371
|
-
NextTrigger: DatePickerNextTrigger,
|
|
1372
|
-
Positioner: DatePickerPositioner,
|
|
1373
|
-
PresetTrigger: DatePickerPresetTrigger,
|
|
1374
|
-
PrevTrigger: DatePickerPrevTrigger,
|
|
1375
|
-
RangeText: DatePickerRangeText,
|
|
1376
|
-
Root: DatePickerRoot,
|
|
1377
|
-
Table: DatePickerTable,
|
|
1378
|
-
TableBody: DatePickerTableBody,
|
|
1379
|
-
TableCell: DatePickerTableCell,
|
|
1380
|
-
TableCellTrigger: DatePickerTableCellTrigger,
|
|
1381
|
-
TableHead: DatePickerTableHead,
|
|
1382
|
-
TableHeader: DatePickerTableHeader,
|
|
1383
|
-
TableRow: DatePickerTableRow,
|
|
1384
|
-
Trigger: DatePickerTrigger,
|
|
1385
|
-
View: DatePickerView,
|
|
1386
|
-
ViewControl: DatePickerViewControl,
|
|
1387
|
-
ViewTrigger: DatePickerViewTrigger,
|
|
1388
|
-
YearSelect: DatePickerYearSelect
|
|
1389
|
-
});
|
|
1390
|
-
|
|
1391
|
-
const [DialogProvider, useDialogContext] = createContext({
|
|
1392
|
-
hookName: 'useDialogContext',
|
|
1393
|
-
providerName: '<DialogProvider />'
|
|
1394
|
-
});
|
|
1395
|
-
|
|
1396
|
-
const DialogBackdrop = props => {
|
|
1397
|
-
const api = useDialogContext();
|
|
1398
|
-
const presenceProps = usePresencePropsContext();
|
|
1399
|
-
const presenceApi = usePresence(mergeProps$1(presenceProps, () => ({
|
|
1400
|
-
present: api().isOpen
|
|
1401
|
-
})));
|
|
1402
|
-
const mergedProps = mergeProps$1(() => api().backdropProps, () => presenceApi().presenceProps, props);
|
|
1403
|
-
return createComponent(Show, {
|
|
1404
|
-
get when() {
|
|
1405
|
-
return !presenceApi().isUnmounted;
|
|
1406
|
-
},
|
|
1407
|
-
get children() {
|
|
1408
|
-
return createComponent(ark.div, mergedProps);
|
|
1409
|
-
}
|
|
1410
|
-
});
|
|
1411
|
-
};
|
|
1412
|
-
|
|
1413
|
-
const DialogCloseTrigger = props => {
|
|
1414
|
-
const dialog = useDialogContext();
|
|
1415
|
-
const mergedProps = mergeProps$1(() => dialog().closeTriggerProps, props);
|
|
1416
|
-
return createComponent(ark.button, mergedProps);
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
const DialogContent = props => {
|
|
1420
|
-
const api = useDialogContext();
|
|
1421
|
-
const presenceApi = usePresenceContext();
|
|
1422
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
1423
|
-
return createComponent(Show, {
|
|
1424
|
-
get when() {
|
|
1425
|
-
return !presenceApi().isUnmounted;
|
|
1426
|
-
},
|
|
1427
|
-
get children() {
|
|
1428
|
-
return createComponent(ark.div, mergedProps);
|
|
1429
|
-
}
|
|
1430
|
-
});
|
|
1431
|
-
};
|
|
1432
|
-
|
|
1433
|
-
const DialogDescription = props => {
|
|
1434
|
-
const dialog = useDialogContext();
|
|
1435
|
-
const mergedProps = mergeProps$1(() => dialog().descriptionProps, props);
|
|
1436
|
-
return createComponent(ark.div, mergedProps);
|
|
1437
|
-
};
|
|
1438
|
-
|
|
1439
|
-
const DialogPositioner = props => {
|
|
1440
|
-
const api = useDialogContext();
|
|
1441
|
-
const presenceApi = usePresenceContext();
|
|
1442
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
1443
|
-
return createComponent(Show, {
|
|
1444
|
-
get when() {
|
|
1445
|
-
return !presenceApi().isUnmounted;
|
|
1446
|
-
},
|
|
1447
|
-
get children() {
|
|
1448
|
-
return createComponent(ark.div, mergedProps);
|
|
1449
|
-
}
|
|
1450
|
-
});
|
|
1451
|
-
};
|
|
1452
|
-
|
|
1453
|
-
const useDialog = props => {
|
|
1454
|
-
const getRootNode = useEnvironmentContext();
|
|
1455
|
-
const context = mergeProps$1({
|
|
1456
|
-
id: createUniqueId(),
|
|
1457
|
-
getRootNode,
|
|
1458
|
-
'open.controlled': props.open !== undefined
|
|
1459
|
-
}, props);
|
|
1460
|
-
const [state, send] = useMachine(dialog$1.machine(context), {
|
|
1461
|
-
context
|
|
1462
|
-
});
|
|
1463
|
-
return createMemo(() => dialog$1.connect(state, send, normalizeProps));
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
const DialogRoot = props => {
|
|
1467
|
-
const [presenceProps, dialogProps] = splitPresenceProps(props);
|
|
1468
|
-
const [useDialogProps, localProps] = createSplitProps()(dialogProps, ['aria-label', 'closeOnEscapeKeyDown', 'closeOnInteractOutside', 'dir', 'finalFocusEl', 'getRootNode', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'preventScroll', 'restoreFocus', 'role', 'trapFocus']);
|
|
1469
|
-
const api = useDialog(useDialogProps);
|
|
1470
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
1471
|
-
present: api().isOpen
|
|
1472
|
-
})));
|
|
1473
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1474
|
-
return createComponent(DialogProvider, {
|
|
1475
|
-
value: api,
|
|
1476
|
-
get children() {
|
|
1477
|
-
return createComponent(PresencePropsProvider, {
|
|
1478
|
-
value: presenceProps,
|
|
1479
|
-
get children() {
|
|
1480
|
-
return createComponent(PresenceProvider, {
|
|
1481
|
-
value: apiPresence,
|
|
1482
|
-
get children() {
|
|
1483
|
-
return getChildren();
|
|
1484
|
-
}
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
});
|
|
1490
|
-
};
|
|
1491
|
-
|
|
1492
|
-
const DialogTitle = props => {
|
|
1493
|
-
const dialog = useDialogContext();
|
|
1494
|
-
const mergedProps = mergeProps$1(() => dialog().titleProps, props);
|
|
1495
|
-
return createComponent(ark.h2, mergedProps);
|
|
1496
|
-
};
|
|
1497
|
-
|
|
1498
|
-
const DialogTrigger = props => {
|
|
1499
|
-
const api = useDialogContext();
|
|
1500
|
-
const presenceApi = usePresenceContext();
|
|
1501
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, () => ({
|
|
1502
|
-
'aria-controls': presenceApi().isUnmounted && null
|
|
1503
|
-
}), props);
|
|
1504
|
-
return createComponent(ark.button, mergedProps);
|
|
1505
|
-
};
|
|
1506
|
-
|
|
1507
|
-
var dialog = /*#__PURE__*/Object.freeze({
|
|
1508
|
-
__proto__: null,
|
|
1509
|
-
Backdrop: DialogBackdrop,
|
|
1510
|
-
CloseTrigger: DialogCloseTrigger,
|
|
1511
|
-
Content: DialogContent,
|
|
1512
|
-
Description: DialogDescription,
|
|
1513
|
-
Positioner: DialogPositioner,
|
|
1514
|
-
Root: DialogRoot,
|
|
1515
|
-
Title: DialogTitle,
|
|
1516
|
-
Trigger: DialogTrigger
|
|
1517
|
-
});
|
|
1518
|
-
|
|
1519
|
-
const [EditableProvider, useEditableContext] = createContext({
|
|
1520
|
-
hookName: 'useEditableContext',
|
|
1521
|
-
providerName: '<EditableProvider />'
|
|
1522
|
-
});
|
|
1523
|
-
|
|
1524
|
-
const EditableArea = props => {
|
|
1525
|
-
const api = useEditableContext();
|
|
1526
|
-
const mergedProps = mergeProps$1(() => api().areaProps, props);
|
|
1527
|
-
return createComponent(ark.div, mergedProps);
|
|
1528
|
-
};
|
|
1529
|
-
|
|
1530
|
-
const EditableCancelTrigger = props => {
|
|
1531
|
-
const api = useEditableContext();
|
|
1532
|
-
const mergedProps = mergeProps$1(() => api().cancelTriggerProps, props);
|
|
1533
|
-
return createComponent(ark.button, mergedProps);
|
|
1534
|
-
};
|
|
1535
|
-
|
|
1536
|
-
const EditableControl = props => {
|
|
1537
|
-
const api = useEditableContext();
|
|
1538
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
1539
|
-
return createComponent(ark.div, mergedProps);
|
|
1540
|
-
};
|
|
1541
|
-
|
|
1542
|
-
const EditableEditTrigger = props => {
|
|
1543
|
-
const api = useEditableContext();
|
|
1544
|
-
const mergedProps = mergeProps$1(() => api().editTriggerProps, props);
|
|
1545
|
-
return createComponent(ark.button, mergedProps);
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
const EditableInput = props => {
|
|
1549
|
-
const api = useEditableContext();
|
|
1550
|
-
const mergedProps = mergeProps$1(() => api().inputProps, props);
|
|
1551
|
-
return createComponent(ark.input, mergedProps);
|
|
1552
|
-
};
|
|
1553
|
-
|
|
1554
|
-
const EditableLabel = props => {
|
|
1555
|
-
const api = useEditableContext();
|
|
1556
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
1557
|
-
return createComponent(ark.label, mergedProps);
|
|
1558
|
-
};
|
|
1559
|
-
|
|
1560
|
-
const EditablePreview = props => {
|
|
1561
|
-
const api = useEditableContext();
|
|
1562
|
-
const mergedProps = mergeProps$1(() => api().previewProps, props);
|
|
1563
|
-
return createComponent(ark.span, mergedProps);
|
|
1564
|
-
};
|
|
1565
|
-
|
|
1566
|
-
const useEditable = props => {
|
|
1567
|
-
const getRootNode = useEnvironmentContext();
|
|
1568
|
-
const context = mergeProps$1({
|
|
1569
|
-
id: createUniqueId(),
|
|
1570
|
-
getRootNode
|
|
1571
|
-
}, props);
|
|
1572
|
-
const [state, send] = useMachine(editable$1.machine(context), {
|
|
1573
|
-
context
|
|
1574
|
-
});
|
|
1575
|
-
return createMemo(() => editable$1.connect(state, send, normalizeProps));
|
|
1576
|
-
};
|
|
1577
|
-
|
|
1578
|
-
const EditableRoot = props => {
|
|
1579
|
-
const [useEditableProps, localProps] = createSplitProps()(props, ['activationMode', 'autoResize', 'dir', 'disabled', 'finalFocusEl', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'maxLength', 'name', 'onEdit', 'onFocusOutside', 'onInteractOutside', 'onPointerDownOutside', 'onValueChange', 'onValueCommit', 'onValueRevert', 'placeholder', 'readOnly', 'selectOnFocus', 'startWithEditView', 'submitMode', 'translations', 'value']);
|
|
1580
|
-
const api = useEditable(useEditableProps);
|
|
1581
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
1582
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1583
|
-
return createComponent(EditableProvider, {
|
|
1584
|
-
value: api,
|
|
1585
|
-
get children() {
|
|
1586
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1587
|
-
get children() {
|
|
1588
|
-
return getChildren();
|
|
1589
|
-
}
|
|
1590
|
-
}));
|
|
1591
|
-
}
|
|
1592
|
-
});
|
|
1593
|
-
};
|
|
1594
|
-
|
|
1595
|
-
const EditableSubmitTrigger = props => {
|
|
1596
|
-
const api = useEditableContext();
|
|
1597
|
-
const mergedProps = mergeProps$1(() => api().submitTriggerProps, props);
|
|
1598
|
-
return createComponent(ark.button, mergedProps);
|
|
1599
|
-
};
|
|
1600
|
-
|
|
1601
|
-
var editable = /*#__PURE__*/Object.freeze({
|
|
1602
|
-
__proto__: null,
|
|
1603
|
-
Area: EditableArea,
|
|
1604
|
-
CancelTrigger: EditableCancelTrigger,
|
|
1605
|
-
Control: EditableControl,
|
|
1606
|
-
EditTrigger: EditableEditTrigger,
|
|
1607
|
-
Input: EditableInput,
|
|
1608
|
-
Label: EditableLabel,
|
|
1609
|
-
Preview: EditablePreview,
|
|
1610
|
-
Root: EditableRoot,
|
|
1611
|
-
SubmitTrigger: EditableSubmitTrigger
|
|
1612
|
-
});
|
|
1613
|
-
|
|
1614
|
-
const [FileUploadProvider, useFileUploadContext] = createContext({
|
|
1615
|
-
hookName: 'useFileUploadContext',
|
|
1616
|
-
providerName: '<FileUploadProvider />'
|
|
1617
|
-
});
|
|
1618
|
-
|
|
1619
|
-
var _tmpl$$7 = /*#__PURE__*/template(`<input>`);
|
|
1620
|
-
const FileUploadDropzone = props => {
|
|
1621
|
-
const api = useFileUploadContext();
|
|
1622
|
-
const mergedProps = mergeProps$1(() => api().dropzoneProps, props);
|
|
1623
|
-
return [createComponent(ark.div, mergedProps), (() => {
|
|
1624
|
-
var _el$ = _tmpl$$7();
|
|
1625
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
1626
|
-
return _el$;
|
|
1627
|
-
})()];
|
|
1628
|
-
};
|
|
1629
|
-
|
|
1630
|
-
const [FileUploadItemProvider, useFileUploadItemContext] = createContext({
|
|
1631
|
-
hookName: 'useFileUploadItemContext',
|
|
1632
|
-
providerName: '<FileUploadItemProvider />'
|
|
1633
|
-
});
|
|
1634
|
-
|
|
1635
|
-
const FileUploadItem = props => {
|
|
1636
|
-
const [itemProps, localProps] = createSplitProps()(props, ['file']);
|
|
1637
|
-
const api = useFileUploadContext();
|
|
1638
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
1639
|
-
const getChildren = () => runIfFn(localProps.children);
|
|
1640
|
-
return createComponent(FileUploadItemProvider, {
|
|
1641
|
-
value: itemProps,
|
|
1642
|
-
get children() {
|
|
1643
|
-
return createComponent(ark.li, mergeProps(mergedProps, {
|
|
1644
|
-
get children() {
|
|
1645
|
-
return getChildren();
|
|
1646
|
-
}
|
|
1647
|
-
}));
|
|
1648
|
-
}
|
|
1649
|
-
});
|
|
1650
|
-
};
|
|
1651
|
-
|
|
1652
|
-
const FileUploadItemDeleteTrigger = props => {
|
|
1653
|
-
const api = useFileUploadContext();
|
|
1654
|
-
const item = useFileUploadItemContext();
|
|
1655
|
-
const mergedProps = mergeProps$1(() => api().getItemDeleteTriggerProps(item), props);
|
|
1656
|
-
return createComponent(ark.button, mergedProps);
|
|
1657
|
-
};
|
|
1658
|
-
|
|
1659
|
-
const FileUploadItemGroup = props => {
|
|
1660
|
-
const api = useFileUploadContext();
|
|
1661
|
-
const mergedProps = mergeProps$1(() => api().itemGroupProps, props);
|
|
1662
|
-
const getChildren = () => runIfFn(props.children, () => api().files);
|
|
1663
|
-
return createComponent(ark.ul, mergeProps(mergedProps, {
|
|
1664
|
-
get children() {
|
|
1665
|
-
return getChildren();
|
|
1666
|
-
}
|
|
1667
|
-
}));
|
|
1668
|
-
};
|
|
1669
|
-
|
|
1670
|
-
const FileUploadItemName = props => {
|
|
1671
|
-
const api = useFileUploadContext();
|
|
1672
|
-
const item = useFileUploadItemContext();
|
|
1673
|
-
const mergedProps = mergeProps$1(() => api().getItemNameProps(item), props);
|
|
1674
|
-
const getChildren = children(() => props.children);
|
|
1675
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1676
|
-
get children() {
|
|
1677
|
-
return getChildren() || item.file.name;
|
|
1678
|
-
}
|
|
1679
|
-
}));
|
|
1680
|
-
};
|
|
1681
|
-
|
|
1682
|
-
const FileUploadItemPreview = props => {
|
|
1683
|
-
const api = useFileUploadContext();
|
|
1684
|
-
const item = useFileUploadItemContext();
|
|
1685
|
-
const mergedProps = mergeProps$1(() => api().getItemPreviewProps(item), props);
|
|
1686
|
-
if (!item.file.type.match(props.type ?? '.*')) return null;
|
|
1687
|
-
return createComponent(ark.div, mergedProps);
|
|
1688
|
-
};
|
|
1689
|
-
|
|
1690
|
-
const FileUploadItemPreviewImage = props => {
|
|
1691
|
-
const api = useFileUploadContext();
|
|
1692
|
-
const item = useFileUploadItemContext();
|
|
1693
|
-
const [url, setUrl] = createSignal('');
|
|
1694
|
-
api().createFileUrl(item.file, url => setUrl(url));
|
|
1695
|
-
const mergedProps = mergeProps$1(api().getItemPreviewImageProps({
|
|
1696
|
-
...item,
|
|
1697
|
-
url: url()
|
|
1698
|
-
}), props);
|
|
1699
|
-
return createComponent(ark.img, mergedProps);
|
|
1700
|
-
};
|
|
1701
|
-
|
|
1702
|
-
const FileUploadItemSizeText = props => {
|
|
1703
|
-
const api = useFileUploadContext();
|
|
1704
|
-
const item = useFileUploadItemContext();
|
|
1705
|
-
const mergedProps = mergeProps$1(() => api().getItemSizeTextProps(item), props);
|
|
1706
|
-
const getChildren = children(() => props.children);
|
|
1707
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1708
|
-
get children() {
|
|
1709
|
-
return getChildren() || api().getFileSize(item.file);
|
|
1710
|
-
}
|
|
1711
|
-
}));
|
|
1712
|
-
};
|
|
1713
|
-
|
|
1714
|
-
const FileUploadLabel = props => {
|
|
1715
|
-
const api = useFileUploadContext();
|
|
1716
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
1717
|
-
return createComponent(ark.label, mergedProps);
|
|
1718
|
-
};
|
|
1719
|
-
|
|
1720
|
-
const useFileUpload = props => {
|
|
1721
|
-
const getRootNode = useEnvironmentContext();
|
|
1722
|
-
const context = mergeProps$1({
|
|
1723
|
-
id: createUniqueId(),
|
|
1724
|
-
getRootNode
|
|
1725
|
-
}, props);
|
|
1726
|
-
const [state, send] = useMachine(fileUpload$1.machine(context), {
|
|
1727
|
-
context
|
|
1728
|
-
});
|
|
1729
|
-
return createMemo(() => fileUpload$1.connect(state, send, normalizeProps));
|
|
1730
|
-
};
|
|
1731
|
-
|
|
1732
|
-
const FileUploadRoot = props => {
|
|
1733
|
-
const [fileUploadProps, localProps] = createSplitProps()(props, ['accept', 'allowDrop', 'dir', 'disabled', 'files', 'getRootNode', 'id', 'ids', 'locale', 'maxFiles', 'maxFileSize', 'minFileSize', 'name', 'onFileAccept', 'onFileReject', 'onFilesChange', 'translations', 'validate']);
|
|
1734
|
-
const api = useFileUpload(fileUploadProps);
|
|
1735
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
1736
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1737
|
-
return createComponent(FileUploadProvider, {
|
|
1738
|
-
value: api,
|
|
1739
|
-
get children() {
|
|
1740
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1741
|
-
get children() {
|
|
1742
|
-
return getChildren();
|
|
1743
|
-
}
|
|
1744
|
-
}));
|
|
1745
|
-
}
|
|
1746
|
-
});
|
|
1747
|
-
};
|
|
1748
|
-
|
|
1749
|
-
const FileUploadTrigger = props => {
|
|
1750
|
-
const api = useFileUploadContext();
|
|
1751
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, props);
|
|
1752
|
-
return createComponent(ark.button, mergedProps);
|
|
1753
|
-
};
|
|
1754
|
-
|
|
1755
|
-
var fileUpload = /*#__PURE__*/Object.freeze({
|
|
1756
|
-
__proto__: null,
|
|
1757
|
-
Dropzone: FileUploadDropzone,
|
|
1758
|
-
Item: FileUploadItem,
|
|
1759
|
-
ItemDeleteTrigger: FileUploadItemDeleteTrigger,
|
|
1760
|
-
ItemGroup: FileUploadItemGroup,
|
|
1761
|
-
ItemName: FileUploadItemName,
|
|
1762
|
-
ItemPreview: FileUploadItemPreview,
|
|
1763
|
-
ItemPreviewImage: FileUploadItemPreviewImage,
|
|
1764
|
-
ItemSizeText: FileUploadItemSizeText,
|
|
1765
|
-
Label: FileUploadLabel,
|
|
1766
|
-
Root: FileUploadRoot,
|
|
1767
|
-
Trigger: FileUploadTrigger
|
|
1768
|
-
});
|
|
1769
|
-
|
|
1770
|
-
const [HoverCardProvider, useHoverCardContext] = createContext({
|
|
1771
|
-
hookName: 'useHoverCardContext',
|
|
1772
|
-
providerName: '<HoverCardProvider />'
|
|
1773
|
-
});
|
|
1774
|
-
|
|
1775
|
-
const HoverCardArrow = props => {
|
|
1776
|
-
const hoverCard = useHoverCardContext();
|
|
1777
|
-
const mergedProps = mergeProps$1(() => hoverCard().arrowProps, props);
|
|
1778
|
-
return createComponent(ark.div, mergedProps);
|
|
1779
|
-
};
|
|
1780
|
-
|
|
1781
|
-
const HoverCardArrowTip = props => {
|
|
1782
|
-
const hoverCard = useHoverCardContext();
|
|
1783
|
-
const mergedProps = mergeProps$1(() => hoverCard().arrowTipProps, props);
|
|
1784
|
-
return createComponent(ark.div, mergedProps);
|
|
1785
|
-
};
|
|
1786
|
-
|
|
1787
|
-
const HoverCardContent = props => {
|
|
1788
|
-
const api = useHoverCardContext();
|
|
1789
|
-
const presenceApi = usePresenceContext();
|
|
1790
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
1791
|
-
return createComponent(Show, {
|
|
1792
|
-
get when() {
|
|
1793
|
-
return !presenceApi().isUnmounted;
|
|
1794
|
-
},
|
|
1795
|
-
get children() {
|
|
1796
|
-
return createComponent(ark.div, mergedProps);
|
|
1797
|
-
}
|
|
1798
|
-
});
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
const HoverCardPositioner = props => {
|
|
1802
|
-
const api = useHoverCardContext();
|
|
1803
|
-
const presenceApi = usePresenceContext();
|
|
1804
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
1805
|
-
return createComponent(Show, {
|
|
1806
|
-
get when() {
|
|
1807
|
-
return !presenceApi().isUnmounted;
|
|
1808
|
-
},
|
|
1809
|
-
get children() {
|
|
1810
|
-
return createComponent(ark.div, mergedProps);
|
|
1811
|
-
}
|
|
1812
|
-
});
|
|
1813
|
-
};
|
|
1814
|
-
|
|
1815
|
-
const useHoverCard = props => {
|
|
1816
|
-
const getRootNode = useEnvironmentContext();
|
|
1817
|
-
const context = mergeProps$1({
|
|
1818
|
-
id: createUniqueId(),
|
|
1819
|
-
getRootNode,
|
|
1820
|
-
'open.controlled': props.open !== undefined
|
|
1821
|
-
}, props);
|
|
1822
|
-
const [state, send] = useMachine(hoverCard$1.machine(context), {
|
|
1823
|
-
context
|
|
1824
|
-
});
|
|
1825
|
-
return createMemo(() => hoverCard$1.connect(state, send, normalizeProps));
|
|
1826
|
-
};
|
|
1827
|
-
|
|
1828
|
-
const HoverCardRoot = props => {
|
|
1829
|
-
const [presenceProps, hoverCardProps] = splitPresenceProps(props);
|
|
1830
|
-
const [useHoverCardProps, localProps] = createSplitProps()(hoverCardProps, ['closeDelay', 'dir', 'getRootNode', 'id', 'ids', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
1831
|
-
const api = useHoverCard(useHoverCardProps);
|
|
1832
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
1833
|
-
present: api().isOpen
|
|
1834
|
-
})));
|
|
1835
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
1836
|
-
return createComponent(HoverCardProvider, {
|
|
1837
|
-
value: api,
|
|
1838
|
-
get children() {
|
|
1839
|
-
return createComponent(PresenceProvider, {
|
|
1840
|
-
value: apiPresence,
|
|
1841
|
-
get children() {
|
|
1842
|
-
return getChildren();
|
|
1843
|
-
}
|
|
1844
|
-
});
|
|
1845
|
-
}
|
|
1846
|
-
});
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
|
-
const HoverCardTrigger = props => {
|
|
1850
|
-
const hoverCard = useHoverCardContext();
|
|
1851
|
-
const mergedProps = mergeProps$1(() => hoverCard().triggerProps, props);
|
|
1852
|
-
return createComponent(ark.button, mergedProps);
|
|
1853
|
-
};
|
|
1854
|
-
|
|
1855
|
-
var hoverCard = /*#__PURE__*/Object.freeze({
|
|
1856
|
-
__proto__: null,
|
|
1857
|
-
Arrow: HoverCardArrow,
|
|
1858
|
-
ArrowTip: HoverCardArrowTip,
|
|
1859
|
-
Content: HoverCardContent,
|
|
1860
|
-
Positioner: HoverCardPositioner,
|
|
1861
|
-
Root: HoverCardRoot,
|
|
1862
|
-
Trigger: HoverCardTrigger
|
|
1863
|
-
});
|
|
1864
|
-
|
|
1865
|
-
const [LocaleContextProvider, useLocaleContext] = createContext({
|
|
1866
|
-
hookName: 'useEnvironmentContext',
|
|
1867
|
-
providerName: '<EnvironmentProvider />',
|
|
1868
|
-
strict: false,
|
|
1869
|
-
defaultValue: () => ({
|
|
1870
|
-
dir: 'ltr',
|
|
1871
|
-
locale: 'en-US'
|
|
1872
|
-
})
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
const LocaleProvider = props => {
|
|
1876
|
-
const [localeProps, restProps] = splitProps(props, ['locale', 'defaultLocale']);
|
|
1877
|
-
const [locale, setLocale] = createSignal(localeProps.defaultLocale || localeProps.locale || 'en-US');
|
|
1878
|
-
const getRootNode = useEnvironmentContext();
|
|
1879
|
-
createEffect(() => {
|
|
1880
|
-
const cleanup = trackLocale({
|
|
1881
|
-
locale: localeProps.locale,
|
|
1882
|
-
getRootNode,
|
|
1883
|
-
onLocaleChange(locale) {
|
|
1884
|
-
setLocale(locale.locale);
|
|
1885
|
-
}
|
|
1886
|
-
});
|
|
1887
|
-
onCleanup(cleanup);
|
|
1888
|
-
});
|
|
1889
|
-
const context = createMemo(() => ({
|
|
1890
|
-
locale: locale(),
|
|
1891
|
-
dir: isRTL(locale()) ? 'rtl' : 'ltr'
|
|
1892
|
-
}));
|
|
1893
|
-
return createComponent(LocaleContextProvider, {
|
|
1894
|
-
value: context,
|
|
1895
|
-
get children() {
|
|
1896
|
-
return restProps.children;
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
};
|
|
1900
|
-
|
|
1901
|
-
const [MenuProvider, useMenuContext] = createContext({
|
|
1902
|
-
hookName: 'useMenuContext',
|
|
1903
|
-
providerName: '<MenuProvider />',
|
|
1904
|
-
strict: false
|
|
1905
|
-
});
|
|
1906
|
-
const [MenuMachineProvider, useMenuMachineContext] = createContext({
|
|
1907
|
-
hookName: 'useMenuMachineContext',
|
|
1908
|
-
providerName: '<MenuMachineProvider />',
|
|
1909
|
-
strict: false
|
|
1910
|
-
});
|
|
1911
|
-
const [MenuTriggerItemProvider, useMenuTriggerItemContext] = createContext({
|
|
1912
|
-
hookName: 'useMenuMachineContext',
|
|
1913
|
-
providerName: '<MenuMachineProvider />',
|
|
1914
|
-
strict: false
|
|
1915
|
-
});
|
|
1916
|
-
|
|
1917
|
-
const MenuArrow = props => {
|
|
1918
|
-
const menu = useMenuContext();
|
|
1919
|
-
const mergedProps = mergeProps$1(() => menu?.().arrowProps, props);
|
|
1920
|
-
return createComponent(ark.div, mergedProps);
|
|
1921
|
-
};
|
|
1922
|
-
|
|
1923
|
-
const MenuArrowTip = props => {
|
|
1924
|
-
const menu = useMenuContext();
|
|
1925
|
-
const mergedProps = mergeProps$1(() => menu?.().arrowTipProps, props);
|
|
1926
|
-
return createComponent(ark.div, mergedProps);
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
const MenuContent = props => {
|
|
1930
|
-
const api = useMenuContext();
|
|
1931
|
-
const presenceApi = usePresenceContext();
|
|
1932
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
1933
|
-
return createComponent(Show, {
|
|
1934
|
-
get when() {
|
|
1935
|
-
return !presenceApi().isUnmounted;
|
|
1936
|
-
},
|
|
1937
|
-
get children() {
|
|
1938
|
-
return createComponent(ark.div, mergedProps);
|
|
1939
|
-
}
|
|
1940
|
-
});
|
|
1941
|
-
};
|
|
1942
|
-
|
|
1943
|
-
const MenuContextTrigger = props => {
|
|
1944
|
-
const menu = useMenuContext();
|
|
1945
|
-
const mergedProps = mergeProps$1(() => menu?.().contextTriggerProps, props);
|
|
1946
|
-
return createComponent(ark.button, mergedProps);
|
|
1947
|
-
};
|
|
1948
|
-
|
|
1949
|
-
const MenuItem = props => {
|
|
1950
|
-
const menu = useMenuContext();
|
|
1951
|
-
const [itemParams, restProps] = createSplitProps()(props, ['id', 'disabled', 'valueText', 'closeOnSelect']);
|
|
1952
|
-
const mergedProps = mergeProps$1(() => menu?.().getItemProps(itemParams), restProps);
|
|
1953
|
-
return createComponent(ark.div, mergedProps);
|
|
1954
|
-
};
|
|
1955
|
-
|
|
1956
|
-
const MenuItemGroup = props => {
|
|
1957
|
-
const menu = useMenuContext();
|
|
1958
|
-
const [itemGroupProps, localProps] = createSplitProps()(props, ['id']);
|
|
1959
|
-
const mergedProps = mergeProps$1(() => menu?.().getItemGroupProps(itemGroupProps), localProps);
|
|
1960
|
-
return createComponent(ark.div, mergedProps);
|
|
1961
|
-
};
|
|
1962
|
-
|
|
1963
|
-
const MenuItemGroupLabel = props => {
|
|
1964
|
-
const menu = useMenuContext();
|
|
1965
|
-
const [labelProps, localProps] = createSplitProps()(props, ['for']);
|
|
1966
|
-
const mergedProps = mergeProps$1(() => menu?.().getItemGroupLabelProps({
|
|
1967
|
-
htmlFor: labelProps.for
|
|
1968
|
-
}), localProps);
|
|
1969
|
-
return createComponent(ark.div, mergedProps);
|
|
1970
|
-
};
|
|
1971
|
-
|
|
1972
|
-
const MenuOptionItem = props => {
|
|
1973
|
-
const menu = useMenuContext();
|
|
1974
|
-
const [optionProps, localProps] = createSplitProps()(props, ['id', 'disabled', 'valueText', 'closeOnSelect', 'name', 'type', 'value', 'onCheckedChange']);
|
|
1975
|
-
const mergedProps = mergeProps$1(() => menu().getOptionItemProps(optionProps), localProps);
|
|
1976
|
-
const itemState = createMemo(() => menu().getOptionItemState(optionProps));
|
|
1977
|
-
const getChildren = () => runIfFn(localProps.children, itemState);
|
|
1978
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
1979
|
-
get children() {
|
|
1980
|
-
return getChildren();
|
|
1981
|
-
}
|
|
1982
|
-
}));
|
|
1983
|
-
};
|
|
1984
|
-
|
|
1985
|
-
const MenuPositioner = props => {
|
|
1986
|
-
const api = useMenuContext();
|
|
1987
|
-
const presenceApi = usePresenceContext();
|
|
1988
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
1989
|
-
return createComponent(Show, {
|
|
1990
|
-
get when() {
|
|
1991
|
-
return !presenceApi().isUnmounted;
|
|
1992
|
-
},
|
|
1993
|
-
get children() {
|
|
1994
|
-
return createComponent(ark.div, mergedProps);
|
|
1995
|
-
}
|
|
1996
|
-
});
|
|
1997
|
-
};
|
|
1998
|
-
|
|
1999
|
-
const useMenu = props => {
|
|
2000
|
-
const getRootNode = useEnvironmentContext();
|
|
2001
|
-
const context = mergeProps$1({
|
|
2002
|
-
id: createUniqueId(),
|
|
2003
|
-
getRootNode,
|
|
2004
|
-
'open.controlled': props.open !== undefined
|
|
2005
|
-
}, props);
|
|
2006
|
-
const [state, send, machine] = useMachine(menu$1.machine(context), {
|
|
2007
|
-
context
|
|
2008
|
-
});
|
|
2009
|
-
return createMemo(() => ({
|
|
2010
|
-
api: () => menu$1.connect(state, send, normalizeProps),
|
|
2011
|
-
machine: machine
|
|
2012
|
-
}));
|
|
2013
|
-
};
|
|
2014
|
-
|
|
2015
|
-
const MenuRoot = props => {
|
|
2016
|
-
const [presenceProps, menuProps] = splitPresenceProps(props);
|
|
2017
|
-
const [useMenuProps, localProps] = createSplitProps()(menuProps, ['anchorPoint', 'aria-label', 'closeOnSelect', 'dir', 'getRootNode', 'highlightedId', 'id', 'ids', 'loop', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onSelect', 'onValueChange', 'open', 'positioning', 'value']);
|
|
2018
|
-
const parentMenu = useMenuContext();
|
|
2019
|
-
const parentMachine = useMenuMachineContext();
|
|
2020
|
-
const menu = useMenu(useMenuProps);
|
|
2021
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
2022
|
-
present: menu().api().isOpen
|
|
2023
|
-
})));
|
|
2024
|
-
createEffect(() => {
|
|
2025
|
-
if (!parentMachine) return;
|
|
2026
|
-
parentMenu?.().setChild(menu().machine);
|
|
2027
|
-
menu().api().setParent(parentMachine());
|
|
2028
|
-
});
|
|
2029
|
-
const triggerItemContext = createMemo(() => parentMenu?.().getTriggerItemProps(menu().api()));
|
|
2030
|
-
const machineContext = () => menu().machine;
|
|
2031
|
-
const getChildren = () => runIfFn(localProps.children, menu().api);
|
|
2032
|
-
return createComponent(MenuTriggerItemProvider, {
|
|
2033
|
-
value: triggerItemContext,
|
|
2034
|
-
get children() {
|
|
2035
|
-
return createComponent(MenuMachineProvider, {
|
|
2036
|
-
value: machineContext,
|
|
2037
|
-
get children() {
|
|
2038
|
-
return createComponent(MenuProvider, {
|
|
2039
|
-
get value() {
|
|
2040
|
-
return menu().api;
|
|
2041
|
-
},
|
|
2042
|
-
get children() {
|
|
2043
|
-
return createComponent(PresenceProvider, {
|
|
2044
|
-
value: apiPresence,
|
|
2045
|
-
get children() {
|
|
2046
|
-
return getChildren();
|
|
2047
|
-
}
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
});
|
|
2051
|
-
}
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
});
|
|
2055
|
-
};
|
|
2056
|
-
|
|
2057
|
-
const MenuSeparator = props => {
|
|
2058
|
-
const menu = useMenuContext();
|
|
2059
|
-
const mergedProps = mergeProps$1(() => menu?.().separatorProps, props);
|
|
2060
|
-
return createComponent(ark.hr, mergedProps);
|
|
2061
|
-
};
|
|
2062
|
-
|
|
2063
|
-
const MenuTrigger = props => {
|
|
2064
|
-
const api = useMenuContext();
|
|
2065
|
-
const presenceApi = usePresenceContext();
|
|
2066
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, () => ({
|
|
2067
|
-
'aria-controls': presenceApi().isUnmounted && null
|
|
2068
|
-
}), props);
|
|
2069
|
-
return createComponent(ark.button, mergedProps);
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2072
|
-
const MenuTriggerItem = props => {
|
|
2073
|
-
const getTriggerItemProps = useMenuTriggerItemContext();
|
|
2074
|
-
const mergedProps = mergeProps$1(() => getTriggerItemProps?.(), props);
|
|
2075
|
-
return createComponent(ark.div, mergedProps);
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
var menu = /*#__PURE__*/Object.freeze({
|
|
2079
|
-
__proto__: null,
|
|
2080
|
-
Arrow: MenuArrow,
|
|
2081
|
-
ArrowTip: MenuArrowTip,
|
|
2082
|
-
Content: MenuContent,
|
|
2083
|
-
ContextTrigger: MenuContextTrigger,
|
|
2084
|
-
Item: MenuItem,
|
|
2085
|
-
ItemGroup: MenuItemGroup,
|
|
2086
|
-
ItemGroupLabel: MenuItemGroupLabel,
|
|
2087
|
-
OptionItem: MenuOptionItem,
|
|
2088
|
-
Positioner: MenuPositioner,
|
|
2089
|
-
Root: MenuRoot,
|
|
2090
|
-
Separator: MenuSeparator,
|
|
2091
|
-
Trigger: MenuTrigger,
|
|
2092
|
-
TriggerItem: MenuTriggerItem
|
|
2093
|
-
});
|
|
2094
|
-
|
|
2095
|
-
const [NumberInputProvider, useNumberInputContext] = createContext({
|
|
2096
|
-
hookName: 'useNumberInputContext',
|
|
2097
|
-
providerName: '<NumberInputProvider />'
|
|
2098
|
-
});
|
|
2099
|
-
|
|
2100
|
-
const NumberInputControl = props => {
|
|
2101
|
-
const api = useNumberInputContext();
|
|
2102
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
2103
|
-
return createComponent(ark.div, mergedProps);
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
const NumberInputDecrementTrigger = props => {
|
|
2107
|
-
const api = useNumberInputContext();
|
|
2108
|
-
const mergedProps = mergeProps$1(() => api().decrementTriggerProps, props);
|
|
2109
|
-
return createComponent(ark.button, mergedProps);
|
|
2110
|
-
};
|
|
2111
|
-
|
|
2112
|
-
const NumberInputIncrementTrigger = props => {
|
|
2113
|
-
const api = useNumberInputContext();
|
|
2114
|
-
const mergedProps = mergeProps$1(() => api().incrementTriggerProps, props);
|
|
2115
|
-
return createComponent(ark.button, mergedProps);
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
|
-
const NumberInputInput = props => {
|
|
2119
|
-
const api = useNumberInputContext();
|
|
2120
|
-
const mergedProps = mergeProps$1(() => api().inputProps, props);
|
|
2121
|
-
return createComponent(ark.input, mergedProps);
|
|
2122
|
-
};
|
|
2123
|
-
|
|
2124
|
-
const NumberInputLabel = props => {
|
|
2125
|
-
const api = useNumberInputContext();
|
|
2126
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
2127
|
-
return createComponent(ark.label, mergedProps);
|
|
2128
|
-
};
|
|
2129
|
-
|
|
2130
|
-
const useNumberInput = props => {
|
|
2131
|
-
const getRootNode = useEnvironmentContext();
|
|
2132
|
-
const context = mergeProps$1({
|
|
2133
|
-
id: createUniqueId(),
|
|
2134
|
-
getRootNode
|
|
2135
|
-
}, props);
|
|
2136
|
-
const [state, send] = useMachine(numberInput$1.machine(context), {
|
|
2137
|
-
context
|
|
2138
|
-
});
|
|
2139
|
-
return createMemo(() => numberInput$1.connect(state, send, normalizeProps));
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
const NumberInputRoot = props => {
|
|
2143
|
-
const [useNumberInputProps, localProps] = createSplitProps()(props, ['allowMouseWheel', 'allowOverflow', 'clampValueOnBlur', 'dir', 'disabled', 'focusInputOnChange', 'form', 'formatOptions', 'getRootNode', 'id', 'ids', 'inputMode', 'invalid', 'locale', 'max', 'min', 'name', 'onFocusChange', 'onValueChange', 'onValueInvalid', 'pattern', 'readOnly', 'spinOnPress', 'step', 'translations', 'value']);
|
|
2144
|
-
const api = useNumberInput(useNumberInputProps);
|
|
2145
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2146
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
2147
|
-
return createComponent(NumberInputProvider, {
|
|
2148
|
-
value: api,
|
|
2149
|
-
get children() {
|
|
2150
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
2151
|
-
get children() {
|
|
2152
|
-
return getChildren();
|
|
2153
|
-
}
|
|
2154
|
-
}));
|
|
2155
|
-
}
|
|
2156
|
-
});
|
|
2157
|
-
};
|
|
2158
|
-
|
|
2159
|
-
const NumberInputScrubber = props => {
|
|
2160
|
-
const api = useNumberInputContext();
|
|
2161
|
-
const mergedProps = mergeProps$1(() => api().scrubberProps, props);
|
|
2162
|
-
return createComponent(ark.div, mergedProps);
|
|
2163
|
-
};
|
|
2164
|
-
|
|
2165
|
-
var numberInput = /*#__PURE__*/Object.freeze({
|
|
2166
|
-
__proto__: null,
|
|
2167
|
-
Control: NumberInputControl,
|
|
2168
|
-
DecrementTrigger: NumberInputDecrementTrigger,
|
|
2169
|
-
IncrementTrigger: NumberInputIncrementTrigger,
|
|
2170
|
-
Input: NumberInputInput,
|
|
2171
|
-
Label: NumberInputLabel,
|
|
2172
|
-
Root: NumberInputRoot,
|
|
2173
|
-
Scrubber: NumberInputScrubber
|
|
2174
|
-
});
|
|
2175
|
-
|
|
2176
|
-
const [PaginationProvider, usePaginationContext] = createContext({
|
|
2177
|
-
hookName: 'usePaginationContext',
|
|
2178
|
-
providerName: '<PaginationProvider />'
|
|
2179
|
-
});
|
|
2180
|
-
|
|
2181
|
-
const PaginationEllipsis = props => {
|
|
2182
|
-
const [ellipsisProps, localProps] = createSplitProps()(props, ['index']);
|
|
2183
|
-
const api = usePaginationContext();
|
|
2184
|
-
const mergedProps = mergeProps$1(() => api().getEllipsisProps(ellipsisProps), localProps);
|
|
2185
|
-
return createComponent(ark.div, mergedProps);
|
|
2186
|
-
};
|
|
2187
|
-
|
|
2188
|
-
const PaginationItem = props => {
|
|
2189
|
-
const [itemProps, localProps] = createSplitProps()(props, ['value', 'type']);
|
|
2190
|
-
const api = usePaginationContext();
|
|
2191
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
2192
|
-
return createComponent(ark.button, mergedProps);
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
const PaginationNextTrigger = props => {
|
|
2196
|
-
const api = usePaginationContext();
|
|
2197
|
-
const mergedProps = mergeProps$1(() => api().nextTriggerProps, props);
|
|
2198
|
-
return createComponent(ark.button, mergedProps);
|
|
2199
|
-
};
|
|
2200
|
-
|
|
2201
|
-
const PaginationPrevTrigger = props => {
|
|
2202
|
-
const api = usePaginationContext();
|
|
2203
|
-
const mergedProps = mergeProps$1(() => api().prevTriggerProps, props);
|
|
2204
|
-
return createComponent(ark.button, mergedProps);
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
|
-
const usePagination = props => {
|
|
2208
|
-
const getRootNode = useEnvironmentContext();
|
|
2209
|
-
const context = mergeProps$1({
|
|
2210
|
-
id: createUniqueId(),
|
|
2211
|
-
getRootNode
|
|
2212
|
-
}, props);
|
|
2213
|
-
const [state, send] = useMachine(pagination$1.machine(context), {
|
|
2214
|
-
context
|
|
2215
|
-
});
|
|
2216
|
-
return createMemo(() => pagination$1.connect(state, send, normalizeProps));
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
const PaginationRoot = props => {
|
|
2220
|
-
const [paginationParams, localProps] = createSplitProps()(props, ['count', 'dir', 'getRootNode', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
|
|
2221
|
-
const api = usePagination(paginationParams);
|
|
2222
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2223
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
2224
|
-
return createComponent(PaginationProvider, {
|
|
2225
|
-
value: api,
|
|
2226
|
-
get children() {
|
|
2227
|
-
return createComponent(ark.nav, mergeProps(mergedProps, {
|
|
2228
|
-
get children() {
|
|
2229
|
-
return getChildren();
|
|
2230
|
-
}
|
|
2231
|
-
}));
|
|
2232
|
-
}
|
|
2233
|
-
});
|
|
2234
|
-
};
|
|
2235
|
-
|
|
2236
|
-
var pagination = /*#__PURE__*/Object.freeze({
|
|
2237
|
-
__proto__: null,
|
|
2238
|
-
Ellipsis: PaginationEllipsis,
|
|
2239
|
-
Item: PaginationItem,
|
|
2240
|
-
NextTrigger: PaginationNextTrigger,
|
|
2241
|
-
PrevTrigger: PaginationPrevTrigger,
|
|
2242
|
-
Root: PaginationRoot
|
|
2243
|
-
});
|
|
2244
|
-
|
|
2245
|
-
const [PinInputProvider, usePinInputContext] = createContext({
|
|
2246
|
-
hookName: 'usePinInputContext',
|
|
2247
|
-
providerName: '<PinInputProvider />'
|
|
2248
|
-
});
|
|
2249
|
-
|
|
2250
|
-
const PinInputControl = props => {
|
|
2251
|
-
const api = usePinInputContext();
|
|
2252
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
2253
|
-
return createComponent(ark.div, mergedProps);
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
const PinInputInput = props => {
|
|
2257
|
-
const [inputParams, localProps] = splitProps(props, ['index']);
|
|
2258
|
-
const api = usePinInputContext();
|
|
2259
|
-
const mergedProps = mergeProps$1(() => api().getInputProps(inputParams), localProps);
|
|
2260
|
-
return createComponent(ark.input, mergedProps);
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
const PinInputLabel = props => {
|
|
2264
|
-
const api = usePinInputContext();
|
|
2265
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
2266
|
-
return createComponent(ark.label, mergedProps);
|
|
2267
|
-
};
|
|
2268
|
-
|
|
2269
|
-
const usePinInput = props => {
|
|
2270
|
-
const getRootNode = useEnvironmentContext();
|
|
2271
|
-
const context = mergeProps$1({
|
|
2272
|
-
id: createUniqueId(),
|
|
2273
|
-
getRootNode
|
|
2274
|
-
}, props);
|
|
2275
|
-
const [state, send] = useMachine(pinInput$1.machine(context), {
|
|
2276
|
-
context
|
|
2277
|
-
});
|
|
2278
|
-
return createMemo(() => pinInput$1.connect(state, send, normalizeProps));
|
|
2279
|
-
};
|
|
2280
|
-
|
|
2281
|
-
var _tmpl$$6 = /*#__PURE__*/template(`<input>`);
|
|
2282
|
-
const PinInputRoot = props => {
|
|
2283
|
-
const [usePinInputProps, localProps] = createSplitProps()(props, ['autoFocus', 'blurOnComplete', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'mask', 'name', 'onValueChange', 'onValueComplete', 'onValueInvalid', 'otp', 'pattern', 'placeholder', 'selectOnFocus', 'translations', 'type', 'value']);
|
|
2284
|
-
const api = usePinInput(usePinInputProps);
|
|
2285
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2286
|
-
return createComponent(PinInputProvider, {
|
|
2287
|
-
value: api,
|
|
2288
|
-
get children() {
|
|
2289
|
-
return [createComponent(ark.div, mergedProps), (() => {
|
|
2290
|
-
var _el$ = _tmpl$$6();
|
|
2291
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
2292
|
-
return _el$;
|
|
2293
|
-
})()];
|
|
2294
|
-
}
|
|
2295
|
-
});
|
|
2296
|
-
};
|
|
2297
|
-
|
|
2298
|
-
var pinInput = /*#__PURE__*/Object.freeze({
|
|
2299
|
-
__proto__: null,
|
|
2300
|
-
Control: PinInputControl,
|
|
2301
|
-
Input: PinInputInput,
|
|
2302
|
-
Label: PinInputLabel,
|
|
2303
|
-
Root: PinInputRoot
|
|
2304
|
-
});
|
|
2305
|
-
|
|
2306
|
-
const [PopoverProvider, usePopoverContext] = createContext({
|
|
2307
|
-
hookName: 'usePopoverContext',
|
|
2308
|
-
providerName: '<PopoverProvider />'
|
|
2309
|
-
});
|
|
2310
|
-
|
|
2311
|
-
const PopoverAnchor = props => {
|
|
2312
|
-
const api = usePopoverContext();
|
|
2313
|
-
const mergedProps = mergeProps$1(() => api().anchorProps, props);
|
|
2314
|
-
return createComponent(ark.div, mergedProps);
|
|
2315
|
-
};
|
|
2316
|
-
|
|
2317
|
-
const PopoverArrow = props => {
|
|
2318
|
-
const popover = usePopoverContext();
|
|
2319
|
-
const mergedProps = mergeProps$1(() => popover().arrowProps, props);
|
|
2320
|
-
return createComponent(ark.div, mergedProps);
|
|
2321
|
-
};
|
|
2322
|
-
|
|
2323
|
-
const PopoverArrowTip = props => {
|
|
2324
|
-
const popover = usePopoverContext();
|
|
2325
|
-
const mergedProps = mergeProps$1(() => popover().arrowTipProps, props);
|
|
2326
|
-
return createComponent(ark.div, mergedProps);
|
|
2327
|
-
};
|
|
2328
|
-
|
|
2329
|
-
const PopoverCloseTrigger = props => {
|
|
2330
|
-
const api = usePopoverContext();
|
|
2331
|
-
const mergedProps = mergeProps$1(() => api().closeTriggerProps, props);
|
|
2332
|
-
return createComponent(ark.button, mergedProps);
|
|
2333
|
-
};
|
|
2334
|
-
|
|
2335
|
-
const PopoverContent = props => {
|
|
2336
|
-
const api = usePopoverContext();
|
|
2337
|
-
const presenceApi = usePresenceContext();
|
|
2338
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
2339
|
-
return createComponent(Show, {
|
|
2340
|
-
get when() {
|
|
2341
|
-
return !presenceApi().isUnmounted;
|
|
2342
|
-
},
|
|
2343
|
-
get children() {
|
|
2344
|
-
return createComponent(ark.div, mergedProps);
|
|
2345
|
-
}
|
|
2346
|
-
});
|
|
2347
|
-
};
|
|
2348
|
-
|
|
2349
|
-
const PopoverDescription = props => {
|
|
2350
|
-
const api = usePopoverContext();
|
|
2351
|
-
const mergedProps = mergeProps$1(() => api().descriptionProps, props);
|
|
2352
|
-
return createComponent(ark.div, mergedProps);
|
|
2353
|
-
};
|
|
2354
|
-
|
|
2355
|
-
const PopoverIndicator = props => {
|
|
2356
|
-
const popover = usePopoverContext();
|
|
2357
|
-
const mergedProps = mergeProps$1(() => popover().indicatorProps, props);
|
|
2358
|
-
return createComponent(ark.div, mergedProps);
|
|
2359
|
-
};
|
|
2360
|
-
|
|
2361
|
-
const PopoverPositioner = props => {
|
|
2362
|
-
const api = usePopoverContext();
|
|
2363
|
-
const presenceApi = usePresenceContext();
|
|
2364
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
2365
|
-
return createComponent(Show, {
|
|
2366
|
-
get when() {
|
|
2367
|
-
return !presenceApi().isUnmounted;
|
|
2368
|
-
},
|
|
2369
|
-
get children() {
|
|
2370
|
-
return createComponent(ark.div, mergedProps);
|
|
2371
|
-
}
|
|
2372
|
-
});
|
|
2373
|
-
};
|
|
2374
|
-
|
|
2375
|
-
const usePopover = props => {
|
|
2376
|
-
const getRootNode = useEnvironmentContext();
|
|
2377
|
-
const context = mergeProps$1({
|
|
2378
|
-
id: createUniqueId(),
|
|
2379
|
-
getRootNode,
|
|
2380
|
-
'open.controlled': props.open !== undefined
|
|
2381
|
-
}, props);
|
|
2382
|
-
const [state, send] = useMachine(popover$1.machine(context), {
|
|
2383
|
-
context
|
|
2384
|
-
});
|
|
2385
|
-
return createMemo(() => popover$1.connect(state, send, normalizeProps));
|
|
2386
|
-
};
|
|
2387
|
-
|
|
2388
|
-
const PopoverRoot = props => {
|
|
2389
|
-
const [presenceProps, popoverProps] = splitPresenceProps(props);
|
|
2390
|
-
const [usePopoverProps, localProps] = createSplitProps()(popoverProps, ['autoFocus', 'closeOnEsc', 'closeOnInteractOutside', 'dir', 'getRootNode', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'portalled', 'positioning']);
|
|
2391
|
-
const api = usePopover(usePopoverProps);
|
|
2392
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
2393
|
-
present: api().isOpen
|
|
2394
|
-
})));
|
|
2395
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
2396
|
-
return createComponent(PopoverProvider, {
|
|
2397
|
-
value: api,
|
|
2398
|
-
get children() {
|
|
2399
|
-
return createComponent(PresenceProvider, {
|
|
2400
|
-
value: apiPresence,
|
|
2401
|
-
get children() {
|
|
2402
|
-
return getChildren();
|
|
2403
|
-
}
|
|
2404
|
-
});
|
|
2405
|
-
}
|
|
2406
|
-
});
|
|
2407
|
-
};
|
|
2408
|
-
|
|
2409
|
-
const PopoverTitle = props => {
|
|
2410
|
-
const api = usePopoverContext();
|
|
2411
|
-
const mergedProps = mergeProps$1(() => api().titleProps, props);
|
|
2412
|
-
return createComponent(ark.div, mergedProps);
|
|
2413
|
-
};
|
|
2414
|
-
|
|
2415
|
-
const PopoverTrigger = props => {
|
|
2416
|
-
const api = usePopoverContext();
|
|
2417
|
-
const presenceApi = usePresenceContext();
|
|
2418
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, () => ({
|
|
2419
|
-
'aria-controls': presenceApi().isUnmounted && null
|
|
2420
|
-
}), props);
|
|
2421
|
-
return createComponent(ark.button, mergedProps);
|
|
2422
|
-
};
|
|
2423
|
-
|
|
2424
|
-
var popover = /*#__PURE__*/Object.freeze({
|
|
2425
|
-
__proto__: null,
|
|
2426
|
-
Anchor: PopoverAnchor,
|
|
2427
|
-
Arrow: PopoverArrow,
|
|
2428
|
-
ArrowTip: PopoverArrowTip,
|
|
2429
|
-
CloseTrigger: PopoverCloseTrigger,
|
|
2430
|
-
Content: PopoverContent,
|
|
2431
|
-
Description: PopoverDescription,
|
|
2432
|
-
Indicator: PopoverIndicator,
|
|
2433
|
-
Positioner: PopoverPositioner,
|
|
2434
|
-
Root: PopoverRoot,
|
|
2435
|
-
Title: PopoverTitle,
|
|
2436
|
-
Trigger: PopoverTrigger
|
|
2437
|
-
});
|
|
2438
|
-
|
|
2439
|
-
const [ProgressProvider, useProgressContext] = createContext({
|
|
2440
|
-
hookName: 'useProgressContext',
|
|
2441
|
-
providerName: '<ProgressProvider />'
|
|
2442
|
-
});
|
|
2443
|
-
|
|
2444
|
-
const ProgressCircle = props => {
|
|
2445
|
-
const api = useProgressContext();
|
|
2446
|
-
const mergedProps = mergeProps$1(() => api().circleProps, props);
|
|
2447
|
-
return createComponent(ark.svg, mergedProps);
|
|
2448
|
-
};
|
|
2449
|
-
|
|
2450
|
-
const ProgressCircleRange = props => {
|
|
2451
|
-
const api = useProgressContext();
|
|
2452
|
-
const mergedProps = mergeProps$1(() => api().circleRangeProps, props);
|
|
2453
|
-
return createComponent(ark.circle, mergedProps);
|
|
2454
|
-
};
|
|
2455
|
-
|
|
2456
|
-
const ProgressCircleTrack = props => {
|
|
2457
|
-
const api = useProgressContext();
|
|
2458
|
-
const mergedProps = mergeProps$1(() => api().circleTrackProps, props);
|
|
2459
|
-
return createComponent(ark.circle, mergedProps);
|
|
2460
|
-
};
|
|
2461
|
-
|
|
2462
|
-
const ProgressLabel = props => {
|
|
2463
|
-
const api = useProgressContext();
|
|
2464
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
2465
|
-
return createComponent(ark.label, mergedProps);
|
|
2466
|
-
};
|
|
2467
|
-
|
|
2468
|
-
const ProgressRange = props => {
|
|
2469
|
-
const api = useProgressContext();
|
|
2470
|
-
const mergedProps = mergeProps$1(() => api().rangeProps, props);
|
|
2471
|
-
return createComponent(ark.div, mergedProps);
|
|
2472
|
-
};
|
|
2473
|
-
|
|
2474
|
-
const useProgress = props => {
|
|
2475
|
-
const getRootNode = useEnvironmentContext();
|
|
2476
|
-
const context = mergeProps$1({
|
|
2477
|
-
id: createUniqueId(),
|
|
2478
|
-
getRootNode
|
|
2479
|
-
}, props);
|
|
2480
|
-
const [state, send] = useMachine(progress$1.machine(context), {
|
|
2481
|
-
context
|
|
2482
|
-
});
|
|
2483
|
-
return createMemo(() => progress$1.connect(state, send, normalizeProps));
|
|
2484
|
-
};
|
|
2485
|
-
|
|
2486
|
-
const ProgressRoot = props => {
|
|
2487
|
-
const [progressProps, localProps] = createSplitProps()(props, ['dir', 'getRootNode', 'id', 'max', 'min', 'orientation', 'translations', 'value']);
|
|
2488
|
-
const api = useProgress(progressProps);
|
|
2489
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2490
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
2491
|
-
return createComponent(ProgressProvider, {
|
|
2492
|
-
value: api,
|
|
2493
|
-
get children() {
|
|
2494
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
2495
|
-
get children() {
|
|
2496
|
-
return getChildren();
|
|
2497
|
-
}
|
|
2498
|
-
}));
|
|
2499
|
-
}
|
|
2500
|
-
});
|
|
2501
|
-
};
|
|
2502
|
-
|
|
2503
|
-
const ProgressTrack = props => {
|
|
2504
|
-
const api = useProgressContext();
|
|
2505
|
-
const mergedProps = mergeProps$1(() => api().trackProps, props);
|
|
2506
|
-
return createComponent(ark.div, mergedProps);
|
|
2507
|
-
};
|
|
2508
|
-
|
|
2509
|
-
const ProgressValueText = props => {
|
|
2510
|
-
const api = useProgressContext();
|
|
2511
|
-
const mergedProps = mergeProps$1(() => api().valueTextProps, props);
|
|
2512
|
-
const getChildren = () => runIfFn(props.children, () => api().valueAsString);
|
|
2513
|
-
return createComponent(ark.span, mergeProps(mergedProps, {
|
|
2514
|
-
get children() {
|
|
2515
|
-
return getChildren() || api().valueAsString;
|
|
2516
|
-
}
|
|
2517
|
-
}));
|
|
2518
|
-
};
|
|
2519
|
-
|
|
2520
|
-
const ProgressView = props => {
|
|
2521
|
-
const [state, localProps] = createSplitProps()(props, ['state']);
|
|
2522
|
-
const api = useProgressContext();
|
|
2523
|
-
const mergedProps = mergeProps$1(() => api().getViewProps(state), localProps);
|
|
2524
|
-
return createComponent(ark.span, mergedProps);
|
|
2525
|
-
};
|
|
2526
|
-
|
|
2527
|
-
var progress = /*#__PURE__*/Object.freeze({
|
|
2528
|
-
__proto__: null,
|
|
2529
|
-
Circle: ProgressCircle,
|
|
2530
|
-
CircleRange: ProgressCircleRange,
|
|
2531
|
-
CircleTrack: ProgressCircleTrack,
|
|
2532
|
-
Label: ProgressLabel,
|
|
2533
|
-
Range: ProgressRange,
|
|
2534
|
-
Root: ProgressRoot,
|
|
2535
|
-
Track: ProgressTrack,
|
|
2536
|
-
ValueText: ProgressValueText,
|
|
2537
|
-
View: ProgressView
|
|
2538
|
-
});
|
|
2539
|
-
|
|
2540
|
-
const [RadioGroupProvider, useRadioGroupContext] = createContext({
|
|
2541
|
-
hookName: 'useRadioGroupContext',
|
|
2542
|
-
providerName: '<RadioGroupProvider />'
|
|
2543
|
-
});
|
|
2544
|
-
|
|
2545
|
-
const RadioGroupIndicator = props => {
|
|
2546
|
-
const api = useRadioGroupContext();
|
|
2547
|
-
const mergedProps = mergeProps$1(() => api().indicatorProps, props);
|
|
2548
|
-
return createComponent(ark.div, mergedProps);
|
|
2549
|
-
};
|
|
2550
|
-
|
|
2551
|
-
const [RadioGroupItemProvider, useRadioGroupItemContext] = createContext({
|
|
2552
|
-
hookName: 'useRadioGroupItemContext',
|
|
2553
|
-
providerName: '<RadioGroupItemProvider />'
|
|
2554
|
-
});
|
|
2555
|
-
|
|
2556
|
-
const RadioGroupItem = props => {
|
|
2557
|
-
const [itemProps, localProps] = createSplitProps()(props, ['value', 'disabled', 'invalid']);
|
|
2558
|
-
const api = useRadioGroupContext();
|
|
2559
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
2560
|
-
const itemState = api().getItemState(itemProps);
|
|
2561
|
-
const getChildren = () => runIfFn(localProps.children, itemState);
|
|
2562
|
-
return createComponent(RadioGroupItemProvider, {
|
|
2563
|
-
value: itemProps,
|
|
2564
|
-
get children() {
|
|
2565
|
-
return createComponent(ark.label, mergeProps(mergedProps, {
|
|
2566
|
-
get children() {
|
|
2567
|
-
return getChildren();
|
|
2568
|
-
}
|
|
2569
|
-
}));
|
|
2570
|
-
}
|
|
2571
|
-
});
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
var _tmpl$$5 = /*#__PURE__*/template(`<input>`);
|
|
2575
|
-
const RadioGroupItemControl = props => {
|
|
2576
|
-
const api = useRadioGroupContext();
|
|
2577
|
-
const itemProps = useRadioGroupItemContext();
|
|
2578
|
-
const mergedProps = mergeProps$1(() => api().getItemControlProps(itemProps), props);
|
|
2579
|
-
return [createComponent(ark.div, mergedProps), (() => {
|
|
2580
|
-
var _el$ = _tmpl$$5();
|
|
2581
|
-
spread(_el$, mergeProps(() => api().getItemHiddenInputProps(itemProps)), false, false);
|
|
2582
|
-
return _el$;
|
|
2583
|
-
})()];
|
|
2584
|
-
};
|
|
2585
|
-
|
|
2586
|
-
const RadioGroupItemText = props => {
|
|
2587
|
-
const api = useRadioGroupContext();
|
|
2588
|
-
const itemProps = useRadioGroupItemContext();
|
|
2589
|
-
const mergedProps = mergeProps$1(() => api().getItemTextProps(itemProps), props);
|
|
2590
|
-
return createComponent(ark.span, mergedProps);
|
|
2591
|
-
};
|
|
2592
|
-
|
|
2593
|
-
const RadioGroupLabel = props => {
|
|
2594
|
-
const api = useRadioGroupContext();
|
|
2595
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
2596
|
-
return createComponent(ark.label, mergedProps);
|
|
2597
|
-
};
|
|
2598
|
-
|
|
2599
|
-
const useRadioGroup = props => {
|
|
2600
|
-
const getRootNode = useEnvironmentContext();
|
|
2601
|
-
const context = mergeProps$1({
|
|
2602
|
-
id: createUniqueId(),
|
|
2603
|
-
getRootNode
|
|
2604
|
-
}, props);
|
|
2605
|
-
const [state, send] = useMachine(radio.machine(context), {
|
|
2606
|
-
context
|
|
2607
|
-
});
|
|
2608
|
-
return createMemo(() => radio.connect(state, send, normalizeProps));
|
|
2609
|
-
};
|
|
2610
|
-
|
|
2611
|
-
const RadioGroupRoot = props => {
|
|
2612
|
-
const [useRadioGroupProps, localProps] = createSplitProps()(props, ['dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'value']);
|
|
2613
|
-
const api = useRadioGroup(useRadioGroupProps);
|
|
2614
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2615
|
-
return createComponent(RadioGroupProvider, {
|
|
2616
|
-
value: api,
|
|
2617
|
-
get children() {
|
|
2618
|
-
return createComponent(ark.div, mergedProps);
|
|
2619
|
-
}
|
|
2620
|
-
});
|
|
2621
|
-
};
|
|
2622
|
-
|
|
2623
|
-
var radioGroup = /*#__PURE__*/Object.freeze({
|
|
2624
|
-
__proto__: null,
|
|
2625
|
-
Indicator: RadioGroupIndicator,
|
|
2626
|
-
Item: RadioGroupItem,
|
|
2627
|
-
ItemControl: RadioGroupItemControl,
|
|
2628
|
-
ItemText: RadioGroupItemText,
|
|
2629
|
-
Label: RadioGroupLabel,
|
|
2630
|
-
Root: RadioGroupRoot
|
|
2631
|
-
});
|
|
2632
|
-
|
|
2633
|
-
const [RatingGroupProvider, useRatingGroupContext] = createContext({
|
|
2634
|
-
hookName: 'useRatingGroupContext',
|
|
2635
|
-
providerName: '<RatingGroupProvider />'
|
|
2636
|
-
});
|
|
2637
|
-
|
|
2638
|
-
var _tmpl$$4 = /*#__PURE__*/template(`<input>`);
|
|
2639
|
-
const RatingGroupControl = props => {
|
|
2640
|
-
const api = useRatingGroupContext();
|
|
2641
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
2642
|
-
const getChildren = () => runIfFn(props.children, api);
|
|
2643
|
-
return [createComponent(ark.div, mergeProps(mergedProps, {
|
|
2644
|
-
get children() {
|
|
2645
|
-
return getChildren();
|
|
2646
|
-
}
|
|
2647
|
-
})), (() => {
|
|
2648
|
-
var _el$ = _tmpl$$4();
|
|
2649
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
2650
|
-
return _el$;
|
|
2651
|
-
})()];
|
|
2652
|
-
};
|
|
2653
|
-
|
|
2654
|
-
const [RatingGroupItemProvider, useRatingGroupItemContext] = createContext({
|
|
2655
|
-
hookName: 'useRatingGroupItemContext',
|
|
2656
|
-
providerName: '<RatingGroupItemProvider />'
|
|
2657
|
-
});
|
|
2658
|
-
|
|
2659
|
-
const RatingGroupItem = props => {
|
|
2660
|
-
const [itemProps, localProps] = createSplitProps()(props, ['index']);
|
|
2661
|
-
const api = useRatingGroupContext();
|
|
2662
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
2663
|
-
const itemState = createMemo(() => api().getItemState(itemProps));
|
|
2664
|
-
const getChildren = () => runIfFn(localProps.children, itemState);
|
|
2665
|
-
return createComponent(RatingGroupItemProvider, {
|
|
2666
|
-
value: itemProps,
|
|
2667
|
-
get children() {
|
|
2668
|
-
return createComponent(ark.span, mergeProps(mergedProps, {
|
|
2669
|
-
get children() {
|
|
2670
|
-
return getChildren();
|
|
2671
|
-
}
|
|
2672
|
-
}));
|
|
2673
|
-
}
|
|
2674
|
-
});
|
|
2675
|
-
};
|
|
2676
|
-
|
|
2677
|
-
const RatingGroupLabel = props => {
|
|
2678
|
-
const api = useRatingGroupContext();
|
|
2679
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
2680
|
-
return createComponent(ark.label, mergedProps);
|
|
2681
|
-
};
|
|
2682
|
-
|
|
2683
|
-
const useRatingGroup = props => {
|
|
2684
|
-
const getRootNode = useEnvironmentContext();
|
|
2685
|
-
const context = mergeProps$1({
|
|
2686
|
-
id: createUniqueId(),
|
|
2687
|
-
getRootNode
|
|
2688
|
-
}, props);
|
|
2689
|
-
const [state, send] = useMachine(rating.machine(context), {
|
|
2690
|
-
context
|
|
2691
|
-
});
|
|
2692
|
-
return createMemo(() => rating.connect(state, send, normalizeProps));
|
|
2693
|
-
};
|
|
2694
|
-
|
|
2695
|
-
const RatingGroupRoot = props => {
|
|
2696
|
-
const [useRatingProps, localProps] = createSplitProps()(props, ['allowHalf', 'autoFocus', 'count', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'name', 'onHoverChange', 'onValueChange', 'readOnly', 'translations', 'value']);
|
|
2697
|
-
const api = useRatingGroup(useRatingProps);
|
|
2698
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2699
|
-
return createComponent(RatingGroupProvider, {
|
|
2700
|
-
value: api,
|
|
2701
|
-
get children() {
|
|
2702
|
-
return createComponent(ark.div, mergedProps);
|
|
2703
|
-
}
|
|
2704
|
-
});
|
|
2705
|
-
};
|
|
2706
|
-
|
|
2707
|
-
var ratingGroup = /*#__PURE__*/Object.freeze({
|
|
2708
|
-
__proto__: null,
|
|
2709
|
-
Control: RatingGroupControl,
|
|
2710
|
-
Item: RatingGroupItem,
|
|
2711
|
-
Label: RatingGroupLabel,
|
|
2712
|
-
Root: RatingGroupRoot
|
|
2713
|
-
});
|
|
2714
|
-
|
|
2715
|
-
const [SegmentGroupProvider, useSegmentGroupContext] = createContext({
|
|
2716
|
-
hookName: 'useSegmentGroupContext',
|
|
2717
|
-
providerName: '<SegmentGroupProvider />'
|
|
2718
|
-
});
|
|
2719
|
-
|
|
2720
|
-
const SegmentGroupIndicator = props => {
|
|
2721
|
-
const api = useSegmentGroupContext();
|
|
2722
|
-
const mergedProps = mergeProps$1(() => api().indicatorProps, segmentGroupAnatomy.build().indicator.attrs, props);
|
|
2723
|
-
return createComponent(ark.div, mergedProps);
|
|
2724
|
-
};
|
|
2725
|
-
|
|
2726
|
-
const [SegmentGroupItemProvider, useSegmentGroupItemContext] = createContext({
|
|
2727
|
-
hookName: 'useSegmentGroupItemContext',
|
|
2728
|
-
providerName: '<SegmentGroupItemProvider />'
|
|
2729
|
-
});
|
|
2730
|
-
|
|
2731
|
-
const SegmentGroupItem = props => {
|
|
2732
|
-
const [itemProps, localProps] = createSplitProps()(props, ['value', 'disabled', 'invalid']);
|
|
2733
|
-
const api = useSegmentGroupContext();
|
|
2734
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), segmentGroupAnatomy.build().item.attrs, localProps);
|
|
2735
|
-
const itemState = api().getItemState(itemProps);
|
|
2736
|
-
const getChildren = () => runIfFn(localProps.children, itemState);
|
|
2737
|
-
return createComponent(SegmentGroupItemProvider, {
|
|
2738
|
-
value: itemProps,
|
|
2739
|
-
get children() {
|
|
2740
|
-
return createComponent(ark.label, mergeProps(mergedProps, {
|
|
2741
|
-
get children() {
|
|
2742
|
-
return getChildren();
|
|
2743
|
-
}
|
|
2744
|
-
}));
|
|
2745
|
-
}
|
|
2746
|
-
});
|
|
2747
|
-
};
|
|
2748
|
-
|
|
2749
|
-
var _tmpl$$3 = /*#__PURE__*/template(`<input>`);
|
|
2750
|
-
const SegmentGroupItemControl = props => {
|
|
2751
|
-
const api = useSegmentGroupContext();
|
|
2752
|
-
const itemProps = useSegmentGroupItemContext();
|
|
2753
|
-
const mergedProps = mergeProps$1(() => api().getItemControlProps(itemProps), segmentGroupAnatomy.build().itemControl.attrs, props);
|
|
2754
|
-
return [createComponent(ark.div, mergedProps), (() => {
|
|
2755
|
-
var _el$ = _tmpl$$3();
|
|
2756
|
-
spread(_el$, mergeProps(() => api().getItemHiddenInputProps(itemProps)), false, false);
|
|
2757
|
-
return _el$;
|
|
2758
|
-
})()];
|
|
2759
|
-
};
|
|
2760
|
-
|
|
2761
|
-
const SegmentGroupItemText = props => {
|
|
2762
|
-
const api = useSegmentGroupContext();
|
|
2763
|
-
const itemProps = useSegmentGroupItemContext();
|
|
2764
|
-
const mergedProps = mergeProps$1(() => api().getItemTextProps(itemProps), segmentGroupAnatomy.build().itemText.attrs, props);
|
|
2765
|
-
return createComponent(ark.span, mergedProps);
|
|
2766
|
-
};
|
|
2767
|
-
|
|
2768
|
-
const SegmentGroupLabel = props => {
|
|
2769
|
-
const api = useSegmentGroupContext();
|
|
2770
|
-
const mergedProps = mergeProps$1(() => api().labelProps, segmentGroupAnatomy.build().label.attrs, props);
|
|
2771
|
-
return createComponent(ark.label, mergedProps);
|
|
2772
|
-
};
|
|
2773
|
-
|
|
2774
|
-
const useSegmentGroup = props => {
|
|
2775
|
-
const getRootNode = useEnvironmentContext();
|
|
2776
|
-
const context = mergeProps$1({
|
|
2777
|
-
id: createUniqueId(),
|
|
2778
|
-
getRootNode
|
|
2779
|
-
}, props);
|
|
2780
|
-
const [state, send] = useMachine(radio.machine(context), {
|
|
2781
|
-
context
|
|
2782
|
-
});
|
|
2783
|
-
return createMemo(() => radio.connect(state, send, normalizeProps));
|
|
2784
|
-
};
|
|
2785
|
-
|
|
2786
|
-
const SegmentGroupRoot = props => {
|
|
2787
|
-
const [groupParams, localProps] = createSplitProps()(props, ['dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'value']);
|
|
2788
|
-
const api = useSegmentGroup(groupParams);
|
|
2789
|
-
const mergedProps = mergeProps$1(() => api().rootProps, segmentGroupAnatomy.build().root.attrs, localProps);
|
|
2790
|
-
return createComponent(SegmentGroupProvider, {
|
|
2791
|
-
value: api,
|
|
2792
|
-
get children() {
|
|
2793
|
-
return createComponent(ark.div, mergedProps);
|
|
2794
|
-
}
|
|
2795
|
-
});
|
|
2796
|
-
};
|
|
2797
|
-
|
|
2798
|
-
var segmentGroup = /*#__PURE__*/Object.freeze({
|
|
2799
|
-
__proto__: null,
|
|
2800
|
-
Indicator: SegmentGroupIndicator,
|
|
2801
|
-
Item: SegmentGroupItem,
|
|
2802
|
-
ItemControl: SegmentGroupItemControl,
|
|
2803
|
-
ItemText: SegmentGroupItemText,
|
|
2804
|
-
Label: SegmentGroupLabel,
|
|
2805
|
-
Root: SegmentGroupRoot
|
|
2806
|
-
});
|
|
2807
|
-
|
|
2808
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2809
|
-
const [SelectProvider, useSelectContext] = createContext({
|
|
2810
|
-
hookName: 'useSelectContext',
|
|
2811
|
-
providerName: '<SelectProvider />'
|
|
2812
|
-
});
|
|
2813
|
-
|
|
2814
|
-
const SelectClearTrigger = props => {
|
|
2815
|
-
const api = useSelectContext();
|
|
2816
|
-
const mergedProps = mergeProps$1(() => api().clearTriggerProps, props);
|
|
2817
|
-
return createComponent(ark.button, mergedProps);
|
|
2818
|
-
};
|
|
2819
|
-
|
|
2820
|
-
const SelectContent = props => {
|
|
2821
|
-
const api = useSelectContext();
|
|
2822
|
-
const presenceApi = usePresenceContext();
|
|
2823
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
2824
|
-
return createComponent(Show, {
|
|
2825
|
-
get when() {
|
|
2826
|
-
return !presenceApi().isUnmounted;
|
|
2827
|
-
},
|
|
2828
|
-
get children() {
|
|
2829
|
-
return createComponent(ark.div, mergedProps);
|
|
2830
|
-
}
|
|
2831
|
-
});
|
|
2832
|
-
};
|
|
2833
|
-
|
|
2834
|
-
var _tmpl$$2 = /*#__PURE__*/template(`<option value="">`),
|
|
2835
|
-
_tmpl$2 = /*#__PURE__*/template(`<select>`),
|
|
2836
|
-
_tmpl$3 = /*#__PURE__*/template(`<option>`);
|
|
2837
|
-
const SelectControl = props => {
|
|
2838
|
-
const api = useSelectContext();
|
|
2839
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
2840
|
-
const isValueEmpty = createMemo(() => api().value.length === 0);
|
|
2841
|
-
return [createComponent(ark.div, mergedProps), (() => {
|
|
2842
|
-
var _el$ = _tmpl$2();
|
|
2843
|
-
spread(_el$, mergeProps(() => api().hiddenSelectProps), false, true);
|
|
2844
|
-
insert(_el$, createComponent(Show, {
|
|
2845
|
-
get when() {
|
|
2846
|
-
return isValueEmpty();
|
|
2847
|
-
},
|
|
2848
|
-
get children() {
|
|
2849
|
-
return _tmpl$$2();
|
|
2850
|
-
}
|
|
2851
|
-
}), null);
|
|
2852
|
-
insert(_el$, createComponent(Index, {
|
|
2853
|
-
get each() {
|
|
2854
|
-
return api().collection.toArray();
|
|
2855
|
-
},
|
|
2856
|
-
children: option => (() => {
|
|
2857
|
-
var _el$3 = _tmpl$3();
|
|
2858
|
-
insert(_el$3, () => option().label);
|
|
2859
|
-
effect(() => _el$3.value = option().value);
|
|
2860
|
-
return _el$3;
|
|
2861
|
-
})()
|
|
2862
|
-
}), null);
|
|
2863
|
-
return _el$;
|
|
2864
|
-
})()];
|
|
2865
|
-
};
|
|
2866
|
-
|
|
2867
|
-
const SelectIndicator = props => {
|
|
2868
|
-
const api = useSelectContext();
|
|
2869
|
-
const mergedProps = mergeProps$1(() => api().indicatorProps, props);
|
|
2870
|
-
return createComponent(ark.div, mergedProps);
|
|
2871
|
-
};
|
|
2872
|
-
|
|
2873
|
-
const [SelectItemProvider, useSelectItemContext] = createContext({
|
|
2874
|
-
hookName: 'useSelectItemContext',
|
|
2875
|
-
providerName: '<SelectItemProvider />'
|
|
2876
|
-
});
|
|
2877
|
-
|
|
2878
|
-
const SelectItem = props => {
|
|
2879
|
-
const [itemProps, localProps] = createSplitProps()(props, ['item']);
|
|
2880
|
-
const api = useSelectContext();
|
|
2881
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
2882
|
-
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
2883
|
-
return createComponent(SelectItemProvider, {
|
|
2884
|
-
value: itemProps,
|
|
2885
|
-
get children() {
|
|
2886
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
2887
|
-
get children() {
|
|
2888
|
-
return getChildren();
|
|
2889
|
-
}
|
|
2890
|
-
}));
|
|
2891
|
-
}
|
|
2892
|
-
});
|
|
2893
|
-
};
|
|
2894
|
-
|
|
2895
|
-
const SelectItemGroup = props => {
|
|
2896
|
-
const [itemGroupProps, localProps] = createSplitProps()(props, ['id']);
|
|
2897
|
-
const api = useSelectContext();
|
|
2898
|
-
const mergedProps = mergeProps$1(() => api().getItemGroupProps(itemGroupProps), localProps);
|
|
2899
|
-
return createComponent(ark.div, mergedProps);
|
|
2900
|
-
};
|
|
2901
|
-
|
|
2902
|
-
const SelectItemGroupLabel = props => {
|
|
2903
|
-
const [labelProps, localProps] = createSplitProps()(props, ['for']);
|
|
2904
|
-
const api = useSelectContext();
|
|
2905
|
-
const mergedProps = mergeProps$1(() => api().getItemGroupLabelProps({
|
|
2906
|
-
htmlFor: labelProps.for
|
|
2907
|
-
}), localProps);
|
|
2908
|
-
return createComponent(ark.div, mergedProps);
|
|
2909
|
-
};
|
|
2910
|
-
|
|
2911
|
-
const SelectItemIndicator = props => {
|
|
2912
|
-
const api = useSelectContext();
|
|
2913
|
-
const itemProps = useSelectItemContext();
|
|
2914
|
-
const mergedProps = mergeProps$1(() => api().getItemIndicatorProps(itemProps), props);
|
|
2915
|
-
return createComponent(ark.div, mergedProps);
|
|
2916
|
-
};
|
|
2917
|
-
|
|
2918
|
-
const SelectItemText = props => {
|
|
2919
|
-
const api = useSelectContext();
|
|
2920
|
-
const itemProps = useSelectItemContext();
|
|
2921
|
-
const mergedProps = mergeProps$1(() => api().getItemTextProps(itemProps), props);
|
|
2922
|
-
return createComponent(ark.span, mergedProps);
|
|
2923
|
-
};
|
|
2924
|
-
|
|
2925
|
-
const SelectLabel = props => {
|
|
2926
|
-
const api = useSelectContext();
|
|
2927
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
2928
|
-
return createComponent(ark.label, mergedProps);
|
|
2929
|
-
};
|
|
2930
|
-
|
|
2931
|
-
const SelectPositioner = props => {
|
|
2932
|
-
const api = useSelectContext();
|
|
2933
|
-
const presenceApi = usePresenceContext();
|
|
2934
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
2935
|
-
return createComponent(Show, {
|
|
2936
|
-
get when() {
|
|
2937
|
-
return !presenceApi().isUnmounted;
|
|
2938
|
-
},
|
|
2939
|
-
get children() {
|
|
2940
|
-
return createComponent(ark.div, mergedProps);
|
|
2941
|
-
}
|
|
2942
|
-
});
|
|
2943
|
-
};
|
|
2944
|
-
|
|
2945
|
-
const useSelect = props => {
|
|
2946
|
-
const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
2947
|
-
const collection = () => select$1.collection(collectionOptions);
|
|
2948
|
-
const getRootNode = useEnvironmentContext();
|
|
2949
|
-
const context = () => mergeProps$1({
|
|
2950
|
-
id: createUniqueId(),
|
|
2951
|
-
getRootNode,
|
|
2952
|
-
collection: collection(),
|
|
2953
|
-
'open.controlled': props.open !== undefined
|
|
2954
|
-
}, rest);
|
|
2955
|
-
const [state, send] = useMachine(select$1.machine(context()), {
|
|
2956
|
-
context
|
|
2957
|
-
});
|
|
2958
|
-
return createMemo(() => select$1.connect(state, send, normalizeProps));
|
|
2959
|
-
};
|
|
2960
|
-
|
|
2961
|
-
const SelectRoot = props => {
|
|
2962
|
-
const [presenceProps, selectProps] = splitPresenceProps(props);
|
|
2963
|
-
const [useSelectProps, localProps] = createSplitProps()(selectProps, ['closeOnSelect', 'dir', 'disabled', 'form', 'getRootNode', 'highlightedValue', 'id', 'ids', 'invalid', 'isItemDisabled', 'items', 'itemToString', 'itemToValue', 'loop', 'multiple', 'name', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'open', 'positioning', 'readOnly', 'selectOnBlur', 'value']);
|
|
2964
|
-
const api = useSelect(useSelectProps);
|
|
2965
|
-
const presenceApi = usePresence(mergeProps$1(() => ({
|
|
2966
|
-
present: api().isOpen
|
|
2967
|
-
}), presenceProps));
|
|
2968
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
2969
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
2970
|
-
return createComponent(SelectProvider, {
|
|
2971
|
-
value: api,
|
|
2972
|
-
get children() {
|
|
2973
|
-
return createComponent(PresenceProvider, {
|
|
2974
|
-
value: presenceApi,
|
|
2975
|
-
get children() {
|
|
2976
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
2977
|
-
get children() {
|
|
2978
|
-
return getChildren();
|
|
2979
|
-
}
|
|
2980
|
-
}));
|
|
2981
|
-
}
|
|
2982
|
-
});
|
|
2983
|
-
}
|
|
2984
|
-
});
|
|
2985
|
-
};
|
|
2986
|
-
|
|
2987
|
-
const SelectTrigger = props => {
|
|
2988
|
-
const api = useSelectContext();
|
|
2989
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, props);
|
|
2990
|
-
return createComponent(ark.button, mergedProps);
|
|
2991
|
-
};
|
|
2992
|
-
|
|
2993
|
-
const SelectValueText = props => {
|
|
2994
|
-
const api = useSelectContext();
|
|
2995
|
-
const mergedProps = mergeProps$1(() => selectAnatomy.build().valueText.attrs, props);
|
|
2996
|
-
return createComponent(ark.span, mergeProps(mergedProps, {
|
|
2997
|
-
get children() {
|
|
2998
|
-
return api().valueAsString || props.placeholder;
|
|
2999
|
-
}
|
|
3000
|
-
}));
|
|
3001
|
-
};
|
|
3002
|
-
|
|
3003
|
-
var select = /*#__PURE__*/Object.freeze({
|
|
3004
|
-
__proto__: null,
|
|
3005
|
-
ClearTrigger: SelectClearTrigger,
|
|
3006
|
-
Content: SelectContent,
|
|
3007
|
-
Control: SelectControl,
|
|
3008
|
-
Indicator: SelectIndicator,
|
|
3009
|
-
Item: SelectItem,
|
|
3010
|
-
ItemGroup: SelectItemGroup,
|
|
3011
|
-
ItemGroupLabel: SelectItemGroupLabel,
|
|
3012
|
-
ItemIndicator: SelectItemIndicator,
|
|
3013
|
-
ItemText: SelectItemText,
|
|
3014
|
-
Label: SelectLabel,
|
|
3015
|
-
Positioner: SelectPositioner,
|
|
3016
|
-
Root: SelectRoot,
|
|
3017
|
-
Trigger: SelectTrigger,
|
|
3018
|
-
ValueText: SelectValueText
|
|
3019
|
-
});
|
|
3020
|
-
|
|
3021
|
-
const [SliderProvider, useSliderContext] = createContext({
|
|
3022
|
-
hookName: 'useSliderContext',
|
|
3023
|
-
providerName: '<SliderProvider />'
|
|
3024
|
-
});
|
|
3025
|
-
|
|
3026
|
-
const SliderControl = props => {
|
|
3027
|
-
const api = useSliderContext();
|
|
3028
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
3029
|
-
return createComponent(ark.div, mergedProps);
|
|
3030
|
-
};
|
|
3031
|
-
|
|
3032
|
-
const SliderLabel = props => {
|
|
3033
|
-
const api = useSliderContext();
|
|
3034
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
3035
|
-
return createComponent(ark.label, mergedProps);
|
|
3036
|
-
};
|
|
3037
|
-
|
|
3038
|
-
const SliderMarker = props => {
|
|
3039
|
-
const [markerProps, localProps] = createSplitProps()(props, ['value']);
|
|
3040
|
-
const api = useSliderContext();
|
|
3041
|
-
const mergedProps = mergeProps$1(() => api().getMarkerProps(markerProps), localProps);
|
|
3042
|
-
return createComponent(ark.span, mergedProps);
|
|
3043
|
-
};
|
|
3044
|
-
|
|
3045
|
-
const SliderMarkerGroup = props => {
|
|
3046
|
-
const api = useSliderContext();
|
|
3047
|
-
const mergedProps = mergeProps$1(() => api().markerGroupProps, props);
|
|
3048
|
-
return createComponent(ark.div, mergedProps);
|
|
3049
|
-
};
|
|
3050
|
-
|
|
3051
|
-
const SliderRange = props => {
|
|
3052
|
-
const api = useSliderContext();
|
|
3053
|
-
const mergedProps = mergeProps$1(() => api().rangeProps, props);
|
|
3054
|
-
return createComponent(ark.div, mergedProps);
|
|
3055
|
-
};
|
|
3056
|
-
|
|
3057
|
-
const useSlider = props => {
|
|
3058
|
-
const getRootNode = useEnvironmentContext();
|
|
3059
|
-
const context = mergeProps$1({
|
|
3060
|
-
id: createUniqueId(),
|
|
3061
|
-
getRootNode
|
|
3062
|
-
}, props);
|
|
3063
|
-
const [state, send] = useMachine(slider$1.machine(context), {
|
|
3064
|
-
context
|
|
3065
|
-
});
|
|
3066
|
-
return createMemo(() => slider$1.connect(state, send, normalizeProps));
|
|
3067
|
-
};
|
|
3068
|
-
|
|
3069
|
-
const SliderRoot = props => {
|
|
3070
|
-
const [sliderParams, restProps] = createSplitProps()(props, ['aria-label', 'aria-labelledby', 'dir', 'disabled', 'form', 'getAriaValueText', 'getRootNode', 'id', 'ids', 'invalid', 'max', 'min', 'minStepsBetweenThumbs', 'name', 'onFocusChange', 'onValueChange', 'onValueChangeEnd', 'orientation', 'origin', 'readOnly', 'step', 'thumbAlignment', 'thumbAlignment', 'thumbSize', 'value']);
|
|
3071
|
-
const api = useSlider(sliderParams);
|
|
3072
|
-
const mergedProps = mergeProps$1(() => api().rootProps, restProps);
|
|
3073
|
-
const getChildren = () => runIfFn(restProps.children, api);
|
|
3074
|
-
return createComponent(SliderProvider, {
|
|
3075
|
-
value: api,
|
|
3076
|
-
get children() {
|
|
3077
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
3078
|
-
get children() {
|
|
3079
|
-
return getChildren();
|
|
3080
|
-
}
|
|
3081
|
-
}));
|
|
3082
|
-
}
|
|
3083
|
-
});
|
|
3084
|
-
};
|
|
3085
|
-
|
|
3086
|
-
const SliderThumb = props => {
|
|
3087
|
-
const [thumbProps, localProps] = createSplitProps()(props, ['index']);
|
|
3088
|
-
const api = useSliderContext();
|
|
3089
|
-
const mergedProps = mergeProps$1(() => api().getThumbProps(thumbProps), localProps);
|
|
3090
|
-
return createComponent(ark.div, mergedProps);
|
|
3091
|
-
};
|
|
3092
|
-
|
|
3093
|
-
const SliderTrack = props => {
|
|
3094
|
-
const api = useSliderContext();
|
|
3095
|
-
const mergedProps = mergeProps$1(() => api().trackProps, props);
|
|
3096
|
-
return createComponent(ark.div, mergedProps);
|
|
3097
|
-
};
|
|
3098
|
-
|
|
3099
|
-
const SliderValueText = props => {
|
|
3100
|
-
const api = useSliderContext();
|
|
3101
|
-
const mergedProps = mergeProps$1(() => api().valueTextProps, props);
|
|
3102
|
-
const getChildren = children(() => props.children);
|
|
3103
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
3104
|
-
get children() {
|
|
3105
|
-
return getChildren() || api().value.join(',');
|
|
3106
|
-
}
|
|
3107
|
-
}));
|
|
3108
|
-
};
|
|
3109
|
-
|
|
3110
|
-
var slider = /*#__PURE__*/Object.freeze({
|
|
3111
|
-
__proto__: null,
|
|
3112
|
-
Control: SliderControl,
|
|
3113
|
-
Label: SliderLabel,
|
|
3114
|
-
Marker: SliderMarker,
|
|
3115
|
-
MarkerGroup: SliderMarkerGroup,
|
|
3116
|
-
Range: SliderRange,
|
|
3117
|
-
Root: SliderRoot,
|
|
3118
|
-
Thumb: SliderThumb,
|
|
3119
|
-
Track: SliderTrack,
|
|
3120
|
-
ValueText: SliderValueText
|
|
3121
|
-
});
|
|
3122
|
-
|
|
3123
|
-
const [SplitterProvider, useSplitterContext] = createContext({
|
|
3124
|
-
hookName: 'useSplitterContext',
|
|
3125
|
-
providerName: '<SplitterProvider />'
|
|
3126
|
-
});
|
|
3127
|
-
|
|
3128
|
-
const SplitterPanel = props => {
|
|
3129
|
-
const [panelParams, restProps] = createSplitProps()(props, ['id', 'snapSize']);
|
|
3130
|
-
const api = useSplitterContext();
|
|
3131
|
-
const mergedProps = mergeProps$1(() => api().getPanelProps(panelParams), restProps);
|
|
3132
|
-
return createComponent(ark.div, mergedProps);
|
|
3133
|
-
};
|
|
3134
|
-
|
|
3135
|
-
const SplitterResizeTrigger = props => {
|
|
3136
|
-
const api = useSplitterContext();
|
|
3137
|
-
const [triggerParams, restProps] = createSplitProps()(props, ['disabled', 'id', 'step']);
|
|
3138
|
-
const mergedProps = mergeProps$1(() => api().getResizeTriggerProps(triggerParams), restProps);
|
|
3139
|
-
return createComponent(ark.button, mergedProps);
|
|
3140
|
-
};
|
|
3141
|
-
|
|
3142
|
-
const useSplitter = props => {
|
|
3143
|
-
const getRootNode = useEnvironmentContext();
|
|
3144
|
-
const context = mergeProps$1({
|
|
3145
|
-
id: createUniqueId(),
|
|
3146
|
-
getRootNode
|
|
3147
|
-
}, props);
|
|
3148
|
-
const [state, send] = useMachine(splitter$1.machine(context), {
|
|
3149
|
-
context
|
|
3150
|
-
});
|
|
3151
|
-
return createMemo(() => splitter$1.connect(state, send, normalizeProps));
|
|
3152
|
-
};
|
|
3153
|
-
|
|
3154
|
-
const SplitterRoot = props => {
|
|
3155
|
-
const [splitterParams, localProps] = createSplitProps()(props, ['dir', 'getRootNode', 'id', 'ids', 'onSizeChange', 'onSizeChangeEnd', 'onSizeChangeStart', 'orientation', 'size']);
|
|
3156
|
-
const api = useSplitter(splitterParams);
|
|
3157
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
3158
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
3159
|
-
return createComponent(SplitterProvider, {
|
|
3160
|
-
value: api,
|
|
3161
|
-
get children() {
|
|
3162
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
3163
|
-
get children() {
|
|
3164
|
-
return getChildren();
|
|
3165
|
-
}
|
|
3166
|
-
}));
|
|
3167
|
-
}
|
|
3168
|
-
});
|
|
3169
|
-
};
|
|
3170
|
-
|
|
3171
|
-
var splitter = /*#__PURE__*/Object.freeze({
|
|
3172
|
-
__proto__: null,
|
|
3173
|
-
Panel: SplitterPanel,
|
|
3174
|
-
ResizeTrigger: SplitterResizeTrigger,
|
|
3175
|
-
Root: SplitterRoot
|
|
3176
|
-
});
|
|
3177
|
-
|
|
3178
|
-
const [SwitchProvider, useSwitchContext] = createContext({
|
|
3179
|
-
hookName: 'useSwitchContext',
|
|
3180
|
-
providerName: '<SwitchProvider />'
|
|
3181
|
-
});
|
|
3182
|
-
|
|
3183
|
-
var _tmpl$$1 = /*#__PURE__*/template(`<input>`);
|
|
3184
|
-
const SwitchControl = props => {
|
|
3185
|
-
const api = useSwitchContext();
|
|
3186
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
3187
|
-
return [createComponent(ark.span, mergedProps), (() => {
|
|
3188
|
-
var _el$ = _tmpl$$1();
|
|
3189
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
3190
|
-
return _el$;
|
|
3191
|
-
})()];
|
|
3192
|
-
};
|
|
3193
|
-
|
|
3194
|
-
const SwitchLabel = props => {
|
|
3195
|
-
const api = useSwitchContext();
|
|
3196
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
3197
|
-
return createComponent(ark.span, mergedProps);
|
|
3198
|
-
};
|
|
3199
|
-
|
|
3200
|
-
const useSwitch = props => {
|
|
3201
|
-
const getRootNode = useEnvironmentContext();
|
|
3202
|
-
const context = mergeProps$1({
|
|
3203
|
-
id: createUniqueId(),
|
|
3204
|
-
getRootNode
|
|
3205
|
-
}, props);
|
|
3206
|
-
const [state, send] = useMachine(zagSwitch.machine(context), {
|
|
3207
|
-
context
|
|
3208
|
-
});
|
|
3209
|
-
return createMemo(() => zagSwitch.connect(state, send, normalizeProps));
|
|
3210
|
-
};
|
|
3211
|
-
|
|
3212
|
-
const SwitchRoot = props => {
|
|
3213
|
-
const [switchProps, localProps] = createSplitProps()(props, ['checked', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'label', 'name', 'onCheckedChange', 'required', 'value']);
|
|
3214
|
-
const api = useSwitch(switchProps);
|
|
3215
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
3216
|
-
const getChildren = () => runIfFn(props.children, api);
|
|
3217
|
-
return createComponent(SwitchProvider, {
|
|
3218
|
-
value: api,
|
|
3219
|
-
get children() {
|
|
3220
|
-
return createComponent(ark.label, mergeProps(mergedProps, {
|
|
3221
|
-
get children() {
|
|
3222
|
-
return getChildren();
|
|
3223
|
-
}
|
|
3224
|
-
}));
|
|
3225
|
-
}
|
|
3226
|
-
});
|
|
3227
|
-
};
|
|
3228
|
-
|
|
3229
|
-
const SwitchThumb = props => {
|
|
3230
|
-
const api = useSwitchContext();
|
|
3231
|
-
const mergedProps = mergeProps$1(() => api().thumbProps, props);
|
|
3232
|
-
return createComponent(ark.span, mergedProps);
|
|
3233
|
-
};
|
|
3234
|
-
|
|
3235
|
-
var _switch = /*#__PURE__*/Object.freeze({
|
|
3236
|
-
__proto__: null,
|
|
3237
|
-
Control: SwitchControl,
|
|
3238
|
-
Label: SwitchLabel,
|
|
3239
|
-
Root: SwitchRoot,
|
|
3240
|
-
Thumb: SwitchThumb
|
|
3241
|
-
});
|
|
3242
|
-
|
|
3243
|
-
const [TabsProvider, useTabsContext] = createContext({
|
|
3244
|
-
hookName: 'useTabsContext',
|
|
3245
|
-
providerName: '<TabsProvider />'
|
|
3246
|
-
});
|
|
3247
|
-
|
|
3248
|
-
const TabContent = props => {
|
|
3249
|
-
const [contentProps, localProps] = createSplitProps()(props, ['value']);
|
|
3250
|
-
const api = useTabsContext();
|
|
3251
|
-
const presenceProps = usePresencePropsContext();
|
|
3252
|
-
const presenceApi = usePresence(mergeProps$1(presenceProps, () => ({
|
|
3253
|
-
present: api().value === contentProps.value
|
|
3254
|
-
})));
|
|
3255
|
-
const mergedProps = mergeProps$1(() => api().getContentProps(contentProps), () => presenceApi().presenceProps, localProps);
|
|
3256
|
-
return createComponent(PresenceProvider, {
|
|
3257
|
-
value: presenceApi,
|
|
3258
|
-
get children() {
|
|
3259
|
-
return createComponent(Show, {
|
|
3260
|
-
get when() {
|
|
3261
|
-
return !presenceApi().isUnmounted;
|
|
3262
|
-
},
|
|
3263
|
-
get children() {
|
|
3264
|
-
return createComponent(ark.div, mergedProps);
|
|
3265
|
-
}
|
|
3266
|
-
});
|
|
3267
|
-
}
|
|
3268
|
-
});
|
|
3269
|
-
};
|
|
3270
|
-
|
|
3271
|
-
const TabIndicator = props => {
|
|
3272
|
-
const api = useTabsContext();
|
|
3273
|
-
const mergedProps = mergeProps$1(() => api().indicatorProps, props);
|
|
3274
|
-
return createComponent(ark.div, mergedProps);
|
|
3275
|
-
};
|
|
3276
|
-
|
|
3277
|
-
const TabList = props => {
|
|
3278
|
-
const api = useTabsContext();
|
|
3279
|
-
const mergedProps = mergeProps$1(() => api().tablistProps, props);
|
|
3280
|
-
return createComponent(ark.div, mergedProps);
|
|
3281
|
-
};
|
|
3282
|
-
|
|
3283
|
-
const TabTrigger = props => {
|
|
3284
|
-
const [tabParams, restProps] = createSplitProps()(props, ['disabled', 'value']);
|
|
3285
|
-
const api = useTabsContext();
|
|
3286
|
-
const mergedProps = mergeProps$1(() => api().getTriggerProps(tabParams), restProps);
|
|
3287
|
-
return createComponent(ark.button, mergedProps);
|
|
3288
|
-
};
|
|
3289
|
-
|
|
3290
|
-
const useTabs = props => {
|
|
3291
|
-
const getRootNode = useEnvironmentContext();
|
|
3292
|
-
const context = mergeProps$1({
|
|
3293
|
-
id: createUniqueId(),
|
|
3294
|
-
getRootNode
|
|
3295
|
-
}, props);
|
|
3296
|
-
const [state, send] = useMachine(tabs$1.machine(context), {
|
|
3297
|
-
context
|
|
3298
|
-
});
|
|
3299
|
-
return createMemo(() => tabs$1.connect(state, send, normalizeProps));
|
|
3300
|
-
};
|
|
3301
|
-
|
|
3302
|
-
const TabsRoot = props => {
|
|
3303
|
-
const [presenceProps, tabsProps] = splitPresenceProps(props);
|
|
3304
|
-
const [tabsParams, restProps] = createSplitProps()(tabsProps, ['activationMode', 'dir', 'getRootNode', 'id', 'ids', 'loop', 'onFocusChange', 'onValueChange', 'orientation', 'translations', 'value']);
|
|
3305
|
-
const api = useTabs(tabsParams);
|
|
3306
|
-
const mergedProps = mergeProps$1(() => api().rootProps, restProps);
|
|
3307
|
-
return createComponent(TabsProvider, {
|
|
3308
|
-
value: api,
|
|
3309
|
-
get children() {
|
|
3310
|
-
return createComponent(PresencePropsProvider, {
|
|
3311
|
-
value: presenceProps,
|
|
3312
|
-
get children() {
|
|
3313
|
-
return createComponent(ark.div, mergedProps);
|
|
3314
|
-
}
|
|
3315
|
-
});
|
|
3316
|
-
}
|
|
3317
|
-
});
|
|
3318
|
-
};
|
|
3319
|
-
|
|
3320
|
-
var tabs = /*#__PURE__*/Object.freeze({
|
|
3321
|
-
__proto__: null,
|
|
3322
|
-
Content: TabContent,
|
|
3323
|
-
Indicator: TabIndicator,
|
|
3324
|
-
List: TabList,
|
|
3325
|
-
Root: TabsRoot,
|
|
3326
|
-
Trigger: TabTrigger
|
|
3327
|
-
});
|
|
3328
|
-
|
|
3329
|
-
const [TagsInputProvider, useTagsInputContext] = createContext({
|
|
3330
|
-
hookName: 'useTagsInputContext',
|
|
3331
|
-
providerName: '<TagsInputProvider />'
|
|
3332
|
-
});
|
|
3333
|
-
|
|
3334
|
-
const TagsInputClearTrigger = props => {
|
|
3335
|
-
const api = useTagsInputContext();
|
|
3336
|
-
const mergedProps = mergeProps$1(() => api().clearTriggerProps, props);
|
|
3337
|
-
return createComponent(ark.button, mergedProps);
|
|
3338
|
-
};
|
|
3339
|
-
|
|
3340
|
-
const TagsInputControl = props => {
|
|
3341
|
-
const api = useTagsInputContext();
|
|
3342
|
-
const mergedProps = mergeProps$1(() => api().controlProps, props);
|
|
3343
|
-
return createComponent(ark.div, mergedProps);
|
|
3344
|
-
};
|
|
3345
|
-
|
|
3346
|
-
const TagsInputInput = props => {
|
|
3347
|
-
const api = useTagsInputContext();
|
|
3348
|
-
const mergedProps = mergeProps$1(() => api().inputProps, props);
|
|
3349
|
-
return createComponent(ark.input, mergedProps);
|
|
3350
|
-
};
|
|
3351
|
-
|
|
3352
|
-
const [TagsInputItemProvider, useTagsInputItemContext] = createContext({
|
|
3353
|
-
hookName: 'useTagsInputItemContext',
|
|
3354
|
-
providerName: '<TagsInputItemProvider />'
|
|
3355
|
-
});
|
|
3356
|
-
|
|
3357
|
-
const TagsInputItem = props => {
|
|
3358
|
-
const [itemProps, localProps] = createSplitProps()(props, ['disabled', 'index', 'value']);
|
|
3359
|
-
const api = useTagsInputContext();
|
|
3360
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
3361
|
-
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
3362
|
-
return createComponent(TagsInputItemProvider, {
|
|
3363
|
-
value: itemProps,
|
|
3364
|
-
get children() {
|
|
3365
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
3366
|
-
get children() {
|
|
3367
|
-
return getChildren();
|
|
3368
|
-
}
|
|
3369
|
-
}));
|
|
3370
|
-
}
|
|
3371
|
-
});
|
|
3372
|
-
};
|
|
3373
|
-
|
|
3374
|
-
const TagsInputItemDeleteTrigger = props => {
|
|
3375
|
-
const api = useTagsInputContext();
|
|
3376
|
-
const itemProps = useTagsInputItemContext();
|
|
3377
|
-
const mergedProps = mergeProps$1(() => api().getItemDeleteTriggerProps(itemProps), props);
|
|
3378
|
-
return createComponent(ark.button, mergedProps);
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
|
-
const TagsInputItemInput = props => {
|
|
3382
|
-
const api = useTagsInputContext();
|
|
3383
|
-
const itemProps = useTagsInputItemContext();
|
|
3384
|
-
const mergedProps = mergeProps$1(() => api().getItemInputProps(itemProps), props);
|
|
3385
|
-
return createComponent(ark.input, mergedProps);
|
|
3386
|
-
};
|
|
3387
|
-
|
|
3388
|
-
const TagsInputItemPreview = props => {
|
|
3389
|
-
const api = useTagsInputContext();
|
|
3390
|
-
const itemProps = useTagsInputItemContext();
|
|
3391
|
-
const mergedProps = mergeProps$1(() => api().getItemPreviewProps(itemProps), props);
|
|
3392
|
-
return createComponent(ark.div, mergedProps);
|
|
3393
|
-
};
|
|
3394
|
-
|
|
3395
|
-
const TagsInputItemText = props => {
|
|
3396
|
-
const api = useTagsInputContext();
|
|
3397
|
-
const itemProps = useTagsInputItemContext();
|
|
3398
|
-
const mergedProps = mergeProps$1(() => api().getItemTextProps(itemProps), props);
|
|
3399
|
-
return createComponent(ark.span, mergedProps);
|
|
3400
|
-
};
|
|
3401
|
-
|
|
3402
|
-
const TagsInputLabel = props => {
|
|
3403
|
-
const api = useTagsInputContext();
|
|
3404
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
3405
|
-
return createComponent(ark.label, mergedProps);
|
|
3406
|
-
};
|
|
3407
|
-
|
|
3408
|
-
const useTagsInput = props => {
|
|
3409
|
-
const getRootNode = useEnvironmentContext();
|
|
3410
|
-
const context = mergeProps$1({
|
|
3411
|
-
id: createUniqueId(),
|
|
3412
|
-
getRootNode
|
|
3413
|
-
}, props);
|
|
3414
|
-
const [state, send] = useMachine(tagsInput$1.machine(context), {
|
|
3415
|
-
context
|
|
3416
|
-
});
|
|
3417
|
-
return createMemo(() => tagsInput$1.connect(state, send, normalizeProps));
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
var _tmpl$ = /*#__PURE__*/template(`<input>`);
|
|
3421
|
-
const TagsInputRoot = props => {
|
|
3422
|
-
const [tagsInputParams, restProps] = createSplitProps()(props, ['addOnPaste', 'allowEditTag', 'allowOverflow', 'autoFocus', 'blurBehavior', 'delimiter', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'inputValue', 'invalid', 'max', 'maxLength', 'name', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onPointerDownOutside', 'onValueChange', 'onValueInvalid', 'readOnly', 'translations', 'validate', 'value']);
|
|
3423
|
-
const api = useTagsInput(tagsInputParams);
|
|
3424
|
-
const mergedProps = mergeProps$1(() => api().rootProps, restProps);
|
|
3425
|
-
const getChildren = () => runIfFn(restProps.children, api);
|
|
3426
|
-
return createComponent(TagsInputProvider, {
|
|
3427
|
-
value: api,
|
|
3428
|
-
get children() {
|
|
3429
|
-
return [createComponent(ark.div, mergeProps(mergedProps, {
|
|
3430
|
-
get children() {
|
|
3431
|
-
return getChildren();
|
|
3432
|
-
}
|
|
3433
|
-
})), (() => {
|
|
3434
|
-
var _el$ = _tmpl$();
|
|
3435
|
-
spread(_el$, mergeProps(() => api().hiddenInputProps), false, false);
|
|
3436
|
-
return _el$;
|
|
3437
|
-
})()];
|
|
3438
|
-
}
|
|
3439
|
-
});
|
|
3440
|
-
};
|
|
3441
|
-
|
|
3442
|
-
var tagsInput = /*#__PURE__*/Object.freeze({
|
|
3443
|
-
__proto__: null,
|
|
3444
|
-
ClearTrigger: TagsInputClearTrigger,
|
|
3445
|
-
Control: TagsInputControl,
|
|
3446
|
-
Input: TagsInputInput,
|
|
3447
|
-
Item: TagsInputItem,
|
|
3448
|
-
ItemDeleteTrigger: TagsInputItemDeleteTrigger,
|
|
3449
|
-
ItemInput: TagsInputItemInput,
|
|
3450
|
-
ItemPreview: TagsInputItemPreview,
|
|
3451
|
-
ItemText: TagsInputItemText,
|
|
3452
|
-
Label: TagsInputLabel,
|
|
3453
|
-
Root: TagsInputRoot
|
|
3454
|
-
});
|
|
3455
|
-
|
|
3456
|
-
const [ToastProvider, useToastContext] = createContext({
|
|
3457
|
-
hookName: 'useToastContext',
|
|
3458
|
-
providerName: '<ToastProvider />'
|
|
3459
|
-
});
|
|
3460
|
-
|
|
3461
|
-
const ToastGroup = props => {
|
|
3462
|
-
return createComponent(ark.ol, props);
|
|
3463
|
-
};
|
|
3464
|
-
|
|
3465
|
-
const createToaster = props => {
|
|
3466
|
-
const service = toast$1.group.machine({
|
|
3467
|
-
id: '1',
|
|
3468
|
-
...props
|
|
3469
|
-
}).start();
|
|
3470
|
-
const [state, send] = useActor(service);
|
|
3471
|
-
const api = createMemo(() => toast$1.group.connect(state, send, normalizeProps));
|
|
3472
|
-
const Toaster = toasterProps => {
|
|
3473
|
-
const getRootNode = useEnvironmentContext();
|
|
3474
|
-
createEffect(() => {
|
|
3475
|
-
service.setContext({
|
|
3476
|
-
getRootNode
|
|
3477
|
-
});
|
|
3478
|
-
onCleanup(() => service.stop());
|
|
3479
|
-
});
|
|
3480
|
-
const mergedProps = mergeProps$1(() => api().getGroupProps({
|
|
3481
|
-
placement: props.placement
|
|
3482
|
-
}), toasterProps);
|
|
3483
|
-
return createComponent(ToastGroup, mergeProps(mergedProps, {
|
|
3484
|
-
get children() {
|
|
3485
|
-
return createComponent(Index, {
|
|
3486
|
-
get each() {
|
|
3487
|
-
return api().toastsByPlacement[props.placement];
|
|
3488
|
-
},
|
|
3489
|
-
children: toast => createComponent(ToastProviderFactory, {
|
|
3490
|
-
get service() {
|
|
3491
|
-
return toast();
|
|
3492
|
-
}
|
|
3493
|
-
})
|
|
3494
|
-
});
|
|
3495
|
-
}
|
|
3496
|
-
}));
|
|
3497
|
-
};
|
|
3498
|
-
return [Toaster, api];
|
|
3499
|
-
};
|
|
3500
|
-
const ToastProviderFactory = props => {
|
|
3501
|
-
const [state, send] = useActor(props.service);
|
|
3502
|
-
const api = createMemo(() => toast$1.connect(state, send, normalizeProps));
|
|
3503
|
-
return createComponent(ToastProvider, {
|
|
3504
|
-
value: api,
|
|
3505
|
-
get children() {
|
|
3506
|
-
return state.context.render?.(api);
|
|
3507
|
-
}
|
|
3508
|
-
});
|
|
3509
|
-
};
|
|
3510
|
-
|
|
3511
|
-
const ToastCloseTrigger = props => {
|
|
3512
|
-
const api = useToastContext();
|
|
3513
|
-
const mergedProps = mergeProps$1(() => api().closeTriggerProps, props);
|
|
3514
|
-
return createComponent(ark.button, mergedProps);
|
|
3515
|
-
};
|
|
3516
|
-
|
|
3517
|
-
const ToastDescription = props => {
|
|
3518
|
-
const api = useToastContext();
|
|
3519
|
-
const mergedProps = mergeProps$1(() => api().descriptionProps, props);
|
|
3520
|
-
return createComponent(ark.div, mergedProps);
|
|
3521
|
-
};
|
|
3522
|
-
|
|
3523
|
-
const ToastRoot = props => {
|
|
3524
|
-
const api = useToastContext();
|
|
3525
|
-
const mergedProps = mergeProps$1(() => api().rootProps, props);
|
|
3526
|
-
return createComponent(ark.li, mergedProps);
|
|
3527
|
-
};
|
|
3528
|
-
|
|
3529
|
-
const ToastTitle = props => {
|
|
3530
|
-
const api = useToastContext();
|
|
3531
|
-
const mergedProps = mergeProps$1(() => api().titleProps, props);
|
|
3532
|
-
return createComponent(ark.div, mergedProps);
|
|
3533
|
-
};
|
|
3534
|
-
|
|
3535
|
-
var toast = /*#__PURE__*/Object.freeze({
|
|
3536
|
-
__proto__: null,
|
|
3537
|
-
CloseTrigger: ToastCloseTrigger,
|
|
3538
|
-
Description: ToastDescription,
|
|
3539
|
-
Group: ToastGroup,
|
|
3540
|
-
Root: ToastRoot,
|
|
3541
|
-
Title: ToastTitle
|
|
3542
|
-
});
|
|
3543
|
-
|
|
3544
|
-
const [ToggleGroupProvider, useToggleGroupContext] = createContext({
|
|
3545
|
-
hookName: 'useToggleGroupContext',
|
|
3546
|
-
providerName: '<ToggleGroupProvider />'
|
|
3547
|
-
});
|
|
3548
|
-
|
|
3549
|
-
const ToggleGroupItem = props => {
|
|
3550
|
-
const [toggleProps, restProps] = createSplitProps()(props, ['value', 'disabled']);
|
|
3551
|
-
const api = useToggleGroupContext();
|
|
3552
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(toggleProps), restProps);
|
|
3553
|
-
return createComponent(ark.button, mergedProps);
|
|
3554
|
-
};
|
|
3555
|
-
|
|
3556
|
-
const useToggleGroup = props => {
|
|
3557
|
-
const getRootNode = useEnvironmentContext();
|
|
3558
|
-
const context = mergeProps$1({
|
|
3559
|
-
id: createUniqueId(),
|
|
3560
|
-
getRootNode
|
|
3561
|
-
}, props);
|
|
3562
|
-
const [state, send] = useMachine(toggleGroup$1.machine(context), {
|
|
3563
|
-
context
|
|
3564
|
-
});
|
|
3565
|
-
return createMemo(() => toggleGroup$1.connect(state, send, normalizeProps));
|
|
3566
|
-
};
|
|
3567
|
-
|
|
3568
|
-
const ToggleGroupRoot = props => {
|
|
3569
|
-
const [groupParams, restProps] = createSplitProps()(props, ['dir', 'disabled', 'getRootNode', 'id', 'ids', 'loop', 'multiple', 'onValueChange', 'orientation', 'rovingFocus', 'value']);
|
|
3570
|
-
const api = useToggleGroup(groupParams);
|
|
3571
|
-
const mergedProps = mergeProps$1(() => api().rootProps, restProps);
|
|
3572
|
-
return createComponent(ToggleGroupProvider, {
|
|
3573
|
-
value: api,
|
|
3574
|
-
get children() {
|
|
3575
|
-
return createComponent(ark.div, mergedProps);
|
|
3576
|
-
}
|
|
3577
|
-
});
|
|
3578
|
-
};
|
|
3579
|
-
|
|
3580
|
-
var toggleGroup = /*#__PURE__*/Object.freeze({
|
|
3581
|
-
__proto__: null,
|
|
3582
|
-
Item: ToggleGroupItem,
|
|
3583
|
-
Root: ToggleGroupRoot
|
|
3584
|
-
});
|
|
3585
|
-
|
|
3586
|
-
const [TooltipProvider, useTooltipContext] = createContext({
|
|
3587
|
-
hookName: 'useTooltipContext',
|
|
3588
|
-
providerName: '<TooltipProvider />'
|
|
3589
|
-
});
|
|
3590
|
-
|
|
3591
|
-
const TooltipArrow = props => {
|
|
3592
|
-
const tooltip = useTooltipContext();
|
|
3593
|
-
const mergedProps = mergeProps$1(() => tooltip().arrowProps, props);
|
|
3594
|
-
return createComponent(ark.div, mergedProps);
|
|
3595
|
-
};
|
|
3596
|
-
|
|
3597
|
-
const TooltipArrowTip = props => {
|
|
3598
|
-
const api = useTooltipContext();
|
|
3599
|
-
const mergedProps = mergeProps$1(() => api().arrowTipProps, props);
|
|
3600
|
-
return createComponent(ark.div, mergedProps);
|
|
3601
|
-
};
|
|
3602
|
-
|
|
3603
|
-
const TooltipContent = props => {
|
|
3604
|
-
const api = useTooltipContext();
|
|
3605
|
-
const presenceApi = usePresenceContext();
|
|
3606
|
-
const mergedProps = mergeProps$1(() => api().contentProps, () => presenceApi().presenceProps, props);
|
|
3607
|
-
return createComponent(Show, {
|
|
3608
|
-
get when() {
|
|
3609
|
-
return !presenceApi().isUnmounted;
|
|
3610
|
-
},
|
|
3611
|
-
get children() {
|
|
3612
|
-
return createComponent(ark.div, mergedProps);
|
|
3613
|
-
}
|
|
3614
|
-
});
|
|
3615
|
-
};
|
|
3616
|
-
|
|
3617
|
-
const TooltipPositioner = props => {
|
|
3618
|
-
const api = useTooltipContext();
|
|
3619
|
-
const presenceApi = usePresenceContext();
|
|
3620
|
-
const mergedProps = mergeProps$1(() => api().positionerProps, props);
|
|
3621
|
-
return createComponent(Show, {
|
|
3622
|
-
get when() {
|
|
3623
|
-
return !presenceApi().isUnmounted;
|
|
3624
|
-
},
|
|
3625
|
-
get children() {
|
|
3626
|
-
return createComponent(ark.div, mergedProps);
|
|
3627
|
-
}
|
|
3628
|
-
});
|
|
3629
|
-
};
|
|
3630
|
-
|
|
3631
|
-
const useTooltip = props => {
|
|
3632
|
-
const getRootNode = useEnvironmentContext();
|
|
3633
|
-
const context = mergeProps$1({
|
|
3634
|
-
id: createUniqueId(),
|
|
3635
|
-
getRootNode,
|
|
3636
|
-
'open.controlled': props.open !== undefined
|
|
3637
|
-
}, props);
|
|
3638
|
-
const [state, send] = useMachine(tooltip$1.machine(context), {
|
|
3639
|
-
context
|
|
3640
|
-
});
|
|
3641
|
-
return createMemo(() => tooltip$1.connect(state, send, normalizeProps));
|
|
3642
|
-
};
|
|
3643
|
-
|
|
3644
|
-
const TooltipRoot = props => {
|
|
3645
|
-
const [presenceProps, tooltipProps] = splitPresenceProps(props);
|
|
3646
|
-
const [useTooltipProps, localProps] = createSplitProps()(tooltipProps, ['aria-label', 'closeDelay', 'closeOnEsc', 'closeOnPointerDown', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'interactive', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
3647
|
-
const api = useTooltip(useTooltipProps);
|
|
3648
|
-
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({
|
|
3649
|
-
present: api().isOpen
|
|
3650
|
-
})));
|
|
3651
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
3652
|
-
return createComponent(TooltipProvider, {
|
|
3653
|
-
value: api,
|
|
3654
|
-
get children() {
|
|
3655
|
-
return createComponent(PresenceProvider, {
|
|
3656
|
-
value: apiPresence,
|
|
3657
|
-
get children() {
|
|
3658
|
-
return getChildren();
|
|
3659
|
-
}
|
|
3660
|
-
});
|
|
3661
|
-
}
|
|
3662
|
-
});
|
|
3663
|
-
};
|
|
3664
|
-
|
|
3665
|
-
const TooltipTrigger = props => {
|
|
3666
|
-
const api = useTooltipContext();
|
|
3667
|
-
const mergedProps = mergeProps$1(() => api().triggerProps, props);
|
|
3668
|
-
return createComponent(ark.button, mergedProps);
|
|
3669
|
-
};
|
|
3670
|
-
|
|
3671
|
-
var tooltip = /*#__PURE__*/Object.freeze({
|
|
3672
|
-
__proto__: null,
|
|
3673
|
-
Arrow: TooltipArrow,
|
|
3674
|
-
ArrowTip: TooltipArrowTip,
|
|
3675
|
-
Content: TooltipContent,
|
|
3676
|
-
Positioner: TooltipPositioner,
|
|
3677
|
-
Root: TooltipRoot,
|
|
3678
|
-
Trigger: TooltipTrigger
|
|
3679
|
-
});
|
|
3680
|
-
|
|
3681
|
-
const [TreeViewBranchProvider, useTreeViewBranchContext] = createContext({
|
|
3682
|
-
hookName: 'useTreeViewBranchContext',
|
|
3683
|
-
providerName: '<TreeViewBranchProvider />'
|
|
3684
|
-
});
|
|
3685
|
-
|
|
3686
|
-
const [TreeViewProvider, useTreeViewContext] = createContext({
|
|
3687
|
-
hookName: 'useTreeViewContext',
|
|
3688
|
-
providerName: '<TreeViewProvider />'
|
|
3689
|
-
});
|
|
3690
|
-
|
|
3691
|
-
const [TreeViewDepthProvider, useTreeViewDepthContext] = createContext({
|
|
3692
|
-
hookName: 'useTreeViewDepthContext',
|
|
3693
|
-
providerName: '<TreeViewDepthProvider />'
|
|
3694
|
-
});
|
|
3695
|
-
|
|
3696
|
-
const TreeViewBranch = props => {
|
|
3697
|
-
const [itemProps, localProps] = createSplitProps()(props, ['disabled', 'id']);
|
|
3698
|
-
const api = useTreeViewContext();
|
|
3699
|
-
const depth = useTreeViewDepthContext();
|
|
3700
|
-
const branchProps = mergeProps$1(itemProps, {
|
|
3701
|
-
depth
|
|
3702
|
-
});
|
|
3703
|
-
const mergedProps = mergeProps$1(() => api().getBranchProps(branchProps), localProps);
|
|
3704
|
-
const getChildren = () => runIfFn(localProps.children, () => api().getBranchState(branchProps));
|
|
3705
|
-
return createComponent(TreeViewDepthProvider, {
|
|
3706
|
-
value: depth + 1,
|
|
3707
|
-
get children() {
|
|
3708
|
-
return createComponent(TreeViewBranchProvider, {
|
|
3709
|
-
value: branchProps,
|
|
3710
|
-
get children() {
|
|
3711
|
-
return createComponent(ark.li, mergeProps(mergedProps, {
|
|
3712
|
-
get children() {
|
|
3713
|
-
return getChildren();
|
|
3714
|
-
}
|
|
3715
|
-
}));
|
|
3716
|
-
}
|
|
3717
|
-
});
|
|
3718
|
-
}
|
|
3719
|
-
});
|
|
3720
|
-
};
|
|
3721
|
-
|
|
3722
|
-
const TreeViewBranchContent = props => {
|
|
3723
|
-
const api = useTreeViewContext();
|
|
3724
|
-
const branchProps = useTreeViewBranchContext();
|
|
3725
|
-
const mergedProps = mergeProps$1(() => api().getBranchContentProps(branchProps), props);
|
|
3726
|
-
return createComponent(ark.ul, mergedProps);
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
|
-
const TreeViewBranchControl = props => {
|
|
3730
|
-
const api = useTreeViewContext();
|
|
3731
|
-
const branchProps = useTreeViewBranchContext();
|
|
3732
|
-
const mergedProps = mergeProps$1(() => api().getBranchControlProps(branchProps), props);
|
|
3733
|
-
return createComponent(ark.div, mergedProps);
|
|
3734
|
-
};
|
|
3735
|
-
|
|
3736
|
-
const TreeViewBranchIndicator = props => {
|
|
3737
|
-
const api = useTreeViewContext();
|
|
3738
|
-
const branchProps = useTreeViewBranchContext();
|
|
3739
|
-
const mergedProps = mergeProps$1(() => api().getBranchProps(branchProps),
|
|
3740
|
-
// TODO use api.getBranchIndicatorProps() when available
|
|
3741
|
-
treeViewAnatomy.build().branchIndicator.attrs, props);
|
|
3742
|
-
return createComponent(ark.div, mergedProps);
|
|
3743
|
-
};
|
|
3744
|
-
|
|
3745
|
-
const TreeViewBranchText = props => {
|
|
3746
|
-
const api = useTreeViewContext();
|
|
3747
|
-
const branchProps = useTreeViewBranchContext();
|
|
3748
|
-
const mergedProps = mergeProps$1(() => api().getBranchTextProps(branchProps), props);
|
|
3749
|
-
return createComponent(ark.span, mergedProps);
|
|
3750
|
-
};
|
|
3751
|
-
|
|
3752
|
-
const TreeViewBranchTrigger = props => {
|
|
3753
|
-
const api = useTreeViewContext();
|
|
3754
|
-
const branchProps = useTreeViewBranchContext();
|
|
3755
|
-
const mergedProps = mergeProps$1(() => api().getBranchTriggerProps(branchProps), props);
|
|
3756
|
-
return createComponent(ark.div, mergedProps);
|
|
3757
|
-
};
|
|
3758
|
-
|
|
3759
|
-
const [TreeViewItemProvider, useTreeViewItemContext] = createContext({
|
|
3760
|
-
hookName: 'useTreeViewItemContext',
|
|
3761
|
-
providerName: '<TreeViewItemProvider />'
|
|
3762
|
-
});
|
|
3763
|
-
|
|
3764
|
-
const TreeViewItem = props => {
|
|
3765
|
-
const [_itemProps, localProps] = createSplitProps()(props, ['id', 'disabled']);
|
|
3766
|
-
const api = useTreeViewContext();
|
|
3767
|
-
const depth = useTreeViewDepthContext();
|
|
3768
|
-
const itemProps = mergeProps$1(_itemProps, {
|
|
3769
|
-
depth
|
|
3770
|
-
});
|
|
3771
|
-
const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
|
|
3772
|
-
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
3773
|
-
return createComponent(TreeViewItemProvider, {
|
|
3774
|
-
value: itemProps,
|
|
3775
|
-
get children() {
|
|
3776
|
-
return createComponent(ark.li, mergeProps(mergedProps, {
|
|
3777
|
-
get children() {
|
|
3778
|
-
return getChildren();
|
|
3779
|
-
}
|
|
3780
|
-
}));
|
|
3781
|
-
}
|
|
3782
|
-
});
|
|
3783
|
-
};
|
|
3784
|
-
|
|
3785
|
-
const TreeViewItemIndicator = props => {
|
|
3786
|
-
const api = useTreeViewContext();
|
|
3787
|
-
const itemProps = useTreeViewItemContext();
|
|
3788
|
-
const mergedProps = mergeProps$1(() => api().getItemIndicatorProps(itemProps), props);
|
|
3789
|
-
return createComponent(ark.div, mergedProps);
|
|
3790
|
-
};
|
|
3791
|
-
|
|
3792
|
-
const TreeViewItemText = props => {
|
|
3793
|
-
const api = useTreeViewContext();
|
|
3794
|
-
const itemProps = useTreeViewItemContext();
|
|
3795
|
-
const mergedProps = mergeProps$1(() => api().getItemTextProps(itemProps), props);
|
|
3796
|
-
return createComponent(ark.span, mergedProps);
|
|
3797
|
-
};
|
|
3798
|
-
|
|
3799
|
-
const TreeViewLabel = props => {
|
|
3800
|
-
const api = useTreeViewContext();
|
|
3801
|
-
const mergedProps = mergeProps$1(() => api().labelProps, props);
|
|
3802
|
-
return createComponent(ark.label, mergedProps);
|
|
3803
|
-
};
|
|
3804
|
-
|
|
3805
|
-
const useTreeView = props => {
|
|
3806
|
-
const getRootNode = useEnvironmentContext();
|
|
3807
|
-
const context = mergeProps$1({
|
|
3808
|
-
id: createUniqueId(),
|
|
3809
|
-
getRootNode
|
|
3810
|
-
}, props);
|
|
3811
|
-
const [state, send] = useMachine(treeView$1.machine(context), {
|
|
3812
|
-
context
|
|
3813
|
-
});
|
|
3814
|
-
return createMemo(() => treeView$1.connect(state, send, normalizeProps));
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
const TreeViewRoot = props => {
|
|
3818
|
-
const [useTreeViewProps, localProps] = createSplitProps()(props, ['dir', 'expandedIds', 'focusedId', 'getRootNode', 'id', 'onExpandedChange', 'onFocusChange', 'onSelectionChange', 'openOnClick', 'selectedIds', 'selectionMode']);
|
|
3819
|
-
const api = useTreeView(useTreeViewProps);
|
|
3820
|
-
const mergedProps = mergeProps$1(() => api().rootProps, localProps);
|
|
3821
|
-
const getChildren = () => runIfFn(localProps.children, api);
|
|
3822
|
-
return createComponent(TreeViewProvider, {
|
|
3823
|
-
value: api,
|
|
3824
|
-
get children() {
|
|
3825
|
-
return createComponent(ark.div, mergeProps(mergedProps, {
|
|
3826
|
-
get children() {
|
|
3827
|
-
return getChildren();
|
|
3828
|
-
}
|
|
3829
|
-
}));
|
|
3830
|
-
}
|
|
3831
|
-
});
|
|
3832
|
-
};
|
|
3833
|
-
|
|
3834
|
-
const TreeViewTree = props => {
|
|
3835
|
-
const api = useTreeViewContext();
|
|
3836
|
-
const mergedProps = mergeProps$1(() => api().treeProps, props);
|
|
3837
|
-
return createComponent(TreeViewDepthProvider, {
|
|
3838
|
-
value: 1,
|
|
3839
|
-
get children() {
|
|
3840
|
-
return createComponent(ark.ul, mergedProps);
|
|
3841
|
-
}
|
|
3842
|
-
});
|
|
3843
|
-
};
|
|
3844
|
-
|
|
3845
|
-
var treeView = /*#__PURE__*/Object.freeze({
|
|
3846
|
-
__proto__: null,
|
|
3847
|
-
Branch: TreeViewBranch,
|
|
3848
|
-
BranchContent: TreeViewBranchContent,
|
|
3849
|
-
BranchControl: TreeViewBranchControl,
|
|
3850
|
-
BranchIndicator: TreeViewBranchIndicator,
|
|
3851
|
-
BranchText: TreeViewBranchText,
|
|
3852
|
-
BranchTrigger: TreeViewBranchTrigger,
|
|
3853
|
-
Item: TreeViewItem,
|
|
3854
|
-
ItemIndicator: TreeViewItemIndicator,
|
|
3855
|
-
ItemText: TreeViewItemText,
|
|
3856
|
-
Label: TreeViewLabel,
|
|
3857
|
-
Root: TreeViewRoot,
|
|
3858
|
-
Tree: TreeViewTree
|
|
3859
|
-
});
|
|
3860
|
-
|
|
3861
|
-
export { accordion as Accordion, AccordionItem, AccordionItemContent, AccordionItemIndicator, AccordionItemTrigger, AccordionRoot, avatar as Avatar, AvatarFallback, AvatarImage, AvatarRoot, carousel as Carousel, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, CarouselNextTrigger, CarouselPrevTrigger, CarouselRoot, CarouselViewport, checkbox as Checkbox, CheckboxControl, CheckboxIndicator, CheckboxLabel, CheckboxRoot, clipboard as Clipboard, ClipboardControl, ClipboardIndicator, ClipboardInput, ClipboardLabel, ClipboardRoot, ClipboardTrigger, colorPicker as ColorPicker, ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerFormatSelect, ColorPickerFormatTrigger, ColorPickerLabel, ColorPickerPositioner, ColorPickerRoot, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchIndicator, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, ColorPickerValueText, ColorPickerView, combobox as Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxTrigger, datePicker as DatePicker, DatePickerClearTrigger, DatePickerContent, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerYearSelect, dialog as Dialog, DialogBackdrop, DialogCloseTrigger, DialogContent, DialogDescription, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger, editable as Editable, EditableArea, EditableCancelTrigger, EditableControl, EditableEditTrigger, EditableInput, EditableLabel, EditablePreview, EditableRoot, EditableSubmitTrigger, Environment, fileUpload as FileUpload, FileUploadDropzone, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadRoot, FileUploadTrigger, hoverCard as HoverCard, HoverCardArrow, HoverCardArrowTip, HoverCardContent, HoverCardPositioner, HoverCardRoot, HoverCardTrigger, LocaleProvider, menu as Menu, MenuArrow, MenuArrowTip, MenuContent, MenuContextTrigger, MenuItem, MenuItemGroup, MenuItemGroupLabel, MenuOptionItem, MenuPositioner, MenuRoot, MenuSeparator, MenuTrigger, MenuTriggerItem, numberInput as NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputRoot, NumberInputScrubber, pagination as Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, PaginationRoot, pinInput as PinInput, PinInputControl, PinInputInput, PinInputLabel, PinInputRoot, popover as Popover, PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverRoot, PopoverTitle, PopoverTrigger, Presence, PresencePropsProvider, PresenceProvider, progress as Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressLabel, ProgressRange, ProgressRoot, ProgressTrack, ProgressValueText, ProgressView, radioGroup as RadioGroup, RadioGroupIndicator, RadioGroupItem, RadioGroupItemControl, RadioGroupItemText, RadioGroupLabel, RadioGroupRoot, ratingGroup as RatingGroup, RatingGroupControl, RatingGroupItem, RatingGroupLabel, RatingGroupRoot, segmentGroup as SegmentGroup, SegmentGroupIndicator, SegmentGroupItem, SegmentGroupItemControl, SegmentGroupItemText, SegmentGroupLabel, SegmentGroupRoot, select as Select, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItem, SelectItemGroup, SelectItemGroupLabel, SelectItemIndicator, SelectItemText, SelectLabel, SelectPositioner, SelectRoot, SelectTrigger, SelectValueText, slider as Slider, SliderControl, SliderLabel, SliderMarker, SliderMarkerGroup, SliderRange, SliderRoot, SliderThumb, SliderTrack, SliderValueText, splitter as Splitter, SplitterPanel, SplitterResizeTrigger, SplitterRoot, _switch as Switch, SwitchControl, SwitchLabel, SwitchRoot, SwitchThumb, TabContent, TabIndicator, TabList, TabTrigger, tabs as Tabs, TabsRoot, tagsInput as TagsInput, TagsInputClearTrigger, TagsInputControl, TagsInputInput, TagsInputItem, TagsInputItemDeleteTrigger, TagsInputItemInput, TagsInputItemPreview, TagsInputItemText, TagsInputLabel, TagsInputRoot, toast as Toast, ToastCloseTrigger, ToastDescription, ToastGroup, ToastRoot, ToastTitle, toggleGroup as ToggleGroup, ToggleGroupItem, ToggleGroupRoot, tooltip as Tooltip, TooltipArrow, TooltipArrowTip, TooltipContent, TooltipPositioner, TooltipRoot, TooltipTrigger, treeView as TreeView, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewRoot, TreeViewTree, ark, createToaster, splitPresenceProps, useAccordionContext, useAccordionItemContext, useAvatarContext, useCarouselContext, useCheckboxContext, useClipboardContext, useColorPickerAreaContext, useColorPickerChannelSliderContext, useColorPickerContext, useComboboxContext, useDatePickerContext, useDatePickerTableCellContext, useDatePickerTableContext, useDatePickerViewContext, useDialogContext, useEditableContext, useEnvironmentContext, useFileUploadContext, useHoverCardContext, useLocaleContext, useMenuContext, useNumberInputContext, usePaginationContext, usePinInputContext, usePopoverContext, usePresence, usePresenceContext, usePresencePropsContext, useProgressContext, useRadioGroupContext, useRadioGroupItemContext, useRatingGroupContext, useRatingGroupItemContext, useSegmentGroupContext, useSegmentGroupItemContext, useSelectContext, useSelectItemContext, useSliderContext, useSplitterContext, useSwitchContext, useTabsContext, useTagsInputContext, useTagsInputItemContext, useToggleGroupContext, useTooltipContext, useTreeViewContext, withAsProp };
|
|
3862
|
-
//# sourceMappingURL=index.js.map
|