@ark-ui/solid 1.0.0-beta.0 → 1.0.0-beta.2
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/CHANGELOG.md +16 -0
- package/cjs/index.js +3534 -0
- package/cjs/index.js.map +1 -0
- package/esm/index.js +3236 -0
- package/esm/index.js.map +1 -0
- package/package.json +34 -172
- package/source/accordion/accordion-context.js +5 -0
- package/source/accordion/accordion-item-content.jsx +14 -0
- package/source/accordion/accordion-item-context.js +5 -0
- package/source/accordion/accordion-item-indicator.jsx +10 -0
- package/source/accordion/accordion-item-trigger.jsx +10 -0
- package/source/accordion/accordion-item.jsx +16 -0
- package/source/accordion/accordion.jsx +25 -0
- package/source/accordion/index.js +15 -0
- package/source/accordion/use-accordion.js +10 -0
- package/source/avatar/avatar-context.js +5 -0
- package/source/avatar/avatar-fallback.jsx +8 -0
- package/source/avatar/avatar-image.jsx +8 -0
- package/source/avatar/avatar.jsx +18 -0
- package/source/avatar/index.js +10 -0
- package/source/avatar/use-avatar.js +10 -0
- package/source/carousel/carousel-context.js +5 -0
- package/source/carousel/carousel-control.jsx +7 -0
- package/source/carousel/carousel-indicator-group.jsx +8 -0
- package/source/carousel/carousel-indicator.jsx +13 -0
- package/source/carousel/carousel-next-trigger.jsx +8 -0
- package/source/carousel/carousel-prev-trigger.jsx +8 -0
- package/source/carousel/carousel-slide-group.jsx +8 -0
- package/source/carousel/carousel-slide.jsx +10 -0
- package/source/carousel/carousel-viewport.jsx +8 -0
- package/source/carousel/carousel.jsx +25 -0
- package/source/carousel/index.js +22 -0
- package/source/carousel/use-carousel.js +10 -0
- package/source/checkbox/checkbox-context.js +5 -0
- package/source/checkbox/checkbox-control.jsx +11 -0
- package/source/checkbox/checkbox-indicator.jsx +8 -0
- package/source/checkbox/checkbox-label.jsx +8 -0
- package/source/checkbox/checkbox.jsx +28 -0
- package/source/checkbox/index.js +12 -0
- package/source/checkbox/use-checkbox.js +10 -0
- package/source/color-picker/color-picker-area-background.jsx +10 -0
- package/source/color-picker/color-picker-area-context.js +5 -0
- package/source/color-picker/color-picker-area-thumb.jsx +10 -0
- package/source/color-picker/color-picker-area.jsx +13 -0
- package/source/color-picker/color-picker-channel-input.jsx +13 -0
- package/source/color-picker/color-picker-channel-slider-context.js +5 -0
- package/source/color-picker/color-picker-channel-slider-thumb.jsx +10 -0
- package/source/color-picker/color-picker-channel-slider-track.jsx +10 -0
- package/source/color-picker/color-picker-channel-slider.jsx +16 -0
- package/source/color-picker/color-picker-content.jsx +8 -0
- package/source/color-picker/color-picker-context.js +5 -0
- package/source/color-picker/color-picker-control.jsx +8 -0
- package/source/color-picker/color-picker-eye-dropper-trigger.jsx +8 -0
- package/source/color-picker/color-picker-label.jsx +8 -0
- package/source/color-picker/color-picker-positioner.jsx +8 -0
- package/source/color-picker/color-picker-swatch-group.jsx +8 -0
- package/source/color-picker/color-picker-swatch-trigger.jsx +10 -0
- package/source/color-picker/color-picker-swatch.jsx +13 -0
- package/source/color-picker/color-picker-transparency-grid.jsx +10 -0
- package/source/color-picker/color-picker-trigger.jsx +8 -0
- package/source/color-picker/color-picker.jsx +36 -0
- package/source/color-picker/index.js +42 -0
- package/source/color-picker/use-color-picker.js +15 -0
- package/source/combobox/combobox-clear-trigger.jsx +8 -0
- package/source/combobox/combobox-content.jsx +12 -0
- package/source/combobox/combobox-context.js +6 -0
- package/source/combobox/combobox-control.jsx +8 -0
- package/source/combobox/combobox-input.jsx +8 -0
- package/source/combobox/combobox-item-context.js +5 -0
- package/source/combobox/combobox-item-group-label.jsx +10 -0
- package/source/combobox/combobox-item-group.jsx +10 -0
- package/source/combobox/combobox-item-indicator.jsx +10 -0
- package/source/combobox/combobox-item-text.jsx +10 -0
- package/source/combobox/combobox-item.jsx +15 -0
- package/source/combobox/combobox-label.jsx +8 -0
- package/source/combobox/combobox-positioner.jsx +8 -0
- package/source/combobox/combobox-trigger.jsx +8 -0
- package/source/combobox/combobox.jsx +52 -0
- package/source/combobox/index.js +30 -0
- package/source/combobox/use-combobox.js +20 -0
- package/source/constants.js +27 -0
- package/source/create-context.js +19 -0
- package/source/create-split-props.js +2 -0
- package/source/date-picker/date-picker-clear-trigger.jsx +8 -0
- package/source/date-picker/date-picker-content.jsx +8 -0
- package/source/date-picker/date-picker-context.js +5 -0
- package/source/date-picker/date-picker-control.jsx +8 -0
- package/source/date-picker/date-picker-input.jsx +8 -0
- package/source/date-picker/date-picker-label.jsx +8 -0
- package/source/date-picker/date-picker-month-select.jsx +12 -0
- package/source/date-picker/date-picker-next-trigger.jsx +10 -0
- package/source/date-picker/date-picker-positioner.jsx +8 -0
- package/source/date-picker/date-picker-prev-trigger.jsx +10 -0
- package/source/date-picker/date-picker-range-text.jsx +8 -0
- package/source/date-picker/date-picker-table-body.jsx +10 -0
- package/source/date-picker/date-picker-table-cell-context.js +5 -0
- package/source/date-picker/date-picker-table-cell-trigger.jsx +18 -0
- package/source/date-picker/date-picker-table-cell.jsx +26 -0
- package/source/date-picker/date-picker-table-context.js +5 -0
- package/source/date-picker/date-picker-table-head.jsx +10 -0
- package/source/date-picker/date-picker-table-header.jsx +10 -0
- package/source/date-picker/date-picker-table-row.jsx +10 -0
- package/source/date-picker/date-picker-table.jsx +19 -0
- package/source/date-picker/date-picker-trigger.jsx +8 -0
- package/source/date-picker/date-picker-view-context.js +5 -0
- package/source/date-picker/date-picker-view-control.jsx +10 -0
- package/source/date-picker/date-picker-view-trigger.jsx +10 -0
- package/source/date-picker/date-picker-view.jsx +15 -0
- package/source/date-picker/date-picker-year-select.jsx +17 -0
- package/source/date-picker/date-picker.jsx +47 -0
- package/source/date-picker/index.js +53 -0
- package/source/date-picker/use-date-picker.jsx +16 -0
- package/source/dialog/dialog-backdrop.jsx +12 -0
- package/source/dialog/dialog-close-trigger.jsx +8 -0
- package/source/dialog/dialog-content.jsx +12 -0
- package/source/dialog/dialog-context.js +5 -0
- package/source/dialog/dialog-description.jsx +8 -0
- package/source/dialog/dialog-positioner.jsx +8 -0
- package/source/dialog/dialog-title.jsx +8 -0
- package/source/dialog/dialog-trigger.jsx +8 -0
- package/source/dialog/dialog.jsx +31 -0
- package/source/dialog/index.js +20 -0
- package/source/dialog/use-dialog.js +10 -0
- package/source/editable/editable-area.jsx +8 -0
- package/source/editable/editable-cancel-trigger.jsx +8 -0
- package/source/editable/editable-context.js +5 -0
- package/source/editable/editable-control.jsx +8 -0
- package/source/editable/editable-edit-trigger.jsx +8 -0
- package/source/editable/editable-input.jsx +8 -0
- package/source/editable/editable-label.jsx +8 -0
- package/source/editable/editable-preview.jsx +8 -0
- package/source/editable/editable-submit-trigger.jsx +8 -0
- package/source/editable/editable.jsx +44 -0
- package/source/editable/index.js +22 -0
- package/source/editable/use-editable.js +10 -0
- package/source/environment/environment-context.js +6 -0
- package/source/environment/environment.jsx +11 -0
- package/source/environment/index.js +6 -0
- package/source/factory.jsx +38 -0
- package/source/filter-object.js +7 -0
- package/source/hover-card/hover-card-arrow-tip.jsx +8 -0
- package/source/hover-card/hover-card-arrow.jsx +8 -0
- package/source/hover-card/hover-card-content.jsx +12 -0
- package/source/hover-card/hover-card-context.js +5 -0
- package/source/hover-card/hover-card-positioner.jsx +8 -0
- package/source/hover-card/hover-card-trigger.jsx +8 -0
- package/source/hover-card/hover-card.jsx +20 -0
- package/source/hover-card/index.js +16 -0
- package/source/hover-card/use-hover-card.js +10 -0
- package/source/is-empty.js +4 -0
- package/source/is-function.js +1 -0
- package/source/menu/index.js +30 -0
- package/source/menu/menu-arrow-tip.jsx +8 -0
- package/source/menu/menu-arrow.jsx +8 -0
- package/source/menu/menu-content.jsx +12 -0
- package/source/menu/menu-context-trigger.jsx +8 -0
- package/source/menu/menu-context.js +16 -0
- package/source/menu/menu-item-group-label.jsx +12 -0
- package/source/menu/menu-item-group.jsx +10 -0
- package/source/menu/menu-item.jsx +15 -0
- package/source/menu/menu-option-item.jsx +23 -0
- package/source/menu/menu-positioner.jsx +8 -0
- package/source/menu/menu-separator.jsx +8 -0
- package/source/menu/menu-trigger-item.jsx +8 -0
- package/source/menu/menu-trigger.jsx +8 -0
- package/source/menu/menu.jsx +51 -0
- package/source/menu/use-menu.js +13 -0
- package/source/merge-style.js +30 -0
- package/source/number-input/index.js +18 -0
- package/source/number-input/number-input-context.js +5 -0
- package/source/number-input/number-input-control.jsx +8 -0
- package/source/number-input/number-input-decrement-trigger.jsx +8 -0
- package/source/number-input/number-input-field.jsx +8 -0
- package/source/number-input/number-input-increment-trigger.jsx +8 -0
- package/source/number-input/number-input-label.jsx +8 -0
- package/source/number-input/number-input-scrubber.jsx +8 -0
- package/source/number-input/number-input.jsx +40 -0
- package/source/number-input/use-number-input.js +10 -0
- package/source/pagination/index.js +14 -0
- package/source/pagination/pagination-context.js +5 -0
- package/source/pagination/pagination-ellipsis.jsx +10 -0
- package/source/pagination/pagination-item.jsx +10 -0
- package/source/pagination/pagination-next-trigger.jsx +8 -0
- package/source/pagination/pagination-prev-trigger.jsx +8 -0
- package/source/pagination/pagination.jsx +29 -0
- package/source/pagination/use-pagination.js +10 -0
- package/source/parse-template.js +248 -0
- package/source/pin-input/index.js +12 -0
- package/source/pin-input/pin-input-context.js +5 -0
- package/source/pin-input/pin-input-control.jsx +8 -0
- package/source/pin-input/pin-input-field.jsx +10 -0
- package/source/pin-input/pin-input-label.jsx +8 -0
- package/source/pin-input/pin-input.jsx +36 -0
- package/source/pin-input/use-pin-input.js +10 -0
- package/source/pipe.js +1 -0
- package/source/popover/index.js +26 -0
- package/source/popover/popover-anchor.jsx +8 -0
- package/source/popover/popover-arrow-tip.jsx +8 -0
- package/source/popover/popover-arrow.jsx +8 -0
- package/source/popover/popover-close-trigger.jsx +8 -0
- package/source/popover/popover-content.jsx +12 -0
- package/source/popover/popover-context.js +5 -0
- package/source/popover/popover-description.jsx +8 -0
- package/source/popover/popover-indicator.jsx +8 -0
- package/source/popover/popover-positioner.jsx +8 -0
- package/source/popover/popover-title.jsx +8 -0
- package/source/popover/popover-trigger.jsx +8 -0
- package/source/popover/popover.jsx +26 -0
- package/source/popover/use-popover.js +10 -0
- package/source/presence/index.js +6 -0
- package/source/presence/presence.jsx +32 -0
- package/source/presence/split-presence-props.js +9 -0
- package/source/presence/use-presence.js +9 -0
- package/source/radio-group/index.js +17 -0
- package/source/radio-group/radio-group-context.js +5 -0
- package/source/radio-group/radio-group-indicator.jsx +8 -0
- package/source/radio-group/radio-group-item-context.js +5 -0
- package/source/radio-group/radio-group-item-control.jsx +13 -0
- package/source/radio-group/radio-group-item-text.jsx +10 -0
- package/source/radio-group/radio-group-item.jsx +17 -0
- package/source/radio-group/radio-group-label.jsx +8 -0
- package/source/radio-group/radio-group.jsx +24 -0
- package/source/radio-group/use-radio-group.jsx +12 -0
- package/source/rating-group/index.js +13 -0
- package/source/rating-group/rating-group-context.js +5 -0
- package/source/rating-group/rating-group-control.jsx +13 -0
- package/source/rating-group/rating-group-item-context.js +5 -0
- package/source/rating-group/rating-group-item.jsx +16 -0
- package/source/rating-group/rating-group-label.jsx +8 -0
- package/source/rating-group/rating-group.jsx +29 -0
- package/source/rating-group/use-rating-group.jsx +10 -0
- package/source/run-if-fn.js +4 -0
- package/source/segment-group/index.js +17 -0
- package/source/segment-group/segment-group-context.js +5 -0
- package/source/segment-group/segment-group-indicator.jsx +9 -0
- package/source/segment-group/segment-group-item-context.js +5 -0
- package/source/segment-group/segment-group-item-control.jsx +14 -0
- package/source/segment-group/segment-group-item-text.jsx +11 -0
- package/source/segment-group/segment-group-item.jsx +18 -0
- package/source/segment-group/segment-group-label.jsx +9 -0
- package/source/segment-group/segment-group.jsx +25 -0
- package/source/segment-group/use-segment-group.jsx +10 -0
- package/source/select/index.js +33 -0
- package/source/select/select-clear-trigger.jsx +8 -0
- package/source/select/select-content.jsx +12 -0
- package/source/select/select-context.js +6 -0
- package/source/select/select-control.jsx +8 -0
- package/source/select/select-indicator.jsx +8 -0
- package/source/select/select-item-context.js +5 -0
- package/source/select/select-item-group-label.jsx +10 -0
- package/source/select/select-item-group.jsx +10 -0
- package/source/select/select-item-indicator.jsx +10 -0
- package/source/select/select-item-text.jsx +10 -0
- package/source/select/select-item.jsx +15 -0
- package/source/select/select-label.jsx +8 -0
- package/source/select/select-positioner.jsx +8 -0
- package/source/select/select-trigger.jsx +8 -0
- package/source/select/select-value-text.jsx +9 -0
- package/source/select/select.jsx +43 -0
- package/source/select/use-select.js +20 -0
- package/source/slider/index.js +22 -0
- package/source/slider/slider-context.js +5 -0
- package/source/slider/slider-control.jsx +8 -0
- package/source/slider/slider-label.jsx +8 -0
- package/source/slider/slider-marker-group.jsx +8 -0
- package/source/slider/slider-marker.jsx +10 -0
- package/source/slider/slider-output.jsx +10 -0
- package/source/slider/slider-range.jsx +8 -0
- package/source/slider/slider-thumb.jsx +10 -0
- package/source/slider/slider-track.jsx +8 -0
- package/source/slider/slider.jsx +41 -0
- package/source/slider/use-slider.js +10 -0
- package/source/splitter/index.js +10 -0
- package/source/splitter/splitter-context.js +5 -0
- package/source/splitter/splitter-panel.jsx +10 -0
- package/source/splitter/splitter-resize-trigger.jsx +14 -0
- package/source/splitter/splitter.jsx +25 -0
- package/source/splitter/use-splitter.js +10 -0
- package/source/spread.js +39 -0
- package/source/ssr-spread.js +19 -0
- package/source/switch/index.js +12 -0
- package/source/switch/switch-context.js +5 -0
- package/source/switch/switch-control.jsx +11 -0
- package/source/switch/switch-label.jsx +8 -0
- package/source/switch/switch-thumb.jsx +8 -0
- package/source/switch/switch.jsx +29 -0
- package/source/switch/use-switch.js +10 -0
- package/source/tabs/index.js +14 -0
- package/source/tabs/tab-content.jsx +15 -0
- package/source/tabs/tab-indicator.jsx +8 -0
- package/source/tabs/tab-list.jsx +8 -0
- package/source/tabs/tab-presence.jsx +6 -0
- package/source/tabs/tab-trigger.jsx +10 -0
- package/source/tabs/tabs-context.js +5 -0
- package/source/tabs/tabs.jsx +25 -0
- package/source/tabs/use-tabs.js +10 -0
- package/source/tags-input/index.js +23 -0
- package/source/tags-input/tags-input-clear-trigger.jsx +8 -0
- package/source/tags-input/tags-input-context.js +5 -0
- package/source/tags-input/tags-input-control.jsx +8 -0
- package/source/tags-input/tags-input-input.jsx +8 -0
- package/source/tags-input/tags-input-item-context.js +5 -0
- package/source/tags-input/tags-input-item-delete-trigger.jsx +10 -0
- package/source/tags-input/tags-input-item-input.jsx +10 -0
- package/source/tags-input/tags-input-item-text.jsx +10 -0
- package/source/tags-input/tags-input-item.jsx +19 -0
- package/source/tags-input/tags-input-label.jsx +8 -0
- package/source/tags-input/tags-input.jsx +44 -0
- package/source/tags-input/use-tags-input.js +10 -0
- package/source/toast/create-toaster.jsx +31 -0
- package/source/toast/index.js +12 -0
- package/source/toast/toast-close-trigger.jsx +8 -0
- package/source/toast/toast-context.js +5 -0
- package/source/toast/toast-description.jsx +8 -0
- package/source/toast/toast-title.jsx +8 -0
- package/source/toast/toast.jsx +8 -0
- package/source/toggle-group/index.js +8 -0
- package/source/toggle-group/toggle-group-context.js +5 -0
- package/source/toggle-group/toggle-group-item.jsx +10 -0
- package/source/toggle-group/toggle-group.jsx +25 -0
- package/source/toggle-group/use-toggle-group.js +12 -0
- package/source/tooltip/index.js +16 -0
- package/source/tooltip/tooltip-arrow-tip.jsx +8 -0
- package/source/tooltip/tooltip-arrow.jsx +8 -0
- package/source/tooltip/tooltip-content.jsx +12 -0
- package/source/tooltip/tooltip-context.js +5 -0
- package/source/tooltip/tooltip-positioner.jsx +8 -0
- package/source/tooltip/tooltip-trigger.jsx +8 -0
- package/source/tooltip/tooltip.jsx +23 -0
- package/source/tooltip/use-tooltip.js +10 -0
- package/source/types.js +2 -0
- package/types/accordion/accordion-context.d.ts +3 -0
- package/types/accordion/accordion-item-content.d.ts +4 -0
- package/types/accordion/accordion-item-context.d.ts +3 -0
- package/types/accordion/accordion-item-indicator.d.ts +3 -0
- package/types/accordion/accordion-item-trigger.d.ts +3 -0
- package/types/accordion/accordion.d.ts +5 -0
- package/types/accordion/index.d.ts +16 -0
- package/types/avatar/avatar-context.d.ts +3 -0
- package/types/avatar/avatar-fallback.d.ts +3 -0
- package/types/avatar/avatar-image.d.ts +3 -0
- package/types/avatar/avatar.d.ts +5 -0
- package/types/avatar/index.d.ts +11 -0
- package/types/carousel/carousel-context.d.ts +3 -0
- package/types/carousel/carousel-control.d.ts +3 -0
- package/types/carousel/carousel-indicator-group.d.ts +3 -0
- package/types/carousel/carousel-indicator.d.ts +5 -0
- package/types/carousel/carousel-next-trigger.d.ts +3 -0
- package/types/carousel/carousel-prev-trigger.d.ts +3 -0
- package/types/carousel/carousel-slide-group.d.ts +3 -0
- package/types/carousel/carousel-slide.d.ts +5 -0
- package/types/carousel/carousel-viewport.d.ts +3 -0
- package/types/carousel/carousel.d.ts +5 -0
- package/types/carousel/index.d.ts +23 -0
- package/types/checkbox/checkbox-context.d.ts +3 -0
- package/types/checkbox/checkbox-control.d.ts +3 -0
- package/types/checkbox/checkbox-indicator.d.ts +3 -0
- package/types/checkbox/checkbox-label.d.ts +3 -0
- package/types/checkbox/index.d.ts +14 -0
- package/types/color-picker/color-picker-area-background.d.ts +4 -0
- package/types/color-picker/color-picker-area-context.d.ts +4 -0
- package/types/color-picker/color-picker-area-thumb.d.ts +4 -0
- package/types/color-picker/color-picker-area.d.ts +6 -0
- package/types/color-picker/color-picker-channel-input.d.ts +6 -0
- package/types/color-picker/color-picker-channel-slider-context.d.ts +4 -0
- package/types/color-picker/color-picker-channel-slider-thumb.d.ts +4 -0
- package/types/color-picker/color-picker-channel-slider-track.d.ts +4 -0
- package/types/color-picker/color-picker-channel-slider.d.ts +6 -0
- package/types/color-picker/color-picker-content.d.ts +4 -0
- package/types/color-picker/color-picker-context.d.ts +4 -0
- package/types/color-picker/color-picker-control.d.ts +4 -0
- package/types/color-picker/color-picker-eye-dropper-trigger.d.ts +4 -0
- package/types/color-picker/color-picker-label.d.ts +4 -0
- package/types/color-picker/color-picker-positioner.d.ts +4 -0
- package/types/color-picker/color-picker-swatch-group.d.ts +4 -0
- package/types/color-picker/color-picker-swatch-trigger.d.ts +10 -0
- package/types/color-picker/color-picker-swatch.d.ts +6 -0
- package/types/color-picker/color-picker-transparency-grid.d.ts +9 -0
- package/types/color-picker/color-picker-trigger.d.ts +4 -0
- package/types/color-picker/index.d.ts +43 -0
- package/types/combobox/combobox-clear-trigger.d.ts +3 -0
- package/types/combobox/combobox-content.d.ts +4 -0
- package/types/combobox/combobox-context.d.ts +4 -0
- package/types/combobox/combobox-control.d.ts +3 -0
- package/types/combobox/combobox-input.d.ts +3 -0
- package/types/combobox/combobox-item-context.d.ts +3 -0
- package/types/combobox/combobox-item-group-label.d.ts +5 -0
- package/types/combobox/combobox-item-group.d.ts +5 -0
- package/types/combobox/combobox-item-indicator.d.ts +3 -0
- package/types/combobox/combobox-item-text.d.ts +3 -0
- package/types/combobox/combobox-label.d.ts +3 -0
- package/types/combobox/combobox-positioner.d.ts +3 -0
- package/types/combobox/combobox-trigger.d.ts +3 -0
- package/types/combobox/index.d.ts +32 -0
- package/types/date-picker/date-picker-clear-trigger.d.ts +4 -0
- package/types/date-picker/date-picker-content.d.ts +4 -0
- package/types/date-picker/date-picker-context.d.ts +3 -0
- package/types/date-picker/date-picker-control.d.ts +4 -0
- package/types/date-picker/date-picker-input.d.ts +4 -0
- package/types/date-picker/date-picker-label.d.ts +4 -0
- package/types/date-picker/date-picker-month-select.d.ts +4 -0
- package/types/date-picker/date-picker-next-trigger.d.ts +4 -0
- package/types/date-picker/date-picker-positioner.d.ts +4 -0
- package/types/date-picker/date-picker-prev-trigger.d.ts +4 -0
- package/types/date-picker/date-picker-range-text.d.ts +4 -0
- package/types/date-picker/date-picker-table-body.d.ts +4 -0
- package/types/date-picker/date-picker-table-cell-context.d.ts +9 -0
- package/types/date-picker/date-picker-table-cell-trigger.d.ts +4 -0
- package/types/date-picker/date-picker-table-cell.d.ts +5 -0
- package/types/date-picker/date-picker-table-context.d.ts +4 -0
- package/types/date-picker/date-picker-table-head.d.ts +4 -0
- package/types/date-picker/date-picker-table-header.d.ts +4 -0
- package/types/date-picker/date-picker-table-row.d.ts +4 -0
- package/types/date-picker/date-picker-table.d.ts +6 -0
- package/types/date-picker/date-picker-trigger.d.ts +4 -0
- package/types/date-picker/date-picker-view-context.d.ts +4 -0
- package/types/date-picker/date-picker-view-control.d.ts +4 -0
- package/types/date-picker/date-picker-view-trigger.d.ts +4 -0
- package/types/date-picker/date-picker-year-select.d.ts +4 -0
- package/types/date-picker/index.d.ts +54 -0
- package/types/date-picker/use-date-picker.d.ts +17 -0
- package/types/dialog/dialog-backdrop.d.ts +4 -0
- package/types/dialog/dialog-close-trigger.d.ts +3 -0
- package/types/dialog/dialog-content.d.ts +4 -0
- package/types/dialog/dialog-context.d.ts +3 -0
- package/types/dialog/dialog-description.d.ts +3 -0
- package/types/dialog/dialog-positioner.d.ts +3 -0
- package/types/dialog/dialog-title.d.ts +3 -0
- package/types/dialog/dialog-trigger.d.ts +3 -0
- package/types/dialog/index.d.ts +21 -0
- package/types/editable/editable-area.d.ts +3 -0
- package/types/editable/editable-cancel-trigger.d.ts +3 -0
- package/types/editable/editable-context.d.ts +3 -0
- package/types/editable/editable-control.d.ts +3 -0
- package/types/editable/editable-edit-trigger.d.ts +3 -0
- package/types/editable/editable-input.d.ts +3 -0
- package/types/editable/editable-label.d.ts +3 -0
- package/types/editable/editable-preview.d.ts +3 -0
- package/types/editable/editable-submit-trigger.d.ts +3 -0
- package/types/editable/index.d.ts +23 -0
- package/types/environment/environment-context.d.ts +3 -0
- package/types/environment/index.d.ts +7 -0
- package/types/hover-card/hover-card-arrow-tip.d.ts +3 -0
- package/types/hover-card/hover-card-arrow.d.ts +3 -0
- package/types/hover-card/hover-card-content.d.ts +4 -0
- package/types/hover-card/hover-card-context.d.ts +3 -0
- package/types/hover-card/hover-card-positioner.d.ts +3 -0
- package/types/hover-card/hover-card-trigger.d.ts +3 -0
- package/types/hover-card/index.d.ts +17 -0
- package/types/index.d.ts +30 -0
- package/types/menu/index.d.ts +31 -0
- package/types/menu/menu-arrow-tip.d.ts +3 -0
- package/types/menu/menu-arrow.d.ts +3 -0
- package/types/menu/menu-content.d.ts +4 -0
- package/types/menu/menu-context-trigger.d.ts +3 -0
- package/types/menu/menu-context.d.ts +7 -0
- package/types/menu/menu-item-group-label.d.ts +8 -0
- package/types/menu/menu-item-group.d.ts +7 -0
- package/types/menu/menu-item.d.ts +5 -0
- package/types/menu/menu-positioner.d.ts +3 -0
- package/types/menu/menu-separator.d.ts +3 -0
- package/types/menu/menu-trigger-item.d.ts +3 -0
- package/types/menu/menu-trigger.d.ts +3 -0
- package/types/number-input/index.d.ts +19 -0
- package/types/number-input/number-input-context.d.ts +3 -0
- package/types/number-input/number-input-control.d.ts +3 -0
- package/types/number-input/number-input-decrement-trigger.d.ts +3 -0
- package/types/number-input/number-input-field.d.ts +3 -0
- package/types/number-input/number-input-increment-trigger.d.ts +3 -0
- package/types/number-input/number-input-label.d.ts +3 -0
- package/types/number-input/number-input-scrubber.d.ts +3 -0
- package/types/number-input/number-input.d.ts +5 -0
- package/types/pagination/index.d.ts +15 -0
- package/types/pagination/pagination-context.d.ts +3 -0
- package/types/pagination/pagination-ellipsis.d.ts +5 -0
- package/types/pagination/pagination-item.d.ts +5 -0
- package/types/pagination/pagination-next-trigger.d.ts +4 -0
- package/types/pagination/pagination-prev-trigger.d.ts +4 -0
- package/types/pin-input/index.d.ts +13 -0
- package/types/pin-input/pin-input-context.d.ts +3 -0
- package/types/pin-input/pin-input-control.d.ts +3 -0
- package/types/pin-input/pin-input-field.d.ts +6 -0
- package/types/pin-input/pin-input-label.d.ts +3 -0
- package/types/pin-input/pin-input.d.ts +5 -0
- package/types/popover/index.d.ts +27 -0
- package/types/popover/popover-anchor.d.ts +3 -0
- package/types/popover/popover-arrow-tip.d.ts +3 -0
- package/types/popover/popover-arrow.d.ts +3 -0
- package/types/popover/popover-close-trigger.d.ts +3 -0
- package/types/popover/popover-content.d.ts +4 -0
- package/types/popover/popover-context.d.ts +3 -0
- package/types/popover/popover-description.d.ts +3 -0
- package/types/popover/popover-indicator.d.ts +3 -0
- package/types/popover/popover-positioner.d.ts +3 -0
- package/types/popover/popover-title.d.ts +3 -0
- package/types/popover/popover-trigger.d.ts +3 -0
- package/types/presence/index.d.ts +7 -0
- package/types/presence/presence.d.ts +17 -0
- package/types/presence/use-presence.d.ts +4 -0
- package/types/radio-group/index.d.ts +18 -0
- package/types/radio-group/radio-group-context.d.ts +3 -0
- package/types/radio-group/radio-group-indicator.d.ts +3 -0
- package/types/radio-group/radio-group-item-context.d.ts +3 -0
- package/types/radio-group/radio-group-item-control.d.ts +3 -0
- package/types/radio-group/radio-group-item-text.d.ts +3 -0
- package/types/radio-group/radio-group-item.d.ts +5 -0
- package/types/radio-group/radio-group-label.d.ts +3 -0
- package/types/radio-group/radio-group.d.ts +5 -0
- package/types/rating-group/index.d.ts +14 -0
- package/types/rating-group/rating-group-context.d.ts +3 -0
- package/types/rating-group/rating-group-item-context.d.ts +3 -0
- package/types/rating-group/rating-group-label.d.ts +3 -0
- package/types/rating-group/rating-group.d.ts +5 -0
- package/types/segment-group/index.d.ts +18 -0
- package/types/segment-group/segment-group-context.d.ts +3 -0
- package/types/segment-group/segment-group-indicator.d.ts +3 -0
- package/types/segment-group/segment-group-item-context.d.ts +15 -0
- package/types/segment-group/segment-group-item-control.d.ts +3 -0
- package/types/segment-group/segment-group-item-text.d.ts +3 -0
- package/types/segment-group/segment-group-item.d.ts +5 -0
- package/types/segment-group/segment-group-label.d.ts +3 -0
- package/types/segment-group/segment-group.d.ts +5 -0
- package/types/select/index.d.ts +35 -0
- package/types/select/select-clear-trigger.d.ts +3 -0
- package/types/select/select-content.d.ts +4 -0
- package/types/select/select-context.d.ts +4 -0
- package/types/select/select-control.d.ts +3 -0
- package/types/select/select-indicator.d.ts +3 -0
- package/types/select/select-item-context.d.ts +3 -0
- package/types/select/select-item-group-label.d.ts +5 -0
- package/types/select/select-item-group.d.ts +5 -0
- package/types/select/select-item-indicator.d.ts +3 -0
- package/types/select/select-item-text.d.ts +3 -0
- package/types/select/select-label.d.ts +3 -0
- package/types/select/select-positioner.d.ts +3 -0
- package/types/select/select-trigger.d.ts +3 -0
- package/types/select/select-value-text.d.ts +5 -0
- package/types/slider/index.d.ts +23 -0
- package/types/slider/slider-context.d.ts +3 -0
- package/types/slider/slider-control.d.ts +3 -0
- package/types/slider/slider-label.d.ts +3 -0
- package/types/slider/slider-marker-group.d.ts +3 -0
- package/types/slider/slider-marker.d.ts +5 -0
- package/types/slider/slider-range.d.ts +3 -0
- package/types/slider/slider-thumb.d.ts +5 -0
- package/types/slider/slider-track.d.ts +3 -0
- package/types/splitter/index.d.ts +11 -0
- package/types/splitter/splitter-context.d.ts +3 -0
- package/types/splitter/splitter-panel.d.ts +7 -0
- package/types/splitter/splitter-resize-trigger.d.ts +7 -0
- package/types/switch/index.d.ts +13 -0
- package/types/switch/switch-context.d.ts +3 -0
- package/types/switch/switch-control.d.ts +3 -0
- package/types/switch/switch-label.d.ts +3 -0
- package/types/switch/switch-thumb.d.ts +3 -0
- package/types/tabs/index.d.ts +15 -0
- package/types/tabs/tab-content.d.ts +6 -0
- package/types/tabs/tab-indicator.d.ts +3 -0
- package/types/tabs/tab-list.d.ts +3 -0
- package/types/tabs/tab-presence.d.ts +4 -0
- package/types/tabs/tab-trigger.d.ts +5 -0
- package/types/tabs/tabs-context.d.ts +3 -0
- package/types/tabs/tabs.d.ts +5 -0
- package/types/tags-input/index.d.ts +24 -0
- package/types/tags-input/tags-input-clear-trigger.d.ts +3 -0
- package/types/tags-input/tags-input-context.d.ts +3 -0
- package/types/tags-input/tags-input-control.d.ts +3 -0
- package/types/tags-input/tags-input-input.d.ts +3 -0
- package/types/tags-input/tags-input-item-context.d.ts +3 -0
- package/types/tags-input/tags-input-item-delete-trigger.d.ts +3 -0
- package/types/tags-input/tags-input-item-input.d.ts +3 -0
- package/types/tags-input/tags-input-item-text.d.ts +3 -0
- package/types/tags-input/tags-input-label.d.ts +3 -0
- package/types/toast/index.d.ts +13 -0
- package/types/toast/toast-close-trigger.d.ts +3 -0
- package/types/toast/toast-context.d.ts +6 -0
- package/types/toast/toast-description.d.ts +3 -0
- package/types/toast/toast-title.d.ts +3 -0
- package/types/toast/toast.d.ts +3 -0
- package/types/toggle-group/index.d.ts +9 -0
- package/types/toggle-group/toggle-group-context.d.ts +3 -0
- package/types/toggle-group/toggle-group-item.d.ts +6 -0
- package/types/toggle-group/toggle-group.d.ts +5 -0
- package/types/tooltip/index.d.ts +17 -0
- package/types/tooltip/tooltip-arrow-tip.d.ts +3 -0
- package/types/tooltip/tooltip-arrow.d.ts +3 -0
- package/types/tooltip/tooltip-content.d.ts +4 -0
- package/types/tooltip/tooltip-context.d.ts +3 -0
- package/types/tooltip/tooltip-positioner.d.ts +3 -0
- package/types/tooltip/tooltip-trigger.d.ts +3 -0
- package/accordion/accordion-context.cjs +0 -13
- package/accordion/accordion-context.d.ts +0 -4
- package/accordion/accordion-context.mjs +0 -8
- package/accordion/accordion-item-content.cjs +0 -29
- package/accordion/accordion-item-content.d.ts +0 -5
- package/accordion/accordion-item-content.mjs +0 -25
- package/accordion/accordion-item-context.cjs +0 -15
- package/accordion/accordion-item-context.d.ts +0 -4
- package/accordion/accordion-item-context.mjs +0 -10
- package/accordion/accordion-item-indicator.cjs +0 -18
- package/accordion/accordion-item-indicator.d.ts +0 -4
- package/accordion/accordion-item-indicator.mjs +0 -14
- package/accordion/accordion-item-trigger.cjs +0 -18
- package/accordion/accordion-item-trigger.d.ts +0 -4
- package/accordion/accordion-item-trigger.mjs +0 -14
- package/accordion/accordion-item.cjs +0 -31
- package/accordion/accordion-item.mjs +0 -27
- package/accordion/accordion.cjs +0 -24
- package/accordion/accordion.d.ts +0 -6
- package/accordion/accordion.mjs +0 -20
- package/accordion/accordion.stories.d.ts +0 -12
- package/accordion/accordion.test.d.ts +0 -1
- package/accordion/index.cjs +0 -27
- package/accordion/index.d.ts +0 -17
- package/accordion/index.mjs +0 -17
- package/accordion/use-accordion.cjs +0 -37
- package/accordion/use-accordion.mjs +0 -14
- package/avatar/avatar-context.cjs +0 -13
- package/avatar/avatar-context.d.ts +0 -4
- package/avatar/avatar-context.mjs +0 -8
- package/avatar/avatar-fallback.cjs +0 -16
- package/avatar/avatar-fallback.d.ts +0 -4
- package/avatar/avatar-fallback.mjs +0 -12
- package/avatar/avatar-image.cjs +0 -16
- package/avatar/avatar-image.d.ts +0 -4
- package/avatar/avatar-image.mjs +0 -12
- package/avatar/avatar.cjs +0 -24
- package/avatar/avatar.d.ts +0 -6
- package/avatar/avatar.mjs +0 -20
- package/avatar/avatar.stories.d.ts +0 -6
- package/avatar/avatar.test.d.ts +0 -1
- package/avatar/index.cjs +0 -19
- package/avatar/index.d.ts +0 -12
- package/avatar/index.mjs +0 -12
- package/avatar/use-avatar.cjs +0 -37
- package/avatar/use-avatar.mjs +0 -14
- package/carousel/carousel-context.cjs +0 -13
- package/carousel/carousel-context.d.ts +0 -4
- package/carousel/carousel-context.mjs +0 -8
- package/carousel/carousel-control.cjs +0 -15
- package/carousel/carousel-control.d.ts +0 -4
- package/carousel/carousel-control.mjs +0 -11
- package/carousel/carousel-indicator-group.cjs +0 -16
- package/carousel/carousel-indicator-group.d.ts +0 -4
- package/carousel/carousel-indicator-group.mjs +0 -12
- package/carousel/carousel-indicator.cjs +0 -18
- package/carousel/carousel-indicator.d.ts +0 -6
- package/carousel/carousel-indicator.mjs +0 -14
- package/carousel/carousel-next-trigger.cjs +0 -16
- package/carousel/carousel-next-trigger.d.ts +0 -4
- package/carousel/carousel-next-trigger.mjs +0 -12
- package/carousel/carousel-prev-trigger.cjs +0 -16
- package/carousel/carousel-prev-trigger.d.ts +0 -4
- package/carousel/carousel-prev-trigger.mjs +0 -12
- package/carousel/carousel-slide-group.cjs +0 -16
- package/carousel/carousel-slide-group.d.ts +0 -4
- package/carousel/carousel-slide-group.mjs +0 -12
- package/carousel/carousel-slide.cjs +0 -18
- package/carousel/carousel-slide.d.ts +0 -6
- package/carousel/carousel-slide.mjs +0 -14
- package/carousel/carousel-viewport.cjs +0 -16
- package/carousel/carousel-viewport.d.ts +0 -4
- package/carousel/carousel-viewport.mjs +0 -12
- package/carousel/carousel.cjs +0 -24
- package/carousel/carousel.d.ts +0 -6
- package/carousel/carousel.mjs +0 -20
- package/carousel/carousel.stories.d.ts +0 -6
- package/carousel/index.cjs +0 -37
- package/carousel/index.d.ts +0 -24
- package/carousel/index.mjs +0 -24
- package/carousel/use-carousel.cjs +0 -37
- package/carousel/use-carousel.mjs +0 -14
- package/checkbox/checkbox-context.cjs +0 -13
- package/checkbox/checkbox-context.d.ts +0 -4
- package/checkbox/checkbox-context.mjs +0 -8
- package/checkbox/checkbox-control.cjs +0 -21
- package/checkbox/checkbox-control.d.ts +0 -4
- package/checkbox/checkbox-control.mjs +0 -17
- package/checkbox/checkbox-indicator.cjs +0 -16
- package/checkbox/checkbox-indicator.d.ts +0 -4
- package/checkbox/checkbox-indicator.mjs +0 -12
- package/checkbox/checkbox-label.cjs +0 -16
- package/checkbox/checkbox-label.d.ts +0 -4
- package/checkbox/checkbox-label.mjs +0 -12
- package/checkbox/checkbox.cjs +0 -30
- package/checkbox/checkbox.mjs +0 -26
- package/checkbox/checkbox.stories.d.ts +0 -8
- package/checkbox/index.cjs +0 -22
- package/checkbox/index.d.ts +0 -15
- package/checkbox/index.mjs +0 -14
- package/checkbox/use-checkbox.cjs +0 -37
- package/checkbox/use-checkbox.mjs +0 -14
- package/clone-element.d.ts +0 -2
- package/color-picker/color-picker-area-background.cjs +0 -18
- package/color-picker/color-picker-area-background.d.ts +0 -5
- package/color-picker/color-picker-area-background.mjs +0 -14
- package/color-picker/color-picker-area-context.cjs +0 -13
- package/color-picker/color-picker-area-context.d.ts +0 -5
- package/color-picker/color-picker-area-context.mjs +0 -8
- package/color-picker/color-picker-area-thumb.cjs +0 -18
- package/color-picker/color-picker-area-thumb.d.ts +0 -5
- package/color-picker/color-picker-area-thumb.mjs +0 -14
- package/color-picker/color-picker-area.cjs +0 -24
- package/color-picker/color-picker-area.d.ts +0 -7
- package/color-picker/color-picker-area.mjs +0 -20
- package/color-picker/color-picker-channel-input.cjs +0 -18
- package/color-picker/color-picker-channel-input.d.ts +0 -7
- package/color-picker/color-picker-channel-input.mjs +0 -14
- package/color-picker/color-picker-channel-slider-context.cjs +0 -13
- package/color-picker/color-picker-channel-slider-context.d.ts +0 -5
- package/color-picker/color-picker-channel-slider-context.mjs +0 -8
- package/color-picker/color-picker-channel-slider-thumb.cjs +0 -18
- package/color-picker/color-picker-channel-slider-thumb.d.ts +0 -5
- package/color-picker/color-picker-channel-slider-thumb.mjs +0 -14
- package/color-picker/color-picker-channel-slider-track.cjs +0 -18
- package/color-picker/color-picker-channel-slider-track.d.ts +0 -5
- package/color-picker/color-picker-channel-slider-track.mjs +0 -14
- package/color-picker/color-picker-channel-slider.cjs +0 -24
- package/color-picker/color-picker-channel-slider.d.ts +0 -7
- package/color-picker/color-picker-channel-slider.mjs +0 -20
- package/color-picker/color-picker-content.cjs +0 -16
- package/color-picker/color-picker-content.d.ts +0 -5
- package/color-picker/color-picker-content.mjs +0 -12
- package/color-picker/color-picker-context.cjs +0 -13
- package/color-picker/color-picker-context.d.ts +0 -5
- package/color-picker/color-picker-context.mjs +0 -8
- package/color-picker/color-picker-control.cjs +0 -16
- package/color-picker/color-picker-control.d.ts +0 -5
- package/color-picker/color-picker-control.mjs +0 -12
- package/color-picker/color-picker-eye-dropper-trigger.cjs +0 -16
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +0 -5
- package/color-picker/color-picker-eye-dropper-trigger.mjs +0 -12
- package/color-picker/color-picker-label.cjs +0 -16
- package/color-picker/color-picker-label.d.ts +0 -5
- package/color-picker/color-picker-label.mjs +0 -12
- package/color-picker/color-picker-positioner.cjs +0 -16
- package/color-picker/color-picker-positioner.d.ts +0 -5
- package/color-picker/color-picker-positioner.mjs +0 -12
- package/color-picker/color-picker-swatch-group.cjs +0 -16
- package/color-picker/color-picker-swatch-group.d.ts +0 -5
- package/color-picker/color-picker-swatch-group.mjs +0 -12
- package/color-picker/color-picker-swatch-trigger.cjs +0 -18
- package/color-picker/color-picker-swatch-trigger.d.ts +0 -11
- package/color-picker/color-picker-swatch-trigger.mjs +0 -14
- package/color-picker/color-picker-swatch.cjs +0 -18
- package/color-picker/color-picker-swatch.d.ts +0 -7
- package/color-picker/color-picker-swatch.mjs +0 -14
- package/color-picker/color-picker-transparency-grid.cjs +0 -18
- package/color-picker/color-picker-transparency-grid.d.ts +0 -10
- package/color-picker/color-picker-transparency-grid.mjs +0 -14
- package/color-picker/color-picker-trigger.cjs +0 -16
- package/color-picker/color-picker-trigger.d.ts +0 -5
- package/color-picker/color-picker-trigger.mjs +0 -12
- package/color-picker/color-picker.cjs +0 -35
- package/color-picker/color-picker.mjs +0 -31
- package/color-picker/color-picker.stories.d.ts +0 -7
- package/color-picker/index.cjs +0 -68
- package/color-picker/index.d.ts +0 -44
- package/color-picker/index.mjs +0 -44
- package/color-picker/use-color-picker.cjs +0 -45
- package/color-picker/use-color-picker.mjs +0 -22
- package/combobox/combobox-clear-trigger.cjs +0 -16
- package/combobox/combobox-clear-trigger.d.ts +0 -4
- package/combobox/combobox-clear-trigger.mjs +0 -12
- package/combobox/combobox-content.cjs +0 -27
- package/combobox/combobox-content.d.ts +0 -5
- package/combobox/combobox-content.mjs +0 -23
- package/combobox/combobox-context.cjs +0 -13
- package/combobox/combobox-context.d.ts +0 -5
- package/combobox/combobox-context.mjs +0 -8
- package/combobox/combobox-control.cjs +0 -16
- package/combobox/combobox-control.d.ts +0 -4
- package/combobox/combobox-control.mjs +0 -12
- package/combobox/combobox-input.cjs +0 -16
- package/combobox/combobox-input.d.ts +0 -4
- package/combobox/combobox-input.mjs +0 -12
- package/combobox/combobox-item-context.cjs +0 -13
- package/combobox/combobox-item-context.d.ts +0 -4
- package/combobox/combobox-item-context.mjs +0 -8
- package/combobox/combobox-item-group-label.cjs +0 -18
- package/combobox/combobox-item-group-label.d.ts +0 -6
- package/combobox/combobox-item-group-label.mjs +0 -14
- package/combobox/combobox-item-group.cjs +0 -18
- package/combobox/combobox-item-group.d.ts +0 -6
- package/combobox/combobox-item-group.mjs +0 -14
- package/combobox/combobox-item-indicator.cjs +0 -18
- package/combobox/combobox-item-indicator.d.ts +0 -4
- package/combobox/combobox-item-indicator.mjs +0 -14
- package/combobox/combobox-item-text.cjs +0 -18
- package/combobox/combobox-item-text.d.ts +0 -4
- package/combobox/combobox-item-text.mjs +0 -14
- package/combobox/combobox-item.cjs +0 -30
- package/combobox/combobox-item.mjs +0 -26
- package/combobox/combobox-label.cjs +0 -16
- package/combobox/combobox-label.d.ts +0 -4
- package/combobox/combobox-label.mjs +0 -12
- package/combobox/combobox-positioner.cjs +0 -16
- package/combobox/combobox-positioner.d.ts +0 -4
- package/combobox/combobox-positioner.mjs +0 -12
- package/combobox/combobox-trigger.cjs +0 -16
- package/combobox/combobox-trigger.d.ts +0 -4
- package/combobox/combobox-trigger.mjs +0 -12
- package/combobox/combobox.cjs +0 -30
- package/combobox/combobox.mjs +0 -26
- package/combobox/combobox.stories.d.ts +0 -5
- package/combobox/combobox.test.d.ts +0 -1
- package/combobox/index.cjs +0 -49
- package/combobox/index.d.ts +0 -33
- package/combobox/index.mjs +0 -32
- package/combobox/use-combobox.cjs +0 -47
- package/combobox/use-combobox.mjs +0 -24
- package/constants.cjs +0 -33
- package/constants.mjs +0 -29
- package/create-context.cjs +0 -31
- package/create-context.mjs +0 -27
- package/create-split-props.cjs +0 -9
- package/create-split-props.mjs +0 -5
- package/create-split-props.test.d.ts +0 -1
- package/date-picker/date-picker-clear-trigger.cjs +0 -16
- package/date-picker/date-picker-clear-trigger.d.ts +0 -5
- package/date-picker/date-picker-clear-trigger.mjs +0 -12
- package/date-picker/date-picker-content.cjs +0 -16
- package/date-picker/date-picker-content.d.ts +0 -5
- package/date-picker/date-picker-content.mjs +0 -12
- package/date-picker/date-picker-context.cjs +0 -13
- package/date-picker/date-picker-context.d.ts +0 -4
- package/date-picker/date-picker-context.mjs +0 -8
- package/date-picker/date-picker-control.cjs +0 -16
- package/date-picker/date-picker-control.d.ts +0 -5
- package/date-picker/date-picker-control.mjs +0 -12
- package/date-picker/date-picker-input.cjs +0 -16
- package/date-picker/date-picker-input.d.ts +0 -5
- package/date-picker/date-picker-input.mjs +0 -12
- package/date-picker/date-picker-label.cjs +0 -16
- package/date-picker/date-picker-label.d.ts +0 -5
- package/date-picker/date-picker-label.mjs +0 -12
- package/date-picker/date-picker-month-select.cjs +0 -26
- package/date-picker/date-picker-month-select.d.ts +0 -5
- package/date-picker/date-picker-month-select.mjs +0 -22
- package/date-picker/date-picker-next-trigger.cjs +0 -18
- package/date-picker/date-picker-next-trigger.d.ts +0 -5
- package/date-picker/date-picker-next-trigger.mjs +0 -14
- package/date-picker/date-picker-positioner.cjs +0 -16
- package/date-picker/date-picker-positioner.d.ts +0 -5
- package/date-picker/date-picker-positioner.mjs +0 -12
- package/date-picker/date-picker-prev-trigger.cjs +0 -18
- package/date-picker/date-picker-prev-trigger.d.ts +0 -5
- package/date-picker/date-picker-prev-trigger.mjs +0 -14
- package/date-picker/date-picker-range-text.cjs +0 -20
- package/date-picker/date-picker-range-text.d.ts +0 -5
- package/date-picker/date-picker-range-text.mjs +0 -16
- package/date-picker/date-picker-table-body.cjs +0 -18
- package/date-picker/date-picker-table-body.d.ts +0 -5
- package/date-picker/date-picker-table-body.mjs +0 -14
- package/date-picker/date-picker-table-cell-context.cjs +0 -13
- package/date-picker/date-picker-table-cell-context.d.ts +0 -10
- package/date-picker/date-picker-table-cell-context.mjs +0 -8
- package/date-picker/date-picker-table-cell-trigger.cjs +0 -26
- package/date-picker/date-picker-table-cell-trigger.d.ts +0 -5
- package/date-picker/date-picker-table-cell-trigger.mjs +0 -22
- package/date-picker/date-picker-table-cell.cjs +0 -32
- package/date-picker/date-picker-table-cell.d.ts +0 -6
- package/date-picker/date-picker-table-cell.mjs +0 -28
- package/date-picker/date-picker-table-context.cjs +0 -13
- package/date-picker/date-picker-table-context.d.ts +0 -5
- package/date-picker/date-picker-table-context.mjs +0 -8
- package/date-picker/date-picker-table-head.cjs +0 -18
- package/date-picker/date-picker-table-head.d.ts +0 -5
- package/date-picker/date-picker-table-head.mjs +0 -14
- package/date-picker/date-picker-table-header.cjs +0 -18
- package/date-picker/date-picker-table-header.d.ts +0 -5
- package/date-picker/date-picker-table-header.mjs +0 -14
- package/date-picker/date-picker-table-row.cjs +0 -18
- package/date-picker/date-picker-table-row.d.ts +0 -5
- package/date-picker/date-picker-table-row.mjs +0 -14
- package/date-picker/date-picker-table.cjs +0 -34
- package/date-picker/date-picker-table.d.ts +0 -7
- package/date-picker/date-picker-table.mjs +0 -30
- package/date-picker/date-picker-trigger.cjs +0 -16
- package/date-picker/date-picker-trigger.d.ts +0 -5
- package/date-picker/date-picker-trigger.mjs +0 -12
- package/date-picker/date-picker-view-context.cjs +0 -13
- package/date-picker/date-picker-view-context.d.ts +0 -5
- package/date-picker/date-picker-view-context.mjs +0 -8
- package/date-picker/date-picker-view-control.cjs +0 -18
- package/date-picker/date-picker-view-control.d.ts +0 -5
- package/date-picker/date-picker-view-control.mjs +0 -14
- package/date-picker/date-picker-view-trigger.cjs +0 -18
- package/date-picker/date-picker-view-trigger.d.ts +0 -5
- package/date-picker/date-picker-view-trigger.mjs +0 -14
- package/date-picker/date-picker-view.cjs +0 -31
- package/date-picker/date-picker-view.mjs +0 -27
- package/date-picker/date-picker-year-select.cjs +0 -36
- package/date-picker/date-picker-year-select.d.ts +0 -5
- package/date-picker/date-picker-year-select.mjs +0 -32
- package/date-picker/date-picker.cjs +0 -30
- package/date-picker/date-picker.mjs +0 -26
- package/date-picker/date-picker.stories.d.ts +0 -7
- package/date-picker/date-picker.test.d.ts +0 -1
- package/date-picker/index.cjs +0 -85
- package/date-picker/index.d.ts +0 -55
- package/date-picker/index.mjs +0 -55
- package/date-picker/use-date-picker.cjs +0 -44
- package/date-picker/use-date-picker.d.ts +0 -10
- package/date-picker/use-date-picker.mjs +0 -21
- package/dialog/dialog-backdrop.cjs +0 -27
- package/dialog/dialog-backdrop.d.ts +0 -5
- package/dialog/dialog-backdrop.mjs +0 -23
- package/dialog/dialog-close-trigger.cjs +0 -16
- package/dialog/dialog-close-trigger.d.ts +0 -4
- package/dialog/dialog-close-trigger.mjs +0 -12
- package/dialog/dialog-content.cjs +0 -27
- package/dialog/dialog-content.d.ts +0 -5
- package/dialog/dialog-content.mjs +0 -23
- package/dialog/dialog-context.cjs +0 -13
- package/dialog/dialog-context.d.ts +0 -4
- package/dialog/dialog-context.mjs +0 -8
- package/dialog/dialog-description.cjs +0 -16
- package/dialog/dialog-description.d.ts +0 -4
- package/dialog/dialog-description.mjs +0 -12
- package/dialog/dialog-positioner.cjs +0 -16
- package/dialog/dialog-positioner.d.ts +0 -4
- package/dialog/dialog-positioner.mjs +0 -12
- package/dialog/dialog-title.cjs +0 -16
- package/dialog/dialog-title.d.ts +0 -4
- package/dialog/dialog-title.mjs +0 -12
- package/dialog/dialog-trigger.cjs +0 -16
- package/dialog/dialog-trigger.d.ts +0 -4
- package/dialog/dialog-trigger.mjs +0 -12
- package/dialog/dialog.cjs +0 -23
- package/dialog/dialog.mjs +0 -19
- package/dialog/dialog.stories.d.ts +0 -6
- package/dialog/dialog.test.d.ts +0 -1
- package/dialog/index.cjs +0 -34
- package/dialog/index.d.ts +0 -22
- package/dialog/index.mjs +0 -22
- package/dialog/use-dialog.cjs +0 -37
- package/dialog/use-dialog.mjs +0 -14
- package/editable/editable-area.cjs +0 -16
- package/editable/editable-area.d.ts +0 -4
- package/editable/editable-area.mjs +0 -12
- package/editable/editable-cancel-trigger.cjs +0 -16
- package/editable/editable-cancel-trigger.d.ts +0 -4
- package/editable/editable-cancel-trigger.mjs +0 -12
- package/editable/editable-context.cjs +0 -13
- package/editable/editable-context.d.ts +0 -4
- package/editable/editable-context.mjs +0 -8
- package/editable/editable-control.cjs +0 -16
- package/editable/editable-control.d.ts +0 -4
- package/editable/editable-control.mjs +0 -12
- package/editable/editable-edit-trigger.cjs +0 -16
- package/editable/editable-edit-trigger.d.ts +0 -4
- package/editable/editable-edit-trigger.mjs +0 -12
- package/editable/editable-input.cjs +0 -16
- package/editable/editable-input.d.ts +0 -4
- package/editable/editable-input.mjs +0 -12
- package/editable/editable-label.cjs +0 -16
- package/editable/editable-label.d.ts +0 -4
- package/editable/editable-label.mjs +0 -12
- package/editable/editable-preview.cjs +0 -16
- package/editable/editable-preview.d.ts +0 -4
- package/editable/editable-preview.mjs +0 -12
- package/editable/editable-submit-trigger.cjs +0 -16
- package/editable/editable-submit-trigger.d.ts +0 -4
- package/editable/editable-submit-trigger.mjs +0 -12
- package/editable/editable.cjs +0 -32
- package/editable/editable.mjs +0 -28
- package/editable/editable.stories.d.ts +0 -6
- package/editable/index.cjs +0 -37
- package/editable/index.d.ts +0 -24
- package/editable/index.mjs +0 -24
- package/editable/use-editable.cjs +0 -37
- package/editable/use-editable.mjs +0 -14
- package/environment/environment-context.cjs +0 -15
- package/environment/environment-context.d.ts +0 -4
- package/environment/environment-context.mjs +0 -10
- package/environment/environment.cjs +0 -29
- package/environment/environment.mjs +0 -25
- package/environment/environment.stories.d.ts +0 -5
- package/environment/environment.test.d.ts +0 -1
- package/environment/index.cjs +0 -13
- package/environment/index.d.ts +0 -8
- package/environment/index.mjs +0 -8
- package/factory.cjs +0 -49
- package/factory.mjs +0 -45
- package/filter-object.cjs +0 -17
- package/filter-object.mjs +0 -10
- package/filter-object.test.d.ts +0 -1
- package/hover-card/hover-card-arrow-tip.cjs +0 -16
- package/hover-card/hover-card-arrow-tip.d.ts +0 -4
- package/hover-card/hover-card-arrow-tip.mjs +0 -12
- package/hover-card/hover-card-arrow.cjs +0 -16
- package/hover-card/hover-card-arrow.d.ts +0 -4
- package/hover-card/hover-card-arrow.mjs +0 -12
- package/hover-card/hover-card-content.cjs +0 -27
- package/hover-card/hover-card-content.d.ts +0 -5
- package/hover-card/hover-card-content.mjs +0 -23
- package/hover-card/hover-card-context.cjs +0 -13
- package/hover-card/hover-card-context.d.ts +0 -4
- package/hover-card/hover-card-context.mjs +0 -8
- package/hover-card/hover-card-positioner.cjs +0 -16
- package/hover-card/hover-card-positioner.d.ts +0 -4
- package/hover-card/hover-card-positioner.mjs +0 -12
- package/hover-card/hover-card-trigger.cjs +0 -16
- package/hover-card/hover-card-trigger.d.ts +0 -4
- package/hover-card/hover-card-trigger.mjs +0 -12
- package/hover-card/hover-card.cjs +0 -23
- package/hover-card/hover-card.mjs +0 -19
- package/hover-card/hover-card.stories.d.ts +0 -8
- package/hover-card/index.cjs +0 -28
- package/hover-card/index.d.ts +0 -18
- package/hover-card/index.mjs +0 -18
- package/hover-card/use-hover-card.cjs +0 -37
- package/hover-card/use-hover-card.mjs +0 -14
- package/index.cjs +0 -511
- package/index.mjs +0 -252
- package/is-empty.cjs +0 -7
- package/is-empty.mjs +0 -3
- package/is-function.cjs +0 -7
- package/is-function.mjs +0 -3
- package/menu/index.cjs +0 -49
- package/menu/index.d.ts +0 -32
- package/menu/index.mjs +0 -32
- package/menu/menu-arrow-tip.cjs +0 -16
- package/menu/menu-arrow-tip.d.ts +0 -4
- package/menu/menu-arrow-tip.mjs +0 -12
- package/menu/menu-arrow.cjs +0 -16
- package/menu/menu-arrow.d.ts +0 -4
- package/menu/menu-arrow.mjs +0 -12
- package/menu/menu-content.cjs +0 -27
- package/menu/menu-content.d.ts +0 -5
- package/menu/menu-content.mjs +0 -23
- package/menu/menu-context-trigger.cjs +0 -16
- package/menu/menu-context-trigger.d.ts +0 -4
- package/menu/menu-context-trigger.mjs +0 -12
- package/menu/menu-context.cjs +0 -28
- package/menu/menu-context.d.ts +0 -8
- package/menu/menu-context.mjs +0 -19
- package/menu/menu-item-group-label.cjs +0 -18
- package/menu/menu-item-group-label.d.ts +0 -9
- package/menu/menu-item-group-label.mjs +0 -14
- package/menu/menu-item-group.cjs +0 -18
- package/menu/menu-item-group.d.ts +0 -8
- package/menu/menu-item-group.mjs +0 -14
- package/menu/menu-item.cjs +0 -18
- package/menu/menu-item.d.ts +0 -6
- package/menu/menu-item.mjs +0 -14
- package/menu/menu-option-item.cjs +0 -26
- package/menu/menu-option-item.mjs +0 -22
- package/menu/menu-positioner.cjs +0 -16
- package/menu/menu-positioner.d.ts +0 -4
- package/menu/menu-positioner.mjs +0 -12
- package/menu/menu-separator.cjs +0 -16
- package/menu/menu-separator.d.ts +0 -4
- package/menu/menu-separator.mjs +0 -12
- package/menu/menu-trigger-item.cjs +0 -16
- package/menu/menu-trigger-item.d.ts +0 -4
- package/menu/menu-trigger-item.mjs +0 -12
- package/menu/menu-trigger.cjs +0 -16
- package/menu/menu-trigger.d.ts +0 -4
- package/menu/menu-trigger.mjs +0 -12
- package/menu/menu.cjs +0 -52
- package/menu/menu.mjs +0 -48
- package/menu/menu.stories.d.ts +0 -9
- package/menu/use-menu.cjs +0 -40
- package/menu/use-menu.mjs +0 -17
- package/merge-style.cjs +0 -37
- package/merge-style.mjs +0 -33
- package/number-input/index.cjs +0 -31
- package/number-input/index.d.ts +0 -20
- package/number-input/index.mjs +0 -20
- package/number-input/number-input-context.cjs +0 -13
- package/number-input/number-input-context.d.ts +0 -4
- package/number-input/number-input-context.mjs +0 -8
- package/number-input/number-input-control.cjs +0 -16
- package/number-input/number-input-control.d.ts +0 -4
- package/number-input/number-input-control.mjs +0 -12
- package/number-input/number-input-decrement-trigger.cjs +0 -16
- package/number-input/number-input-decrement-trigger.d.ts +0 -4
- package/number-input/number-input-decrement-trigger.mjs +0 -12
- package/number-input/number-input-field.cjs +0 -16
- package/number-input/number-input-field.d.ts +0 -4
- package/number-input/number-input-field.mjs +0 -12
- package/number-input/number-input-increment-trigger.cjs +0 -16
- package/number-input/number-input-increment-trigger.d.ts +0 -4
- package/number-input/number-input-increment-trigger.mjs +0 -12
- package/number-input/number-input-label.cjs +0 -16
- package/number-input/number-input-label.d.ts +0 -4
- package/number-input/number-input-label.mjs +0 -12
- package/number-input/number-input-scrubber.cjs +0 -16
- package/number-input/number-input-scrubber.d.ts +0 -4
- package/number-input/number-input-scrubber.mjs +0 -12
- package/number-input/number-input.cjs +0 -24
- package/number-input/number-input.d.ts +0 -6
- package/number-input/number-input.mjs +0 -20
- package/number-input/number-input.stories.d.ts +0 -5
- package/number-input/use-number-input.cjs +0 -37
- package/number-input/use-number-input.mjs +0 -14
- package/pagination/index.cjs +0 -25
- package/pagination/index.d.ts +0 -16
- package/pagination/index.mjs +0 -16
- package/pagination/pagination-context.cjs +0 -13
- package/pagination/pagination-context.d.ts +0 -4
- package/pagination/pagination-context.mjs +0 -8
- package/pagination/pagination-ellipsis.cjs +0 -18
- package/pagination/pagination-ellipsis.d.ts +0 -6
- package/pagination/pagination-ellipsis.mjs +0 -14
- package/pagination/pagination-item.cjs +0 -18
- package/pagination/pagination-item.d.ts +0 -6
- package/pagination/pagination-item.mjs +0 -14
- package/pagination/pagination-next-trigger.cjs +0 -16
- package/pagination/pagination-next-trigger.d.ts +0 -5
- package/pagination/pagination-next-trigger.mjs +0 -12
- package/pagination/pagination-prev-trigger.cjs +0 -16
- package/pagination/pagination-prev-trigger.d.ts +0 -5
- package/pagination/pagination-prev-trigger.mjs +0 -12
- package/pagination/pagination.cjs +0 -32
- package/pagination/pagination.mjs +0 -28
- package/pagination/pagination.stories.d.ts +0 -7
- package/pagination/use-pagination.cjs +0 -37
- package/pagination/use-pagination.mjs +0 -14
- package/parse-template.cjs +0 -240
- package/parse-template.mjs +0 -235
- package/pin-input/index.cjs +0 -22
- package/pin-input/index.d.ts +0 -14
- package/pin-input/index.mjs +0 -14
- package/pin-input/pin-input-context.cjs +0 -13
- package/pin-input/pin-input-context.d.ts +0 -4
- package/pin-input/pin-input-context.mjs +0 -8
- package/pin-input/pin-input-control.cjs +0 -16
- package/pin-input/pin-input-control.d.ts +0 -4
- package/pin-input/pin-input-control.mjs +0 -12
- package/pin-input/pin-input-field.cjs +0 -18
- package/pin-input/pin-input-field.d.ts +0 -7
- package/pin-input/pin-input-field.mjs +0 -14
- package/pin-input/pin-input-label.cjs +0 -16
- package/pin-input/pin-input-label.d.ts +0 -4
- package/pin-input/pin-input-label.mjs +0 -12
- package/pin-input/pin-input.cjs +0 -29
- package/pin-input/pin-input.d.ts +0 -6
- package/pin-input/pin-input.mjs +0 -25
- package/pin-input/pin-input.stories.d.ts +0 -5
- package/pin-input/use-pin-input.cjs +0 -37
- package/pin-input/use-pin-input.mjs +0 -14
- package/pipe.cjs +0 -7
- package/pipe.mjs +0 -3
- package/popover/index.cjs +0 -43
- package/popover/index.d.ts +0 -28
- package/popover/index.mjs +0 -28
- package/popover/popover-anchor.cjs +0 -16
- package/popover/popover-anchor.d.ts +0 -4
- package/popover/popover-anchor.mjs +0 -12
- package/popover/popover-arrow-tip.cjs +0 -16
- package/popover/popover-arrow-tip.d.ts +0 -4
- package/popover/popover-arrow-tip.mjs +0 -12
- package/popover/popover-arrow.cjs +0 -16
- package/popover/popover-arrow.d.ts +0 -4
- package/popover/popover-arrow.mjs +0 -12
- package/popover/popover-close-trigger.cjs +0 -16
- package/popover/popover-close-trigger.d.ts +0 -4
- package/popover/popover-close-trigger.mjs +0 -12
- package/popover/popover-content.cjs +0 -27
- package/popover/popover-content.d.ts +0 -5
- package/popover/popover-content.mjs +0 -23
- package/popover/popover-context.cjs +0 -13
- package/popover/popover-context.d.ts +0 -4
- package/popover/popover-context.mjs +0 -8
- package/popover/popover-description.cjs +0 -16
- package/popover/popover-description.d.ts +0 -4
- package/popover/popover-description.mjs +0 -12
- package/popover/popover-indicator.cjs +0 -16
- package/popover/popover-indicator.d.ts +0 -4
- package/popover/popover-indicator.mjs +0 -12
- package/popover/popover-positioner.cjs +0 -16
- package/popover/popover-positioner.d.ts +0 -4
- package/popover/popover-positioner.mjs +0 -12
- package/popover/popover-title.cjs +0 -16
- package/popover/popover-title.d.ts +0 -4
- package/popover/popover-title.mjs +0 -12
- package/popover/popover-trigger.cjs +0 -16
- package/popover/popover-trigger.d.ts +0 -4
- package/popover/popover-trigger.mjs +0 -12
- package/popover/popover.cjs +0 -21
- package/popover/popover.mjs +0 -17
- package/popover/popover.stories.d.ts +0 -6
- package/popover/use-popover.cjs +0 -37
- package/popover/use-popover.mjs +0 -14
- package/presence/index.cjs +0 -13
- package/presence/index.d.ts +0 -8
- package/presence/index.mjs +0 -8
- package/presence/presence.cjs +0 -33
- package/presence/presence.d.ts +0 -17
- package/presence/presence.mjs +0 -29
- package/presence/presence.stories.d.ts +0 -10
- package/presence/presence.test.d.ts +0 -1
- package/presence/split-presence-props.cjs +0 -16
- package/presence/split-presence-props.mjs +0 -12
- package/presence/use-presence.cjs +0 -35
- package/presence/use-presence.d.ts +0 -5
- package/presence/use-presence.mjs +0 -12
- package/prop-trap.d.ts +0 -5
- package/radio-group/index.cjs +0 -29
- package/radio-group/index.d.ts +0 -19
- package/radio-group/index.mjs +0 -19
- package/radio-group/radio-group-context.cjs +0 -13
- package/radio-group/radio-group-context.d.ts +0 -4
- package/radio-group/radio-group-context.mjs +0 -8
- package/radio-group/radio-group-indicator.cjs +0 -16
- package/radio-group/radio-group-indicator.d.ts +0 -4
- package/radio-group/radio-group-indicator.mjs +0 -12
- package/radio-group/radio-group-item-context.cjs +0 -13
- package/radio-group/radio-group-item-context.d.ts +0 -4
- package/radio-group/radio-group-item-context.mjs +0 -8
- package/radio-group/radio-group-item-control.cjs +0 -23
- package/radio-group/radio-group-item-control.d.ts +0 -4
- package/radio-group/radio-group-item-control.mjs +0 -19
- package/radio-group/radio-group-item-text.cjs +0 -18
- package/radio-group/radio-group-item-text.d.ts +0 -4
- package/radio-group/radio-group-item-text.mjs +0 -14
- package/radio-group/radio-group-item.cjs +0 -24
- package/radio-group/radio-group-item.d.ts +0 -6
- package/radio-group/radio-group-item.mjs +0 -20
- package/radio-group/radio-group-label.cjs +0 -16
- package/radio-group/radio-group-label.d.ts +0 -4
- package/radio-group/radio-group-label.mjs +0 -12
- package/radio-group/radio-group.cjs +0 -24
- package/radio-group/radio-group.d.ts +0 -6
- package/radio-group/radio-group.mjs +0 -20
- package/radio-group/radio-group.stories.d.ts +0 -5
- package/radio-group/radio-group.test.d.ts +0 -1
- package/radio-group/use-radio-group.cjs +0 -42
- package/radio-group/use-radio-group.mjs +0 -19
- package/rating-group/index.cjs +0 -24
- package/rating-group/index.d.ts +0 -15
- package/rating-group/index.mjs +0 -15
- package/rating-group/rating-group-context.cjs +0 -13
- package/rating-group/rating-group-context.d.ts +0 -4
- package/rating-group/rating-group-context.mjs +0 -8
- package/rating-group/rating-group-control.cjs +0 -27
- package/rating-group/rating-group-control.mjs +0 -23
- package/rating-group/rating-group-item-context.cjs +0 -14
- package/rating-group/rating-group-item-context.d.ts +0 -4
- package/rating-group/rating-group-item-context.mjs +0 -9
- package/rating-group/rating-group-item.cjs +0 -31
- package/rating-group/rating-group-item.mjs +0 -27
- package/rating-group/rating-group-label.cjs +0 -16
- package/rating-group/rating-group-label.d.ts +0 -4
- package/rating-group/rating-group-label.mjs +0 -12
- package/rating-group/rating-group.cjs +0 -24
- package/rating-group/rating-group.d.ts +0 -6
- package/rating-group/rating-group.mjs +0 -20
- package/rating-group/rating-group.stories.d.ts +0 -6
- package/rating-group/use-rating-group.cjs +0 -42
- package/rating-group/use-rating-group.mjs +0 -19
- package/run-if-fn.cjs +0 -8
- package/run-if-fn.mjs +0 -4
- package/run-if-fn.test.d.ts +0 -1
- package/segment-group/index.cjs +0 -30
- package/segment-group/index.d.ts +0 -19
- package/segment-group/index.mjs +0 -19
- package/segment-group/segment-group-context.cjs +0 -13
- package/segment-group/segment-group-context.d.ts +0 -4
- package/segment-group/segment-group-context.mjs +0 -8
- package/segment-group/segment-group-indicator.cjs +0 -17
- package/segment-group/segment-group-indicator.d.ts +0 -4
- package/segment-group/segment-group-indicator.mjs +0 -13
- package/segment-group/segment-group-item-context.cjs +0 -15
- package/segment-group/segment-group-item-context.d.ts +0 -16
- package/segment-group/segment-group-item-context.mjs +0 -10
- package/segment-group/segment-group-item-control.cjs +0 -24
- package/segment-group/segment-group-item-control.d.ts +0 -4
- package/segment-group/segment-group-item-control.mjs +0 -20
- package/segment-group/segment-group-item-text.cjs +0 -19
- package/segment-group/segment-group-item-text.d.ts +0 -4
- package/segment-group/segment-group-item-text.mjs +0 -15
- package/segment-group/segment-group-item.cjs +0 -25
- package/segment-group/segment-group-item.d.ts +0 -6
- package/segment-group/segment-group-item.mjs +0 -21
- package/segment-group/segment-group-label.cjs +0 -17
- package/segment-group/segment-group-label.d.ts +0 -4
- package/segment-group/segment-group-label.mjs +0 -13
- package/segment-group/segment-group.cjs +0 -25
- package/segment-group/segment-group.d.ts +0 -6
- package/segment-group/segment-group.mjs +0 -21
- package/segment-group/segment-group.stories.d.ts +0 -7
- package/segment-group/segment-group.test.d.ts +0 -1
- package/segment-group/use-segment-group.cjs +0 -42
- package/segment-group/use-segment-group.mjs +0 -19
- package/select/index.cjs +0 -54
- package/select/index.d.ts +0 -36
- package/select/index.mjs +0 -35
- package/select/select-clear-trigger.cjs +0 -16
- package/select/select-clear-trigger.d.ts +0 -4
- package/select/select-clear-trigger.mjs +0 -12
- package/select/select-content.cjs +0 -27
- package/select/select-content.d.ts +0 -5
- package/select/select-content.mjs +0 -23
- package/select/select-context.cjs +0 -13
- package/select/select-context.d.ts +0 -5
- package/select/select-context.mjs +0 -8
- package/select/select-control.cjs +0 -16
- package/select/select-control.d.ts +0 -4
- package/select/select-control.mjs +0 -12
- package/select/select-indicator.cjs +0 -16
- package/select/select-indicator.d.ts +0 -4
- package/select/select-indicator.mjs +0 -12
- package/select/select-item-context.cjs +0 -13
- package/select/select-item-context.d.ts +0 -4
- package/select/select-item-context.mjs +0 -8
- package/select/select-item-group-label.cjs +0 -18
- package/select/select-item-group-label.d.ts +0 -6
- package/select/select-item-group-label.mjs +0 -14
- package/select/select-item-group.cjs +0 -18
- package/select/select-item-group.d.ts +0 -6
- package/select/select-item-group.mjs +0 -14
- package/select/select-item-indicator.cjs +0 -18
- package/select/select-item-indicator.d.ts +0 -4
- package/select/select-item-indicator.mjs +0 -14
- package/select/select-item-text.cjs +0 -18
- package/select/select-item-text.d.ts +0 -4
- package/select/select-item-text.mjs +0 -14
- package/select/select-item.cjs +0 -30
- package/select/select-item.mjs +0 -26
- package/select/select-label.cjs +0 -16
- package/select/select-label.d.ts +0 -4
- package/select/select-label.mjs +0 -12
- package/select/select-positioner.cjs +0 -16
- package/select/select-positioner.d.ts +0 -4
- package/select/select-positioner.mjs +0 -12
- package/select/select-trigger.cjs +0 -16
- package/select/select-trigger.d.ts +0 -4
- package/select/select-trigger.mjs +0 -12
- package/select/select-value-text.cjs +0 -21
- package/select/select-value-text.d.ts +0 -6
- package/select/select-value-text.mjs +0 -17
- package/select/select.cjs +0 -30
- package/select/select.mjs +0 -26
- package/select/select.stories.d.ts +0 -5
- package/select/select.test.d.ts +0 -1
- package/select/use-select.cjs +0 -47
- package/select/use-select.mjs +0 -24
- package/setup-test.d.ts +0 -2
- package/slider/index.cjs +0 -37
- package/slider/index.d.ts +0 -24
- package/slider/index.mjs +0 -24
- package/slider/slider-context.cjs +0 -13
- package/slider/slider-context.d.ts +0 -4
- package/slider/slider-context.mjs +0 -8
- package/slider/slider-control.cjs +0 -16
- package/slider/slider-control.d.ts +0 -4
- package/slider/slider-control.mjs +0 -12
- package/slider/slider-label.cjs +0 -16
- package/slider/slider-label.d.ts +0 -4
- package/slider/slider-label.mjs +0 -12
- package/slider/slider-marker-group.cjs +0 -16
- package/slider/slider-marker-group.d.ts +0 -4
- package/slider/slider-marker-group.mjs +0 -12
- package/slider/slider-marker.cjs +0 -18
- package/slider/slider-marker.d.ts +0 -6
- package/slider/slider-marker.mjs +0 -14
- package/slider/slider-output.cjs +0 -22
- package/slider/slider-output.mjs +0 -18
- package/slider/slider-range.cjs +0 -16
- package/slider/slider-range.d.ts +0 -4
- package/slider/slider-range.mjs +0 -12
- package/slider/slider-thumb.cjs +0 -18
- package/slider/slider-thumb.d.ts +0 -6
- package/slider/slider-thumb.mjs +0 -14
- package/slider/slider-track.cjs +0 -16
- package/slider/slider-track.d.ts +0 -4
- package/slider/slider-track.mjs +0 -12
- package/slider/slider.cjs +0 -30
- package/slider/slider.mjs +0 -26
- package/slider/slider.stories.d.ts +0 -5
- package/slider/use-slider.cjs +0 -37
- package/slider/use-slider.mjs +0 -14
- package/splitter/index.cjs +0 -19
- package/splitter/index.d.ts +0 -12
- package/splitter/index.mjs +0 -12
- package/splitter/splitter-context.cjs +0 -13
- package/splitter/splitter-context.d.ts +0 -4
- package/splitter/splitter-context.mjs +0 -8
- package/splitter/splitter-panel.cjs +0 -18
- package/splitter/splitter-panel.d.ts +0 -8
- package/splitter/splitter-panel.mjs +0 -14
- package/splitter/splitter-resize-trigger.cjs +0 -18
- package/splitter/splitter-resize-trigger.d.ts +0 -8
- package/splitter/splitter-resize-trigger.mjs +0 -14
- package/splitter/splitter.cjs +0 -30
- package/splitter/splitter.mjs +0 -26
- package/splitter/splitter.stories.d.ts +0 -8
- package/splitter/splitter.test.d.ts +0 -1
- package/splitter/use-splitter.cjs +0 -37
- package/splitter/use-splitter.mjs +0 -14
- package/spread.cjs +0 -42
- package/spread.mjs +0 -38
- package/spread.test.d.ts +0 -1
- package/ssr-spread.cjs +0 -32
- package/ssr-spread.mjs +0 -28
- package/ssr-spread.test.d.ts +0 -1
- package/switch/index.cjs +0 -22
- package/switch/index.d.ts +0 -14
- package/switch/index.mjs +0 -14
- package/switch/switch-context.cjs +0 -13
- package/switch/switch-context.d.ts +0 -4
- package/switch/switch-context.mjs +0 -8
- package/switch/switch-control.cjs +0 -21
- package/switch/switch-control.d.ts +0 -4
- package/switch/switch-control.mjs +0 -17
- package/switch/switch-label.cjs +0 -16
- package/switch/switch-label.d.ts +0 -4
- package/switch/switch-label.mjs +0 -12
- package/switch/switch-thumb.cjs +0 -16
- package/switch/switch-thumb.d.ts +0 -4
- package/switch/switch-thumb.mjs +0 -12
- package/switch/switch.cjs +0 -30
- package/switch/switch.mjs +0 -26
- package/switch/switch.stories.d.ts +0 -9
- package/switch/use-switch.cjs +0 -37
- package/switch/use-switch.mjs +0 -14
- package/tabs/index.cjs +0 -25
- package/tabs/index.d.ts +0 -16
- package/tabs/index.mjs +0 -16
- package/tabs/tab-content.cjs +0 -26
- package/tabs/tab-content.d.ts +0 -7
- package/tabs/tab-content.mjs +0 -22
- package/tabs/tab-indicator.cjs +0 -16
- package/tabs/tab-indicator.d.ts +0 -4
- package/tabs/tab-indicator.mjs +0 -12
- package/tabs/tab-list.cjs +0 -16
- package/tabs/tab-list.d.ts +0 -4
- package/tabs/tab-list.mjs +0 -12
- package/tabs/tab-presence.cjs +0 -18
- package/tabs/tab-presence.d.ts +0 -5
- package/tabs/tab-presence.mjs +0 -14
- package/tabs/tab-trigger.cjs +0 -18
- package/tabs/tab-trigger.d.ts +0 -6
- package/tabs/tab-trigger.mjs +0 -14
- package/tabs/tabs-context.cjs +0 -13
- package/tabs/tabs-context.d.ts +0 -4
- package/tabs/tabs-context.mjs +0 -8
- package/tabs/tabs.cjs +0 -24
- package/tabs/tabs.d.ts +0 -6
- package/tabs/tabs.mjs +0 -20
- package/tabs/tabs.stories.d.ts +0 -11
- package/tabs/tabs.test.d.ts +0 -1
- package/tabs/use-tabs.cjs +0 -37
- package/tabs/use-tabs.mjs +0 -14
- package/tags-input/index.cjs +0 -39
- package/tags-input/index.d.ts +0 -25
- package/tags-input/index.mjs +0 -25
- package/tags-input/tags-input-clear-trigger.cjs +0 -16
- package/tags-input/tags-input-clear-trigger.d.ts +0 -4
- package/tags-input/tags-input-clear-trigger.mjs +0 -12
- package/tags-input/tags-input-context.cjs +0 -13
- package/tags-input/tags-input-context.d.ts +0 -4
- package/tags-input/tags-input-context.mjs +0 -8
- package/tags-input/tags-input-control.cjs +0 -16
- package/tags-input/tags-input-control.d.ts +0 -4
- package/tags-input/tags-input-control.mjs +0 -12
- package/tags-input/tags-input-input.cjs +0 -16
- package/tags-input/tags-input-input.d.ts +0 -4
- package/tags-input/tags-input-input.mjs +0 -12
- package/tags-input/tags-input-item-context.cjs +0 -15
- package/tags-input/tags-input-item-context.d.ts +0 -4
- package/tags-input/tags-input-item-context.mjs +0 -10
- package/tags-input/tags-input-item-delete-trigger.cjs +0 -18
- package/tags-input/tags-input-item-delete-trigger.d.ts +0 -4
- package/tags-input/tags-input-item-delete-trigger.mjs +0 -14
- package/tags-input/tags-input-item-input.cjs +0 -19
- package/tags-input/tags-input-item-input.d.ts +0 -4
- package/tags-input/tags-input-item-input.mjs +0 -15
- package/tags-input/tags-input-item-text.cjs +0 -19
- package/tags-input/tags-input-item-text.d.ts +0 -4
- package/tags-input/tags-input-item-text.mjs +0 -15
- package/tags-input/tags-input-item.cjs +0 -30
- package/tags-input/tags-input-item.mjs +0 -26
- package/tags-input/tags-input-label.cjs +0 -16
- package/tags-input/tags-input-label.d.ts +0 -4
- package/tags-input/tags-input-label.mjs +0 -12
- package/tags-input/tags-input.cjs +0 -35
- package/tags-input/tags-input.mjs +0 -31
- package/tags-input/tags-input.stories.d.ts +0 -5
- package/tags-input/use-tags-input.cjs +0 -37
- package/tags-input/use-tags-input.mjs +0 -14
- package/toast/create-toaster.cjs +0 -88
- package/toast/create-toaster.mjs +0 -65
- package/toast/index.cjs +0 -22
- package/toast/index.d.ts +0 -14
- package/toast/index.mjs +0 -14
- package/toast/toast-close-trigger.cjs +0 -16
- package/toast/toast-close-trigger.d.ts +0 -4
- package/toast/toast-close-trigger.mjs +0 -12
- package/toast/toast-context.cjs +0 -14
- package/toast/toast-context.d.ts +0 -6
- package/toast/toast-context.mjs +0 -9
- package/toast/toast-description.cjs +0 -16
- package/toast/toast-description.d.ts +0 -4
- package/toast/toast-description.mjs +0 -12
- package/toast/toast-title.cjs +0 -16
- package/toast/toast-title.d.ts +0 -4
- package/toast/toast-title.mjs +0 -12
- package/toast/toast.cjs +0 -16
- package/toast/toast.d.ts +0 -4
- package/toast/toast.mjs +0 -12
- package/toast/toast.stories.d.ts +0 -7
- package/toast/toast.test.d.ts +0 -2
- package/toggle-group/index.cjs +0 -16
- package/toggle-group/index.d.ts +0 -10
- package/toggle-group/index.mjs +0 -10
- package/toggle-group/toggle-group-context.cjs +0 -13
- package/toggle-group/toggle-group-context.d.ts +0 -4
- package/toggle-group/toggle-group-context.mjs +0 -8
- package/toggle-group/toggle-group-item.cjs +0 -18
- package/toggle-group/toggle-group-item.d.ts +0 -7
- package/toggle-group/toggle-group-item.mjs +0 -14
- package/toggle-group/toggle-group.cjs +0 -24
- package/toggle-group/toggle-group.d.ts +0 -6
- package/toggle-group/toggle-group.mjs +0 -20
- package/toggle-group/toggle-group.stories.d.ts +0 -9
- package/toggle-group/toggle-group.test.d.ts +0 -1
- package/toggle-group/use-toggle-group.cjs +0 -39
- package/toggle-group/use-toggle-group.mjs +0 -16
- package/tooltip/index.cjs +0 -28
- package/tooltip/index.d.ts +0 -18
- package/tooltip/index.mjs +0 -18
- package/tooltip/tooltip-anatomy.d.ts +0 -1
- package/tooltip/tooltip-arrow-tip.cjs +0 -16
- package/tooltip/tooltip-arrow-tip.d.ts +0 -4
- package/tooltip/tooltip-arrow-tip.mjs +0 -12
- package/tooltip/tooltip-arrow.cjs +0 -16
- package/tooltip/tooltip-arrow.d.ts +0 -4
- package/tooltip/tooltip-arrow.mjs +0 -12
- package/tooltip/tooltip-content.cjs +0 -27
- package/tooltip/tooltip-content.d.ts +0 -5
- package/tooltip/tooltip-content.mjs +0 -23
- package/tooltip/tooltip-context.cjs +0 -13
- package/tooltip/tooltip-context.d.ts +0 -4
- package/tooltip/tooltip-context.mjs +0 -8
- package/tooltip/tooltip-positioner.cjs +0 -16
- package/tooltip/tooltip-positioner.d.ts +0 -4
- package/tooltip/tooltip-positioner.mjs +0 -12
- package/tooltip/tooltip-trigger.cjs +0 -16
- package/tooltip/tooltip-trigger.d.ts +0 -4
- package/tooltip/tooltip-trigger.mjs +0 -12
- package/tooltip/tooltip.cjs +0 -18
- package/tooltip/tooltip.mjs +0 -14
- package/tooltip/tooltip.stories.d.ts +0 -11
- package/tooltip/tooltip.test.d.ts +0 -1
- package/tooltip/use-tooltip.cjs +0 -37
- package/tooltip/use-tooltip.mjs +0 -14
- /package/{index.d.ts → source/index.jsx} +0 -0
- /package/{accordion → types/accordion}/accordion-item.d.ts +0 -0
- /package/{accordion → types/accordion}/use-accordion.d.ts +0 -0
- /package/{avatar → types/avatar}/use-avatar.d.ts +0 -0
- /package/{carousel → types/carousel}/use-carousel.d.ts +0 -0
- /package/{checkbox → types/checkbox}/checkbox.d.ts +0 -0
- /package/{checkbox → types/checkbox}/use-checkbox.d.ts +0 -0
- /package/{color-picker → types/color-picker}/color-picker.d.ts +0 -0
- /package/{color-picker → types/color-picker}/use-color-picker.d.ts +0 -0
- /package/{combobox → types/combobox}/combobox-item.d.ts +0 -0
- /package/{combobox → types/combobox}/combobox.d.ts +0 -0
- /package/{combobox → types/combobox}/use-combobox.d.ts +0 -0
- /package/{constants.d.ts → types/constants.d.ts} +0 -0
- /package/{create-context.d.ts → types/create-context.d.ts} +0 -0
- /package/{create-split-props.d.ts → types/create-split-props.d.ts} +0 -0
- /package/{date-picker → types/date-picker}/date-picker-view.d.ts +0 -0
- /package/{date-picker → types/date-picker}/date-picker.d.ts +0 -0
- /package/{dialog → types/dialog}/dialog.d.ts +0 -0
- /package/{dialog → types/dialog}/use-dialog.d.ts +0 -0
- /package/{editable → types/editable}/editable.d.ts +0 -0
- /package/{editable → types/editable}/use-editable.d.ts +0 -0
- /package/{environment → types/environment}/environment.d.ts +0 -0
- /package/{factory.d.ts → types/factory.d.ts} +0 -0
- /package/{filter-object.d.ts → types/filter-object.d.ts} +0 -0
- /package/{hover-card → types/hover-card}/hover-card.d.ts +0 -0
- /package/{hover-card → types/hover-card}/use-hover-card.d.ts +0 -0
- /package/{is-empty.d.ts → types/is-empty.d.ts} +0 -0
- /package/{is-function.d.ts → types/is-function.d.ts} +0 -0
- /package/{menu → types/menu}/menu-option-item.d.ts +0 -0
- /package/{menu → types/menu}/menu.d.ts +0 -0
- /package/{menu → types/menu}/use-menu.d.ts +0 -0
- /package/{merge-style.d.ts → types/merge-style.d.ts} +0 -0
- /package/{number-input → types/number-input}/use-number-input.d.ts +0 -0
- /package/{pagination → types/pagination}/pagination.d.ts +0 -0
- /package/{pagination → types/pagination}/use-pagination.d.ts +0 -0
- /package/{parse-template.d.ts → types/parse-template.d.ts} +0 -0
- /package/{pin-input → types/pin-input}/use-pin-input.d.ts +0 -0
- /package/{pipe.d.ts → types/pipe.d.ts} +0 -0
- /package/{popover → types/popover}/popover.d.ts +0 -0
- /package/{popover → types/popover}/use-popover.d.ts +0 -0
- /package/{presence → types/presence}/split-presence-props.d.ts +0 -0
- /package/{radio-group → types/radio-group}/use-radio-group.d.ts +0 -0
- /package/{rating-group → types/rating-group}/rating-group-control.d.ts +0 -0
- /package/{rating-group → types/rating-group}/rating-group-item.d.ts +0 -0
- /package/{rating-group → types/rating-group}/use-rating-group.d.ts +0 -0
- /package/{run-if-fn.d.ts → types/run-if-fn.d.ts} +0 -0
- /package/{segment-group → types/segment-group}/use-segment-group.d.ts +0 -0
- /package/{select → types/select}/select-item.d.ts +0 -0
- /package/{select → types/select}/select.d.ts +0 -0
- /package/{select → types/select}/use-select.d.ts +0 -0
- /package/{slider → types/slider}/slider-output.d.ts +0 -0
- /package/{slider → types/slider}/slider.d.ts +0 -0
- /package/{slider → types/slider}/use-slider.d.ts +0 -0
- /package/{splitter → types/splitter}/splitter.d.ts +0 -0
- /package/{splitter → types/splitter}/use-splitter.d.ts +0 -0
- /package/{spread.d.ts → types/spread.d.ts} +0 -0
- /package/{ssr-spread.d.ts → types/ssr-spread.d.ts} +0 -0
- /package/{switch → types/switch}/switch.d.ts +0 -0
- /package/{switch → types/switch}/use-switch.d.ts +0 -0
- /package/{tabs → types/tabs}/use-tabs.d.ts +0 -0
- /package/{tags-input → types/tags-input}/tags-input-item.d.ts +0 -0
- /package/{tags-input → types/tags-input}/tags-input.d.ts +0 -0
- /package/{tags-input → types/tags-input}/use-tags-input.d.ts +0 -0
- /package/{toast → types/toast}/create-toaster.d.ts +0 -0
- /package/{toggle-group → types/toggle-group}/use-toggle-group.d.ts +0 -0
- /package/{tooltip → types/tooltip}/tooltip.d.ts +0 -0
- /package/{tooltip → types/tooltip}/use-tooltip.d.ts +0 -0
- /package/{types.d.ts → types/types.d.ts} +0 -0
package/esm/index.js
ADDED
|
@@ -0,0 +1,3236 @@
|
|
|
1
|
+
import { spread as spread$1, createComponent, Dynamic, mergeProps as mergeProps$1, memo, use, template, insert, effect } from 'solid-js/web';
|
|
2
|
+
import { mergeProps as mergeProps$2, useMachine, normalizeProps, useActor } from '@zag-js/solid';
|
|
3
|
+
import { splitProps, createMemo, mergeProps, children, createEffect, createContext as createContext$1, useContext, createUniqueId, createSignal, onCleanup, Index } from 'solid-js';
|
|
4
|
+
import * as accordion from '@zag-js/accordion';
|
|
5
|
+
import * as presence from '@zag-js/presence';
|
|
6
|
+
import * as avatar from '@zag-js/avatar';
|
|
7
|
+
import * as carousel from '@zag-js/carousel';
|
|
8
|
+
import { carouselAnatomy, segmentGroupAnatomy, selectAnatomy } from '@ark-ui/anatomy';
|
|
9
|
+
import * as checkbox from '@zag-js/checkbox';
|
|
10
|
+
import * as colorPicker from '@zag-js/color-picker';
|
|
11
|
+
import * as combobox from '@zag-js/combobox';
|
|
12
|
+
import * as datePicker from '@zag-js/date-picker';
|
|
13
|
+
import * as dialog from '@zag-js/dialog';
|
|
14
|
+
import * as editable from '@zag-js/editable';
|
|
15
|
+
import * as hoverCard from '@zag-js/hover-card';
|
|
16
|
+
import * as menu from '@zag-js/menu';
|
|
17
|
+
import * as numberInput from '@zag-js/number-input';
|
|
18
|
+
import * as pagination from '@zag-js/pagination';
|
|
19
|
+
import * as pinInput from '@zag-js/pin-input';
|
|
20
|
+
import * as popover from '@zag-js/popover';
|
|
21
|
+
import * as radio from '@zag-js/radio-group';
|
|
22
|
+
import * as rating from '@zag-js/rating-group';
|
|
23
|
+
import * as select from '@zag-js/select';
|
|
24
|
+
import * as slider from '@zag-js/slider';
|
|
25
|
+
import * as splitter from '@zag-js/splitter';
|
|
26
|
+
import * as zagSwitch from '@zag-js/switch';
|
|
27
|
+
import * as tabs from '@zag-js/tabs';
|
|
28
|
+
import * as tagsInput from '@zag-js/tags-input';
|
|
29
|
+
import * as toggleGroup from '@zag-js/toggle-group';
|
|
30
|
+
import * as tooltip from '@zag-js/tooltip';
|
|
31
|
+
import * as toast from '@zag-js/toast';
|
|
32
|
+
|
|
33
|
+
const createSplitProps = () => (props, keys) => splitProps(props, keys);
|
|
34
|
+
|
|
35
|
+
const mergeStyle = (a, b) => styleObjectToString({
|
|
36
|
+
...getStyleObject(a),
|
|
37
|
+
...getStyleObject(b)
|
|
38
|
+
});
|
|
39
|
+
const getStyleObject = style => typeof style === 'object' ? style : stringStyleToObject(style);
|
|
40
|
+
const stringStyleToObject = style => {
|
|
41
|
+
const object = {};
|
|
42
|
+
if (!style) return object;
|
|
43
|
+
const extractCSSregex = /([^:; ]*):\s*([^;]*)/g;
|
|
44
|
+
let match;
|
|
45
|
+
while (match = extractCSSregex.exec(style)) {
|
|
46
|
+
object[match[1]] = match[2];
|
|
47
|
+
}
|
|
48
|
+
return object;
|
|
49
|
+
};
|
|
50
|
+
const styleObjectToString = value => {
|
|
51
|
+
if (!value) return '';
|
|
52
|
+
let result = '';
|
|
53
|
+
const k = Object.keys(value);
|
|
54
|
+
for (let i = 0; i < k.length; i++) {
|
|
55
|
+
const s = k[i];
|
|
56
|
+
// @ts-expect-error - we know this is a string
|
|
57
|
+
const v = value[s];
|
|
58
|
+
if (v != undefined) {
|
|
59
|
+
if (i) result += ';';
|
|
60
|
+
result += `${s}:${v}`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return result;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
67
|
+
const getEventKey = key => `$$${key.toLowerCase().slice(2)}`;
|
|
68
|
+
const hasOwn = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
|
|
69
|
+
function mapProps(props, mapper) {
|
|
70
|
+
return Object.fromEntries(Object.entries(props).map(([key, value]) => [key, mapper(key, value)]));
|
|
71
|
+
}
|
|
72
|
+
const spread = (node, props) => {
|
|
73
|
+
const nodeEvents = Object.fromEntries(Object.keys(node).filter(prop => prop.startsWith('$$'))
|
|
74
|
+
// @ts-expect-error - fix later
|
|
75
|
+
.map(prop => [prop, node[prop]]));
|
|
76
|
+
const childProps = createMemo(() => mapProps(props, (key, value) => {
|
|
77
|
+
const eventKey = getEventKey(key);
|
|
78
|
+
|
|
79
|
+
// event composition
|
|
80
|
+
if (hasOwn(nodeEvents, eventKey)) {
|
|
81
|
+
return function next(...args) {
|
|
82
|
+
if (typeof value === 'function') value(...args);
|
|
83
|
+
nodeEvents[eventKey](...args);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// style composition
|
|
88
|
+
if (key === 'style') {
|
|
89
|
+
return mergeStyle(node.style.cssText, value);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// class composition
|
|
93
|
+
if (key === 'class') {
|
|
94
|
+
return [node.className, value].filter(Boolean).join(' ');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// don't override existing child attributes
|
|
98
|
+
if (node.hasAttribute(key)) return;
|
|
99
|
+
return value;
|
|
100
|
+
}));
|
|
101
|
+
spread$1(node, mergeProps(childProps));
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const booleans = ['allowfullscreen', 'async', 'autofocus', 'autoplay', 'checked', 'controls', 'default', 'disabled', 'formnovalidate', 'hidden', 'indeterminate', 'ismap', 'loop', 'multiple', 'muted', 'nomodule', 'novalidate', 'open', 'playsinline', 'readonly', 'required', 'reversed', 'seamless', 'selected'];
|
|
105
|
+
const BooleanAttributes = new Set(booleans);
|
|
106
|
+
|
|
107
|
+
const isEmpty = value => value == null || value == undefined || typeof value === 'object' && Object.keys(value).length === 0 || typeof value === 'string' && value.trim().length === 0;
|
|
108
|
+
|
|
109
|
+
const isFunction$1 = value => typeof value === 'function';
|
|
110
|
+
|
|
111
|
+
const filterObject = (obj, fn) => Object.fromEntries(Object.entries(obj).filter(fn));
|
|
112
|
+
const filterEmptyValues = obj => filterObject(obj, ([, v]) => !isEmpty(v));
|
|
113
|
+
const filterFunctionValues = obj => filterObject(obj, ([, v]) => !isFunction$1(v));
|
|
114
|
+
const filterBooleanAttributeValues = obj => filterObject(obj, ([k, v]) => !(BooleanAttributes.has(k) && !v));
|
|
115
|
+
|
|
116
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
117
|
+
// Forked from https://github.com/natemoo-re/ultrahtml.git under MIT license
|
|
118
|
+
|
|
119
|
+
const DOCUMENT_NODE = 0;
|
|
120
|
+
const ELEMENT_NODE = 1;
|
|
121
|
+
const TEXT_NODE = 2;
|
|
122
|
+
const COMMENT_NODE = 3;
|
|
123
|
+
const DOCTYPE_NODE = 4;
|
|
124
|
+
const Fragment = Symbol('Fragment');
|
|
125
|
+
const VOID_TAGS = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']);
|
|
126
|
+
const RAW_TAGS = new Set(['script', 'style']);
|
|
127
|
+
const SPLIT_ATTRS_RE = /([@.a-z0-9_:-]*)\s*?=?\s*?(['"]?)([\s\S]*?)\2\s+/gim;
|
|
128
|
+
const DOM_PARSER_RE = /(?:<(\/?)([a-zA-Z][a-zA-Z0-9:-]*)(?:\s([^>]*?))?((?:\s*\/)?)>|(<!--)([\s\S]*?)(-->)|(<!)([\s\S]*?)(>))/gm;
|
|
129
|
+
function splitAttrs(str) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
let token;
|
|
132
|
+
if (str) {
|
|
133
|
+
SPLIT_ATTRS_RE.lastIndex = 0;
|
|
134
|
+
str = ' ' + (str || '') + ' ';
|
|
135
|
+
while (token = SPLIT_ATTRS_RE.exec(str)) {
|
|
136
|
+
if (token[0] === ' ') continue;
|
|
137
|
+
obj[token[1]] = token[3];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return obj;
|
|
141
|
+
}
|
|
142
|
+
function parse(str) {
|
|
143
|
+
let doc, parent, token, text, i, bStart, bText, bEnd, tag;
|
|
144
|
+
const tags = [];
|
|
145
|
+
DOM_PARSER_RE.lastIndex = 0;
|
|
146
|
+
parent = doc = {
|
|
147
|
+
type: DOCUMENT_NODE,
|
|
148
|
+
children: []
|
|
149
|
+
};
|
|
150
|
+
let lastIndex = 0;
|
|
151
|
+
function commitTextNode() {
|
|
152
|
+
text = str.substring(lastIndex, DOM_PARSER_RE.lastIndex - token[0].length);
|
|
153
|
+
if (text) {
|
|
154
|
+
parent.children.push({
|
|
155
|
+
type: TEXT_NODE,
|
|
156
|
+
value: text,
|
|
157
|
+
parent
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
while (token = DOM_PARSER_RE.exec(str)) {
|
|
162
|
+
bStart = token[5] || token[8];
|
|
163
|
+
bText = token[6] || token[9];
|
|
164
|
+
bEnd = token[7] || token[10];
|
|
165
|
+
if (RAW_TAGS.has(parent.name) && token[2] !== parent.name) {
|
|
166
|
+
i = DOM_PARSER_RE.lastIndex - token[0].length;
|
|
167
|
+
if (parent.children.length > 0) {
|
|
168
|
+
parent.children[0].value += token[0];
|
|
169
|
+
}
|
|
170
|
+
continue;
|
|
171
|
+
} else if (bStart === '<!--') {
|
|
172
|
+
i = DOM_PARSER_RE.lastIndex - token[0].length;
|
|
173
|
+
if (RAW_TAGS.has(parent.name)) {
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
tag = {
|
|
177
|
+
type: COMMENT_NODE,
|
|
178
|
+
value: bText,
|
|
179
|
+
parent: parent,
|
|
180
|
+
loc: [{
|
|
181
|
+
start: i,
|
|
182
|
+
end: i + bStart.length
|
|
183
|
+
}, {
|
|
184
|
+
start: DOM_PARSER_RE.lastIndex - bEnd.length,
|
|
185
|
+
end: DOM_PARSER_RE.lastIndex
|
|
186
|
+
}]
|
|
187
|
+
};
|
|
188
|
+
tags.push(tag);
|
|
189
|
+
tag.parent.children.push(tag);
|
|
190
|
+
} else if (bStart === '<!') {
|
|
191
|
+
i = DOM_PARSER_RE.lastIndex - token[0].length;
|
|
192
|
+
tag = {
|
|
193
|
+
type: DOCTYPE_NODE,
|
|
194
|
+
value: bText,
|
|
195
|
+
parent: parent,
|
|
196
|
+
loc: [{
|
|
197
|
+
start: i,
|
|
198
|
+
end: i + bStart.length
|
|
199
|
+
}, {
|
|
200
|
+
start: DOM_PARSER_RE.lastIndex - bEnd.length,
|
|
201
|
+
end: DOM_PARSER_RE.lastIndex
|
|
202
|
+
}]
|
|
203
|
+
};
|
|
204
|
+
// commitTextNode();
|
|
205
|
+
tags.push(tag);
|
|
206
|
+
tag.parent.children.push(tag);
|
|
207
|
+
} else if (token[1] !== '/') {
|
|
208
|
+
commitTextNode();
|
|
209
|
+
if (RAW_TAGS.has(parent.name)) {
|
|
210
|
+
lastIndex = DOM_PARSER_RE.lastIndex;
|
|
211
|
+
commitTextNode();
|
|
212
|
+
continue;
|
|
213
|
+
} else {
|
|
214
|
+
tag = {
|
|
215
|
+
type: ELEMENT_NODE,
|
|
216
|
+
name: token[2] + '',
|
|
217
|
+
attributes: splitAttrs(token[3]),
|
|
218
|
+
parent,
|
|
219
|
+
children: [],
|
|
220
|
+
loc: [{
|
|
221
|
+
start: DOM_PARSER_RE.lastIndex - token[0].length,
|
|
222
|
+
end: DOM_PARSER_RE.lastIndex
|
|
223
|
+
}]
|
|
224
|
+
};
|
|
225
|
+
tags.push(tag);
|
|
226
|
+
tag.parent.children.push(tag);
|
|
227
|
+
if (token[4] && token[4].indexOf('/') > -1 || VOID_TAGS.has(tag.name)) {
|
|
228
|
+
tag.loc[1] = tag.loc[0];
|
|
229
|
+
tag.isSelfClosingTag = true;
|
|
230
|
+
} else {
|
|
231
|
+
parent = tag;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
} else {
|
|
235
|
+
commitTextNode();
|
|
236
|
+
// Close parent node if end-tag matches
|
|
237
|
+
if (token[2] + '' === parent.name) {
|
|
238
|
+
tag = parent;
|
|
239
|
+
parent = tag.parent;
|
|
240
|
+
tag.loc.push({
|
|
241
|
+
start: DOM_PARSER_RE.lastIndex - token[0].length,
|
|
242
|
+
end: DOM_PARSER_RE.lastIndex
|
|
243
|
+
});
|
|
244
|
+
text = str.substring(tag.loc[0].end, tag.loc[1].start);
|
|
245
|
+
if (tag.children.length === 0) {
|
|
246
|
+
tag.children.push({
|
|
247
|
+
type: TEXT_NODE,
|
|
248
|
+
value: text,
|
|
249
|
+
parent
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
// account for abuse of self-closing tags when an end-tag is also provided:
|
|
254
|
+
else if (token[2] + '' === tags[tags.length - 1].name && tags[tags.length - 1].isSelfClosingTag === true) {
|
|
255
|
+
tag = tags[tags.length - 1];
|
|
256
|
+
tag.loc.push({
|
|
257
|
+
start: DOM_PARSER_RE.lastIndex - token[0].length,
|
|
258
|
+
end: DOM_PARSER_RE.lastIndex
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
lastIndex = DOM_PARSER_RE.lastIndex;
|
|
263
|
+
}
|
|
264
|
+
text = str.slice(lastIndex);
|
|
265
|
+
parent.children.push({
|
|
266
|
+
type: TEXT_NODE,
|
|
267
|
+
value: text,
|
|
268
|
+
parent
|
|
269
|
+
});
|
|
270
|
+
return doc;
|
|
271
|
+
}
|
|
272
|
+
const HTMLString = Symbol('HTMLString');
|
|
273
|
+
const AttrString = Symbol('AttrString');
|
|
274
|
+
const RenderFn = Symbol('RenderFn');
|
|
275
|
+
function mark(str, tags = [HTMLString]) {
|
|
276
|
+
const v = {
|
|
277
|
+
value: str
|
|
278
|
+
};
|
|
279
|
+
for (const tag of tags) {
|
|
280
|
+
Object.defineProperty(v, tag, {
|
|
281
|
+
value: true,
|
|
282
|
+
enumerable: false,
|
|
283
|
+
writable: false
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
return v;
|
|
287
|
+
}
|
|
288
|
+
const ESCAPE_CHARS = {
|
|
289
|
+
'&': '&',
|
|
290
|
+
'<': '<',
|
|
291
|
+
'>': '>'
|
|
292
|
+
};
|
|
293
|
+
function escapeHTML(str) {
|
|
294
|
+
return str.replace(/[&<>]/g, c => ESCAPE_CHARS[c] || c);
|
|
295
|
+
}
|
|
296
|
+
function attrs(attributes) {
|
|
297
|
+
let attrStr = '';
|
|
298
|
+
for (const [key, value] of Object.entries(attributes)) {
|
|
299
|
+
attrStr += ` ${key}="${value}"`;
|
|
300
|
+
}
|
|
301
|
+
return mark(attrStr, [HTMLString, AttrString]);
|
|
302
|
+
}
|
|
303
|
+
function renderElement(node) {
|
|
304
|
+
const {
|
|
305
|
+
name,
|
|
306
|
+
attributes = {}
|
|
307
|
+
} = node;
|
|
308
|
+
const children = node.children.map(child => render(child)).join('');
|
|
309
|
+
if (RenderFn in node) {
|
|
310
|
+
const value = node[RenderFn](attributes, mark(children));
|
|
311
|
+
if (value && value[HTMLString]) return value.value;
|
|
312
|
+
return escapeHTML(String(value));
|
|
313
|
+
}
|
|
314
|
+
if (name === Fragment) return children;
|
|
315
|
+
if (VOID_TAGS.has(name)) {
|
|
316
|
+
return `<${node.name}${attrs(attributes).value}>`;
|
|
317
|
+
}
|
|
318
|
+
return `<${node.name}${attrs(attributes).value}>${children}</${node.name}>`;
|
|
319
|
+
}
|
|
320
|
+
function render(node) {
|
|
321
|
+
switch (node.type) {
|
|
322
|
+
case DOCUMENT_NODE:
|
|
323
|
+
return node.children.map(child => render(child)).join('');
|
|
324
|
+
case ELEMENT_NODE:
|
|
325
|
+
return renderElement(node);
|
|
326
|
+
case TEXT_NODE:
|
|
327
|
+
return `${node.value}`;
|
|
328
|
+
case COMMENT_NODE:
|
|
329
|
+
return `<!--${node.value}-->`;
|
|
330
|
+
case DOCTYPE_NODE:
|
|
331
|
+
return `<!${node.value}>`;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
336
|
+
|
|
337
|
+
const pipe = (arg, firstFn, ...fns) => fns.reduce((acc, fn) => fn(acc), firstFn(arg));
|
|
338
|
+
|
|
339
|
+
const ssrSpread = (children, attributes) => {
|
|
340
|
+
if (isJSXElement(children)) return children;
|
|
341
|
+
const {
|
|
342
|
+
t
|
|
343
|
+
} = children;
|
|
344
|
+
const ast = parse(t);
|
|
345
|
+
const [node] = ast.children;
|
|
346
|
+
const mergedAttributes = Object.assign({}, attributes, {
|
|
347
|
+
class: [attributes?.class, node.attributes.class].filter(Boolean).join(' '),
|
|
348
|
+
style: mergeStyle(attributes.style, node.attributes.style)
|
|
349
|
+
});
|
|
350
|
+
const ssrAttributes = pipe(mergedAttributes, filterEmptyValues, filterFunctionValues, filterBooleanAttributeValues);
|
|
351
|
+
Object.assign(node.attributes, ssrAttributes);
|
|
352
|
+
return {
|
|
353
|
+
t: render(ast)
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
const isJSXElement = children => !Object.hasOwnProperty.call(children, 't');
|
|
357
|
+
|
|
358
|
+
function withAsChild(Component) {
|
|
359
|
+
return function jsx(props) {
|
|
360
|
+
const [localProps, restProps] = splitProps(props, ['asChild', 'children']);
|
|
361
|
+
if (!localProps.asChild) {
|
|
362
|
+
return createComponent(Dynamic, mergeProps$1({
|
|
363
|
+
component: Component
|
|
364
|
+
}, restProps, {
|
|
365
|
+
get children() {
|
|
366
|
+
return localProps.children;
|
|
367
|
+
}
|
|
368
|
+
}));
|
|
369
|
+
}
|
|
370
|
+
const getChildren = children(() => ssrSpread(localProps.children, restProps));
|
|
371
|
+
createEffect(() => {
|
|
372
|
+
const children = getChildren();
|
|
373
|
+
if (children instanceof HTMLElement) {
|
|
374
|
+
spread(children, restProps);
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
return getChildren;
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function jsxFactory() {
|
|
381
|
+
const cache = new Map();
|
|
382
|
+
return new Proxy(withAsChild, {
|
|
383
|
+
apply(target, thisArg, argArray) {
|
|
384
|
+
return withAsChild(argArray[0]);
|
|
385
|
+
},
|
|
386
|
+
get(_, element) {
|
|
387
|
+
const asElement = element;
|
|
388
|
+
if (!cache.has(asElement)) {
|
|
389
|
+
cache.set(asElement, withAsChild(asElement));
|
|
390
|
+
}
|
|
391
|
+
return cache.get(asElement);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
const ark = jsxFactory();
|
|
396
|
+
|
|
397
|
+
function getErrorMessage(hook, provider) {
|
|
398
|
+
return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
|
|
399
|
+
}
|
|
400
|
+
function createContext(options = {}) {
|
|
401
|
+
const {
|
|
402
|
+
strict = true,
|
|
403
|
+
hookName = 'useContext',
|
|
404
|
+
providerName = 'Provider',
|
|
405
|
+
errorMessage
|
|
406
|
+
} = options;
|
|
407
|
+
const Context = createContext$1(undefined);
|
|
408
|
+
function useContext$1() {
|
|
409
|
+
const context = useContext(Context);
|
|
410
|
+
if (!context && strict) {
|
|
411
|
+
const error = new Error(errorMessage ?? getErrorMessage(hookName, providerName));
|
|
412
|
+
error.name = 'ContextError';
|
|
413
|
+
Error.captureStackTrace?.(error, useContext$1);
|
|
414
|
+
throw error;
|
|
415
|
+
}
|
|
416
|
+
return context;
|
|
417
|
+
}
|
|
418
|
+
return [Context.Provider, useContext$1, Context];
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
const [AccordionProvider, useAccordionContext] = createContext({
|
|
422
|
+
hookName: 'useAccordionContext',
|
|
423
|
+
providerName: '<AccordionProvider />'
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
const [EnvironmentProvider, useEnvironmentContext] = createContext({
|
|
427
|
+
hookName: 'useEnvironmentContext',
|
|
428
|
+
providerName: '<EnvironmentProvider />',
|
|
429
|
+
strict: false
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
const _tmpl$$a = /*#__PURE__*/template(`<span hidden>`);
|
|
433
|
+
const Environment$1 = props => {
|
|
434
|
+
// eslint-disable-next-line prefer-const
|
|
435
|
+
let spanRef = undefined;
|
|
436
|
+
const currentEnv = createMemo(() => () => props.value ?? spanRef?.ownerDocument ?? document);
|
|
437
|
+
return createComponent(EnvironmentProvider, {
|
|
438
|
+
get value() {
|
|
439
|
+
return currentEnv();
|
|
440
|
+
},
|
|
441
|
+
get children() {
|
|
442
|
+
return [memo(() => props.children), memo(() => memo(() => !!!props.value)() && (() => {
|
|
443
|
+
const _el$ = _tmpl$$a();
|
|
444
|
+
const _ref$ = spanRef;
|
|
445
|
+
typeof _ref$ === "function" ? use(_ref$, _el$) : spanRef = _el$;
|
|
446
|
+
return _el$;
|
|
447
|
+
})())];
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
const Environment = Object.assign(Environment$1, {
|
|
453
|
+
Root: Environment$1
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
const useAccordion = props => {
|
|
457
|
+
const getRootNode = useEnvironmentContext();
|
|
458
|
+
const context = mergeProps$2({
|
|
459
|
+
id: createUniqueId(),
|
|
460
|
+
getRootNode
|
|
461
|
+
}, props);
|
|
462
|
+
const [state, send] = useMachine(accordion.machine(context), {
|
|
463
|
+
context
|
|
464
|
+
});
|
|
465
|
+
return createMemo(() => accordion.connect(state, send, normalizeProps));
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
const Accordion$1 = props => {
|
|
469
|
+
const [params, localProps] = createSplitProps()(props, ['collapsible', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'multiple', 'onFocusChange', 'onValueChange', 'orientation', 'value']);
|
|
470
|
+
const api = useAccordion(params);
|
|
471
|
+
const rootProps = mergeProps$2(() => api().rootProps, localProps);
|
|
472
|
+
return createComponent(AccordionProvider, {
|
|
473
|
+
value: api,
|
|
474
|
+
get children() {
|
|
475
|
+
return createComponent(ark.div, rootProps);
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
const isFunction = value => typeof value === 'function';
|
|
481
|
+
const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
|
482
|
+
|
|
483
|
+
const [AccordionItemProvider, useAccordionItemContext] = createContext({
|
|
484
|
+
hookName: 'useAccordionItemContext',
|
|
485
|
+
providerName: '<AccordionItemProvider />'
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
const AccordionItem = props => {
|
|
489
|
+
const [itemProps, restProps] = createSplitProps()(props, ['value', 'disabled']);
|
|
490
|
+
const api = useAccordionContext();
|
|
491
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), restProps);
|
|
492
|
+
const accordionItem = mergeProps$2(() => api().getItemState(itemProps), itemProps);
|
|
493
|
+
const getChildren = () => runIfFn(restProps.children, () => api().getItemState(itemProps));
|
|
494
|
+
return createComponent(AccordionItemProvider, {
|
|
495
|
+
value: accordionItem,
|
|
496
|
+
get children() {
|
|
497
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
498
|
+
get children() {
|
|
499
|
+
return getChildren();
|
|
500
|
+
}
|
|
501
|
+
}));
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
const usePresence = props => {
|
|
507
|
+
const [state, send] = useMachine(presence.machine(props), {
|
|
508
|
+
context: props
|
|
509
|
+
});
|
|
510
|
+
return createMemo(() => presence.connect(state, send, normalizeProps));
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
const Presence$1 = props => {
|
|
514
|
+
const [presenceProps, localProps] = createSplitProps()(props, ['onExitComplete', 'present']);
|
|
515
|
+
const api = usePresence(presenceProps);
|
|
516
|
+
const [wasEverPresent, setWasEverPresent] = createSignal(false);
|
|
517
|
+
const getChildren = children(() => props.children);
|
|
518
|
+
createEffect(() => {
|
|
519
|
+
const isPresent = api().isPresent;
|
|
520
|
+
if (isPresent) setWasEverPresent(true);
|
|
521
|
+
const children = getChildren();
|
|
522
|
+
if (children instanceof HTMLElement) {
|
|
523
|
+
api().setNode(children);
|
|
524
|
+
spread$1(children, {
|
|
525
|
+
['data-state']: presenceProps.present ? 'open' : 'closed',
|
|
526
|
+
hidden: !api().isPresent
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
return memo((() => {
|
|
531
|
+
const _c$ = memo(() => !!(!api().isPresent && !wasEverPresent() && localProps.lazyMount || localProps.unmountOnExit && !api().isPresent && wasEverPresent()));
|
|
532
|
+
return () => _c$() ? null : getChildren();
|
|
533
|
+
})());
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
function splitPresenceProps(props) {
|
|
537
|
+
return createSplitProps()(props, ['lazyMount', 'onExitComplete', 'present', 'unmountOnExit']);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
const Presence = Object.assign(Presence$1, {
|
|
541
|
+
Root: Presence$1
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
const AccordionItemContent = props => {
|
|
545
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
546
|
+
const api = useAccordionContext();
|
|
547
|
+
const accordionItem = useAccordionItemContext();
|
|
548
|
+
const contentProps = mergeProps$2(() => api().getItemContentProps(accordionItem), localProps);
|
|
549
|
+
return createComponent(Presence, mergeProps$1({
|
|
550
|
+
get present() {
|
|
551
|
+
return accordionItem.isOpen;
|
|
552
|
+
}
|
|
553
|
+
}, presenceProps, {
|
|
554
|
+
get children() {
|
|
555
|
+
return createComponent(ark.div, contentProps);
|
|
556
|
+
}
|
|
557
|
+
}));
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
const AccordionItemIndicator = props => {
|
|
561
|
+
const api = useAccordionContext();
|
|
562
|
+
const itemParams = useAccordionItemContext();
|
|
563
|
+
const mergedProps = mergeProps$2(() => api().getItemIndicatorProps(itemParams), props);
|
|
564
|
+
return createComponent(ark.div, mergedProps);
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
const AccordionItemTrigger = props => {
|
|
568
|
+
const api = useAccordionContext();
|
|
569
|
+
const item = useAccordionItemContext();
|
|
570
|
+
const mergedProps = mergeProps$2(() => api().getItemTriggerProps(item), props);
|
|
571
|
+
return createComponent(ark.button, mergedProps);
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
const Accordion = Object.assign(Accordion$1, {
|
|
575
|
+
Root: Accordion$1,
|
|
576
|
+
Item: AccordionItem,
|
|
577
|
+
ItemContent: AccordionItemContent,
|
|
578
|
+
ItemIndicator: AccordionItemIndicator,
|
|
579
|
+
ItemTrigger: AccordionItemTrigger
|
|
580
|
+
});
|
|
581
|
+
|
|
582
|
+
const [AvatarProvider, useAvatarContext] = createContext({
|
|
583
|
+
hookName: 'useAvatarContext',
|
|
584
|
+
providerName: '<AvatarProvider />'
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
const useAvatar = props => {
|
|
588
|
+
const getRootNode = useEnvironmentContext();
|
|
589
|
+
const context = mergeProps$2({
|
|
590
|
+
id: createUniqueId(),
|
|
591
|
+
getRootNode
|
|
592
|
+
}, props);
|
|
593
|
+
const [state, send] = useMachine(avatar.machine(context), {
|
|
594
|
+
context
|
|
595
|
+
});
|
|
596
|
+
return createMemo(() => avatar.connect(state, send, normalizeProps));
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
const Avatar$1 = props => {
|
|
600
|
+
const [params, localProps] = createSplitProps()(props, ['dir', 'getRootNode', 'id', 'onLoadingStatusChange']);
|
|
601
|
+
const api = useAvatar(params);
|
|
602
|
+
const rootProps = mergeProps$2(() => api().rootProps, localProps);
|
|
603
|
+
return createComponent(AvatarProvider, {
|
|
604
|
+
value: api,
|
|
605
|
+
get children() {
|
|
606
|
+
return createComponent(ark.div, rootProps);
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
const AvatarFallback = props => {
|
|
612
|
+
const avatar = useAvatarContext();
|
|
613
|
+
const fallbackProps = mergeProps$2(() => avatar().fallbackProps, props);
|
|
614
|
+
return createComponent(ark.span, fallbackProps);
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
const AvatarImage = props => {
|
|
618
|
+
const avatar = useAvatarContext();
|
|
619
|
+
const imageProps = mergeProps$2(() => avatar().imageProps, props);
|
|
620
|
+
return createComponent(ark.img, imageProps);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
const Avatar = Object.assign(Avatar$1, {
|
|
624
|
+
Root: Avatar$1,
|
|
625
|
+
Fallback: AvatarFallback,
|
|
626
|
+
Image: AvatarImage
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
const [CarouselProvider, useCarouselContext] = createContext({
|
|
630
|
+
hookName: 'useCarouselContext',
|
|
631
|
+
providerName: '<CarouselProvider />'
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
const useCarousel = props => {
|
|
635
|
+
const getRootNode = useEnvironmentContext();
|
|
636
|
+
const context = mergeProps$2({
|
|
637
|
+
id: createUniqueId(),
|
|
638
|
+
getRootNode
|
|
639
|
+
}, props);
|
|
640
|
+
const [state, send] = useMachine(carousel.machine(context), {
|
|
641
|
+
context
|
|
642
|
+
});
|
|
643
|
+
return createMemo(() => carousel.connect(state, send, normalizeProps));
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
const Carousel$1 = props => {
|
|
647
|
+
const [useCarouselProps, localProps] = createSplitProps()(props, ['align', 'dir', 'getRootNode', 'id', 'ids', 'index', 'loop', 'onIndexChange', 'orientation', 'slidesPerView', 'spacing']);
|
|
648
|
+
const carousel = useCarousel(useCarouselProps);
|
|
649
|
+
const rootProps = mergeProps$2(() => carousel().rootProps, localProps);
|
|
650
|
+
return createComponent(CarouselProvider, {
|
|
651
|
+
value: carousel,
|
|
652
|
+
get children() {
|
|
653
|
+
return createComponent(ark.div, rootProps);
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
const CarouselControl = props => {
|
|
659
|
+
const mergedProps = mergeProps$2(() => carouselAnatomy.build().control.attrs, props);
|
|
660
|
+
return createComponent(ark.div, mergedProps);
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
const CarouselIndicator = props => {
|
|
664
|
+
const [indicatorProps, localProps] = createSplitProps()(props, ['index', 'readOnly']);
|
|
665
|
+
const api = useCarouselContext();
|
|
666
|
+
const mergedProps = mergeProps$2(() => api().getIndicatorProps(indicatorProps), localProps);
|
|
667
|
+
return createComponent(ark.button, mergedProps);
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
const CarouselIndicatorGroup = props => {
|
|
671
|
+
const api = useCarouselContext();
|
|
672
|
+
const mergedProps = mergeProps$2(() => api().indicatorGroupProps, props);
|
|
673
|
+
return createComponent(ark.div, mergedProps);
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
const CarouselNextTrigger = props => {
|
|
677
|
+
const api = useCarouselContext();
|
|
678
|
+
const mergedProps = mergeProps$2(() => api().nextTriggerProps, props);
|
|
679
|
+
return createComponent(ark.button, mergedProps);
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
const CarouselPrevTrigger = props => {
|
|
683
|
+
const api = useCarouselContext();
|
|
684
|
+
const mergedProps = mergeProps$2(() => api().prevTriggerProps, props);
|
|
685
|
+
return createComponent(ark.button, mergedProps);
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
const CarouselItem = props => {
|
|
689
|
+
const [slideParams, localProps] = createSplitProps()(props, ['index']);
|
|
690
|
+
const api = useCarouselContext();
|
|
691
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(slideParams), localProps);
|
|
692
|
+
return createComponent(ark.div, mergedProps);
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
const CarouselItemGroup = props => {
|
|
696
|
+
const api = useCarouselContext();
|
|
697
|
+
const mergedProps = mergeProps$2(() => api().itemGroupProps, props);
|
|
698
|
+
return createComponent(ark.div, mergedProps);
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
const CarouselViewport = props => {
|
|
702
|
+
const api = useCarouselContext();
|
|
703
|
+
const mergedProps = mergeProps$2(() => api().viewportProps, props);
|
|
704
|
+
return createComponent(ark.div, mergedProps);
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
const Carousel = Object.assign(Carousel$1, {
|
|
708
|
+
Root: Carousel$1,
|
|
709
|
+
Control: CarouselControl,
|
|
710
|
+
Indicator: CarouselIndicator,
|
|
711
|
+
IndicatorGroup: CarouselIndicatorGroup,
|
|
712
|
+
NextTrigger: CarouselNextTrigger,
|
|
713
|
+
PrevTrigger: CarouselPrevTrigger,
|
|
714
|
+
Item: CarouselItem,
|
|
715
|
+
ItemGroup: CarouselItemGroup,
|
|
716
|
+
Viewport: CarouselViewport
|
|
717
|
+
});
|
|
718
|
+
|
|
719
|
+
const [CheckboxProvider, useCheckboxContext] = createContext({
|
|
720
|
+
hookName: 'useCheckboxContext',
|
|
721
|
+
providerName: '<CheckboxProvider />'
|
|
722
|
+
});
|
|
723
|
+
|
|
724
|
+
const useCheckbox = props => {
|
|
725
|
+
const getRootNode = useEnvironmentContext();
|
|
726
|
+
const context = mergeProps$2({
|
|
727
|
+
id: createUniqueId(),
|
|
728
|
+
getRootNode
|
|
729
|
+
}, props);
|
|
730
|
+
const [state, send] = useMachine(checkbox.machine(context), {
|
|
731
|
+
context
|
|
732
|
+
});
|
|
733
|
+
return createMemo(() => checkbox.connect(state, send, normalizeProps));
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
const Checkbox$1 = props => {
|
|
737
|
+
const [useCheckboxProps, labelprops] = createSplitProps()(props, ['checked', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'name', 'onCheckedChange', 'required', 'value']);
|
|
738
|
+
const api = useCheckbox(useCheckboxProps);
|
|
739
|
+
const mergedProps = mergeProps$2(() => api().rootProps, labelprops);
|
|
740
|
+
const getChildren = () => runIfFn(props.children, api);
|
|
741
|
+
return createComponent(CheckboxProvider, {
|
|
742
|
+
value: api,
|
|
743
|
+
get children() {
|
|
744
|
+
return createComponent(ark.label, mergeProps$1(mergedProps, {
|
|
745
|
+
get children() {
|
|
746
|
+
return getChildren();
|
|
747
|
+
}
|
|
748
|
+
}));
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
const _tmpl$$9 = /*#__PURE__*/template(`<input>`);
|
|
754
|
+
const CheckboxControl = props => {
|
|
755
|
+
const api = useCheckboxContext();
|
|
756
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
757
|
+
return [createComponent(ark.div, mergedProps), (() => {
|
|
758
|
+
const _el$ = _tmpl$$9();
|
|
759
|
+
spread$1(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
760
|
+
return _el$;
|
|
761
|
+
})()];
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
const CheckboxIndicator = props => {
|
|
765
|
+
const api = useCheckboxContext();
|
|
766
|
+
const mergedProps = mergeProps$2(() => api().indicatorProps, props);
|
|
767
|
+
return createComponent(ark.div, mergedProps);
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
const CheckboxLabel = props => {
|
|
771
|
+
const checkbox = useCheckboxContext();
|
|
772
|
+
const labelProps = mergeProps$2(() => checkbox().labelProps, props);
|
|
773
|
+
return createComponent(ark.span, labelProps);
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
const Checkbox = Object.assign(Checkbox$1, {
|
|
777
|
+
Root: Checkbox$1,
|
|
778
|
+
Control: CheckboxControl,
|
|
779
|
+
Label: CheckboxLabel,
|
|
780
|
+
Indicator: CheckboxIndicator
|
|
781
|
+
});
|
|
782
|
+
|
|
783
|
+
const [ColorPickerProvider, useColorPickerContext] = createContext({
|
|
784
|
+
hookName: 'useColorPickerContext',
|
|
785
|
+
providerName: '<ColorPickerProvider />'
|
|
786
|
+
});
|
|
787
|
+
|
|
788
|
+
const useColorPicker = props => {
|
|
789
|
+
const [local, rest] = splitProps(props, ['value']);
|
|
790
|
+
const getRootNode = useEnvironmentContext();
|
|
791
|
+
const context = mergeProps$2(() => ({
|
|
792
|
+
id: createUniqueId(),
|
|
793
|
+
getRootNode,
|
|
794
|
+
value: local.value ? colorPicker.parse(local.value) : undefined
|
|
795
|
+
}), rest);
|
|
796
|
+
const [state, send] = useMachine(colorPicker.machine(context), {
|
|
797
|
+
context
|
|
798
|
+
});
|
|
799
|
+
return createMemo(() => colorPicker.connect(state, send, normalizeProps));
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
const _tmpl$$8 = /*#__PURE__*/template(`<input>`);
|
|
803
|
+
const ColorPicker$1 = props => {
|
|
804
|
+
const [colorPickerProps, localProps] = createSplitProps()(props, ['autoFocus', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'initialFocusEl', 'name', 'name', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'onValueChangeEnd', 'open', 'positioning', 'readOnly', 'value']);
|
|
805
|
+
const api = useColorPicker(colorPickerProps);
|
|
806
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
807
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
808
|
+
return createComponent(ColorPickerProvider, {
|
|
809
|
+
value: api,
|
|
810
|
+
get children() {
|
|
811
|
+
return [createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
812
|
+
get children() {
|
|
813
|
+
return getChildren();
|
|
814
|
+
}
|
|
815
|
+
})), (() => {
|
|
816
|
+
const _el$ = _tmpl$$8();
|
|
817
|
+
spread$1(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
818
|
+
return _el$;
|
|
819
|
+
})()];
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
const [ColorPickerAreaProvider, useColorPickerAreaContext] = createContext({
|
|
825
|
+
hookName: 'useColorPickerAreaContext',
|
|
826
|
+
providerName: '<ColorPickerAreaProvider />'
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
const ColorPickerArea = props => {
|
|
830
|
+
const [channelProps, divprops] = createSplitProps()(props, ['xChannel', 'yChannel']);
|
|
831
|
+
const api = useColorPickerContext();
|
|
832
|
+
const mergedProps = mergeProps$2(() => api().getAreaProps(channelProps), divprops);
|
|
833
|
+
return createComponent(ColorPickerAreaProvider, {
|
|
834
|
+
value: channelProps,
|
|
835
|
+
get children() {
|
|
836
|
+
return createComponent(ark.div, mergedProps);
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
const ColorPickerAreaBackground = props => {
|
|
842
|
+
const colorAreaProps = useColorPickerAreaContext();
|
|
843
|
+
const api = useColorPickerContext();
|
|
844
|
+
const mergedProps = mergeProps$2(() => api().getAreaBackgroundProps(colorAreaProps), props);
|
|
845
|
+
return createComponent(ark.div, mergedProps);
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
const ColorPickerAreaThumb = props => {
|
|
849
|
+
const colorAreaProps = useColorPickerAreaContext();
|
|
850
|
+
const api = useColorPickerContext();
|
|
851
|
+
const mergedProps = mergeProps$2(() => api().getAreaThumbProps(colorAreaProps), props);
|
|
852
|
+
return createComponent(ark.div, mergedProps);
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
const ColorPickerChannelInput = props => {
|
|
856
|
+
const [channelProps, inputProps] = createSplitProps()(props, ['channel', 'orientation']);
|
|
857
|
+
const api = useColorPickerContext();
|
|
858
|
+
const mergedProps = mergeProps$2(() => api().getChannelInputProps(channelProps), inputProps);
|
|
859
|
+
return createComponent(ark.input, mergedProps);
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
const [ColorPickerChannelSliderProvider, useColorPickerChannelSliderContext] = createContext({
|
|
863
|
+
hookName: 'useColorPickerChannelSliderContext',
|
|
864
|
+
providerName: '<ColorPickerChannelSliderProvider />'
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
const ColorPickerChannelSlider = props => {
|
|
868
|
+
const [channelProps, localProps] = createSplitProps()(props, ['channel', 'orientation']);
|
|
869
|
+
const api = useColorPickerContext();
|
|
870
|
+
const mergedProps = mergeProps$2(() => api().getChannelSliderProps(channelProps), localProps);
|
|
871
|
+
return createComponent(ColorPickerChannelSliderProvider, {
|
|
872
|
+
value: channelProps,
|
|
873
|
+
get children() {
|
|
874
|
+
return createComponent(ark.div, mergedProps);
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
const ColorPickerChannelSliderThumb = props => {
|
|
880
|
+
const sliderContext = useColorPickerChannelSliderContext();
|
|
881
|
+
const api = useColorPickerContext();
|
|
882
|
+
const mergedProps = mergeProps$2(() => api().getChannelSliderThumbProps(sliderContext), props);
|
|
883
|
+
return createComponent(ark.div, mergedProps);
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
const ColorPickerChannelSliderTrack = props => {
|
|
887
|
+
const sliderContext = useColorPickerChannelSliderContext();
|
|
888
|
+
const api = useColorPickerContext();
|
|
889
|
+
const mergedProps = mergeProps$2(() => api().getChannelSliderTrackProps(sliderContext), props);
|
|
890
|
+
return createComponent(ark.div, mergedProps);
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
const ColorPickerContent = props => {
|
|
894
|
+
const api = useColorPickerContext();
|
|
895
|
+
const mergedProps = mergeProps$2(() => api().contentProps, props);
|
|
896
|
+
return createComponent(ark.div, mergedProps);
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
const ColorPickerControl = props => {
|
|
900
|
+
const api = useColorPickerContext();
|
|
901
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
902
|
+
return createComponent(ark.div, mergedProps);
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
const ColorPickerEyeDropperTrigger = props => {
|
|
906
|
+
const api = useColorPickerContext();
|
|
907
|
+
const mergedProps = mergeProps$2(() => api().eyeDropperTriggerProps, props);
|
|
908
|
+
return createComponent(ark.button, mergedProps);
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
const ColorPickerLabel = props => {
|
|
912
|
+
const api = useColorPickerContext();
|
|
913
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
914
|
+
return createComponent(ark.label, mergedProps);
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
const ColorPickerPositioner = props => {
|
|
918
|
+
const api = useColorPickerContext();
|
|
919
|
+
const mergedProps = mergeProps$2(() => api().positionerProps, props);
|
|
920
|
+
return createComponent(ark.div, mergedProps);
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
const ColorPickerSwatch = props => {
|
|
924
|
+
const [colorSwatchProps, localProps] = createSplitProps()(props, ['respectAlpha', 'value']);
|
|
925
|
+
const api = useColorPickerContext();
|
|
926
|
+
const mergedProps = mergeProps$2(() => api().getSwatchProps(colorSwatchProps), localProps);
|
|
927
|
+
return createComponent(ark.div, mergedProps);
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
const ColorPickerSwatchGroup = props => {
|
|
931
|
+
const api = useColorPickerContext();
|
|
932
|
+
const mergedProps = mergeProps$2(() => api().swatchGroupProps, props);
|
|
933
|
+
return createComponent(ark.div, mergedProps);
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
const ColorPickerSwatchTrigger = props => {
|
|
937
|
+
const [triggerProps, localProps] = createSplitProps()(props, ['value']);
|
|
938
|
+
const api = useColorPickerContext();
|
|
939
|
+
const mergedProps = mergeProps$2(() => api().getSwatchTriggerProps(triggerProps), localProps);
|
|
940
|
+
return createComponent(ark.button, mergedProps);
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
const ColorPickerTransparencyGrid = props => {
|
|
944
|
+
const [gridProps, localProps] = createSplitProps()(props, ['size']);
|
|
945
|
+
const api = useColorPickerContext();
|
|
946
|
+
const mergedProps = mergeProps$2(() => api().getTransparencyGridProps(gridProps), localProps);
|
|
947
|
+
return createComponent(ark.div, mergedProps);
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
const ColorPickerTrigger = props => {
|
|
951
|
+
const api = useColorPickerContext();
|
|
952
|
+
const mergedProps = mergeProps$2(() => api().triggerProps, props);
|
|
953
|
+
return createComponent(ark.button, mergedProps);
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
const ColorPicker = Object.assign(ColorPicker$1, {
|
|
957
|
+
Root: ColorPicker$1,
|
|
958
|
+
Area: ColorPickerArea,
|
|
959
|
+
AreaBackground: ColorPickerAreaBackground,
|
|
960
|
+
AreaThumb: ColorPickerAreaThumb,
|
|
961
|
+
ChannelInput: ColorPickerChannelInput,
|
|
962
|
+
ChannelSlider: ColorPickerChannelSlider,
|
|
963
|
+
ChannelSliderThumb: ColorPickerChannelSliderThumb,
|
|
964
|
+
ChannelSliderTrack: ColorPickerChannelSliderTrack,
|
|
965
|
+
Content: ColorPickerContent,
|
|
966
|
+
Control: ColorPickerControl,
|
|
967
|
+
EyeDropperTrigger: ColorPickerEyeDropperTrigger,
|
|
968
|
+
Label: ColorPickerLabel,
|
|
969
|
+
Positioner: ColorPickerPositioner,
|
|
970
|
+
Swatch: ColorPickerSwatch,
|
|
971
|
+
SwatchGroup: ColorPickerSwatchGroup,
|
|
972
|
+
SwatchTrigger: ColorPickerSwatchTrigger,
|
|
973
|
+
TransparencyGrid: ColorPickerTransparencyGrid,
|
|
974
|
+
Trigger: ColorPickerTrigger
|
|
975
|
+
});
|
|
976
|
+
|
|
977
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
978
|
+
const [ComboboxProvider, useComboboxContext] = createContext({
|
|
979
|
+
hookName: 'useComboboxContext',
|
|
980
|
+
providerName: '<ComboboxProvider />'
|
|
981
|
+
});
|
|
982
|
+
|
|
983
|
+
const useCombobox = props => {
|
|
984
|
+
const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
985
|
+
const collection = combobox.collection(collectionOptions);
|
|
986
|
+
const getRootNode = useEnvironmentContext();
|
|
987
|
+
const context = mergeProps$2({
|
|
988
|
+
id: createUniqueId(),
|
|
989
|
+
getRootNode,
|
|
990
|
+
collection
|
|
991
|
+
}, rest);
|
|
992
|
+
const [state, send] = useMachine(combobox.machine(context), {
|
|
993
|
+
context
|
|
994
|
+
});
|
|
995
|
+
return createMemo(() => combobox.connect(state, send, normalizeProps));
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
const Combobox$1 = props => {
|
|
999
|
+
const [selectProps, localProps] = createSplitProps()(props, ['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']);
|
|
1000
|
+
const api = useCombobox(selectProps);
|
|
1001
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
1002
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
1003
|
+
return createComponent(ComboboxProvider, {
|
|
1004
|
+
value: api,
|
|
1005
|
+
get children() {
|
|
1006
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
1007
|
+
get children() {
|
|
1008
|
+
return getChildren();
|
|
1009
|
+
}
|
|
1010
|
+
}));
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
const ComboboxClearTrigger = props => {
|
|
1016
|
+
const combobox = useComboboxContext();
|
|
1017
|
+
const mergedProps = mergeProps$2(() => combobox().clearTriggerProps, props);
|
|
1018
|
+
return createComponent(ark.button, mergedProps);
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
const ComboboxContent = props => {
|
|
1022
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
1023
|
+
const api = useComboboxContext();
|
|
1024
|
+
const mergedProps = mergeProps$2(() => api().contentProps, localProps);
|
|
1025
|
+
return createComponent(Presence, mergeProps$1({
|
|
1026
|
+
get present() {
|
|
1027
|
+
return api().isOpen;
|
|
1028
|
+
}
|
|
1029
|
+
}, presenceProps, {
|
|
1030
|
+
get children() {
|
|
1031
|
+
return createComponent(ark.div, mergedProps);
|
|
1032
|
+
}
|
|
1033
|
+
}));
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
const ComboboxControl = props => {
|
|
1037
|
+
const combobox = useComboboxContext();
|
|
1038
|
+
const mergedProps = mergeProps$2(() => combobox().controlProps, props);
|
|
1039
|
+
return createComponent(ark.div, mergedProps);
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
const ComboboxInput = props => {
|
|
1043
|
+
const combobox = useComboboxContext();
|
|
1044
|
+
const mergedProps = mergeProps$2(() => combobox().inputProps, props);
|
|
1045
|
+
return createComponent(ark.input, mergedProps);
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
const [ComboboxItemProvider, useComboboxItemContext] = createContext({
|
|
1049
|
+
hookName: 'useComboboxItemContext',
|
|
1050
|
+
providerName: '<ComboboxItemProvider />'
|
|
1051
|
+
});
|
|
1052
|
+
|
|
1053
|
+
const ComboboxItem = props => {
|
|
1054
|
+
const [itemProps, localProps] = createSplitProps()(props, ['item']);
|
|
1055
|
+
const api = useComboboxContext();
|
|
1056
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), localProps);
|
|
1057
|
+
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
1058
|
+
return createComponent(ComboboxItemProvider, {
|
|
1059
|
+
value: itemProps,
|
|
1060
|
+
get children() {
|
|
1061
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
1062
|
+
get children() {
|
|
1063
|
+
return getChildren();
|
|
1064
|
+
}
|
|
1065
|
+
}));
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
const ComboboxItemGroup = props => {
|
|
1071
|
+
const [groupProps, localProps] = createSplitProps()(props, ['id']);
|
|
1072
|
+
const combobox = useComboboxContext();
|
|
1073
|
+
const mergedProps = mergeProps$2(() => combobox().getItemGroupProps(groupProps), localProps);
|
|
1074
|
+
return createComponent(ark.div, mergedProps);
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
const ComboboxItemGroupLabel = props => {
|
|
1078
|
+
const [labelProps, localProps] = createSplitProps()(props, ['htmlFor']);
|
|
1079
|
+
const api = useComboboxContext();
|
|
1080
|
+
const mergedProps = mergeProps$2(() => api().getItemGroupLabelProps(labelProps), localProps);
|
|
1081
|
+
return createComponent(ark.div, mergedProps);
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
const ComboboxItemIndicator = props => {
|
|
1085
|
+
const combobox = useComboboxContext();
|
|
1086
|
+
const itemProps = useComboboxItemContext();
|
|
1087
|
+
const mergedProps = mergeProps$2(() => combobox().getItemIndicatorProps(itemProps), props);
|
|
1088
|
+
return createComponent(ark.div, mergedProps);
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
const ComboboxItemText = props => {
|
|
1092
|
+
const api = useComboboxContext();
|
|
1093
|
+
const itemProps = useComboboxItemContext();
|
|
1094
|
+
const mergedProps = mergeProps$2(() => api().getItemTextProps(itemProps), props);
|
|
1095
|
+
return createComponent(ark.span, mergedProps);
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
const ComboboxLabel = props => {
|
|
1099
|
+
const combobox = useComboboxContext();
|
|
1100
|
+
const mergedProps = mergeProps$2(() => combobox().labelProps, props);
|
|
1101
|
+
return createComponent(ark.label, mergedProps);
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
const ComboboxPositioner = props => {
|
|
1105
|
+
const combobox = useComboboxContext();
|
|
1106
|
+
const mergedProps = mergeProps$2(() => combobox().positionerProps, props);
|
|
1107
|
+
return createComponent(ark.div, mergedProps);
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
const ComboboxTrigger = props => {
|
|
1111
|
+
const combobox = useComboboxContext();
|
|
1112
|
+
const mergedProps = mergeProps$2(() => combobox().triggerProps, props);
|
|
1113
|
+
return createComponent(ark.button, mergedProps);
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
const Combobox = Object.assign(Combobox$1, {
|
|
1117
|
+
Root: Combobox$1,
|
|
1118
|
+
ClearTrigger: ComboboxClearTrigger,
|
|
1119
|
+
Content: ComboboxContent,
|
|
1120
|
+
Control: ComboboxControl,
|
|
1121
|
+
Input: ComboboxInput,
|
|
1122
|
+
Item: ComboboxItem,
|
|
1123
|
+
ItemGroup: ComboboxItemGroup,
|
|
1124
|
+
ItemGroupLabel: ComboboxItemGroupLabel,
|
|
1125
|
+
ItemIndicator: ComboboxItemIndicator,
|
|
1126
|
+
ItemText: ComboboxItemText,
|
|
1127
|
+
Label: ComboboxLabel,
|
|
1128
|
+
Positioner: ComboboxPositioner,
|
|
1129
|
+
Trigger: ComboboxTrigger
|
|
1130
|
+
});
|
|
1131
|
+
|
|
1132
|
+
const [DatePickerProvider, useDatePickerContext] = createContext({
|
|
1133
|
+
hookName: 'useDatePickerContext',
|
|
1134
|
+
providerName: '<DatePickerProvider />'
|
|
1135
|
+
});
|
|
1136
|
+
|
|
1137
|
+
const useDatePicker = props => {
|
|
1138
|
+
const [local, rest] = splitProps(props, ['value', 'focusedValue']);
|
|
1139
|
+
const getRootNode = useEnvironmentContext();
|
|
1140
|
+
const context = mergeProps$2(() => ({
|
|
1141
|
+
id: createUniqueId(),
|
|
1142
|
+
getRootNode,
|
|
1143
|
+
focusedValue: local.focusedValue ? datePicker.parse(local.focusedValue) : undefined,
|
|
1144
|
+
value: local.value ? datePicker.parse(local.value) : undefined
|
|
1145
|
+
}), rest);
|
|
1146
|
+
const [state, send] = useMachine(datePicker.machine(context), {
|
|
1147
|
+
context
|
|
1148
|
+
});
|
|
1149
|
+
return createMemo(() => datePicker.connect(state, send, normalizeProps));
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
const DatePicker$1 = props => {
|
|
1153
|
+
const [datePickerProps, localProps] = createSplitProps()(props, ['dir', 'disabled', 'fixedWeeks', 'focusedValue', 'format', 'getRootNode', 'id', 'ids', 'inline', 'isDateUnavailable', 'isDateUnavailable', 'locale', 'max', 'messages', 'min', 'modal', 'name', 'numOfMonths', 'onFocusChange', 'onOpenChange', 'onValueChange', 'onViewChange', 'open', 'parse', 'positioning', 'readOnly', 'selectionMode', 'startOfWeek', 'timeZone', 'value', 'view']);
|
|
1154
|
+
const api = useDatePicker(datePickerProps);
|
|
1155
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
1156
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
1157
|
+
return createComponent(DatePickerProvider, {
|
|
1158
|
+
value: api,
|
|
1159
|
+
get children() {
|
|
1160
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
1161
|
+
get children() {
|
|
1162
|
+
return getChildren();
|
|
1163
|
+
}
|
|
1164
|
+
}));
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
const DatePickerClearTrigger = props => {
|
|
1170
|
+
const api = useDatePickerContext();
|
|
1171
|
+
const mergedProps = mergeProps$2(() => api().clearTriggerProps, props);
|
|
1172
|
+
return createComponent(ark.button, mergedProps);
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
const DatePickerContent = props => {
|
|
1176
|
+
const api = useDatePickerContext();
|
|
1177
|
+
const mergedProps = mergeProps$2(() => api().contentProps, props);
|
|
1178
|
+
return createComponent(ark.div, mergedProps);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
const DatePickerControl = props => {
|
|
1182
|
+
const api = useDatePickerContext();
|
|
1183
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
1184
|
+
return createComponent(ark.div, mergedProps);
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
const DatePickerInput = props => {
|
|
1188
|
+
const api = useDatePickerContext();
|
|
1189
|
+
const mergedProps = mergeProps$2(() => api().inputProps, props);
|
|
1190
|
+
return createComponent(ark.input, mergedProps);
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
const DatePickerLabel = props => {
|
|
1194
|
+
const api = useDatePickerContext();
|
|
1195
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
1196
|
+
return createComponent(ark.label, mergedProps);
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
const _tmpl$$7 = /*#__PURE__*/template(`<option>`);
|
|
1200
|
+
const DatePickerMonthSelect = props => {
|
|
1201
|
+
const api = useDatePickerContext();
|
|
1202
|
+
const mergedProps = mergeProps$2(() => api().monthSelectProps, props);
|
|
1203
|
+
return createComponent(ark.select, mergeProps$1(mergedProps, {
|
|
1204
|
+
get children() {
|
|
1205
|
+
return api().getMonths().map(month => (() => {
|
|
1206
|
+
const _el$ = _tmpl$$7();
|
|
1207
|
+
insert(_el$, () => month.label);
|
|
1208
|
+
effect(() => _el$.value = month.value);
|
|
1209
|
+
return _el$;
|
|
1210
|
+
})());
|
|
1211
|
+
}
|
|
1212
|
+
}));
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
const [DatePickerViewProvider, useDatePickerViewContext] = createContext({
|
|
1216
|
+
hookName: 'useDatePickerViewContext',
|
|
1217
|
+
providerName: '<DatePickerViewProvider />'
|
|
1218
|
+
});
|
|
1219
|
+
|
|
1220
|
+
const DatePickerNextTrigger = props => {
|
|
1221
|
+
const api = useDatePickerContext();
|
|
1222
|
+
const viewProps = useDatePickerViewContext();
|
|
1223
|
+
const mergedProps = mergeProps$2(() => api().getNextTriggerProps(viewProps), props);
|
|
1224
|
+
return createComponent(ark.button, mergedProps);
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
const DatePickerPositioner = props => {
|
|
1228
|
+
const api = useDatePickerContext();
|
|
1229
|
+
const mergedProps = mergeProps$2(() => api().positionerProps, props);
|
|
1230
|
+
return createComponent(ark.div, mergedProps);
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
const DatePickerPrevTrigger = props => {
|
|
1234
|
+
const api = useDatePickerContext();
|
|
1235
|
+
const viewProps = useDatePickerViewContext();
|
|
1236
|
+
const mergedProps = mergeProps$2(() => api().getPrevTriggerProps(viewProps), props);
|
|
1237
|
+
return createComponent(ark.button, mergedProps);
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
const DatePickerRangeText = props => {
|
|
1241
|
+
const api = useDatePickerContext();
|
|
1242
|
+
const mergedProps = mergeProps$2(() => api().rangeTextProps, props);
|
|
1243
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
1244
|
+
get children() {
|
|
1245
|
+
return api().visibleRangeText.start;
|
|
1246
|
+
}
|
|
1247
|
+
}));
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
const [DatePickerTableProvider, useDatePickerTableContext] = createContext({
|
|
1251
|
+
hookName: 'useDatePickerTableContext',
|
|
1252
|
+
providerName: '<DatePickerTableProvider />'
|
|
1253
|
+
});
|
|
1254
|
+
|
|
1255
|
+
const DatePickerTable = props => {
|
|
1256
|
+
const [{
|
|
1257
|
+
columns
|
|
1258
|
+
}, localProps] = createSplitProps()(props, ['columns']);
|
|
1259
|
+
const api = useDatePickerContext();
|
|
1260
|
+
const viewProps = useDatePickerViewContext();
|
|
1261
|
+
const tableProps = {
|
|
1262
|
+
columns,
|
|
1263
|
+
id: createUniqueId(),
|
|
1264
|
+
...viewProps
|
|
1265
|
+
};
|
|
1266
|
+
const mergedProps = mergeProps$2(() => api().getTableProps(tableProps), localProps);
|
|
1267
|
+
return createComponent(DatePickerTableProvider, {
|
|
1268
|
+
value: tableProps,
|
|
1269
|
+
get children() {
|
|
1270
|
+
return createComponent(ark.table, mergedProps);
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
const DatePickerTableBody = props => {
|
|
1276
|
+
const api = useDatePickerContext();
|
|
1277
|
+
const tableProps = useDatePickerTableContext();
|
|
1278
|
+
const mergedProps = mergeProps$2(() => api().getTableBodyProps(tableProps), props);
|
|
1279
|
+
return createComponent(ark.tbody, mergedProps);
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
const [DatePickerTableCellProvider, useDatePickerTableCellContext] = createContext({
|
|
1283
|
+
hookName: 'useDatePickerTableCellContext',
|
|
1284
|
+
providerName: '<DatePickerTableCellProvider />'
|
|
1285
|
+
});
|
|
1286
|
+
|
|
1287
|
+
const DatePickerTableCell = props => {
|
|
1288
|
+
const [cellProps, localProps] = createSplitProps()(props, ['disabled', 'value', 'visibleRange', 'columns']);
|
|
1289
|
+
const api = useDatePickerContext();
|
|
1290
|
+
const viewProps = useDatePickerViewContext();
|
|
1291
|
+
const tableCellProps = {
|
|
1292
|
+
day: api().getDayTableCellProps,
|
|
1293
|
+
month: api().getMonthTableCellProps,
|
|
1294
|
+
year: api().getYearTableCellProps
|
|
1295
|
+
// @ts-expect-error use filter guard
|
|
1296
|
+
}[viewProps.view](cellProps);
|
|
1297
|
+
const mergedProps = mergeProps$2(() => tableCellProps, localProps);
|
|
1298
|
+
return createComponent(DatePickerTableCellProvider, {
|
|
1299
|
+
value: cellProps,
|
|
1300
|
+
get children() {
|
|
1301
|
+
return createComponent(ark.td, mergedProps);
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
};
|
|
1305
|
+
|
|
1306
|
+
const DatePickerTableCellTrigger = props => {
|
|
1307
|
+
const api = useDatePickerContext();
|
|
1308
|
+
const cellProps = useDatePickerTableCellContext();
|
|
1309
|
+
const viewProps = useDatePickerViewContext();
|
|
1310
|
+
const triggerProps = {
|
|
1311
|
+
day: api().getDayTableCellTriggerProps,
|
|
1312
|
+
month: api().getMonthTableCellTriggerProps,
|
|
1313
|
+
year: api().getYearTableCellTriggerProps
|
|
1314
|
+
// @ts-expect-error value is number filter
|
|
1315
|
+
}[viewProps.view](cellProps);
|
|
1316
|
+
const mergedProps = mergeProps$2(() => triggerProps, props);
|
|
1317
|
+
return createComponent(ark.button, mergedProps);
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
const DatePickerTableHead = props => {
|
|
1321
|
+
const api = useDatePickerContext();
|
|
1322
|
+
const tableProps = useDatePickerTableContext();
|
|
1323
|
+
const mergedProps = mergeProps$2(() => api().getTableHeadProps(tableProps), props);
|
|
1324
|
+
return createComponent(ark.thead, mergedProps);
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
const DatePickerTableHeader = props => {
|
|
1328
|
+
const api = useDatePickerContext();
|
|
1329
|
+
const tableProps = useDatePickerTableContext();
|
|
1330
|
+
const mergedProps = mergeProps$2(() => api().getTableHeaderProps(tableProps), props);
|
|
1331
|
+
return createComponent(ark.th, mergedProps);
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1334
|
+
const DatePickerTableRow = props => {
|
|
1335
|
+
const api = useDatePickerContext();
|
|
1336
|
+
const tableProps = useDatePickerTableContext();
|
|
1337
|
+
const mergedProps = mergeProps$2(() => api().getTableRowProps(tableProps), props);
|
|
1338
|
+
return createComponent(ark.tr, mergedProps);
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
const DatePickerTrigger = props => {
|
|
1342
|
+
const api = useDatePickerContext();
|
|
1343
|
+
const mergedProps = mergeProps$2(() => api().triggerProps, props);
|
|
1344
|
+
return createComponent(ark.button, mergedProps);
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
const DatePickerView = props => {
|
|
1348
|
+
const [viewProps, localProps] = createSplitProps()(props, ['view']);
|
|
1349
|
+
const api = useDatePickerContext();
|
|
1350
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
1351
|
+
return createComponent(DatePickerViewProvider, {
|
|
1352
|
+
value: viewProps,
|
|
1353
|
+
get children() {
|
|
1354
|
+
return createComponent(ark.div, mergeProps$1(localProps, {
|
|
1355
|
+
get hidden() {
|
|
1356
|
+
return api().view !== viewProps.view;
|
|
1357
|
+
},
|
|
1358
|
+
get children() {
|
|
1359
|
+
return getChildren();
|
|
1360
|
+
}
|
|
1361
|
+
}));
|
|
1362
|
+
}
|
|
1363
|
+
});
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
const DatePickerViewControl = props => {
|
|
1367
|
+
const api = useDatePickerContext();
|
|
1368
|
+
const viewProps = useDatePickerViewContext();
|
|
1369
|
+
const mergedProps = mergeProps$2(() => api().getViewControlProps(viewProps), props);
|
|
1370
|
+
return createComponent(ark.div, mergedProps);
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
const DatePickerViewTrigger = props => {
|
|
1374
|
+
const api = useDatePickerContext();
|
|
1375
|
+
const viewProps = useDatePickerViewContext();
|
|
1376
|
+
const mergedProps = mergeProps$2(() => api().getViewTriggerProps(viewProps), props);
|
|
1377
|
+
return createComponent(ark.button, mergedProps);
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
const _tmpl$$6 = /*#__PURE__*/template(`<option>`);
|
|
1381
|
+
const DatePickerYearSelect = props => {
|
|
1382
|
+
const api = useDatePickerContext();
|
|
1383
|
+
const mergedProps = mergeProps$2(() => api().yearSelectProps, props);
|
|
1384
|
+
return createComponent(ark.select, mergeProps$1(mergedProps, {
|
|
1385
|
+
get children() {
|
|
1386
|
+
return getYearsRange({
|
|
1387
|
+
from: 1_000,
|
|
1388
|
+
to: 4_000
|
|
1389
|
+
}).map(year => (() => {
|
|
1390
|
+
const _el$ = _tmpl$$6();
|
|
1391
|
+
_el$.value = year;
|
|
1392
|
+
insert(_el$, year);
|
|
1393
|
+
return _el$;
|
|
1394
|
+
})());
|
|
1395
|
+
}
|
|
1396
|
+
}));
|
|
1397
|
+
};
|
|
1398
|
+
function getYearsRange(range) {
|
|
1399
|
+
const years = [];
|
|
1400
|
+
for (let year = range.from; year <= range.to; year += 1) {
|
|
1401
|
+
years.push(year);
|
|
1402
|
+
}
|
|
1403
|
+
return years;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
const DatePicker = Object.assign(DatePicker$1, {
|
|
1407
|
+
Root: DatePicker$1,
|
|
1408
|
+
ClearTrigger: DatePickerClearTrigger,
|
|
1409
|
+
Content: DatePickerContent,
|
|
1410
|
+
Control: DatePickerControl,
|
|
1411
|
+
Input: DatePickerInput,
|
|
1412
|
+
Label: DatePickerLabel,
|
|
1413
|
+
MonthSelect: DatePickerMonthSelect,
|
|
1414
|
+
NextTrigger: DatePickerNextTrigger,
|
|
1415
|
+
Positioner: DatePickerPositioner,
|
|
1416
|
+
PrevTrigger: DatePickerPrevTrigger,
|
|
1417
|
+
RangeText: DatePickerRangeText,
|
|
1418
|
+
Table: DatePickerTable,
|
|
1419
|
+
TableBody: DatePickerTableBody,
|
|
1420
|
+
TableCell: DatePickerTableCell,
|
|
1421
|
+
TableCellTrigger: DatePickerTableCellTrigger,
|
|
1422
|
+
TableHead: DatePickerTableHead,
|
|
1423
|
+
TableHeader: DatePickerTableHeader,
|
|
1424
|
+
TableRow: DatePickerTableRow,
|
|
1425
|
+
Trigger: DatePickerTrigger,
|
|
1426
|
+
View: DatePickerView,
|
|
1427
|
+
ViewControl: DatePickerViewControl,
|
|
1428
|
+
ViewTrigger: DatePickerViewTrigger,
|
|
1429
|
+
YearSelect: DatePickerYearSelect
|
|
1430
|
+
});
|
|
1431
|
+
|
|
1432
|
+
const [DialogProvider, useDialogContext] = createContext({
|
|
1433
|
+
hookName: 'useDialogContext',
|
|
1434
|
+
providerName: '<DialogProvider />'
|
|
1435
|
+
});
|
|
1436
|
+
|
|
1437
|
+
const useDialog = props => {
|
|
1438
|
+
const getRootNode = useEnvironmentContext();
|
|
1439
|
+
const context = mergeProps$2({
|
|
1440
|
+
id: createUniqueId(),
|
|
1441
|
+
getRootNode
|
|
1442
|
+
}, props);
|
|
1443
|
+
const [state, send] = useMachine(dialog.machine(context), {
|
|
1444
|
+
context
|
|
1445
|
+
});
|
|
1446
|
+
return createMemo(() => dialog.connect(state, send, normalizeProps));
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
const Dialog$1 = props => {
|
|
1450
|
+
const [dialogParams, localProps] = createSplitProps()(props, ['aria-label', 'closeOnEscapeKeyDown', 'closeOnInteractOutside', 'dir', 'finalFocusEl', 'getRootNode', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'preventScroll', 'restoreFocus', 'role', 'trapFocus']);
|
|
1451
|
+
const api = useDialog(dialogParams);
|
|
1452
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
1453
|
+
return createComponent(DialogProvider, {
|
|
1454
|
+
value: api,
|
|
1455
|
+
get children() {
|
|
1456
|
+
return getChildren();
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
const DialogBackdrop = props => {
|
|
1462
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
1463
|
+
const api = useDialogContext();
|
|
1464
|
+
const mergedProps = mergeProps$2(() => api().backdropProps, localProps);
|
|
1465
|
+
return createComponent(Presence, mergeProps$1({
|
|
1466
|
+
get present() {
|
|
1467
|
+
return api().isOpen;
|
|
1468
|
+
}
|
|
1469
|
+
}, presenceProps, {
|
|
1470
|
+
get children() {
|
|
1471
|
+
return createComponent(ark.div, mergedProps);
|
|
1472
|
+
}
|
|
1473
|
+
}));
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1476
|
+
const DialogCloseTrigger = props => {
|
|
1477
|
+
const dialog = useDialogContext();
|
|
1478
|
+
const triggerProps = mergeProps$2(() => dialog().triggerProps, props);
|
|
1479
|
+
return createComponent(ark.button, triggerProps);
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
const DialogContent = props => {
|
|
1483
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
1484
|
+
const api = useDialogContext();
|
|
1485
|
+
const mergedProps = mergeProps$2(() => api().contentProps, localProps);
|
|
1486
|
+
return createComponent(Presence, mergeProps$1({
|
|
1487
|
+
get present() {
|
|
1488
|
+
return api().isOpen;
|
|
1489
|
+
}
|
|
1490
|
+
}, presenceProps, {
|
|
1491
|
+
get children() {
|
|
1492
|
+
return createComponent(ark.div, mergedProps);
|
|
1493
|
+
}
|
|
1494
|
+
}));
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
const DialogDescription = props => {
|
|
1498
|
+
const dialog = useDialogContext();
|
|
1499
|
+
const descriptionProps = mergeProps$2(() => dialog().descriptionProps, props);
|
|
1500
|
+
return createComponent(ark.p, descriptionProps);
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
const DialogPositioner = props => {
|
|
1504
|
+
const dialog = useDialogContext();
|
|
1505
|
+
const mergedProps = mergeProps$2(() => dialog().positionerProps, props);
|
|
1506
|
+
return createComponent(ark.div, mergedProps);
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
const DialogTitle = props => {
|
|
1510
|
+
const dialog = useDialogContext();
|
|
1511
|
+
const titleProps = mergeProps$2(() => dialog().titleProps, props);
|
|
1512
|
+
return createComponent(ark.h2, titleProps);
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
const DialogTrigger = props => {
|
|
1516
|
+
const dialog = useDialogContext();
|
|
1517
|
+
const triggerProps = mergeProps$2(() => dialog().triggerProps, props);
|
|
1518
|
+
return createComponent(ark.button, triggerProps);
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
const Dialog = Object.assign(Dialog$1, {
|
|
1522
|
+
Root: Dialog$1,
|
|
1523
|
+
Backdrop: DialogBackdrop,
|
|
1524
|
+
CloseTrigger: DialogCloseTrigger,
|
|
1525
|
+
Positioner: DialogPositioner,
|
|
1526
|
+
Content: DialogContent,
|
|
1527
|
+
Description: DialogDescription,
|
|
1528
|
+
Title: DialogTitle,
|
|
1529
|
+
Trigger: DialogTrigger
|
|
1530
|
+
});
|
|
1531
|
+
|
|
1532
|
+
const [EditableProvider, useEditableContext] = createContext({
|
|
1533
|
+
hookName: 'useEditableContext',
|
|
1534
|
+
providerName: '<EditableProvider />'
|
|
1535
|
+
});
|
|
1536
|
+
|
|
1537
|
+
const useEditable = props => {
|
|
1538
|
+
const getRootNode = useEnvironmentContext();
|
|
1539
|
+
const context = mergeProps$2({
|
|
1540
|
+
id: createUniqueId(),
|
|
1541
|
+
getRootNode
|
|
1542
|
+
}, props);
|
|
1543
|
+
const [state, send] = useMachine(editable.machine(context), {
|
|
1544
|
+
context
|
|
1545
|
+
});
|
|
1546
|
+
return createMemo(() => editable.connect(state, send, normalizeProps));
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
const Editable$1 = props => {
|
|
1550
|
+
const [useEditableProps, restProps] = 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']);
|
|
1551
|
+
const editable = useEditable(useEditableProps);
|
|
1552
|
+
const [childrenProps, localProps] = splitProps(restProps, ['children']);
|
|
1553
|
+
const rootProps = mergeProps$2(() => editable().rootProps, localProps);
|
|
1554
|
+
const getChildren = () => runIfFn(childrenProps.children, editable);
|
|
1555
|
+
return createComponent(EditableProvider, {
|
|
1556
|
+
value: editable,
|
|
1557
|
+
get children() {
|
|
1558
|
+
return createComponent(ark.div, mergeProps$1(rootProps, {
|
|
1559
|
+
get children() {
|
|
1560
|
+
return getChildren();
|
|
1561
|
+
}
|
|
1562
|
+
}));
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
const EditableArea = props => {
|
|
1568
|
+
const editable = useEditableContext();
|
|
1569
|
+
const areaProps = mergeProps$2(() => editable().areaProps, props);
|
|
1570
|
+
return createComponent(ark.div, areaProps);
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
const EditableCancelTrigger = props => {
|
|
1574
|
+
const editable = useEditableContext();
|
|
1575
|
+
const triggerProps = mergeProps$2(() => editable().cancelTriggerProps, props);
|
|
1576
|
+
return createComponent(ark.button, triggerProps);
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
const EditableControl = props => {
|
|
1580
|
+
const editable = useEditableContext();
|
|
1581
|
+
const controlProps = mergeProps$2(() => editable().controlProps, props);
|
|
1582
|
+
return createComponent(ark.div, controlProps);
|
|
1583
|
+
};
|
|
1584
|
+
|
|
1585
|
+
const EditableEditTrigger = props => {
|
|
1586
|
+
const editable = useEditableContext();
|
|
1587
|
+
const triggerProps = mergeProps$2(() => editable().editTriggerProps, props);
|
|
1588
|
+
return createComponent(ark.button, triggerProps);
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
const EditableInput = props => {
|
|
1592
|
+
const editable = useEditableContext();
|
|
1593
|
+
const inputProps = mergeProps$2(() => editable().inputProps, props);
|
|
1594
|
+
return createComponent(ark.input, inputProps);
|
|
1595
|
+
};
|
|
1596
|
+
|
|
1597
|
+
const EditableLabel = props => {
|
|
1598
|
+
const editable = useEditableContext();
|
|
1599
|
+
const labelProps = mergeProps$2(() => editable().labelProps, props);
|
|
1600
|
+
return createComponent(ark.label, labelProps);
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
const EditablePreview = props => {
|
|
1604
|
+
const editable = useEditableContext();
|
|
1605
|
+
const previewProps = mergeProps$2(() => editable().previewProps, props);
|
|
1606
|
+
return createComponent(ark.span, previewProps);
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
const EditableSubmitTrigger = props => {
|
|
1610
|
+
const dialog = useEditableContext();
|
|
1611
|
+
const triggerProps = mergeProps$2(() => dialog().submitTriggerProps, props);
|
|
1612
|
+
return createComponent(ark.button, triggerProps);
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
const Editable = Object.assign(Editable$1, {
|
|
1616
|
+
Root: Editable$1,
|
|
1617
|
+
Area: EditableArea,
|
|
1618
|
+
CancelTrigger: EditableCancelTrigger,
|
|
1619
|
+
Control: EditableControl,
|
|
1620
|
+
EditTrigger: EditableEditTrigger,
|
|
1621
|
+
Input: EditableInput,
|
|
1622
|
+
Label: EditableLabel,
|
|
1623
|
+
Preview: EditablePreview,
|
|
1624
|
+
SubmitTrigger: EditableSubmitTrigger
|
|
1625
|
+
});
|
|
1626
|
+
|
|
1627
|
+
const [HoverCardProvider, useHoverCardContext] = createContext({
|
|
1628
|
+
hookName: 'useHoverCardContext',
|
|
1629
|
+
providerName: '<HoverCardProvider />'
|
|
1630
|
+
});
|
|
1631
|
+
|
|
1632
|
+
const useHoverCard = props => {
|
|
1633
|
+
const getRootNode = useEnvironmentContext();
|
|
1634
|
+
const context = mergeProps$2({
|
|
1635
|
+
id: createUniqueId(),
|
|
1636
|
+
getRootNode
|
|
1637
|
+
}, props);
|
|
1638
|
+
const [state, send] = useMachine(hoverCard.machine(context), {
|
|
1639
|
+
context
|
|
1640
|
+
});
|
|
1641
|
+
return createMemo(() => hoverCard.connect(state, send, normalizeProps));
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
const HoverCard$1 = props => {
|
|
1645
|
+
const [hoverCardProps, localProps] = createSplitProps()(props, ['closeDelay', 'dir', 'getRootNode', 'id', 'ids', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
1646
|
+
const api = useHoverCard(hoverCardProps);
|
|
1647
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
1648
|
+
return createComponent(HoverCardProvider, {
|
|
1649
|
+
value: api,
|
|
1650
|
+
get children() {
|
|
1651
|
+
return getChildren();
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
const HoverCardArrow = props => {
|
|
1657
|
+
const hoverCard = useHoverCardContext();
|
|
1658
|
+
const arrowProps = mergeProps$2(() => hoverCard().arrowProps, props);
|
|
1659
|
+
return createComponent(ark.div, arrowProps);
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
const HoverCardArrowTip = props => {
|
|
1663
|
+
const hoverCard = useHoverCardContext();
|
|
1664
|
+
const tipProps = mergeProps$2(() => hoverCard().arrowTipProps, props);
|
|
1665
|
+
return createComponent(ark.div, tipProps);
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
const HoverCardContent = props => {
|
|
1669
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
1670
|
+
const api = useHoverCardContext();
|
|
1671
|
+
const mergedProps = mergeProps$2(() => api().contentProps, localProps);
|
|
1672
|
+
return createComponent(Presence, mergeProps$1({
|
|
1673
|
+
get present() {
|
|
1674
|
+
return api().isOpen;
|
|
1675
|
+
}
|
|
1676
|
+
}, presenceProps, {
|
|
1677
|
+
get children() {
|
|
1678
|
+
return createComponent(ark.div, mergedProps);
|
|
1679
|
+
}
|
|
1680
|
+
}));
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
const HoverCardPositioner = props => {
|
|
1684
|
+
const hoverCard = useHoverCardContext();
|
|
1685
|
+
const positionerProps = mergeProps$2(() => hoverCard().positionerProps, props);
|
|
1686
|
+
return createComponent(ark.div, positionerProps);
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
const HoverCardTrigger = props => {
|
|
1690
|
+
const hoverCard = useHoverCardContext();
|
|
1691
|
+
const triggerProps = mergeProps$2(() => hoverCard().triggerProps, props);
|
|
1692
|
+
return createComponent(ark.button, triggerProps);
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1695
|
+
const HoverCard = Object.assign(HoverCard$1, {
|
|
1696
|
+
Root: HoverCard$1,
|
|
1697
|
+
Arrow: HoverCardArrow,
|
|
1698
|
+
ArrowTip: HoverCardArrowTip,
|
|
1699
|
+
Content: HoverCardContent,
|
|
1700
|
+
Positioner: HoverCardPositioner,
|
|
1701
|
+
Trigger: HoverCardTrigger
|
|
1702
|
+
});
|
|
1703
|
+
|
|
1704
|
+
const [MenuProvider, useMenuContext] = createContext({
|
|
1705
|
+
hookName: 'useMenuContext',
|
|
1706
|
+
providerName: '<MenuProvider />',
|
|
1707
|
+
strict: false
|
|
1708
|
+
});
|
|
1709
|
+
const [MenuMachineProvider, useMenuMachineContext] = createContext({
|
|
1710
|
+
hookName: 'useMenuMachineContext',
|
|
1711
|
+
providerName: '<MenuMachineProvider />',
|
|
1712
|
+
strict: false
|
|
1713
|
+
});
|
|
1714
|
+
const [MenuTriggerItemProvider, useMenuTriggerItemContext] = createContext({
|
|
1715
|
+
hookName: 'useMenuMachineContext',
|
|
1716
|
+
providerName: '<MenuMachineProvider />',
|
|
1717
|
+
strict: false
|
|
1718
|
+
});
|
|
1719
|
+
|
|
1720
|
+
const useMenu = props => {
|
|
1721
|
+
const getRootNode = useEnvironmentContext();
|
|
1722
|
+
const context = mergeProps$2({
|
|
1723
|
+
id: createUniqueId(),
|
|
1724
|
+
getRootNode
|
|
1725
|
+
}, props);
|
|
1726
|
+
const [state, send, machine] = useMachine(menu.machine(context), {
|
|
1727
|
+
context
|
|
1728
|
+
});
|
|
1729
|
+
return createMemo(() => ({
|
|
1730
|
+
api: () => menu.connect(state, send, normalizeProps),
|
|
1731
|
+
machine: machine
|
|
1732
|
+
}));
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
const Menu$1 = props => {
|
|
1736
|
+
const [menuParams, restProps] = createSplitProps()(props, ['anchorPoint', 'aria-label', 'closeOnSelect', 'dir', 'getRootNode', 'highlightedId', 'id', 'ids', 'loop', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onSelect', 'onValueChange', 'positioning', 'value']);
|
|
1737
|
+
const parentMenu = useMenuContext();
|
|
1738
|
+
const parentMachine = useMenuMachineContext();
|
|
1739
|
+
const menu = useMenu(menuParams);
|
|
1740
|
+
createEffect(() => {
|
|
1741
|
+
if (!parentMachine) return;
|
|
1742
|
+
parentMenu?.().setChild(menu().machine);
|
|
1743
|
+
menu().api().setParent(parentMachine());
|
|
1744
|
+
});
|
|
1745
|
+
createEffect(() => {
|
|
1746
|
+
if (!restProps.isOpen) return;
|
|
1747
|
+
restProps.isOpen?.() ? menu().api().open() : menu().api().close();
|
|
1748
|
+
});
|
|
1749
|
+
const triggerItemContext = createMemo(() => parentMenu?.().getTriggerItemProps(menu().api()));
|
|
1750
|
+
const machineContext = () => menu().machine;
|
|
1751
|
+
const getChildren = () => runIfFn(restProps.children, () => ({
|
|
1752
|
+
isOpen: menu?.().api().isOpen,
|
|
1753
|
+
onClose: menu?.().api().close
|
|
1754
|
+
}));
|
|
1755
|
+
return createComponent(MenuTriggerItemProvider, {
|
|
1756
|
+
value: triggerItemContext,
|
|
1757
|
+
get children() {
|
|
1758
|
+
return createComponent(MenuMachineProvider, {
|
|
1759
|
+
value: machineContext,
|
|
1760
|
+
get children() {
|
|
1761
|
+
return createComponent(MenuProvider, {
|
|
1762
|
+
get value() {
|
|
1763
|
+
return menu().api;
|
|
1764
|
+
},
|
|
1765
|
+
get children() {
|
|
1766
|
+
return getChildren();
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
});
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
const MenuArrow = props => {
|
|
1776
|
+
const menu = useMenuContext();
|
|
1777
|
+
const arrowProps = mergeProps$2(() => menu?.().arrowProps, props);
|
|
1778
|
+
return createComponent(ark.div, arrowProps);
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
const MenuArrowTip = props => {
|
|
1782
|
+
const menu = useMenuContext();
|
|
1783
|
+
const arrowTipProps = mergeProps$2(() => menu?.().arrowTipProps, props);
|
|
1784
|
+
return createComponent(ark.div, arrowTipProps);
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
const MenuContent = props => {
|
|
1788
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
1789
|
+
const api = useMenuContext();
|
|
1790
|
+
const mergedProps = mergeProps$2(() => api?.().contentProps, localProps);
|
|
1791
|
+
return createComponent(Presence, mergeProps$1({
|
|
1792
|
+
get present() {
|
|
1793
|
+
return api?.().isOpen;
|
|
1794
|
+
}
|
|
1795
|
+
}, presenceProps, {
|
|
1796
|
+
get children() {
|
|
1797
|
+
return createComponent(ark.div, mergedProps);
|
|
1798
|
+
}
|
|
1799
|
+
}));
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
const MenuContextTrigger = props => {
|
|
1803
|
+
const menu = useMenuContext();
|
|
1804
|
+
const triggerProps = mergeProps$2(() => menu?.().contextTriggerProps, props);
|
|
1805
|
+
return createComponent(ark.button, triggerProps);
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
const MenuItem = props => {
|
|
1809
|
+
const menu = useMenuContext();
|
|
1810
|
+
const [itemParams, restProps] = createSplitProps()(props, ['id', 'disabled', 'valueText', 'closeOnSelect']);
|
|
1811
|
+
const itemProps = mergeProps$2(() => menu?.().getItemProps(itemParams), restProps);
|
|
1812
|
+
return createComponent(ark.div, itemProps);
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
const MenuItemGroup = props => {
|
|
1816
|
+
const menu = useMenuContext();
|
|
1817
|
+
const [itemGroupProps, localProps] = createSplitProps()(props, ['id']);
|
|
1818
|
+
const groupProps = mergeProps$2(() => menu?.().getItemGroupProps(itemGroupProps), localProps);
|
|
1819
|
+
return createComponent(ark.div, groupProps);
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
const MenuItemGroupLabel = props => {
|
|
1823
|
+
const menu = useMenuContext();
|
|
1824
|
+
const [itemGroupLabelProps, localProps] = createSplitProps()(props, ['htmlFor']);
|
|
1825
|
+
const labelProps = mergeProps$2(() => menu?.().getItemGroupLabelProps(itemGroupLabelProps), localProps);
|
|
1826
|
+
return createComponent(ark.label, labelProps);
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1829
|
+
const MenuOptionItem = props => {
|
|
1830
|
+
const menu = useMenuContext();
|
|
1831
|
+
const [optionProps, localProps] = createSplitProps()(props, ['id', 'disabled', 'valueText', 'closeOnSelect', 'name', 'type', 'value', 'onCheckedChange']);
|
|
1832
|
+
const itemProps = mergeProps$2(() => menu().getOptionItemProps(optionProps), localProps);
|
|
1833
|
+
const itemState = createMemo(() => menu().getOptionItemState(optionProps));
|
|
1834
|
+
const getChildren = () => runIfFn(localProps.children, itemState);
|
|
1835
|
+
return createComponent(ark.div, mergeProps$1(itemProps, {
|
|
1836
|
+
get children() {
|
|
1837
|
+
return getChildren();
|
|
1838
|
+
}
|
|
1839
|
+
}));
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
const MenuPositioner = props => {
|
|
1843
|
+
const menu = useMenuContext();
|
|
1844
|
+
const positionerProps = mergeProps$2(() => menu?.().positionerProps, props);
|
|
1845
|
+
return createComponent(ark.div, positionerProps);
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
const MenuSeparator = props => {
|
|
1849
|
+
const menu = useMenuContext();
|
|
1850
|
+
const separatorProps = mergeProps$2(() => menu?.().separatorProps, props);
|
|
1851
|
+
return createComponent(ark.hr, separatorProps);
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
const MenuTrigger = props => {
|
|
1855
|
+
const menu = useMenuContext();
|
|
1856
|
+
const triggerProps = mergeProps$2(() => menu?.().triggerProps, props);
|
|
1857
|
+
return createComponent(ark.button, triggerProps);
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
const MenuTriggerItem = props => {
|
|
1861
|
+
const getTriggerItemProps = useMenuTriggerItemContext();
|
|
1862
|
+
const triggerProps = mergeProps$2(() => getTriggerItemProps?.(), props);
|
|
1863
|
+
return createComponent(ark.div, triggerProps);
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
const Menu = Object.assign(Menu$1, {
|
|
1867
|
+
Root: Menu$1,
|
|
1868
|
+
Arrow: MenuArrow,
|
|
1869
|
+
ArrowTip: MenuArrowTip,
|
|
1870
|
+
Content: MenuContent,
|
|
1871
|
+
ContextTrigger: MenuContextTrigger,
|
|
1872
|
+
Item: MenuItem,
|
|
1873
|
+
ItemGroup: MenuItemGroup,
|
|
1874
|
+
ItemGroupLabel: MenuItemGroupLabel,
|
|
1875
|
+
OptionItem: MenuOptionItem,
|
|
1876
|
+
Positioner: MenuPositioner,
|
|
1877
|
+
Separator: MenuSeparator,
|
|
1878
|
+
Trigger: MenuTrigger,
|
|
1879
|
+
TriggerItem: MenuTriggerItem
|
|
1880
|
+
});
|
|
1881
|
+
|
|
1882
|
+
const [NumberInputProvider, useNumberInputContext] = createContext({
|
|
1883
|
+
hookName: 'useNumberInputContext',
|
|
1884
|
+
providerName: '<NumberInputProvider />'
|
|
1885
|
+
});
|
|
1886
|
+
|
|
1887
|
+
const useNumberInput = props => {
|
|
1888
|
+
const getRootNode = useEnvironmentContext();
|
|
1889
|
+
const context = mergeProps$2({
|
|
1890
|
+
id: createUniqueId(),
|
|
1891
|
+
getRootNode
|
|
1892
|
+
}, props);
|
|
1893
|
+
const [state, send] = useMachine(numberInput.machine(context), {
|
|
1894
|
+
context
|
|
1895
|
+
});
|
|
1896
|
+
return createMemo(() => numberInput.connect(state, send, normalizeProps));
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
const NumberInput$1 = props => {
|
|
1900
|
+
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']);
|
|
1901
|
+
const api = useNumberInput(useNumberInputProps);
|
|
1902
|
+
const rootProps = mergeProps$2(() => api().rootProps, localProps);
|
|
1903
|
+
return createComponent(NumberInputProvider, {
|
|
1904
|
+
value: api,
|
|
1905
|
+
get children() {
|
|
1906
|
+
return createComponent(ark.div, rootProps);
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
};
|
|
1910
|
+
|
|
1911
|
+
const NumberInputControl = props => {
|
|
1912
|
+
const api = useNumberInputContext();
|
|
1913
|
+
const controlProps = mergeProps$2(() => api().controlProps, props);
|
|
1914
|
+
return createComponent(ark.div, controlProps);
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1917
|
+
const NumberInputDecrementTrigger = props => {
|
|
1918
|
+
const api = useNumberInputContext();
|
|
1919
|
+
const triggerProps = mergeProps$2(() => api().decrementTriggerProps, props);
|
|
1920
|
+
return createComponent(ark.button, triggerProps);
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
const NumberInputInput = props => {
|
|
1924
|
+
const api = useNumberInputContext();
|
|
1925
|
+
const inputProps = mergeProps$2(() => api().inputProps, props);
|
|
1926
|
+
return createComponent(ark.input, inputProps);
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
const NumberInputIncrementTrigger = props => {
|
|
1930
|
+
const api = useNumberInputContext();
|
|
1931
|
+
const triggerProps = mergeProps$2(() => api().incrementTriggerProps, props);
|
|
1932
|
+
return createComponent(ark.button, triggerProps);
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
const NumberInputLabel = props => {
|
|
1936
|
+
const api = useNumberInputContext();
|
|
1937
|
+
const labelProps = mergeProps$2(() => api().labelProps, props);
|
|
1938
|
+
return createComponent(ark.label, labelProps);
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
const NumberInputScrubber = props => {
|
|
1942
|
+
const api = useNumberInputContext();
|
|
1943
|
+
const scrubberProps = mergeProps$2(() => api().scrubberProps, props);
|
|
1944
|
+
return createComponent(ark.div, scrubberProps);
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
const NumberInput = Object.assign(NumberInput$1, {
|
|
1948
|
+
Root: NumberInput$1,
|
|
1949
|
+
Control: NumberInputControl,
|
|
1950
|
+
DecrementTrigger: NumberInputDecrementTrigger,
|
|
1951
|
+
Input: NumberInputInput,
|
|
1952
|
+
IncrementTrigger: NumberInputIncrementTrigger,
|
|
1953
|
+
Label: NumberInputLabel,
|
|
1954
|
+
Scrubber: NumberInputScrubber
|
|
1955
|
+
});
|
|
1956
|
+
|
|
1957
|
+
const [PaginationProvider, usePaginationContext] = createContext({
|
|
1958
|
+
hookName: 'usePaginationContext',
|
|
1959
|
+
providerName: '<PaginationProvider />'
|
|
1960
|
+
});
|
|
1961
|
+
|
|
1962
|
+
const usePagination = props => {
|
|
1963
|
+
const getRootNode = useEnvironmentContext();
|
|
1964
|
+
const context = mergeProps$2({
|
|
1965
|
+
id: createUniqueId(),
|
|
1966
|
+
getRootNode
|
|
1967
|
+
}, props);
|
|
1968
|
+
const [state, send] = useMachine(pagination.machine(context), {
|
|
1969
|
+
context
|
|
1970
|
+
});
|
|
1971
|
+
return createMemo(() => pagination.connect(state, send, normalizeProps));
|
|
1972
|
+
};
|
|
1973
|
+
|
|
1974
|
+
const Pagination$1 = props => {
|
|
1975
|
+
const [paginationParams, restProps] = createSplitProps()(props, ['count', 'dir', 'getRootNode', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
|
|
1976
|
+
const [childrenProps, localProps] = splitProps(restProps, ['children']);
|
|
1977
|
+
const api = usePagination(paginationParams);
|
|
1978
|
+
const getChildren = () => runIfFn(childrenProps.children, api);
|
|
1979
|
+
const rootProps = mergeProps$2(() => api().rootProps, localProps);
|
|
1980
|
+
return createComponent(PaginationProvider, {
|
|
1981
|
+
value: api,
|
|
1982
|
+
get children() {
|
|
1983
|
+
return createComponent(ark.nav, mergeProps$1(rootProps, {
|
|
1984
|
+
get children() {
|
|
1985
|
+
return getChildren();
|
|
1986
|
+
}
|
|
1987
|
+
}));
|
|
1988
|
+
}
|
|
1989
|
+
});
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
const PaginationEllipsis = props => {
|
|
1993
|
+
const [ellipsisProps, restProps] = createSplitProps()(props, ['index']);
|
|
1994
|
+
const api = usePaginationContext();
|
|
1995
|
+
const mergedProps = mergeProps$2(() => api().getEllipsisProps(ellipsisProps), restProps);
|
|
1996
|
+
return createComponent(ark.div, mergedProps);
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
const PaginationItem = props => {
|
|
2000
|
+
const [itemProps, localProps] = createSplitProps()(props, ['value', 'type']);
|
|
2001
|
+
const api = usePaginationContext();
|
|
2002
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), localProps);
|
|
2003
|
+
return createComponent(ark.button, mergedProps);
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
const PaginationNextTrigger = props => {
|
|
2007
|
+
const api = usePaginationContext();
|
|
2008
|
+
const mergedProps = mergeProps$2(() => api().nextTriggerProps, props);
|
|
2009
|
+
return createComponent(ark.button, mergedProps);
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
const PaginationPrevTrigger = props => {
|
|
2013
|
+
const api = usePaginationContext();
|
|
2014
|
+
const mergedProps = mergeProps$2(() => api().prevTriggerProps, props);
|
|
2015
|
+
return createComponent(ark.button, mergedProps);
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
const Pagination = Object.assign(Pagination$1, {
|
|
2019
|
+
Root: Pagination$1,
|
|
2020
|
+
Ellipsis: PaginationEllipsis,
|
|
2021
|
+
Item: PaginationItem,
|
|
2022
|
+
NextTrigger: PaginationNextTrigger,
|
|
2023
|
+
PrevTrigger: PaginationPrevTrigger
|
|
2024
|
+
});
|
|
2025
|
+
|
|
2026
|
+
const [PinInputProvider, usePinInputContext] = createContext({
|
|
2027
|
+
hookName: 'usePinInputContext',
|
|
2028
|
+
providerName: '<PinInputProvider />'
|
|
2029
|
+
});
|
|
2030
|
+
|
|
2031
|
+
const usePinInput = props => {
|
|
2032
|
+
const getRootNode = useEnvironmentContext();
|
|
2033
|
+
const context = mergeProps$2({
|
|
2034
|
+
id: createUniqueId(),
|
|
2035
|
+
getRootNode
|
|
2036
|
+
}, props);
|
|
2037
|
+
const [state, send] = useMachine(pinInput.machine(context), {
|
|
2038
|
+
context
|
|
2039
|
+
});
|
|
2040
|
+
return createMemo(() => pinInput.connect(state, send, normalizeProps));
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
const _tmpl$$5 = /*#__PURE__*/template(`<input>`);
|
|
2044
|
+
const PinInput$1 = props => {
|
|
2045
|
+
const [pinInputProps, localProps] = createSplitProps()(props, ['autoFocus', 'blurOnComplete', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'mask', 'name', 'onValueChange', 'onValueComplete', 'onValueInvalid', 'otp', 'pattern', 'placeholder', 'selectOnFocus', 'translations', 'type', 'value']);
|
|
2046
|
+
const api = usePinInput(pinInputProps);
|
|
2047
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
2048
|
+
return createComponent(PinInputProvider, {
|
|
2049
|
+
value: api,
|
|
2050
|
+
get children() {
|
|
2051
|
+
return [createComponent(ark.div, mergedProps), (() => {
|
|
2052
|
+
const _el$ = _tmpl$$5();
|
|
2053
|
+
spread$1(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
2054
|
+
return _el$;
|
|
2055
|
+
})()];
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
const PinInputControl = props => {
|
|
2061
|
+
const api = usePinInputContext();
|
|
2062
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2063
|
+
return createComponent(ark.div, mergedProps);
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
const PinInputInput = props => {
|
|
2067
|
+
const [inputParams, localProps] = splitProps(props, ['index']);
|
|
2068
|
+
const api = usePinInputContext();
|
|
2069
|
+
const inputProps = mergeProps$2(() => api().getInputProps(inputParams), localProps);
|
|
2070
|
+
return createComponent(ark.input, inputProps);
|
|
2071
|
+
};
|
|
2072
|
+
|
|
2073
|
+
const PinInputLabel = props => {
|
|
2074
|
+
const api = usePinInputContext();
|
|
2075
|
+
const labelProps = mergeProps$2(() => api().labelProps, props);
|
|
2076
|
+
return createComponent(ark.label, labelProps);
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
const PinInput = Object.assign(PinInput$1, {
|
|
2080
|
+
Root: PinInput$1,
|
|
2081
|
+
Control: PinInputControl,
|
|
2082
|
+
Input: PinInputInput,
|
|
2083
|
+
Label: PinInputLabel
|
|
2084
|
+
});
|
|
2085
|
+
|
|
2086
|
+
const [PopoverProvider, usePopoverContext] = createContext({
|
|
2087
|
+
hookName: 'usePopoverContext',
|
|
2088
|
+
providerName: '<PopoverProvider />'
|
|
2089
|
+
});
|
|
2090
|
+
|
|
2091
|
+
const usePopover = props => {
|
|
2092
|
+
const getRootNode = useEnvironmentContext();
|
|
2093
|
+
const context = mergeProps$2({
|
|
2094
|
+
id: createUniqueId(),
|
|
2095
|
+
getRootNode
|
|
2096
|
+
}, props);
|
|
2097
|
+
const [state, send] = useMachine(popover.machine(context), {
|
|
2098
|
+
context
|
|
2099
|
+
});
|
|
2100
|
+
return createMemo(() => popover.connect(state, send, normalizeProps));
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
const Popover$1 = props => {
|
|
2104
|
+
const [usePopoverProps, restProps] = createSplitProps()(props, ['autoFocus', 'closeOnEsc', 'closeOnInteractOutside', 'dir', 'getRootNode', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'portalled', 'positioning']);
|
|
2105
|
+
const api = usePopover(usePopoverProps);
|
|
2106
|
+
return createComponent(PopoverProvider, {
|
|
2107
|
+
value: api,
|
|
2108
|
+
get children() {
|
|
2109
|
+
return restProps.children;
|
|
2110
|
+
}
|
|
2111
|
+
});
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2114
|
+
const PopoverAnchor = props => {
|
|
2115
|
+
const api = usePopoverContext();
|
|
2116
|
+
const anchorProps = mergeProps$2(() => api().anchorProps, props);
|
|
2117
|
+
return createComponent(ark.div, anchorProps);
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
const PopoverArrow = props => {
|
|
2121
|
+
const popover = usePopoverContext();
|
|
2122
|
+
const arrowProps = mergeProps$2(() => popover().arrowProps, props);
|
|
2123
|
+
return createComponent(ark.div, arrowProps);
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
const PopoverArrowTip = props => {
|
|
2127
|
+
const popover = usePopoverContext();
|
|
2128
|
+
const arrowTipProps = mergeProps$2(() => popover().arrowTipProps, props);
|
|
2129
|
+
return createComponent(ark.div, arrowTipProps);
|
|
2130
|
+
};
|
|
2131
|
+
|
|
2132
|
+
const PopoverCloseTrigger = props => {
|
|
2133
|
+
const api = usePopoverContext();
|
|
2134
|
+
const triggerProps = mergeProps$2(() => api().closeTriggerProps, props);
|
|
2135
|
+
return createComponent(ark.button, triggerProps);
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
const PopoverContent = props => {
|
|
2139
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
2140
|
+
const api = usePopoverContext();
|
|
2141
|
+
const mergedProps = mergeProps$2(() => api().contentProps, localProps);
|
|
2142
|
+
return createComponent(Presence, mergeProps$1({
|
|
2143
|
+
get present() {
|
|
2144
|
+
return api().isOpen;
|
|
2145
|
+
}
|
|
2146
|
+
}, presenceProps, {
|
|
2147
|
+
get children() {
|
|
2148
|
+
return createComponent(ark.div, mergedProps);
|
|
2149
|
+
}
|
|
2150
|
+
}));
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
const PopoverDescription = props => {
|
|
2154
|
+
const api = usePopoverContext();
|
|
2155
|
+
const descriptionProps = mergeProps$2(() => api().descriptionProps, props);
|
|
2156
|
+
return createComponent(ark.div, descriptionProps);
|
|
2157
|
+
};
|
|
2158
|
+
|
|
2159
|
+
const PopoverIndicator = props => {
|
|
2160
|
+
const popover = usePopoverContext();
|
|
2161
|
+
const mergedProps = mergeProps$2(() => popover().indicatorProps, props);
|
|
2162
|
+
return createComponent(ark.div, mergedProps);
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2165
|
+
const PopoverPositioner = props => {
|
|
2166
|
+
const api = usePopoverContext();
|
|
2167
|
+
const positionerProps = mergeProps$2(() => api().positionerProps, props);
|
|
2168
|
+
return createComponent(ark.div, positionerProps);
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
const PopoverTitle = props => {
|
|
2172
|
+
const api = usePopoverContext();
|
|
2173
|
+
const titleProps = mergeProps$2(() => api().titleProps, props);
|
|
2174
|
+
return createComponent(ark.div, titleProps);
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2177
|
+
const PopoverTrigger = props => {
|
|
2178
|
+
const api = usePopoverContext();
|
|
2179
|
+
const triggerProps = mergeProps$2(() => api().triggerProps, props);
|
|
2180
|
+
return createComponent(ark.button, triggerProps);
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2183
|
+
const Popover = Object.assign(Popover$1, {
|
|
2184
|
+
Root: Popover$1,
|
|
2185
|
+
Anchor: PopoverAnchor,
|
|
2186
|
+
Arrow: PopoverArrow,
|
|
2187
|
+
ArrowTip: PopoverArrowTip,
|
|
2188
|
+
CloseTrigger: PopoverCloseTrigger,
|
|
2189
|
+
Content: PopoverContent,
|
|
2190
|
+
Description: PopoverDescription,
|
|
2191
|
+
Indicator: PopoverIndicator,
|
|
2192
|
+
Positioner: PopoverPositioner,
|
|
2193
|
+
Title: PopoverTitle,
|
|
2194
|
+
Trigger: PopoverTrigger
|
|
2195
|
+
});
|
|
2196
|
+
|
|
2197
|
+
const [RadioGroupProvider, useRadioGroupContext] = createContext({
|
|
2198
|
+
hookName: 'useRadioGroupContext',
|
|
2199
|
+
providerName: '<RadioGroupProvider />'
|
|
2200
|
+
});
|
|
2201
|
+
|
|
2202
|
+
const useRadioGroup = props => {
|
|
2203
|
+
const getRootNode = useEnvironmentContext();
|
|
2204
|
+
const context = mergeProps$2({
|
|
2205
|
+
id: createUniqueId(),
|
|
2206
|
+
getRootNode
|
|
2207
|
+
}, props);
|
|
2208
|
+
const [state, send] = useMachine(radio.machine(context), {
|
|
2209
|
+
context
|
|
2210
|
+
});
|
|
2211
|
+
return createMemo(() => radio.connect(state, send, normalizeProps));
|
|
2212
|
+
};
|
|
2213
|
+
|
|
2214
|
+
const RadioGroup$1 = props => {
|
|
2215
|
+
const [useRadioGroupProps, localProps] = createSplitProps()(props, ['dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'value']);
|
|
2216
|
+
const api = useRadioGroup(useRadioGroupProps);
|
|
2217
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
2218
|
+
return createComponent(RadioGroupProvider, {
|
|
2219
|
+
value: api,
|
|
2220
|
+
get children() {
|
|
2221
|
+
return createComponent(ark.div, mergedProps);
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
const RadioGroupIndicator = props => {
|
|
2227
|
+
const api = useRadioGroupContext();
|
|
2228
|
+
const mergedProps = mergeProps$2(() => api().indicatorProps, props);
|
|
2229
|
+
return createComponent(ark.div, mergedProps);
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
const [RadioProvider, useRadioGroupItemContext] = createContext({
|
|
2233
|
+
hookName: 'useRadioGroupItemContext',
|
|
2234
|
+
providerName: '<RadioProvider />'
|
|
2235
|
+
});
|
|
2236
|
+
|
|
2237
|
+
const RadioGroupItem = props => {
|
|
2238
|
+
const [itemProps, restProps] = createSplitProps()(props, ['value', 'disabled', 'invalid']);
|
|
2239
|
+
const api = useRadioGroupContext();
|
|
2240
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), restProps);
|
|
2241
|
+
return createComponent(RadioProvider, {
|
|
2242
|
+
value: itemProps,
|
|
2243
|
+
get children() {
|
|
2244
|
+
return createComponent(ark.label, mergedProps);
|
|
2245
|
+
}
|
|
2246
|
+
});
|
|
2247
|
+
};
|
|
2248
|
+
|
|
2249
|
+
const _tmpl$$4 = /*#__PURE__*/template(`<input>`);
|
|
2250
|
+
const RadioGroupItemControl = props => {
|
|
2251
|
+
const api = useRadioGroupContext();
|
|
2252
|
+
const itemProps = useRadioGroupItemContext();
|
|
2253
|
+
const mergedProps = mergeProps$2(() => api().getItemControlProps(itemProps), props);
|
|
2254
|
+
return [createComponent(ark.div, mergedProps), (() => {
|
|
2255
|
+
const _el$ = _tmpl$$4();
|
|
2256
|
+
spread$1(_el$, mergeProps$1(() => api().getItemHiddenInputProps(itemProps)), false, false);
|
|
2257
|
+
return _el$;
|
|
2258
|
+
})()];
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
const RadioGroupItemText = props => {
|
|
2262
|
+
const api = useRadioGroupContext();
|
|
2263
|
+
const itemProps = useRadioGroupItemContext();
|
|
2264
|
+
const mergedProps = mergeProps$2(() => api().getItemTextProps(itemProps), props);
|
|
2265
|
+
return createComponent(ark.span, mergedProps);
|
|
2266
|
+
};
|
|
2267
|
+
|
|
2268
|
+
const RadioGroupLabel = props => {
|
|
2269
|
+
const api = useRadioGroupContext();
|
|
2270
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
2271
|
+
return createComponent(ark.label, mergedProps);
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
const RadioGroup = Object.assign(RadioGroup$1, {
|
|
2275
|
+
Root: RadioGroup$1,
|
|
2276
|
+
Indicator: RadioGroupIndicator,
|
|
2277
|
+
Item: RadioGroupItem,
|
|
2278
|
+
ItemControl: RadioGroupItemControl,
|
|
2279
|
+
ItemText: RadioGroupItemText,
|
|
2280
|
+
Label: RadioGroupLabel
|
|
2281
|
+
});
|
|
2282
|
+
|
|
2283
|
+
const [RatingGroupProvider, useRatingGroupContext] = createContext({
|
|
2284
|
+
hookName: 'useRatingGroupContext',
|
|
2285
|
+
providerName: '<RatingGroupProvider />'
|
|
2286
|
+
});
|
|
2287
|
+
|
|
2288
|
+
const useRatingGroup = props => {
|
|
2289
|
+
const getRootNode = useEnvironmentContext();
|
|
2290
|
+
const context = mergeProps$2({
|
|
2291
|
+
id: createUniqueId(),
|
|
2292
|
+
getRootNode
|
|
2293
|
+
}, props);
|
|
2294
|
+
const [state, send] = useMachine(rating.machine(context), {
|
|
2295
|
+
context
|
|
2296
|
+
});
|
|
2297
|
+
return createMemo(() => rating.connect(state, send, normalizeProps));
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
const RatingGroup$1 = props => {
|
|
2301
|
+
const [ratingParams, localProps] = createSplitProps()(props, ['allowHalf', 'autoFocus', 'count', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'name', 'onHoverChange', 'onValueChange', 'readOnly', 'translations', 'value']);
|
|
2302
|
+
const api = useRatingGroup(ratingParams);
|
|
2303
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
2304
|
+
return createComponent(RatingGroupProvider, {
|
|
2305
|
+
value: api,
|
|
2306
|
+
get children() {
|
|
2307
|
+
return createComponent(ark.div, mergedProps);
|
|
2308
|
+
}
|
|
2309
|
+
});
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
const _tmpl$$3 = /*#__PURE__*/template(`<input>`);
|
|
2313
|
+
const RatingGroupControl = props => {
|
|
2314
|
+
const api = useRatingGroupContext();
|
|
2315
|
+
const getChildren = () => runIfFn(props.children, api);
|
|
2316
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2317
|
+
return [createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
2318
|
+
get children() {
|
|
2319
|
+
return getChildren();
|
|
2320
|
+
}
|
|
2321
|
+
})), (() => {
|
|
2322
|
+
const _el$ = _tmpl$$3();
|
|
2323
|
+
spread$1(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
2324
|
+
return _el$;
|
|
2325
|
+
})()];
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
const [RatingGroupItemProvider, useRatingGroupItemContext] = createContext({
|
|
2329
|
+
hookName: 'useRatingGroupItemContext',
|
|
2330
|
+
providerName: '<RatingGroupItemProvider />'
|
|
2331
|
+
});
|
|
2332
|
+
|
|
2333
|
+
const RatingGroupItem = props => {
|
|
2334
|
+
const [ratingParams, restProps] = createSplitProps()(props, ['index']);
|
|
2335
|
+
const api = useRatingGroupContext();
|
|
2336
|
+
const itemState = api().getItemState(ratingParams);
|
|
2337
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(ratingParams), restProps);
|
|
2338
|
+
const getChildren = () => runIfFn(restProps.children, itemState);
|
|
2339
|
+
return createComponent(RatingGroupItemProvider, {
|
|
2340
|
+
value: itemState,
|
|
2341
|
+
get children() {
|
|
2342
|
+
return createComponent(ark.span, mergeProps$1(mergedProps, {
|
|
2343
|
+
get children() {
|
|
2344
|
+
return getChildren();
|
|
2345
|
+
}
|
|
2346
|
+
}));
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
const RatingGroupLabel = props => {
|
|
2352
|
+
const api = useRatingGroupContext();
|
|
2353
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
2354
|
+
return createComponent(ark.label, mergedProps);
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2357
|
+
const RatingGroup = Object.assign(RatingGroup$1, {
|
|
2358
|
+
Root: RatingGroup$1,
|
|
2359
|
+
Control: RatingGroupControl,
|
|
2360
|
+
Label: RatingGroupLabel,
|
|
2361
|
+
Item: RatingGroupItem
|
|
2362
|
+
});
|
|
2363
|
+
|
|
2364
|
+
const [SegmentGroupProvider, useSegmentGroupContext] = createContext({
|
|
2365
|
+
hookName: 'useSegmentGroupContext',
|
|
2366
|
+
providerName: '<SegmentGroupProvider />'
|
|
2367
|
+
});
|
|
2368
|
+
|
|
2369
|
+
const useSegmentGroup = props => {
|
|
2370
|
+
const getRootNode = useEnvironmentContext();
|
|
2371
|
+
const context = mergeProps$2({
|
|
2372
|
+
id: createUniqueId(),
|
|
2373
|
+
getRootNode
|
|
2374
|
+
}, props);
|
|
2375
|
+
const [state, send] = useMachine(radio.machine(context), {
|
|
2376
|
+
context
|
|
2377
|
+
});
|
|
2378
|
+
return createMemo(() => radio.connect(state, send, normalizeProps));
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
const SegmentGroup$1 = props => {
|
|
2382
|
+
const [groupParams, localProps] = createSplitProps()(props, ['dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'value']);
|
|
2383
|
+
const api = useSegmentGroup(groupParams);
|
|
2384
|
+
const mergedProps = mergeProps$2(() => api().rootProps, segmentGroupAnatomy.build().root.attrs, localProps);
|
|
2385
|
+
return createComponent(SegmentGroupProvider, {
|
|
2386
|
+
value: api,
|
|
2387
|
+
get children() {
|
|
2388
|
+
return createComponent(ark.div, mergedProps);
|
|
2389
|
+
}
|
|
2390
|
+
});
|
|
2391
|
+
};
|
|
2392
|
+
|
|
2393
|
+
const SegmentGroupIndicator = props => {
|
|
2394
|
+
const api = useSegmentGroupContext();
|
|
2395
|
+
const mergedProps = mergeProps$2(() => api().indicatorProps, segmentGroupAnatomy.build().indicator.attrs, props);
|
|
2396
|
+
return createComponent(ark.div, mergedProps);
|
|
2397
|
+
};
|
|
2398
|
+
|
|
2399
|
+
const [SegmentProvider, useSegmentGroupItemContext] = createContext({
|
|
2400
|
+
hookName: 'useSegmentGroupItemContext',
|
|
2401
|
+
providerName: '<SegmentProvider />'
|
|
2402
|
+
});
|
|
2403
|
+
|
|
2404
|
+
const SegmentGroupItem = props => {
|
|
2405
|
+
const [itemProps, restProps] = createSplitProps()(props, ['value', 'disabled', 'invalid']);
|
|
2406
|
+
const api = useSegmentGroupContext();
|
|
2407
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), segmentGroupAnatomy.build().item.attrs, restProps);
|
|
2408
|
+
return createComponent(SegmentProvider, {
|
|
2409
|
+
value: itemProps,
|
|
2410
|
+
get children() {
|
|
2411
|
+
return createComponent(ark.label, mergedProps);
|
|
2412
|
+
}
|
|
2413
|
+
});
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
const _tmpl$$2 = /*#__PURE__*/template(`<input>`);
|
|
2417
|
+
const SegmentGroupItemControl = props => {
|
|
2418
|
+
const api = useSegmentGroupContext();
|
|
2419
|
+
const itemProps = useSegmentGroupItemContext();
|
|
2420
|
+
const mergedProps = mergeProps$2(() => api().getItemControlProps(itemProps), segmentGroupAnatomy.build().itemControl.attrs, props);
|
|
2421
|
+
return [createComponent(ark.div, mergedProps), (() => {
|
|
2422
|
+
const _el$ = _tmpl$$2();
|
|
2423
|
+
spread$1(_el$, mergeProps$1(() => api().getItemHiddenInputProps(itemProps)), false, false);
|
|
2424
|
+
return _el$;
|
|
2425
|
+
})()];
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2428
|
+
const SegmentGroupItemText = props => {
|
|
2429
|
+
const api = useSegmentGroupContext();
|
|
2430
|
+
const itemProps = useSegmentGroupItemContext();
|
|
2431
|
+
const mergedProps = mergeProps$2(() => api().getItemTextProps(itemProps), segmentGroupAnatomy.build().itemText.attrs, props);
|
|
2432
|
+
return createComponent(ark.span, mergedProps);
|
|
2433
|
+
};
|
|
2434
|
+
|
|
2435
|
+
const SegmentGroupLabel = props => {
|
|
2436
|
+
const api = useSegmentGroupContext();
|
|
2437
|
+
const mergedProps = mergeProps$2(() => api().labelProps, segmentGroupAnatomy.build().label.attrs, props);
|
|
2438
|
+
return createComponent(ark.label, mergedProps);
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
const SegmentGroup = Object.assign(SegmentGroup$1, {
|
|
2442
|
+
Root: SegmentGroup$1,
|
|
2443
|
+
Indicator: SegmentGroupIndicator,
|
|
2444
|
+
Item: SegmentGroupItem,
|
|
2445
|
+
ItemControl: SegmentGroupItemControl,
|
|
2446
|
+
ItemText: SegmentGroupItemText,
|
|
2447
|
+
Label: SegmentGroupLabel
|
|
2448
|
+
});
|
|
2449
|
+
|
|
2450
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2451
|
+
const [SelectProvider, useSelectContext] = createContext({
|
|
2452
|
+
hookName: 'useSelectContext',
|
|
2453
|
+
providerName: '<SelectProvider />'
|
|
2454
|
+
});
|
|
2455
|
+
|
|
2456
|
+
const useSelect = props => {
|
|
2457
|
+
const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
2458
|
+
const collection = select.collection(collectionOptions);
|
|
2459
|
+
const getRootNode = useEnvironmentContext();
|
|
2460
|
+
const context = mergeProps$2({
|
|
2461
|
+
id: createUniqueId(),
|
|
2462
|
+
getRootNode,
|
|
2463
|
+
collection
|
|
2464
|
+
}, rest);
|
|
2465
|
+
const [state, send] = useMachine(select.machine(context), {
|
|
2466
|
+
context
|
|
2467
|
+
});
|
|
2468
|
+
return createMemo(() => select.connect(state, send, normalizeProps));
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2471
|
+
const Select$1 = props => {
|
|
2472
|
+
const [selectProps, localProps] = createSplitProps()(props, ['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']);
|
|
2473
|
+
const api = useSelect(selectProps);
|
|
2474
|
+
const mergedProps = mergeProps$2(() => api().rootProps, localProps);
|
|
2475
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
2476
|
+
return createComponent(SelectProvider, {
|
|
2477
|
+
value: api,
|
|
2478
|
+
get children() {
|
|
2479
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
2480
|
+
get children() {
|
|
2481
|
+
return getChildren();
|
|
2482
|
+
}
|
|
2483
|
+
}));
|
|
2484
|
+
}
|
|
2485
|
+
});
|
|
2486
|
+
};
|
|
2487
|
+
|
|
2488
|
+
const SelectClearTrigger = props => {
|
|
2489
|
+
const api = useSelectContext();
|
|
2490
|
+
const mergedProps = mergeProps$2(() => api().clearTriggerProps, props);
|
|
2491
|
+
return createComponent(ark.button, mergedProps);
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
const SelectContent = props => {
|
|
2495
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
2496
|
+
const api = useSelectContext();
|
|
2497
|
+
const mergedProps = mergeProps$2(() => api().contentProps, localProps);
|
|
2498
|
+
return createComponent(Presence, mergeProps$1({
|
|
2499
|
+
get present() {
|
|
2500
|
+
return api().isOpen;
|
|
2501
|
+
}
|
|
2502
|
+
}, presenceProps, {
|
|
2503
|
+
get children() {
|
|
2504
|
+
return createComponent(ark.div, mergedProps);
|
|
2505
|
+
}
|
|
2506
|
+
}));
|
|
2507
|
+
};
|
|
2508
|
+
|
|
2509
|
+
const SelectControl = props => {
|
|
2510
|
+
const api = useSelectContext();
|
|
2511
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2512
|
+
return createComponent(ark.div, mergedProps);
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
const SelectIndicator = props => {
|
|
2516
|
+
const api = useSelectContext();
|
|
2517
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2518
|
+
return createComponent(ark.div, mergedProps);
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
const [SelectItemProvider, useSelectItemContext] = createContext({
|
|
2522
|
+
hookName: 'useSelectItemContext',
|
|
2523
|
+
providerName: '<SelectItemProvider />'
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2526
|
+
const SelectItem = props => {
|
|
2527
|
+
const [itemProps, localProps] = createSplitProps()(props, ['item']);
|
|
2528
|
+
const api = useSelectContext();
|
|
2529
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), localProps);
|
|
2530
|
+
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
2531
|
+
return createComponent(SelectItemProvider, {
|
|
2532
|
+
value: itemProps,
|
|
2533
|
+
get children() {
|
|
2534
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
2535
|
+
get children() {
|
|
2536
|
+
return getChildren();
|
|
2537
|
+
}
|
|
2538
|
+
}));
|
|
2539
|
+
}
|
|
2540
|
+
});
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
const SelectItemGroup = props => {
|
|
2544
|
+
const [groupProps, localProps] = createSplitProps()(props, ['id']);
|
|
2545
|
+
const api = useSelectContext();
|
|
2546
|
+
const mergedProps = mergeProps$2(() => api().getItemGroupProps(groupProps), localProps);
|
|
2547
|
+
return createComponent(ark.div, mergedProps);
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
const SelectItemGroupLabel = props => {
|
|
2551
|
+
const [labelProps, localProps] = createSplitProps()(props, ['htmlFor']);
|
|
2552
|
+
const api = useSelectContext();
|
|
2553
|
+
const mergedProps = mergeProps$2(() => api().getItemGroupLabelProps(labelProps), localProps);
|
|
2554
|
+
return createComponent(ark.div, mergedProps);
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2557
|
+
const SelectItemIndicator = props => {
|
|
2558
|
+
const api = useSelectContext();
|
|
2559
|
+
const itemProps = useSelectItemContext();
|
|
2560
|
+
const mergedProps = mergeProps$2(() => api().getItemIndicatorProps(itemProps), props);
|
|
2561
|
+
return createComponent(ark.div, mergedProps);
|
|
2562
|
+
};
|
|
2563
|
+
|
|
2564
|
+
const SelectItemText = props => {
|
|
2565
|
+
const api = useSelectContext();
|
|
2566
|
+
const itemProps = useSelectItemContext();
|
|
2567
|
+
const mergedProps = mergeProps$2(() => api().getItemTextProps(itemProps), props);
|
|
2568
|
+
return createComponent(ark.span, mergedProps);
|
|
2569
|
+
};
|
|
2570
|
+
|
|
2571
|
+
const SelectLabel = props => {
|
|
2572
|
+
const api = useSelectContext();
|
|
2573
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
2574
|
+
return createComponent(ark.label, mergedProps);
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2577
|
+
const SelectPositioner = props => {
|
|
2578
|
+
const api = useSelectContext();
|
|
2579
|
+
const mergedProps = mergeProps$2(() => api().positionerProps, props);
|
|
2580
|
+
return createComponent(ark.div, mergedProps);
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2583
|
+
const SelectTrigger = props => {
|
|
2584
|
+
const api = useSelectContext();
|
|
2585
|
+
const mergedProps = mergeProps$2(() => api().triggerProps, props);
|
|
2586
|
+
return createComponent(ark.button, mergedProps);
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
const SelectValueText = props => {
|
|
2590
|
+
const api = useSelectContext();
|
|
2591
|
+
const mergedProps = mergeProps$2(() => selectAnatomy.build().valueText.attrs, props);
|
|
2592
|
+
return createComponent(ark.span, mergeProps$1(mergedProps, {
|
|
2593
|
+
get children() {
|
|
2594
|
+
return api().valueAsString || props.placeholder;
|
|
2595
|
+
}
|
|
2596
|
+
}));
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2599
|
+
const Select = Object.assign(Select$1, {
|
|
2600
|
+
Root: Select$1,
|
|
2601
|
+
ClearTrigger: SelectClearTrigger,
|
|
2602
|
+
Content: SelectContent,
|
|
2603
|
+
Control: SelectControl,
|
|
2604
|
+
Indicator: SelectIndicator,
|
|
2605
|
+
Item: SelectItem,
|
|
2606
|
+
ItemGroup: SelectItemGroup,
|
|
2607
|
+
ItemGroupLabel: SelectItemGroupLabel,
|
|
2608
|
+
ItemIndicator: SelectItemIndicator,
|
|
2609
|
+
ItemText: SelectItemText,
|
|
2610
|
+
Label: SelectLabel,
|
|
2611
|
+
Positioner: SelectPositioner,
|
|
2612
|
+
Trigger: SelectTrigger,
|
|
2613
|
+
ValueText: SelectValueText
|
|
2614
|
+
});
|
|
2615
|
+
|
|
2616
|
+
const [SliderProvider, useSliderContext] = createContext({
|
|
2617
|
+
hookName: 'useSliderContext',
|
|
2618
|
+
providerName: '<SliderProvider />'
|
|
2619
|
+
});
|
|
2620
|
+
|
|
2621
|
+
const useSlider = props => {
|
|
2622
|
+
const getRootNode = useEnvironmentContext();
|
|
2623
|
+
const context = mergeProps$2({
|
|
2624
|
+
id: createUniqueId(),
|
|
2625
|
+
getRootNode
|
|
2626
|
+
}, props);
|
|
2627
|
+
const [state, send] = useMachine(slider.machine(context), {
|
|
2628
|
+
context
|
|
2629
|
+
});
|
|
2630
|
+
return createMemo(() => slider.connect(state, send, normalizeProps));
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
const Slider$1 = props => {
|
|
2634
|
+
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']);
|
|
2635
|
+
const api = useSlider(sliderParams);
|
|
2636
|
+
const mergedProps = mergeProps$2(() => api().rootProps, restProps);
|
|
2637
|
+
const getChildren = () => runIfFn(restProps.children, api);
|
|
2638
|
+
return createComponent(SliderProvider, {
|
|
2639
|
+
value: api,
|
|
2640
|
+
get children() {
|
|
2641
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
2642
|
+
get children() {
|
|
2643
|
+
return getChildren();
|
|
2644
|
+
}
|
|
2645
|
+
}));
|
|
2646
|
+
}
|
|
2647
|
+
});
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
const SliderControl = props => {
|
|
2651
|
+
const api = useSliderContext();
|
|
2652
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2653
|
+
return createComponent(ark.div, mergedProps);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
const SliderLabel = props => {
|
|
2657
|
+
const api = useSliderContext();
|
|
2658
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
2659
|
+
return createComponent(ark.label, mergedProps);
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
const SliderMarker = props => {
|
|
2663
|
+
const [markerProps, localProps] = createSplitProps()(props, ['value']);
|
|
2664
|
+
const api = useSliderContext();
|
|
2665
|
+
const mergedProps = mergeProps$2(() => api().getMarkerProps(markerProps), localProps);
|
|
2666
|
+
return createComponent(ark.span, mergedProps);
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
const SliderMarkerGroup = props => {
|
|
2670
|
+
const api = useSliderContext();
|
|
2671
|
+
const mergedProps = mergeProps$2(() => api().markerGroupProps, props);
|
|
2672
|
+
return createComponent(ark.div, mergedProps);
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
const SliderOutput = props => {
|
|
2676
|
+
const slider = useSliderContext();
|
|
2677
|
+
const getChildren = () => runIfFn(props.children, slider);
|
|
2678
|
+
const outputProps = mergeProps$2(() => slider().outputProps, props);
|
|
2679
|
+
return createComponent(ark.output, mergeProps$1(outputProps, {
|
|
2680
|
+
get children() {
|
|
2681
|
+
return getChildren();
|
|
2682
|
+
}
|
|
2683
|
+
}));
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
const SliderRange = props => {
|
|
2687
|
+
const api = useSliderContext();
|
|
2688
|
+
const mergedProps = mergeProps$2(() => api().rangeProps, props);
|
|
2689
|
+
return createComponent(ark.div, mergedProps);
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
const SliderThumb = props => {
|
|
2693
|
+
const [thumbProps, localProps] = createSplitProps()(props, ['index']);
|
|
2694
|
+
const api = useSliderContext();
|
|
2695
|
+
const mergePdrops = mergeProps$2(() => api().getThumbProps(thumbProps), localProps);
|
|
2696
|
+
return createComponent(ark.div, mergePdrops);
|
|
2697
|
+
};
|
|
2698
|
+
|
|
2699
|
+
const SliderTrack = props => {
|
|
2700
|
+
const api = useSliderContext();
|
|
2701
|
+
const mergedProps = mergeProps$2(() => api().trackProps, props);
|
|
2702
|
+
return createComponent(ark.div, mergedProps);
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2705
|
+
const Slider = Object.assign(Slider$1, {
|
|
2706
|
+
Root: Slider$1,
|
|
2707
|
+
Control: SliderControl,
|
|
2708
|
+
Label: SliderLabel,
|
|
2709
|
+
Marker: SliderMarker,
|
|
2710
|
+
MarkerGroup: SliderMarkerGroup,
|
|
2711
|
+
Output: SliderOutput,
|
|
2712
|
+
Range: SliderRange,
|
|
2713
|
+
Thumb: SliderThumb,
|
|
2714
|
+
Track: SliderTrack
|
|
2715
|
+
});
|
|
2716
|
+
|
|
2717
|
+
const [SplitterProvider, useSplitterContext] = createContext({
|
|
2718
|
+
hookName: 'useSplitterContext',
|
|
2719
|
+
providerName: '<SplitterProvider />'
|
|
2720
|
+
});
|
|
2721
|
+
|
|
2722
|
+
const useSplitter = props => {
|
|
2723
|
+
const getRootNode = useEnvironmentContext();
|
|
2724
|
+
const context = mergeProps$2({
|
|
2725
|
+
id: createUniqueId(),
|
|
2726
|
+
getRootNode
|
|
2727
|
+
}, props);
|
|
2728
|
+
const [state, send] = useMachine(splitter.machine(context), {
|
|
2729
|
+
context
|
|
2730
|
+
});
|
|
2731
|
+
return createMemo(() => splitter.connect(state, send, normalizeProps));
|
|
2732
|
+
};
|
|
2733
|
+
|
|
2734
|
+
const Splitter$1 = props => {
|
|
2735
|
+
const [splitterParams, localProps] = createSplitProps()(props, ['dir', 'getRootNode', 'id', 'ids', 'onSizeChange', 'onSizeChangeEnd', 'onSizeChangeStart', 'orientation', 'size']);
|
|
2736
|
+
const api = useSplitter(splitterParams);
|
|
2737
|
+
const getChildren = () => runIfFn(localProps.children, api);
|
|
2738
|
+
const rootProps = mergeProps$2(() => api().rootProps, localProps);
|
|
2739
|
+
return createComponent(SplitterProvider, {
|
|
2740
|
+
value: api,
|
|
2741
|
+
get children() {
|
|
2742
|
+
return createComponent(ark.div, mergeProps$1(rootProps, {
|
|
2743
|
+
get children() {
|
|
2744
|
+
return getChildren();
|
|
2745
|
+
}
|
|
2746
|
+
}));
|
|
2747
|
+
}
|
|
2748
|
+
});
|
|
2749
|
+
};
|
|
2750
|
+
|
|
2751
|
+
const SplitterPanel = props => {
|
|
2752
|
+
const [panelParams, restProps] = createSplitProps()(props, ['id', 'snapSize']);
|
|
2753
|
+
const api = useSplitterContext();
|
|
2754
|
+
const panelProps = mergeProps$2(() => api().getPanelProps(panelParams), restProps);
|
|
2755
|
+
return createComponent(ark.div, panelProps);
|
|
2756
|
+
};
|
|
2757
|
+
|
|
2758
|
+
const SplitterResizeTrigger = props => {
|
|
2759
|
+
const api = useSplitterContext();
|
|
2760
|
+
const [triggerParams, restProps] = createSplitProps()(props, ['disabled', 'id', 'step']);
|
|
2761
|
+
const triggerProps = mergeProps$2(() => api().getResizeTriggerProps(triggerParams), restProps);
|
|
2762
|
+
return createComponent(ark.button, triggerProps);
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2765
|
+
const Splitter = Object.assign(Splitter$1, {
|
|
2766
|
+
Root: Splitter$1,
|
|
2767
|
+
Panel: SplitterPanel,
|
|
2768
|
+
ResizeTrigger: SplitterResizeTrigger
|
|
2769
|
+
});
|
|
2770
|
+
|
|
2771
|
+
const [SwitchProvider, useSwitchContext] = createContext({
|
|
2772
|
+
hookName: 'useSwitchContext',
|
|
2773
|
+
providerName: '<SwitchProvider />'
|
|
2774
|
+
});
|
|
2775
|
+
|
|
2776
|
+
const useSwitch = props => {
|
|
2777
|
+
const getRootNode = useEnvironmentContext();
|
|
2778
|
+
const context = mergeProps$2({
|
|
2779
|
+
id: createUniqueId(),
|
|
2780
|
+
getRootNode
|
|
2781
|
+
}, props);
|
|
2782
|
+
const [state, send] = useMachine(zagSwitch.machine(context), {
|
|
2783
|
+
context
|
|
2784
|
+
});
|
|
2785
|
+
return createMemo(() => zagSwitch.connect(state, send, normalizeProps));
|
|
2786
|
+
};
|
|
2787
|
+
|
|
2788
|
+
const Switch$1 = props => {
|
|
2789
|
+
const [switchProps, labelProps] = createSplitProps()(props, ['checked', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'label', 'name', 'onCheckedChange', 'required', 'value']);
|
|
2790
|
+
const api = useSwitch(switchProps);
|
|
2791
|
+
const mergedProps = mergeProps$2(() => api().rootProps, labelProps);
|
|
2792
|
+
const getChildren = () => runIfFn(props.children, api);
|
|
2793
|
+
return createComponent(SwitchProvider, {
|
|
2794
|
+
value: api,
|
|
2795
|
+
get children() {
|
|
2796
|
+
return createComponent(ark.label, mergeProps$1(mergedProps, {
|
|
2797
|
+
get children() {
|
|
2798
|
+
return getChildren();
|
|
2799
|
+
}
|
|
2800
|
+
}));
|
|
2801
|
+
}
|
|
2802
|
+
});
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2805
|
+
const _tmpl$$1 = /*#__PURE__*/template(`<input>`);
|
|
2806
|
+
const SwitchControl = props => {
|
|
2807
|
+
const api = useSwitchContext();
|
|
2808
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2809
|
+
return [createComponent(ark.span, mergedProps), (() => {
|
|
2810
|
+
const _el$ = _tmpl$$1();
|
|
2811
|
+
spread$1(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
2812
|
+
return _el$;
|
|
2813
|
+
})()];
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
const SwitchLabel = props => {
|
|
2817
|
+
const checkbox = useSwitchContext();
|
|
2818
|
+
const labelProps = mergeProps$2(() => checkbox().labelProps, props);
|
|
2819
|
+
return createComponent(ark.span, labelProps);
|
|
2820
|
+
};
|
|
2821
|
+
|
|
2822
|
+
const SwitchThumb = props => {
|
|
2823
|
+
const checkbox = useSwitchContext();
|
|
2824
|
+
const thumbProps = mergeProps$2(() => checkbox().thumbProps, props);
|
|
2825
|
+
return createComponent(ark.span, thumbProps);
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
const Switch = Object.assign(Switch$1, {
|
|
2829
|
+
Root: Switch$1,
|
|
2830
|
+
Control: SwitchControl,
|
|
2831
|
+
Label: SwitchLabel,
|
|
2832
|
+
Thumb: SwitchThumb
|
|
2833
|
+
});
|
|
2834
|
+
|
|
2835
|
+
const [TabsProvider, useTabsContext] = createContext({
|
|
2836
|
+
hookName: 'useTabsContext',
|
|
2837
|
+
providerName: '<TabsProvider />'
|
|
2838
|
+
});
|
|
2839
|
+
|
|
2840
|
+
const TabPresence = props => {
|
|
2841
|
+
const api = useTabsContext();
|
|
2842
|
+
return createComponent(Presence, mergeProps$1({
|
|
2843
|
+
get present() {
|
|
2844
|
+
return api().value === props.value;
|
|
2845
|
+
}
|
|
2846
|
+
}, props));
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
const TabContent = props => {
|
|
2850
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
2851
|
+
const [getContentProps, restProps] = createSplitProps()(localProps, ['value']);
|
|
2852
|
+
const api = useTabsContext();
|
|
2853
|
+
const contentProps = mergeProps$2(() => api().getContentProps(getContentProps), restProps);
|
|
2854
|
+
return createComponent(TabPresence, mergeProps$1(presenceProps, getContentProps, {
|
|
2855
|
+
get children() {
|
|
2856
|
+
return createComponent(ark.div, contentProps);
|
|
2857
|
+
}
|
|
2858
|
+
}));
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
const TabIndicator = props => {
|
|
2862
|
+
const api = useTabsContext();
|
|
2863
|
+
const indicatorProps = mergeProps$2(() => api().indicatorProps, props);
|
|
2864
|
+
return createComponent(ark.div, indicatorProps);
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
const TabList = props => {
|
|
2868
|
+
const api = useTabsContext();
|
|
2869
|
+
const tablistProps = mergeProps$2(() => api().tablistProps, props);
|
|
2870
|
+
return createComponent(ark.div, tablistProps);
|
|
2871
|
+
};
|
|
2872
|
+
|
|
2873
|
+
const TabTrigger = props => {
|
|
2874
|
+
const [tabParams, restProps] = createSplitProps()(props, ['disabled', 'value']);
|
|
2875
|
+
const api = useTabsContext();
|
|
2876
|
+
const triggerProps = mergeProps$2(() => api().getTriggerProps(tabParams), restProps);
|
|
2877
|
+
return createComponent(ark.button, triggerProps);
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
const useTabs = props => {
|
|
2881
|
+
const getRootNode = useEnvironmentContext();
|
|
2882
|
+
const context = mergeProps$2({
|
|
2883
|
+
id: createUniqueId(),
|
|
2884
|
+
getRootNode
|
|
2885
|
+
}, props);
|
|
2886
|
+
const [state, send] = useMachine(tabs.machine(context), {
|
|
2887
|
+
context
|
|
2888
|
+
});
|
|
2889
|
+
return createMemo(() => tabs.connect(state, send, normalizeProps));
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
const Tabs$1 = props => {
|
|
2893
|
+
const [tabsParams, restProps] = createSplitProps()(props, ['activationMode', 'dir', 'getRootNode', 'id', 'ids', 'loop', 'onFocusChange', 'onValueChange', 'orientation', 'translations', 'value']);
|
|
2894
|
+
const api = useTabs(tabsParams);
|
|
2895
|
+
const rootProps = mergeProps$2(() => api().rootProps, restProps);
|
|
2896
|
+
return createComponent(TabsProvider, {
|
|
2897
|
+
value: api,
|
|
2898
|
+
get children() {
|
|
2899
|
+
return createComponent(ark.div, rootProps);
|
|
2900
|
+
}
|
|
2901
|
+
});
|
|
2902
|
+
};
|
|
2903
|
+
|
|
2904
|
+
const Tabs = Object.assign(Tabs$1, {
|
|
2905
|
+
Root: Tabs$1,
|
|
2906
|
+
Content: TabContent,
|
|
2907
|
+
Indicator: TabIndicator,
|
|
2908
|
+
List: TabList,
|
|
2909
|
+
Trigger: TabTrigger
|
|
2910
|
+
});
|
|
2911
|
+
|
|
2912
|
+
const [TagsInputProvider, useTagsInputContext] = createContext({
|
|
2913
|
+
hookName: 'useTagsInputContext',
|
|
2914
|
+
providerName: '<TagsInputProvider />'
|
|
2915
|
+
});
|
|
2916
|
+
|
|
2917
|
+
const useTagsInput = props => {
|
|
2918
|
+
const getRootNode = useEnvironmentContext();
|
|
2919
|
+
const context = mergeProps$2({
|
|
2920
|
+
id: createUniqueId(),
|
|
2921
|
+
getRootNode
|
|
2922
|
+
}, props);
|
|
2923
|
+
const [state, send] = useMachine(tagsInput.machine(context), {
|
|
2924
|
+
context
|
|
2925
|
+
});
|
|
2926
|
+
return createMemo(() => tagsInput.connect(state, send, normalizeProps));
|
|
2927
|
+
};
|
|
2928
|
+
|
|
2929
|
+
const _tmpl$ = /*#__PURE__*/template(`<input>`);
|
|
2930
|
+
const TagsInput$1 = props => {
|
|
2931
|
+
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']);
|
|
2932
|
+
const api = useTagsInput(tagsInputParams);
|
|
2933
|
+
const mergedProps = mergeProps$2(() => api().rootProps, restProps);
|
|
2934
|
+
const getChildren = () => runIfFn(restProps.children, api);
|
|
2935
|
+
return createComponent(TagsInputProvider, {
|
|
2936
|
+
value: api,
|
|
2937
|
+
get children() {
|
|
2938
|
+
return [createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
2939
|
+
get children() {
|
|
2940
|
+
return getChildren();
|
|
2941
|
+
}
|
|
2942
|
+
})), (() => {
|
|
2943
|
+
const _el$ = _tmpl$();
|
|
2944
|
+
spread$1(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
2945
|
+
return _el$;
|
|
2946
|
+
})()];
|
|
2947
|
+
}
|
|
2948
|
+
});
|
|
2949
|
+
};
|
|
2950
|
+
|
|
2951
|
+
const TagsInputClearTrigger = props => {
|
|
2952
|
+
const api = useTagsInputContext();
|
|
2953
|
+
const mergedProps = mergeProps$2(() => api().clearTriggerProps, props);
|
|
2954
|
+
return createComponent(ark.button, mergedProps);
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
const TagsInputControl = props => {
|
|
2958
|
+
const api = useTagsInputContext();
|
|
2959
|
+
const mergedProps = mergeProps$2(() => api().controlProps, props);
|
|
2960
|
+
return createComponent(ark.div, mergedProps);
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
const TagsInputInput = props => {
|
|
2964
|
+
const api = useTagsInputContext();
|
|
2965
|
+
const mergedProps = mergeProps$2(() => api().inputProps, props);
|
|
2966
|
+
return createComponent(ark.input, mergedProps);
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
const [TagsInputItemProvider, useTagsInputItemContext] = createContext({
|
|
2970
|
+
hookName: 'useTagsInputItemContext',
|
|
2971
|
+
providerName: '<TagsInputItemProvider />'
|
|
2972
|
+
});
|
|
2973
|
+
|
|
2974
|
+
const TagsInputItem = props => {
|
|
2975
|
+
const [itemProps, localProps] = createSplitProps()(props, ['disabled', 'index', 'value']);
|
|
2976
|
+
const api = useTagsInputContext();
|
|
2977
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), localProps);
|
|
2978
|
+
const getChildren = () => runIfFn(localProps.children, () => api().getItemState(itemProps));
|
|
2979
|
+
return createComponent(TagsInputItemProvider, {
|
|
2980
|
+
value: itemProps,
|
|
2981
|
+
get children() {
|
|
2982
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
2983
|
+
get children() {
|
|
2984
|
+
return getChildren();
|
|
2985
|
+
}
|
|
2986
|
+
}));
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
};
|
|
2990
|
+
|
|
2991
|
+
const TagsInputItemDeleteTrigger = props => {
|
|
2992
|
+
const api = useTagsInputContext();
|
|
2993
|
+
const itemProps = useTagsInputItemContext();
|
|
2994
|
+
const mergedProps = mergeProps$2(() => api().getItemDeleteTriggerProps(itemProps), props);
|
|
2995
|
+
return createComponent(ark.button, mergedProps);
|
|
2996
|
+
};
|
|
2997
|
+
|
|
2998
|
+
const TagsInputItemInput = props => {
|
|
2999
|
+
const api = useTagsInputContext();
|
|
3000
|
+
const itemProps = useTagsInputItemContext();
|
|
3001
|
+
const mergedProps = mergeProps$2(() => api().getItemInputProps(itemProps), props);
|
|
3002
|
+
return createComponent(ark.input, mergedProps);
|
|
3003
|
+
};
|
|
3004
|
+
|
|
3005
|
+
const TagsInputItemText = props => {
|
|
3006
|
+
const api = useTagsInputContext();
|
|
3007
|
+
const itemProps = useTagsInputItemContext();
|
|
3008
|
+
const mergedProps = mergeProps$2(() => api().getItemTextProps(itemProps), props);
|
|
3009
|
+
return createComponent(ark.span, mergedProps);
|
|
3010
|
+
};
|
|
3011
|
+
|
|
3012
|
+
const TagsInputLabel = props => {
|
|
3013
|
+
const api = useTagsInputContext();
|
|
3014
|
+
const mergedProps = mergeProps$2(() => api().labelProps, props);
|
|
3015
|
+
return createComponent(ark.label, mergedProps);
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
const TagsInput = Object.assign(TagsInput$1, {
|
|
3019
|
+
Root: TagsInput$1,
|
|
3020
|
+
ClearTrigger: TagsInputClearTrigger,
|
|
3021
|
+
Control: TagsInputControl,
|
|
3022
|
+
Input: TagsInputInput,
|
|
3023
|
+
Item: TagsInputItem,
|
|
3024
|
+
ItemDeleteTrigger: TagsInputItemDeleteTrigger,
|
|
3025
|
+
ItemInput: TagsInputItemInput,
|
|
3026
|
+
ItemText: TagsInputItemText,
|
|
3027
|
+
Label: TagsInputLabel
|
|
3028
|
+
});
|
|
3029
|
+
|
|
3030
|
+
const [ToastProvider, useToastContext] = createContext({
|
|
3031
|
+
hookName: 'useToastContext',
|
|
3032
|
+
providerName: '<ToastProvider />'
|
|
3033
|
+
});
|
|
3034
|
+
|
|
3035
|
+
// TODO simplify types after next zag.js upgrade
|
|
3036
|
+
|
|
3037
|
+
const createToaster = props => {
|
|
3038
|
+
const {
|
|
3039
|
+
placement,
|
|
3040
|
+
...rest
|
|
3041
|
+
} = props;
|
|
3042
|
+
const service = toast.group.machine({
|
|
3043
|
+
id: '1',
|
|
3044
|
+
placement,
|
|
3045
|
+
...rest
|
|
3046
|
+
}).start();
|
|
3047
|
+
const [state, send] = useActor(service);
|
|
3048
|
+
const api = createMemo(() => toast.group.connect(state, send, normalizeProps));
|
|
3049
|
+
const Toaster = props => {
|
|
3050
|
+
const getRootNode = useEnvironmentContext();
|
|
3051
|
+
createEffect(() => {
|
|
3052
|
+
service.setContext({
|
|
3053
|
+
getRootNode
|
|
3054
|
+
});
|
|
3055
|
+
onCleanup(() => service.stop());
|
|
3056
|
+
});
|
|
3057
|
+
const mergedProps = mergeProps$2(() => api().getGroupProps({
|
|
3058
|
+
placement
|
|
3059
|
+
}), props);
|
|
3060
|
+
return createComponent(ark.ol, mergeProps$1(mergedProps, {
|
|
3061
|
+
get children() {
|
|
3062
|
+
return createComponent(Index, {
|
|
3063
|
+
get each() {
|
|
3064
|
+
return api().toastsByPlacement[placement];
|
|
3065
|
+
},
|
|
3066
|
+
children: toast => createComponent(ToastProviderFactory, {
|
|
3067
|
+
get service() {
|
|
3068
|
+
return toast();
|
|
3069
|
+
}
|
|
3070
|
+
})
|
|
3071
|
+
});
|
|
3072
|
+
}
|
|
3073
|
+
}));
|
|
3074
|
+
};
|
|
3075
|
+
return [Toaster, api];
|
|
3076
|
+
};
|
|
3077
|
+
const ToastProviderFactory = props => {
|
|
3078
|
+
const [state, send] = useActor(props.service);
|
|
3079
|
+
const api = toast.connect(state, send, normalizeProps);
|
|
3080
|
+
return createComponent(ToastProvider, {
|
|
3081
|
+
get value() {
|
|
3082
|
+
return createMemo(() => api);
|
|
3083
|
+
},
|
|
3084
|
+
get children() {
|
|
3085
|
+
return state.context.render?.(api);
|
|
3086
|
+
}
|
|
3087
|
+
});
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3090
|
+
const Toast$1 = props => {
|
|
3091
|
+
const api = useToastContext();
|
|
3092
|
+
const mergedProps = mergeProps$2(() => api().rootProps, props);
|
|
3093
|
+
return createComponent(ark.li, mergedProps);
|
|
3094
|
+
};
|
|
3095
|
+
|
|
3096
|
+
const ToastCloseTrigger = props => {
|
|
3097
|
+
const api = useToastContext();
|
|
3098
|
+
const mergedProps = mergeProps$2(() => api().closeTriggerProps, props);
|
|
3099
|
+
return createComponent(ark.button, mergedProps);
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
const ToastDescription = props => {
|
|
3103
|
+
const api = useToastContext();
|
|
3104
|
+
const mergedProps = mergeProps$2(() => api().descriptionProps, props);
|
|
3105
|
+
return createComponent(ark.div, mergedProps);
|
|
3106
|
+
};
|
|
3107
|
+
|
|
3108
|
+
const ToastTitle = props => {
|
|
3109
|
+
const api = useToastContext();
|
|
3110
|
+
const mergedProps = mergeProps$2(() => api().titleProps, props);
|
|
3111
|
+
return createComponent(ark.div, mergedProps);
|
|
3112
|
+
};
|
|
3113
|
+
|
|
3114
|
+
const Toast = Object.assign(Toast$1, {
|
|
3115
|
+
Root: Toast$1,
|
|
3116
|
+
Title: ToastTitle,
|
|
3117
|
+
Description: ToastDescription,
|
|
3118
|
+
CloseTrigger: ToastCloseTrigger
|
|
3119
|
+
});
|
|
3120
|
+
|
|
3121
|
+
const [ToggleGroupProvider, useToggleGroupContext] = createContext({
|
|
3122
|
+
hookName: 'useToggleGroupContext',
|
|
3123
|
+
providerName: '<ToggleGroupProvider />'
|
|
3124
|
+
});
|
|
3125
|
+
|
|
3126
|
+
const useToggleGroup = props => {
|
|
3127
|
+
const getRootNode = useEnvironmentContext();
|
|
3128
|
+
const context = mergeProps$2({
|
|
3129
|
+
id: createUniqueId(),
|
|
3130
|
+
getRootNode
|
|
3131
|
+
}, props);
|
|
3132
|
+
const [state, send] = useMachine(toggleGroup.machine(context), {
|
|
3133
|
+
context
|
|
3134
|
+
});
|
|
3135
|
+
return createMemo(() => toggleGroup.connect(state, send, normalizeProps));
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
const ToggleGroup$1 = props => {
|
|
3139
|
+
const [groupParams, restProps] = createSplitProps()(props, ['dir', 'disabled', 'getRootNode', 'id', 'ids', 'loop', 'multiple', 'onValueChange', 'orientation', 'rovingFocus', 'value']);
|
|
3140
|
+
const api = useToggleGroup(groupParams);
|
|
3141
|
+
const rootProps = mergeProps$2(() => api().rootProps, restProps);
|
|
3142
|
+
return createComponent(ToggleGroupProvider, {
|
|
3143
|
+
value: api,
|
|
3144
|
+
get children() {
|
|
3145
|
+
return createComponent(ark.div, rootProps);
|
|
3146
|
+
}
|
|
3147
|
+
});
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
const ToggleGroupItem = props => {
|
|
3151
|
+
const [toggleProps, restProps] = createSplitProps()(props, ['value', 'disabled']);
|
|
3152
|
+
const api = useToggleGroupContext();
|
|
3153
|
+
const mergedProps = mergeProps$2(() => api().getItemProps(toggleProps), restProps);
|
|
3154
|
+
return createComponent(ark.button, mergedProps);
|
|
3155
|
+
};
|
|
3156
|
+
|
|
3157
|
+
const ToggleGroup = Object.assign(ToggleGroup$1, {
|
|
3158
|
+
Root: ToggleGroup$1,
|
|
3159
|
+
Item: ToggleGroupItem
|
|
3160
|
+
});
|
|
3161
|
+
|
|
3162
|
+
const [TooltipProvider, useTooltipContext] = createContext({
|
|
3163
|
+
hookName: 'useTooltipContext',
|
|
3164
|
+
providerName: '<TooltipProvider />'
|
|
3165
|
+
});
|
|
3166
|
+
|
|
3167
|
+
const useTooltip = props => {
|
|
3168
|
+
const getRootNode = useEnvironmentContext();
|
|
3169
|
+
const context = mergeProps$2({
|
|
3170
|
+
id: createUniqueId(),
|
|
3171
|
+
getRootNode
|
|
3172
|
+
}, props);
|
|
3173
|
+
const [state, send] = useMachine(tooltip.machine(context), {
|
|
3174
|
+
context
|
|
3175
|
+
});
|
|
3176
|
+
return createMemo(() => tooltip.connect(state, send, normalizeProps));
|
|
3177
|
+
};
|
|
3178
|
+
|
|
3179
|
+
const Tooltip$1 = props => {
|
|
3180
|
+
const [useTooltipProps, restProps] = createSplitProps()(props, ['aria-label', 'closeDelay', 'closeOnEsc', 'closeOnPointerDown', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'interactive', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
3181
|
+
const api = useTooltip(useTooltipProps);
|
|
3182
|
+
return createComponent(TooltipProvider, mergeProps$1({
|
|
3183
|
+
value: api
|
|
3184
|
+
}, restProps));
|
|
3185
|
+
};
|
|
3186
|
+
|
|
3187
|
+
const TooltipArrow = props => {
|
|
3188
|
+
const tooltip = useTooltipContext();
|
|
3189
|
+
const arrowProps = mergeProps$2(() => tooltip().arrowProps, props);
|
|
3190
|
+
return createComponent(ark.div, arrowProps);
|
|
3191
|
+
};
|
|
3192
|
+
|
|
3193
|
+
const TooltipArrowTip = props => {
|
|
3194
|
+
const api = useTooltipContext();
|
|
3195
|
+
const arrowTipProps = mergeProps$2(() => api().arrowTipProps, props);
|
|
3196
|
+
return createComponent(ark.div, arrowTipProps);
|
|
3197
|
+
};
|
|
3198
|
+
|
|
3199
|
+
const TooltipContent = props => {
|
|
3200
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
3201
|
+
const api = useTooltipContext();
|
|
3202
|
+
const contentProps = mergeProps$2(() => api().contentProps, localProps);
|
|
3203
|
+
return createComponent(Presence, mergeProps$1({
|
|
3204
|
+
get present() {
|
|
3205
|
+
return api().isOpen;
|
|
3206
|
+
}
|
|
3207
|
+
}, presenceProps, {
|
|
3208
|
+
get children() {
|
|
3209
|
+
return createComponent(ark.div, contentProps);
|
|
3210
|
+
}
|
|
3211
|
+
}));
|
|
3212
|
+
};
|
|
3213
|
+
|
|
3214
|
+
const TooltipPositioner = props => {
|
|
3215
|
+
const api = useTooltipContext();
|
|
3216
|
+
const positionerProps = mergeProps$2(() => api().positionerProps, props);
|
|
3217
|
+
return createComponent(ark.div, positionerProps);
|
|
3218
|
+
};
|
|
3219
|
+
|
|
3220
|
+
const TooltipTrigger = props => {
|
|
3221
|
+
const api = useTooltipContext();
|
|
3222
|
+
const triggerProps = mergeProps$2(() => api().triggerProps, props);
|
|
3223
|
+
return createComponent(ark.button, triggerProps);
|
|
3224
|
+
};
|
|
3225
|
+
|
|
3226
|
+
const Tooltip = Object.assign(Tooltip$1, {
|
|
3227
|
+
Root: Tooltip$1,
|
|
3228
|
+
Arrow: TooltipArrow,
|
|
3229
|
+
ArrowTip: TooltipArrowTip,
|
|
3230
|
+
Content: TooltipContent,
|
|
3231
|
+
Positioner: TooltipPositioner,
|
|
3232
|
+
Trigger: TooltipTrigger
|
|
3233
|
+
});
|
|
3234
|
+
|
|
3235
|
+
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemIndicator, AccordionItemTrigger, Avatar, AvatarFallback, AvatarImage, Carousel, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, CarouselNextTrigger, CarouselPrevTrigger, CarouselViewport, Checkbox, CheckboxControl, CheckboxIndicator, CheckboxLabel, ColorPicker, ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerLabel, ColorPickerPositioner, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, DatePicker, DatePickerClearTrigger, DatePickerContent, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPrevTrigger, DatePickerRangeText, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerYearSelect, Dialog, DialogBackdrop, DialogCloseTrigger, DialogContent, DialogDescription, DialogPositioner, DialogTitle, DialogTrigger, Editable, EditableArea, EditableCancelTrigger, EditableControl, EditableEditTrigger, EditableInput, EditableLabel, EditablePreview, EditableSubmitTrigger, Environment, HoverCard, HoverCardArrow, HoverCardArrowTip, HoverCardContent, HoverCardPositioner, HoverCardTrigger, Menu, MenuArrow, MenuArrowTip, MenuContent, MenuContextTrigger, MenuItem, MenuItemGroup, MenuItemGroupLabel, MenuOptionItem, MenuPositioner, MenuSeparator, MenuTrigger, MenuTriggerItem, NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber, Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, PinInput, PinInputControl, PinInputInput, PinInputLabel, Popover, PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverTitle, PopoverTrigger, Presence, RadioGroup, RadioGroupItem, RadioGroupItemControl, RadioGroupItemText, RadioGroupLabel, RatingGroup, RatingGroupControl, RatingGroupItem, RatingGroupLabel, SegmentGroup, SegmentGroupIndicator, SegmentGroupItem, SegmentGroupItemControl, SegmentGroupItemText, SegmentGroupLabel, Select, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItem, SelectItemGroup, SelectItemGroupLabel, SelectItemIndicator, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText, Slider, SliderControl, SliderLabel, SliderMarker, SliderMarkerGroup, SliderOutput, SliderRange, SliderThumb, SliderTrack, Splitter, SplitterPanel, SplitterResizeTrigger, Switch, SwitchControl, SwitchLabel, SwitchThumb, TabContent, TabIndicator, TabList, TabTrigger, Tabs, TagsInput, TagsInputClearTrigger, TagsInputControl, TagsInputInput, TagsInputItem, TagsInputItemDeleteTrigger, TagsInputItemInput, TagsInputItemText, TagsInputLabel, Toast, ToastCloseTrigger, ToastDescription, ToastTitle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipArrowTip, TooltipContent, TooltipPositioner, TooltipTrigger, ark, createToaster, splitPresenceProps, useAccordionContext, useAccordionItemContext, useAvatarContext, useCarouselContext, useCheckboxContext, useColorPickerAreaContext, useColorPickerChannelSliderContext, useColorPickerContext, useComboboxContext, useDatePickerContext, useDatePickerTableCellContext, useDatePickerTableContext, useDatePickerViewContext, useDialogContext, useEditableContext, useEnvironmentContext, useHoverCardContext, useMenuContext, useNumberInputContext, usePaginationContext, usePinInputContext, usePopoverContext, useRadioGroupContext, useRadioGroupItemContext, useRatingGroupContext, useRatingGroupItemContext, useSegmentGroupContext, useSegmentGroupItemContext, useSelectContext, useSelectItemContext, useSliderContext, useSplitterContext, useSwitchContext, useTabsContext, useTagsInputContext, useTagsInputItemContext, useToggleGroupContext, useTooltipContext };
|
|
3236
|
+
//# sourceMappingURL=index.js.map
|