@proyecto-viviana/solidaria 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunk/actiongroup.js +207 -0
- package/dist/_chunk/actiongroup.js.map +1 -0
- package/dist/_chunk/actiongroup.jsx +207 -0
- package/dist/_chunk/actiongroup.jsx.map +1 -0
- package/dist/_chunk/ariaHideOutside.js +122 -0
- package/dist/_chunk/ariaHideOutside.js.map +1 -0
- package/dist/_chunk/ariaHideOutside.jsx +122 -0
- package/dist/_chunk/ariaHideOutside.jsx.map +1 -0
- package/dist/_chunk/autocomplete.js +196 -0
- package/dist/_chunk/autocomplete.js.map +1 -0
- package/dist/_chunk/autocomplete.jsx +196 -0
- package/dist/_chunk/autocomplete.jsx.map +1 -0
- package/dist/_chunk/breadcrumbs.js +119 -0
- package/dist/_chunk/breadcrumbs.js.map +1 -0
- package/dist/_chunk/breadcrumbs.jsx +119 -0
- package/dist/_chunk/breadcrumbs.jsx.map +1 -0
- package/dist/_chunk/button.js +276 -0
- package/dist/_chunk/button.js.map +1 -0
- package/dist/_chunk/button.jsx +276 -0
- package/dist/_chunk/button.jsx.map +1 -0
- package/dist/_chunk/calendar.js +1036 -0
- package/dist/_chunk/calendar.js.map +1 -0
- package/dist/_chunk/calendar.jsx +1036 -0
- package/dist/_chunk/calendar.jsx.map +1 -0
- package/dist/_chunk/checkbox.js +234 -0
- package/dist/_chunk/checkbox.js.map +1 -0
- package/dist/_chunk/checkbox.jsx +234 -0
- package/dist/_chunk/checkbox.jsx.map +1 -0
- package/dist/_chunk/color.js +1174 -0
- package/dist/_chunk/color.js.map +1 -0
- package/dist/_chunk/color.jsx +1174 -0
- package/dist/_chunk/color.jsx.map +1 -0
- package/dist/_chunk/combobox.js +436 -0
- package/dist/_chunk/combobox.js.map +1 -0
- package/dist/_chunk/combobox.jsx +436 -0
- package/dist/_chunk/combobox.jsx.map +1 -0
- package/dist/_chunk/createCollator.js +229 -0
- package/dist/_chunk/createCollator.js.map +1 -0
- package/dist/_chunk/createCollator.jsx +223 -0
- package/dist/_chunk/createCollator.jsx.map +1 -0
- package/dist/_chunk/createCollectionRowInteraction.js +133 -0
- package/dist/_chunk/createCollectionRowInteraction.js.map +1 -0
- package/dist/_chunk/createCollectionRowInteraction.jsx +133 -0
- package/dist/_chunk/createCollectionRowInteraction.jsx.map +1 -0
- package/dist/_chunk/createField.js +54 -0
- package/dist/_chunk/createField.js.map +1 -0
- package/dist/_chunk/createField.jsx +54 -0
- package/dist/_chunk/createField.jsx.map +1 -0
- package/dist/_chunk/createFocus.js +101 -0
- package/dist/_chunk/createFocus.js.map +1 -0
- package/dist/_chunk/createFocus.jsx +101 -0
- package/dist/_chunk/createFocus.jsx.map +1 -0
- package/dist/_chunk/createFocusRing.js +54 -0
- package/dist/_chunk/createFocusRing.js.map +1 -0
- package/dist/_chunk/createFocusRing.jsx +54 -0
- package/dist/_chunk/createFocusRing.jsx.map +1 -0
- package/dist/_chunk/createFocusWithin.js +121 -0
- package/dist/_chunk/createFocusWithin.js.map +1 -0
- package/dist/_chunk/createFocusWithin.jsx +121 -0
- package/dist/_chunk/createFocusWithin.jsx.map +1 -0
- package/dist/_chunk/createFocusable.js +131 -0
- package/dist/_chunk/createFocusable.js.map +1 -0
- package/dist/_chunk/createFocusable.jsx +131 -0
- package/dist/_chunk/createFocusable.jsx.map +1 -0
- package/dist/_chunk/createFormValidation.js +135 -0
- package/dist/_chunk/createFormValidation.js.map +1 -0
- package/dist/_chunk/createFormValidation.jsx +135 -0
- package/dist/_chunk/createFormValidation.jsx.map +1 -0
- package/dist/_chunk/createHover.js +130 -0
- package/dist/_chunk/createHover.js.map +1 -0
- package/dist/_chunk/createHover.jsx +130 -0
- package/dist/_chunk/createHover.jsx.map +1 -0
- package/dist/_chunk/createInteractionModality.js +269 -0
- package/dist/_chunk/createInteractionModality.js.map +1 -0
- package/dist/_chunk/createInteractionModality.jsx +269 -0
- package/dist/_chunk/createInteractionModality.jsx.map +1 -0
- package/dist/_chunk/createLabel.js +46 -0
- package/dist/_chunk/createLabel.js.map +1 -0
- package/dist/_chunk/createLabel.jsx +46 -0
- package/dist/_chunk/createLabel.jsx.map +1 -0
- package/dist/_chunk/createLabels.js +31 -0
- package/dist/_chunk/createLabels.js.map +1 -0
- package/dist/_chunk/createLabels.jsx +31 -0
- package/dist/_chunk/createLabels.jsx.map +1 -0
- package/dist/_chunk/createLandmark.js +198 -0
- package/dist/_chunk/createLandmark.js.map +1 -0
- package/dist/_chunk/createLandmark.jsx +198 -0
- package/dist/_chunk/createLandmark.jsx.map +1 -0
- package/dist/_chunk/createLongPress.js +91 -0
- package/dist/_chunk/createLongPress.js.map +1 -0
- package/dist/_chunk/createLongPress.jsx +91 -0
- package/dist/_chunk/createLongPress.jsx.map +1 -0
- package/dist/_chunk/createOverlay.js +327 -0
- package/dist/_chunk/createOverlay.js.map +1 -0
- package/dist/_chunk/createOverlay.jsx +327 -0
- package/dist/_chunk/createOverlay.jsx.map +1 -0
- package/dist/_chunk/createPress.js +526 -0
- package/dist/_chunk/createPress.js.map +1 -0
- package/dist/_chunk/createPress.jsx +526 -0
- package/dist/_chunk/createPress.jsx.map +1 -0
- package/dist/_chunk/createProgressBar.js +81 -0
- package/dist/_chunk/createProgressBar.js.map +1 -0
- package/dist/_chunk/createProgressBar.jsx +81 -0
- package/dist/_chunk/createProgressBar.jsx.map +1 -0
- package/dist/_chunk/createSelectableItem.js +298 -0
- package/dist/_chunk/createSelectableItem.js.map +1 -0
- package/dist/_chunk/createSelectableItem.jsx +298 -0
- package/dist/_chunk/createSelectableItem.jsx.map +1 -0
- package/dist/_chunk/createToggle.js +158 -0
- package/dist/_chunk/createToggle.js.map +1 -0
- package/dist/_chunk/createToggle.jsx +158 -0
- package/dist/_chunk/createToggle.jsx.map +1 -0
- package/dist/_chunk/createTypeSelect.js +125 -0
- package/dist/_chunk/createTypeSelect.js.map +1 -0
- package/dist/_chunk/createTypeSelect.jsx +125 -0
- package/dist/_chunk/createTypeSelect.jsx.map +1 -0
- package/dist/_chunk/datepicker.js +1393 -0
- package/dist/_chunk/datepicker.js.map +1 -0
- package/dist/_chunk/datepicker.jsx +1393 -0
- package/dist/_chunk/datepicker.jsx.map +1 -0
- package/dist/_chunk/dialog.js +62 -0
- package/dist/_chunk/dialog.js.map +1 -0
- package/dist/_chunk/dialog.jsx +62 -0
- package/dist/_chunk/dialog.jsx.map +1 -0
- package/dist/_chunk/disclosure.js +185 -0
- package/dist/_chunk/disclosure.js.map +1 -0
- package/dist/_chunk/disclosure.jsx +185 -0
- package/dist/_chunk/disclosure.jsx.map +1 -0
- package/dist/_chunk/dnd.js +1304 -0
- package/dist/_chunk/dnd.js.map +1 -0
- package/dist/_chunk/dnd.jsx +1304 -0
- package/dist/_chunk/dnd.jsx.map +1 -0
- package/dist/_chunk/env.js +105 -0
- package/dist/_chunk/env.js.map +1 -0
- package/dist/_chunk/env.jsx +105 -0
- package/dist/_chunk/env.jsx.map +1 -0
- package/dist/_chunk/filterDOMProps.js +82 -0
- package/dist/_chunk/filterDOMProps.js.map +1 -0
- package/dist/_chunk/filterDOMProps.jsx +82 -0
- package/dist/_chunk/filterDOMProps.jsx.map +1 -0
- package/dist/_chunk/focus.js +399 -0
- package/dist/_chunk/focus.js.map +1 -0
- package/dist/_chunk/focus.jsx +399 -0
- package/dist/_chunk/focus.jsx.map +1 -0
- package/dist/_chunk/focus2.js +895 -0
- package/dist/_chunk/focus2.js.map +1 -0
- package/dist/_chunk/focus2.jsx +870 -0
- package/dist/_chunk/focus2.jsx.map +1 -0
- package/dist/_chunk/form.js +39 -0
- package/dist/_chunk/form.js.map +1 -0
- package/dist/_chunk/form.jsx +39 -0
- package/dist/_chunk/form.jsx.map +1 -0
- package/dist/_chunk/grid.js +623 -0
- package/dist/_chunk/grid.js.map +1 -0
- package/dist/_chunk/grid.jsx +623 -0
- package/dist/_chunk/grid.jsx.map +1 -0
- package/dist/_chunk/gridlist.js +364 -0
- package/dist/_chunk/gridlist.js.map +1 -0
- package/dist/_chunk/gridlist.jsx +364 -0
- package/dist/_chunk/gridlist.jsx.map +1 -0
- package/dist/_chunk/i18n.js +254 -0
- package/dist/_chunk/i18n.js.map +1 -0
- package/dist/_chunk/i18n.jsx +254 -0
- package/dist/_chunk/i18n.jsx.map +1 -0
- package/dist/_chunk/interactions.js +241 -0
- package/dist/_chunk/interactions.js.map +1 -0
- package/dist/_chunk/interactions.jsx +237 -0
- package/dist/_chunk/interactions.jsx.map +1 -0
- package/dist/_chunk/link.js +96 -0
- package/dist/_chunk/link.js.map +1 -0
- package/dist/_chunk/link.jsx +96 -0
- package/dist/_chunk/link.jsx.map +1 -0
- package/dist/_chunk/listbox.js +324 -0
- package/dist/_chunk/listbox.js.map +1 -0
- package/dist/_chunk/listbox.jsx +324 -0
- package/dist/_chunk/listbox.jsx.map +1 -0
- package/dist/_chunk/live-announcer.js +207 -0
- package/dist/_chunk/live-announcer.js.map +1 -0
- package/dist/_chunk/live-announcer.jsx +207 -0
- package/dist/_chunk/live-announcer.jsx.map +1 -0
- package/dist/_chunk/menu.js +518 -0
- package/dist/_chunk/menu.js.map +1 -0
- package/dist/_chunk/menu.jsx +518 -0
- package/dist/_chunk/menu.jsx.map +1 -0
- package/dist/_chunk/meter.js +33 -0
- package/dist/_chunk/meter.js.map +1 -0
- package/dist/_chunk/meter.jsx +33 -0
- package/dist/_chunk/meter.jsx.map +1 -0
- package/dist/_chunk/numberfield.js +258 -0
- package/dist/_chunk/numberfield.js.map +1 -0
- package/dist/_chunk/numberfield.jsx +258 -0
- package/dist/_chunk/numberfield.jsx.map +1 -0
- package/dist/_chunk/overlays.js +186 -0
- package/dist/_chunk/overlays.js.map +1 -0
- package/dist/_chunk/overlays.jsx +162 -0
- package/dist/_chunk/overlays.jsx.map +1 -0
- package/dist/_chunk/popover.js +574 -0
- package/dist/_chunk/popover.js.map +1 -0
- package/dist/_chunk/popover.jsx +574 -0
- package/dist/_chunk/popover.jsx.map +1 -0
- package/dist/_chunk/radio.js +319 -0
- package/dist/_chunk/radio.js.map +1 -0
- package/dist/_chunk/radio.jsx +319 -0
- package/dist/_chunk/radio.jsx.map +1 -0
- package/dist/_chunk/searchfield.js +209 -0
- package/dist/_chunk/searchfield.js.map +1 -0
- package/dist/_chunk/searchfield.jsx +209 -0
- package/dist/_chunk/searchfield.jsx.map +1 -0
- package/dist/_chunk/select.js +403 -0
- package/dist/_chunk/select.js.map +1 -0
- package/dist/_chunk/select.jsx +394 -0
- package/dist/_chunk/select.jsx.map +1 -0
- package/dist/_chunk/selection.js +679 -0
- package/dist/_chunk/selection.js.map +1 -0
- package/dist/_chunk/selection.jsx +679 -0
- package/dist/_chunk/selection.jsx.map +1 -0
- package/dist/_chunk/separator.js +29 -0
- package/dist/_chunk/separator.js.map +1 -0
- package/dist/_chunk/separator.jsx +29 -0
- package/dist/_chunk/separator.jsx.map +1 -0
- package/dist/_chunk/slider.js +255 -0
- package/dist/_chunk/slider.js.map +1 -0
- package/dist/_chunk/slider.jsx +255 -0
- package/dist/_chunk/slider.jsx.map +1 -0
- package/dist/_chunk/steplist.js +66 -0
- package/dist/_chunk/steplist.js.map +1 -0
- package/dist/_chunk/steplist.jsx +66 -0
- package/dist/_chunk/steplist.jsx.map +1 -0
- package/dist/_chunk/switch.js +34 -0
- package/dist/_chunk/switch.js.map +1 -0
- package/dist/_chunk/switch.jsx +34 -0
- package/dist/_chunk/switch.jsx.map +1 -0
- package/dist/_chunk/table.js +1051 -0
- package/dist/_chunk/table.js.map +1 -0
- package/dist/_chunk/table.jsx +1051 -0
- package/dist/_chunk/table.jsx.map +1 -0
- package/dist/_chunk/tabs.js +260 -0
- package/dist/_chunk/tabs.js.map +1 -0
- package/dist/_chunk/tabs.jsx +260 -0
- package/dist/_chunk/tabs.jsx.map +1 -0
- package/dist/_chunk/tag.js +286 -0
- package/dist/_chunk/tag.js.map +1 -0
- package/dist/_chunk/tag.jsx +286 -0
- package/dist/_chunk/tag.jsx.map +1 -0
- package/dist/_chunk/textfield.js +109 -0
- package/dist/_chunk/textfield.js.map +1 -0
- package/dist/_chunk/textfield.jsx +109 -0
- package/dist/_chunk/textfield.jsx.map +1 -0
- package/dist/_chunk/toast.js +250 -0
- package/dist/_chunk/toast.js.map +1 -0
- package/dist/_chunk/toast.jsx +250 -0
- package/dist/_chunk/toast.jsx.map +1 -0
- package/dist/_chunk/toolbar.js +258 -0
- package/dist/_chunk/toolbar.js.map +1 -0
- package/dist/_chunk/toolbar.jsx +258 -0
- package/dist/_chunk/toolbar.jsx.map +1 -0
- package/dist/_chunk/tooltip.js +185 -0
- package/dist/_chunk/tooltip.js.map +1 -0
- package/dist/_chunk/tooltip.jsx +185 -0
- package/dist/_chunk/tooltip.jsx.map +1 -0
- package/dist/_chunk/tree.js +424 -0
- package/dist/_chunk/tree.js.map +1 -0
- package/dist/_chunk/tree.jsx +424 -0
- package/dist/_chunk/tree.jsx.map +1 -0
- package/dist/_chunk/utils.js +665 -0
- package/dist/_chunk/utils.js.map +1 -0
- package/dist/_chunk/utils.jsx +665 -0
- package/dist/_chunk/utils.jsx.map +1 -0
- package/dist/_chunk/visually-hidden.js +92 -0
- package/dist/_chunk/visually-hidden.js.map +1 -0
- package/dist/_chunk/visually-hidden.jsx +92 -0
- package/dist/_chunk/visually-hidden.jsx.map +1 -0
- package/dist/actiongroup/index.js +2 -0
- package/dist/actiongroup/index.jsx +2 -0
- package/dist/autocomplete/createAutocomplete.d.ts +2 -0
- package/dist/autocomplete/createAutocomplete.d.ts.map +1 -1
- package/dist/autocomplete/index.js +2 -0
- package/dist/autocomplete/index.jsx +2 -0
- package/dist/breadcrumbs/index.js +2 -0
- package/dist/breadcrumbs/index.jsx +2 -0
- package/dist/button/index.js +2 -0
- package/dist/button/index.jsx +2 -0
- package/dist/calendar/createCalendar.d.ts.map +1 -1
- package/dist/calendar/createCalendarCell.d.ts.map +1 -1
- package/dist/calendar/createCalendarGrid.d.ts.map +1 -1
- package/dist/calendar/createCalendarMonthPicker.d.ts +41 -0
- package/dist/calendar/createCalendarMonthPicker.d.ts.map +1 -0
- package/dist/calendar/createCalendarYearPicker.d.ts +49 -0
- package/dist/calendar/createCalendarYearPicker.d.ts.map +1 -0
- package/dist/calendar/createRangeCalendar.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +2 -0
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +2 -0
- package/dist/calendar/index.jsx +2 -0
- package/dist/calendar/utils.d.ts +4 -0
- package/dist/calendar/utils.d.ts.map +1 -1
- package/dist/checkbox/createCheckbox.d.ts +4 -0
- package/dist/checkbox/createCheckbox.d.ts.map +1 -1
- package/dist/checkbox/createCheckboxGroupItem.d.ts.map +1 -1
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.jsx +2 -0
- package/dist/collections/index.js +160 -0
- package/dist/collections/index.js.map +1 -0
- package/dist/collections/index.jsx +160 -0
- package/dist/collections/index.jsx.map +1 -0
- package/dist/color/index.js +2 -0
- package/dist/color/index.jsx +2 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox/index.jsx +2 -0
- package/dist/datepicker/createDateSegment.d.ts.map +1 -1
- package/dist/datepicker/index.js +2 -0
- package/dist/datepicker/index.jsx +2 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/index.jsx +2 -0
- package/dist/disclosure/index.js +2 -0
- package/dist/disclosure/index.jsx +2 -0
- package/dist/dnd/createDroppableCollection.d.ts.map +1 -1
- package/dist/dnd/index.js +2 -0
- package/dist/dnd/index.jsx +2 -0
- package/dist/dnd/utils.d.ts +2 -2
- package/dist/dnd/utils.d.ts.map +1 -1
- package/dist/focus/FocusScope.d.ts.map +1 -1
- package/dist/focus/index.js +2 -0
- package/dist/focus/index.jsx +2 -0
- package/dist/form/createFormValidation.d.ts.map +1 -1
- package/dist/form/index.js +3 -0
- package/dist/form/index.jsx +3 -0
- package/dist/grid/index.js +2 -0
- package/dist/grid/index.jsx +2 -0
- package/dist/gridlist/createGridList.d.ts +7 -1
- package/dist/gridlist/createGridList.d.ts.map +1 -1
- package/dist/gridlist/createGridListItem.d.ts +1 -1
- package/dist/gridlist/createGridListItem.d.ts.map +1 -1
- package/dist/gridlist/createGridListSection.d.ts +15 -0
- package/dist/gridlist/createGridListSection.d.ts.map +1 -0
- package/dist/gridlist/index.d.ts +2 -1
- package/dist/gridlist/index.d.ts.map +1 -1
- package/dist/gridlist/index.js +2 -0
- package/dist/gridlist/index.jsx +2 -0
- package/dist/gridlist/types.d.ts +50 -0
- package/dist/gridlist/types.d.ts.map +1 -1
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/index.jsx +3 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +71 -18311
- package/dist/index.jsx +71 -18242
- package/dist/interactions/PressEvent.d.ts +11 -0
- package/dist/interactions/PressEvent.d.ts.map +1 -1
- package/dist/interactions/createInteractionModality.d.ts +0 -1
- package/dist/interactions/createInteractionModality.d.ts.map +1 -1
- package/dist/interactions/createKeyboard.d.ts.map +1 -1
- package/dist/interactions/createPress.d.ts.map +1 -1
- package/dist/interactions/index.js +10 -0
- package/dist/interactions/index.jsx +10 -0
- package/dist/label/index.js +4 -0
- package/dist/label/index.jsx +4 -0
- package/dist/landmark/index.js +2 -0
- package/dist/landmark/index.jsx +2 -0
- package/dist/link/index.js +2 -0
- package/dist/link/index.jsx +2 -0
- package/dist/listbox/createListBox.d.ts +37 -0
- package/dist/listbox/createListBox.d.ts.map +1 -1
- package/dist/listbox/createOption.d.ts +6 -0
- package/dist/listbox/createOption.d.ts.map +1 -1
- package/dist/listbox/index.js +2 -0
- package/dist/listbox/index.jsx +2 -0
- package/dist/live-announcer/index.js +2 -0
- package/dist/live-announcer/index.jsx +2 -0
- package/dist/menu/createMenu.d.ts +7 -4
- package/dist/menu/createMenu.d.ts.map +1 -1
- package/dist/menu/createMenuItem.d.ts +9 -1
- package/dist/menu/createMenuItem.d.ts.map +1 -1
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.jsx +2 -0
- package/dist/meter/index.js +2 -0
- package/dist/meter/index.jsx +2 -0
- package/dist/numberfield/createNumberField.d.ts.map +1 -1
- package/dist/numberfield/index.js +2 -0
- package/dist/numberfield/index.jsx +2 -0
- package/dist/overlays/index.js +4 -0
- package/dist/overlays/index.jsx +4 -0
- package/dist/popover/calculatePosition.d.ts +2 -0
- package/dist/popover/calculatePosition.d.ts.map +1 -1
- package/dist/popover/createOverlayPosition.d.ts +8 -0
- package/dist/popover/createOverlayPosition.d.ts.map +1 -1
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.jsx +2 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/index.jsx +2 -0
- package/dist/radio/createRadio.d.ts +2 -0
- package/dist/radio/createRadio.d.ts.map +1 -1
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.jsx +2 -0
- package/dist/searchfield/index.js +2 -0
- package/dist/searchfield/index.jsx +2 -0
- package/dist/select/createSelect.d.ts.map +1 -1
- package/dist/select/index.js +2 -0
- package/dist/select/index.jsx +2 -0
- package/dist/selection/DOMLayoutDelegate.d.ts +58 -0
- package/dist/selection/DOMLayoutDelegate.d.ts.map +1 -0
- package/dist/selection/ListKeyboardDelegate.d.ts +95 -0
- package/dist/selection/ListKeyboardDelegate.d.ts.map +1 -0
- package/dist/selection/constants.d.ts +15 -0
- package/dist/selection/constants.d.ts.map +1 -0
- package/dist/selection/createCollectionRowInteraction.d.ts +13 -0
- package/dist/selection/createCollectionRowInteraction.d.ts.map +1 -0
- package/dist/selection/createScrollIntoViewOnFocus.d.ts +31 -0
- package/dist/selection/createScrollIntoViewOnFocus.d.ts.map +1 -0
- package/dist/selection/createSelectableCollection.d.ts +69 -0
- package/dist/selection/createSelectableCollection.d.ts.map +1 -0
- package/dist/selection/createSelectableItem.d.ts +154 -0
- package/dist/selection/createSelectableItem.d.ts.map +1 -0
- package/dist/selection/createSelectableList.d.ts +43 -0
- package/dist/selection/createSelectableList.d.ts.map +1 -0
- package/dist/selection/createTypeSelect.d.ts.map +1 -1
- package/dist/selection/index.d.ts +9 -0
- package/dist/selection/index.d.ts.map +1 -1
- package/dist/selection/index.js +4 -0
- package/dist/selection/index.jsx +4 -0
- package/dist/selection/selectItem.d.ts +29 -0
- package/dist/selection/selectItem.d.ts.map +1 -0
- package/dist/selection/utils.d.ts +40 -0
- package/dist/selection/utils.d.ts.map +1 -0
- package/dist/separator/index.js +2 -0
- package/dist/separator/index.jsx +2 -0
- package/dist/slider/createSlider.d.ts.map +1 -1
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.jsx +2 -0
- package/dist/ssr/index.d.ts +17 -0
- package/dist/ssr/index.d.ts.map +1 -1
- package/dist/ssr/index.js +299 -0
- package/dist/ssr/index.js.map +1 -0
- package/dist/ssr/index.jsx +292 -0
- package/dist/ssr/index.jsx.map +1 -0
- package/dist/steplist/index.js +2 -0
- package/dist/steplist/index.jsx +2 -0
- package/dist/switch/createSwitch.d.ts +4 -0
- package/dist/switch/createSwitch.d.ts.map +1 -1
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.jsx +2 -0
- package/dist/table/createTable.d.ts.map +1 -1
- package/dist/table/createTableRow.d.ts +1 -1
- package/dist/table/createTableRow.d.ts.map +1 -1
- package/dist/table/createTableSelectAllCheckbox.d.ts.map +1 -1
- package/dist/table/index.js +2 -0
- package/dist/table/index.jsx +2 -0
- package/dist/table/types.d.ts +27 -1
- package/dist/table/types.d.ts.map +1 -1
- package/dist/tabs/createTabs.d.ts +4 -3
- package/dist/tabs/createTabs.d.ts.map +1 -1
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.jsx +2 -0
- package/dist/tag/createTag.d.ts +2 -0
- package/dist/tag/createTag.d.ts.map +1 -1
- package/dist/tag/index.js +2 -0
- package/dist/tag/index.jsx +2 -0
- package/dist/textfield/index.js +2 -0
- package/dist/textfield/index.jsx +2 -0
- package/dist/toast/createToast.d.ts.map +1 -1
- package/dist/toast/index.js +2 -0
- package/dist/toast/index.jsx +2 -0
- package/dist/toggle/createToggle.d.ts +4 -0
- package/dist/toggle/createToggle.d.ts.map +1 -1
- package/dist/toggle/index.js +3 -0
- package/dist/toggle/index.jsx +3 -0
- package/dist/toolbar/createToolbar.d.ts +1 -1
- package/dist/toolbar/createToolbar.d.ts.map +1 -1
- package/dist/toolbar/index.js +2 -0
- package/dist/toolbar/index.jsx +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/index.jsx +2 -0
- package/dist/tree/createTree.d.ts +5 -1
- package/dist/tree/createTree.d.ts.map +1 -1
- package/dist/tree/createTreeItem.d.ts +1 -1
- package/dist/tree/createTreeItem.d.ts.map +1 -1
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.jsx +2 -0
- package/dist/tree/types.d.ts +10 -0
- package/dist/tree/types.d.ts.map +1 -1
- package/dist/utils/animation.d.ts +60 -0
- package/dist/utils/animation.d.ts.map +1 -0
- package/dist/utils/dom.d.ts +48 -2
- package/dist/utils/dom.d.ts.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.jsx +5 -0
- package/dist/utils/keyboard.d.ts +17 -0
- package/dist/utils/keyboard.d.ts.map +1 -0
- package/dist/utils/mergeProps.d.ts.map +1 -1
- package/dist/utils/scrollIntoView.d.ts +30 -0
- package/dist/utils/scrollIntoView.d.ts.map +1 -0
- package/dist/visually-hidden/index.js +2 -0
- package/dist/visually-hidden/index.jsx +2 -0
- package/package.json +304 -3
- package/src/autocomplete/createAutocomplete.ts +67 -21
- package/src/calendar/createCalendar.ts +2 -0
- package/src/calendar/createCalendarCell.ts +19 -2
- package/src/calendar/createCalendarGrid.ts +43 -9
- package/src/calendar/createCalendarMonthPicker.ts +105 -0
- package/src/calendar/createCalendarYearPicker.ts +144 -0
- package/src/calendar/createRangeCalendar.ts +2 -0
- package/src/calendar/index.ts +17 -0
- package/src/calendar/utils.ts +4 -0
- package/src/checkbox/createCheckbox.ts +10 -0
- package/src/checkbox/createCheckboxGroupItem.ts +12 -16
- package/src/datepicker/createDateSegment.ts +6 -1
- package/src/dnd/createDroppableCollection.ts +4 -1
- package/src/dnd/utils.ts +27 -3
- package/src/focus/FocusScope.tsx +152 -18
- package/src/form/createFormValidation.ts +8 -1
- package/src/gridlist/createGridList.ts +145 -42
- package/src/gridlist/createGridListItem.ts +87 -155
- package/src/gridlist/createGridListSection.ts +54 -0
- package/src/gridlist/index.ts +3 -0
- package/src/gridlist/types.ts +47 -0
- package/src/index.ts +40 -0
- package/src/interactions/PressEvent.ts +14 -0
- package/src/interactions/createInteractionModality.ts +21 -12
- package/src/interactions/createKeyboard.ts +10 -0
- package/src/interactions/createPress.ts +29 -6
- package/src/listbox/createListBox.ts +129 -8
- package/src/listbox/createOption.ts +68 -73
- package/src/menu/createMenu.ts +93 -16
- package/src/menu/createMenuItem.ts +253 -41
- package/src/numberfield/createNumberField.ts +82 -14
- package/src/popover/calculatePosition.ts +19 -7
- package/src/popover/createOverlayPosition.ts +9 -0
- package/src/radio/createRadio.ts +19 -2
- package/src/select/createSelect.ts +18 -2
- package/src/selection/DOMLayoutDelegate.ts +102 -0
- package/src/selection/ListKeyboardDelegate.ts +398 -0
- package/src/selection/constants.ts +16 -0
- package/src/selection/createCollectionRowInteraction.ts +209 -0
- package/src/selection/createScrollIntoViewOnFocus.ts +65 -0
- package/src/selection/createSelectableCollection.ts +645 -0
- package/src/selection/createSelectableItem.ts +498 -0
- package/src/selection/createSelectableList.ts +93 -0
- package/src/selection/createTypeSelect.ts +112 -51
- package/src/selection/index.ts +31 -0
- package/src/selection/selectItem.ts +80 -0
- package/src/selection/utils.ts +82 -0
- package/src/slider/createSlider.ts +48 -1
- package/src/ssr/index.tsx +31 -0
- package/src/switch/createSwitch.ts +10 -0
- package/src/table/createTable.ts +56 -26
- package/src/table/createTableRow.ts +198 -203
- package/src/table/createTableSelectAllCheckbox.ts +3 -4
- package/src/table/types.ts +29 -1
- package/src/tabs/createTabs.ts +50 -20
- package/src/tag/createTag.ts +9 -4
- package/src/toast/createToast.ts +1 -0
- package/src/toggle/createToggle.ts +20 -0
- package/src/toolbar/createToolbar.ts +43 -42
- package/src/tree/createTree.ts +100 -42
- package/src/tree/createTreeItem.ts +105 -120
- package/src/tree/types.ts +10 -0
- package/src/utils/animation.ts +151 -0
- package/src/utils/dom.ts +215 -25
- package/src/utils/index.ts +8 -0
- package/src/utils/keyboard.ts +25 -0
- package/src/utils/mergeProps.ts +8 -1
- package/src/utils/scrollIntoView.ts +181 -0
- package/dist/index.js.map +0 -1
- package/dist/index.jsx.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { a as isAccessor, i as access, n as isProdEnv, o as mergeProps, r as isTestEnv, t as isDevEnv } from "../_chunk/env.jsx";
|
|
2
|
+
import { t as filterDOMProps } from "../_chunk/filterDOMProps.jsx";
|
|
3
|
+
import { A as isMac, C as isAndroid, D as isIOS, E as isFirefox, O as isIPad, S as scrollIntoViewport, T as isChrome, _ as getPointClientRect, a as getDescriptionNodeCount, b as isPointOverTarget, c as isCtrlKeyPressed, d as chain, f as createMouseEvent, g as areRectanglesOverlapping, h as setEventTarget, i as createDescription, j as isWebKit, k as isIPhone, l as disableTextSelection, m as isVirtualPointerEvent, n as createExitAnimation, o as addGlobalListenerOnce, p as isVirtualClick, r as clearDescriptionNodes, s as createGlobalListeners, t as createEnterAnimation, u as restoreTextSelection, v as getTouchById, w as isAppleDevice, x as scrollIntoView, y as getTouchFromEvent } from "../_chunk/utils.jsx";
|
|
4
|
+
import { C as willOpenKeyboard, S as shouldPreventDefaultUp, _ as isValidInputKey, a as getEventTarget, b as openLink, c as getOwnerWindow, d as isElementVisible, g as isTabbable, h as isScrollable, l as getScrollParent, m as isHTMLAnchorLink, n as focusWithoutScrolling, p as isFocusable, r as preventFocus, s as getOwnerDocument, t as focusSafely, u as getScrollParents, v as isValidKeyboardEvent, x as shouldPreventDefaultKeyboard, y as nodeContains } from "../_chunk/focus.jsx";
|
|
5
|
+
export { access, addGlobalListenerOnce, areRectanglesOverlapping, chain, clearDescriptionNodes, createDescription, createEnterAnimation, createExitAnimation, createGlobalListeners, createMouseEvent, disableTextSelection, filterDOMProps, focusSafely, focusWithoutScrolling, getDescriptionNodeCount, getEventTarget, getOwnerDocument, getOwnerWindow, getPointClientRect, getScrollParent, getScrollParents, getTouchById, getTouchFromEvent, isAccessor, isAndroid, isAppleDevice, isChrome, isCtrlKeyPressed, isDevEnv, isElementVisible, isFirefox, isFocusable, isHTMLAnchorLink, isIOS, isIPad, isIPhone, isMac, isPointOverTarget, isProdEnv, isScrollable, isTabbable, isTestEnv, isValidInputKey, isValidKeyboardEvent, isVirtualClick, isVirtualPointerEvent, isWebKit, mergeProps, nodeContains, openLink, preventFocus, restoreTextSelection, scrollIntoView, scrollIntoViewport, setEventTarget, shouldPreventDefaultKeyboard, shouldPreventDefaultUp, willOpenKeyboard };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keyboard / modifier-key helpers.
|
|
3
|
+
* Based on @react-aria/utils' keyboard utilities.
|
|
4
|
+
*/
|
|
5
|
+
/** The modifier-key fields consulted by {@link isCtrlKeyPressed}. */
|
|
6
|
+
interface ModifierKeyEvent {
|
|
7
|
+
ctrlKey?: boolean;
|
|
8
|
+
metaKey?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Returns whether the platform's non-contiguous selection modifier is pressed:
|
|
12
|
+
* the Command key on macOS, the Control key elsewhere. Mirrors
|
|
13
|
+
* `@react-aria/utils`' `isCtrlKeyPressed`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isCtrlKeyPressed(e: ModifierKeyEvent): boolean;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../src/utils/keyboard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,qEAAqE;AACrE,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAM7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeProps.d.ts","sourceRoot":"","sources":["../../src/utils/mergeProps.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAC9F,GAAG,IAAI,EAAE,CAAC,EAAE,GACX,CAAC,
|
|
1
|
+
{"version":3,"file":"mergeProps.d.ts","sourceRoot":"","sources":["../../src/utils/mergeProps.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAC9F,GAAG,IAAI,EAAE,CAAC,EAAE,GACX,CAAC,CA6DH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll-into-view utilities.
|
|
3
|
+
* Based on @react-aria/utils scrollIntoView (react-aria/src/utils/scrollIntoView.ts).
|
|
4
|
+
*/
|
|
5
|
+
interface ScrollIntoViewOpts {
|
|
6
|
+
/** The position to align items along the block axis in. */
|
|
7
|
+
block?: ScrollLogicalPosition;
|
|
8
|
+
/** The position to align items along the inline axis in. */
|
|
9
|
+
inline?: ScrollLogicalPosition;
|
|
10
|
+
}
|
|
11
|
+
interface ScrollIntoViewportOpts {
|
|
12
|
+
/** The optional containing element of the target to be centered in the viewport. */
|
|
13
|
+
containingElement?: Element | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Scrolls `scrollView` so that `element` is visible.
|
|
17
|
+
* Similar to `element.scrollIntoView({block: 'nearest'})` (not supported in Edge),
|
|
18
|
+
* but doesn't affect parents above `scrollView`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function scrollIntoView(scrollView: HTMLElement, element: HTMLElement, opts?: ScrollIntoViewOpts): void;
|
|
21
|
+
/**
|
|
22
|
+
* Scrolls the `targetElement` so it is visible in the viewport. Accepts an optional
|
|
23
|
+
* `opts.containingElement` that will be centered in the viewport prior to scrolling the
|
|
24
|
+
* targetElement into view. If scrolling is prevented on the body (e.g. targetElement is in a
|
|
25
|
+
* popover), this will only scroll the scroll parents of the targetElement up to but not including
|
|
26
|
+
* the body itself.
|
|
27
|
+
*/
|
|
28
|
+
export declare function scrollIntoViewport(targetElement: Element | null, opts?: ScrollIntoViewportOpts): void;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=scrollIntoView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollIntoView.d.ts","sourceRoot":"","sources":["../../src/utils/scrollIntoView.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,UAAU,kBAAkB;IAC1B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED,UAAU,sBAAsB;IAC9B,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,WAAW,EACvB,OAAO,EAAE,WAAW,EACpB,IAAI,GAAE,kBAAuB,GAC5B,IAAI,CAgGN;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,OAAO,GAAG,IAAI,EAC7B,IAAI,GAAE,sBAA2B,GAChC,IAAI,CA0CN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proyecto-viviana/solidaria",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A 1-1 SolidJS port of React Aria - accessible UI primitives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a11y",
|
|
@@ -31,7 +31,308 @@
|
|
|
31
31
|
"solid": "./dist/index.jsx",
|
|
32
32
|
"import": "./dist/index.js",
|
|
33
33
|
"default": "./dist/index.js"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"./actiongroup": {
|
|
36
|
+
"types": "./dist/actiongroup/index.d.ts",
|
|
37
|
+
"solid": "./dist/actiongroup/index.jsx",
|
|
38
|
+
"import": "./dist/actiongroup/index.js",
|
|
39
|
+
"default": "./dist/actiongroup/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./autocomplete": {
|
|
42
|
+
"types": "./dist/autocomplete/index.d.ts",
|
|
43
|
+
"solid": "./dist/autocomplete/index.jsx",
|
|
44
|
+
"import": "./dist/autocomplete/index.js",
|
|
45
|
+
"default": "./dist/autocomplete/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./breadcrumbs": {
|
|
48
|
+
"types": "./dist/breadcrumbs/index.d.ts",
|
|
49
|
+
"solid": "./dist/breadcrumbs/index.jsx",
|
|
50
|
+
"import": "./dist/breadcrumbs/index.js",
|
|
51
|
+
"default": "./dist/breadcrumbs/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./button": {
|
|
54
|
+
"types": "./dist/button/index.d.ts",
|
|
55
|
+
"solid": "./dist/button/index.jsx",
|
|
56
|
+
"import": "./dist/button/index.js",
|
|
57
|
+
"default": "./dist/button/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./calendar": {
|
|
60
|
+
"types": "./dist/calendar/index.d.ts",
|
|
61
|
+
"solid": "./dist/calendar/index.jsx",
|
|
62
|
+
"import": "./dist/calendar/index.js",
|
|
63
|
+
"default": "./dist/calendar/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./checkbox": {
|
|
66
|
+
"types": "./dist/checkbox/index.d.ts",
|
|
67
|
+
"solid": "./dist/checkbox/index.jsx",
|
|
68
|
+
"import": "./dist/checkbox/index.js",
|
|
69
|
+
"default": "./dist/checkbox/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./collections": {
|
|
72
|
+
"types": "./dist/collections/index.d.ts",
|
|
73
|
+
"solid": "./dist/collections/index.jsx",
|
|
74
|
+
"import": "./dist/collections/index.js",
|
|
75
|
+
"default": "./dist/collections/index.js"
|
|
76
|
+
},
|
|
77
|
+
"./color": {
|
|
78
|
+
"types": "./dist/color/index.d.ts",
|
|
79
|
+
"solid": "./dist/color/index.jsx",
|
|
80
|
+
"import": "./dist/color/index.js",
|
|
81
|
+
"default": "./dist/color/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./combobox": {
|
|
84
|
+
"types": "./dist/combobox/index.d.ts",
|
|
85
|
+
"solid": "./dist/combobox/index.jsx",
|
|
86
|
+
"import": "./dist/combobox/index.js",
|
|
87
|
+
"default": "./dist/combobox/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./datepicker": {
|
|
90
|
+
"types": "./dist/datepicker/index.d.ts",
|
|
91
|
+
"solid": "./dist/datepicker/index.jsx",
|
|
92
|
+
"import": "./dist/datepicker/index.js",
|
|
93
|
+
"default": "./dist/datepicker/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./dialog": {
|
|
96
|
+
"types": "./dist/dialog/index.d.ts",
|
|
97
|
+
"solid": "./dist/dialog/index.jsx",
|
|
98
|
+
"import": "./dist/dialog/index.js",
|
|
99
|
+
"default": "./dist/dialog/index.js"
|
|
100
|
+
},
|
|
101
|
+
"./disclosure": {
|
|
102
|
+
"types": "./dist/disclosure/index.d.ts",
|
|
103
|
+
"solid": "./dist/disclosure/index.jsx",
|
|
104
|
+
"import": "./dist/disclosure/index.js",
|
|
105
|
+
"default": "./dist/disclosure/index.js"
|
|
106
|
+
},
|
|
107
|
+
"./dnd": {
|
|
108
|
+
"types": "./dist/dnd/index.d.ts",
|
|
109
|
+
"solid": "./dist/dnd/index.jsx",
|
|
110
|
+
"import": "./dist/dnd/index.js",
|
|
111
|
+
"default": "./dist/dnd/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./focus": {
|
|
114
|
+
"types": "./dist/focus/index.d.ts",
|
|
115
|
+
"solid": "./dist/focus/index.jsx",
|
|
116
|
+
"import": "./dist/focus/index.js",
|
|
117
|
+
"default": "./dist/focus/index.js"
|
|
118
|
+
},
|
|
119
|
+
"./form": {
|
|
120
|
+
"types": "./dist/form/index.d.ts",
|
|
121
|
+
"solid": "./dist/form/index.jsx",
|
|
122
|
+
"import": "./dist/form/index.js",
|
|
123
|
+
"default": "./dist/form/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./grid": {
|
|
126
|
+
"types": "./dist/grid/index.d.ts",
|
|
127
|
+
"solid": "./dist/grid/index.jsx",
|
|
128
|
+
"import": "./dist/grid/index.js",
|
|
129
|
+
"default": "./dist/grid/index.js"
|
|
130
|
+
},
|
|
131
|
+
"./gridlist": {
|
|
132
|
+
"types": "./dist/gridlist/index.d.ts",
|
|
133
|
+
"solid": "./dist/gridlist/index.jsx",
|
|
134
|
+
"import": "./dist/gridlist/index.js",
|
|
135
|
+
"default": "./dist/gridlist/index.js"
|
|
136
|
+
},
|
|
137
|
+
"./i18n": {
|
|
138
|
+
"types": "./dist/i18n/index.d.ts",
|
|
139
|
+
"solid": "./dist/i18n/index.jsx",
|
|
140
|
+
"import": "./dist/i18n/index.js",
|
|
141
|
+
"default": "./dist/i18n/index.js"
|
|
142
|
+
},
|
|
143
|
+
"./interactions": {
|
|
144
|
+
"types": "./dist/interactions/index.d.ts",
|
|
145
|
+
"solid": "./dist/interactions/index.jsx",
|
|
146
|
+
"import": "./dist/interactions/index.js",
|
|
147
|
+
"default": "./dist/interactions/index.js"
|
|
148
|
+
},
|
|
149
|
+
"./label": {
|
|
150
|
+
"types": "./dist/label/index.d.ts",
|
|
151
|
+
"solid": "./dist/label/index.jsx",
|
|
152
|
+
"import": "./dist/label/index.js",
|
|
153
|
+
"default": "./dist/label/index.js"
|
|
154
|
+
},
|
|
155
|
+
"./landmark": {
|
|
156
|
+
"types": "./dist/landmark/index.d.ts",
|
|
157
|
+
"solid": "./dist/landmark/index.jsx",
|
|
158
|
+
"import": "./dist/landmark/index.js",
|
|
159
|
+
"default": "./dist/landmark/index.js"
|
|
160
|
+
},
|
|
161
|
+
"./link": {
|
|
162
|
+
"types": "./dist/link/index.d.ts",
|
|
163
|
+
"solid": "./dist/link/index.jsx",
|
|
164
|
+
"import": "./dist/link/index.js",
|
|
165
|
+
"default": "./dist/link/index.js"
|
|
166
|
+
},
|
|
167
|
+
"./listbox": {
|
|
168
|
+
"types": "./dist/listbox/index.d.ts",
|
|
169
|
+
"solid": "./dist/listbox/index.jsx",
|
|
170
|
+
"import": "./dist/listbox/index.js",
|
|
171
|
+
"default": "./dist/listbox/index.js"
|
|
172
|
+
},
|
|
173
|
+
"./live-announcer": {
|
|
174
|
+
"types": "./dist/live-announcer/index.d.ts",
|
|
175
|
+
"solid": "./dist/live-announcer/index.jsx",
|
|
176
|
+
"import": "./dist/live-announcer/index.js",
|
|
177
|
+
"default": "./dist/live-announcer/index.js"
|
|
178
|
+
},
|
|
179
|
+
"./menu": {
|
|
180
|
+
"types": "./dist/menu/index.d.ts",
|
|
181
|
+
"solid": "./dist/menu/index.jsx",
|
|
182
|
+
"import": "./dist/menu/index.js",
|
|
183
|
+
"default": "./dist/menu/index.js"
|
|
184
|
+
},
|
|
185
|
+
"./meter": {
|
|
186
|
+
"types": "./dist/meter/index.d.ts",
|
|
187
|
+
"solid": "./dist/meter/index.jsx",
|
|
188
|
+
"import": "./dist/meter/index.js",
|
|
189
|
+
"default": "./dist/meter/index.js"
|
|
190
|
+
},
|
|
191
|
+
"./numberfield": {
|
|
192
|
+
"types": "./dist/numberfield/index.d.ts",
|
|
193
|
+
"solid": "./dist/numberfield/index.jsx",
|
|
194
|
+
"import": "./dist/numberfield/index.js",
|
|
195
|
+
"default": "./dist/numberfield/index.js"
|
|
196
|
+
},
|
|
197
|
+
"./overlays": {
|
|
198
|
+
"types": "./dist/overlays/index.d.ts",
|
|
199
|
+
"solid": "./dist/overlays/index.jsx",
|
|
200
|
+
"import": "./dist/overlays/index.js",
|
|
201
|
+
"default": "./dist/overlays/index.js"
|
|
202
|
+
},
|
|
203
|
+
"./popover": {
|
|
204
|
+
"types": "./dist/popover/index.d.ts",
|
|
205
|
+
"solid": "./dist/popover/index.jsx",
|
|
206
|
+
"import": "./dist/popover/index.js",
|
|
207
|
+
"default": "./dist/popover/index.js"
|
|
208
|
+
},
|
|
209
|
+
"./progress": {
|
|
210
|
+
"types": "./dist/progress/index.d.ts",
|
|
211
|
+
"solid": "./dist/progress/index.jsx",
|
|
212
|
+
"import": "./dist/progress/index.js",
|
|
213
|
+
"default": "./dist/progress/index.js"
|
|
214
|
+
},
|
|
215
|
+
"./radio": {
|
|
216
|
+
"types": "./dist/radio/index.d.ts",
|
|
217
|
+
"solid": "./dist/radio/index.jsx",
|
|
218
|
+
"import": "./dist/radio/index.js",
|
|
219
|
+
"default": "./dist/radio/index.js"
|
|
220
|
+
},
|
|
221
|
+
"./searchfield": {
|
|
222
|
+
"types": "./dist/searchfield/index.d.ts",
|
|
223
|
+
"solid": "./dist/searchfield/index.jsx",
|
|
224
|
+
"import": "./dist/searchfield/index.js",
|
|
225
|
+
"default": "./dist/searchfield/index.js"
|
|
226
|
+
},
|
|
227
|
+
"./select": {
|
|
228
|
+
"types": "./dist/select/index.d.ts",
|
|
229
|
+
"solid": "./dist/select/index.jsx",
|
|
230
|
+
"import": "./dist/select/index.js",
|
|
231
|
+
"default": "./dist/select/index.js"
|
|
232
|
+
},
|
|
233
|
+
"./selection": {
|
|
234
|
+
"types": "./dist/selection/index.d.ts",
|
|
235
|
+
"solid": "./dist/selection/index.jsx",
|
|
236
|
+
"import": "./dist/selection/index.js",
|
|
237
|
+
"default": "./dist/selection/index.js"
|
|
238
|
+
},
|
|
239
|
+
"./separator": {
|
|
240
|
+
"types": "./dist/separator/index.d.ts",
|
|
241
|
+
"solid": "./dist/separator/index.jsx",
|
|
242
|
+
"import": "./dist/separator/index.js",
|
|
243
|
+
"default": "./dist/separator/index.js"
|
|
244
|
+
},
|
|
245
|
+
"./slider": {
|
|
246
|
+
"types": "./dist/slider/index.d.ts",
|
|
247
|
+
"solid": "./dist/slider/index.jsx",
|
|
248
|
+
"import": "./dist/slider/index.js",
|
|
249
|
+
"default": "./dist/slider/index.js"
|
|
250
|
+
},
|
|
251
|
+
"./ssr": {
|
|
252
|
+
"types": "./dist/ssr/index.d.ts",
|
|
253
|
+
"solid": "./dist/ssr/index.jsx",
|
|
254
|
+
"import": "./dist/ssr/index.js",
|
|
255
|
+
"default": "./dist/ssr/index.js"
|
|
256
|
+
},
|
|
257
|
+
"./steplist": {
|
|
258
|
+
"types": "./dist/steplist/index.d.ts",
|
|
259
|
+
"solid": "./dist/steplist/index.jsx",
|
|
260
|
+
"import": "./dist/steplist/index.js",
|
|
261
|
+
"default": "./dist/steplist/index.js"
|
|
262
|
+
},
|
|
263
|
+
"./switch": {
|
|
264
|
+
"types": "./dist/switch/index.d.ts",
|
|
265
|
+
"solid": "./dist/switch/index.jsx",
|
|
266
|
+
"import": "./dist/switch/index.js",
|
|
267
|
+
"default": "./dist/switch/index.js"
|
|
268
|
+
},
|
|
269
|
+
"./table": {
|
|
270
|
+
"types": "./dist/table/index.d.ts",
|
|
271
|
+
"solid": "./dist/table/index.jsx",
|
|
272
|
+
"import": "./dist/table/index.js",
|
|
273
|
+
"default": "./dist/table/index.js"
|
|
274
|
+
},
|
|
275
|
+
"./tabs": {
|
|
276
|
+
"types": "./dist/tabs/index.d.ts",
|
|
277
|
+
"solid": "./dist/tabs/index.jsx",
|
|
278
|
+
"import": "./dist/tabs/index.js",
|
|
279
|
+
"default": "./dist/tabs/index.js"
|
|
280
|
+
},
|
|
281
|
+
"./tag": {
|
|
282
|
+
"types": "./dist/tag/index.d.ts",
|
|
283
|
+
"solid": "./dist/tag/index.jsx",
|
|
284
|
+
"import": "./dist/tag/index.js",
|
|
285
|
+
"default": "./dist/tag/index.js"
|
|
286
|
+
},
|
|
287
|
+
"./textfield": {
|
|
288
|
+
"types": "./dist/textfield/index.d.ts",
|
|
289
|
+
"solid": "./dist/textfield/index.jsx",
|
|
290
|
+
"import": "./dist/textfield/index.js",
|
|
291
|
+
"default": "./dist/textfield/index.js"
|
|
292
|
+
},
|
|
293
|
+
"./toast": {
|
|
294
|
+
"types": "./dist/toast/index.d.ts",
|
|
295
|
+
"solid": "./dist/toast/index.jsx",
|
|
296
|
+
"import": "./dist/toast/index.js",
|
|
297
|
+
"default": "./dist/toast/index.js"
|
|
298
|
+
},
|
|
299
|
+
"./toggle": {
|
|
300
|
+
"types": "./dist/toggle/index.d.ts",
|
|
301
|
+
"solid": "./dist/toggle/index.jsx",
|
|
302
|
+
"import": "./dist/toggle/index.js",
|
|
303
|
+
"default": "./dist/toggle/index.js"
|
|
304
|
+
},
|
|
305
|
+
"./toolbar": {
|
|
306
|
+
"types": "./dist/toolbar/index.d.ts",
|
|
307
|
+
"solid": "./dist/toolbar/index.jsx",
|
|
308
|
+
"import": "./dist/toolbar/index.js",
|
|
309
|
+
"default": "./dist/toolbar/index.js"
|
|
310
|
+
},
|
|
311
|
+
"./tooltip": {
|
|
312
|
+
"types": "./dist/tooltip/index.d.ts",
|
|
313
|
+
"solid": "./dist/tooltip/index.jsx",
|
|
314
|
+
"import": "./dist/tooltip/index.js",
|
|
315
|
+
"default": "./dist/tooltip/index.js"
|
|
316
|
+
},
|
|
317
|
+
"./tree": {
|
|
318
|
+
"types": "./dist/tree/index.d.ts",
|
|
319
|
+
"solid": "./dist/tree/index.jsx",
|
|
320
|
+
"import": "./dist/tree/index.js",
|
|
321
|
+
"default": "./dist/tree/index.js"
|
|
322
|
+
},
|
|
323
|
+
"./utils": {
|
|
324
|
+
"types": "./dist/utils/index.d.ts",
|
|
325
|
+
"solid": "./dist/utils/index.jsx",
|
|
326
|
+
"import": "./dist/utils/index.js",
|
|
327
|
+
"default": "./dist/utils/index.js"
|
|
328
|
+
},
|
|
329
|
+
"./visually-hidden": {
|
|
330
|
+
"types": "./dist/visually-hidden/index.d.ts",
|
|
331
|
+
"solid": "./dist/visually-hidden/index.jsx",
|
|
332
|
+
"import": "./dist/visually-hidden/index.js",
|
|
333
|
+
"default": "./dist/visually-hidden/index.js"
|
|
334
|
+
},
|
|
335
|
+
"./package.json": "./package.json"
|
|
35
336
|
},
|
|
36
337
|
"publishConfig": {
|
|
37
338
|
"access": "public"
|
|
@@ -40,7 +341,7 @@
|
|
|
40
341
|
"@internationalized/date": "^3.8.0",
|
|
41
342
|
"@internationalized/number": "^3.6.0",
|
|
42
343
|
"@internationalized/string": "^3.2.5",
|
|
43
|
-
"@proyecto-viviana/solid-stately": "0.
|
|
344
|
+
"@proyecto-viviana/solid-stately": "0.4.0"
|
|
44
345
|
},
|
|
45
346
|
"devDependencies": {
|
|
46
347
|
"solid-js": "^1.9.11"
|
|
@@ -20,6 +20,8 @@ export interface CollectionOptions {
|
|
|
20
20
|
shouldUseVirtualFocus: boolean;
|
|
21
21
|
/** Whether typeahead is disabled. */
|
|
22
22
|
disallowTypeAhead: boolean;
|
|
23
|
+
/** Whether and where to focus an item when the collection mounts. */
|
|
24
|
+
autoFocus?: boolean | "first" | "last";
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export interface AutocompleteInputProps {
|
|
@@ -150,21 +152,27 @@ export function createAutocomplete<T = unknown>(
|
|
|
150
152
|
|
|
151
153
|
const collectionId = collectionIdProp ?? createId();
|
|
152
154
|
const [shouldUseVirtualFocus] = createSignal(!disableVirtualFocus);
|
|
155
|
+
// When the first item should be focused but the collection hasn't mounted yet,
|
|
156
|
+
// defer it by threading autoFocus through collectionProps so the collection
|
|
157
|
+
// focuses on mount (mirrors upstream's autoFocusOnMount state).
|
|
158
|
+
const [autoFocusOnMount, setAutoFocusOnMount] = createSignal(false);
|
|
153
159
|
let lastInputType = "";
|
|
154
160
|
|
|
155
|
-
// Track the input type for determining focus behavior
|
|
156
|
-
|
|
161
|
+
// Track the input type for determining focus behavior. We listen to
|
|
162
|
+
// `beforeinput` (not `input`) so `lastInputType` is set before the input's
|
|
163
|
+
// `onChange` runs, mirroring @react-aria/autocomplete.
|
|
164
|
+
const handleBeforeInput = (e: Event) => {
|
|
157
165
|
const inputEvent = e as InputEvent;
|
|
158
166
|
lastInputType = inputEvent.inputType || "";
|
|
159
167
|
};
|
|
160
168
|
|
|
161
|
-
// Set up
|
|
169
|
+
// Set up beforeinput event listener
|
|
162
170
|
createEffect(() => {
|
|
163
171
|
const input = inputRef();
|
|
164
172
|
if (input) {
|
|
165
|
-
input.addEventListener("
|
|
173
|
+
input.addEventListener("beforeinput", handleBeforeInput);
|
|
166
174
|
onCleanup(() => {
|
|
167
|
-
input.removeEventListener("
|
|
175
|
+
input.removeEventListener("beforeinput", handleBeforeInput);
|
|
168
176
|
});
|
|
169
177
|
}
|
|
170
178
|
});
|
|
@@ -172,19 +180,25 @@ export function createAutocomplete<T = unknown>(
|
|
|
172
180
|
// Focus first item in collection
|
|
173
181
|
const focusFirstItem = () => {
|
|
174
182
|
const collection = collectionRef();
|
|
175
|
-
if (collection) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}),
|
|
182
|
-
);
|
|
183
|
+
if (!collection) {
|
|
184
|
+
// Collection isn't mounted yet — defer focusing the first item to mount
|
|
185
|
+
// time via collectionProps.autoFocus instead of firing a focus event into
|
|
186
|
+
// a not-yet-rendered collection.
|
|
187
|
+
setAutoFocusOnMount(true);
|
|
188
|
+
return;
|
|
183
189
|
}
|
|
190
|
+
collection.dispatchEvent(
|
|
191
|
+
new CustomEvent(AUTOCOMPLETE_FOCUS_EVENT, {
|
|
192
|
+
cancelable: true,
|
|
193
|
+
bubbles: true,
|
|
194
|
+
detail: { focusStrategy: "first" },
|
|
195
|
+
}),
|
|
196
|
+
);
|
|
184
197
|
};
|
|
185
198
|
|
|
186
199
|
// Clear virtual focus
|
|
187
200
|
const clearVirtualFocus = (clearFocusKey = false) => {
|
|
201
|
+
setAutoFocusOnMount(false);
|
|
188
202
|
state.setFocusedNodeId(null);
|
|
189
203
|
const collection = collectionRef();
|
|
190
204
|
if (collection) {
|
|
@@ -200,8 +214,16 @@ export function createAutocomplete<T = unknown>(
|
|
|
200
214
|
|
|
201
215
|
// Handle input value changes
|
|
202
216
|
const onChange = (value: string) => {
|
|
203
|
-
// Focus first item when typing forward, clear when backspacing/pasting
|
|
204
|
-
|
|
217
|
+
// Focus first item when typing forward, clear when backspacing/pasting.
|
|
218
|
+
// IME composition (e.g. CJK input) reports 'insertCompositionText'/
|
|
219
|
+
// 'insertFromComposition' instead of 'insertText'; treat those as forward
|
|
220
|
+
// typing so the first item still gets virtual focus.
|
|
221
|
+
if (
|
|
222
|
+
(lastInputType === "insertText" ||
|
|
223
|
+
lastInputType === "insertCompositionText" ||
|
|
224
|
+
lastInputType === "insertFromComposition") &&
|
|
225
|
+
!disableAutoFocusFirst
|
|
226
|
+
) {
|
|
205
227
|
focusFirstItem();
|
|
206
228
|
} else if (
|
|
207
229
|
lastInputType &&
|
|
@@ -264,9 +286,15 @@ export function createAutocomplete<T = unknown>(
|
|
|
264
286
|
|
|
265
287
|
case "ArrowLeft":
|
|
266
288
|
case "ArrowRight":
|
|
267
|
-
//
|
|
268
|
-
|
|
269
|
-
|
|
289
|
+
// With no virtual focus, just let the arrow move the text cursor; stop
|
|
290
|
+
// propagation so it doesn't leak into the collection. With virtual focus,
|
|
291
|
+
// fall through to dispatch the key to the focused item below, then clear
|
|
292
|
+
// the active descendant only after the item has seen it.
|
|
293
|
+
if (!focusedNodeId) {
|
|
294
|
+
e.stopPropagation();
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
break;
|
|
270
298
|
|
|
271
299
|
case "Enter":
|
|
272
300
|
// Trigger click on focused item
|
|
@@ -280,17 +308,32 @@ export function createAutocomplete<T = unknown>(
|
|
|
280
308
|
return;
|
|
281
309
|
}
|
|
282
310
|
|
|
283
|
-
// Forward keyboard events to
|
|
311
|
+
// Forward keyboard events to the focused item (or the collection when there
|
|
312
|
+
// is no virtual focus) so the collection can act on them, e.g. onAction.
|
|
284
313
|
if (!e.defaultPrevented && collection) {
|
|
285
314
|
e.stopPropagation();
|
|
286
315
|
|
|
316
|
+
let shouldPerformDefaultAction = true;
|
|
287
317
|
if (focusedNodeId) {
|
|
288
318
|
const item = ownerDocument?.getElementById(focusedNodeId);
|
|
289
319
|
if (item) {
|
|
290
|
-
item.dispatchEvent(
|
|
320
|
+
shouldPerformDefaultAction = item.dispatchEvent(
|
|
321
|
+
new KeyboardEvent(e.type, toKeyboardEventInit(e)),
|
|
322
|
+
);
|
|
291
323
|
}
|
|
292
324
|
} else {
|
|
293
|
-
collection.dispatchEvent(
|
|
325
|
+
shouldPerformDefaultAction = collection.dispatchEvent(
|
|
326
|
+
new KeyboardEvent(e.type, toKeyboardEventInit(e)),
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// After the focused item has seen ArrowLeft/ArrowRight, clear the active
|
|
331
|
+
// descendant so SR announcements aren't interrupted, but retain the
|
|
332
|
+
// collection's focused key so navigation restarts where it left off. If
|
|
333
|
+
// the item consumed the key (e.g. an expandable row collapsing), it
|
|
334
|
+
// cancels the event and we keep virtual focus.
|
|
335
|
+
if (shouldPerformDefaultAction && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
336
|
+
clearVirtualFocus();
|
|
294
337
|
}
|
|
295
338
|
}
|
|
296
339
|
};
|
|
@@ -341,6 +384,9 @@ export function createAutocomplete<T = unknown>(
|
|
|
341
384
|
"aria-label": collectionAriaLabel,
|
|
342
385
|
shouldUseVirtualFocus: shouldUseVirtualFocus(),
|
|
343
386
|
disallowTypeAhead: shouldUseVirtualFocus(),
|
|
387
|
+
get autoFocus() {
|
|
388
|
+
return autoFocusOnMount() ? "first" : false;
|
|
389
|
+
},
|
|
344
390
|
},
|
|
345
391
|
filter: filterFn,
|
|
346
392
|
};
|
|
@@ -88,6 +88,8 @@ export function createCalendar<T extends CalendarState>(
|
|
|
88
88
|
setCalendarHookData(state, {
|
|
89
89
|
errorMessageId:
|
|
90
90
|
initialProps.errorMessage || initialProps.errorMessageId ? errorMessageId : undefined,
|
|
91
|
+
ariaLabel: initialProps["aria-label"],
|
|
92
|
+
ariaLabelledBy: initialProps["aria-labelledby"],
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { createSignal, createMemo, createEffect, type Accessor } from "solid-js";
|
|
9
9
|
import { access, type MaybeAccessor } from "../utils/reactivity";
|
|
10
10
|
import { focusSafely } from "../utils/focus";
|
|
11
|
+
import { scrollIntoViewport, getScrollParent } from "../utils";
|
|
11
12
|
import { createFocusRing } from "../interactions/createFocusRing";
|
|
12
13
|
import { getInteractionModality } from "../interactions/createInteractionModality";
|
|
13
14
|
import { useLocale } from "../i18n";
|
|
@@ -15,6 +16,7 @@ import { mergeProps } from "../utils/mergeProps";
|
|
|
15
16
|
import type { CalendarState, CalendarDate, DateValue } from "@proyecto-viviana/solid-stately";
|
|
16
17
|
import { isToday as isTodayUtil, DateFormatter, getLocalTimeZone } from "@internationalized/date";
|
|
17
18
|
import { getCalendarHookData } from "./utils";
|
|
19
|
+
import { formatCalendarLabel } from "./intl";
|
|
18
20
|
|
|
19
21
|
export interface AriaCalendarCellProps {
|
|
20
22
|
/** The date represented by the cell. */
|
|
@@ -145,6 +147,14 @@ export function createCalendarCell<T extends CalendarState>(
|
|
|
145
147
|
const element = ref?.();
|
|
146
148
|
if (element && isFocused()) {
|
|
147
149
|
focusSafely(element);
|
|
150
|
+
|
|
151
|
+
// Scroll into view if navigating with a keyboard, otherwise try not to
|
|
152
|
+
// shift the view under the user's mouse/finger. If in an overlay,
|
|
153
|
+
// scrollIntoViewport only scrolls up to the overlay scroll body. Only
|
|
154
|
+
// scroll if the cell actually got focused.
|
|
155
|
+
if (getInteractionModality() !== "pointer" && document.activeElement === element) {
|
|
156
|
+
scrollIntoViewport(element, { containingElement: getScrollParent(element) });
|
|
157
|
+
}
|
|
148
158
|
}
|
|
149
159
|
});
|
|
150
160
|
|
|
@@ -166,9 +176,16 @@ export function createCalendarCell<T extends CalendarState>(
|
|
|
166
176
|
day: "numeric",
|
|
167
177
|
calendar: d.calendar.identifier,
|
|
168
178
|
} as Intl.DateTimeFormatOptions);
|
|
179
|
+
// Mirror @react-aria/calendar useCalendarCell: route the selected/today
|
|
180
|
+
// suffix through the localized string formatter instead of hardcoding
|
|
181
|
+
// " selected" (which dropped "Today" and never localized).
|
|
169
182
|
let label = formatter.format(d.toDate(timeZone));
|
|
170
|
-
if (
|
|
171
|
-
label
|
|
183
|
+
if (isToday()) {
|
|
184
|
+
label = formatCalendarLabel(locale(), isSelected() ? "todayDateSelected" : "todayDate", {
|
|
185
|
+
date: label,
|
|
186
|
+
});
|
|
187
|
+
} else if (isSelected()) {
|
|
188
|
+
label = formatCalendarLabel(locale(), "dateSelected", { date: label });
|
|
172
189
|
}
|
|
173
190
|
const errorMessageId = getCalendarHookData(state)?.errorMessageId;
|
|
174
191
|
|