@react-spectrum/steplist 3.0.0-nightly-ab9fd5c68-241126 → 3.0.0-nightly-b0f156972-241128
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/StepList.main.js +3 -4
- package/dist/StepList.main.js.map +1 -1
- package/dist/StepList.mjs +3 -4
- package/dist/StepList.module.js +3 -4
- package/dist/StepList.module.js.map +1 -1
- package/dist/StepListItem.main.js +1 -1
- package/dist/StepListItem.mjs +1 -1
- package/dist/StepListItem.module.js +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/{vars.2e975bf5.css → vars.09815770.css} +2 -2
- package/dist/{vars.2e975bf5.css.map → vars.09815770.css.map} +1 -1
- package/package.json +13 -13
- package/src/StepList.tsx +2 -5
package/dist/StepList.main.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
var $b9b57d2de2195519$exports = require("./StepListContext.main.js");
|
2
2
|
var $d2e2cd0667356b5d$exports = require("./StepListItem.main.js");
|
3
|
-
require("./vars.
|
3
|
+
require("./vars.09815770.css");
|
4
4
|
var $390add5aac6e4d73$exports = require("./steplist_vars_css.main.js");
|
5
5
|
var $i9j2Q$reactariasteplist = require("@react-aria/steplist");
|
6
6
|
var $i9j2Q$reactspectrumutils = require("@react-spectrum/utils");
|
@@ -36,7 +36,7 @@ $parcel$export(module.exports, "StepList", () => $a64198f1506264d6$export$ff2e09
|
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
|
39
|
+
const $a64198f1506264d6$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, ($parcel$interopDefault($i9j2Q$react))).forwardRef(function StepList(props, ref) {
|
40
40
|
const { size: size = 'M', orientation: orientation = 'horizontal' } = props;
|
41
41
|
props = (0, $i9j2Q$reactspectrumprovider.useProviderProps)(props);
|
42
42
|
const { isDisabled: isDisabled, isEmphasized: isEmphasized } = props;
|
@@ -66,8 +66,7 @@ function $a64198f1506264d6$var$StepList(props, ref) {
|
|
66
66
|
isDisabled: isDisabled,
|
67
67
|
item: item
|
68
68
|
}))));
|
69
|
-
}
|
70
|
-
const $a64198f1506264d6$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, ($parcel$interopDefault($i9j2Q$react))).forwardRef($a64198f1506264d6$var$StepList);
|
69
|
+
});
|
71
70
|
|
72
71
|
|
73
72
|
//# sourceMappingURL=StepList.main.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA8BM,MAAM,0DAAW,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,SAA2B,KAA+B,EAAE,GAA6B;IACzI,MAAM,QAAC,OAAO,kBAAK,cAAc,cAAa,GAAG;IACjD,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,MAAM,cAAC,UAAU,gBAAE,YAAY,EAAC,GAAG;IACnC,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,IAAI,QAAQ,CAAA,GAAA,4CAAe,EAAE;IAC7B,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,oCAAU,EAAE,OAAO,OAAO;IAG5C,qBACE,0DAAC;QACE,GAAG,SAAS;QACZ,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,qBAAqB,WAAW,SAAS,EAAE;YACvE,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,iCAAiC;YACjC,iCAAiC,gBAAgB;YACjD,+BAA+B,gBAAgB;QACjD;qBACA,0DAAC,CAAA,GAAA,yCAAc,EAAE,QAAQ;QAAC,OAAO;OAC9B;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAC,qBAC1B,0DAAC,CAAA,GAAA,sCAAW;YACV,KAAK,KAAK,GAAG;YACb,YAAY;YACZ,MAAM;;AAMlB","sources":["packages/@react-spectrum/steplist/src/StepList.tsx"],"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\nimport {AriaStepListProps, useStepList} from '@react-aria/steplist';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, Orientation, StyleProps} from '@react-types/shared';\nimport React, {ReactElement} from 'react';\nimport {StepListContext} from './StepListContext';\nimport {StepListItem} from './StepListItem';\nimport styles from '@adobe/spectrum-css-temp/components/steplist/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useStepListState} from '@react-stately/steplist';\n\nexport interface SpectrumStepListProps<T> extends AriaStepListProps<T>, StyleProps {\n /**\n * Whether the step list should be displayed with a emphasized style.\n * @default false\n */\n isEmphasized?: boolean,\n /**\n * The orientation of the step list.\n * @default 'horizontal'\n */\n orientation?: Orientation,\n /**\n * The size of the step list.\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\n\nexport const StepList = React.forwardRef(function StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef<HTMLOListElement>) {\n const {size = 'M', orientation = 'horizontal'} = props;\n props = useProviderProps(props);\n const {isDisabled, isEmphasized} = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n\n let state = useStepListState(props);\n let {listProps} = useStepList(props, state, domRef);\n\n\n return (\n <ol\n {...listProps}\n {...styleProps}\n ref={domRef}\n className={classNames(styles, 'spectrum-Steplist', styleProps.className, {\n 'spectrum-Steplist--small': size === 'S',\n 'spectrum-Steplist--medium': size === 'M',\n 'spectrum-Steplist--large': size === 'L',\n 'spectrum-Steplist--xlarge': size === 'XL',\n 'spectrum-Steplist--emphasized': isEmphasized,\n 'spectrum-Steplist--horizontal': orientation === 'horizontal',\n 'spectrum-Steplist--vertical': orientation === 'vertical'\n })}>\n <StepListContext.Provider value={state}>\n {[...state.collection].map((item) => (\n <StepListItem\n key={item.key}\n isDisabled={isDisabled}\n item={item} />\n )\n )}\n </StepListContext.Provider>\n </ol>\n );\n}) as <T>(props: SpectrumStepListProps<T> & {ref?: DOMRef<HTMLOListElement>}) => ReactElement;\n"],"names":[],"version":3,"file":"StepList.main.js.map"}
|
package/dist/StepList.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {StepListContext as $739a883ac33f90d8$export$66136572efa4af6e} from "./StepListContext.mjs";
|
2
2
|
import {StepListItem as $24c3cb1adfb0acc5$export$87c2a8a94eda1754} from "./StepListItem.mjs";
|
3
|
-
import "./vars.
|
3
|
+
import "./vars.09815770.css";
|
4
4
|
import $kkmdw$steplist_vars_cssmodulejs from "./steplist_vars_css.mjs";
|
5
5
|
import {useStepList as $kkmdw$useStepList} from "@react-aria/steplist";
|
6
6
|
import {useStyleProps as $kkmdw$useStyleProps, useDOMRef as $kkmdw$useDOMRef, classNames as $kkmdw$classNames} from "@react-spectrum/utils";
|
@@ -30,7 +30,7 @@ function $parcel$interopDefault(a) {
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
|
33
|
+
const $6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, $kkmdw$react).forwardRef(function StepList(props, ref) {
|
34
34
|
const { size: size = 'M', orientation: orientation = 'horizontal' } = props;
|
35
35
|
props = (0, $kkmdw$useProviderProps)(props);
|
36
36
|
const { isDisabled: isDisabled, isEmphasized: isEmphasized } = props;
|
@@ -60,8 +60,7 @@ function $6bd0589d5d2f8b66$var$StepList(props, ref) {
|
|
60
60
|
isDisabled: isDisabled,
|
61
61
|
item: item
|
62
62
|
}))));
|
63
|
-
}
|
64
|
-
const $6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, $kkmdw$react).forwardRef($6bd0589d5d2f8b66$var$StepList);
|
63
|
+
});
|
65
64
|
|
66
65
|
|
67
66
|
export {$6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 as StepList};
|
package/dist/StepList.module.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {StepListContext as $739a883ac33f90d8$export$66136572efa4af6e} from "./StepListContext.module.js";
|
2
2
|
import {StepListItem as $24c3cb1adfb0acc5$export$87c2a8a94eda1754} from "./StepListItem.module.js";
|
3
|
-
import "./vars.
|
3
|
+
import "./vars.09815770.css";
|
4
4
|
import $kkmdw$steplist_vars_cssmodulejs from "./steplist_vars_css.module.js";
|
5
5
|
import {useStepList as $kkmdw$useStepList} from "@react-aria/steplist";
|
6
6
|
import {useStyleProps as $kkmdw$useStyleProps, useDOMRef as $kkmdw$useDOMRef, classNames as $kkmdw$classNames} from "@react-spectrum/utils";
|
@@ -30,7 +30,7 @@ function $parcel$interopDefault(a) {
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
|
33
|
+
const $6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, $kkmdw$react).forwardRef(function StepList(props, ref) {
|
34
34
|
const { size: size = 'M', orientation: orientation = 'horizontal' } = props;
|
35
35
|
props = (0, $kkmdw$useProviderProps)(props);
|
36
36
|
const { isDisabled: isDisabled, isEmphasized: isEmphasized } = props;
|
@@ -60,8 +60,7 @@ function $6bd0589d5d2f8b66$var$StepList(props, ref) {
|
|
60
60
|
isDisabled: isDisabled,
|
61
61
|
item: item
|
62
62
|
}))));
|
63
|
-
}
|
64
|
-
const $6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, $kkmdw$react).forwardRef($6bd0589d5d2f8b66$var$StepList);
|
63
|
+
});
|
65
64
|
|
66
65
|
|
67
66
|
export {$6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 as StepList};
|
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA8BM,MAAM,0DAAW,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,SAA2B,KAA+B,EAAE,GAA6B;IACzI,MAAM,QAAC,OAAO,kBAAK,cAAc,cAAa,GAAG;IACjD,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,MAAM,cAAC,UAAU,gBAAE,YAAY,EAAC,GAAG;IACnC,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,IAAI,QAAQ,CAAA,GAAA,uBAAe,EAAE;IAC7B,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,kBAAU,EAAE,OAAO,OAAO;IAG5C,qBACE,gCAAC;QACE,GAAG,SAAS;QACZ,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG,qBAAqB,WAAW,SAAS,EAAE;YACvE,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,iCAAiC;YACjC,iCAAiC,gBAAgB;YACjD,+BAA+B,gBAAgB;QACjD;qBACA,gCAAC,CAAA,GAAA,yCAAc,EAAE,QAAQ;QAAC,OAAO;OAC9B;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAC,qBAC1B,gCAAC,CAAA,GAAA,yCAAW;YACV,KAAK,KAAK,GAAG;YACb,YAAY;YACZ,MAAM;;AAMlB","sources":["packages/@react-spectrum/steplist/src/StepList.tsx"],"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\nimport {AriaStepListProps, useStepList} from '@react-aria/steplist';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, Orientation, StyleProps} from '@react-types/shared';\nimport React, {ReactElement} from 'react';\nimport {StepListContext} from './StepListContext';\nimport {StepListItem} from './StepListItem';\nimport styles from '@adobe/spectrum-css-temp/components/steplist/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useStepListState} from '@react-stately/steplist';\n\nexport interface SpectrumStepListProps<T> extends AriaStepListProps<T>, StyleProps {\n /**\n * Whether the step list should be displayed with a emphasized style.\n * @default false\n */\n isEmphasized?: boolean,\n /**\n * The orientation of the step list.\n * @default 'horizontal'\n */\n orientation?: Orientation,\n /**\n * The size of the step list.\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\n\nexport const StepList = React.forwardRef(function StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef<HTMLOListElement>) {\n const {size = 'M', orientation = 'horizontal'} = props;\n props = useProviderProps(props);\n const {isDisabled, isEmphasized} = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n\n let state = useStepListState(props);\n let {listProps} = useStepList(props, state, domRef);\n\n\n return (\n <ol\n {...listProps}\n {...styleProps}\n ref={domRef}\n className={classNames(styles, 'spectrum-Steplist', styleProps.className, {\n 'spectrum-Steplist--small': size === 'S',\n 'spectrum-Steplist--medium': size === 'M',\n 'spectrum-Steplist--large': size === 'L',\n 'spectrum-Steplist--xlarge': size === 'XL',\n 'spectrum-Steplist--emphasized': isEmphasized,\n 'spectrum-Steplist--horizontal': orientation === 'horizontal',\n 'spectrum-Steplist--vertical': orientation === 'vertical'\n })}>\n <StepListContext.Provider value={state}>\n {[...state.collection].map((item) => (\n <StepListItem\n key={item.key}\n isDisabled={isDisabled}\n item={item} />\n )\n )}\n </StepListContext.Provider>\n </ol>\n );\n}) as <T>(props: SpectrumStepListProps<T> & {ref?: DOMRef<HTMLOListElement>}) => ReactElement;\n"],"names":[],"version":3,"file":"StepList.module.js.map"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var $fed92386245d94a4$exports = require("./index.main.js");
|
2
2
|
var $b9b57d2de2195519$exports = require("./StepListContext.main.js");
|
3
|
-
require("./vars.
|
3
|
+
require("./vars.09815770.css");
|
4
4
|
var $390add5aac6e4d73$exports = require("./steplist_vars_css.main.js");
|
5
5
|
var $bJioC$spectrumiconsuiChevronRightMedium = require("@spectrum-icons/ui/ChevronRightMedium");
|
6
6
|
var $bJioC$reactspectrumutils = require("@react-spectrum/utils");
|
package/dist/StepListItem.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import $62132693388ec24a$export$2e2bcd8739ae039 from "./index.mjs";
|
2
2
|
import {StepListContext as $739a883ac33f90d8$export$66136572efa4af6e} from "./StepListContext.mjs";
|
3
|
-
import "./vars.
|
3
|
+
import "./vars.09815770.css";
|
4
4
|
import $j1UBu$steplist_vars_cssmodulejs from "./steplist_vars_css.mjs";
|
5
5
|
import $j1UBu$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
6
6
|
import {classNames as $j1UBu$classNames} from "@react-spectrum/utils";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import $62132693388ec24a$export$2e2bcd8739ae039 from "./index.module.js";
|
2
2
|
import {StepListContext as $739a883ac33f90d8$export$66136572efa4af6e} from "./StepListContext.module.js";
|
3
|
-
import "./vars.
|
3
|
+
import "./vars.09815770.css";
|
4
4
|
import $j1UBu$steplist_vars_cssmodulejs from "./steplist_vars_css.module.js";
|
5
5
|
import $j1UBu$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
6
6
|
import {classNames as $j1UBu$classNames} from "@react-spectrum/utils";
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;AGsBA,uCAAuC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAE,UAAU;IAChF;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;CAC9B;
|
1
|
+
{"mappings":";;;AGsBA,uCAAuC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAE,UAAU;IAChF;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;CAC9B;AAED,OAAO,MAAM,UAoCP,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,OAAO,gBAAgB,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;AC7D9F,OAAO,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC","sources":["packages/@react-spectrum/steplist/src/packages/@react-spectrum/steplist/src/StepListContext.ts","packages/@react-spectrum/steplist/src/packages/@react-spectrum/steplist/intl/index.js","packages/@react-spectrum/steplist/src/packages/@react-spectrum/steplist/src/StepListItem.tsx","packages/@react-spectrum/steplist/src/packages/@react-spectrum/steplist/src/StepList.tsx","packages/@react-spectrum/steplist/src/packages/@react-spectrum/steplist/src/index.ts","packages/@react-spectrum/steplist/src/index.ts"],"sourcesContent":[null,null,null,null,null,"/*\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\n/// <reference types=\"css-module-types\" />\n\nexport {StepList} from './StepList';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumStepListProps} from './StepList';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
@@ -313,8 +313,8 @@
|
|
313
313
|
}
|
314
314
|
|
315
315
|
.GXLCFq_spectrum-Steplist--vertical .GXLCFq_spectrum-Steplist-segment .GXLCFq_spectrum-Steplist-segmentLine {
|
316
|
-
height: calc(100% - var(--spectrum-steplist-segment-height-adjust));
|
317
316
|
width: 2px;
|
317
|
+
height: calc(100% - var(--spectrum-steplist-segment-height-adjust));
|
318
318
|
overflow: visible;
|
319
319
|
}
|
320
320
|
|
@@ -494,4 +494,4 @@
|
|
494
494
|
border-width: 2px;
|
495
495
|
}
|
496
496
|
}
|
497
|
-
/*# sourceMappingURL=vars.
|
497
|
+
/*# sourceMappingURL=vars.09815770.css.map */
|
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;AAOA;;;;;AAIE;;;;;AAKI;;;;AAOF;;;;AAMJ;;;;;;;AAME;;;;AAGA;;;;;;;;;;;;AAWA;;;;AAME;;;;;AAsBJ;;;;;AAIE;;;;AAGE;;;;;;;AAOF;;;;AAOF;;;;;;;;;;AAQE;;;;AAKE;;;;AAIA;;;;AAQJ;;;;;;;;;;AAYA;;;;;;;;;;AAYA;;;;;;;;;;AAaE;;;;AASA;;;;;AAKA;;;;;;;AAME;;;;;;AAOF;;;;AAKA;;;;AAIA;;;;;;;AAKE;;;;;;AAOF;;;;AAOF;;;;;AAKE;;;;;AAIA;;;;;;;;;AAUA;;;;AAGA;;;;;;;;AAME;;;;;;AAOA;;;;AAIF;;;;;;;AAOA;;;;;;;;;;AASE;;;;;;AAQE;;;;;;AAUF;;;;;AAmBJ;;;;;;;;;;;;;;;;;;;;;;;;;AAgCE;;;;AAKA;;;;;AAOE;;;;AAGA;;;;AAQI;;;;AAIA;;;;;AAME;;;;AAGA;;;;AAQF;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AAMA;;;;;AAOA;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AASJ;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AAOF;;;;;AAcF;;;;AAWN;;;;;AAKA;EACE;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCM","sources":["packages/@adobe/spectrum-css-temp/components/steplist/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.
|
1
|
+
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;AAOA;;;;;AAIE;;;;;AAKI;;;;AAOF;;;;AAMJ;;;;;;;AAME;;;;AAGA;;;;;;;;;;;;AAWA;;;;AAME;;;;;AAsBJ;;;;;AAIE;;;;AAGE;;;;;;;AAOF;;;;AAOF;;;;;;;;;;AAQE;;;;AAKE;;;;AAIA;;;;AAQJ;;;;;;;;;;AAYA;;;;;;;;;;AAYA;;;;;;;;;;AAaE;;;;AASA;;;;;AAKA;;;;;;;AAME;;;;;;AAOF;;;;AAKA;;;;AAIA;;;;;;;AAKE;;;;;;AAOF;;;;AAOF;;;;;AAKE;;;;;AAIA;;;;;;;;;AAUA;;;;AAGA;;;;;;;;AAME;;;;;;AAOA;;;;AAIF;;;;;;;AAOA;;;;;;;;;;AASE;;;;;;AAQE;;;;;;AAUF;;;;;AAmBJ;;;;;;;;;;;;;;;;;;;;;;;;;AAgCE;;;;AAKA;;;;;AAOE;;;;AAGA;;;;AAQI;;;;AAIA;;;;;AAME;;;;AAGA;;;;AAQF;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AAMA;;;;;AAOA;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AASJ;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AAOF;;;;;AAcF;;;;AAWN;;;;;AAKA;EACE;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCM","sources":["packages/@adobe/spectrum-css-temp/components/steplist/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.09815770.css.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/steplist",
|
3
|
-
"version": "3.0.0-nightly-
|
3
|
+
"version": "3.0.0-nightly-b0f156972-241128",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,24 +36,24 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/focus": "^3.0.0-nightly-
|
40
|
-
"@react-aria/i18n": "^3.0.0-nightly-
|
41
|
-
"@react-aria/interactions": "^3.0.0-nightly-
|
42
|
-
"@react-aria/steplist": "3.0.0-nightly-
|
43
|
-
"@react-aria/utils": "^3.0.0-nightly-
|
44
|
-
"@react-aria/visually-hidden": "^3.0.0-nightly-
|
45
|
-
"@react-spectrum/utils": "^3.0.0-nightly-
|
46
|
-
"@react-stately/collections": "^3.0.0-nightly-
|
47
|
-
"@react-stately/steplist": "3.0.0-nightly-
|
48
|
-
"@react-types/shared": "^3.0.0-nightly-
|
49
|
-
"@spectrum-icons/ui": "^3.0.0-nightly-
|
39
|
+
"@react-aria/focus": "^3.0.0-nightly-b0f156972-241128",
|
40
|
+
"@react-aria/i18n": "^3.0.0-nightly-b0f156972-241128",
|
41
|
+
"@react-aria/interactions": "^3.0.0-nightly-b0f156972-241128",
|
42
|
+
"@react-aria/steplist": "3.0.0-nightly-b0f156972-241128",
|
43
|
+
"@react-aria/utils": "^3.0.0-nightly-b0f156972-241128",
|
44
|
+
"@react-aria/visually-hidden": "^3.0.0-nightly-b0f156972-241128",
|
45
|
+
"@react-spectrum/utils": "^3.0.0-nightly-b0f156972-241128",
|
46
|
+
"@react-stately/collections": "^3.0.0-nightly-b0f156972-241128",
|
47
|
+
"@react-stately/steplist": "3.0.0-nightly-b0f156972-241128",
|
48
|
+
"@react-types/shared": "^3.0.0-nightly-b0f156972-241128",
|
49
|
+
"@spectrum-icons/ui": "^3.0.0-nightly-b0f156972-241128",
|
50
50
|
"@swc/helpers": "^0.5.0"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
53
|
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
|
-
"@react-spectrum/provider": "^3.0.0-nightly-
|
56
|
+
"@react-spectrum/provider": "^3.0.0-nightly-b0f156972-241128",
|
57
57
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
58
58
|
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
59
59
|
},
|
package/src/StepList.tsx
CHANGED
@@ -38,7 +38,7 @@ export interface SpectrumStepListProps<T> extends AriaStepListProps<T>, StylePro
|
|
38
38
|
size?: 'S' | 'M' | 'L' | 'XL'
|
39
39
|
}
|
40
40
|
|
41
|
-
function StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef<HTMLOListElement>) {
|
41
|
+
export const StepList = React.forwardRef(function StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef<HTMLOListElement>) {
|
42
42
|
const {size = 'M', orientation = 'horizontal'} = props;
|
43
43
|
props = useProviderProps(props);
|
44
44
|
const {isDisabled, isEmphasized} = props;
|
@@ -74,7 +74,4 @@ function StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef
|
|
74
74
|
</StepListContext.Provider>
|
75
75
|
</ol>
|
76
76
|
);
|
77
|
-
}
|
78
|
-
|
79
|
-
const _StepList = React.forwardRef(StepList) as <T>(props: SpectrumStepListProps<T> & {ref?: DOMRef<HTMLOListElement>}) => ReactElement;
|
80
|
-
export {_StepList as StepList};
|
77
|
+
}) as <T>(props: SpectrumStepListProps<T> & {ref?: DOMRef<HTMLOListElement>}) => ReactElement;
|