@adobe/react-spectrum 3.47.2 → 3.47.3
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/private/actionbar/ActionBar.cjs +2 -3
- package/dist/private/actionbar/ActionBar.cjs.map +1 -1
- package/dist/private/actionbar/ActionBar.js +2 -3
- package/dist/private/actionbar/ActionBar.js.map +1 -1
- package/dist/private/actionbar/ActionBar.mjs +2 -3
- package/dist/private/actionbar/ActionBar.mjs.map +1 -1
- package/dist/private/actiongroup/ActionGroup.cjs +5 -1
- package/dist/private/actiongroup/ActionGroup.cjs.map +1 -1
- package/dist/private/actiongroup/ActionGroup.js +5 -1
- package/dist/private/actiongroup/ActionGroup.js.map +1 -1
- package/dist/private/actiongroup/ActionGroup.mjs +5 -1
- package/dist/private/actiongroup/ActionGroup.mjs.map +1 -1
- package/dist/private/autocomplete/MobileSearchAutocomplete.cjs +6 -0
- package/dist/private/autocomplete/MobileSearchAutocomplete.cjs.map +1 -1
- package/dist/private/autocomplete/MobileSearchAutocomplete.js +6 -0
- package/dist/private/autocomplete/MobileSearchAutocomplete.js.map +1 -1
- package/dist/private/autocomplete/MobileSearchAutocomplete.mjs +6 -0
- package/dist/private/autocomplete/MobileSearchAutocomplete.mjs.map +1 -1
- package/dist/private/autocomplete/SearchAutocomplete.cjs +1 -0
- package/dist/private/autocomplete/SearchAutocomplete.cjs.map +1 -1
- package/dist/private/autocomplete/SearchAutocomplete.js +1 -0
- package/dist/private/autocomplete/SearchAutocomplete.js.map +1 -1
- package/dist/private/autocomplete/SearchAutocomplete.mjs +1 -0
- package/dist/private/autocomplete/SearchAutocomplete.mjs.map +1 -1
- package/dist/private/button/Button.cjs +2 -1
- package/dist/private/button/Button.cjs.map +1 -1
- package/dist/private/button/Button.js +3 -2
- package/dist/private/button/Button.js.map +1 -1
- package/dist/private/button/Button.mjs +3 -2
- package/dist/private/button/Button.mjs.map +1 -1
- package/dist/private/button/ClearButton.cjs +2 -1
- package/dist/private/button/ClearButton.cjs.map +1 -1
- package/dist/private/button/ClearButton.js +2 -1
- package/dist/private/button/ClearButton.js.map +1 -1
- package/dist/private/button/ClearButton.mjs +2 -1
- package/dist/private/button/ClearButton.mjs.map +1 -1
- package/dist/private/buttongroup/ButtonGroup.cjs +4 -2
- package/dist/private/buttongroup/ButtonGroup.cjs.map +1 -1
- package/dist/private/buttongroup/ButtonGroup.js +4 -2
- package/dist/private/buttongroup/ButtonGroup.js.map +1 -1
- package/dist/private/buttongroup/ButtonGroup.mjs +4 -2
- package/dist/private/buttongroup/ButtonGroup.mjs.map +1 -1
- package/dist/private/card/CardBase.cjs +1 -0
- package/dist/private/card/CardBase.cjs.map +1 -1
- package/dist/private/card/CardBase.js +1 -0
- package/dist/private/card/CardBase.js.map +1 -1
- package/dist/private/card/CardBase.mjs +1 -0
- package/dist/private/card/CardBase.mjs.map +1 -1
- package/dist/private/card/CardView.cjs +3 -0
- package/dist/private/card/CardView.cjs.map +1 -1
- package/dist/private/card/CardView.js +3 -0
- package/dist/private/card/CardView.js.map +1 -1
- package/dist/private/card/CardView.mjs +3 -0
- package/dist/private/card/CardView.mjs.map +1 -1
- package/dist/private/checkbox/Checkbox.cjs.map +1 -1
- package/dist/private/checkbox/Checkbox.js.map +1 -1
- package/dist/private/checkbox/Checkbox.mjs.map +1 -1
- package/dist/private/color/ColorField.cjs +1 -0
- package/dist/private/color/ColorField.cjs.map +1 -1
- package/dist/private/color/ColorField.js +1 -0
- package/dist/private/color/ColorField.js.map +1 -1
- package/dist/private/color/ColorField.mjs +1 -0
- package/dist/private/color/ColorField.mjs.map +1 -1
- package/dist/private/color/ColorPicker.cjs.map +1 -1
- package/dist/private/color/ColorPicker.js.map +1 -1
- package/dist/private/color/ColorPicker.mjs.map +1 -1
- package/dist/private/color/ColorSwatch.cjs +2 -1
- package/dist/private/color/ColorSwatch.cjs.map +1 -1
- package/dist/private/color/ColorSwatch.js +2 -1
- package/dist/private/color/ColorSwatch.js.map +1 -1
- package/dist/private/color/ColorSwatch.mjs +2 -1
- package/dist/private/color/ColorSwatch.mjs.map +1 -1
- package/dist/private/color/ColorSwatchPicker.cjs.map +1 -1
- package/dist/private/color/ColorSwatchPicker.js.map +1 -1
- package/dist/private/color/ColorSwatchPicker.mjs.map +1 -1
- package/dist/private/color/ColorWheel.cjs +1 -0
- package/dist/private/color/ColorWheel.cjs.map +1 -1
- package/dist/private/color/ColorWheel.js +1 -0
- package/dist/private/color/ColorWheel.js.map +1 -1
- package/dist/private/color/ColorWheel.mjs +1 -0
- package/dist/private/color/ColorWheel.mjs.map +1 -1
- package/dist/private/combobox/ComboBox.cjs +1 -0
- package/dist/private/combobox/ComboBox.cjs.map +1 -1
- package/dist/private/combobox/ComboBox.js +1 -0
- package/dist/private/combobox/ComboBox.js.map +1 -1
- package/dist/private/combobox/ComboBox.mjs +1 -0
- package/dist/private/combobox/ComboBox.mjs.map +1 -1
- package/dist/private/combobox/MobileComboBox.cjs +8 -0
- package/dist/private/combobox/MobileComboBox.cjs.map +1 -1
- package/dist/private/combobox/MobileComboBox.js +8 -0
- package/dist/private/combobox/MobileComboBox.js.map +1 -1
- package/dist/private/combobox/MobileComboBox.mjs +8 -0
- package/dist/private/combobox/MobileComboBox.mjs.map +1 -1
- package/dist/private/datepicker/DateField.cjs +2 -1
- package/dist/private/datepicker/DateField.cjs.map +1 -1
- package/dist/private/datepicker/DateField.js +2 -1
- package/dist/private/datepicker/DateField.js.map +1 -1
- package/dist/private/datepicker/DateField.mjs +2 -1
- package/dist/private/datepicker/DateField.mjs.map +1 -1
- package/dist/private/datepicker/DatePicker.cjs +2 -1
- package/dist/private/datepicker/DatePicker.cjs.map +1 -1
- package/dist/private/datepicker/DatePicker.js +2 -1
- package/dist/private/datepicker/DatePicker.js.map +1 -1
- package/dist/private/datepicker/DatePicker.mjs +2 -1
- package/dist/private/datepicker/DatePicker.mjs.map +1 -1
- package/dist/private/datepicker/DateRangePicker.cjs +2 -1
- package/dist/private/datepicker/DateRangePicker.cjs.map +1 -1
- package/dist/private/datepicker/DateRangePicker.js +2 -1
- package/dist/private/datepicker/DateRangePicker.js.map +1 -1
- package/dist/private/datepicker/DateRangePicker.mjs +2 -1
- package/dist/private/datepicker/DateRangePicker.mjs.map +1 -1
- package/dist/private/dialog/AlertDialog.cjs +3 -1
- package/dist/private/dialog/AlertDialog.cjs.map +1 -1
- package/dist/private/dialog/AlertDialog.js +3 -1
- package/dist/private/dialog/AlertDialog.js.map +1 -1
- package/dist/private/dialog/AlertDialog.mjs +3 -1
- package/dist/private/dialog/AlertDialog.mjs.map +1 -1
- package/dist/private/dialog/Dialog.cjs +10 -3
- package/dist/private/dialog/Dialog.cjs.map +1 -1
- package/dist/private/dialog/Dialog.js +10 -3
- package/dist/private/dialog/Dialog.js.map +1 -1
- package/dist/private/dialog/Dialog.mjs +10 -3
- package/dist/private/dialog/Dialog.mjs.map +1 -1
- package/dist/private/dnd/useDragAndDrop.cjs +7 -0
- package/dist/private/dnd/useDragAndDrop.cjs.map +1 -1
- package/dist/private/dnd/useDragAndDrop.js +7 -0
- package/dist/private/dnd/useDragAndDrop.js.map +1 -1
- package/dist/private/dnd/useDragAndDrop.mjs +7 -0
- package/dist/private/dnd/useDragAndDrop.mjs.map +1 -1
- package/dist/private/icon/Icon.cjs +1 -1
- package/dist/private/icon/Icon.cjs.map +1 -1
- package/dist/private/icon/Icon.js +1 -1
- package/dist/private/icon/Icon.js.map +1 -1
- package/dist/private/icon/Icon.mjs +1 -1
- package/dist/private/icon/Icon.mjs.map +1 -1
- package/dist/private/icon/UIIcon.cjs +1 -1
- package/dist/private/icon/UIIcon.cjs.map +1 -1
- package/dist/private/icon/UIIcon.js +1 -1
- package/dist/private/icon/UIIcon.js.map +1 -1
- package/dist/private/icon/UIIcon.mjs +1 -1
- package/dist/private/icon/UIIcon.mjs.map +1 -1
- package/dist/private/intl/label/zh-CN.cjs +1 -1
- package/dist/private/intl/label/zh-CN.cjs.map +1 -1
- package/dist/private/intl/label/zh-CN.js +1 -1
- package/dist/private/intl/label/zh-CN.js.map +1 -1
- package/dist/private/intl/label/zh-CN.mjs +1 -1
- package/dist/private/intl/label/zh-CN.mjs.map +1 -1
- package/dist/private/intl/menu/es-ES.cjs +1 -1
- package/dist/private/intl/menu/es-ES.cjs.map +1 -1
- package/dist/private/intl/menu/es-ES.js +1 -1
- package/dist/private/intl/menu/es-ES.js.map +1 -1
- package/dist/private/intl/menu/es-ES.mjs +1 -1
- package/dist/private/intl/menu/es-ES.mjs.map +1 -1
- package/dist/private/intl/picker/zh-CN.cjs +1 -1
- package/dist/private/intl/picker/zh-CN.cjs.map +1 -1
- package/dist/private/intl/picker/zh-CN.js +1 -1
- package/dist/private/intl/picker/zh-CN.js.map +1 -1
- package/dist/private/intl/picker/zh-CN.mjs +1 -1
- package/dist/private/intl/picker/zh-CN.mjs.map +1 -1
- package/dist/private/intl/table/es-ES.cjs +1 -1
- package/dist/private/intl/table/es-ES.cjs.map +1 -1
- package/dist/private/intl/table/es-ES.js +1 -1
- package/dist/private/intl/table/es-ES.js.map +1 -1
- package/dist/private/intl/table/es-ES.mjs +1 -1
- package/dist/private/intl/table/es-ES.mjs.map +1 -1
- package/dist/private/intl/table/zh-TW.cjs +2 -2
- package/dist/private/intl/table/zh-TW.cjs.map +1 -1
- package/dist/private/intl/table/zh-TW.js +2 -2
- package/dist/private/intl/table/zh-TW.js.map +1 -1
- package/dist/private/intl/table/zh-TW.mjs +2 -2
- package/dist/private/intl/table/zh-TW.mjs.map +1 -1
- package/dist/private/label/Field.cjs +2 -1
- package/dist/private/label/Field.cjs.map +1 -1
- package/dist/private/label/Field.js +2 -1
- package/dist/private/label/Field.js.map +1 -1
- package/dist/private/label/Field.mjs +2 -1
- package/dist/private/label/Field.mjs.map +1 -1
- package/dist/private/layout/Grid.cjs +2 -1
- package/dist/private/layout/Grid.cjs.map +1 -1
- package/dist/private/layout/Grid.js +2 -1
- package/dist/private/layout/Grid.js.map +1 -1
- package/dist/private/layout/Grid.mjs +2 -1
- package/dist/private/layout/Grid.mjs.map +1 -1
- package/dist/private/link/Link.cjs +3 -0
- package/dist/private/link/Link.cjs.map +1 -1
- package/dist/private/link/Link.js +3 -0
- package/dist/private/link/Link.js.map +1 -1
- package/dist/private/link/Link.mjs +3 -0
- package/dist/private/link/Link.mjs.map +1 -1
- package/dist/private/list/InsertionIndicator.cjs +1 -0
- package/dist/private/list/InsertionIndicator.cjs.map +1 -1
- package/dist/private/list/InsertionIndicator.js +1 -0
- package/dist/private/list/InsertionIndicator.js.map +1 -1
- package/dist/private/list/InsertionIndicator.mjs +1 -0
- package/dist/private/list/InsertionIndicator.mjs.map +1 -1
- package/dist/private/list/ListView.cjs +5 -0
- package/dist/private/list/ListView.cjs.map +1 -1
- package/dist/private/list/ListView.js +5 -0
- package/dist/private/list/ListView.js.map +1 -1
- package/dist/private/list/ListView.mjs +5 -0
- package/dist/private/list/ListView.mjs.map +1 -1
- package/dist/private/list/ListViewItem.cjs +2 -0
- package/dist/private/list/ListViewItem.cjs.map +1 -1
- package/dist/private/list/ListViewItem.js +2 -0
- package/dist/private/list/ListViewItem.js.map +1 -1
- package/dist/private/list/ListViewItem.mjs +2 -0
- package/dist/private/list/ListViewItem.mjs.map +1 -1
- package/dist/private/list/RootDropIndicator.cjs +1 -0
- package/dist/private/list/RootDropIndicator.cjs.map +1 -1
- package/dist/private/list/RootDropIndicator.js +1 -0
- package/dist/private/list/RootDropIndicator.js.map +1 -1
- package/dist/private/list/RootDropIndicator.mjs +1 -0
- package/dist/private/list/RootDropIndicator.mjs.map +1 -1
- package/dist/private/menu/ContextualHelpTrigger.cjs +7 -1
- package/dist/private/menu/ContextualHelpTrigger.cjs.map +1 -1
- package/dist/private/menu/ContextualHelpTrigger.js +7 -1
- package/dist/private/menu/ContextualHelpTrigger.js.map +1 -1
- package/dist/private/menu/ContextualHelpTrigger.mjs +7 -1
- package/dist/private/menu/ContextualHelpTrigger.mjs.map +1 -1
- package/dist/private/menu/MenuItem.cjs +2 -0
- package/dist/private/menu/MenuItem.cjs.map +1 -1
- package/dist/private/menu/MenuItem.js +2 -0
- package/dist/private/menu/MenuItem.js.map +1 -1
- package/dist/private/menu/MenuItem.mjs +2 -0
- package/dist/private/menu/MenuItem.mjs.map +1 -1
- package/dist/private/menu/MenuTrigger.cjs +1 -0
- package/dist/private/menu/MenuTrigger.cjs.map +1 -1
- package/dist/private/menu/MenuTrigger.js +1 -0
- package/dist/private/menu/MenuTrigger.js.map +1 -1
- package/dist/private/menu/MenuTrigger.mjs +1 -0
- package/dist/private/menu/MenuTrigger.mjs.map +1 -1
- package/dist/private/menu/SubmenuTrigger.cjs +6 -1
- package/dist/private/menu/SubmenuTrigger.cjs.map +1 -1
- package/dist/private/menu/SubmenuTrigger.js +6 -1
- package/dist/private/menu/SubmenuTrigger.js.map +1 -1
- package/dist/private/menu/SubmenuTrigger.mjs +6 -1
- package/dist/private/menu/SubmenuTrigger.mjs.map +1 -1
- package/dist/private/package.cjs +1 -1
- package/dist/private/package.cjs.map +1 -1
- package/dist/private/package.js +1 -1
- package/dist/private/package.js.map +1 -1
- package/dist/private/package.mjs +1 -1
- package/dist/private/package.mjs.map +1 -1
- package/dist/private/progress/ProgressBarBase.cjs +2 -1
- package/dist/private/progress/ProgressBarBase.cjs.map +1 -1
- package/dist/private/progress/ProgressBarBase.js +2 -1
- package/dist/private/progress/ProgressBarBase.js.map +1 -1
- package/dist/private/progress/ProgressBarBase.mjs +2 -1
- package/dist/private/progress/ProgressBarBase.mjs.map +1 -1
- package/dist/private/progress/ProgressCircle.cjs +2 -1
- package/dist/private/progress/ProgressCircle.cjs.map +1 -1
- package/dist/private/progress/ProgressCircle.js +2 -1
- package/dist/private/progress/ProgressCircle.js.map +1 -1
- package/dist/private/progress/ProgressCircle.mjs +2 -1
- package/dist/private/progress/ProgressCircle.mjs.map +1 -1
- package/dist/private/slider/Slider.cjs +1 -0
- package/dist/private/slider/Slider.cjs.map +1 -1
- package/dist/private/slider/Slider.js +1 -0
- package/dist/private/slider/Slider.js.map +1 -1
- package/dist/private/slider/Slider.mjs +1 -0
- package/dist/private/slider/Slider.mjs.map +1 -1
- package/dist/private/table/InsertionIndicator.cjs +1 -0
- package/dist/private/table/InsertionIndicator.cjs.map +1 -1
- package/dist/private/table/InsertionIndicator.js +1 -0
- package/dist/private/table/InsertionIndicator.js.map +1 -1
- package/dist/private/table/InsertionIndicator.mjs +1 -0
- package/dist/private/table/InsertionIndicator.mjs.map +1 -1
- package/dist/private/table/Resizer.cjs +2 -25
- package/dist/private/table/Resizer.cjs.map +1 -1
- package/dist/private/table/Resizer.js +3 -26
- package/dist/private/table/Resizer.js.map +1 -1
- package/dist/private/table/Resizer.mjs +3 -26
- package/dist/private/table/Resizer.mjs.map +1 -1
- package/dist/private/table/RootDropIndicator.cjs +1 -0
- package/dist/private/table/RootDropIndicator.cjs.map +1 -1
- package/dist/private/table/RootDropIndicator.js +1 -0
- package/dist/private/table/RootDropIndicator.js.map +1 -1
- package/dist/private/table/RootDropIndicator.mjs +1 -0
- package/dist/private/table/RootDropIndicator.mjs.map +1 -1
- package/dist/private/table/TableViewBase.cjs +8 -0
- package/dist/private/table/TableViewBase.cjs.map +1 -1
- package/dist/private/table/TableViewBase.js +8 -0
- package/dist/private/table/TableViewBase.js.map +1 -1
- package/dist/private/table/TableViewBase.mjs +8 -0
- package/dist/private/table/TableViewBase.mjs.map +1 -1
- package/dist/private/table/TreeGridTableView.cjs +1 -0
- package/dist/private/table/TreeGridTableView.cjs.map +1 -1
- package/dist/private/table/TreeGridTableView.js +1 -0
- package/dist/private/table/TreeGridTableView.js.map +1 -1
- package/dist/private/table/TreeGridTableView.mjs +1 -0
- package/dist/private/table/TreeGridTableView.mjs.map +1 -1
- package/dist/private/tabs/Tabs.cjs +4 -2
- package/dist/private/tabs/Tabs.cjs.map +1 -1
- package/dist/private/tabs/Tabs.js +4 -2
- package/dist/private/tabs/Tabs.js.map +1 -1
- package/dist/private/tabs/Tabs.mjs +4 -2
- package/dist/private/tabs/Tabs.mjs.map +1 -1
- package/dist/private/tag/TagGroup.cjs +2 -0
- package/dist/private/tag/TagGroup.cjs.map +1 -1
- package/dist/private/tag/TagGroup.js +2 -0
- package/dist/private/tag/TagGroup.js.map +1 -1
- package/dist/private/tag/TagGroup.mjs +2 -0
- package/dist/private/tag/TagGroup.mjs.map +1 -1
- package/dist/private/textfield/TextArea.cjs +2 -0
- package/dist/private/textfield/TextArea.cjs.map +1 -1
- package/dist/private/textfield/TextArea.js +2 -0
- package/dist/private/textfield/TextArea.js.map +1 -1
- package/dist/private/textfield/TextArea.mjs +2 -0
- package/dist/private/textfield/TextArea.mjs.map +1 -1
- package/dist/private/textfield/TextField.cjs +1 -0
- package/dist/private/textfield/TextField.cjs.map +1 -1
- package/dist/private/textfield/TextField.js +1 -0
- package/dist/private/textfield/TextField.js.map +1 -1
- package/dist/private/textfield/TextField.mjs +1 -0
- package/dist/private/textfield/TextField.mjs.map +1 -1
- package/dist/private/textfield/TextFieldBase.cjs +2 -1
- package/dist/private/textfield/TextFieldBase.cjs.map +1 -1
- package/dist/private/textfield/TextFieldBase.js +2 -1
- package/dist/private/textfield/TextFieldBase.js.map +1 -1
- package/dist/private/textfield/TextFieldBase.mjs +2 -1
- package/dist/private/textfield/TextFieldBase.mjs.map +1 -1
- package/dist/private/utils/Slots.cjs +1 -0
- package/dist/private/utils/Slots.cjs.map +1 -1
- package/dist/private/utils/Slots.js +1 -0
- package/dist/private/utils/Slots.js.map +1 -1
- package/dist/private/utils/Slots.mjs +1 -0
- package/dist/private/utils/Slots.mjs.map +1 -1
- package/dist/types/src/dialog/AlertDialog.d.ts +2 -2
- package/i18n/ar-AE.js +1 -1
- package/i18n/ar-AE.mjs +1 -1
- package/i18n/bg-BG.js +1 -1
- package/i18n/bg-BG.mjs +1 -1
- package/i18n/cs-CZ.js +1 -1
- package/i18n/cs-CZ.mjs +1 -1
- package/i18n/da-DK.js +1 -1
- package/i18n/da-DK.mjs +1 -1
- package/i18n/de-DE.js +1 -1
- package/i18n/de-DE.mjs +1 -1
- package/i18n/el-GR.js +1 -1
- package/i18n/el-GR.mjs +1 -1
- package/i18n/en-US.js +1 -1
- package/i18n/en-US.mjs +1 -1
- package/i18n/es-ES.js +1 -1
- package/i18n/es-ES.mjs +1 -1
- package/i18n/et-EE.js +1 -1
- package/i18n/et-EE.mjs +1 -1
- package/i18n/fi-FI.js +1 -1
- package/i18n/fi-FI.mjs +1 -1
- package/i18n/fr-FR.js +1 -1
- package/i18n/fr-FR.mjs +1 -1
- package/i18n/he-IL.js +1 -1
- package/i18n/he-IL.mjs +1 -1
- package/i18n/hr-HR.js +1 -1
- package/i18n/hr-HR.mjs +1 -1
- package/i18n/hu-HU.js +1 -1
- package/i18n/hu-HU.mjs +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.mjs +1 -1
- package/i18n/it-IT.js +1 -1
- package/i18n/it-IT.mjs +1 -1
- package/i18n/ja-JP.js +1 -1
- package/i18n/ja-JP.mjs +1 -1
- package/i18n/ko-KR.js +1 -1
- package/i18n/ko-KR.mjs +1 -1
- package/i18n/lt-LT.js +1 -1
- package/i18n/lt-LT.mjs +1 -1
- package/i18n/lv-LV.js +1 -1
- package/i18n/lv-LV.mjs +1 -1
- package/i18n/nb-NO.js +1 -1
- package/i18n/nb-NO.mjs +1 -1
- package/i18n/nl-NL.js +1 -1
- package/i18n/nl-NL.mjs +1 -1
- package/i18n/pl-PL.js +1 -1
- package/i18n/pl-PL.mjs +1 -1
- package/i18n/pt-BR.js +1 -1
- package/i18n/pt-BR.mjs +1 -1
- package/i18n/pt-PT.js +1 -1
- package/i18n/pt-PT.mjs +1 -1
- package/i18n/ro-RO.js +1 -1
- package/i18n/ro-RO.mjs +1 -1
- package/i18n/ru-RU.js +1 -1
- package/i18n/ru-RU.mjs +1 -1
- package/i18n/sk-SK.js +1 -1
- package/i18n/sk-SK.mjs +1 -1
- package/i18n/sl-SI.js +1 -1
- package/i18n/sl-SI.mjs +1 -1
- package/i18n/sr-SP.js +1 -1
- package/i18n/sr-SP.mjs +1 -1
- package/i18n/sv-SE.js +1 -1
- package/i18n/sv-SE.mjs +1 -1
- package/i18n/tr-TR.js +1 -1
- package/i18n/tr-TR.mjs +1 -1
- package/i18n/uk-UA.js +1 -1
- package/i18n/uk-UA.mjs +1 -1
- package/i18n/zh-CN.js +1 -1
- package/i18n/zh-CN.mjs +1 -1
- package/i18n/zh-TW.js +1 -1
- package/i18n/zh-TW.mjs +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAkHM,SAAS,0CAA2B,OAA8B;IACvE,IAAI,mBAAmB,CAAA,GAAA,oBAAM,EAAE;QAC7B,IAAI,UAAC,MAAM,YAAE,QAAQ,cAAE,UAAU,aAAE,SAAS,cAAE,UAAU,YAAE,QAAQ,iBAAE,aAAa,EAAC,GAAG;QAErF,IAAI,cAAc,CAAC,CAAC;QACpB,IAAI,cAAc,CAAC,CAAE,CAAA,UAAU,YAAY,cAAc,aAAa,UAAS;QAE/E,IAAI,QAAQ,CAAC;QAKb,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,OAAO,CAAA,GAAA,0EAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;oBAAE,UAAU,QAAQ,QAAQ;gBAAC;YACvF;YACA,MAAM,sBAAsB,GAAG,CAAA,GAAA,6DAAqB;YACpD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uDAAe;YACxC,MAAM,WAAW,GAAG,CAAA,GAAA,kDAAU;YAC9B,MAAM,aAAa,GAAG;QACxB;QAEA,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,OAAO,CAAA,GAAA,0EAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA;YAC1D;YACA,MAAM,gBAAgB,GAAG,CAAA,GAAA,uDAAe;YACxC,MAAM,sBAAsB,GAAG,SAAS,+BACtC,KAAiC,EACjC,KAA+B,EAC/B,GAAkC;gBAElC,OAAO,CAAA,GAAA,6DAAqB,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA,GAAG,OAAO;YAC/D;YACA,MAAM,gBAAgB,GAAG,CAAA,GAAA,uDAAe;QAC1C;QAEA,IAAI,eAAe,aACjB,MAAM,iBAAiB,GAAG,CAAA,GAAA,uDAAgB;QAG5C,OAAO;IACT,GAAG;QAAC;KAAQ;IAEZ,OAAO;QACL,kBAAkB;IACpB;AACF","sources":["packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n DraggableCollectionOptions,\n DraggableItemProps,\n DraggableItemResult,\n DragPreview,\n useDraggableCollection,\n useDraggableItem\n} from 'react-aria/useDraggableCollection';\nimport {\n DraggableCollectionProps,\n DragItem,\n DroppableCollectionProps,\n Key,\n RefObject\n} from '@react-types/shared';\nimport {\n DraggableCollectionState,\n DraggableCollectionStateOptions,\n useDraggableCollectionState\n} from 'react-stately/useDraggableCollectionState';\nimport {\n DropIndicatorAria,\n DropIndicatorProps,\n DroppableCollectionOptions,\n DroppableCollectionResult,\n DroppableItemOptions,\n DroppableItemResult,\n useDropIndicator,\n useDroppableCollection,\n useDroppableItem\n} from 'react-aria/useDroppableCollection';\nimport {\n DroppableCollectionState,\n DroppableCollectionStateOptions,\n useDroppableCollectionState\n} from 'react-stately/useDroppableCollectionState';\nimport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nimport {JSX, useMemo} from 'react';\n\ninterface DraggableCollectionStateOpts<T> extends Omit<\n DraggableCollectionStateOptions<T>,\n 'getItems'\n> {}\n\ninterface DragHooks<T = object> {\n useDraggableCollectionState?: (\n props: DraggableCollectionStateOpts<T>\n ) => DraggableCollectionState;\n useDraggableCollection?: (\n props: DraggableCollectionOptions,\n state: DraggableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => void;\n useDraggableItem?: (\n props: DraggableItemProps,\n state: DraggableCollectionState\n ) => DraggableItemResult;\n DragPreview?: typeof DragPreview;\n}\n\ninterface DropHooks {\n useDroppableCollectionState?: (\n props: DroppableCollectionStateOptions\n ) => DroppableCollectionState;\n useDroppableCollection?: (\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableCollectionResult;\n useDroppableItem?: (\n options: DroppableItemOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableItemResult;\n useDropIndicator?: (\n props: DropIndicatorProps,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DropIndicatorAria;\n}\n\nexport interface DragAndDropHooks<T = object> {\n /** Drag and drop hooks for the collection element. */\n dragAndDropHooks: DragHooks<T> &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n}\n\nexport interface DragAndDropOptions<T = object>\n extends\n Omit<DraggableCollectionProps, 'preview' | 'getItems'>,\n Omit<DroppableCollectionProps, 'onMove'> {\n /**\n * A function that returns the items being dragged. If not specified, we assume that the\n * collection is not draggable.\n *\n * @default () => []\n */\n getItems?: (keys: Set<Key>, items: T[]) => DragItem[];\n /**\n * Provide a custom drag preview. `draggedKey` represents the key of the item the user actually\n * dragged.\n */\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n}\n\n/**\n * Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React\n * Spectrum component.\n */\nexport function useDragAndDrop<T = object>(options: DragAndDropOptions<T>): DragAndDropHooks {\n let dragAndDropHooks = useMemo(() => {\n let {onDrop, onInsert, onItemDrop, onReorder, onRootDrop, getItems, renderPreview} = options;\n\n let isDraggable = !!getItems;\n let isDroppable = !!(onDrop || onInsert || onItemDrop || onReorder || onRootDrop);\n\n let hooks = {} as DragHooks &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n if (isDraggable) {\n hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(\n props: DraggableCollectionStateOpts<T>\n ) {\n return useDraggableCollectionState({...props, ...options, getItems: options.getItems!});\n };\n hooks.useDraggableCollection = useDraggableCollection;\n hooks.useDraggableItem = useDraggableItem;\n hooks.DragPreview = DragPreview;\n hooks.renderPreview = renderPreview;\n }\n\n if (isDroppable) {\n hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(\n props: DroppableCollectionStateOptions\n ) {\n return useDroppableCollectionState({...props, ...options});\n };\n hooks.useDroppableItem = useDroppableItem;\n hooks.useDroppableCollection = function useDroppableCollectionOverride(\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) {\n return useDroppableCollection({...props, ...options}, state, ref);\n };\n hooks.useDropIndicator = useDropIndicator;\n }\n\n if (isDraggable || isDroppable) {\n hooks.isVirtualDragging = isVirtualDragging;\n }\n\n return hooks;\n }, [options]);\n\n return {\n dragAndDropHooks: dragAndDropHooks\n };\n}\n"],"names":[],"version":3,"file":"useDragAndDrop.cjs.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAkHM,SAAS,0CAA2B,OAA8B;IACvE,IAAI,mBAAmB,CAAA,GAAA,oBAAM,EAAE;QAC7B,IAAI,UAAC,MAAM,YAAE,QAAQ,cAAE,UAAU,aAAE,SAAS,cAAE,UAAU,YAAE,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sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n DraggableCollectionOptions,\n DraggableItemProps,\n DraggableItemResult,\n DragPreview,\n useDraggableCollection,\n useDraggableItem\n} from 'react-aria/useDraggableCollection';\nimport {\n DraggableCollectionProps,\n DragItem,\n DroppableCollectionProps,\n Key,\n RefObject\n} from '@react-types/shared';\nimport {\n DraggableCollectionState,\n DraggableCollectionStateOptions,\n useDraggableCollectionState\n} from 'react-stately/useDraggableCollectionState';\nimport {\n DropIndicatorAria,\n DropIndicatorProps,\n DroppableCollectionOptions,\n DroppableCollectionResult,\n DroppableItemOptions,\n DroppableItemResult,\n useDropIndicator,\n useDroppableCollection,\n useDroppableItem\n} from 'react-aria/useDroppableCollection';\nimport {\n DroppableCollectionState,\n DroppableCollectionStateOptions,\n useDroppableCollectionState\n} from 'react-stately/useDroppableCollectionState';\nimport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nimport {JSX, useMemo} from 'react';\n\ninterface DraggableCollectionStateOpts<T> extends Omit<\n DraggableCollectionStateOptions<T>,\n 'getItems'\n> {}\n\ninterface DragHooks<T = object> {\n useDraggableCollectionState?: (\n props: DraggableCollectionStateOpts<T>\n ) => DraggableCollectionState;\n useDraggableCollection?: (\n props: DraggableCollectionOptions,\n state: DraggableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => void;\n useDraggableItem?: (\n props: DraggableItemProps,\n state: DraggableCollectionState\n ) => DraggableItemResult;\n DragPreview?: typeof DragPreview;\n}\n\ninterface DropHooks {\n useDroppableCollectionState?: (\n props: DroppableCollectionStateOptions\n ) => DroppableCollectionState;\n useDroppableCollection?: (\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableCollectionResult;\n useDroppableItem?: (\n options: DroppableItemOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableItemResult;\n useDropIndicator?: (\n props: DropIndicatorProps,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DropIndicatorAria;\n}\n\nexport interface DragAndDropHooks<T = object> {\n /** Drag and drop hooks for the collection element. */\n dragAndDropHooks: DragHooks<T> &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n}\n\nexport interface DragAndDropOptions<T = object>\n extends\n Omit<DraggableCollectionProps, 'preview' | 'getItems'>,\n Omit<DroppableCollectionProps, 'onMove'> {\n /**\n * A function that returns the items being dragged. If not specified, we assume that the\n * collection is not draggable.\n *\n * @default () => []\n */\n getItems?: (keys: Set<Key>, items: T[]) => DragItem[];\n /**\n * Provide a custom drag preview. `draggedKey` represents the key of the item the user actually\n * dragged.\n */\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n}\n\n/**\n * Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React\n * Spectrum component.\n */\nexport function useDragAndDrop<T = object>(options: DragAndDropOptions<T>): DragAndDropHooks {\n let dragAndDropHooks = useMemo(() => {\n let {onDrop, onInsert, onItemDrop, onReorder, onRootDrop, getItems, renderPreview} = options;\n\n let isDraggable = !!getItems;\n let isDroppable = !!(onDrop || onInsert || onItemDrop || onReorder || onRootDrop);\n\n let hooks = {} as DragHooks &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n if (isDraggable) {\n hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(\n props: DraggableCollectionStateOpts<T>\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDraggableCollectionState({...props, ...options, getItems: options.getItems!});\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDraggableCollection = useDraggableCollection;\n // oxlint-disable-next-line react/react-compiler\n hooks.useDraggableItem = useDraggableItem;\n hooks.DragPreview = DragPreview;\n hooks.renderPreview = renderPreview;\n }\n\n if (isDroppable) {\n hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(\n props: DroppableCollectionStateOptions\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDroppableCollectionState({...props, ...options});\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDroppableItem = useDroppableItem;\n hooks.useDroppableCollection = function useDroppableCollectionOverride(\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDroppableCollection({...props, ...options}, state, ref);\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDropIndicator = useDropIndicator;\n }\n\n if (isDraggable || isDroppable) {\n hooks.isVirtualDragging = isVirtualDragging;\n }\n\n return hooks;\n }, [options]);\n\n return {\n dragAndDropHooks: dragAndDropHooks\n };\n}\n"],"names":[],"version":3,"file":"useDragAndDrop.cjs.map"}
|
|
@@ -29,31 +29,38 @@ function $a835b70880df29d9$export$2cfc5be7a55829f6(options) {
|
|
|
29
29
|
let hooks = {};
|
|
30
30
|
if (isDraggable) {
|
|
31
31
|
hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(props) {
|
|
32
|
+
// oxlint-disable-next-line react/react-compiler
|
|
32
33
|
return (0, $9iyO4$useDraggableCollectionState)({
|
|
33
34
|
...props,
|
|
34
35
|
...options,
|
|
35
36
|
getItems: options.getItems
|
|
36
37
|
});
|
|
37
38
|
};
|
|
39
|
+
// oxlint-disable-next-line react/react-compiler
|
|
38
40
|
hooks.useDraggableCollection = (0, $9iyO4$useDraggableCollection);
|
|
41
|
+
// oxlint-disable-next-line react/react-compiler
|
|
39
42
|
hooks.useDraggableItem = (0, $9iyO4$useDraggableItem);
|
|
40
43
|
hooks.DragPreview = (0, $9iyO4$DragPreview);
|
|
41
44
|
hooks.renderPreview = renderPreview;
|
|
42
45
|
}
|
|
43
46
|
if (isDroppable) {
|
|
44
47
|
hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(props) {
|
|
48
|
+
// oxlint-disable-next-line react/react-compiler
|
|
45
49
|
return (0, $9iyO4$useDroppableCollectionState)({
|
|
46
50
|
...props,
|
|
47
51
|
...options
|
|
48
52
|
});
|
|
49
53
|
};
|
|
54
|
+
// oxlint-disable-next-line react/react-compiler
|
|
50
55
|
hooks.useDroppableItem = (0, $9iyO4$useDroppableItem);
|
|
51
56
|
hooks.useDroppableCollection = function useDroppableCollectionOverride(props, state, ref) {
|
|
57
|
+
// oxlint-disable-next-line react/react-compiler
|
|
52
58
|
return (0, $9iyO4$useDroppableCollection)({
|
|
53
59
|
...props,
|
|
54
60
|
...options
|
|
55
61
|
}, state, ref);
|
|
56
62
|
};
|
|
63
|
+
// oxlint-disable-next-line react/react-compiler
|
|
57
64
|
hooks.useDropIndicator = (0, $9iyO4$useDropIndicator);
|
|
58
65
|
}
|
|
59
66
|
if (isDraggable || isDroppable) hooks.isVirtualDragging = (0, $9iyO4$isVirtualDragging);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAkHM,SAAS,0CAA2B,OAA8B;IACvE,IAAI,mBAAmB,CAAA,GAAA,cAAM,EAAE;QAC7B,IAAI,UAAC,MAAM,YAAE,QAAQ,cAAE,UAAU,aAAE,SAAS,cAAE,UAAU,YAAE,QAAQ,iBAAE,aAAa,EAAC,GAAG;QAErF,IAAI,cAAc,CAAC,CAAC;QACpB,IAAI,cAAc,CAAC,CAAE,CAAA,UAAU,YAAY,cAAc,aAAa,UAAS;QAE/E,IAAI,QAAQ,CAAC;QAKb,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,OAAO,CAAA,GAAA,kCAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;oBAAE,UAAU,QAAQ,QAAQ;gBAAC;YACvF;YACA,MAAM,sBAAsB,GAAG,CAAA,GAAA,6BAAqB;YACpD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;YACxC,MAAM,WAAW,GAAG,CAAA,GAAA,kBAAU;YAC9B,MAAM,aAAa,GAAG;QACxB;QAEA,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,OAAO,CAAA,GAAA,kCAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA;YAC1D;YACA,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;YACxC,MAAM,sBAAsB,GAAG,SAAS,+BACtC,KAAiC,EACjC,KAA+B,EAC/B,GAAkC;gBAElC,OAAO,CAAA,GAAA,6BAAqB,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA,GAAG,OAAO;YAC/D;YACA,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;QAC1C;QAEA,IAAI,eAAe,aACjB,MAAM,iBAAiB,GAAG,CAAA,GAAA,wBAAgB;QAG5C,OAAO;IACT,GAAG;QAAC;KAAQ;IAEZ,OAAO;QACL,kBAAkB;IACpB;AACF","sources":["packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n DraggableCollectionOptions,\n DraggableItemProps,\n DraggableItemResult,\n DragPreview,\n useDraggableCollection,\n useDraggableItem\n} from 'react-aria/useDraggableCollection';\nimport {\n DraggableCollectionProps,\n DragItem,\n DroppableCollectionProps,\n Key,\n RefObject\n} from '@react-types/shared';\nimport {\n DraggableCollectionState,\n DraggableCollectionStateOptions,\n useDraggableCollectionState\n} from 'react-stately/useDraggableCollectionState';\nimport {\n DropIndicatorAria,\n DropIndicatorProps,\n DroppableCollectionOptions,\n DroppableCollectionResult,\n DroppableItemOptions,\n DroppableItemResult,\n useDropIndicator,\n useDroppableCollection,\n useDroppableItem\n} from 'react-aria/useDroppableCollection';\nimport {\n DroppableCollectionState,\n DroppableCollectionStateOptions,\n useDroppableCollectionState\n} from 'react-stately/useDroppableCollectionState';\nimport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nimport {JSX, useMemo} from 'react';\n\ninterface DraggableCollectionStateOpts<T> extends Omit<\n DraggableCollectionStateOptions<T>,\n 'getItems'\n> {}\n\ninterface DragHooks<T = object> {\n useDraggableCollectionState?: (\n props: DraggableCollectionStateOpts<T>\n ) => DraggableCollectionState;\n useDraggableCollection?: (\n props: DraggableCollectionOptions,\n state: DraggableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => void;\n useDraggableItem?: (\n props: DraggableItemProps,\n state: DraggableCollectionState\n ) => DraggableItemResult;\n DragPreview?: typeof DragPreview;\n}\n\ninterface DropHooks {\n useDroppableCollectionState?: (\n props: DroppableCollectionStateOptions\n ) => DroppableCollectionState;\n useDroppableCollection?: (\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableCollectionResult;\n useDroppableItem?: (\n options: DroppableItemOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableItemResult;\n useDropIndicator?: (\n props: DropIndicatorProps,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DropIndicatorAria;\n}\n\nexport interface DragAndDropHooks<T = object> {\n /** Drag and drop hooks for the collection element. */\n dragAndDropHooks: DragHooks<T> &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n}\n\nexport interface DragAndDropOptions<T = object>\n extends\n Omit<DraggableCollectionProps, 'preview' | 'getItems'>,\n Omit<DroppableCollectionProps, 'onMove'> {\n /**\n * A function that returns the items being dragged. If not specified, we assume that the\n * collection is not draggable.\n *\n * @default () => []\n */\n getItems?: (keys: Set<Key>, items: T[]) => DragItem[];\n /**\n * Provide a custom drag preview. `draggedKey` represents the key of the item the user actually\n * dragged.\n */\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n}\n\n/**\n * Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React\n * Spectrum component.\n */\nexport function useDragAndDrop<T = object>(options: DragAndDropOptions<T>): DragAndDropHooks {\n let dragAndDropHooks = useMemo(() => {\n let {onDrop, onInsert, onItemDrop, onReorder, onRootDrop, getItems, renderPreview} = options;\n\n let isDraggable = !!getItems;\n let isDroppable = !!(onDrop || onInsert || onItemDrop || onReorder || onRootDrop);\n\n let hooks = {} as DragHooks &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n if (isDraggable) {\n hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(\n props: DraggableCollectionStateOpts<T>\n ) {\n return useDraggableCollectionState({...props, ...options, getItems: options.getItems!});\n };\n hooks.useDraggableCollection = useDraggableCollection;\n hooks.useDraggableItem = useDraggableItem;\n hooks.DragPreview = DragPreview;\n hooks.renderPreview = renderPreview;\n }\n\n if (isDroppable) {\n hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(\n props: DroppableCollectionStateOptions\n ) {\n return useDroppableCollectionState({...props, ...options});\n };\n hooks.useDroppableItem = useDroppableItem;\n hooks.useDroppableCollection = function useDroppableCollectionOverride(\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) {\n return useDroppableCollection({...props, ...options}, state, ref);\n };\n hooks.useDropIndicator = useDropIndicator;\n }\n\n if (isDraggable || isDroppable) {\n hooks.isVirtualDragging = isVirtualDragging;\n }\n\n return hooks;\n }, [options]);\n\n return {\n dragAndDropHooks: dragAndDropHooks\n };\n}\n"],"names":[],"version":3,"file":"useDragAndDrop.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAkHM,SAAS,0CAA2B,OAA8B;IACvE,IAAI,mBAAmB,CAAA,GAAA,cAAM,EAAE;QAC7B,IAAI,UAAC,MAAM,YAAE,QAAQ,cAAE,UAAU,aAAE,SAAS,cAAE,UAAU,YAAE,QAAQ,iBAAE,aAAa,EAAC,GAAG;QAErF,IAAI,cAAc,CAAC,CAAC;QACpB,IAAI,cAAc,CAAC,CAAE,CAAA,UAAU,YAAY,cAAc,aAAa,UAAS;QAE/E,IAAI,QAAQ,CAAC;QAKb,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,gDAAgD;gBAChD,OAAO,CAAA,GAAA,kCAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;oBAAE,UAAU,QAAQ,QAAQ;gBAAC;YACvF;YACA,gDAAgD;YAChD,MAAM,sBAAsB,GAAG,CAAA,GAAA,6BAAqB;YACpD,gDAAgD;YAChD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;YACxC,MAAM,WAAW,GAAG,CAAA,GAAA,kBAAU;YAC9B,MAAM,aAAa,GAAG;QACxB;QAEA,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,gDAAgD;gBAChD,OAAO,CAAA,GAAA,kCAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA;YAC1D;YACA,gDAAgD;YAChD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;YACxC,MAAM,sBAAsB,GAAG,SAAS,+BACtC,KAAiC,EACjC,KAA+B,EAC/B,GAAkC;gBAElC,gDAAgD;gBAChD,OAAO,CAAA,GAAA,6BAAqB,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA,GAAG,OAAO;YAC/D;YACA,gDAAgD;YAChD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;QAC1C;QAEA,IAAI,eAAe,aACjB,MAAM,iBAAiB,GAAG,CAAA,GAAA,wBAAgB;QAG5C,OAAO;IACT,GAAG;QAAC;KAAQ;IAEZ,OAAO;QACL,kBAAkB;IACpB;AACF","sources":["packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n DraggableCollectionOptions,\n DraggableItemProps,\n DraggableItemResult,\n DragPreview,\n useDraggableCollection,\n useDraggableItem\n} from 'react-aria/useDraggableCollection';\nimport {\n DraggableCollectionProps,\n DragItem,\n DroppableCollectionProps,\n Key,\n RefObject\n} from '@react-types/shared';\nimport {\n DraggableCollectionState,\n DraggableCollectionStateOptions,\n useDraggableCollectionState\n} from 'react-stately/useDraggableCollectionState';\nimport {\n DropIndicatorAria,\n DropIndicatorProps,\n DroppableCollectionOptions,\n DroppableCollectionResult,\n DroppableItemOptions,\n DroppableItemResult,\n useDropIndicator,\n useDroppableCollection,\n useDroppableItem\n} from 'react-aria/useDroppableCollection';\nimport {\n DroppableCollectionState,\n DroppableCollectionStateOptions,\n useDroppableCollectionState\n} from 'react-stately/useDroppableCollectionState';\nimport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nimport {JSX, useMemo} from 'react';\n\ninterface DraggableCollectionStateOpts<T> extends Omit<\n DraggableCollectionStateOptions<T>,\n 'getItems'\n> {}\n\ninterface DragHooks<T = object> {\n useDraggableCollectionState?: (\n props: DraggableCollectionStateOpts<T>\n ) => DraggableCollectionState;\n useDraggableCollection?: (\n props: DraggableCollectionOptions,\n state: DraggableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => void;\n useDraggableItem?: (\n props: DraggableItemProps,\n state: DraggableCollectionState\n ) => DraggableItemResult;\n DragPreview?: typeof DragPreview;\n}\n\ninterface DropHooks {\n useDroppableCollectionState?: (\n props: DroppableCollectionStateOptions\n ) => DroppableCollectionState;\n useDroppableCollection?: (\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableCollectionResult;\n useDroppableItem?: (\n options: DroppableItemOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableItemResult;\n useDropIndicator?: (\n props: DropIndicatorProps,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DropIndicatorAria;\n}\n\nexport interface DragAndDropHooks<T = object> {\n /** Drag and drop hooks for the collection element. */\n dragAndDropHooks: DragHooks<T> &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n}\n\nexport interface DragAndDropOptions<T = object>\n extends\n Omit<DraggableCollectionProps, 'preview' | 'getItems'>,\n Omit<DroppableCollectionProps, 'onMove'> {\n /**\n * A function that returns the items being dragged. If not specified, we assume that the\n * collection is not draggable.\n *\n * @default () => []\n */\n getItems?: (keys: Set<Key>, items: T[]) => DragItem[];\n /**\n * Provide a custom drag preview. `draggedKey` represents the key of the item the user actually\n * dragged.\n */\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n}\n\n/**\n * Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React\n * Spectrum component.\n */\nexport function useDragAndDrop<T = object>(options: DragAndDropOptions<T>): DragAndDropHooks {\n let dragAndDropHooks = useMemo(() => {\n let {onDrop, onInsert, onItemDrop, onReorder, onRootDrop, getItems, renderPreview} = options;\n\n let isDraggable = !!getItems;\n let isDroppable = !!(onDrop || onInsert || onItemDrop || onReorder || onRootDrop);\n\n let hooks = {} as DragHooks &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n if (isDraggable) {\n hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(\n props: DraggableCollectionStateOpts<T>\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDraggableCollectionState({...props, ...options, getItems: options.getItems!});\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDraggableCollection = useDraggableCollection;\n // oxlint-disable-next-line react/react-compiler\n hooks.useDraggableItem = useDraggableItem;\n hooks.DragPreview = DragPreview;\n hooks.renderPreview = renderPreview;\n }\n\n if (isDroppable) {\n hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(\n props: DroppableCollectionStateOptions\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDroppableCollectionState({...props, ...options});\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDroppableItem = useDroppableItem;\n hooks.useDroppableCollection = function useDroppableCollectionOverride(\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDroppableCollection({...props, ...options}, state, ref);\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDropIndicator = useDropIndicator;\n }\n\n if (isDraggable || isDroppable) {\n hooks.isVirtualDragging = isVirtualDragging;\n }\n\n return hooks;\n }, [options]);\n\n return {\n dragAndDropHooks: dragAndDropHooks\n };\n}\n"],"names":[],"version":3,"file":"useDragAndDrop.js.map"}
|
|
@@ -29,31 +29,38 @@ function $b2e02c624cc31fc7$export$2cfc5be7a55829f6(options) {
|
|
|
29
29
|
let hooks = {};
|
|
30
30
|
if (isDraggable) {
|
|
31
31
|
hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(props) {
|
|
32
|
+
// oxlint-disable-next-line react/react-compiler
|
|
32
33
|
return (0, $h8ULG$useDraggableCollectionState)({
|
|
33
34
|
...props,
|
|
34
35
|
...options,
|
|
35
36
|
getItems: options.getItems
|
|
36
37
|
});
|
|
37
38
|
};
|
|
39
|
+
// oxlint-disable-next-line react/react-compiler
|
|
38
40
|
hooks.useDraggableCollection = (0, $h8ULG$useDraggableCollection);
|
|
41
|
+
// oxlint-disable-next-line react/react-compiler
|
|
39
42
|
hooks.useDraggableItem = (0, $h8ULG$useDraggableItem);
|
|
40
43
|
hooks.DragPreview = (0, $h8ULG$DragPreview);
|
|
41
44
|
hooks.renderPreview = renderPreview;
|
|
42
45
|
}
|
|
43
46
|
if (isDroppable) {
|
|
44
47
|
hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(props) {
|
|
48
|
+
// oxlint-disable-next-line react/react-compiler
|
|
45
49
|
return (0, $h8ULG$useDroppableCollectionState)({
|
|
46
50
|
...props,
|
|
47
51
|
...options
|
|
48
52
|
});
|
|
49
53
|
};
|
|
54
|
+
// oxlint-disable-next-line react/react-compiler
|
|
50
55
|
hooks.useDroppableItem = (0, $h8ULG$useDroppableItem);
|
|
51
56
|
hooks.useDroppableCollection = function useDroppableCollectionOverride(props, state, ref) {
|
|
57
|
+
// oxlint-disable-next-line react/react-compiler
|
|
52
58
|
return (0, $h8ULG$useDroppableCollection)({
|
|
53
59
|
...props,
|
|
54
60
|
...options
|
|
55
61
|
}, state, ref);
|
|
56
62
|
};
|
|
63
|
+
// oxlint-disable-next-line react/react-compiler
|
|
57
64
|
hooks.useDropIndicator = (0, $h8ULG$useDropIndicator);
|
|
58
65
|
}
|
|
59
66
|
if (isDraggable || isDroppable) hooks.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MAAM,iBAAiB,GAAG,CAAA,GAAA,wBAAgB;QAG5C,OAAO;IACT,GAAG;QAAC;KAAQ;IAEZ,OAAO;QACL,kBAAkB;IACpB;AACF","sources":["packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n DraggableCollectionOptions,\n DraggableItemProps,\n DraggableItemResult,\n DragPreview,\n useDraggableCollection,\n useDraggableItem\n} from 'react-aria/useDraggableCollection';\nimport {\n DraggableCollectionProps,\n DragItem,\n DroppableCollectionProps,\n Key,\n RefObject\n} from '@react-types/shared';\nimport {\n DraggableCollectionState,\n DraggableCollectionStateOptions,\n useDraggableCollectionState\n} from 'react-stately/useDraggableCollectionState';\nimport {\n DropIndicatorAria,\n DropIndicatorProps,\n DroppableCollectionOptions,\n DroppableCollectionResult,\n DroppableItemOptions,\n DroppableItemResult,\n useDropIndicator,\n useDroppableCollection,\n useDroppableItem\n} from 'react-aria/useDroppableCollection';\nimport {\n DroppableCollectionState,\n DroppableCollectionStateOptions,\n useDroppableCollectionState\n} from 'react-stately/useDroppableCollectionState';\nimport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nimport {JSX, useMemo} from 'react';\n\ninterface DraggableCollectionStateOpts<T> extends Omit<\n DraggableCollectionStateOptions<T>,\n 'getItems'\n> {}\n\ninterface DragHooks<T = object> {\n useDraggableCollectionState?: (\n props: DraggableCollectionStateOpts<T>\n ) => DraggableCollectionState;\n useDraggableCollection?: (\n props: DraggableCollectionOptions,\n state: DraggableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => void;\n useDraggableItem?: (\n props: DraggableItemProps,\n state: DraggableCollectionState\n ) => DraggableItemResult;\n DragPreview?: typeof DragPreview;\n}\n\ninterface DropHooks {\n useDroppableCollectionState?: (\n props: DroppableCollectionStateOptions\n ) => DroppableCollectionState;\n useDroppableCollection?: (\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableCollectionResult;\n useDroppableItem?: (\n options: DroppableItemOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableItemResult;\n useDropIndicator?: (\n props: DropIndicatorProps,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DropIndicatorAria;\n}\n\nexport interface DragAndDropHooks<T = object> {\n /** Drag and drop hooks for the collection element. */\n dragAndDropHooks: DragHooks<T> &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n}\n\nexport interface DragAndDropOptions<T = object>\n extends\n Omit<DraggableCollectionProps, 'preview' | 'getItems'>,\n Omit<DroppableCollectionProps, 'onMove'> {\n /**\n * A function that returns the items being dragged. If not specified, we assume that the\n * collection is not draggable.\n *\n * @default () => []\n */\n getItems?: (keys: Set<Key>, items: T[]) => DragItem[];\n /**\n * Provide a custom drag preview. `draggedKey` represents the key of the item the user actually\n * dragged.\n */\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n}\n\n/**\n * Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React\n * Spectrum component.\n */\nexport function useDragAndDrop<T = object>(options: DragAndDropOptions<T>): DragAndDropHooks {\n let dragAndDropHooks = useMemo(() => {\n let {onDrop, onInsert, onItemDrop, onReorder, onRootDrop, getItems, renderPreview} = options;\n\n let isDraggable = !!getItems;\n let isDroppable = !!(onDrop || onInsert || onItemDrop || onReorder || onRootDrop);\n\n let hooks = {} as DragHooks &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n if (isDraggable) {\n hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(\n props: DraggableCollectionStateOpts<T>\n ) {\n return useDraggableCollectionState({...props, ...options, getItems: options.getItems!});\n };\n hooks.useDraggableCollection = useDraggableCollection;\n hooks.useDraggableItem = useDraggableItem;\n hooks.DragPreview = DragPreview;\n hooks.renderPreview = renderPreview;\n }\n\n if (isDroppable) {\n hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(\n props: DroppableCollectionStateOptions\n ) {\n return useDroppableCollectionState({...props, ...options});\n };\n hooks.useDroppableItem = useDroppableItem;\n hooks.useDroppableCollection = function useDroppableCollectionOverride(\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) {\n return useDroppableCollection({...props, ...options}, state, ref);\n };\n hooks.useDropIndicator = useDropIndicator;\n }\n\n if (isDraggable || isDroppable) {\n hooks.isVirtualDragging = isVirtualDragging;\n }\n\n return hooks;\n }, [options]);\n\n return {\n dragAndDropHooks: dragAndDropHooks\n };\n}\n"],"names":[],"version":3,"file":"useDragAndDrop.mjs.map"}
|
|
1
|
+
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAkHM,SAAS,0CAA2B,OAA8B;IACvE,IAAI,mBAAmB,CAAA,GAAA,cAAM,EAAE;QAC7B,IAAI,UAAC,MAAM,YAAE,QAAQ,cAAE,UAAU,aAAE,SAAS,cAAE,UAAU,YAAE,QAAQ,iBAAE,aAAa,EAAC,GAAG;QAErF,IAAI,cAAc,CAAC,CAAC;QACpB,IAAI,cAAc,CAAC,CAAE,CAAA,UAAU,YAAY,cAAc,aAAa,UAAS;QAE/E,IAAI,QAAQ,CAAC;QAKb,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,gDAAgD;gBAChD,OAAO,CAAA,GAAA,kCAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;oBAAE,UAAU,QAAQ,QAAQ;gBAAC;YACvF;YACA,gDAAgD;YAChD,MAAM,sBAAsB,GAAG,CAAA,GAAA,6BAAqB;YACpD,gDAAgD;YAChD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;YACxC,MAAM,WAAW,GAAG,CAAA,GAAA,kBAAU;YAC9B,MAAM,aAAa,GAAG;QACxB;QAEA,IAAI,aAAa;YACf,MAAM,2BAA2B,GAAG,SAAS,oCAC3C,KAAsC;gBAEtC,gDAAgD;gBAChD,OAAO,CAAA,GAAA,kCAA0B,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA;YAC1D;YACA,gDAAgD;YAChD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;YACxC,MAAM,sBAAsB,GAAG,SAAS,+BACtC,KAAiC,EACjC,KAA+B,EAC/B,GAAkC;gBAElC,gDAAgD;gBAChD,OAAO,CAAA,GAAA,6BAAqB,EAAE;oBAAC,GAAG,KAAK;oBAAE,GAAG,OAAO;gBAAA,GAAG,OAAO;YAC/D;YACA,gDAAgD;YAChD,MAAM,gBAAgB,GAAG,CAAA,GAAA,uBAAe;QAC1C;QAEA,IAAI,eAAe,aACjB,MAAM,iBAAiB,GAAG,CAAA,GAAA,wBAAgB;QAG5C,OAAO;IACT,GAAG;QAAC;KAAQ;IAEZ,OAAO;QACL,kBAAkB;IACpB;AACF","sources":["packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n DraggableCollectionOptions,\n DraggableItemProps,\n DraggableItemResult,\n DragPreview,\n useDraggableCollection,\n useDraggableItem\n} from 'react-aria/useDraggableCollection';\nimport {\n DraggableCollectionProps,\n DragItem,\n DroppableCollectionProps,\n Key,\n RefObject\n} from '@react-types/shared';\nimport {\n DraggableCollectionState,\n DraggableCollectionStateOptions,\n useDraggableCollectionState\n} from 'react-stately/useDraggableCollectionState';\nimport {\n DropIndicatorAria,\n DropIndicatorProps,\n DroppableCollectionOptions,\n DroppableCollectionResult,\n DroppableItemOptions,\n DroppableItemResult,\n useDropIndicator,\n useDroppableCollection,\n useDroppableItem\n} from 'react-aria/useDroppableCollection';\nimport {\n DroppableCollectionState,\n DroppableCollectionStateOptions,\n useDroppableCollectionState\n} from 'react-stately/useDroppableCollectionState';\nimport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nimport {JSX, useMemo} from 'react';\n\ninterface DraggableCollectionStateOpts<T> extends Omit<\n DraggableCollectionStateOptions<T>,\n 'getItems'\n> {}\n\ninterface DragHooks<T = object> {\n useDraggableCollectionState?: (\n props: DraggableCollectionStateOpts<T>\n ) => DraggableCollectionState;\n useDraggableCollection?: (\n props: DraggableCollectionOptions,\n state: DraggableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => void;\n useDraggableItem?: (\n props: DraggableItemProps,\n state: DraggableCollectionState\n ) => DraggableItemResult;\n DragPreview?: typeof DragPreview;\n}\n\ninterface DropHooks {\n useDroppableCollectionState?: (\n props: DroppableCollectionStateOptions\n ) => DroppableCollectionState;\n useDroppableCollection?: (\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableCollectionResult;\n useDroppableItem?: (\n options: DroppableItemOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DroppableItemResult;\n useDropIndicator?: (\n props: DropIndicatorProps,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) => DropIndicatorAria;\n}\n\nexport interface DragAndDropHooks<T = object> {\n /** Drag and drop hooks for the collection element. */\n dragAndDropHooks: DragHooks<T> &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n}\n\nexport interface DragAndDropOptions<T = object>\n extends\n Omit<DraggableCollectionProps, 'preview' | 'getItems'>,\n Omit<DroppableCollectionProps, 'onMove'> {\n /**\n * A function that returns the items being dragged. If not specified, we assume that the\n * collection is not draggable.\n *\n * @default () => []\n */\n getItems?: (keys: Set<Key>, items: T[]) => DragItem[];\n /**\n * Provide a custom drag preview. `draggedKey` represents the key of the item the user actually\n * dragged.\n */\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n}\n\n/**\n * Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React\n * Spectrum component.\n */\nexport function useDragAndDrop<T = object>(options: DragAndDropOptions<T>): DragAndDropHooks {\n let dragAndDropHooks = useMemo(() => {\n let {onDrop, onInsert, onItemDrop, onReorder, onRootDrop, getItems, renderPreview} = options;\n\n let isDraggable = !!getItems;\n let isDroppable = !!(onDrop || onInsert || onItemDrop || onReorder || onRootDrop);\n\n let hooks = {} as DragHooks &\n DropHooks & {\n isVirtualDragging?: () => boolean;\n renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element;\n };\n if (isDraggable) {\n hooks.useDraggableCollectionState = function useDraggableCollectionStateOverride(\n props: DraggableCollectionStateOpts<T>\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDraggableCollectionState({...props, ...options, getItems: options.getItems!});\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDraggableCollection = useDraggableCollection;\n // oxlint-disable-next-line react/react-compiler\n hooks.useDraggableItem = useDraggableItem;\n hooks.DragPreview = DragPreview;\n hooks.renderPreview = renderPreview;\n }\n\n if (isDroppable) {\n hooks.useDroppableCollectionState = function useDroppableCollectionStateOverride(\n props: DroppableCollectionStateOptions\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDroppableCollectionState({...props, ...options});\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDroppableItem = useDroppableItem;\n hooks.useDroppableCollection = function useDroppableCollectionOverride(\n props: DroppableCollectionOptions,\n state: DroppableCollectionState,\n ref: RefObject<HTMLElement | null>\n ) {\n // oxlint-disable-next-line react/react-compiler\n return useDroppableCollection({...props, ...options}, state, ref);\n };\n // oxlint-disable-next-line react/react-compiler\n hooks.useDropIndicator = useDropIndicator;\n }\n\n if (isDraggable || isDroppable) {\n hooks.isVirtualDragging = isVirtualDragging;\n }\n\n return hooks;\n }, [options]);\n\n return {\n dragAndDropHooks: dragAndDropHooks\n };\n}\n"],"names":[],"version":3,"file":"useDragAndDrop.mjs.map"}
|
|
@@ -50,7 +50,7 @@ function $3ebd5b8b621d30d1$export$f04a61298a47a40f(props) {
|
|
|
50
50
|
let { styleProps: styleProps } = (0, $b8f90d51c4908137$exports.useStyleProps)(otherProps, $3ebd5b8b621d30d1$var$iconStyleProps);
|
|
51
51
|
let provider;
|
|
52
52
|
try {
|
|
53
|
-
//
|
|
53
|
+
// oxlint-disable-next-line react/react-compiler
|
|
54
54
|
provider = (0, $544fc82701fc93e9$exports.useProvider)();
|
|
55
55
|
} catch {
|
|
56
56
|
// ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AA2CD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACvD;AAEA,MAAM,uCAAgC;IACpC,GAAG,CAAA,GAAA,wCAAa,CAAC;IACjB,OAAO;QAAC;QAAS;KAAe;AAClC;AAMO,SAAS,0CAAK,KAAgB;IACnC,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YAAC,QAAQ,QAAE,IAAI,EAAE,cAAc,SAAS,EAAE,eAAe,UAAU,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on/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, StyleHandlers, useStyleProps} from '../utils/styleProps';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {ProviderContext} from '../provider/types';\nimport React, {JSX, ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '../provider/Provider';\nimport {useSlotProps} from '../utils/Slots';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string;\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>;\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';\n /**\n * A slot to place the icon in.\n *\n * @default 'icon'\n */\n slot?: string;\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true';\n /**\n * Color of the Icon.\n */\n color?: IconColorValue;\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and\n * rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps): JSX.Element {\n props = useSlotProps(props, 'icon');\n let {children, size, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps} = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider: undefined | ProviderContext;\n try {\n // oxlint-disable-next-line react/react-compiler\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className\n )\n });\n}\n"],"names":[],"version":3,"file":"Icon.cjs.map"}
|
|
@@ -44,7 +44,7 @@ function $68df32599618a4b7$export$f04a61298a47a40f(props) {
|
|
|
44
44
|
let { styleProps: styleProps } = (0, $120fbea2d95e11ed$export$b8e6fb9d2dff3f41)(otherProps, $68df32599618a4b7$var$iconStyleProps);
|
|
45
45
|
let provider;
|
|
46
46
|
try {
|
|
47
|
-
//
|
|
47
|
+
// oxlint-disable-next-line react/react-compiler
|
|
48
48
|
provider = (0, $089943c7a219141c$export$693cdb10cec23617)();
|
|
49
49
|
} catch {
|
|
50
50
|
// ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AA2CD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACvD;AAEA,MAAM,uCAAgC;IACpC,GAAG,CAAA,GAAA,yCAAa,CAAC;IACjB,OAAO;QAAC;QAAS;KAAe;AAClC;AAMO,SAAS,0CAAK,KA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AS,KAAK,CAAC,SAAS,EACxB,iBACA,CAAC,mBAAmB,EAAE,UAAU,EAChC,WAAW,SAAS;IAExB;AACF","sources":["packages/@adobe/react-spectrum/src/icon/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, StyleHandlers, useStyleProps} from '../utils/styleProps';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {ProviderContext} from '../provider/types';\nimport React, {JSX, ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '../provider/Provider';\nimport {useSlotProps} from '../utils/Slots';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string;\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>;\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';\n /**\n * A slot to place the icon in.\n *\n * @default 'icon'\n */\n slot?: string;\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true';\n /**\n * Color of the Icon.\n */\n color?: IconColorValue;\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and\n * rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps): JSX.Element {\n props = useSlotProps(props, 'icon');\n let {children, size, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps} = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider: undefined | ProviderContext;\n try {\n // oxlint-disable-next-line react/react-compiler\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className\n )\n });\n}\n"],"names":[],"version":3,"file":"Icon.js.map"}
|
|
@@ -44,7 +44,7 @@ function $20f96c95fdf7a1d8$export$f04a61298a47a40f(props) {
|
|
|
44
44
|
let { styleProps: styleProps } = (0, $63d03c54ca5e4b88$export$b8e6fb9d2dff3f41)(otherProps, $20f96c95fdf7a1d8$var$iconStyleProps);
|
|
45
45
|
let provider;
|
|
46
46
|
try {
|
|
47
|
-
//
|
|
47
|
+
// oxlint-disable-next-line react/react-compiler
|
|
48
48
|
provider = (0, $71dfb0e0358a12de$export$693cdb10cec23617)();
|
|
49
49
|
} catch {
|
|
50
50
|
// ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AA2CD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,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U;QACb,WAAW;QACX,cAAc;QACd,eAAe,YAAY,cAAc,YAAY;QACrD,MAAM;QACN,WAAW,CAAA,GAAA,yCAAS,EAClB,CAAA,GAAA,iDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA,CAAC,mBAAmB,EAAE,UAAU,EAChC,WAAW,SAAS;IAExB;AACF","sources":["packages/@adobe/react-spectrum/src/icon/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, StyleHandlers, useStyleProps} from '../utils/styleProps';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {ProviderContext} from '../provider/types';\nimport React, {JSX, ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '../provider/Provider';\nimport {useSlotProps} from '../utils/Slots';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string;\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>;\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';\n /**\n * A slot to place the icon in.\n *\n * @default 'icon'\n */\n slot?: string;\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true';\n /**\n * Color of the Icon.\n */\n color?: IconColorValue;\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and\n * rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps): JSX.Element {\n props = useSlotProps(props, 'icon');\n let {children, size, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps} = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider: undefined | ProviderContext;\n try {\n // oxlint-disable-next-line react/react-compiler\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className\n )\n });\n}\n"],"names":[],"version":3,"file":"Icon.mjs.map"}
|
|
@@ -40,7 +40,7 @@ function $8b9c8915fc2ec08b$export$906cc5990ff10700(props) {
|
|
|
40
40
|
let { styleProps: styleProps } = (0, $b8f90d51c4908137$exports.useStyleProps)(otherProps);
|
|
41
41
|
let provider;
|
|
42
42
|
try {
|
|
43
|
-
//
|
|
43
|
+
// oxlint-disable-next-line react/react-compiler
|
|
44
44
|
provider = (0, $544fc82701fc93e9$exports.useProvider)();
|
|
45
45
|
} catch {
|
|
46
46
|
// ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;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esContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {ProviderContext} from '../provider/types';\nimport React, {JSX, ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '../provider/Provider';\nimport {useSlotProps} from '../utils/Slots';\nimport {useStyleProps} from '../utils/styleProps';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>;\n slot?: string;\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true';\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps): JSX.Element {\n props = useSlotProps(props, 'icon');\n let {children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps} = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider: undefined | ProviderContext;\n try {\n // oxlint-disable-next-line react/react-compiler\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className\n )\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.cjs.map"}
|
|
@@ -34,7 +34,7 @@ function $984a9a9397301034$export$906cc5990ff10700(props) {
|
|
|
34
34
|
let { styleProps: styleProps } = (0, $120fbea2d95e11ed$export$b8e6fb9d2dff3f41)(otherProps);
|
|
35
35
|
let provider;
|
|
36
36
|
try {
|
|
37
|
-
//
|
|
37
|
+
// oxlint-disable-next-line react/react-compiler
|
|
38
38
|
provider = (0, $089943c7a219141c$export$693cdb10cec23617)();
|
|
39
39
|
} catch {
|
|
40
40
|
// ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAuBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,yCAAW,EAAE,OAAO;IAC5B,IAAI,YAAC,QAAQ,EAAE,cAAc,SAAS,EAAE,eAAe,UAAU,EAAE,GAAG,YAAW,GAAG;IAEpF,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAY,EAAE;IACjC,IAAI;IACJ,IAAI;QACF,
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAuBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,yCAAW,EAAE,OAAO;IAC5B,IAAI,YAAC,QAAQ,EAAE,cAAc,SAAS,EAAE,eAAe,UAAU,EAAE,GAAG,YAAW,GAAG;IAEpF,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAY,EAAE;IACjC,IAAI;IACJ,IAAI;QACF,gDAAgD;QAChD,WAAW,CAAA,GAAA,yCAAU;IACvB,EAAE,OAAM;IACN,SAAS;IACX;IACA,IAAI,QAAQ;IACZ,IAAI,YAAY,MACd,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAG7C,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;eACb;QACA,WAAW;QACX,cAAc;QACd,eAAe,YAAY,cAAc,YAAY;QACrD,MAAM;QACN,WAAW,CAAA,GAAA,yCAAS,EAClB,CAAA,GAAA,iDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,SAAS,IAAI,CAAC,cAAc;QACnF,GACA,WAAW,SAAS;IAExB;AACF","sources":["packages/@adobe/react-spectrum/src/icon/UIIcon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {ProviderContext} from '../provider/types';\nimport React, {JSX, ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '../provider/Provider';\nimport {useSlotProps} from '../utils/Slots';\nimport {useStyleProps} from '../utils/styleProps';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>;\n slot?: string;\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true';\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps): JSX.Element {\n props = useSlotProps(props, 'icon');\n let {children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps} = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider: undefined | ProviderContext;\n try {\n // oxlint-disable-next-line react/react-compiler\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className\n )\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.js.map"}
|
|
@@ -34,7 +34,7 @@ function $9a2a85fbdc5a6581$export$906cc5990ff10700(props) {
|
|
|
34
34
|
let { styleProps: styleProps } = (0, $63d03c54ca5e4b88$export$b8e6fb9d2dff3f41)(otherProps);
|
|
35
35
|
let provider;
|
|
36
36
|
try {
|
|
37
|
-
//
|
|
37
|
+
// oxlint-disable-next-line react/react-compiler
|
|
38
38
|
provider = (0, $71dfb0e0358a12de$export$693cdb10cec23617)();
|
|
39
39
|
} catch {
|
|
40
40
|
// ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAuBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,yCAAW,EAAE,OAAO;IAC5B,IAAI,YAAC,QAAQ,EAAE,cAAc,SAAS,EAAE,eAAe,UAAU,EAAE,GAAG,YAAW,GAAG;IAEpF,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAY,EAAE;IACjC,IAAI;IACJ,IAAI;QACF,
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAuBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,yCAAW,EAAE,OAAO;IAC5B,IAAI,YAAC,QAAQ,EAAE,cAAc,SAAS,EAAE,eAAe,UAAU,EAAE,GAAG,YAAW,GAAG;IAEpF,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAY,EAAE;IACjC,IAAI;IACJ,IAAI;QACF,gDAAgD;QAChD,WAAW,CAAA,GAAA,yCAAU;IACvB,EAAE,OAAM;IACN,SAAS;IACX;IACA,IAAI,QAAQ;IACZ,IAAI,YAAY,MACd,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAG7C,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;eACb;QACA,WAAW;QACX,cAAc;QACd,eAAe,YAAY,cAAc,YAAY;QACrD,MAAM;QACN,WAAW,CAAA,GAAA,yCAAS,EAClB,CAAA,GAAA,iDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,SAAS,IAAI,CAAC,cAAc;QACnF,GACA,WAAW,SAAS;IAExB;AACF","sources":["packages/@adobe/react-spectrum/src/icon/UIIcon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {ProviderContext} from '../provider/types';\nimport React, {JSX, ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '../provider/Provider';\nimport {useSlotProps} from '../utils/Slots';\nimport {useStyleProps} from '../utils/styleProps';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>;\n slot?: string;\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true';\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps): JSX.Element {\n props = useSlotProps(props, 'icon');\n let {children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps} = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider: undefined | ProviderContext;\n try {\n // oxlint-disable-next-line react/react-compiler\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className\n )\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.mjs.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,wCAAK,CAAC;IACvC,cAAc,CAAC,gCAAI,CAAC;AACtB","sources":["packages/@adobe/react-spectrum/intl/label/zh-CN.json"],"sourcesContent":["{\n \"(optional)\": \"(非必须)\",\n \"(required)\": \"(必填)\"\n}\n"],"names":[],"version":3,"file":"zh-CN.cjs.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,wCAAK,CAAC;IACvC,cAAc,CAAC,gCAAI,CAAC;AACtB","sources":["packages/@adobe/react-spectrum/intl/label/zh-CN.json"],"sourcesContent":["{\n \"(optional)\": \"(非必须)\",\n \"(required)\": \"(必填)\"\n}\n"],"names":[],"version":3,"file":"zh-CN.js.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,wCAAK,CAAC;IACvC,cAAc,CAAC,gCAAI,CAAC;AACtB","sources":["packages/@adobe/react-spectrum/intl/label/zh-CN.json"],"sourcesContent":["{\n \"(optional)\": \"(非必须)\",\n \"(required)\": \"(必填)\"\n}\n"],"names":[],"version":3,"file":"zh-CN.mjs.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,cAAc,EAAE;IAC3E,eAAe,CAAC,eAAY,CAAC;IAC7B,eAAe,CAAC,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,cAAc,EAAE;IAC3E,eAAe,CAAC,eAAY,CAAC;IAC7B,eAAe,CAAC,4CAAyC,CAAC;AAC5D","sources":["packages/@adobe/react-spectrum/intl/menu/es-ES.json"],"sourcesContent":["{\n \"backButton\": \"Volver a {prevMenuButton}\",\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, expandir para más detalles\"\n}\n"],"names":[],"version":3,"file":"es-ES.cjs.map"}
|
|
@@ -2,7 +2,7 @@ var $ac36b7b052fc463d$exports = {};
|
|
|
2
2
|
$ac36b7b052fc463d$exports = {
|
|
3
3
|
"backButton": (args)=>`Volver a ${args.prevMenuButton}`,
|
|
4
4
|
"moreActions": `M\xe1s acciones`,
|
|
5
|
-
"unavailable": `No disponible,
|
|
5
|
+
"unavailable": `No disponible, expandir para m\xe1s detalles`
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,cAAc,EAAE;IAC3E,eAAe,CAAC,eAAY,CAAC;IAC7B,eAAe,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,cAAc,EAAE;IAC3E,eAAe,CAAC,eAAY,CAAC;IAC7B,eAAe,CAAC,4CAAyC,CAAC;AAC5D","sources":["packages/@adobe/react-spectrum/intl/menu/es-ES.json"],"sourcesContent":["{\n \"backButton\": \"Volver a {prevMenuButton}\",\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, expandir para más detalles\"\n}\n"],"names":[],"version":3,"file":"es-ES.js.map"}
|
|
@@ -2,7 +2,7 @@ var $f4136d995a29eff2$exports = {};
|
|
|
2
2
|
$f4136d995a29eff2$exports = {
|
|
3
3
|
"backButton": (args)=>`Volver a ${args.prevMenuButton}`,
|
|
4
4
|
"moreActions": `M\xe1s acciones`,
|
|
5
|
-
"unavailable": `No disponible,
|
|
5
|
+
"unavailable": `No disponible, expandir para m\xe1s detalles`
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,cAAc,EAAE;IAC3E,eAAe,CAAC,eAAY,CAAC;IAC7B,eAAe,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,cAAc,EAAE;IAC3E,eAAe,CAAC,eAAY,CAAC;IAC7B,eAAe,CAAC,4CAAyC,CAAC;AAC5D","sources":["packages/@adobe/react-spectrum/intl/menu/es-ES.json"],"sourcesContent":["{\n \"backButton\": \"Volver a {prevMenuButton}\",\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, expandir para más detalles\"\n}\n"],"names":[],"version":3,"file":"es-ES.mjs.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,mCAAO,CAAC;IACtC,eAAe,CAAC,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,mCAAO,CAAC;IACtC,eAAe,CAAC,wBAAG,CAAC;AACtB","sources":["packages/@adobe/react-spectrum/intl/picker/zh-CN.json"],"sourcesContent":["{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择…\"\n}\n"],"names":[],"version":3,"file":"zh-CN.cjs.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,mCAAO,CAAC;IACtC,eAAe,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,mCAAO,CAAC;IACtC,eAAe,CAAC,wBAAG,CAAC;AACtB","sources":["packages/@adobe/react-spectrum/intl/picker/zh-CN.json"],"sourcesContent":["{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择…\"\n}\n"],"names":[],"version":3,"file":"zh-CN.js.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,mCAAO,CAAC;IACtC,eAAe,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,mCAAO,CAAC;IACtC,eAAe,CAAC,wBAAG,CAAC;AACtB","sources":["packages/@adobe/react-spectrum/intl/picker/zh-CN.json"],"sourcesContent":["{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择…\"\n}\n"],"names":[],"version":3,"file":"zh-CN.mjs.map"}
|
|
@@ -2,7 +2,7 @@ module.exports = {
|
|
|
2
2
|
"collapse": `Contraer`,
|
|
3
3
|
"columnResizer": `Redimensionador de columnas`,
|
|
4
4
|
"drag": `Arrastrar`,
|
|
5
|
-
"expand": `
|
|
5
|
+
"expand": `Expandir`,
|
|
6
6
|
"loading": `Cargando\u{2026}`,
|
|
7
7
|
"loadingMore": `Cargando m\xe1s\u{2026}`,
|
|
8
8
|
"resizeColumn": `Cambiar el tama\xf1o de la columna`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,iBAAiB,CAAC,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,SAAS,CAAC;IACnB,UAAU,CAAC,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,iBAAiB,CAAC,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,SAAS,CAAC;IACnB,UAAU,CAAC,QAAQ,CAAC;IACpB,WAAW,CAAC,gBAAS,CAAC;IACtB,eAAe,CAAC,uBAAa,CAAC;IAC9B,gBAAgB,CAAC,kCAA+B,CAAC;IACjD,iBAAiB,CAAC,gBAAgB,CAAC;IACnC,kBAAkB,CAAC,iBAAiB,CAAC;AACvC","sources":["packages/@adobe/react-spectrum/intl/table/es-ES.json"],"sourcesContent":["{\n \"collapse\": \"Contraer\",\n \"columnResizer\": \"Redimensionador de columnas\",\n \"drag\": \"Arrastrar\",\n \"expand\": \"Expandir\",\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\",\n \"resizeColumn\": \"Cambiar el tamaño de la columna\",\n \"sortAscending\": \"Orden ascendente\",\n \"sortDescending\": \"Orden descendente\"\n}\n"],"names":[],"version":3,"file":"es-ES.cjs.map"}
|
|
@@ -3,7 +3,7 @@ $ab1fffb8ea066790$exports = {
|
|
|
3
3
|
"collapse": `Contraer`,
|
|
4
4
|
"columnResizer": `Redimensionador de columnas`,
|
|
5
5
|
"drag": `Arrastrar`,
|
|
6
|
-
"expand": `
|
|
6
|
+
"expand": `Expandir`,
|
|
7
7
|
"loading": `Cargando\u{2026}`,
|
|
8
8
|
"loadingMore": `Cargando m\xe1s\u{2026}`,
|
|
9
9
|
"resizeColumn": `Cambiar el tama\xf1o de la columna`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,iBAAiB,CAAC,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,SAAS,CAAC;IACnB,UAAU,CAAC,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,iBAAiB,CAAC,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,SAAS,CAAC;IACnB,UAAU,CAAC,QAAQ,CAAC;IACpB,WAAW,CAAC,gBAAS,CAAC;IACtB,eAAe,CAAC,uBAAa,CAAC;IAC9B,gBAAgB,CAAC,kCAA+B,CAAC;IACjD,iBAAiB,CAAC,gBAAgB,CAAC;IACnC,kBAAkB,CAAC,iBAAiB,CAAC;AACvC","sources":["packages/@adobe/react-spectrum/intl/table/es-ES.json"],"sourcesContent":["{\n \"collapse\": \"Contraer\",\n \"columnResizer\": \"Redimensionador de columnas\",\n \"drag\": \"Arrastrar\",\n \"expand\": \"Expandir\",\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\",\n \"resizeColumn\": \"Cambiar el tamaño de la columna\",\n \"sortAscending\": \"Orden ascendente\",\n \"sortDescending\": \"Orden descendente\"\n}\n"],"names":[],"version":3,"file":"es-ES.js.map"}
|