react-aria-components 1.0.0-rc.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -13
- package/dist/ar-AE.main.js +8 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +10 -0
- package/dist/ar-AE.module.js +10 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +8 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +10 -0
- package/dist/bg-BG.module.js +10 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +8 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +10 -0
- package/dist/cs-CZ.module.js +10 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +8 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +10 -0
- package/dist/da-DK.module.js +10 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +8 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +10 -0
- package/dist/de-DE.module.js +10 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +8 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +10 -0
- package/dist/el-GR.module.js +10 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +8 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +10 -0
- package/dist/en-US.module.js +10 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +8 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +10 -0
- package/dist/es-ES.module.js +10 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +8 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +10 -0
- package/dist/et-EE.module.js +10 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +8 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +10 -0
- package/dist/fi-FI.module.js +10 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +8 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +10 -0
- package/dist/fr-FR.module.js +10 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +8 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +10 -0
- package/dist/he-IL.module.js +10 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +8 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +10 -0
- package/dist/hr-HR.module.js +10 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +8 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +10 -0
- package/dist/hu-HU.module.js +10 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +277 -309
- package/dist/it-IT.main.js +8 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +10 -0
- package/dist/it-IT.module.js +10 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +8 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +10 -0
- package/dist/ja-JP.module.js +10 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +8 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +10 -0
- package/dist/ko-KR.module.js +10 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +8 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +10 -0
- package/dist/lt-LT.module.js +10 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +8 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +10 -0
- package/dist/lv-LV.module.js +10 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +271 -301
- package/dist/main.js.map +1 -1
- package/dist/module.js +277 -309
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +8 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +10 -0
- package/dist/nb-NO.module.js +10 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +8 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +10 -0
- package/dist/nl-NL.module.js +10 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +8 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +10 -0
- package/dist/pl-PL.module.js +10 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +8 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +10 -0
- package/dist/pt-BR.module.js +10 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +8 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +10 -0
- package/dist/pt-PT.module.js +10 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +8 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +10 -0
- package/dist/ro-RO.module.js +10 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +8 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +10 -0
- package/dist/ru-RU.module.js +10 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +8 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +10 -0
- package/dist/sk-SK.module.js +10 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +8 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +10 -0
- package/dist/sl-SI.module.js +10 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +8 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +10 -0
- package/dist/sr-SP.module.js +10 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +8 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +10 -0
- package/dist/sv-SE.module.js +10 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +8 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +10 -0
- package/dist/tr-TR.module.js +10 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +126 -79
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +8 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +10 -0
- package/dist/uk-UA.module.js +10 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/zh-CN.main.js +8 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +10 -0
- package/dist/zh-CN.module.js +10 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +8 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +10 -0
- package/dist/zh-TW.module.js +10 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/i18n/ar-AE.js +1 -0
- package/i18n/ar-AE.mjs +1 -0
- package/i18n/bg-BG.js +1 -0
- package/i18n/bg-BG.mjs +1 -0
- package/i18n/cs-CZ.js +1 -0
- package/i18n/cs-CZ.mjs +1 -0
- package/i18n/da-DK.js +1 -0
- package/i18n/da-DK.mjs +1 -0
- package/i18n/de-DE.js +1 -0
- package/i18n/de-DE.mjs +1 -0
- package/i18n/el-GR.js +1 -0
- package/i18n/el-GR.mjs +1 -0
- package/i18n/en-US.js +1 -0
- package/i18n/en-US.mjs +1 -0
- package/i18n/es-ES.js +1 -0
- package/i18n/es-ES.mjs +1 -0
- package/i18n/et-EE.js +1 -0
- package/i18n/et-EE.mjs +1 -0
- package/i18n/fi-FI.js +1 -0
- package/i18n/fi-FI.mjs +1 -0
- package/i18n/fr-FR.js +1 -0
- package/i18n/fr-FR.mjs +1 -0
- package/i18n/he-IL.js +1 -0
- package/i18n/he-IL.mjs +1 -0
- package/i18n/hr-HR.js +1 -0
- package/i18n/hr-HR.mjs +1 -0
- package/i18n/hu-HU.js +1 -0
- package/i18n/hu-HU.mjs +1 -0
- package/i18n/index.d.ts +12 -0
- package/i18n/index.js +118 -0
- package/i18n/index.mjs +115 -0
- package/i18n/it-IT.js +1 -0
- package/i18n/it-IT.mjs +1 -0
- package/i18n/ja-JP.js +1 -0
- package/i18n/ja-JP.mjs +1 -0
- package/i18n/ko-KR.js +1 -0
- package/i18n/ko-KR.mjs +1 -0
- package/i18n/lang.d.ts +7 -0
- package/i18n/lt-LT.js +1 -0
- package/i18n/lt-LT.mjs +1 -0
- package/i18n/lv-LV.js +1 -0
- package/i18n/lv-LV.mjs +1 -0
- package/i18n/nb-NO.js +1 -0
- package/i18n/nb-NO.mjs +1 -0
- package/i18n/nl-NL.js +1 -0
- package/i18n/nl-NL.mjs +1 -0
- package/i18n/pl-PL.js +1 -0
- package/i18n/pl-PL.mjs +1 -0
- package/i18n/pt-BR.js +1 -0
- package/i18n/pt-BR.mjs +1 -0
- package/i18n/pt-PT.js +1 -0
- package/i18n/pt-PT.mjs +1 -0
- package/i18n/ro-RO.js +1 -0
- package/i18n/ro-RO.mjs +1 -0
- package/i18n/ru-RU.js +1 -0
- package/i18n/ru-RU.mjs +1 -0
- package/i18n/sk-SK.js +1 -0
- package/i18n/sk-SK.mjs +1 -0
- package/i18n/sl-SI.js +1 -0
- package/i18n/sl-SI.mjs +1 -0
- package/i18n/sr-SP.js +1 -0
- package/i18n/sr-SP.mjs +1 -0
- package/i18n/sv-SE.js +1 -0
- package/i18n/sv-SE.mjs +1 -0
- package/i18n/tr-TR.js +1 -0
- package/i18n/tr-TR.mjs +1 -0
- package/i18n/uk-UA.js +1 -0
- package/i18n/uk-UA.mjs +1 -0
- package/i18n/zh-CN.js +1 -0
- package/i18n/zh-CN.mjs +1 -0
- package/i18n/zh-TW.js +1 -0
- package/i18n/zh-TW.mjs +1 -0
- package/package.json +30 -16
- package/src/Breadcrumbs.tsx +3 -2
- package/src/Calendar.tsx +7 -7
- package/src/Checkbox.tsx +14 -31
- package/src/Collection.tsx +40 -27
- package/src/ComboBox.tsx +3 -0
- package/src/DateField.tsx +5 -5
- package/src/DatePicker.tsx +5 -5
- package/src/Dialog.tsx +1 -1
- package/src/DropZone.tsx +1 -1
- package/src/FileTrigger.tsx +10 -4
- package/src/GridList.tsx +6 -4
- package/src/Heading.tsx +1 -1
- package/src/ListBox.tsx +8 -13
- package/src/Menu.tsx +23 -5
- package/src/Modal.tsx +11 -4
- package/src/OverlayArrow.tsx +7 -2
- package/src/Popover.tsx +26 -5
- package/src/RadioGroup.tsx +13 -31
- package/src/SearchField.tsx +2 -0
- package/src/Select.tsx +2 -1
- package/src/Slider.tsx +1 -1
- package/src/Switch.tsx +12 -29
- package/src/Table.tsx +34 -37
- package/src/Tabs.tsx +4 -3
- package/src/TagGroup.tsx +2 -2
- package/src/Tooltip.tsx +9 -4
- package/src/index.ts +2 -2
- package/src/useDragAndDrop.tsx +6 -6
- package/src/utils.tsx +20 -3
package/i18n/sv-SE.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports={"@react-aria/breadcrumbs":{breadcrumbs:`S\xf6kv\xe4gar`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:`Klicka f\xf6r att avsluta val av datumintervall`,maximumDate:`Sista tillg\xe4ngliga datum`,minimumDate:`F\xf6rsta tillg\xe4ngliga datum`,next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:`Klicka f\xf6r att v\xe4lja datumintervall`,todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"@react-aria/color":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`F\xe4rgv\xe4ljaren`,twoDimensionalSlider:"2D-reglage"},"@react-aria/combobox":{buttonLabel:`Visa f\xf6rslag`,countAnnouncement:(e,a)=>`${a.plural(e.optionCount,{one:()=>`${a.number(e.optionCount)} alternativ`,other:()=>`${a.number(e.optionCount)} alternativ`})} tillg\xe4ngliga.`,focusAnnouncement:(e,a)=>`${a.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${a.plural(e.groupCount,{one:()=>`${a.number(e.groupCount)} alternativ`,other:()=>`${a.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${a.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:`F\xf6rslag`,selectedAnnouncement:e=>`${e.optionText}, valda`},"@react-aria/datepicker":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:`m\xe5nad`,second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:`\xe5r`},"@react-aria/dnd":{dragDescriptionKeyboard:`Tryck p\xe5 enter f\xf6r att b\xf6rja dra.`,dragDescriptionKeyboardAlt:`Tryck p\xe5 Alt + Retur f\xf6r att b\xf6rja dra.`,dragDescriptionLongPress:`Tryck l\xe4nge f\xf6r att b\xf6rja dra.`,dragDescriptionTouch:`Dubbeltryck f\xf6r att b\xf6rja dra.`,dragDescriptionVirtual:`Klicka f\xf6r att b\xf6rja dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,a)=>`Dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} valt objekt`,other:()=>`${a.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,a)=>`Tryck p\xe5 Retur f\xf6r att dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,a)=>`Tryck p\xe5 Alt + Retur f\xf6r att dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,a)=>`Tryck l\xe4nge f\xf6r att dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:`B\xf6rja dra. Tryck p\xe5 tabb f\xf6r att navigera till m\xe5let, tryck p\xe5 enter f\xf6r att sl\xe4ppa eller p\xe5 escape f\xf6r att avbryta.`,dragStartedTouch:`B\xf6rja dra. Navigera till ett m\xe5l och dubbeltryck f\xf6r att sl\xe4ppa.`,dragStartedVirtual:`B\xf6rja dra. Navigera till ett m\xe5l och klicka eller tryck p\xe5 enter f\xf6r att sl\xe4ppa.`,dropCanceled:`Sl\xe4pp\xe5tg\xe4rd avbr\xf6ts.`,dropComplete:`Sl\xe4pp\xe5tg\xe4rd klar.`,dropDescriptionKeyboard:`Tryck p\xe5 enter f\xf6r att sl\xe4ppa. Tryck p\xe5 escape f\xf6r att avbryta drag\xe5tg\xe4rd.`,dropDescriptionTouch:`Dubbeltryck f\xf6r att sl\xe4ppa.`,dropDescriptionVirtual:`Klicka f\xf6r att sl\xe4ppa.`,dropIndicator:`sl\xe4ppindikator`,dropOnItem:e=>`Sl\xe4pp p\xe5 ${e.itemText}`,dropOnRoot:`Sl\xe4pp p\xe5`,endDragKeyboard:`Drar. Tryck p\xe5 enter f\xf6r att avbryta drag\xe5tg\xe4rd.`,endDragTouch:`Drar. Dubbeltryck f\xf6r att avbryta drag\xe5tg\xe4rd.`,endDragVirtual:`Drar. Klicka f\xf6r att avbryta drag\xe5tg\xe4rd.`,insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xf6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`},"@react-aria/grid":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:`Tryck l\xe4nge n\xe4r du vill \xf6ppna v\xe4ljarl\xe4ge.`,select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,a)=>`${a.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"@react-aria/menu":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`},"@react-aria/numberfield":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerf\xe4lt`},"@react-aria/overlays":{dismiss:"Avvisa"},"@react-aria/pagination":{next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`},"@react-aria/searchfield":{"Clear search":`Rensa s\xf6kning`},"@react-aria/spinbutton":{Empty:"Tomt"},"@react-aria/steplist":{steplist:"Steglista"},"@react-aria/table":{ascending:"stigande",ascendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i fallande ordning`,resizerDescription:`Tryck p\xe5 Retur f\xf6r att b\xf6rja \xe4ndra storlek`,select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"@react-aria/tag":{removeButtonLabel:"Ta bort",removeDescription:`Tryck p\xe5 Radera f\xf6r att ta bort taggen.`},"@react-aria/toast":{close:`St\xe4ng`,notifications:"Aviseringar"},"@react-stately/color":{alpha:"Alfa",blue:`Bl\xe5tt`,brightness:"Ljusstyrka",green:`Gr\xf6nt`,hue:"Nyans",lightness:"Ljushet",red:`R\xf6tt`,saturation:`M\xe4ttnad`},"@react-stately/datepicker":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet m\xe5ste vara f\xf6re slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet \xe4r inte tillg\xe4ngligt.`},"react-aria-components":{dropzoneLabel:"DropZone",selectPlaceholder:`V\xe4lj en artikel`,tableResizer:`Storleks\xe4ndrare`}};
|
package/i18n/sv-SE.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default{"@react-aria/breadcrumbs":{breadcrumbs:`S\xf6kv\xe4gar`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:`Klicka f\xf6r att avsluta val av datumintervall`,maximumDate:`Sista tillg\xe4ngliga datum`,minimumDate:`F\xf6rsta tillg\xe4ngliga datum`,next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:`Klicka f\xf6r att v\xe4lja datumintervall`,todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"@react-aria/color":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`F\xe4rgv\xe4ljaren`,twoDimensionalSlider:"2D-reglage"},"@react-aria/combobox":{buttonLabel:`Visa f\xf6rslag`,countAnnouncement:(e,a)=>`${a.plural(e.optionCount,{one:()=>`${a.number(e.optionCount)} alternativ`,other:()=>`${a.number(e.optionCount)} alternativ`})} tillg\xe4ngliga.`,focusAnnouncement:(e,a)=>`${a.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${a.plural(e.groupCount,{one:()=>`${a.number(e.groupCount)} alternativ`,other:()=>`${a.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${a.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:`F\xf6rslag`,selectedAnnouncement:e=>`${e.optionText}, valda`},"@react-aria/datepicker":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:`m\xe5nad`,second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:`\xe5r`},"@react-aria/dnd":{dragDescriptionKeyboard:`Tryck p\xe5 enter f\xf6r att b\xf6rja dra.`,dragDescriptionKeyboardAlt:`Tryck p\xe5 Alt + Retur f\xf6r att b\xf6rja dra.`,dragDescriptionLongPress:`Tryck l\xe4nge f\xf6r att b\xf6rja dra.`,dragDescriptionTouch:`Dubbeltryck f\xf6r att b\xf6rja dra.`,dragDescriptionVirtual:`Klicka f\xf6r att b\xf6rja dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,a)=>`Dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} valt objekt`,other:()=>`${a.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,a)=>`Tryck p\xe5 Retur f\xf6r att dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,a)=>`Tryck p\xe5 Alt + Retur f\xf6r att dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,a)=>`Tryck l\xe4nge f\xf6r att dra ${a.plural(e.count,{one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:`B\xf6rja dra. Tryck p\xe5 tabb f\xf6r att navigera till m\xe5let, tryck p\xe5 enter f\xf6r att sl\xe4ppa eller p\xe5 escape f\xf6r att avbryta.`,dragStartedTouch:`B\xf6rja dra. Navigera till ett m\xe5l och dubbeltryck f\xf6r att sl\xe4ppa.`,dragStartedVirtual:`B\xf6rja dra. Navigera till ett m\xe5l och klicka eller tryck p\xe5 enter f\xf6r att sl\xe4ppa.`,dropCanceled:`Sl\xe4pp\xe5tg\xe4rd avbr\xf6ts.`,dropComplete:`Sl\xe4pp\xe5tg\xe4rd klar.`,dropDescriptionKeyboard:`Tryck p\xe5 enter f\xf6r att sl\xe4ppa. Tryck p\xe5 escape f\xf6r att avbryta drag\xe5tg\xe4rd.`,dropDescriptionTouch:`Dubbeltryck f\xf6r att sl\xe4ppa.`,dropDescriptionVirtual:`Klicka f\xf6r att sl\xe4ppa.`,dropIndicator:`sl\xe4ppindikator`,dropOnItem:e=>`Sl\xe4pp p\xe5 ${e.itemText}`,dropOnRoot:`Sl\xe4pp p\xe5`,endDragKeyboard:`Drar. Tryck p\xe5 enter f\xf6r att avbryta drag\xe5tg\xe4rd.`,endDragTouch:`Drar. Dubbeltryck f\xf6r att avbryta drag\xe5tg\xe4rd.`,endDragVirtual:`Drar. Klicka f\xf6r att avbryta drag\xe5tg\xe4rd.`,insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xf6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`},"@react-aria/grid":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:`Tryck l\xe4nge n\xe4r du vill \xf6ppna v\xe4ljarl\xe4ge.`,select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,a)=>`${a.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${a.number(e.count)} markerat objekt`,other:()=>`${a.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"@react-aria/menu":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`},"@react-aria/numberfield":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerf\xe4lt`},"@react-aria/overlays":{dismiss:"Avvisa"},"@react-aria/pagination":{next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`},"@react-aria/searchfield":{"Clear search":`Rensa s\xf6kning`},"@react-aria/spinbutton":{Empty:"Tomt"},"@react-aria/steplist":{steplist:"Steglista"},"@react-aria/table":{ascending:"stigande",ascendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i fallande ordning`,resizerDescription:`Tryck p\xe5 Retur f\xf6r att b\xf6rja \xe4ndra storlek`,select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"@react-aria/tag":{removeButtonLabel:"Ta bort",removeDescription:`Tryck p\xe5 Radera f\xf6r att ta bort taggen.`},"@react-aria/toast":{close:`St\xe4ng`,notifications:"Aviseringar"},"@react-stately/color":{alpha:"Alfa",blue:`Bl\xe5tt`,brightness:"Ljusstyrka",green:`Gr\xf6nt`,hue:"Nyans",lightness:"Ljushet",red:`R\xf6tt`,saturation:`M\xe4ttnad`},"@react-stately/datepicker":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet m\xe5ste vara f\xf6re slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet \xe4r inte tillg\xe4ngligt.`},"react-aria-components":{dropzoneLabel:"DropZone",selectPlaceholder:`V\xe4lj en artikel`,tableResizer:`Storleks\xe4ndrare`}};
|
package/i18n/tr-TR.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports={"@react-aria/breadcrumbs":{breadcrumbs:`İ\xe7erik haritaları`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:`Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın`,maximumDate:`Son m\xfcsait tarih`,minimumDate:`İlk m\xfcsait tarih`,next:"Sonraki",previous:`\xd6nceki`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:`Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın`,todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"@react-aria/color":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Renk Se\xe7ici`,twoDimensionalSlider:`2D s\xfcrg\xfc`},"@react-aria/combobox":{buttonLabel:`\xd6nerileri g\xf6ster`,countAnnouncement:(e,a)=>`${a.plural(e.optionCount,{one:()=>`${a.number(e.optionCount)} se\xe7enek`,other:()=>`${a.number(e.optionCount)} se\xe7enekler`})} kullanılabilir.`,focusAnnouncement:(e,a)=>`${a.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${a.plural(e.groupCount,{one:()=>`${a.number(e.groupCount)} se\xe7enek`,other:()=>`${a.number(e.groupCount)} se\xe7enekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${a.select({true:`, se\xe7ildi`,other:""},e.isSelected)}`,listboxLabel:`\xd6neriler`,selectedAnnouncement:e=>`${e.optionText}, se\xe7ildi`},"@react-aria/datepicker":{calendar:"Takvim",day:`g\xfcn`,dayPeriod:`\xd6\xd6/\xd6S`,endDate:`Bitiş Tarihi`,era:`\xe7ağ`,hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Başlangı\xe7 Tarihi`,timeZoneName:"saat dilimi",weekday:`haftanın g\xfcn\xfc`,year:`yıl`},"@react-aria/dnd":{dragDescriptionKeyboard:`S\xfcr\xfcklemeyi başlatmak i\xe7in Enter'a basın.`,dragDescriptionKeyboardAlt:`S\xfcr\xfcklemeyi başlatmak i\xe7in Alt + Enter'a basın.`,dragDescriptionLongPress:`S\xfcr\xfcklemeye başlamak i\xe7in uzun basın.`,dragDescriptionTouch:`S\xfcr\xfcklemeyi başlatmak i\xe7in \xe7ift tıklayın.`,dragDescriptionVirtual:`S\xfcr\xfcklemeyi başlatmak i\xe7in tıklayın.`,dragItem:e=>`${e.itemText}’i s\xfcr\xfckle`,dragSelectedItems:(e,a)=>`S\xfcr\xfckle ${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ili \xf6ge`,other:()=>`${a.number(e.count)} se\xe7ili \xf6ge`})}`,dragSelectedKeyboard:(e,a)=>`${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`,other:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`})} \xf6ğesini s\xfcr\xfcklemek i\xe7in Enter'a basın.`,dragSelectedKeyboardAlt:(e,a)=>`${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`,other:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`})} \xf6ğesini s\xfcr\xfcklemek i\xe7in Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,a)=>`${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`,other:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`})} \xf6ğesini s\xfcr\xfcklemek i\xe7in uzun basın.`,dragStartedKeyboard:`S\xfcr\xfckleme başlatıldı. Bir bırakma hedefine gitmek i\xe7in Tab’a basın, ardından bırakmak i\xe7in Enter’a basın veya iptal etmek i\xe7in Escape’e basın.`,dragStartedTouch:`S\xfcr\xfckleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak i\xe7in \xe7ift tıklayın.`,dragStartedVirtual:`S\xfcr\xfckleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak i\xe7in Enter’a tıklayın veya basın.`,dropCanceled:`Bırakma iptal edildi.`,dropComplete:`Bırakma tamamlandı.`,dropDescriptionKeyboard:`Bırakmak i\xe7in Enter'a basın. S\xfcr\xfcklemeyi iptal etmek i\xe7in Escape'e basın.`,dropDescriptionTouch:`Bırakmak i\xe7in \xe7ift tıklayın.`,dropDescriptionVirtual:`Bırakmak i\xe7in tıklayın.`,dropIndicator:`bırakma g\xf6stergesi`,dropOnItem:e=>`${e.itemText} \xfczerine bırak`,dropOnRoot:`Bırakın`,endDragKeyboard:`S\xfcr\xfckleme. S\xfcr\xfcklemeyi iptal etmek i\xe7in Enter'a basın.`,endDragTouch:`S\xfcr\xfckleme. S\xfcr\xfcklemeyi iptal etmek i\xe7in \xe7ift tıklayın.`,endDragVirtual:`S\xfcr\xfckleme. S\xfcr\xfcklemeyi iptal etmek i\xe7in tıklayın.`,insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den \xf6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`},"@react-aria/grid":{deselectedItem:e=>`${e.item} se\xe7ilmedi.`,longPressToSelect:`Se\xe7im moduna girmek i\xe7in uzun basın.`,select:`Se\xe7`,selectedAll:`T\xfcm \xf6geler se\xe7ildi.`,selectedCount:(e,a)=>`${a.plural(e.count,{"=0":`Hi\xe7bir \xf6ge se\xe7ilmedi`,one:()=>`${a.number(e.count)} \xf6ge se\xe7ildi`,other:()=>`${a.number(e.count)} \xf6ge se\xe7ildi`})}.`,selectedItem:e=>`${e.item} se\xe7ildi.`},"@react-aria/menu":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun basın veya Alt + Aşağı Ok tuşuna basın`},"@react-aria/numberfield":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:`Sayı alanı`},"@react-aria/overlays":{dismiss:"Kapat"},"@react-aria/pagination":{next:"Sonraki",previous:`\xd6nceki`},"@react-aria/searchfield":{"Clear search":`Aramayı temizle`},"@react-aria/spinbutton":{Empty:`Boş`},"@react-aria/steplist":{steplist:`Adım Listesi`},"@react-aria/table":{ascending:`artan sırada`,ascendingSort:e=>`${e.columnName} s\xfctuna g\xf6re artan d\xfczende sırala`,columnSize:e=>`${e.value} piksel`,descending:`azalan sırada`,descendingSort:e=>`${e.columnName} s\xfctuna g\xf6re azalan d\xfczende sırala`,resizerDescription:`Yeniden boyutlandırmak i\xe7in Enter'a basın`,select:`Se\xe7`,selectAll:`T\xfcm\xfcn\xfc Se\xe7`,sortable:`Sıralanabilir s\xfctun`},"@react-aria/tag":{removeButtonLabel:`Kaldır`,removeDescription:`Etiketi kaldırmak i\xe7in Sil tuşuna basın.`},"@react-aria/toast":{close:"Kapat",notifications:"Bildirimler"},"@react-stately/color":{alpha:"Alfa",blue:"Mavi",brightness:`Parlaklık`,green:`Yeşil`,hue:"Ton",lightness:`Canlılık`,red:`Kırmızı`,saturation:"Doygunluk"},"@react-stately/datepicker":{rangeOverflow:e=>`Değer, ${e.maxValue} veya \xf6ncesi olmalıdır.`,rangeReversed:`Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.`,rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:`Se\xe7ilen tarih kullanılamıyor.`},"react-aria-components":{dropzoneLabel:`Bırakma B\xf6lgesi`,selectPlaceholder:`Bir \xf6ğe se\xe7in`,tableResizer:`Yeniden boyutlandırıcı`}};
|
package/i18n/tr-TR.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default{"@react-aria/breadcrumbs":{breadcrumbs:`İ\xe7erik haritaları`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:`Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın`,maximumDate:`Son m\xfcsait tarih`,minimumDate:`İlk m\xfcsait tarih`,next:"Sonraki",previous:`\xd6nceki`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:`Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın`,todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"@react-aria/color":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Renk Se\xe7ici`,twoDimensionalSlider:`2D s\xfcrg\xfc`},"@react-aria/combobox":{buttonLabel:`\xd6nerileri g\xf6ster`,countAnnouncement:(e,a)=>`${a.plural(e.optionCount,{one:()=>`${a.number(e.optionCount)} se\xe7enek`,other:()=>`${a.number(e.optionCount)} se\xe7enekler`})} kullanılabilir.`,focusAnnouncement:(e,a)=>`${a.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${a.plural(e.groupCount,{one:()=>`${a.number(e.groupCount)} se\xe7enek`,other:()=>`${a.number(e.groupCount)} se\xe7enekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${a.select({true:`, se\xe7ildi`,other:""},e.isSelected)}`,listboxLabel:`\xd6neriler`,selectedAnnouncement:e=>`${e.optionText}, se\xe7ildi`},"@react-aria/datepicker":{calendar:"Takvim",day:`g\xfcn`,dayPeriod:`\xd6\xd6/\xd6S`,endDate:`Bitiş Tarihi`,era:`\xe7ağ`,hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Başlangı\xe7 Tarihi`,timeZoneName:"saat dilimi",weekday:`haftanın g\xfcn\xfc`,year:`yıl`},"@react-aria/dnd":{dragDescriptionKeyboard:`S\xfcr\xfcklemeyi başlatmak i\xe7in Enter'a basın.`,dragDescriptionKeyboardAlt:`S\xfcr\xfcklemeyi başlatmak i\xe7in Alt + Enter'a basın.`,dragDescriptionLongPress:`S\xfcr\xfcklemeye başlamak i\xe7in uzun basın.`,dragDescriptionTouch:`S\xfcr\xfcklemeyi başlatmak i\xe7in \xe7ift tıklayın.`,dragDescriptionVirtual:`S\xfcr\xfcklemeyi başlatmak i\xe7in tıklayın.`,dragItem:e=>`${e.itemText}’i s\xfcr\xfckle`,dragSelectedItems:(e,a)=>`S\xfcr\xfckle ${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ili \xf6ge`,other:()=>`${a.number(e.count)} se\xe7ili \xf6ge`})}`,dragSelectedKeyboard:(e,a)=>`${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`,other:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`})} \xf6ğesini s\xfcr\xfcklemek i\xe7in Enter'a basın.`,dragSelectedKeyboardAlt:(e,a)=>`${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`,other:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`})} \xf6ğesini s\xfcr\xfcklemek i\xe7in Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,a)=>`${a.plural(e.count,{one:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`,other:()=>`${a.number(e.count)} se\xe7ilmiş \xf6ğe`})} \xf6ğesini s\xfcr\xfcklemek i\xe7in uzun basın.`,dragStartedKeyboard:`S\xfcr\xfckleme başlatıldı. Bir bırakma hedefine gitmek i\xe7in Tab’a basın, ardından bırakmak i\xe7in Enter’a basın veya iptal etmek i\xe7in Escape’e basın.`,dragStartedTouch:`S\xfcr\xfckleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak i\xe7in \xe7ift tıklayın.`,dragStartedVirtual:`S\xfcr\xfckleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak i\xe7in Enter’a tıklayın veya basın.`,dropCanceled:`Bırakma iptal edildi.`,dropComplete:`Bırakma tamamlandı.`,dropDescriptionKeyboard:`Bırakmak i\xe7in Enter'a basın. S\xfcr\xfcklemeyi iptal etmek i\xe7in Escape'e basın.`,dropDescriptionTouch:`Bırakmak i\xe7in \xe7ift tıklayın.`,dropDescriptionVirtual:`Bırakmak i\xe7in tıklayın.`,dropIndicator:`bırakma g\xf6stergesi`,dropOnItem:e=>`${e.itemText} \xfczerine bırak`,dropOnRoot:`Bırakın`,endDragKeyboard:`S\xfcr\xfckleme. S\xfcr\xfcklemeyi iptal etmek i\xe7in Enter'a basın.`,endDragTouch:`S\xfcr\xfckleme. S\xfcr\xfcklemeyi iptal etmek i\xe7in \xe7ift tıklayın.`,endDragVirtual:`S\xfcr\xfckleme. S\xfcr\xfcklemeyi iptal etmek i\xe7in tıklayın.`,insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den \xf6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`},"@react-aria/grid":{deselectedItem:e=>`${e.item} se\xe7ilmedi.`,longPressToSelect:`Se\xe7im moduna girmek i\xe7in uzun basın.`,select:`Se\xe7`,selectedAll:`T\xfcm \xf6geler se\xe7ildi.`,selectedCount:(e,a)=>`${a.plural(e.count,{"=0":`Hi\xe7bir \xf6ge se\xe7ilmedi`,one:()=>`${a.number(e.count)} \xf6ge se\xe7ildi`,other:()=>`${a.number(e.count)} \xf6ge se\xe7ildi`})}.`,selectedItem:e=>`${e.item} se\xe7ildi.`},"@react-aria/menu":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun basın veya Alt + Aşağı Ok tuşuna basın`},"@react-aria/numberfield":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:`Sayı alanı`},"@react-aria/overlays":{dismiss:"Kapat"},"@react-aria/pagination":{next:"Sonraki",previous:`\xd6nceki`},"@react-aria/searchfield":{"Clear search":`Aramayı temizle`},"@react-aria/spinbutton":{Empty:`Boş`},"@react-aria/steplist":{steplist:`Adım Listesi`},"@react-aria/table":{ascending:`artan sırada`,ascendingSort:e=>`${e.columnName} s\xfctuna g\xf6re artan d\xfczende sırala`,columnSize:e=>`${e.value} piksel`,descending:`azalan sırada`,descendingSort:e=>`${e.columnName} s\xfctuna g\xf6re azalan d\xfczende sırala`,resizerDescription:`Yeniden boyutlandırmak i\xe7in Enter'a basın`,select:`Se\xe7`,selectAll:`T\xfcm\xfcn\xfc Se\xe7`,sortable:`Sıralanabilir s\xfctun`},"@react-aria/tag":{removeButtonLabel:`Kaldır`,removeDescription:`Etiketi kaldırmak i\xe7in Sil tuşuna basın.`},"@react-aria/toast":{close:"Kapat",notifications:"Bildirimler"},"@react-stately/color":{alpha:"Alfa",blue:"Mavi",brightness:`Parlaklık`,green:`Yeşil`,hue:"Ton",lightness:`Canlılık`,red:`Kırmızı`,saturation:"Doygunluk"},"@react-stately/datepicker":{rangeOverflow:e=>`Değer, ${e.maxValue} veya \xf6ncesi olmalıdır.`,rangeReversed:`Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.`,rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:`Se\xe7ilen tarih kullanılamıyor.`},"react-aria-components":{dropzoneLabel:`Bırakma B\xf6lgesi`,selectPlaceholder:`Bir \xf6ğe se\xe7in`,tableResizer:`Yeniden boyutlandırıcı`}};
|
package/i18n/uk-UA.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports={"@react-aria/breadcrumbs":{breadcrumbs:`Навігаційна стежка`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:`Натисніть, щоб завершити вибір діапазону дат`,maximumDate:`Остання доступна дата`,minimumDate:`Перша доступна дата`,next:`Наступний`,previous:`Попередній`,selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:`Натисніть, щоб почати вибір діапазону дат`,todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"@react-aria/color":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Палітра кольорів`,twoDimensionalSlider:`Повзунок 2D`},"@react-aria/combobox":{buttonLabel:`Показати пропозиції`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:`, вибрано`,other:""},e.isSelected)}`,listboxLabel:`Пропозиції`,selectedAnnouncement:e=>`${e.optionText}, вибрано`},"@react-aria/datepicker":{calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`},"@react-aria/dnd":{dragDescriptionKeyboard:`Натисніть Enter, щоб почати перетягування.`,dragDescriptionKeyboardAlt:`Натисніть Alt + Enter, щоб почати перетягування.`,dragDescriptionLongPress:`Натисніть і утримуйте, щоб почати перетягування.`,dragDescriptionTouch:`Натисніть двічі, щоб почати перетягування.`,dragDescriptionVirtual:`Натисніть, щоб почати перетягування.`,dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:`Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.`,dragStartedTouch:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.`,dragStartedVirtual:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.`,dropCanceled:`Перетягування скасовано.`,dropComplete:`Перетягування завершено.`,dropDescriptionKeyboard:`Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.`,dropDescriptionTouch:`Натисніть двічі, щоб перетягнути.`,dropDescriptionVirtual:`Натисніть, щоб перетягнути.`,dropIndicator:`індикатор перетягування`,dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:`Перетягнути на`,endDragKeyboard:`Триває перетягування. Натисніть Enter, щоб скасувати перетягування.`,endDragTouch:`Триває перетягування. Натисніть двічі, щоб скасувати перетягування.`,endDragVirtual:`Триває перетягування. Натисніть, щоб скасувати перетягування.`,insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`},"@react-aria/grid":{deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:`Виконайте довге натиснення, щоб перейти в режим вибору.`,select:`Вибрати`,selectedAll:`Усі елементи вибрано.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Жодних елементів не вибрано`,one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`},"@react-aria/menu":{longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`},"@react-aria/numberfield":{decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:`Поле номера`},"@react-aria/overlays":{dismiss:`Скасувати`},"@react-aria/pagination":{next:`Наступний`,previous:`Попередній`},"@react-aria/searchfield":{"Clear search":`Очистити пошук`},"@react-aria/spinbutton":{Empty:`Пусто`},"@react-aria/steplist":{steplist:`Список кроків`},"@react-aria/table":{ascending:`висхідний`,ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:`низхідний`,descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:`Натисніть Enter, щоб почати зміну розміру`,select:`Вибрати`,selectAll:`Вибрати все`,sortable:`сортувальний стовпець`},"@react-aria/tag":{removeButtonLabel:`Вилучити`,removeDescription:`Натисніть Delete, щоб вилучити тег.`},"@react-aria/toast":{close:`Закрити`,notifications:`Сповіщення`},"@react-stately/color":{alpha:`Альфа`,blue:`Синій`,brightness:`Яскравість`,green:`Зелений`,hue:`Тон`,lightness:`Освітленість`,red:`Червоний`,saturation:`Насиченість`},"@react-stately/datepicker":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:`Дата початку має передувати даті завершення.`,rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:`Вибрана дата недоступна.`},"react-aria-components":{dropzoneLabel:"DropZone",selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`}};
|
package/i18n/uk-UA.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default{"@react-aria/breadcrumbs":{breadcrumbs:`Навігаційна стежка`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:`Натисніть, щоб завершити вибір діапазону дат`,maximumDate:`Остання доступна дата`,minimumDate:`Перша доступна дата`,next:`Наступний`,previous:`Попередній`,selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:`Натисніть, щоб почати вибір діапазону дат`,todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"@react-aria/color":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Палітра кольорів`,twoDimensionalSlider:`Повзунок 2D`},"@react-aria/combobox":{buttonLabel:`Показати пропозиції`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:`, вибрано`,other:""},e.isSelected)}`,listboxLabel:`Пропозиції`,selectedAnnouncement:e=>`${e.optionText}, вибрано`},"@react-aria/datepicker":{calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`},"@react-aria/dnd":{dragDescriptionKeyboard:`Натисніть Enter, щоб почати перетягування.`,dragDescriptionKeyboardAlt:`Натисніть Alt + Enter, щоб почати перетягування.`,dragDescriptionLongPress:`Натисніть і утримуйте, щоб почати перетягування.`,dragDescriptionTouch:`Натисніть двічі, щоб почати перетягування.`,dragDescriptionVirtual:`Натисніть, щоб почати перетягування.`,dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:`Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.`,dragStartedTouch:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.`,dragStartedVirtual:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.`,dropCanceled:`Перетягування скасовано.`,dropComplete:`Перетягування завершено.`,dropDescriptionKeyboard:`Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.`,dropDescriptionTouch:`Натисніть двічі, щоб перетягнути.`,dropDescriptionVirtual:`Натисніть, щоб перетягнути.`,dropIndicator:`індикатор перетягування`,dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:`Перетягнути на`,endDragKeyboard:`Триває перетягування. Натисніть Enter, щоб скасувати перетягування.`,endDragTouch:`Триває перетягування. Натисніть двічі, щоб скасувати перетягування.`,endDragVirtual:`Триває перетягування. Натисніть, щоб скасувати перетягування.`,insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`},"@react-aria/grid":{deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:`Виконайте довге натиснення, щоб перейти в режим вибору.`,select:`Вибрати`,selectedAll:`Усі елементи вибрано.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Жодних елементів не вибрано`,one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`},"@react-aria/menu":{longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`},"@react-aria/numberfield":{decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:`Поле номера`},"@react-aria/overlays":{dismiss:`Скасувати`},"@react-aria/pagination":{next:`Наступний`,previous:`Попередній`},"@react-aria/searchfield":{"Clear search":`Очистити пошук`},"@react-aria/spinbutton":{Empty:`Пусто`},"@react-aria/steplist":{steplist:`Список кроків`},"@react-aria/table":{ascending:`висхідний`,ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:`низхідний`,descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:`Натисніть Enter, щоб почати зміну розміру`,select:`Вибрати`,selectAll:`Вибрати все`,sortable:`сортувальний стовпець`},"@react-aria/tag":{removeButtonLabel:`Вилучити`,removeDescription:`Натисніть Delete, щоб вилучити тег.`},"@react-aria/toast":{close:`Закрити`,notifications:`Сповіщення`},"@react-stately/color":{alpha:`Альфа`,blue:`Синій`,brightness:`Яскравість`,green:`Зелений`,hue:`Тон`,lightness:`Освітленість`,red:`Червоний`,saturation:`Насиченість`},"@react-stately/datepicker":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:`Дата початку має передувати даті завершення.`,rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:`Вибрана дата недоступна.`},"react-aria-components":{dropzoneLabel:"DropZone",selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`}};
|
package/i18n/zh-CN.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports={"@react-aria/breadcrumbs":{breadcrumbs:`导航栏`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:`单击以完成选择日期范围`,maximumDate:`最后一个可用日期`,minimumDate:`第一个可用日期`,next:`下一页`,previous:`上一页`,selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:`单击以开始选择日期范围`,todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"@react-aria/color":{colorInputLabel:e=>`${e.label}、${e.channelLabel}`,colorNameAndValue:e=>`${e.name}:${e.value}`,colorPicker:`拾色器`,twoDimensionalSlider:`2D 滑块`},"@react-aria/combobox":{buttonLabel:`显示建议`,countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:`, 已选择`,other:""},e.isSelected)}`,listboxLabel:`建议`,selectedAnnouncement:e=>`${e.optionText}, 已选择`},"@react-aria/datepicker":{calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`},"@react-aria/dnd":{dragDescriptionKeyboard:`按 Enter 开始拖动。`,dragDescriptionKeyboardAlt:`按 Alt + Enter 开始拖动。`,dragDescriptionLongPress:`长按以开始拖动。`,dragDescriptionTouch:`双击开始拖动。`,dragDescriptionVirtual:`单击开始拖动。`,dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:`已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。`,dragStartedTouch:`已开始拖动。导航到放置目标,然后双击放置。`,dragStartedVirtual:`已开始拖动。导航到放置目标,然后单击或按 Enter 放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 放置。按 Escape 取消拖动。`,dropDescriptionTouch:`双击放置。`,dropDescriptionVirtual:`单击放置。`,dropIndicator:`放置标记`,dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:`放置于`,endDragKeyboard:`正在拖动。按 Enter 取消拖动。`,endDragTouch:`正在拖动。双击取消拖动。`,endDragVirtual:`正在拖动。单击取消拖动。`,insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`},"@react-aria/grid":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:`长按以进入选择模式。`,select:`选择`,selectedAll:`已选择所有项目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未选择项目`,one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"@react-aria/menu":{longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`},"@react-aria/numberfield":{decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:`数字字段`},"@react-aria/overlays":{dismiss:`取消`},"@react-aria/pagination":{next:`下一页`,previous:`上一页`},"@react-aria/searchfield":{"Clear search":`清除搜索`},"@react-aria/spinbutton":{Empty:`空`},"@react-aria/steplist":{steplist:`步骤列表`},"@react-aria/table":{ascending:`升序`,ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:`降序`,descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:`按“输入”键开始调整大小。`,select:`选择`,selectAll:`全选`,sortable:`可排序的列`},"@react-aria/tag":{removeButtonLabel:`删除`,removeDescription:`按下“删除”以删除标记。`},"@react-aria/toast":{close:`关闭`,notifications:`通知`},"@react-stately/color":{alpha:"Alpha",blue:`蓝色`,brightness:`亮度`,green:`绿色`,hue:`色相`,lightness:`明亮度`,red:`红色`,saturation:`饱和度`},"@react-stately/datepicker":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:`开始日期必须早于结束日期。`,rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:`所选日期不可用。`},"react-aria-components":{dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`}};
|
package/i18n/zh-CN.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default{"@react-aria/breadcrumbs":{breadcrumbs:`导航栏`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:`单击以完成选择日期范围`,maximumDate:`最后一个可用日期`,minimumDate:`第一个可用日期`,next:`下一页`,previous:`上一页`,selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:`单击以开始选择日期范围`,todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"@react-aria/color":{colorInputLabel:e=>`${e.label}、${e.channelLabel}`,colorNameAndValue:e=>`${e.name}:${e.value}`,colorPicker:`拾色器`,twoDimensionalSlider:`2D 滑块`},"@react-aria/combobox":{buttonLabel:`显示建议`,countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:`, 已选择`,other:""},e.isSelected)}`,listboxLabel:`建议`,selectedAnnouncement:e=>`${e.optionText}, 已选择`},"@react-aria/datepicker":{calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`},"@react-aria/dnd":{dragDescriptionKeyboard:`按 Enter 开始拖动。`,dragDescriptionKeyboardAlt:`按 Alt + Enter 开始拖动。`,dragDescriptionLongPress:`长按以开始拖动。`,dragDescriptionTouch:`双击开始拖动。`,dragDescriptionVirtual:`单击开始拖动。`,dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:`已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。`,dragStartedTouch:`已开始拖动。导航到放置目标,然后双击放置。`,dragStartedVirtual:`已开始拖动。导航到放置目标,然后单击或按 Enter 放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 放置。按 Escape 取消拖动。`,dropDescriptionTouch:`双击放置。`,dropDescriptionVirtual:`单击放置。`,dropIndicator:`放置标记`,dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:`放置于`,endDragKeyboard:`正在拖动。按 Enter 取消拖动。`,endDragTouch:`正在拖动。双击取消拖动。`,endDragVirtual:`正在拖动。单击取消拖动。`,insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`},"@react-aria/grid":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:`长按以进入选择模式。`,select:`选择`,selectedAll:`已选择所有项目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未选择项目`,one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"@react-aria/menu":{longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`},"@react-aria/numberfield":{decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:`数字字段`},"@react-aria/overlays":{dismiss:`取消`},"@react-aria/pagination":{next:`下一页`,previous:`上一页`},"@react-aria/searchfield":{"Clear search":`清除搜索`},"@react-aria/spinbutton":{Empty:`空`},"@react-aria/steplist":{steplist:`步骤列表`},"@react-aria/table":{ascending:`升序`,ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:`降序`,descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:`按“输入”键开始调整大小。`,select:`选择`,selectAll:`全选`,sortable:`可排序的列`},"@react-aria/tag":{removeButtonLabel:`删除`,removeDescription:`按下“删除”以删除标记。`},"@react-aria/toast":{close:`关闭`,notifications:`通知`},"@react-stately/color":{alpha:"Alpha",blue:`蓝色`,brightness:`亮度`,green:`绿色`,hue:`色相`,lightness:`明亮度`,red:`红色`,saturation:`饱和度`},"@react-stately/datepicker":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:`开始日期必须早于结束日期。`,rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:`所选日期不可用。`},"react-aria-components":{dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`}};
|
package/i18n/zh-TW.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports={"@react-aria/breadcrumbs":{breadcrumbs:`導覽列`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:`按一下以完成選取日期範圍`,maximumDate:`最後一個可用日期`,minimumDate:`第一個可用日期`,next:`下一頁`,previous:`上一頁`,selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:`按一下以開始選取日期範圍`,todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`},"@react-aria/color":{colorInputLabel:e=>`${e.label},${e.channelLabel}`,colorNameAndValue:e=>`${e.name}:${e.value}`,colorPicker:`檢色器`,twoDimensionalSlider:`2D 滑桿`},"@react-aria/combobox":{buttonLabel:`顯示建議`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:`, 已選取`,other:""},e.isSelected)}`,listboxLabel:`建議`,selectedAnnouncement:e=>`${e.optionText}, 已選取`},"@react-aria/datepicker":{calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`},"@react-aria/dnd":{dragDescriptionKeyboard:`按 Enter 鍵以開始拖曳。`,dragDescriptionKeyboardAlt:`按 Alt+Enter 鍵以開始拖曳。`,dragDescriptionLongPress:`長按以開始拖曳。`,dragDescriptionTouch:`輕點兩下以開始拖曳。`,dragDescriptionVirtual:`按一下滑鼠以開始拖曳。`,dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:`已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。`,dragStartedTouch:`已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。`,dragStartedVirtual:`已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。`,dropDescriptionTouch:`輕點兩下以放置。`,dropDescriptionVirtual:`按一下滑鼠以放置。`,dropIndicator:`放置指示器`,dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:`放置在`,endDragKeyboard:`拖曳中。按 Enter 鍵以取消拖曳。`,endDragTouch:`拖曳中。輕點兩下以取消拖曳。`,endDragVirtual:`拖曳中。按一下滑鼠以取消拖曳。`,insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`},"@react-aria/grid":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:`長按以進入選擇模式。`,select:`選取`,selectedAll:`已選取所有項目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未選取任何項目`,one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`},"@react-aria/menu":{longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`},"@react-aria/numberfield":{decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:`數字欄位`},"@react-aria/overlays":{dismiss:`關閉`},"@react-aria/pagination":{next:`下一頁`,previous:`上一頁`},"@react-aria/searchfield":{"Clear search":`清除搜尋條件`},"@react-aria/spinbutton":{Empty:`空白`},"@react-aria/steplist":{steplist:`步驟清單`},"@react-aria/table":{ascending:`遞增`,ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:`遞減`,descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:`按 Enter 鍵以開始調整大小`,select:`選取`,selectAll:`全選`,sortable:`可排序的欄`},"@react-aria/tag":{removeButtonLabel:`移除`,removeDescription:`按 Delete 鍵以移除標記。`},"@react-aria/toast":{close:`關閉`,notifications:`通知`},"@react-stately/color":{alpha:"Alpha",blue:`藍色`,brightness:`亮度`,green:`綠色`,hue:`色相`,lightness:`明亮`,red:`紅色`,saturation:`飽和度`},"@react-stately/datepicker":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:`開始日期必須在結束日期之前。`,rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:`所選日期無法使用。`},"react-aria-components":{dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`}};
|
package/i18n/zh-TW.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default{"@react-aria/breadcrumbs":{breadcrumbs:`導覽列`},"@react-aria/calendar":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:`按一下以完成選取日期範圍`,maximumDate:`最後一個可用日期`,minimumDate:`第一個可用日期`,next:`下一頁`,previous:`上一頁`,selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:`按一下以開始選取日期範圍`,todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`},"@react-aria/color":{colorInputLabel:e=>`${e.label},${e.channelLabel}`,colorNameAndValue:e=>`${e.name}:${e.value}`,colorPicker:`檢色器`,twoDimensionalSlider:`2D 滑桿`},"@react-aria/combobox":{buttonLabel:`顯示建議`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:`, 已選取`,other:""},e.isSelected)}`,listboxLabel:`建議`,selectedAnnouncement:e=>`${e.optionText}, 已選取`},"@react-aria/datepicker":{calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`},"@react-aria/dnd":{dragDescriptionKeyboard:`按 Enter 鍵以開始拖曳。`,dragDescriptionKeyboardAlt:`按 Alt+Enter 鍵以開始拖曳。`,dragDescriptionLongPress:`長按以開始拖曳。`,dragDescriptionTouch:`輕點兩下以開始拖曳。`,dragDescriptionVirtual:`按一下滑鼠以開始拖曳。`,dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:`已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。`,dragStartedTouch:`已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。`,dragStartedVirtual:`已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。`,dropDescriptionTouch:`輕點兩下以放置。`,dropDescriptionVirtual:`按一下滑鼠以放置。`,dropIndicator:`放置指示器`,dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:`放置在`,endDragKeyboard:`拖曳中。按 Enter 鍵以取消拖曳。`,endDragTouch:`拖曳中。輕點兩下以取消拖曳。`,endDragVirtual:`拖曳中。按一下滑鼠以取消拖曳。`,insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`},"@react-aria/grid":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:`長按以進入選擇模式。`,select:`選取`,selectedAll:`已選取所有項目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未選取任何項目`,one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`},"@react-aria/menu":{longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`},"@react-aria/numberfield":{decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:`數字欄位`},"@react-aria/overlays":{dismiss:`關閉`},"@react-aria/pagination":{next:`下一頁`,previous:`上一頁`},"@react-aria/searchfield":{"Clear search":`清除搜尋條件`},"@react-aria/spinbutton":{Empty:`空白`},"@react-aria/steplist":{steplist:`步驟清單`},"@react-aria/table":{ascending:`遞增`,ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:`遞減`,descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:`按 Enter 鍵以開始調整大小`,select:`選取`,selectAll:`全選`,sortable:`可排序的欄`},"@react-aria/tag":{removeButtonLabel:`移除`,removeDescription:`按 Delete 鍵以移除標記。`},"@react-aria/toast":{close:`關閉`,notifications:`通知`},"@react-stately/color":{alpha:"Alpha",blue:`藍色`,brightness:`亮度`,green:`綠色`,hue:`色相`,lightness:`明亮`,red:`紅色`,saturation:`飽和度`},"@react-stately/datepicker":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:`開始日期必須在結束日期之前。`,rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:`所選日期無法使用。`},"react-aria-components":{dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-aria-components",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A library of styleable components built using React Aria",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -8,13 +8,26 @@
|
|
|
8
8
|
"types": "dist/types.d.ts",
|
|
9
9
|
"source": "src/index.ts",
|
|
10
10
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types.d.ts",
|
|
13
|
+
"import": "./dist/import.mjs",
|
|
14
|
+
"require": "./dist/main.js"
|
|
15
|
+
},
|
|
16
|
+
"./i18n": {
|
|
17
|
+
"types": "./i18n/index.d.ts",
|
|
18
|
+
"import": "./i18n/index.mjs",
|
|
19
|
+
"require": "./i18n/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./i18n/*": {
|
|
22
|
+
"types": "./i18n/lang.d.ts",
|
|
23
|
+
"import": "./i18n/*.mjs",
|
|
24
|
+
"require": "./i18n/*.js"
|
|
25
|
+
}
|
|
14
26
|
},
|
|
15
27
|
"files": [
|
|
16
28
|
"dist",
|
|
17
|
-
"src"
|
|
29
|
+
"src",
|
|
30
|
+
"i18n"
|
|
18
31
|
],
|
|
19
32
|
"sideEffects": [
|
|
20
33
|
"*.css"
|
|
@@ -24,19 +37,20 @@
|
|
|
24
37
|
"url": "https://github.com/adobe/react-spectrum"
|
|
25
38
|
},
|
|
26
39
|
"dependencies": {
|
|
27
|
-
"@internationalized/date": "^3.5.
|
|
28
|
-
"@
|
|
29
|
-
"@react-aria/
|
|
30
|
-
"@react-aria/
|
|
31
|
-
"@react-aria/
|
|
32
|
-
"@react-
|
|
33
|
-
"@react-
|
|
40
|
+
"@internationalized/date": "^3.5.1",
|
|
41
|
+
"@internationalized/string": "^3.2.0",
|
|
42
|
+
"@react-aria/focus": "^3.16.0",
|
|
43
|
+
"@react-aria/interactions": "^3.20.1",
|
|
44
|
+
"@react-aria/toolbar": "3.0.0-beta.1",
|
|
45
|
+
"@react-aria/utils": "^3.23.0",
|
|
46
|
+
"@react-stately/table": "^3.11.4",
|
|
47
|
+
"@react-types/form": "^3.7.0",
|
|
34
48
|
"@react-types/grid": "^3.2.3",
|
|
35
49
|
"@react-types/shared": "^3.22.0",
|
|
36
|
-
"@react-types/table": "^3.9.
|
|
50
|
+
"@react-types/table": "^3.9.2",
|
|
37
51
|
"@swc/helpers": "^0.5.0",
|
|
38
|
-
"react-aria": "^3.
|
|
39
|
-
"react-stately": "^3.
|
|
52
|
+
"react-aria": "^3.31.0",
|
|
53
|
+
"react-stately": "^3.29.0",
|
|
40
54
|
"use-sync-external-store": "^1.2.0"
|
|
41
55
|
},
|
|
42
56
|
"peerDependencies": {
|
|
@@ -46,5 +60,5 @@
|
|
|
46
60
|
"publishConfig": {
|
|
47
61
|
"access": "public"
|
|
48
62
|
},
|
|
49
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "86b38c87868ce7f262e0df905e5ac4eb2653791d"
|
|
50
64
|
}
|
package/src/Breadcrumbs.tsx
CHANGED
|
@@ -16,7 +16,7 @@ import {ContextValue, forwardRefType, SlotProps, StyleProps, useContextProps} fr
|
|
|
16
16
|
import {filterDOMProps} from '@react-aria/utils';
|
|
17
17
|
import {Key} from '@react-types/shared';
|
|
18
18
|
import {LinkContext} from './Link';
|
|
19
|
-
import React, {createContext, ForwardedRef, forwardRef, ReactNode, RefObject} from 'react';
|
|
19
|
+
import React, {createContext, ForwardedRef, forwardRef, JSX, ReactNode, RefObject} from 'react';
|
|
20
20
|
|
|
21
21
|
export interface BreadcrumbsProps<T> extends Omit<CollectionProps<T>, 'disabledKeys'>, AriaBreadcrumbsProps, StyleProps, SlotProps {
|
|
22
22
|
/** Whether the breadcrumbs are disabled. */
|
|
@@ -79,7 +79,7 @@ export interface BreadcrumbProps extends StyleProps {
|
|
|
79
79
|
children: ReactNode
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
function Breadcrumb(props: BreadcrumbProps, ref: ForwardedRef<HTMLLIElement>):
|
|
82
|
+
function Breadcrumb(props: BreadcrumbProps, ref: ForwardedRef<HTMLLIElement>): JSX.Element | null {
|
|
83
83
|
return useSSRCollectionNode('item', props, ref, props.children);
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -107,6 +107,7 @@ function BreadcrumbItem({node, isCurrent, isDisabled, onAction}: BreadcrumbItemP
|
|
|
107
107
|
return (
|
|
108
108
|
<li
|
|
109
109
|
{...filterDOMProps(node.props)}
|
|
110
|
+
ref={node.props.ref}
|
|
110
111
|
style={node.props.style}
|
|
111
112
|
className={node.props.className ?? 'react-aria-Breadcrumb'}>
|
|
112
113
|
<LinkContext.Provider value={linkProps}>
|
package/src/Calendar.tsx
CHANGED
|
@@ -15,9 +15,9 @@ import {CalendarDate, createCalendar, DateDuration, endOfMonth, getWeeksInMonth,
|
|
|
15
15
|
import {CalendarState, RangeCalendarState, useCalendarState, useRangeCalendarState} from 'react-stately';
|
|
16
16
|
import {ContextValue, DOMProps, forwardRefType, Provider, RenderProps, SlotProps, StyleProps, useContextProps, useRenderProps} from './utils';
|
|
17
17
|
import {DOMAttributes, FocusableElement, HoverEvents} from '@react-types/shared';
|
|
18
|
-
import {filterDOMProps
|
|
18
|
+
import {filterDOMProps} from '@react-aria/utils';
|
|
19
19
|
import {HeadingContext} from './Heading';
|
|
20
|
-
import React, {createContext, ForwardedRef, forwardRef, ReactElement, useContext} from 'react';
|
|
20
|
+
import React, {createContext, ForwardedRef, forwardRef, ReactElement, useContext, useRef} from 'react';
|
|
21
21
|
import {TextContext} from './Text';
|
|
22
22
|
|
|
23
23
|
export interface CalendarRenderProps {
|
|
@@ -464,16 +464,16 @@ export interface CalendarCellProps extends RenderProps<CalendarCellRenderProps>,
|
|
|
464
464
|
date: CalendarDate
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
function CalendarCell({date, ...otherProps}: CalendarCellProps, ref: ForwardedRef<
|
|
467
|
+
function CalendarCell({date, ...otherProps}: CalendarCellProps, ref: ForwardedRef<HTMLTableCellElement>) {
|
|
468
468
|
let calendarState = useContext(CalendarStateContext);
|
|
469
469
|
let rangeCalendarState = useContext(RangeCalendarStateContext);
|
|
470
470
|
let state = calendarState ?? rangeCalendarState!;
|
|
471
471
|
let {startDate: currentMonth} = useContext(InternalCalendarGridContext) ?? {startDate: state.visibleRange.start};
|
|
472
|
-
let
|
|
472
|
+
let buttonRef = useRef<HTMLDivElement>(null);
|
|
473
473
|
let {cellProps, buttonProps, ...states} = useCalendarCell(
|
|
474
474
|
{date},
|
|
475
475
|
state,
|
|
476
|
-
|
|
476
|
+
buttonRef
|
|
477
477
|
);
|
|
478
478
|
|
|
479
479
|
let {hoverProps, isHovered} = useHover({...otherProps, isDisabled: states.isDisabled});
|
|
@@ -517,8 +517,8 @@ function CalendarCell({date, ...otherProps}: CalendarCellProps, ref: ForwardedRe
|
|
|
517
517
|
};
|
|
518
518
|
|
|
519
519
|
return (
|
|
520
|
-
<td {...cellProps}>
|
|
521
|
-
<div {...mergeProps(filterDOMProps(otherProps as any), buttonProps, focusProps, hoverProps, dataAttrs, renderProps)} ref={
|
|
520
|
+
<td {...cellProps} ref={ref}>
|
|
521
|
+
<div {...mergeProps(filterDOMProps(otherProps as any), buttonProps, focusProps, hoverProps, dataAttrs, renderProps)} ref={buttonRef} />
|
|
522
522
|
</td>
|
|
523
523
|
);
|
|
524
524
|
}
|
package/src/Checkbox.tsx
CHANGED
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {AriaCheckboxGroupProps, AriaCheckboxProps, HoverEvents, mergeProps, useCheckbox, useCheckboxGroup, useCheckboxGroupItem, useFocusRing, useHover,
|
|
12
|
+
import {AriaCheckboxGroupProps, AriaCheckboxProps, HoverEvents, mergeProps, useCheckbox, useCheckboxGroup, useCheckboxGroupItem, useFocusRing, useHover, VisuallyHidden} from 'react-aria';
|
|
13
13
|
import {CheckboxGroupState, useCheckboxGroupState, useToggleState} from 'react-stately';
|
|
14
14
|
import {ContextValue, forwardRefType, Provider, RACValidation, RenderProps, SlotProps, useContextProps, useRenderProps, useSlot} from './utils';
|
|
15
15
|
import {FieldErrorContext} from './FieldError';
|
|
16
16
|
import {filterDOMProps} from '@react-aria/utils';
|
|
17
17
|
import {LabelContext} from './Label';
|
|
18
|
-
import React, {createContext, ForwardedRef, forwardRef, useContext,
|
|
18
|
+
import React, {createContext, ForwardedRef, forwardRef, useContext, useRef} from 'react';
|
|
19
19
|
import {TextContext} from './Text';
|
|
20
20
|
|
|
21
21
|
export interface CheckboxGroupProps extends Omit<AriaCheckboxGroupProps, 'children' | 'label' | 'description' | 'errorMessage' | 'validationState' | 'validationBehavior'>, RACValidation, RenderProps<CheckboxGroupRenderProps>, SlotProps {}
|
|
22
|
-
export interface CheckboxProps extends Omit<AriaCheckboxProps, 'children' | 'validationState'>, HoverEvents, RACValidation, RenderProps<CheckboxRenderProps>, SlotProps {}
|
|
22
|
+
export interface CheckboxProps extends Omit<AriaCheckboxProps, 'children' | 'validationState' | 'validationBehavior'>, HoverEvents, RACValidation, RenderProps<CheckboxRenderProps>, SlotProps {}
|
|
23
23
|
|
|
24
24
|
export interface CheckboxGroupRenderProps {
|
|
25
25
|
/**
|
|
@@ -157,12 +157,13 @@ function CheckboxGroup(props: CheckboxGroupProps, ref: ForwardedRef<HTMLDivEleme
|
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
export const CheckboxContext = createContext<ContextValue<CheckboxProps,
|
|
160
|
+
export const CheckboxContext = createContext<ContextValue<CheckboxProps, HTMLLabelElement>>(null);
|
|
161
161
|
|
|
162
|
-
function Checkbox(props: CheckboxProps, ref: ForwardedRef<
|
|
162
|
+
function Checkbox(props: CheckboxProps, ref: ForwardedRef<HTMLLabelElement>) {
|
|
163
163
|
[props, ref] = useContextProps(props, ref, CheckboxContext);
|
|
164
|
+
let inputRef = useRef<HTMLInputElement>(null);
|
|
164
165
|
let groupState = useContext(CheckboxGroupStateContext);
|
|
165
|
-
let {inputProps, isSelected, isDisabled, isReadOnly, isPressed
|
|
166
|
+
let {labelProps, inputProps, isSelected, isDisabled, isReadOnly, isPressed, isInvalid} = groupState
|
|
166
167
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
167
168
|
? useCheckboxGroupItem({
|
|
168
169
|
...props,
|
|
@@ -172,41 +173,22 @@ function Checkbox(props: CheckboxProps, ref: ForwardedRef<HTMLInputElement>) {
|
|
|
172
173
|
value: props.value,
|
|
173
174
|
// ReactNode type doesn't allow function children.
|
|
174
175
|
children: typeof props.children === 'function' ? true : props.children
|
|
175
|
-
}, groupState,
|
|
176
|
+
}, groupState, inputRef)
|
|
176
177
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
177
178
|
: useCheckbox({
|
|
178
179
|
...props,
|
|
179
180
|
children: typeof props.children === 'function' ? true : props.children,
|
|
180
181
|
validationBehavior: props.validationBehavior ?? 'native'
|
|
181
182
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
182
|
-
}, useToggleState(props),
|
|
183
|
+
}, useToggleState(props), inputRef);
|
|
183
184
|
let {isFocused, isFocusVisible, focusProps} = useFocusRing();
|
|
184
185
|
let isInteractionDisabled = isDisabled || isReadOnly;
|
|
185
186
|
|
|
186
|
-
// Handle press state for full label. Keyboard press state is returned by useCheckbox
|
|
187
|
-
// since it is handled on the <input> element itself.
|
|
188
|
-
let [isPressed, setPressed] = useState(false);
|
|
189
|
-
let {pressProps} = usePress({
|
|
190
|
-
isDisabled: isInteractionDisabled,
|
|
191
|
-
onPressStart(e) {
|
|
192
|
-
if (e.pointerType !== 'keyboard') {
|
|
193
|
-
setPressed(true);
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
onPressEnd(e) {
|
|
197
|
-
if (e.pointerType !== 'keyboard') {
|
|
198
|
-
setPressed(false);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
|
|
203
187
|
let {hoverProps, isHovered} = useHover({
|
|
204
188
|
...props,
|
|
205
189
|
isDisabled: isInteractionDisabled
|
|
206
190
|
});
|
|
207
191
|
|
|
208
|
-
let pressed = isInteractionDisabled ? false : (isPressed || isPressedKeyboard);
|
|
209
|
-
|
|
210
192
|
let renderProps = useRenderProps({
|
|
211
193
|
// TODO: should data attrs go on the label or on the <input>? useCheckbox passes them to the input...
|
|
212
194
|
...props,
|
|
@@ -214,7 +196,7 @@ function Checkbox(props: CheckboxProps, ref: ForwardedRef<HTMLInputElement>) {
|
|
|
214
196
|
values: {
|
|
215
197
|
isSelected,
|
|
216
198
|
isIndeterminate: props.isIndeterminate || false,
|
|
217
|
-
isPressed
|
|
199
|
+
isPressed,
|
|
218
200
|
isHovered,
|
|
219
201
|
isFocused,
|
|
220
202
|
isFocusVisible,
|
|
@@ -230,11 +212,12 @@ function Checkbox(props: CheckboxProps, ref: ForwardedRef<HTMLInputElement>) {
|
|
|
230
212
|
|
|
231
213
|
return (
|
|
232
214
|
<label
|
|
233
|
-
{...mergeProps(DOMProps,
|
|
215
|
+
{...mergeProps(DOMProps, labelProps, hoverProps, renderProps)}
|
|
216
|
+
ref={ref}
|
|
234
217
|
slot={props.slot || undefined}
|
|
235
218
|
data-selected={isSelected || undefined}
|
|
236
219
|
data-indeterminate={props.isIndeterminate || undefined}
|
|
237
|
-
data-pressed={
|
|
220
|
+
data-pressed={isPressed || undefined}
|
|
238
221
|
data-hovered={isHovered || undefined}
|
|
239
222
|
data-focused={isFocused || undefined}
|
|
240
223
|
data-focus-visible={isFocusVisible || undefined}
|
|
@@ -243,7 +226,7 @@ function Checkbox(props: CheckboxProps, ref: ForwardedRef<HTMLInputElement>) {
|
|
|
243
226
|
data-invalid={isInvalid || undefined}
|
|
244
227
|
data-required={props.isRequired || undefined}>
|
|
245
228
|
<VisuallyHidden elementType="span">
|
|
246
|
-
<input {...inputProps} {...focusProps} ref={
|
|
229
|
+
<input {...inputProps} {...focusProps} ref={inputRef} />
|
|
247
230
|
</VisuallyHidden>
|
|
248
231
|
{renderProps.children}
|
|
249
232
|
</label>
|
package/src/Collection.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import {createPortal} from 'react-dom';
|
|
|
14
14
|
import {forwardRefType, StyleProps} from './utils';
|
|
15
15
|
import {Collection as ICollection, Node, SelectionBehavior, SelectionMode, SectionProps as SharedSectionProps} from 'react-stately';
|
|
16
16
|
import {mergeProps, useIsSSR} from 'react-aria';
|
|
17
|
-
import React, {cloneElement, createContext, ForwardedRef, forwardRef, ReactElement, ReactNode, useCallback, useContext, useMemo, useRef} from 'react';
|
|
17
|
+
import React, {cloneElement, createContext, ForwardedRef, forwardRef, JSX, ReactElement, ReactNode, useCallback, useContext, useMemo, useRef} from 'react';
|
|
18
18
|
import {useSyncExternalStore as useSyncExternalStoreShim} from 'use-sync-external-store/shim/index.js';
|
|
19
19
|
|
|
20
20
|
// This Collection implementation is perhaps a little unusual. It works by rendering the React tree into a
|
|
@@ -150,6 +150,10 @@ class BaseNode<T> {
|
|
|
150
150
|
this.ownerDocument.markDirty(this);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
get isConnected() {
|
|
154
|
+
return this.parentNode?.isConnected || false;
|
|
155
|
+
}
|
|
156
|
+
|
|
153
157
|
appendChild(child: ElementNode<T>) {
|
|
154
158
|
this.ownerDocument.startTransaction();
|
|
155
159
|
if (child.parentNode) {
|
|
@@ -515,6 +519,10 @@ export class Document<T, C extends BaseCollection<T> = BaseCollection<T>> extend
|
|
|
515
519
|
this.collectionMutated = true;
|
|
516
520
|
}
|
|
517
521
|
|
|
522
|
+
get isConnected() {
|
|
523
|
+
return true;
|
|
524
|
+
}
|
|
525
|
+
|
|
518
526
|
createElement(type: string) {
|
|
519
527
|
return new ElementNode(type, this);
|
|
520
528
|
}
|
|
@@ -570,7 +578,6 @@ export class Document<T, C extends BaseCollection<T> = BaseCollection<T>> extend
|
|
|
570
578
|
|
|
571
579
|
removeNode(node: ElementNode<T>) {
|
|
572
580
|
for (let child of node) {
|
|
573
|
-
child.parentNode = null;
|
|
574
581
|
this.removeNode(child);
|
|
575
582
|
}
|
|
576
583
|
|
|
@@ -591,7 +598,7 @@ export class Document<T, C extends BaseCollection<T> = BaseCollection<T>> extend
|
|
|
591
598
|
|
|
592
599
|
updateCollection() {
|
|
593
600
|
for (let element of this.dirtyNodes) {
|
|
594
|
-
if (element instanceof ElementNode && element.
|
|
601
|
+
if (element instanceof ElementNode && element.isConnected) {
|
|
595
602
|
element.updateNode();
|
|
596
603
|
}
|
|
597
604
|
}
|
|
@@ -601,7 +608,7 @@ export class Document<T, C extends BaseCollection<T> = BaseCollection<T>> extend
|
|
|
601
608
|
if (this.mutatedNodes.size) {
|
|
602
609
|
let collection = this.getMutableCollection();
|
|
603
610
|
for (let element of this.mutatedNodes) {
|
|
604
|
-
if (element.
|
|
611
|
+
if (element.isConnected) {
|
|
605
612
|
collection.addNode(element.node);
|
|
606
613
|
}
|
|
607
614
|
}
|
|
@@ -642,17 +649,22 @@ export class Document<T, C extends BaseCollection<T> = BaseCollection<T>> extend
|
|
|
642
649
|
|
|
643
650
|
export interface CollectionProps<T> extends Omit<CollectionBase<T>, 'children'> {
|
|
644
651
|
/** The contents of the collection. */
|
|
645
|
-
children?: ReactNode | ((item: T) => ReactNode)
|
|
652
|
+
children?: ReactNode | ((item: T) => ReactNode),
|
|
653
|
+
/** Values that should invalidate the item cache when using dynamic collections. */
|
|
654
|
+
dependencies?: any[]
|
|
646
655
|
}
|
|
647
656
|
|
|
648
657
|
interface CachedChildrenOptions<T> extends CollectionProps<T> {
|
|
649
658
|
idScope?: Key,
|
|
650
|
-
addIdAndValue?: boolean
|
|
659
|
+
addIdAndValue?: boolean,
|
|
660
|
+
dependencies?: any[]
|
|
651
661
|
}
|
|
652
662
|
|
|
653
663
|
export function useCachedChildren<T extends object>(props: CachedChildrenOptions<T>): ReactNode {
|
|
654
|
-
let {children, items, idScope, addIdAndValue} = props;
|
|
655
|
-
|
|
664
|
+
let {children, items, idScope, addIdAndValue, dependencies = []} = props;
|
|
665
|
+
|
|
666
|
+
// Invalidate the cache whenever the parent value changes.
|
|
667
|
+
let cache = useMemo(() => new WeakMap(), dependencies);
|
|
656
668
|
return useMemo(() => {
|
|
657
669
|
if (items && typeof children === 'function') {
|
|
658
670
|
let res: ReactElement[] = [];
|
|
@@ -660,23 +672,21 @@ export function useCachedChildren<T extends object>(props: CachedChildrenOptions
|
|
|
660
672
|
let rendered = cache.get(item);
|
|
661
673
|
if (!rendered) {
|
|
662
674
|
rendered = children(item);
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
key = idScope + ':' + key;
|
|
673
|
-
}
|
|
674
|
-
// TODO: only works if wrapped Item passes through id...
|
|
675
|
-
rendered = cloneElement(
|
|
676
|
-
rendered,
|
|
677
|
-
addIdAndValue ? {key, id: key, value: item} : {key}
|
|
678
|
-
);
|
|
675
|
+
// @ts-ignore
|
|
676
|
+
let key = rendered.props.id ?? item.key ?? item.id;
|
|
677
|
+
// eslint-disable-next-line max-depth
|
|
678
|
+
if (key == null) {
|
|
679
|
+
throw new Error('Could not determine key for item');
|
|
680
|
+
}
|
|
681
|
+
// eslint-disable-next-line max-depth
|
|
682
|
+
if (idScope) {
|
|
683
|
+
key = idScope + ':' + key;
|
|
679
684
|
}
|
|
685
|
+
// Note: only works if wrapped Item passes through id...
|
|
686
|
+
rendered = cloneElement(
|
|
687
|
+
rendered,
|
|
688
|
+
addIdAndValue ? {key, id: key, value: item} : {key}
|
|
689
|
+
);
|
|
680
690
|
cache.set(item, rendered);
|
|
681
691
|
}
|
|
682
692
|
res.push(rendered);
|
|
@@ -889,10 +899,12 @@ export interface SectionProps<T> extends Omit<SharedSectionProps<T>, 'children'
|
|
|
889
899
|
/** The object value that this section represents. When using dynamic collections, this is set automatically. */
|
|
890
900
|
value?: T,
|
|
891
901
|
/** Static child items or a function to render children. */
|
|
892
|
-
children?: ReactNode | ((item: T) => ReactElement)
|
|
902
|
+
children?: ReactNode | ((item: T) => ReactElement),
|
|
903
|
+
/** Values that should invalidate the item cache when using dynamic collections. */
|
|
904
|
+
dependencies?: any[]
|
|
893
905
|
}
|
|
894
906
|
|
|
895
|
-
function Section<T extends object>(props: SectionProps<T>, ref: ForwardedRef<HTMLElement>):
|
|
907
|
+
function Section<T extends object>(props: SectionProps<T>, ref: ForwardedRef<HTMLElement>): JSX.Element | null {
|
|
896
908
|
let children = useCollectionChildren(props);
|
|
897
909
|
return useSSRCollectionNode('section', props, ref, null, children);
|
|
898
910
|
}
|
|
@@ -904,9 +916,10 @@ export const CollectionContext = createContext<CachedChildrenOptions<unknown> |
|
|
|
904
916
|
export const CollectionRendererContext = createContext<CollectionProps<any>['children']>(null);
|
|
905
917
|
|
|
906
918
|
/** A Collection renders a list of items, automatically managing caching and keys. */
|
|
907
|
-
export function Collection<T extends object>(props: CollectionProps<T>):
|
|
919
|
+
export function Collection<T extends object>(props: CollectionProps<T>): JSX.Element {
|
|
908
920
|
let ctx = useContext(CollectionContext)!;
|
|
909
921
|
props = mergeProps(ctx, props);
|
|
922
|
+
props.dependencies = (ctx?.dependencies || []).concat(props.dependencies);
|
|
910
923
|
let renderer = typeof props.children === 'function' ? props.children : null;
|
|
911
924
|
return (
|
|
912
925
|
<CollectionRendererContext.Provider value={renderer}>
|
package/src/ComboBox.tsx
CHANGED
|
@@ -16,6 +16,7 @@ import {CollectionDocumentContext, useCollectionDocument} from './Collection';
|
|
|
16
16
|
import {ContextValue, forwardRefType, Hidden, Provider, RACValidation, removeDataAttributes, RenderProps, SlotProps, useContextProps, useRenderProps, useSlot} from './utils';
|
|
17
17
|
import {FieldErrorContext} from './FieldError';
|
|
18
18
|
import {filterDOMProps, useResizeObserver} from '@react-aria/utils';
|
|
19
|
+
import {GroupContext} from './Group';
|
|
19
20
|
import {InputContext} from './Input';
|
|
20
21
|
import {LabelContext} from './Label';
|
|
21
22
|
import {ListBoxContext, ListStateContext} from './ListBox';
|
|
@@ -192,6 +193,7 @@ function ComboBoxInner<T extends object>({props, collection, comboBoxRef: ref}:
|
|
|
192
193
|
triggerRef: inputRef,
|
|
193
194
|
placement: 'bottom start',
|
|
194
195
|
isNonModal: true,
|
|
196
|
+
trigger: 'ComboBox',
|
|
195
197
|
style: {'--trigger-width': menuWidth} as React.CSSProperties
|
|
196
198
|
}],
|
|
197
199
|
[ListBoxContext, {...listBoxProps, ref: listBoxRef}],
|
|
@@ -202,6 +204,7 @@ function ComboBoxInner<T extends object>({props, collection, comboBoxRef: ref}:
|
|
|
202
204
|
errorMessage: errorMessageProps
|
|
203
205
|
}
|
|
204
206
|
}],
|
|
207
|
+
[GroupContext, {isInvalid: validation.isInvalid, isDisabled: props.isDisabled || false}],
|
|
205
208
|
[FieldErrorContext, validation]
|
|
206
209
|
]}>
|
|
207
210
|
<div
|