@proyecto-viviana/solidaria 0.2.8 → 0.3.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/README.md +31 -236
- package/dist/actiongroup/createActionGroup.d.ts +5 -5
- package/dist/actiongroup/createActionGroup.d.ts.map +1 -1
- package/dist/actiongroup/index.d.ts +1 -1
- package/dist/autocomplete/createAutocomplete.d.ts +10 -10
- package/dist/autocomplete/createAutocomplete.d.ts.map +1 -1
- package/dist/autocomplete/index.d.ts +1 -1
- package/dist/autocomplete/index.d.ts.map +1 -1
- package/dist/breadcrumbs/createBreadcrumbs.d.ts +9 -7
- package/dist/breadcrumbs/createBreadcrumbs.d.ts.map +1 -1
- package/dist/breadcrumbs/index.d.ts +1 -1
- package/dist/button/createButton.d.ts +1 -1
- package/dist/button/createButton.d.ts.map +1 -1
- package/dist/button/createToggleButton.d.ts +3 -3
- package/dist/button/createToggleButtonGroup.d.ts +7 -7
- package/dist/button/createToggleButtonGroup.d.ts.map +1 -1
- package/dist/button/index.d.ts +6 -6
- package/dist/button/index.d.ts.map +1 -1
- package/dist/button/types.d.ts +18 -12
- package/dist/button/types.d.ts.map +1 -1
- package/dist/calendar/createCalendar.d.ts +15 -5
- package/dist/calendar/createCalendar.d.ts.map +1 -1
- package/dist/calendar/createCalendarCell.d.ts +6 -2
- package/dist/calendar/createCalendarCell.d.ts.map +1 -1
- package/dist/calendar/createCalendarGrid.d.ts +4 -4
- package/dist/calendar/createCalendarGrid.d.ts.map +1 -1
- package/dist/calendar/createRangeCalendar.d.ts +15 -5
- package/dist/calendar/createRangeCalendar.d.ts.map +1 -1
- package/dist/calendar/createRangeCalendarCell.d.ts +4 -2
- package/dist/calendar/createRangeCalendarCell.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +5 -5
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/intl/index.d.ts +12 -0
- package/dist/calendar/intl/index.d.ts.map +1 -0
- package/dist/calendar/utils.d.ts +12 -0
- package/dist/calendar/utils.d.ts.map +1 -0
- package/dist/checkbox/createCheckbox.d.ts +6 -6
- package/dist/checkbox/createCheckbox.d.ts.map +1 -1
- package/dist/checkbox/createCheckboxGroup.d.ts +7 -7
- package/dist/checkbox/createCheckboxGroup.d.ts.map +1 -1
- package/dist/checkbox/createCheckboxGroupItem.d.ts +4 -4
- package/dist/checkbox/createCheckboxGroupItem.d.ts.map +1 -1
- package/dist/checkbox/createCheckboxGroupState.d.ts +2 -2
- package/dist/checkbox/createCheckboxGroupState.d.ts.map +1 -1
- package/dist/checkbox/index.d.ts +8 -8
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/collections/index.d.ts +3 -3
- package/dist/collections/index.d.ts.map +1 -1
- package/dist/color/createColorArea.d.ts +3 -3
- package/dist/color/createColorArea.d.ts.map +1 -1
- package/dist/color/createColorField.d.ts +4 -4
- package/dist/color/createColorField.d.ts.map +1 -1
- package/dist/color/createColorSlider.d.ts +4 -4
- package/dist/color/createColorSlider.d.ts.map +1 -1
- package/dist/color/createColorSwatch.d.ts +2 -2
- package/dist/color/createColorSwatch.d.ts.map +1 -1
- package/dist/color/createColorWheel.d.ts +3 -3
- package/dist/color/createColorWheel.d.ts.map +1 -1
- package/dist/color/index.d.ts +6 -6
- package/dist/color/types.d.ts +98 -16
- package/dist/color/types.d.ts.map +1 -1
- package/dist/combobox/createComboBox.d.ts +10 -7
- package/dist/combobox/createComboBox.d.ts.map +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/intl/index.d.ts +1 -1
- package/dist/datepicker/createDateField.d.ts +18 -6
- package/dist/datepicker/createDateField.d.ts.map +1 -1
- package/dist/datepicker/createDatePicker.d.ts +51 -5
- package/dist/datepicker/createDatePicker.d.ts.map +1 -1
- package/dist/datepicker/createDatePickerGroup.d.ts +19 -0
- package/dist/datepicker/createDatePickerGroup.d.ts.map +1 -0
- package/dist/datepicker/createDateRangePicker.d.ts +8 -6
- package/dist/datepicker/createDateRangePicker.d.ts.map +1 -1
- package/dist/datepicker/createDateSegment.d.ts +10 -2
- package/dist/datepicker/createDateSegment.d.ts.map +1 -1
- package/dist/datepicker/createTimeField.d.ts +11 -5
- package/dist/datepicker/createTimeField.d.ts.map +1 -1
- package/dist/datepicker/createTimeSegment.d.ts +2 -2
- package/dist/datepicker/createTimeSegment.d.ts.map +1 -1
- package/dist/datepicker/index.d.ts +7 -6
- package/dist/datepicker/index.d.ts.map +1 -1
- package/dist/dialog/createDialog.d.ts +5 -5
- package/dist/dialog/createDialog.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +2 -2
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/types.d.ts +4 -4
- package/dist/disclosure/createDisclosure.d.ts +5 -2
- package/dist/disclosure/createDisclosure.d.ts.map +1 -1
- package/dist/disclosure/createDisclosureGroup.d.ts +4 -4
- package/dist/disclosure/createDisclosureGroup.d.ts.map +1 -1
- package/dist/disclosure/index.d.ts +2 -2
- package/dist/dnd/createDrag.d.ts +2 -2
- package/dist/dnd/createDrag.d.ts.map +1 -1
- package/dist/dnd/createDraggableCollection.d.ts +2 -2
- package/dist/dnd/createDraggableItem.d.ts +3 -3
- package/dist/dnd/createDraggableItem.d.ts.map +1 -1
- package/dist/dnd/createDrop.d.ts +2 -2
- package/dist/dnd/createDrop.d.ts.map +1 -1
- package/dist/dnd/createDroppableCollection.d.ts +26 -6
- package/dist/dnd/createDroppableCollection.d.ts.map +1 -1
- package/dist/dnd/createDroppableItem.d.ts +3 -3
- package/dist/dnd/index.d.ts +12 -12
- package/dist/dnd/index.d.ts.map +1 -1
- package/dist/dnd/types.d.ts +2 -2
- package/dist/dnd/types.d.ts.map +1 -1
- package/dist/dnd/utils.d.ts +1 -1
- package/dist/dnd/utils.d.ts.map +1 -1
- package/dist/focus/FocusScope.d.ts +1 -1
- package/dist/focus/FocusScope.d.ts.map +1 -1
- package/dist/focus/createAutoFocus.d.ts.map +1 -1
- package/dist/focus/createFocusRestore.d.ts.map +1 -1
- package/dist/focus/createVirtualFocus.d.ts +4 -4
- package/dist/focus/createVirtualFocus.d.ts.map +1 -1
- package/dist/focus/index.d.ts +4 -4
- package/dist/focus/index.d.ts.map +1 -1
- package/dist/form/createFormReset.d.ts +1 -1
- package/dist/form/createFormValidation.d.ts +3 -3
- package/dist/form/createFormValidation.d.ts.map +1 -1
- package/dist/form/index.d.ts +2 -2
- package/dist/form/index.d.ts.map +1 -1
- package/dist/grid/GridKeyboardDelegate.d.ts +5 -5
- package/dist/grid/createGrid.d.ts +3 -3
- package/dist/grid/createGridCell.d.ts +3 -3
- package/dist/grid/createGridRow.d.ts +3 -3
- package/dist/grid/index.d.ts +5 -5
- package/dist/grid/types.d.ts +8 -8
- package/dist/gridlist/createGridList.d.ts +6 -4
- package/dist/gridlist/createGridList.d.ts.map +1 -1
- package/dist/gridlist/createGridListItem.d.ts +4 -4
- package/dist/gridlist/createGridListItem.d.ts.map +1 -1
- package/dist/gridlist/createGridListSelectionCheckbox.d.ts +3 -3
- package/dist/gridlist/createGridListSelectionCheckbox.d.ts.map +1 -1
- package/dist/gridlist/index.d.ts +4 -4
- package/dist/gridlist/types.d.ts +11 -7
- package/dist/gridlist/types.d.ts.map +1 -1
- package/dist/i18n/createCollator.d.ts.map +1 -1
- package/dist/i18n/createDateFormatter.d.ts.map +1 -1
- package/dist/i18n/createFilter.d.ts.map +1 -1
- package/dist/i18n/createNumberFormatter.d.ts +1 -1
- package/dist/i18n/createNumberFormatter.d.ts.map +1 -1
- package/dist/i18n/createStringFormatter.d.ts +2 -2
- package/dist/i18n/createStringFormatter.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +8 -8
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/locale.d.ts +2 -2
- package/dist/i18n/locale.d.ts.map +1 -1
- package/dist/i18n/utils.d.ts.map +1 -1
- package/dist/index.d.ts +52 -51
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18012 -16820
- package/dist/index.js.map +1 -1
- package/dist/index.jsx +18242 -0
- package/dist/index.jsx.map +1 -0
- package/dist/interactions/FocusableProvider.d.ts +2 -2
- package/dist/interactions/FocusableProvider.d.ts.map +1 -1
- package/dist/interactions/PressEvent.d.ts +2 -2
- package/dist/interactions/createFocus.d.ts +1 -1
- package/dist/interactions/createFocus.d.ts.map +1 -1
- package/dist/interactions/createFocusRing.d.ts +1 -1
- package/dist/interactions/createFocusRing.d.ts.map +1 -1
- package/dist/interactions/createFocusWithin.d.ts +1 -1
- package/dist/interactions/createFocusWithin.d.ts.map +1 -1
- package/dist/interactions/createFocusable.d.ts +3 -3
- package/dist/interactions/createFocusable.d.ts.map +1 -1
- package/dist/interactions/createHover.d.ts +5 -5
- package/dist/interactions/createHover.d.ts.map +1 -1
- package/dist/interactions/createInteractionModality.d.ts +3 -3
- package/dist/interactions/createInteractionModality.d.ts.map +1 -1
- package/dist/interactions/createKeyboard.d.ts +1 -1
- package/dist/interactions/createLongPress.d.ts +5 -5
- package/dist/interactions/createMove.d.ts +5 -5
- package/dist/interactions/createMove.d.ts.map +1 -1
- package/dist/interactions/createPress.d.ts +4 -4
- package/dist/interactions/createPress.d.ts.map +1 -1
- package/dist/interactions/index.d.ts +12 -12
- package/dist/interactions/index.d.ts.map +1 -1
- package/dist/label/createField.d.ts +4 -4
- package/dist/label/createField.d.ts.map +1 -1
- package/dist/label/createLabel.d.ts +7 -7
- package/dist/label/createLabel.d.ts.map +1 -1
- package/dist/label/createLabels.d.ts +1 -1
- package/dist/label/createLabels.d.ts.map +1 -1
- package/dist/label/index.d.ts +5 -5
- package/dist/landmark/createLandmark.d.ts +5 -5
- package/dist/landmark/createLandmark.d.ts.map +1 -1
- package/dist/landmark/index.d.ts +1 -1
- package/dist/link/createLink.d.ts +14 -8
- package/dist/link/createLink.d.ts.map +1 -1
- package/dist/link/index.d.ts +1 -1
- package/dist/listbox/createListBox.d.ts +11 -6
- package/dist/listbox/createListBox.d.ts.map +1 -1
- package/dist/listbox/createOption.d.ts +21 -4
- package/dist/listbox/createOption.d.ts.map +1 -1
- package/dist/listbox/index.d.ts +2 -2
- package/dist/listbox/index.d.ts.map +1 -1
- package/dist/live-announcer/announce.d.ts +2 -2
- package/dist/live-announcer/announce.d.ts.map +1 -1
- package/dist/live-announcer/index.d.ts +1 -1
- package/dist/menu/createMenu.d.ts +7 -7
- package/dist/menu/createMenu.d.ts.map +1 -1
- package/dist/menu/createMenuItem.d.ts +16 -4
- package/dist/menu/createMenuItem.d.ts.map +1 -1
- package/dist/menu/createMenuTrigger.d.ts +4 -4
- package/dist/menu/index.d.ts +3 -3
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/meter/createMeter.d.ts +6 -6
- package/dist/meter/createMeter.d.ts.map +1 -1
- package/dist/meter/index.d.ts +1 -1
- package/dist/numberfield/createNumberField.d.ts +9 -8
- package/dist/numberfield/createNumberField.d.ts.map +1 -1
- package/dist/numberfield/index.d.ts +1 -1
- package/dist/overlays/ariaHideOutside.d.ts.map +1 -1
- package/dist/overlays/createModal.d.ts +3 -3
- package/dist/overlays/createModal.d.ts.map +1 -1
- package/dist/overlays/createOverlay.d.ts +1 -1
- package/dist/overlays/createOverlay.d.ts.map +1 -1
- package/dist/overlays/createOverlayTrigger.d.ts +6 -6
- package/dist/overlays/index.d.ts +6 -6
- package/dist/overlays/index.d.ts.map +1 -1
- package/dist/popover/calculatePosition.d.ts +4 -4
- package/dist/popover/calculatePosition.d.ts.map +1 -1
- package/dist/popover/createOverlayPosition.d.ts +3 -3
- package/dist/popover/createOverlayPosition.d.ts.map +1 -1
- package/dist/popover/createPopover.d.ts +4 -4
- package/dist/popover/createPopover.d.ts.map +1 -1
- package/dist/popover/index.d.ts +3 -3
- package/dist/progress/createProgressBar.d.ts +7 -5
- package/dist/progress/createProgressBar.d.ts.map +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/radio/createRadio.d.ts +7 -7
- package/dist/radio/createRadio.d.ts.map +1 -1
- package/dist/radio/createRadioGroup.d.ts +10 -10
- package/dist/radio/createRadioGroup.d.ts.map +1 -1
- package/dist/radio/createRadioGroupState.d.ts +3 -3
- package/dist/radio/createRadioGroupState.d.ts.map +1 -1
- package/dist/radio/index.d.ts +3 -3
- package/dist/radio/index.d.ts.map +1 -1
- package/dist/searchfield/createSearchField.d.ts +7 -7
- package/dist/searchfield/createSearchField.d.ts.map +1 -1
- package/dist/searchfield/index.d.ts +2 -2
- package/dist/select/createHiddenSelect.d.ts +4 -4
- package/dist/select/createHiddenSelect.d.ts.map +1 -1
- package/dist/select/createSelect.d.ts +14 -6
- package/dist/select/createSelect.d.ts.map +1 -1
- package/dist/select/index.d.ts +2 -2
- package/dist/select/index.d.ts.map +1 -1
- package/dist/selection/createTypeSelect.d.ts +2 -2
- package/dist/selection/index.d.ts +1 -1
- package/dist/separator/createSeparator.d.ts +9 -5
- package/dist/separator/createSeparator.d.ts.map +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/slider/createSlider.d.ts +11 -7
- package/dist/slider/createSlider.d.ts.map +1 -1
- package/dist/slider/index.d.ts +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/ssr/index.d.ts.map +1 -1
- package/dist/steplist/createStepList.d.ts +36 -0
- package/dist/steplist/createStepList.d.ts.map +1 -0
- package/dist/steplist/index.d.ts +2 -0
- package/dist/steplist/index.d.ts.map +1 -0
- package/dist/switch/createSwitch.d.ts +6 -4
- package/dist/switch/createSwitch.d.ts.map +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/table/createTable.d.ts +3 -3
- package/dist/table/createTable.d.ts.map +1 -1
- package/dist/table/createTableCell.d.ts +3 -3
- package/dist/table/createTableCell.d.ts.map +1 -1
- package/dist/table/createTableColumnHeader.d.ts +3 -3
- package/dist/table/createTableColumnHeader.d.ts.map +1 -1
- package/dist/table/createTableColumnResize.d.ts +41 -0
- package/dist/table/createTableColumnResize.d.ts.map +1 -0
- package/dist/table/createTableHeaderRow.d.ts +3 -3
- package/dist/table/createTableRow.d.ts +3 -3
- package/dist/table/createTableRow.d.ts.map +1 -1
- package/dist/table/createTableRowGroup.d.ts +2 -2
- package/dist/table/createTableRowGroup.d.ts.map +1 -1
- package/dist/table/createTableSelectAllCheckbox.d.ts +3 -3
- package/dist/table/createTableSelectAllCheckbox.d.ts.map +1 -1
- package/dist/table/createTableSelectionCheckbox.d.ts +3 -3
- package/dist/table/index.d.ts +11 -9
- package/dist/table/index.d.ts.map +1 -1
- package/dist/table/types.d.ts +15 -7
- package/dist/table/types.d.ts.map +1 -1
- package/dist/tabs/createTabs.d.ts +28 -25
- package/dist/tabs/createTabs.d.ts.map +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tag/createTag.d.ts +2 -2
- package/dist/tag/createTag.d.ts.map +1 -1
- package/dist/tag/createTagGroup.d.ts +5 -5
- package/dist/tag/createTagGroup.d.ts.map +1 -1
- package/dist/tag/index.d.ts +2 -2
- package/dist/tag/index.d.ts.map +1 -1
- package/dist/textfield/createTextField.d.ts +17 -11
- package/dist/textfield/createTextField.d.ts.map +1 -1
- package/dist/textfield/index.d.ts +1 -1
- package/dist/textfield/index.d.ts.map +1 -1
- package/dist/toast/createToast.d.ts +2 -2
- package/dist/toast/createToast.d.ts.map +1 -1
- package/dist/toast/createToastRegion.d.ts +5 -3
- package/dist/toast/createToastRegion.d.ts.map +1 -1
- package/dist/toast/index.d.ts +2 -2
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toggle/createToggle.d.ts +9 -9
- package/dist/toggle/createToggle.d.ts.map +1 -1
- package/dist/toggle/createToggleState.d.ts +2 -2
- package/dist/toggle/createToggleState.d.ts.map +1 -1
- package/dist/toggle/index.d.ts +4 -4
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toolbar/createToolbar.d.ts +9 -9
- package/dist/toolbar/createToolbar.d.ts.map +1 -1
- package/dist/toolbar/index.d.ts +1 -1
- package/dist/toolbar/index.d.ts.map +1 -1
- package/dist/tooltip/createTooltip.d.ts +5 -5
- package/dist/tooltip/createTooltip.d.ts.map +1 -1
- package/dist/tooltip/createTooltipTrigger.d.ts +10 -5
- package/dist/tooltip/createTooltipTrigger.d.ts.map +1 -1
- package/dist/tooltip/index.d.ts +2 -2
- package/dist/tree/createTree.d.ts +3 -3
- package/dist/tree/createTree.d.ts.map +1 -1
- package/dist/tree/createTreeItem.d.ts +4 -4
- package/dist/tree/createTreeItem.d.ts.map +1 -1
- package/dist/tree/createTreeSelectionCheckbox.d.ts +3 -3
- package/dist/tree/createTreeSelectionCheckbox.d.ts.map +1 -1
- package/dist/tree/index.d.ts +4 -4
- package/dist/tree/types.d.ts +10 -6
- package/dist/tree/types.d.ts.map +1 -1
- package/dist/utils/createDescription.d.ts +2 -2
- package/dist/utils/createDescription.d.ts.map +1 -1
- package/dist/utils/dom.d.ts.map +1 -1
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/focus.d.ts +1 -1
- package/dist/utils/focus.d.ts.map +1 -1
- package/dist/utils/geometry.d.ts.map +1 -1
- package/dist/utils/index.d.ts +12 -12
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/mergeProps.d.ts.map +1 -1
- package/dist/utils/reactivity.d.ts +1 -1
- package/dist/visually-hidden/createVisuallyHidden.d.ts +2 -2
- package/dist/visually-hidden/createVisuallyHidden.d.ts.map +1 -1
- package/dist/visually-hidden/index.d.ts +1 -1
- package/package.json +32 -32
- package/src/actiongroup/createActionGroup.ts +101 -91
- package/src/actiongroup/index.ts +1 -1
- package/src/autocomplete/createAutocomplete.ts +117 -134
- package/src/autocomplete/index.ts +1 -1
- package/src/breadcrumbs/createBreadcrumbs.ts +33 -42
- package/src/breadcrumbs/index.ts +1 -1
- package/src/button/createButton.ts +102 -73
- package/src/button/createToggleButton.ts +10 -10
- package/src/button/createToggleButtonGroup.ts +25 -32
- package/src/button/index.ts +6 -9
- package/src/button/types.ts +18 -12
- package/src/calendar/createCalendar.ts +62 -29
- package/src/calendar/createCalendarCell.ts +98 -46
- package/src/calendar/createCalendarGrid.ts +57 -35
- package/src/calendar/createRangeCalendar.ts +66 -31
- package/src/calendar/createRangeCalendarCell.ts +92 -31
- package/src/calendar/index.ts +5 -9
- package/src/calendar/intl/index.ts +210 -0
- package/src/calendar/utils.ts +227 -0
- package/src/checkbox/createCheckbox.ts +13 -21
- package/src/checkbox/createCheckboxGroup.ts +68 -44
- package/src/checkbox/createCheckboxGroupItem.ts +16 -27
- package/src/checkbox/createCheckboxGroupState.ts +3 -22
- package/src/checkbox/index.ts +8 -10
- package/src/collections/index.ts +33 -29
- package/src/color/createColorArea.ts +232 -154
- package/src/color/createColorField.ts +107 -58
- package/src/color/createColorSlider.ts +231 -73
- package/src/color/createColorSwatch.ts +38 -13
- package/src/color/createColorWheel.ts +208 -83
- package/src/color/index.ts +6 -6
- package/src/color/types.ts +98 -16
- package/src/combobox/createComboBox.ts +157 -100
- package/src/combobox/index.ts +1 -1
- package/src/combobox/intl/index.ts +5 -5
- package/src/datepicker/createDateField.ts +192 -39
- package/src/datepicker/createDatePicker.ts +260 -67
- package/src/datepicker/createDatePickerGroup.ts +149 -0
- package/src/datepicker/createDateRangePicker.ts +105 -57
- package/src/datepicker/createDateSegment.ts +183 -96
- package/src/datepicker/createTimeField.ts +38 -34
- package/src/datepicker/createTimeSegment.ts +67 -85
- package/src/datepicker/index.ts +13 -14
- package/src/dialog/createDialog.ts +45 -38
- package/src/dialog/index.ts +2 -2
- package/src/dialog/types.ts +4 -4
- package/src/disclosure/createDisclosure.ts +138 -33
- package/src/disclosure/createDisclosureGroup.ts +8 -21
- package/src/disclosure/index.ts +2 -2
- package/src/dnd/createDrag.ts +19 -25
- package/src/dnd/createDraggableCollection.ts +4 -4
- package/src/dnd/createDraggableItem.ts +20 -19
- package/src/dnd/createDrop.ts +42 -51
- package/src/dnd/createDroppableCollection.ts +290 -173
- package/src/dnd/createDroppableItem.ts +34 -34
- package/src/dnd/index.ts +23 -12
- package/src/dnd/types.ts +4 -7
- package/src/dnd/utils.ts +36 -49
- package/src/focus/FocusScope.tsx +155 -164
- package/src/focus/createAutoFocus.ts +4 -20
- package/src/focus/createFocusRestore.ts +15 -28
- package/src/focus/createVirtualFocus.ts +20 -36
- package/src/focus/index.ts +4 -8
- package/src/form/createFormReset.ts +4 -4
- package/src/form/createFormValidation.ts +20 -43
- package/src/form/index.ts +2 -5
- package/src/grid/GridKeyboardDelegate.ts +30 -30
- package/src/grid/createGrid.ts +36 -36
- package/src/grid/createGridCell.ts +18 -18
- package/src/grid/createGridRow.ts +14 -14
- package/src/grid/index.ts +5 -5
- package/src/grid/types.ts +8 -8
- package/src/gridlist/createGridList.ts +34 -29
- package/src/gridlist/createGridListItem.ts +68 -23
- package/src/gridlist/createGridListSelectionCheckbox.ts +12 -9
- package/src/gridlist/index.ts +4 -4
- package/src/gridlist/types.ts +11 -7
- package/src/i18n/createCollator.ts +5 -18
- package/src/i18n/createDateFormatter.ts +5 -13
- package/src/i18n/createFilter.ts +11 -24
- package/src/i18n/createNumberFormatter.ts +4 -6
- package/src/i18n/createStringFormatter.ts +19 -15
- package/src/i18n/index.ts +8 -11
- package/src/i18n/locale.tsx +15 -40
- package/src/i18n/utils.ts +35 -39
- package/src/index.ts +68 -169
- package/src/interactions/FocusableProvider.tsx +3 -7
- package/src/interactions/PressEvent.ts +4 -4
- package/src/interactions/createFocus.ts +12 -8
- package/src/interactions/createFocusRing.ts +21 -19
- package/src/interactions/createFocusWithin.ts +20 -13
- package/src/interactions/createFocusable.ts +15 -16
- package/src/interactions/createHover.ts +70 -55
- package/src/interactions/createInteractionModality.ts +75 -82
- package/src/interactions/createKeyboard.ts +2 -2
- package/src/interactions/createLongPress.ts +23 -23
- package/src/interactions/createMove.ts +72 -62
- package/src/interactions/createPress.ts +164 -87
- package/src/interactions/index.ts +24 -16
- package/src/label/createField.ts +18 -19
- package/src/label/createLabel.ts +18 -30
- package/src/label/createLabels.ts +8 -12
- package/src/label/index.ts +5 -5
- package/src/landmark/createLandmark.ts +30 -51
- package/src/landmark/index.ts +1 -1
- package/src/link/createLink.ts +83 -56
- package/src/link/index.ts +1 -1
- package/src/listbox/createListBox.ts +69 -58
- package/src/listbox/createOption.ts +83 -37
- package/src/listbox/index.ts +2 -6
- package/src/live-announcer/announce.ts +44 -71
- package/src/live-announcer/index.ts +1 -1
- package/src/menu/createMenu.ts +79 -50
- package/src/menu/createMenuItem.ts +79 -27
- package/src/menu/createMenuTrigger.ts +15 -15
- package/src/menu/index.ts +3 -12
- package/src/meter/createMeter.ts +7 -15
- package/src/meter/index.ts +1 -1
- package/src/numberfield/createNumberField.ts +138 -81
- package/src/numberfield/index.ts +1 -1
- package/src/overlays/ariaHideOutside.ts +14 -10
- package/src/overlays/createInteractOutside.ts +21 -18
- package/src/overlays/createModal.tsx +17 -17
- package/src/overlays/createOverlay.ts +38 -8
- package/src/overlays/createOverlayTrigger.ts +16 -16
- package/src/overlays/createPreventScroll.ts +46 -24
- package/src/overlays/index.ts +6 -17
- package/src/popover/calculatePosition.ts +115 -117
- package/src/popover/createOverlayPosition.ts +46 -40
- package/src/popover/createPopover.ts +42 -17
- package/src/popover/index.ts +3 -3
- package/src/progress/createProgressBar.ts +31 -32
- package/src/progress/index.ts +1 -1
- package/src/radio/createRadio.ts +95 -73
- package/src/radio/createRadioGroup.ts +83 -77
- package/src/radio/createRadioGroupState.ts +7 -31
- package/src/radio/index.ts +3 -8
- package/src/searchfield/createSearchField.ts +57 -29
- package/src/searchfield/index.ts +2 -2
- package/src/select/createHiddenSelect.tsx +57 -44
- package/src/select/createSelect.ts +128 -71
- package/src/select/index.ts +2 -7
- package/src/selection/createTypeSelect.ts +11 -11
- package/src/selection/index.ts +1 -1
- package/src/separator/createSeparator.ts +20 -25
- package/src/separator/index.ts +1 -1
- package/src/slider/createSlider.ts +93 -124
- package/src/slider/index.ts +2 -2
- package/src/ssr/index.tsx +8 -47
- package/src/steplist/createStepList.ts +106 -0
- package/src/steplist/index.ts +8 -0
- package/src/switch/createSwitch.ts +9 -14
- package/src/switch/index.ts +1 -1
- package/src/table/createTable.ts +152 -85
- package/src/table/createTableCell.ts +17 -16
- package/src/table/createTableColumnHeader.ts +67 -20
- package/src/table/createTableColumnResize.ts +256 -0
- package/src/table/createTableHeaderRow.ts +7 -7
- package/src/table/createTableRow.ts +149 -29
- package/src/table/createTableRowGroup.ts +5 -7
- package/src/table/createTableSelectAllCheckbox.ts +12 -11
- package/src/table/createTableSelectionCheckbox.ts +8 -8
- package/src/table/index.ts +14 -9
- package/src/table/types.ts +15 -7
- package/src/tabs/createTabs.ts +74 -92
- package/src/tabs/index.ts +1 -1
- package/src/tag/createTag.ts +52 -50
- package/src/tag/createTagGroup.ts +47 -41
- package/src/tag/index.ts +2 -6
- package/src/textfield/createTextField.ts +67 -35
- package/src/textfield/index.ts +1 -5
- package/src/toast/createToast.ts +28 -26
- package/src/toast/createToastRegion.ts +169 -26
- package/src/toast/index.ts +2 -6
- package/src/toggle/createToggle.ts +95 -53
- package/src/toggle/createToggleState.ts +2 -10
- package/src/toggle/index.ts +4 -5
- package/src/toolbar/createToolbar.ts +193 -210
- package/src/toolbar/index.ts +1 -1
- package/src/tooltip/createTooltip.ts +11 -24
- package/src/tooltip/createTooltipTrigger.ts +61 -49
- package/src/tooltip/index.ts +2 -2
- package/src/tree/createTree.ts +35 -37
- package/src/tree/createTreeItem.ts +29 -29
- package/src/tree/createTreeSelectionCheckbox.ts +11 -8
- package/src/tree/index.ts +4 -4
- package/src/tree/types.ts +10 -6
- package/src/utils/createDescription.ts +6 -23
- package/src/utils/dom.ts +61 -54
- package/src/utils/env.ts +9 -11
- package/src/utils/events.ts +7 -7
- package/src/utils/filterDOMProps.ts +49 -49
- package/src/utils/focus.ts +60 -68
- package/src/utils/geometry.ts +1 -4
- package/src/utils/globalListeners.ts +9 -9
- package/src/utils/index.ts +12 -22
- package/src/utils/mergeProps.ts +42 -15
- package/src/utils/platform.ts +2 -2
- package/src/utils/reactivity.ts +3 -3
- package/src/utils/textSelection.ts +16 -16
- package/src/visually-hidden/createVisuallyHidden.ts +16 -28
- package/src/visually-hidden/index.ts +1 -1
- package/dist/i18n/NumberFormatter.d.ts +0 -43
- package/dist/i18n/NumberFormatter.d.ts.map +0 -1
- package/dist/index.ssr.js +0 -17082
- package/dist/index.ssr.js.map +0 -1
- package/src/i18n/NumberFormatter.ts +0 -266
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/datepicker/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/datepicker/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGjG,OAAO,EACL,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGjG,OAAO,EACL,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,qBAAqB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,qBAAqB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,MAAM,yBAAyB,CAAC"}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* Ported from React Aria:
|
|
3
3
|
* https://github.com/adobe/react-spectrum/blob/main/packages/@react-aria/dialog/src/useDialog.ts
|
|
4
4
|
*/
|
|
5
|
-
import { Accessor } from
|
|
6
|
-
import type { AriaLabelingProps, DOMProps } from
|
|
5
|
+
import { Accessor } from "solid-js";
|
|
6
|
+
import type { AriaLabelingProps, DOMProps } from "./types";
|
|
7
7
|
export interface AriaDialogProps extends DOMProps, AriaLabelingProps {
|
|
8
8
|
/**
|
|
9
9
|
* The role of the dialog element.
|
|
10
10
|
* @default 'dialog'
|
|
11
11
|
*/
|
|
12
|
-
role?:
|
|
12
|
+
role?: "dialog" | "alertdialog";
|
|
13
13
|
}
|
|
14
14
|
export interface DialogAria {
|
|
15
15
|
/** Props for the dialog container element. */
|
|
16
|
-
dialogProps: Accessor<Record<string,
|
|
16
|
+
dialogProps: Accessor<Record<string, unknown>>;
|
|
17
17
|
/** Props for the dialog title element. */
|
|
18
|
-
titleProps: Accessor<Record<string,
|
|
18
|
+
titleProps: Accessor<Record<string, unknown>>;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Provides the behavior and accessibility implementation for a dialog component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDialog.d.ts","sourceRoot":"","sources":["../../src/dialog/createDialog.ts"],"names":[],"mappings":"AAYA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"createDialog.d.ts","sourceRoot":"","sources":["../../src/dialog/createDialog.ts"],"names":[],"mappings":"AAYA;;;GAGG;AAEH,OAAO,EACL,QAAQ,EAMT,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,WAAW,eAAgB,SAAQ,QAAQ,EAAE,iBAAiB;IAClE;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,8CAA8C;IAC9C,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAE/C,0CAA0C;IAC1C,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,EAClD,GAAG,EAAE,QAAQ,CAAC,WAAW,GAAG,SAAS,CAAC,GACrC,UAAU,CA2EZ"}
|
package/dist/dialog/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createDialog } from
|
|
2
|
-
export type { AriaDialogProps, DialogAria } from
|
|
1
|
+
export { createDialog } from "./createDialog";
|
|
2
|
+
export type { AriaDialogProps, DialogAria } from "./createDialog";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/dialog/types.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ export interface DOMProps {
|
|
|
7
7
|
}
|
|
8
8
|
export interface AriaLabelingProps {
|
|
9
9
|
/** Defines a string value that labels the current element. */
|
|
10
|
-
|
|
10
|
+
"aria-label"?: string;
|
|
11
11
|
/** Identifies the element (or elements) that labels the current element. */
|
|
12
|
-
|
|
12
|
+
"aria-labelledby"?: string;
|
|
13
13
|
/** Identifies the element (or elements) that describes the object. */
|
|
14
|
-
|
|
14
|
+
"aria-describedby"?: string;
|
|
15
15
|
/** Identifies the element (or elements) that provide a detailed, extended description for the object. */
|
|
16
|
-
|
|
16
|
+
"aria-details"?: string;
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Port of @react-aria/disclosure useDisclosure.
|
|
7
7
|
*/
|
|
8
|
-
import { type JSX } from
|
|
9
|
-
import { type DisclosureState } from
|
|
8
|
+
import { type JSX } from "solid-js";
|
|
9
|
+
import { type DisclosureState } from "@proyecto-viviana/solid-stately";
|
|
10
10
|
export interface AriaDisclosureProps {
|
|
11
11
|
/** Whether the disclosure is disabled. */
|
|
12
12
|
isDisabled?: boolean;
|
|
@@ -16,7 +16,10 @@ export interface DisclosureAria {
|
|
|
16
16
|
buttonProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
17
17
|
/** Props for the disclosure panel. */
|
|
18
18
|
panelProps: JSX.HTMLAttributes<HTMLElement>;
|
|
19
|
+
/** Whether the disclosure trigger is currently pressed. */
|
|
20
|
+
isPressed: () => boolean;
|
|
19
21
|
}
|
|
22
|
+
export declare function getDisclosurePanelHiddenAttribute(isExpanded: boolean, hasDOM?: boolean): true | undefined;
|
|
20
23
|
/**
|
|
21
24
|
* Provides the behavior and accessibility implementation for a disclosure component.
|
|
22
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDisclosure.d.ts","sourceRoot":"","sources":["../../src/disclosure/createDisclosure.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"createDisclosure.d.ts","sourceRoot":"","sources":["../../src/disclosure/createDisclosure.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKvE,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,WAAW,EAAE,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACzD,sCAAsC;IACtC,UAAU,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC5C,2DAA2D;IAC3D,SAAS,EAAE,MAAM,OAAO,CAAC;CAC1B;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,OAAO,EACnB,MAAM,UAAY,GACjB,IAAI,GAAG,SAAS,CAElB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,EACxD,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,MAAM,WAAW,GAAG,IAAI,GACjC,cAAc,CAqKhB"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Port of @react-aria/disclosure.
|
|
7
7
|
*/
|
|
8
|
-
import { type JSX } from
|
|
9
|
-
import { type DisclosureGroupState } from
|
|
10
|
-
import { type MaybeAccessor } from
|
|
8
|
+
import { type JSX } from "solid-js";
|
|
9
|
+
import { type DisclosureGroupState } from "@proyecto-viviana/solid-stately";
|
|
10
|
+
import { type MaybeAccessor } from "../utils/reactivity";
|
|
11
11
|
export interface AriaDisclosureGroupProps {
|
|
12
12
|
/** Whether the disclosure group is disabled. */
|
|
13
13
|
isDisabled?: boolean;
|
|
@@ -36,5 +36,5 @@ export interface DisclosureGroupAria {
|
|
|
36
36
|
* }
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
export declare function createDisclosureGroup(
|
|
39
|
+
export declare function createDisclosureGroup(_props: MaybeAccessor<AriaDisclosureGroupProps>, _state: DisclosureGroupState): DisclosureGroupAria;
|
|
40
40
|
//# sourceMappingURL=createDisclosureGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDisclosureGroup.d.ts","sourceRoot":"","sources":["../../src/disclosure/createDisclosureGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"createDisclosureGroup.d.ts","sourceRoot":"","sources":["../../src/disclosure/createDisclosureGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,WAAW,wBAAwB;IACvC,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,UAAU,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,CAAC,wBAAwB,CAAC,EAC/C,MAAM,EAAE,oBAAoB,GAC3B,mBAAmB,CAMrB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createDisclosure, type AriaDisclosureProps, type DisclosureAria, } from
|
|
2
|
-
export { createDisclosureGroup, type AriaDisclosureGroupProps, type DisclosureGroupAria, } from
|
|
1
|
+
export { createDisclosure, type AriaDisclosureProps, type DisclosureAria, } from "./createDisclosure";
|
|
2
|
+
export { createDisclosureGroup, type AriaDisclosureGroupProps, type DisclosureGroupAria, } from "./createDisclosureGroup";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dnd/createDrag.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Provides accessibility props for draggable elements with support for
|
|
5
5
|
* mouse, touch, and keyboard interactions.
|
|
6
6
|
*/
|
|
7
|
-
import { type Accessor } from
|
|
8
|
-
import type { AriaDragOptions, DragAria } from
|
|
7
|
+
import { type Accessor } from "solid-js";
|
|
8
|
+
import type { AriaDragOptions, DragAria } from "./types";
|
|
9
9
|
/**
|
|
10
10
|
* Creates ARIA props for a draggable element.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDrag.d.ts","sourceRoot":"","sources":["../../src/dnd/createDrag.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAazD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"createDrag.d.ts","sourceRoot":"","sources":["../../src/dnd/createDrag.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAazD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ,CA6LrE"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Provides accessibility support for dragging items from a collection
|
|
5
5
|
* component like ListBox, GridList, or Table.
|
|
6
6
|
*/
|
|
7
|
-
import { type Accessor } from
|
|
8
|
-
import type { DraggableCollectionState } from
|
|
7
|
+
import { type Accessor } from "solid-js";
|
|
8
|
+
import type { DraggableCollectionState } from "@proyecto-viviana/solid-stately";
|
|
9
9
|
export declare function setGlobalDraggingCollectionRef(ref: HTMLElement | null): void;
|
|
10
10
|
export declare function getGlobalDraggingCollectionRef(): HTMLElement | null;
|
|
11
11
|
export declare function setGlobalDraggingKeys(keys: Set<string | number>): void;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides accessibility props for items that can be dragged from a collection.
|
|
5
5
|
*/
|
|
6
|
-
import { type Accessor } from
|
|
7
|
-
import type { JSX } from
|
|
8
|
-
import type { DraggableCollectionState, DragPreviewRenderer } from
|
|
6
|
+
import { type Accessor } from "solid-js";
|
|
7
|
+
import type { JSX } from "solid-js";
|
|
8
|
+
import type { DraggableCollectionState, DragPreviewRenderer } from "@proyecto-viviana/solid-stately";
|
|
9
9
|
export interface DraggableItemOptions {
|
|
10
10
|
/** The unique key of the item. */
|
|
11
11
|
key: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDraggableItem.d.ts","sourceRoot":"","sources":["../../src/dnd/createDraggableItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAazC,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qCAAqC;IACrC,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAA;KAAE,CAAC;CACnD;AAED,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3C,6DAA6D;IAC7D,eAAe,EAAE,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC7D,mDAAmD;IACnD,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACvC,KAAK,EAAE,wBAAwB,GAC9B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"createDraggableItem.d.ts","sourceRoot":"","sources":["../../src/dnd/createDraggableItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAazC,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qCAAqC;IACrC,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAA;KAAE,CAAC;CACnD;AAED,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3C,6DAA6D;IAC7D,eAAe,EAAE,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC7D,mDAAmD;IACnD,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACvC,KAAK,EAAE,wBAAwB,GAC9B,iBAAiB,CA6MnB"}
|
package/dist/dnd/createDrop.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Provides accessibility props for drop target elements with support for
|
|
5
5
|
* mouse, touch, and keyboard interactions.
|
|
6
6
|
*/
|
|
7
|
-
import { type Accessor } from
|
|
8
|
-
import type { AriaDropOptions, DropAria } from
|
|
7
|
+
import { type Accessor } from "solid-js";
|
|
8
|
+
import type { AriaDropOptions, DropAria } from "./types";
|
|
9
9
|
/**
|
|
10
10
|
* Creates ARIA props for a drop target element.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDrop.d.ts","sourceRoot":"","sources":["../../src/dnd/createDrop.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAezD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"createDrop.d.ts","sourceRoot":"","sources":["../../src/dnd/createDrop.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAezD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ,CA0RrE"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Provides accessibility support for dropping items into a collection
|
|
5
5
|
* component like ListBox, GridList, or Table.
|
|
6
6
|
*/
|
|
7
|
-
import { type Accessor } from
|
|
8
|
-
import type { JSX } from
|
|
9
|
-
import type { DroppableCollectionState, DropTarget, DropOperation, DropItem } from
|
|
7
|
+
import { type Accessor } from "solid-js";
|
|
8
|
+
import type { JSX } from "solid-js";
|
|
9
|
+
import type { DroppableCollectionState, DropTarget, DropOperation, DropItem, Key } from "@proyecto-viviana/solid-stately";
|
|
10
10
|
export declare function setGlobalDropCollectionRef(ref: HTMLElement | null): void;
|
|
11
11
|
export declare function getGlobalDropCollectionRef(): HTMLElement | null;
|
|
12
12
|
export interface DropTargetDelegate {
|
|
@@ -17,11 +17,11 @@ export interface DropTargetDelegate {
|
|
|
17
17
|
/**
|
|
18
18
|
* Returns the next keyboard-navigable drop target.
|
|
19
19
|
*/
|
|
20
|
-
getKeyboardNavigationTarget?(target: DropTarget | null, direction:
|
|
20
|
+
getKeyboardNavigationTarget?(target: DropTarget | null, direction: "next" | "previous", isValidDropTarget: (target: DropTarget) => boolean): DropTarget | null;
|
|
21
21
|
/**
|
|
22
22
|
* Returns the next page-navigable drop target.
|
|
23
23
|
*/
|
|
24
|
-
getKeyboardPageNavigationTarget?(target: DropTarget | null, direction:
|
|
24
|
+
getKeyboardPageNavigationTarget?(target: DropTarget | null, direction: "next" | "previous", isValidDropTarget: (target: DropTarget) => boolean): DropTarget | null;
|
|
25
25
|
}
|
|
26
26
|
export interface KeyboardDelegateLike {
|
|
27
27
|
getFirstKey?: () => string | number | null;
|
|
@@ -33,6 +33,17 @@ export interface KeyboardDelegateLike {
|
|
|
33
33
|
getKeyPageBelow?: (key: string | number) => string | number | null;
|
|
34
34
|
getKeyPageAbove?: (key: string | number) => string | number | null;
|
|
35
35
|
}
|
|
36
|
+
interface CollectionNodeLike {
|
|
37
|
+
type?: string;
|
|
38
|
+
key: Key;
|
|
39
|
+
parentKey?: Key | null;
|
|
40
|
+
childNodes?: CollectionNodeLike[];
|
|
41
|
+
isExpanded?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface CollectionLike {
|
|
44
|
+
getItem(key: Key): CollectionNodeLike | null;
|
|
45
|
+
[Symbol.iterator](): Iterator<CollectionNodeLike>;
|
|
46
|
+
}
|
|
36
47
|
export interface DroppableCollectionOptions {
|
|
37
48
|
/** Reference to the collection element. */
|
|
38
49
|
ref: Accessor<HTMLElement | null>;
|
|
@@ -86,10 +97,18 @@ export interface DroppableCollectionOptions {
|
|
|
86
97
|
keyboardDelegate?: KeyboardDelegateLike;
|
|
87
98
|
/** Optional keyboard handler composed with internal drop target navigation keys. */
|
|
88
99
|
onKeyDown?: (e: KeyboardEvent) => void;
|
|
100
|
+
/** Collection snapshot used to restore focus and selection after a drop mutates items. */
|
|
101
|
+
collection?: CollectionLike;
|
|
102
|
+
/** Current collection selection used to avoid replacing user-updated selection after a drop. */
|
|
103
|
+
selectedKeys?: "all" | Iterable<Key>;
|
|
104
|
+
/** Sets collection selection after a drop when new rows were inserted and selection was unchanged. */
|
|
105
|
+
setSelectedKeys?: (keys: Set<Key>) => void;
|
|
106
|
+
/** Sets collection focus after a drop when new rows were inserted. */
|
|
107
|
+
setFocusedKey?: (key: Key | null) => void;
|
|
89
108
|
/** Whether the collection is disabled for dropping. */
|
|
90
109
|
isDisabled?: boolean;
|
|
91
110
|
/** Accepted drag types. 'all' accepts any type. */
|
|
92
|
-
acceptedDragTypes?:
|
|
111
|
+
acceptedDragTypes?: "all" | Array<string | symbol>;
|
|
93
112
|
}
|
|
94
113
|
export declare function getDropItemTypes(item: DropItem): Set<string | symbol>;
|
|
95
114
|
export interface DroppableCollectionAria {
|
|
@@ -104,4 +123,5 @@ export interface DroppableCollectionAria {
|
|
|
104
123
|
* @returns Droppable collection ARIA result
|
|
105
124
|
*/
|
|
106
125
|
export declare function createDroppableCollection(options: Accessor<DroppableCollectionOptions>, state: DroppableCollectionState): DroppableCollectionAria;
|
|
126
|
+
export {};
|
|
107
127
|
//# sourceMappingURL=createDroppableCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDroppableCollection.d.ts","sourceRoot":"","sources":["../../src/dnd/createDroppableCollection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyB,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EACV,wBAAwB,EACxB,UAAU,EACV,aAAa,EACb,QAAQ,
|
|
1
|
+
{"version":3,"file":"createDroppableCollection.d.ts","sourceRoot":"","sources":["../../src/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ACxC,oFAAoF;IACpF,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACvC,0FAA0F;IAC1F,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,gGAAgG;IAChG,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IACrC,sGAAsG;IACtG,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IAC3C,sEAAsE;IACtE,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACpD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAQrE;AAED,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;CAClD;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,QAAQ,CAAC,0BAA0B,CAAC,EAC7C,KAAK,EAAE,wBAAwB,GAC9B,uBAAuB,CAuiBzB"}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides accessibility props for items that can receive drops.
|
|
5
5
|
*/
|
|
6
|
-
import { type Accessor } from
|
|
7
|
-
import type { JSX } from
|
|
8
|
-
import type { DroppableCollectionState } from
|
|
6
|
+
import { type Accessor } from "solid-js";
|
|
7
|
+
import type { JSX } from "solid-js";
|
|
8
|
+
import type { DroppableCollectionState } from "@proyecto-viviana/solid-stately";
|
|
9
9
|
export interface DroppableItemOptions {
|
|
10
10
|
/** The unique key of the item. */
|
|
11
11
|
key: string | number;
|
package/dist/dnd/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides ARIA hooks for drag and drop interactions.
|
|
5
5
|
*/
|
|
6
|
-
export { createDrag } from
|
|
7
|
-
export { createDrop } from
|
|
8
|
-
export { createDraggableCollection, setGlobalDraggingCollectionRef, getGlobalDraggingCollectionRef, setGlobalDraggingKeys, getGlobalDraggingKeys, setGlobalDraggingTypes, getGlobalDraggingTypes, } from
|
|
9
|
-
export { createDroppableCollection, setGlobalDropCollectionRef, getGlobalDropCollectionRef } from
|
|
10
|
-
export { createDraggableItem } from
|
|
11
|
-
export { createDroppableItem } from
|
|
12
|
-
export type { AriaDragOptions, DragAria, AriaDropOptions, DropAria } from
|
|
13
|
-
export type { DraggableCollectionOptions, DraggableCollectionAria } from
|
|
14
|
-
export type { DroppableCollectionOptions, DroppableCollectionAria, DropTargetDelegate } from
|
|
15
|
-
export type { DraggableItemOptions, DraggableItemAria } from
|
|
16
|
-
export type { DroppableItemOptions, DroppableItemAria } from
|
|
17
|
-
export { CUSTOM_DRAG_TYPE, NATIVE_DRAG_TYPES, GENERIC_TYPE, DROP_OPERATION, DROP_OPERATION_ALLOWED, EFFECT_ALLOWED, DROP_EFFECT_TO_DROP_OPERATION, DROP_OPERATION_TO_DROP_EFFECT, getTypes, writeToDataTransfer, readFromDataTransfer, DragTypesImpl, isTextDropItem, isFileDropItem, isDirectoryDropItem, setGlobalDropEffect, getGlobalDropEffect, setGlobalAllowedDropOperations, getGlobalAllowedDropOperations, } from
|
|
6
|
+
export { createDrag } from "./createDrag";
|
|
7
|
+
export { createDrop } from "./createDrop";
|
|
8
|
+
export { createDraggableCollection, setGlobalDraggingCollectionRef, getGlobalDraggingCollectionRef, setGlobalDraggingKeys, getGlobalDraggingKeys, setGlobalDraggingTypes, getGlobalDraggingTypes, } from "./createDraggableCollection";
|
|
9
|
+
export { createDroppableCollection, setGlobalDropCollectionRef, getGlobalDropCollectionRef, } from "./createDroppableCollection";
|
|
10
|
+
export { createDraggableItem } from "./createDraggableItem";
|
|
11
|
+
export { createDroppableItem } from "./createDroppableItem";
|
|
12
|
+
export type { AriaDragOptions, DragAria, AriaDropOptions, DropAria } from "./types";
|
|
13
|
+
export type { DraggableCollectionOptions, DraggableCollectionAria, } from "./createDraggableCollection";
|
|
14
|
+
export type { DroppableCollectionOptions, DroppableCollectionAria, DropTargetDelegate, } from "./createDroppableCollection";
|
|
15
|
+
export type { DraggableItemOptions, DraggableItemAria } from "./createDraggableItem";
|
|
16
|
+
export type { DroppableItemOptions, DroppableItemAria } from "./createDroppableItem";
|
|
17
|
+
export { CUSTOM_DRAG_TYPE, NATIVE_DRAG_TYPES, GENERIC_TYPE, DROP_OPERATION, DROP_OPERATION_ALLOWED, EFFECT_ALLOWED, DROP_EFFECT_TO_DROP_OPERATION, DROP_OPERATION_TO_DROP_EFFECT, getTypes, writeToDataTransfer, readFromDataTransfer, DragTypesImpl, isTextDropItem, isFileDropItem, isDirectoryDropItem, setGlobalDropEffect, getGlobalDropEffect, setGlobalAllowedDropOperations, getGlobalAllowedDropOperations, } from "./utils";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dnd/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dnd/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dnd/index.ts"],"names":[],"mappings":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/
|
|
4
|
-
import type { JSX } from
|
|
5
|
-
import type { DragItem, DragStartEvent, DragMoveEvent, DragEndEvent, DropEnterEvent, DropMoveEvent, DropActivateEvent, DropExitEvent, DropEvent, DropOperation, DragTypes, DragPreviewRenderer } from
|
|
4
|
+
import type { JSX } from "solid-js";
|
|
5
|
+
import type { DragItem, DragStartEvent, DragMoveEvent, DragEndEvent, DropEnterEvent, DropMoveEvent, DropActivateEvent, DropExitEvent, DropEvent, DropOperation, DragTypes, DragPreviewRenderer } from "@proyecto-viviana/solid-stately";
|
|
6
6
|
export interface AriaDragOptions {
|
|
7
7
|
/** A function that returns the items being dragged. */
|
|
8
8
|
getItems: () => DragItem[];
|
package/dist/dnd/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dnd/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,QAAQ,EAAE,CAAC;IAC3B,yDAAyD;IACzD,wBAAwB,CAAC,EAAE,MAAM,aAAa,EAAE,CAAC;IACjD,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,qDAAqD;IACrD,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,2DAA2D;IAC3D,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,0DAA0D;IAC1D,aAAa,CAA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QAAQ;IACvB,uCAAuC;IACvC,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3C,qEAAqE;IACrE,YAAY,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,eAAe,EAAE,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;CAC9D"}
|
package/dist/dnd/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Drag and Drop utilities for solidaria.
|
|
3
3
|
*/
|
|
4
|
-
import type { DragItem, DropItem, TextDropItem, FileDropItem, DirectoryDropItem, DropOperation } from
|
|
4
|
+
import type { DragItem, DropItem, TextDropItem, FileDropItem, DirectoryDropItem, DropOperation } from "@proyecto-viviana/solid-stately";
|
|
5
5
|
export declare const NATIVE_DRAG_TYPES: Set<string>;
|
|
6
6
|
export declare const CUSTOM_DRAG_TYPE = "application/vnd.solidaria.items+json";
|
|
7
7
|
export declare const GENERIC_TYPE = "application/octet-stream";
|
package/dist/dnd/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/dnd/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACd,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/dnd/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACd,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAyD,CAAC;AAGpG,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,GAAG,QAAQ,IAAI,iBAAiB,CAErF;AAMD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAEpE;AAED,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,SAAS,CAExD;AAED,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEhE;AAED,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* FocusScope component for managing focus containment, restoration, and auto-focus.
|
|
3
3
|
* Based on @react-aria/focus FocusScope.
|
|
4
4
|
*/
|
|
5
|
-
import { type JSX, type ParentComponent } from
|
|
5
|
+
import { type JSX, type ParentComponent } from "solid-js";
|
|
6
6
|
export interface FocusScopeProps {
|
|
7
7
|
/** The contents of the focus scope. */
|
|
8
8
|
children: JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusScope.d.ts","sourceRoot":"","sources":["../../src/focus/FocusScope.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAKL,KAAK,GAAG,EAER,KAAK,eAAe,EAGrB,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"FocusScope.d.ts","sourceRoot":"","sources":["../../src/focus/FocusScope.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAKL,KAAK,GAAG,EAER,KAAK,eAAe,EAGrB,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qFAAqF;IACrF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uEAAuE;IACvE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,SAAS,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;IAC1D,oFAAoF;IACpF,aAAa,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;IAC9D,iFAAiF;IACjF,UAAU,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;IAC3D,gFAAgF;IAChF,SAAS,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI,CAAC;CAC3D;AASD;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,YAAY,GAAG,SAAS,CAE1D;AAgED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,eAAe,CA4PvD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoFocus.d.ts","sourceRoot":"","sources":["../../src/focus/createAutoFocus.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"createAutoFocus.d.ts","sourceRoot":"","sources":["../../src/focus/createAutoFocus.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAwGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,EACzC,OAAO,GAAE,gBAAqB,GAC7B,eAAe,CAgEjB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAM1C;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFocusRestore.d.ts","sourceRoot":"","sources":["../../src/focus/createFocusRestore.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"createFocusRestore.d.ts","sourceRoot":"","sources":["../../src/focus/createFocusRestore.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAKD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEzD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,WAAW,GAAG,SAAS,CAEvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAoED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,mBAAwB,GAAG,kBAAkB,CAgGxF"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* - Autocomplete/combobox suggestions
|
|
12
12
|
* - Grid/table navigation
|
|
13
13
|
*/
|
|
14
|
-
import { type Accessor } from
|
|
14
|
+
import { type Accessor } from "solid-js";
|
|
15
15
|
export interface VirtualFocusOptions<T> {
|
|
16
16
|
/**
|
|
17
17
|
* The items in the collection.
|
|
@@ -51,7 +51,7 @@ export interface VirtualFocusOptions<T> {
|
|
|
51
51
|
* Orientation for keyboard navigation.
|
|
52
52
|
* @default 'vertical'
|
|
53
53
|
*/
|
|
54
|
-
orientation?:
|
|
54
|
+
orientation?: "horizontal" | "vertical" | "both";
|
|
55
55
|
}
|
|
56
56
|
export interface VirtualFocusResult<T> {
|
|
57
57
|
/**
|
|
@@ -98,7 +98,7 @@ export interface VirtualFocusResult<T> {
|
|
|
98
98
|
* Props to spread on the container element.
|
|
99
99
|
*/
|
|
100
100
|
containerProps: {
|
|
101
|
-
|
|
101
|
+
"aria-activedescendant": Accessor<string | undefined>;
|
|
102
102
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
@@ -106,7 +106,7 @@ export interface VirtualFocusResult<T> {
|
|
|
106
106
|
*/
|
|
107
107
|
getItemProps: (key: string) => {
|
|
108
108
|
id: string;
|
|
109
|
-
|
|
109
|
+
"aria-selected"?: boolean;
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVirtualFocus.d.ts","sourceRoot":"","sources":["../../src/focus/createVirtualFocus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"createVirtualFocus.d.ts","sourceRoot":"","sources":["../../src/focus/createVirtualFocus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,UAAU,CAAC;AAGhF,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IAC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AkB,CAAC,CAAC,CAAC,CA4M5F"}
|
package/dist/focus/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FocusScope, useFocusManager, type FocusScopeProps, type FocusManager, type FocusManagerOptions, } from
|
|
2
|
-
export { createFocusRestore, pushFocusStack, popFocusStack, getFocusStackLength, clearFocusStack, type FocusRestoreOptions, type FocusRestoreResult, } from
|
|
3
|
-
export { createVirtualFocus, type VirtualFocusOptions, type VirtualFocusResult, } from
|
|
4
|
-
export { createAutoFocus, clearAutoFocusQueue, getAutoFocusQueueLength, type AutoFocusOptions, type AutoFocusResult, } from
|
|
1
|
+
export { FocusScope, useFocusManager, type FocusScopeProps, type FocusManager, type FocusManagerOptions, } from "./FocusScope";
|
|
2
|
+
export { createFocusRestore, pushFocusStack, popFocusStack, getFocusStackLength, clearFocusStack, type FocusRestoreOptions, type FocusRestoreResult, } from "./createFocusRestore";
|
|
3
|
+
export { createVirtualFocus, type VirtualFocusOptions, type VirtualFocusResult, } from "./createVirtualFocus";
|
|
4
|
+
export { createAutoFocus, clearAutoFocusQueue, getAutoFocusQueueLength, type AutoFocusOptions, type AutoFocusResult, } from "./createAutoFocus";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/focus/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/focus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,mBAAmB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Resets the field value to its default when the containing form is reset.
|
|
5
5
|
* Port of @react-aria/utils useFormReset.
|
|
6
6
|
*/
|
|
7
|
-
import { type Accessor } from
|
|
7
|
+
import { type Accessor } from "solid-js";
|
|
8
8
|
export interface FormResetOptions<T> {
|
|
9
9
|
/** The default value to reset to. */
|
|
10
10
|
defaultValue: T;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Port of react-aria's useFormValidation.
|
|
8
8
|
*/
|
|
9
|
-
import { type Accessor } from
|
|
10
|
-
import { type FormValidationState } from
|
|
9
|
+
import { type Accessor } from "solid-js";
|
|
10
|
+
import { type FormValidationState } from "@proyecto-viviana/solid-stately";
|
|
11
11
|
export type ValidatableElement = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
12
|
-
export type ValidationBehavior =
|
|
12
|
+
export type ValidationBehavior = "aria" | "native";
|
|
13
13
|
export interface FormValidationProps {
|
|
14
14
|
/** Validation behavior: 'aria' for realtime, 'native' for on submit. */
|
|
15
15
|
validationBehavior?: ValidationBehavior;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFormValidation.d.ts","sourceRoot":"","sources":["../../src/form/createFormValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,UAAU,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"createFormValidation.d.ts","sourceRoot":"","sources":["../../src/form/createFormValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,iCAAiC,CAAC;AAGlG,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAE5F,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB;AAsCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,mBAAmB,EAC1B,GAAG,EAAE,QAAQ,CAAC,kBAAkB,GAAG,SAAS,CAAC,GAC5C,IAAI,CAoGN"}
|
package/dist/form/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createFormValidation, type FormValidationProps, type ValidatableElement, type ValidationBehavior, } from
|
|
2
|
-
export { createFormReset, type FormResetOptions
|
|
1
|
+
export { createFormValidation, type FormValidationProps, type ValidatableElement, type ValidationBehavior, } from "./createFormValidation";
|
|
2
|
+
export { createFormReset, type FormResetOptions } from "./createFormReset";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/form/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* GridKeyboardDelegate - Handles keyboard navigation in a grid.
|
|
3
3
|
* Based on @react-aria/grid/GridKeyboardDelegate.
|
|
4
4
|
*/
|
|
5
|
-
import type { GridCollection, Key } from
|
|
6
|
-
import type { KeyboardDelegate } from
|
|
7
|
-
import type { Accessor } from
|
|
5
|
+
import type { GridCollection, Key } from "@proyecto-viviana/solid-stately";
|
|
6
|
+
import type { KeyboardDelegate } from "./types";
|
|
7
|
+
import type { Accessor } from "solid-js";
|
|
8
8
|
export interface GridKeyboardDelegateOptions<T> {
|
|
9
9
|
/** The grid collection. */
|
|
10
10
|
collection: GridCollection<T>;
|
|
@@ -13,9 +13,9 @@ export interface GridKeyboardDelegateOptions<T> {
|
|
|
13
13
|
/** Ref to the grid element. */
|
|
14
14
|
ref: Accessor<HTMLElement | null>;
|
|
15
15
|
/** Focus mode: row or cell. */
|
|
16
|
-
focusMode:
|
|
16
|
+
focusMode: "row" | "cell";
|
|
17
17
|
/** Text direction (ltr or rtl). */
|
|
18
|
-
direction:
|
|
18
|
+
direction: "ltr" | "rtl";
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* A keyboard delegate that handles navigation in a grid.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* createGrid - Provides accessibility for a grid component.
|
|
3
3
|
* Based on @react-aria/grid/useGrid.
|
|
4
4
|
*/
|
|
5
|
-
import { type Accessor } from
|
|
6
|
-
import type { GridState, GridCollection, Key } from
|
|
7
|
-
import type { GridProps, GridAria, KeyboardDelegate } from
|
|
5
|
+
import { type Accessor } from "solid-js";
|
|
6
|
+
import type { GridState, GridCollection, Key } from "@proyecto-viviana/solid-stately";
|
|
7
|
+
import type { GridProps, GridAria, KeyboardDelegate } from "./types";
|
|
8
8
|
/**
|
|
9
9
|
* Get the grid metadata for child components.
|
|
10
10
|
*/
|