@react-aria/steplist 3.0.0-alpha.0 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/import.mjs CHANGED
@@ -280,7 +280,7 @@ function $8ca870e256ef9d32$export$c51c7b7354499d04(props, state, ref) {
280
280
  allowsTabNavigation: true,
281
281
  ref: ref
282
282
  });
283
- const strings = (0, $2aUC2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($2b61d31ef4d39c33$exports))));
283
+ const strings = (0, $2aUC2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($2b61d31ef4d39c33$exports))), "@react-aria/steplist");
284
284
  const stepListProps = {
285
285
  ...(0, $2aUC2$mergeProps)(listProps, (0, $2aUC2$filterDOMProps)(props, {
286
286
  labelable: true
@@ -319,12 +319,13 @@ function $dd7f9f4bee5b11b8$export$fd9dc107b7325b53(props, state, ref) {
319
319
  });
320
320
  const isSelected = selectedKey === key;
321
321
  let onKeyDown = (event)=>{
322
+ var _itemProps_onKeyDown;
322
323
  const { key: eventKey } = event;
323
324
  if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
324
325
  event.preventDefault();
325
326
  event.stopPropagation();
326
327
  }
327
- itemProps.onKeyDown(event);
328
+ (_itemProps_onKeyDown = itemProps.onKeyDown) === null || _itemProps_onKeyDown === void 0 ? void 0 : _itemProps_onKeyDown.call(itemProps, event);
328
329
  };
329
330
  return {
330
331
  stepProps: {
package/dist/main.js CHANGED
@@ -287,7 +287,7 @@ function $900a30dd63582698$export$c51c7b7354499d04(props, state, ref) {
287
287
  allowsTabNavigation: true,
288
288
  ref: ref
289
289
  });
290
- const strings = (0, $fsHsD$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($819d2f6398427998$exports))));
290
+ const strings = (0, $fsHsD$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($819d2f6398427998$exports))), "@react-aria/steplist");
291
291
  const stepListProps = {
292
292
  ...(0, $fsHsD$reactariautils.mergeProps)(listProps, (0, $fsHsD$reactariautils.filterDOMProps)(props, {
293
293
  labelable: true
@@ -326,12 +326,13 @@ function $0246bc8e841080a9$export$fd9dc107b7325b53(props, state, ref) {
326
326
  });
327
327
  const isSelected = selectedKey === key;
328
328
  let onKeyDown = (event)=>{
329
+ var _itemProps_onKeyDown;
329
330
  const { key: eventKey } = event;
330
331
  if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
331
332
  event.preventDefault();
332
333
  event.stopPropagation();
333
334
  }
334
- itemProps.onKeyDown(event);
335
+ (_itemProps_onKeyDown = itemProps.onKeyDown) === null || _itemProps_onKeyDown === void 0 ? void 0 : _itemProps_onKeyDown.call(itemProps, event);
335
336
  };
336
337
  return {
337
338
  stepProps: {
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;AEVD,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,2GAAiB,CAAC;AACnD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,kBAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,YAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,cAAc,CAAC;AAChD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,aAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,aAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,mBAAgB,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GAAA,2CAAgB,EAAE;oBAClC;aACA;aACA;QACA,kBAAkB;IACpB;IAEA,MAAM,aAAa,gBAAgB;IAEnC,IAAI,YAAY,CAAC;QACf,MAAM,EAAC,KAAK,QAAQ,EAAC,GAAG;QAExB,IAAI,aAAa,eAAe,aAAa,WAAW;YACtD,MAAM,cAAc;YACpB,MAAM,eAAe;QACvB;QAEA,UAAU,SAAS,CAAC;IACtB;IAEA,OAAO;QACL,WAAW;YACT,GAAG,SAAS;uBACZ;YACA,MAAM;YACN,gBAAgB,aAAa,SAAS;YACtC,iBAAiB,aAAa,OAAO;YACrC,UAAU,CAAC,aAAa,IAAI;QAC9B;IACF;AACF;","sources":["packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/*.js","packages/@react-aria/steplist/intl/ar-AE.json","packages/@react-aria/steplist/intl/bg-BG.json","packages/@react-aria/steplist/intl/cs-CZ.json","packages/@react-aria/steplist/intl/da-DK.json","packages/@react-aria/steplist/intl/de-DE.json","packages/@react-aria/steplist/intl/el-GR.json","packages/@react-aria/steplist/intl/en-US.json","packages/@react-aria/steplist/intl/es-ES.json","packages/@react-aria/steplist/intl/et-EE.json","packages/@react-aria/steplist/intl/fi-FI.json","packages/@react-aria/steplist/intl/fr-FR.json","packages/@react-aria/steplist/intl/he-IL.json","packages/@react-aria/steplist/intl/hr-HR.json","packages/@react-aria/steplist/intl/hu-HU.json","packages/@react-aria/steplist/intl/it-IT.json","packages/@react-aria/steplist/intl/ja-JP.json","packages/@react-aria/steplist/intl/ko-KR.json","packages/@react-aria/steplist/intl/lt-LT.json","packages/@react-aria/steplist/intl/lv-LV.json","packages/@react-aria/steplist/intl/nb-NO.json","packages/@react-aria/steplist/intl/nl-NL.json","packages/@react-aria/steplist/intl/pl-PL.json","packages/@react-aria/steplist/intl/pt-BR.json","packages/@react-aria/steplist/intl/pt-PT.json","packages/@react-aria/steplist/intl/ro-RO.json","packages/@react-aria/steplist/intl/ru-RU.json","packages/@react-aria/steplist/intl/sk-SK.json","packages/@react-aria/steplist/intl/sl-SI.json","packages/@react-aria/steplist/intl/sr-SP.json","packages/@react-aria/steplist/intl/sv-SE.json","packages/@react-aria/steplist/intl/tr-TR.json","packages/@react-aria/steplist/intl/uk-UA.json","packages/@react-aria/steplist/intl/zh-CN.json","packages/@react-aria/steplist/intl/zh-TW.json","packages/@react-aria/steplist/src/useStepListItem.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nexport {useStepList} from './useStepList';\nexport {useStepListItem} from './useStepListItem';\n\nexport type {AriaStepListProps, StepListAria} from './useStepList';\nexport type {AriaStepListItemProps, StepListItemAria} from './useStepListItem';\n","/*\n * Copyright 2023 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} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {StepListProps, StepListState} from '@react-stately/steplist';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSelectableList} from '@react-aria/selection';\n\nexport interface AriaStepListProps<T> extends StepListProps<T>, AriaLabelingProps, DOMProps {}\n\nexport interface StepListAria {\n listProps: HTMLAttributes<HTMLElement>\n}\n\nexport function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement>): StepListAria {\n let {\n 'aria-label': ariaLabel\n } = props;\n let {listProps} = useSelectableList({\n ...props,\n ...state,\n allowsTabNavigation: true,\n ref\n });\n\n const strings = useLocalizedStringFormatter(intlMessages);\n const stepListProps: HTMLAttributes<HTMLElement> = {\n ...mergeProps(listProps, filterDOMProps(props, {labelable: true})),\n 'aria-label': ariaLabel || strings.format('steplist')\n };\n\n return {\n listProps: {\n ...stepListProps,\n tabIndex: undefined\n }\n };\n}\n\n\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"steplist\": \"قائمة الخطوات\"\n}\n","{\n \"steplist\": \"Списък със стъпки\"\n}\n","{\n \"steplist\": \"Seznam kroků\"\n}\n","{\n \"steplist\": \"Trinliste\"\n}\n","{\n \"steplist\": \"Schrittliste\"\n}\n","{\n \"steplist\": \"Λίστα βημάτων\"\n}\n","{\n \"steplist\": \"Step List\"\n}\n","{\n \"steplist\": \"Lista de pasos\"\n}\n","{\n \"steplist\": \"Sammude loend\"\n}\n","{\n \"steplist\": \"Vaiheluettelo\"\n}\n","{\n \"steplist\": \"Liste des étapes\"\n}\n","{\n \"steplist\": \"רשימת צעדים\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Lépések listája\"\n}\n","{\n \"steplist\": \"Elenco dei passaggi\"\n}\n","{\n \"steplist\": \"手順リスト\"\n}\n","{\n \"steplist\": \"단계 목록\"\n}\n","{\n \"steplist\": \"Žingsnių sąrašas\"\n}\n","{\n \"steplist\": \"Darbību saraksts\"\n}\n","{\n \"steplist\": \"Trinnliste\"\n}\n","{\n \"steplist\": \"Stappenlijst\"\n}\n","{\n \"steplist\": \"Lista kroków\"\n}\n","{\n \"steplist\": \"Lista de etapas\"\n}\n","{\n \"steplist\": \"Lista de passos\"\n}\n","{\n \"steplist\": \"Lista de pași\"\n}\n","{\n \"steplist\": \"Список шагов\"\n}\n","{\n \"steplist\": \"Zoznam krokov\"\n}\n","{\n \"steplist\": \"Seznam korakov\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Steglista\"\n}\n","{\n \"steplist\": \"Adım Listesi\"\n}\n","{\n \"steplist\": \"Список кроків\"\n}\n","{\n \"steplist\": \"步骤列表\"\n}\n","{\n \"steplist\": \"步驟清單\"\n}\n","/*\n * Copyright 2023 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 {HTMLAttributes, RefObject} from 'react';\nimport {Key} from '@react-types/shared';\nimport {StepListState} from '@react-stately/steplist';\nimport {useSelectableItem} from '@react-aria/selection';\n\nexport interface AriaStepListItemProps {\n key: Key\n}\n\nexport interface StepListItemAria {\n /** Props for the step link element. */\n stepProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden element indicating the step state. */\n stepStateProps?: HTMLAttributes<HTMLElement>,\n /** Text content for the visually hidden message indicating the status of the step state. */\n stepStateText?: String\n}\n\nexport function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria {\n const {key} = props;\n let {selectionManager: manager, selectedKey} = state;\n\n let isDisabled = !state.isSelectable(key);\n\n let {itemProps} = useSelectableItem({\n isDisabled,\n key,\n ref,\n selectionManager: manager\n });\n\n const isSelected = selectedKey === key;\n\n let onKeyDown = (event) => {\n const {key: eventKey} = event;\n\n if (eventKey === 'ArrowDown' || eventKey === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n itemProps.onKeyDown(event);\n };\n\n return {\n stepProps: {\n ...itemProps,\n onKeyDown,\n role: 'link',\n 'aria-current': isSelected ? 'step' : undefined,\n 'aria-disabled': isDisabled ? true : undefined,\n tabIndex: !isDisabled ? 0 : undefined\n }\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;AEVD,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,2GAAiB,CAAC;AACnD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,kBAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,YAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,cAAc,CAAC;AAChD;;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C,GAAG,EAAC,GAAG;IACd,IAAI,EAAC,kBAAkB,OAAO,eAAE,WAAW,EAAC,GAAG;IAE/C,IAAI,aAAa,CAAC,MAAM,YAAY,CAAC;IAErC,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,2CAAgB,EAAE;oBAClC;aACA;aACA;QACA,kBAAkB;IACpB;IAEA,MAAM,aAAa,gBAAgB;IAEnC,IAAI,YAAY,CAAC;YAQf;QAPA,MAAM,EAAC,KAAK,QAAQ,EAAC,GAAG;QAExB,IAAI,aAAa,eAAe,aAAa,WAAW;YACtD,MAAM,cAAc;YACpB,MAAM,eAAe;QACvB;SAEA,uBAAA,UAAU,SAAS,cAAnB,2CAAA,0BAAA,WAAsB;IACxB;IAEA,OAAO;QACL,WAAW;YACT,GAAG,SAAS;uBACZ;YACA,MAAM;YACN,gBAAgB,aAAa,SAAS;YACtC,iBAAiB,aAAa,OAAO;YACrC,UAAU,CAAC,aAAa,IAAI;QAC9B;IACF;AACF;","sources":["packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/*.js","packages/@react-aria/steplist/intl/ar-AE.json","packages/@react-aria/steplist/intl/bg-BG.json","packages/@react-aria/steplist/intl/cs-CZ.json","packages/@react-aria/steplist/intl/da-DK.json","packages/@react-aria/steplist/intl/de-DE.json","packages/@react-aria/steplist/intl/el-GR.json","packages/@react-aria/steplist/intl/en-US.json","packages/@react-aria/steplist/intl/es-ES.json","packages/@react-aria/steplist/intl/et-EE.json","packages/@react-aria/steplist/intl/fi-FI.json","packages/@react-aria/steplist/intl/fr-FR.json","packages/@react-aria/steplist/intl/he-IL.json","packages/@react-aria/steplist/intl/hr-HR.json","packages/@react-aria/steplist/intl/hu-HU.json","packages/@react-aria/steplist/intl/it-IT.json","packages/@react-aria/steplist/intl/ja-JP.json","packages/@react-aria/steplist/intl/ko-KR.json","packages/@react-aria/steplist/intl/lt-LT.json","packages/@react-aria/steplist/intl/lv-LV.json","packages/@react-aria/steplist/intl/nb-NO.json","packages/@react-aria/steplist/intl/nl-NL.json","packages/@react-aria/steplist/intl/pl-PL.json","packages/@react-aria/steplist/intl/pt-BR.json","packages/@react-aria/steplist/intl/pt-PT.json","packages/@react-aria/steplist/intl/ro-RO.json","packages/@react-aria/steplist/intl/ru-RU.json","packages/@react-aria/steplist/intl/sk-SK.json","packages/@react-aria/steplist/intl/sl-SI.json","packages/@react-aria/steplist/intl/sr-SP.json","packages/@react-aria/steplist/intl/sv-SE.json","packages/@react-aria/steplist/intl/tr-TR.json","packages/@react-aria/steplist/intl/uk-UA.json","packages/@react-aria/steplist/intl/zh-CN.json","packages/@react-aria/steplist/intl/zh-TW.json","packages/@react-aria/steplist/src/useStepListItem.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nexport {useStepList} from './useStepList';\nexport {useStepListItem} from './useStepListItem';\n\nexport type {AriaStepListProps, StepListAria} from './useStepList';\nexport type {AriaStepListItemProps, StepListItemAria} from './useStepListItem';\n","/*\n * Copyright 2023 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} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {StepListProps, StepListState} from '@react-stately/steplist';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSelectableList} from '@react-aria/selection';\n\nexport interface AriaStepListProps<T> extends StepListProps<T>, AriaLabelingProps, DOMProps {}\n\nexport interface StepListAria {\n listProps: HTMLAttributes<HTMLElement>\n}\n\nexport function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement>): StepListAria {\n let {\n 'aria-label': ariaLabel\n } = props;\n let {listProps} = useSelectableList({\n ...props,\n ...state,\n allowsTabNavigation: true,\n ref\n });\n\n const strings = useLocalizedStringFormatter(intlMessages, '@react-aria/steplist');\n const stepListProps: HTMLAttributes<HTMLElement> = {\n ...mergeProps(listProps, filterDOMProps(props, {labelable: true})),\n 'aria-label': ariaLabel || strings.format('steplist')\n };\n\n return {\n listProps: {\n ...stepListProps,\n tabIndex: undefined\n }\n };\n}\n\n\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"steplist\": \"قائمة الخطوات\"\n}\n","{\n \"steplist\": \"Списък със стъпки\"\n}\n","{\n \"steplist\": \"Seznam kroků\"\n}\n","{\n \"steplist\": \"Trinliste\"\n}\n","{\n \"steplist\": \"Schrittliste\"\n}\n","{\n \"steplist\": \"Λίστα βημάτων\"\n}\n","{\n \"steplist\": \"Step List\"\n}\n","{\n \"steplist\": \"Lista de pasos\"\n}\n","{\n \"steplist\": \"Sammude loend\"\n}\n","{\n \"steplist\": \"Vaiheluettelo\"\n}\n","{\n \"steplist\": \"Liste des étapes\"\n}\n","{\n \"steplist\": \"רשימת צעדים\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Lépések listája\"\n}\n","{\n \"steplist\": \"Elenco dei passaggi\"\n}\n","{\n \"steplist\": \"手順リスト\"\n}\n","{\n \"steplist\": \"단계 목록\"\n}\n","{\n \"steplist\": \"Žingsnių sąrašas\"\n}\n","{\n \"steplist\": \"Darbību saraksts\"\n}\n","{\n \"steplist\": \"Trinnliste\"\n}\n","{\n \"steplist\": \"Stappenlijst\"\n}\n","{\n \"steplist\": \"Lista kroków\"\n}\n","{\n \"steplist\": \"Lista de etapas\"\n}\n","{\n \"steplist\": \"Lista de passos\"\n}\n","{\n \"steplist\": \"Lista de pași\"\n}\n","{\n \"steplist\": \"Список шагов\"\n}\n","{\n \"steplist\": \"Zoznam krokov\"\n}\n","{\n \"steplist\": \"Seznam korakov\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Steglista\"\n}\n","{\n \"steplist\": \"Adım Listesi\"\n}\n","{\n \"steplist\": \"Список кроків\"\n}\n","{\n \"steplist\": \"步骤列表\"\n}\n","{\n \"steplist\": \"步驟清單\"\n}\n","/*\n * Copyright 2023 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 {HTMLAttributes, RefObject} from 'react';\nimport {Key} from '@react-types/shared';\nimport {StepListState} from '@react-stately/steplist';\nimport {useSelectableItem} from '@react-aria/selection';\n\nexport interface AriaStepListItemProps {\n key: Key\n}\n\nexport interface StepListItemAria {\n /** Props for the step link element. */\n stepProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden element indicating the step state. */\n stepStateProps?: HTMLAttributes<HTMLElement>,\n /** Text content for the visually hidden message indicating the status of the step state. */\n stepStateText?: String\n}\n\nexport function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria {\n const {key} = props;\n let {selectionManager: manager, selectedKey} = state;\n\n let isDisabled = !state.isSelectable(key);\n\n let {itemProps} = useSelectableItem({\n isDisabled,\n key,\n ref,\n selectionManager: manager\n });\n\n const isSelected = selectedKey === key;\n\n let onKeyDown = (event) => {\n const {key: eventKey} = event;\n\n if (eventKey === 'ArrowDown' || eventKey === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n itemProps.onKeyDown?.(event);\n };\n\n return {\n stepProps: {\n ...itemProps,\n onKeyDown,\n role: 'link',\n 'aria-current': isSelected ? 'step' : undefined,\n 'aria-disabled': isDisabled ? true : undefined,\n tabIndex: !isDisabled ? 0 : undefined\n }\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -280,7 +280,7 @@ function $8ca870e256ef9d32$export$c51c7b7354499d04(props, state, ref) {
280
280
  allowsTabNavigation: true,
281
281
  ref: ref
282
282
  });
283
- const strings = (0, $2aUC2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($2b61d31ef4d39c33$exports))));
283
+ const strings = (0, $2aUC2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($2b61d31ef4d39c33$exports))), "@react-aria/steplist");
284
284
  const stepListProps = {
285
285
  ...(0, $2aUC2$mergeProps)(listProps, (0, $2aUC2$filterDOMProps)(props, {
286
286
  labelable: true
@@ -319,12 +319,13 @@ function $dd7f9f4bee5b11b8$export$fd9dc107b7325b53(props, state, ref) {
319
319
  });
320
320
  const isSelected = selectedKey === key;
321
321
  let onKeyDown = (event)=>{
322
+ var _itemProps_onKeyDown;
322
323
  const { key: eventKey } = event;
323
324
  if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
324
325
  event.preventDefault();
325
326
  event.stopPropagation();
326
327
  }
327
- itemProps.onKeyDown(event);
328
+ (_itemProps_onKeyDown = itemProps.onKeyDown) === null || _itemProps_onKeyDown === void 0 ? void 0 : _itemProps_onKeyDown.call(itemProps, event);
328
329
  };
329
330
  return {
330
331
  stepProps: {
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;AEVD,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,2GAAiB,CAAC;AACnD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,kBAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,YAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,cAAc,CAAC;AAChD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,aAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,aAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,mBAAgB,CAAC;AAClD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,u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;IACpB;IAEA,MAAM,aAAa,gBAAgB;IAEnC,IAAI,YAAY,CAAC;QACf,MAAM,EAAC,KAAK,QAAQ,EAAC,GAAG;QAExB,IAAI,aAAa,eAAe,aAAa,WAAW;YACtD,MAAM,cAAc;YACpB,MAAM,eAAe;QACvB;QAEA,UAAU,SAAS,CAAC;IACtB;IAEA,OAAO;QACL,WAAW;YACT,GAAG,SAAS;uBACZ;YACA,MAAM;YACN,gBAAgB,aAAa,SAAS;YACtC,iBAAiB,aAAa,OAAO;YACrC,UAAU,CAAC,aAAa,IAAI;QAC9B;IACF;AACF;","sources":["packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/*.js","packages/@react-aria/steplist/intl/ar-AE.json","packages/@react-aria/steplist/intl/bg-BG.json","packages/@react-aria/steplist/intl/cs-CZ.json","packages/@react-aria/steplist/intl/da-DK.json","packages/@react-aria/steplist/intl/de-DE.json","packages/@react-aria/steplist/intl/el-GR.json","packages/@react-aria/steplist/intl/en-US.json","packages/@react-aria/steplist/intl/es-ES.json","packages/@react-aria/steplist/intl/et-EE.json","packages/@react-aria/steplist/intl/fi-FI.json","packages/@react-aria/steplist/intl/fr-FR.json","packages/@react-aria/steplist/intl/he-IL.json","packages/@react-aria/steplist/intl/hr-HR.json","packages/@react-aria/steplist/intl/hu-HU.json","packages/@react-aria/steplist/intl/it-IT.json","packages/@react-aria/steplist/intl/ja-JP.json","packages/@react-aria/steplist/intl/ko-KR.json","packages/@react-aria/steplist/intl/lt-LT.json","packages/@react-aria/steplist/intl/lv-LV.json","packages/@react-aria/steplist/intl/nb-NO.json","packages/@react-aria/steplist/intl/nl-NL.json","packages/@react-aria/steplist/intl/pl-PL.json","packages/@react-aria/steplist/intl/pt-BR.json","packages/@react-aria/steplist/intl/pt-PT.json","packages/@react-aria/steplist/intl/ro-RO.json","packages/@react-aria/steplist/intl/ru-RU.json","packages/@react-aria/steplist/intl/sk-SK.json","packages/@react-aria/steplist/intl/sl-SI.json","packages/@react-aria/steplist/intl/sr-SP.json","packages/@react-aria/steplist/intl/sv-SE.json","packages/@react-aria/steplist/intl/tr-TR.json","packages/@react-aria/steplist/intl/uk-UA.json","packages/@react-aria/steplist/intl/zh-CN.json","packages/@react-aria/steplist/intl/zh-TW.json","packages/@react-aria/steplist/src/useStepListItem.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nexport {useStepList} from './useStepList';\nexport {useStepListItem} from './useStepListItem';\n\nexport type {AriaStepListProps, StepListAria} from './useStepList';\nexport type {AriaStepListItemProps, StepListItemAria} from './useStepListItem';\n","/*\n * Copyright 2023 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} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {StepListProps, StepListState} from '@react-stately/steplist';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSelectableList} from '@react-aria/selection';\n\nexport interface AriaStepListProps<T> extends StepListProps<T>, AriaLabelingProps, DOMProps {}\n\nexport interface StepListAria {\n listProps: HTMLAttributes<HTMLElement>\n}\n\nexport function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement>): StepListAria {\n let {\n 'aria-label': ariaLabel\n } = props;\n let {listProps} = useSelectableList({\n ...props,\n ...state,\n allowsTabNavigation: true,\n ref\n });\n\n const strings = useLocalizedStringFormatter(intlMessages);\n const stepListProps: HTMLAttributes<HTMLElement> = {\n ...mergeProps(listProps, filterDOMProps(props, {labelable: true})),\n 'aria-label': ariaLabel || strings.format('steplist')\n };\n\n return {\n listProps: {\n ...stepListProps,\n tabIndex: undefined\n }\n };\n}\n\n\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"steplist\": \"قائمة الخطوات\"\n}\n","{\n \"steplist\": \"Списък със стъпки\"\n}\n","{\n \"steplist\": \"Seznam kroků\"\n}\n","{\n \"steplist\": \"Trinliste\"\n}\n","{\n \"steplist\": \"Schrittliste\"\n}\n","{\n \"steplist\": \"Λίστα βημάτων\"\n}\n","{\n \"steplist\": \"Step List\"\n}\n","{\n \"steplist\": \"Lista de pasos\"\n}\n","{\n \"steplist\": \"Sammude loend\"\n}\n","{\n \"steplist\": \"Vaiheluettelo\"\n}\n","{\n \"steplist\": \"Liste des étapes\"\n}\n","{\n \"steplist\": \"רשימת צעדים\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Lépések listája\"\n}\n","{\n \"steplist\": \"Elenco dei passaggi\"\n}\n","{\n \"steplist\": \"手順リスト\"\n}\n","{\n \"steplist\": \"단계 목록\"\n}\n","{\n \"steplist\": \"Žingsnių sąrašas\"\n}\n","{\n \"steplist\": \"Darbību saraksts\"\n}\n","{\n \"steplist\": \"Trinnliste\"\n}\n","{\n \"steplist\": \"Stappenlijst\"\n}\n","{\n \"steplist\": \"Lista kroków\"\n}\n","{\n \"steplist\": \"Lista de etapas\"\n}\n","{\n \"steplist\": \"Lista de passos\"\n}\n","{\n \"steplist\": \"Lista de pași\"\n}\n","{\n \"steplist\": \"Список шагов\"\n}\n","{\n \"steplist\": \"Zoznam krokov\"\n}\n","{\n \"steplist\": \"Seznam korakov\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Steglista\"\n}\n","{\n \"steplist\": \"Adım Listesi\"\n}\n","{\n \"steplist\": \"Список кроків\"\n}\n","{\n \"steplist\": \"步骤列表\"\n}\n","{\n \"steplist\": \"步驟清單\"\n}\n","/*\n * Copyright 2023 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 {HTMLAttributes, RefObject} from 'react';\nimport {Key} from '@react-types/shared';\nimport {StepListState} from '@react-stately/steplist';\nimport {useSelectableItem} from '@react-aria/selection';\n\nexport interface AriaStepListItemProps {\n key: Key\n}\n\nexport interface StepListItemAria {\n /** Props for the step link element. */\n stepProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden element indicating the step state. */\n stepStateProps?: HTMLAttributes<HTMLElement>,\n /** Text content for the visually hidden message indicating the status of the step state. */\n stepStateText?: String\n}\n\nexport function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria {\n const {key} = props;\n let {selectionManager: manager, selectedKey} = state;\n\n let isDisabled = !state.isSelectable(key);\n\n let {itemProps} = useSelectableItem({\n isDisabled,\n key,\n ref,\n selectionManager: manager\n });\n\n const isSelected = selectedKey === key;\n\n let onKeyDown = (event) => {\n const {key: eventKey} = event;\n\n if (eventKey === 'ArrowDown' || eventKey === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n itemProps.onKeyDown(event);\n };\n\n return {\n stepProps: {\n ...itemProps,\n onKeyDown,\n role: 'link',\n 'aria-current': isSelected ? 'step' : undefined,\n 'aria-disabled': isDisabled ? true : undefined,\n tabIndex: !isDisabled ? 0 : undefined\n }\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;AEVD,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,2GAAiB,CAAC;AACnD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,kBAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,YAAY,CAAC;AAC9C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,qFAAa,CAAC;AAC/C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,SAAS,CAAC;AAC3C;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,cAAc,CAAC;AAChD;;;;ACDA,4BAAiB;IAAG,YAAY,CAAC,aAAa,CAAC;AAC/C;;;;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WAAW,EAAC,GAAG;IAE/C,IAAI,aAAa,CAAC,MAAM,YAAY,CAAC;IAErC,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,wBAAgB,EAAE;oBAClC;aACA;aACA;QACA,kBAAkB;IACpB;IAEA,MAAM,aAAa,gBAAgB;IAEnC,IAAI,YAAY,CAAC;YAQf;QAPA,MAAM,EAAC,KAAK,QAAQ,EAAC,GAAG;QAExB,IAAI,aAAa,eAAe,aAAa,WAAW;YACtD,MAAM,cAAc;YACpB,MAAM,eAAe;QACvB;SAEA,uBAAA,UAAU,SAAS,cAAnB,2CAAA,0BAAA,WAAsB;IACxB;IAEA,OAAO;QACL,WAAW;YACT,GAAG,SAAS;uBACZ;YACA,MAAM;YACN,gBAAgB,aAAa,SAAS;YACtC,iBAAiB,aAAa,OAAO;YACrC,UAAU,CAAC,aAAa,IAAI;QAC9B;IACF;AACF;","sources":["packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/*.js","packages/@react-aria/steplist/intl/ar-AE.json","packages/@react-aria/steplist/intl/bg-BG.json","packages/@react-aria/steplist/intl/cs-CZ.json","packages/@react-aria/steplist/intl/da-DK.json","packages/@react-aria/steplist/intl/de-DE.json","packages/@react-aria/steplist/intl/el-GR.json","packages/@react-aria/steplist/intl/en-US.json","packages/@react-aria/steplist/intl/es-ES.json","packages/@react-aria/steplist/intl/et-EE.json","packages/@react-aria/steplist/intl/fi-FI.json","packages/@react-aria/steplist/intl/fr-FR.json","packages/@react-aria/steplist/intl/he-IL.json","packages/@react-aria/steplist/intl/hr-HR.json","packages/@react-aria/steplist/intl/hu-HU.json","packages/@react-aria/steplist/intl/it-IT.json","packages/@react-aria/steplist/intl/ja-JP.json","packages/@react-aria/steplist/intl/ko-KR.json","packages/@react-aria/steplist/intl/lt-LT.json","packages/@react-aria/steplist/intl/lv-LV.json","packages/@react-aria/steplist/intl/nb-NO.json","packages/@react-aria/steplist/intl/nl-NL.json","packages/@react-aria/steplist/intl/pl-PL.json","packages/@react-aria/steplist/intl/pt-BR.json","packages/@react-aria/steplist/intl/pt-PT.json","packages/@react-aria/steplist/intl/ro-RO.json","packages/@react-aria/steplist/intl/ru-RU.json","packages/@react-aria/steplist/intl/sk-SK.json","packages/@react-aria/steplist/intl/sl-SI.json","packages/@react-aria/steplist/intl/sr-SP.json","packages/@react-aria/steplist/intl/sv-SE.json","packages/@react-aria/steplist/intl/tr-TR.json","packages/@react-aria/steplist/intl/uk-UA.json","packages/@react-aria/steplist/intl/zh-CN.json","packages/@react-aria/steplist/intl/zh-TW.json","packages/@react-aria/steplist/src/useStepListItem.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nexport {useStepList} from './useStepList';\nexport {useStepListItem} from './useStepListItem';\n\nexport type {AriaStepListProps, StepListAria} from './useStepList';\nexport type {AriaStepListItemProps, StepListItemAria} from './useStepListItem';\n","/*\n * Copyright 2023 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} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {StepListProps, StepListState} from '@react-stately/steplist';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSelectableList} from '@react-aria/selection';\n\nexport interface AriaStepListProps<T> extends StepListProps<T>, AriaLabelingProps, DOMProps {}\n\nexport interface StepListAria {\n listProps: HTMLAttributes<HTMLElement>\n}\n\nexport function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement>): StepListAria {\n let {\n 'aria-label': ariaLabel\n } = props;\n let {listProps} = useSelectableList({\n ...props,\n ...state,\n allowsTabNavigation: true,\n ref\n });\n\n const strings = useLocalizedStringFormatter(intlMessages, '@react-aria/steplist');\n const stepListProps: HTMLAttributes<HTMLElement> = {\n ...mergeProps(listProps, filterDOMProps(props, {labelable: true})),\n 'aria-label': ariaLabel || strings.format('steplist')\n };\n\n return {\n listProps: {\n ...stepListProps,\n tabIndex: undefined\n }\n };\n}\n\n\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"steplist\": \"قائمة الخطوات\"\n}\n","{\n \"steplist\": \"Списък със стъпки\"\n}\n","{\n \"steplist\": \"Seznam kroků\"\n}\n","{\n \"steplist\": \"Trinliste\"\n}\n","{\n \"steplist\": \"Schrittliste\"\n}\n","{\n \"steplist\": \"Λίστα βημάτων\"\n}\n","{\n \"steplist\": \"Step List\"\n}\n","{\n \"steplist\": \"Lista de pasos\"\n}\n","{\n \"steplist\": \"Sammude loend\"\n}\n","{\n \"steplist\": \"Vaiheluettelo\"\n}\n","{\n \"steplist\": \"Liste des étapes\"\n}\n","{\n \"steplist\": \"רשימת צעדים\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Lépések listája\"\n}\n","{\n \"steplist\": \"Elenco dei passaggi\"\n}\n","{\n \"steplist\": \"手順リスト\"\n}\n","{\n \"steplist\": \"단계 목록\"\n}\n","{\n \"steplist\": \"Žingsnių sąrašas\"\n}\n","{\n \"steplist\": \"Darbību saraksts\"\n}\n","{\n \"steplist\": \"Trinnliste\"\n}\n","{\n \"steplist\": \"Stappenlijst\"\n}\n","{\n \"steplist\": \"Lista kroków\"\n}\n","{\n \"steplist\": \"Lista de etapas\"\n}\n","{\n \"steplist\": \"Lista de passos\"\n}\n","{\n \"steplist\": \"Lista de pași\"\n}\n","{\n \"steplist\": \"Список шагов\"\n}\n","{\n \"steplist\": \"Zoznam krokov\"\n}\n","{\n \"steplist\": \"Seznam korakov\"\n}\n","{\n \"steplist\": \"Lista koraka\"\n}\n","{\n \"steplist\": \"Steglista\"\n}\n","{\n \"steplist\": \"Adım Listesi\"\n}\n","{\n \"steplist\": \"Список кроків\"\n}\n","{\n \"steplist\": \"步骤列表\"\n}\n","{\n \"steplist\": \"步驟清單\"\n}\n","/*\n * Copyright 2023 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 {HTMLAttributes, RefObject} from 'react';\nimport {Key} from '@react-types/shared';\nimport {StepListState} from '@react-stately/steplist';\nimport {useSelectableItem} from '@react-aria/selection';\n\nexport interface AriaStepListItemProps {\n key: Key\n}\n\nexport interface StepListItemAria {\n /** Props for the step link element. */\n stepProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden element indicating the step state. */\n stepStateProps?: HTMLAttributes<HTMLElement>,\n /** Text content for the visually hidden message indicating the status of the step state. */\n stepStateText?: String\n}\n\nexport function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria {\n const {key} = props;\n let {selectionManager: manager, selectedKey} = state;\n\n let isDisabled = !state.isSelectable(key);\n\n let {itemProps} = useSelectableItem({\n isDisabled,\n key,\n ref,\n selectionManager: manager\n });\n\n const isSelected = selectedKey === key;\n\n let onKeyDown = (event) => {\n const {key: eventKey} = event;\n\n if (eventKey === 'ArrowDown' || eventKey === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n itemProps.onKeyDown?.(event);\n };\n\n return {\n stepProps: {\n ...itemProps,\n onKeyDown,\n role: 'link',\n 'aria-current': isSelected ? 'step' : undefined,\n 'aria-disabled': isDisabled ? true : undefined,\n tabIndex: !isDisabled ? 0 : undefined\n }\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/steplist",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -22,10 +22,10 @@
22
22
  "url": "https://github.com/adobe/react-spectrum"
23
23
  },
24
24
  "dependencies": {
25
- "@react-aria/i18n": "^3.9.0",
26
- "@react-aria/selection": "^3.17.2",
27
- "@react-aria/utils": "^3.22.0",
28
- "@react-stately/steplist": "3.0.0-alpha.0",
25
+ "@react-aria/i18n": "^3.10.1",
26
+ "@react-aria/selection": "^3.17.4",
27
+ "@react-aria/utils": "^3.23.1",
28
+ "@react-stately/steplist": "3.0.0-alpha.2",
29
29
  "@react-types/shared": "^3.22.0",
30
30
  "@swc/helpers": "^0.5.0"
31
31
  },
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "9ce2f674eab2cc8912800d3162dcf00a1ce94274"
39
+ "gitHead": "f040ff62678e6a31375b96c05396df0bae660350"
40
40
  }
@@ -36,7 +36,7 @@ export function useStepList<T>(props: AriaStepListProps<T>, state: StepListState
36
36
  ref
37
37
  });
38
38
 
39
- const strings = useLocalizedStringFormatter(intlMessages);
39
+ const strings = useLocalizedStringFormatter(intlMessages, '@react-aria/steplist');
40
40
  const stepListProps: HTMLAttributes<HTMLElement> = {
41
41
  ...mergeProps(listProps, filterDOMProps(props, {labelable: true})),
42
42
  'aria-label': ariaLabel || strings.format('steplist')
@@ -51,7 +51,7 @@ export function useStepListItem<T>(props: AriaStepListItemProps, state: StepList
51
51
  event.stopPropagation();
52
52
  }
53
53
 
54
- itemProps.onKeyDown(event);
54
+ itemProps.onKeyDown?.(event);
55
55
  };
56
56
 
57
57
  return {