@react-spectrum/actionbar 3.5.2-nightly.5042 → 3.6.1

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.
@@ -1,5 +1,5 @@
1
1
  var $b1ba52ca91e22687$exports = require("./intlStrings.main.js");
2
- require("./actionbar.6c2bbcbf.css");
2
+ require("./actionbar.27a01ec3.css");
3
3
  var $ff24c7bbe0c168db$exports = require("./actionbar_css.main.js");
4
4
  var $643e7$reactspectrumbutton = require("@react-spectrum/button");
5
5
  var $643e7$reactspectrumactiongroup = require("@react-spectrum/actiongroup");
@@ -65,7 +65,7 @@ function $7b5467653feb1153$var$ActionBar(props, ref) {
65
65
  }
66
66
  function $7b5467653feb1153$var$ActionBarInner(props, ref) {
67
67
  props = (0, $643e7$reactspectrumprovider.useProviderProps)(props);
68
- let { children: children, isEmphasized: isEmphasized, onAction: onAction, onClearSelection: onClearSelection, selectedItemCount: selectedItemCount, isOpen: isOpen, buttonLabelBehavior: buttonLabelBehavior = 'collapse', items: items } = props;
68
+ let { children: children, isEmphasized: isEmphasized, onAction: onAction, onClearSelection: onClearSelection, selectedItemCount: selectedItemCount, isOpen: isOpen, buttonLabelBehavior: buttonLabelBehavior = 'collapse', items: items, disabledKeys: disabledKeys } = props;
69
69
  let { styleProps: styleProps } = (0, $643e7$reactspectrumutils.useStyleProps)(props);
70
70
  let stringFormatter = (0, $643e7$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($b1ba52ca91e22687$exports))), '@react-spectrum/actionbar');
71
71
  // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.
@@ -110,6 +110,7 @@ function $7b5467653feb1153$var$ActionBarInner(props, ref) {
110
110
  overflowMode: "collapse",
111
111
  buttonLabelBehavior: buttonLabelBehavior,
112
112
  onAction: onAction,
113
+ disabledKeys: disabledKeys,
113
114
  UNSAFE_className: (0, $643e7$reactspectrumutils.classNames)((0, ($parcel$interopDefault($ff24c7bbe0c168db$exports))), 'react-spectrum-ActionBar-actionGroup')
114
115
  }, children), /*#__PURE__*/ (0, ($parcel$interopDefault($643e7$react))).createElement((0, $643e7$reactspectrumbutton.ActionButton), {
115
116
  gridArea: (0, ($parcel$interopDefault($ff24c7bbe0c168db$exports))).clear,
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;AAqBD,SAAS,gCAA4B,KAAgC,EAAE,GAA2B;IAChG,IAAI,SAAS,MAAM,iBAAiB,KAAK;IACzC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC,CAAA,GAAA,2CAAa;QACZ,SAAS;QACT,IAAI;QACJ,cAAA;QACA,eAAA;qBACA,0DAAC;QAAuB,GAAG,KAAK;QAAE,KAAK;;AAG7C;AAMA,SAAS,qCAAkB,KAA6B,EAAE,GAAwB;IAChF,QAAQ,CAAA,GAAA,6CAAe,EAAE;IAEzB,IAAI,YACF,QAAQ,gBACR,YAAY,YACZ,QAAQ,oBACR,gBAAgB,qBAChB,iBAAiB,UACjB,MAAM,uBACN,sBAAsB,mBACtB,KAAK,EACN,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAEhE,mHAAmH;IACnH,IAAI,CAAC,WAAW,aAAa,GAAG,CAAA,GAAA,qBAAO,EAAE;IACzC,IAAI,AAAC,CAAA,sBAAsB,SAAS,oBAAoB,CAAA,KAAM,sBAAsB,WAClF,aAAa;IAGf,IAAI,iBAAC,aAAa,EAAC,GAAG,CAAA,GAAA,wCAAU,EAAE;QAChC,WAAU,CAAC;YACT,IAAI,EAAE,GAAG,KAAK,UAAU;gBACtB,EAAE,cAAc;gBAChB;YACF;QACF;IACF;IAEA,yCAAyC;IACzC,IAAI,YAAY,CAAA,GAAA,m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,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/actionbar/src/ActionBar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {ActionGroup} from '@react-spectrum/actiongroup';\nimport {announce} from '@react-aria/live-announcer';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossLarge from '@spectrum-icons/ui/CrossLarge';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusScope} from '@react-aria/focus';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {OpenTransition} from '@react-spectrum/overlays';\nimport React, {ReactElement, Ref, useEffect, useRef, useState} from 'react';\nimport {SpectrumActionBarProps} from '@react-types/actionbar';\nimport styles from './actionbar.css';\nimport {Text} from '@react-spectrum/text';\nimport {useKeyboard} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ActionBar<T extends object>(props: SpectrumActionBarProps<T>, ref: DOMRef<HTMLDivElement>) {\n let isOpen = props.selectedItemCount !== 0;\n let domRef = useDOMRef(ref);\n\n return (\n <OpenTransition\n nodeRef={domRef}\n in={isOpen}\n mountOnEnter\n unmountOnExit>\n <ActionBarInnerWithRef {...props} ref={domRef} />\n </OpenTransition>\n );\n}\n\ninterface ActionBarInnerProps<T> extends SpectrumActionBarProps<T> {\n isOpen?: boolean\n}\n\nfunction ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElement>) {\n props = useProviderProps(props);\n\n let {\n children,\n isEmphasized,\n onAction,\n onClearSelection,\n selectedItemCount,\n isOpen,\n buttonLabelBehavior = 'collapse',\n items\n } = props;\n\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/actionbar');\n\n // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.\n let [lastCount, setLastCount] = useState(selectedItemCount);\n if ((selectedItemCount === 'all' || selectedItemCount > 0) && selectedItemCount !== lastCount) {\n setLastCount(selectedItemCount);\n }\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n if (e.key === 'Escape') {\n e.preventDefault();\n onClearSelection();\n }\n }\n });\n\n // Announce \"actions available\" on mount.\n let isInitial = useRef(true);\n useEffect(() => {\n if (isInitial.current) {\n isInitial.current = false;\n announce(stringFormatter.format('actionsAvailable'));\n }\n }, [stringFormatter]);\n\n return (\n <FocusScope restoreFocus>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n {...keyboardProps}\n ref={ref}\n className={classNames(\n styles,\n 'react-spectrum-ActionBar', {\n 'react-spectrum-ActionBar--emphasized': isEmphasized,\n 'is-open': isOpen\n },\n styleProps.className\n )}>\n <div className={classNames(styles, 'react-spectrum-ActionBar-bar')}>\n <ActionGroup\n items={items}\n aria-label={stringFormatter.format('actions')}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}\n overflowMode=\"collapse\"\n buttonLabelBehavior={buttonLabelBehavior}\n onAction={onAction}\n UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-actionGroup')}>\n {children}\n </ActionGroup>\n <ActionButton\n gridArea={styles.clear}\n aria-label={stringFormatter.format('clearSelection')}\n onPress={() => onClearSelection()}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}>\n <CrossLarge />\n </ActionButton>\n <Text UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-selectedCount')}>\n {lastCount === 'all'\n ? stringFormatter.format('selectedAll')\n : stringFormatter.format('selected', {count: lastCount})}\n </Text>\n </div>\n </div>\n </FocusScope>\n );\n}\n\nconst ActionBarInnerWithRef = React.forwardRef(ActionBarInner) as <T>(props: ActionBarInnerProps<T> & {ref?: Ref<HTMLDivElement>}) => ReactElement;\n\n/**\n * Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.\n */\nconst _ActionBar = React.forwardRef(ActionBar) as <T>(props: SpectrumActionBarProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ActionBar as ActionBar};\n"],"names":[],"version":3,"file":"ActionBar.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;AAqBD,SAAS,gCAA4B,KAAgC,EAAE,GAA2B;IAChG,IAAI,SAAS,MAAM,iBAAiB,KAAK;IACzC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC,CAAA,GAAA,2CAAa;QACZ,SAAS;QACT,IAAI;QACJ,cAAA;QACA,eAAA;qBACA,0DAAC;QAAuB,GAAG,KAAK;QAAE,KAAK;;AAG7C;AAMA,SAAS,qCAAkB,KAA6B,EAAE,GAAwB;IAChF,QAAQ,CAAA,GAAA,6CAAe,EAAE;IAEzB,IAAI,YACF,QAAQ,gBACR,YAAY,YACZ,QAAQ,oBACR,gBAAgB,qBAChB,iBAAiB,UACjB,MAAM,uBACN,sBAAsB,mBACtB,KAAK,gBACL,YAAY,EACb,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAEhE,mHAAmH;IACnH,IAAI,CAAC,WAAW,aAAa,GAAG,CAAA,GAAA,qBAAO,EAAE;IACzC,IAAI,AAAC,CAAA,sBAAsB,SAAS,oBAAoB,CAAA,KAAM,sBAAsB,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S,EAAE,CAAA,GAAA,mDAAK,GAAG;OACxC,cAAc,QACX,gBAAgB,MAAM,CAAC,iBACvB,gBAAgB,MAAM,CAAC,YAAY;QAAC,OAAO;IAAS;AAMpE;AAEA,MAAM,4DAAwB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;AAE/C;;CAEC,GACD,MAAM,0DAAa,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/actionbar/src/ActionBar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {ActionGroup} from '@react-spectrum/actiongroup';\nimport {announce} from '@react-aria/live-announcer';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossLarge from '@spectrum-icons/ui/CrossLarge';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusScope} from '@react-aria/focus';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {OpenTransition} from '@react-spectrum/overlays';\nimport React, {ReactElement, Ref, useEffect, useRef, useState} from 'react';\nimport {SpectrumActionBarProps} from '@react-types/actionbar';\nimport styles from './actionbar.css';\nimport {Text} from '@react-spectrum/text';\nimport {useKeyboard} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ActionBar<T extends object>(props: SpectrumActionBarProps<T>, ref: DOMRef<HTMLDivElement>) {\n let isOpen = props.selectedItemCount !== 0;\n let domRef = useDOMRef(ref);\n\n return (\n <OpenTransition\n nodeRef={domRef}\n in={isOpen}\n mountOnEnter\n unmountOnExit>\n <ActionBarInnerWithRef {...props} ref={domRef} />\n </OpenTransition>\n );\n}\n\ninterface ActionBarInnerProps<T> extends SpectrumActionBarProps<T> {\n isOpen?: boolean\n}\n\nfunction ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElement>) {\n props = useProviderProps(props);\n\n let {\n children,\n isEmphasized,\n onAction,\n onClearSelection,\n selectedItemCount,\n isOpen,\n buttonLabelBehavior = 'collapse',\n items,\n disabledKeys\n } = props;\n\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/actionbar');\n\n // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.\n let [lastCount, setLastCount] = useState(selectedItemCount);\n if ((selectedItemCount === 'all' || selectedItemCount > 0) && selectedItemCount !== lastCount) {\n setLastCount(selectedItemCount);\n }\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n if (e.key === 'Escape') {\n e.preventDefault();\n onClearSelection();\n }\n }\n });\n\n // Announce \"actions available\" on mount.\n let isInitial = useRef(true);\n useEffect(() => {\n if (isInitial.current) {\n isInitial.current = false;\n announce(stringFormatter.format('actionsAvailable'));\n }\n }, [stringFormatter]);\n\n return (\n <FocusScope restoreFocus>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n {...keyboardProps}\n ref={ref}\n className={classNames(\n styles,\n 'react-spectrum-ActionBar', {\n 'react-spectrum-ActionBar--emphasized': isEmphasized,\n 'is-open': isOpen\n },\n styleProps.className\n )}>\n <div className={classNames(styles, 'react-spectrum-ActionBar-bar')}>\n <ActionGroup\n items={items}\n aria-label={stringFormatter.format('actions')}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}\n overflowMode=\"collapse\"\n buttonLabelBehavior={buttonLabelBehavior}\n onAction={onAction}\n disabledKeys={disabledKeys}\n UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-actionGroup')}>\n {children}\n </ActionGroup>\n <ActionButton\n gridArea={styles.clear}\n aria-label={stringFormatter.format('clearSelection')}\n onPress={() => onClearSelection()}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}>\n <CrossLarge />\n </ActionButton>\n <Text UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-selectedCount')}>\n {lastCount === 'all'\n ? stringFormatter.format('selectedAll')\n : stringFormatter.format('selected', {count: lastCount})}\n </Text>\n </div>\n </div>\n </FocusScope>\n );\n}\n\nconst ActionBarInnerWithRef = React.forwardRef(ActionBarInner) as <T>(props: ActionBarInnerProps<T> & {ref?: Ref<HTMLDivElement>}) => ReactElement;\n\n/**\n * Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.\n */\nconst _ActionBar = React.forwardRef(ActionBar) as <T>(props: SpectrumActionBarProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ActionBar as ActionBar};\n"],"names":[],"version":3,"file":"ActionBar.main.js.map"}
@@ -1,5 +1,5 @@
1
1
  import $c4Nes$intlStringsmodulejs from "./intlStrings.mjs";
2
- import "./actionbar.6c2bbcbf.css";
2
+ import "./actionbar.27a01ec3.css";
3
3
  import $c4Nes$actionbar_cssmodulejs from "./actionbar_css.mjs";
4
4
  import {ActionButton as $c4Nes$ActionButton} from "@react-spectrum/button";
5
5
  import {ActionGroup as $c4Nes$ActionGroup} from "@react-spectrum/actiongroup";
@@ -59,7 +59,7 @@ function $a4e665fbd087d71e$var$ActionBar(props, ref) {
59
59
  }
60
60
  function $a4e665fbd087d71e$var$ActionBarInner(props, ref) {
61
61
  props = (0, $c4Nes$useProviderProps)(props);
62
- let { children: children, isEmphasized: isEmphasized, onAction: onAction, onClearSelection: onClearSelection, selectedItemCount: selectedItemCount, isOpen: isOpen, buttonLabelBehavior: buttonLabelBehavior = 'collapse', items: items } = props;
62
+ let { children: children, isEmphasized: isEmphasized, onAction: onAction, onClearSelection: onClearSelection, selectedItemCount: selectedItemCount, isOpen: isOpen, buttonLabelBehavior: buttonLabelBehavior = 'collapse', items: items, disabledKeys: disabledKeys } = props;
63
63
  let { styleProps: styleProps } = (0, $c4Nes$useStyleProps)(props);
64
64
  let stringFormatter = (0, $c4Nes$useLocalizedStringFormatter)((0, ($parcel$interopDefault($c4Nes$intlStringsmodulejs))), '@react-spectrum/actionbar');
65
65
  // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.
@@ -104,6 +104,7 @@ function $a4e665fbd087d71e$var$ActionBarInner(props, ref) {
104
104
  overflowMode: "collapse",
105
105
  buttonLabelBehavior: buttonLabelBehavior,
106
106
  onAction: onAction,
107
+ disabledKeys: disabledKeys,
107
108
  UNSAFE_className: (0, $c4Nes$classNames)((0, ($parcel$interopDefault($c4Nes$actionbar_cssmodulejs))), 'react-spectrum-ActionBar-actionGroup')
108
109
  }, children), /*#__PURE__*/ (0, $c4Nes$react).createElement((0, $c4Nes$ActionButton), {
109
110
  gridArea: (0, ($parcel$interopDefault($c4Nes$actionbar_cssmodulejs))).clear,
@@ -1,5 +1,5 @@
1
1
  import $c4Nes$intlStringsmodulejs from "./intlStrings.module.js";
2
- import "./actionbar.6c2bbcbf.css";
2
+ import "./actionbar.27a01ec3.css";
3
3
  import $c4Nes$actionbar_cssmodulejs from "./actionbar_css.module.js";
4
4
  import {ActionButton as $c4Nes$ActionButton} from "@react-spectrum/button";
5
5
  import {ActionGroup as $c4Nes$ActionGroup} from "@react-spectrum/actiongroup";
@@ -59,7 +59,7 @@ function $a4e665fbd087d71e$var$ActionBar(props, ref) {
59
59
  }
60
60
  function $a4e665fbd087d71e$var$ActionBarInner(props, ref) {
61
61
  props = (0, $c4Nes$useProviderProps)(props);
62
- let { children: children, isEmphasized: isEmphasized, onAction: onAction, onClearSelection: onClearSelection, selectedItemCount: selectedItemCount, isOpen: isOpen, buttonLabelBehavior: buttonLabelBehavior = 'collapse', items: items } = props;
62
+ let { children: children, isEmphasized: isEmphasized, onAction: onAction, onClearSelection: onClearSelection, selectedItemCount: selectedItemCount, isOpen: isOpen, buttonLabelBehavior: buttonLabelBehavior = 'collapse', items: items, disabledKeys: disabledKeys } = props;
63
63
  let { styleProps: styleProps } = (0, $c4Nes$useStyleProps)(props);
64
64
  let stringFormatter = (0, $c4Nes$useLocalizedStringFormatter)((0, ($parcel$interopDefault($c4Nes$intlStringsmodulejs))), '@react-spectrum/actionbar');
65
65
  // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.
@@ -104,6 +104,7 @@ function $a4e665fbd087d71e$var$ActionBarInner(props, ref) {
104
104
  overflowMode: "collapse",
105
105
  buttonLabelBehavior: buttonLabelBehavior,
106
106
  onAction: onAction,
107
+ disabledKeys: disabledKeys,
107
108
  UNSAFE_className: (0, $c4Nes$classNames)((0, ($parcel$interopDefault($c4Nes$actionbar_cssmodulejs))), 'react-spectrum-ActionBar-actionGroup')
108
109
  }, children), /*#__PURE__*/ (0, $c4Nes$react).createElement((0, $c4Nes$ActionButton), {
109
110
  gridArea: (0, ($parcel$interopDefault($c4Nes$actionbar_cssmodulejs))).clear,
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;AAqBD,SAAS,gCAA4B,KAAgC,EAAE,GAA2B;IAChG,IAAI,SAAS,MAAM,iBAAiB,KAAK;IACzC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC,CAAA,GAAA,qBAAa;QACZ,SAAS;QACT,IAAI;QACJ,cAAA;QACA,eAAA;qBACA,gCAAC;QAAuB,GAAG,KAAK;QAAE,KAAK;;AAG7C;AAMA,SAAS,qCAAkB,KAA6B,EAAE,GAAwB;IAChF,QAAQ,CAAA,GAAA,uBAAe,EAAE;IAEzB,IAAI,YACF,QAAQ,gBACR,YAAY,YACZ,QAAQ,oBACR,gBAAgB,qBAChB,iBAAiB,UACjB,MAAM,uBACN,sBAAsB,mBACtB,KAA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DAAK,GAAG;OACpC,yBAEH,gCAAC,CAAA,GAAA,mBAAW;QACV,UAAU,CAAA,GAAA,sDAAK,EAAE,KAAK;QACtB,cAAY,gBAAgB,MAAM,CAAC;QACnC,SAAS,IAAM;QACf,SAAA;QACA,aAAa,eAAe,UAAU;qBACtC,gCAAC,CAAA,GAAA,gCAAS,yBAEZ,gCAAC,CAAA,GAAA,WAAG;QAAE,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,sDAAK,GAAG;OACxC,cAAc,QACX,gBAAgB,MAAM,CAAC,iBACvB,gBAAgB,MAAM,CAAC,YAAY;QAAC,OAAO;IAAS;AAMpE;AAEA,MAAM,4DAAwB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;AAE/C;;CAEC,GACD,MAAM,0DAAa,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/actionbar/src/ActionBar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {ActionGroup} from '@react-spectrum/actiongroup';\nimport {announce} from '@react-aria/live-announcer';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossLarge from '@spectrum-icons/ui/CrossLarge';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusScope} from '@react-aria/focus';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {OpenTransition} from '@react-spectrum/overlays';\nimport React, {ReactElement, Ref, useEffect, useRef, useState} from 'react';\nimport {SpectrumActionBarProps} from '@react-types/actionbar';\nimport styles from './actionbar.css';\nimport {Text} from '@react-spectrum/text';\nimport {useKeyboard} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ActionBar<T extends object>(props: SpectrumActionBarProps<T>, ref: DOMRef<HTMLDivElement>) {\n let isOpen = props.selectedItemCount !== 0;\n let domRef = useDOMRef(ref);\n\n return (\n <OpenTransition\n nodeRef={domRef}\n in={isOpen}\n mountOnEnter\n unmountOnExit>\n <ActionBarInnerWithRef {...props} ref={domRef} />\n </OpenTransition>\n );\n}\n\ninterface ActionBarInnerProps<T> extends SpectrumActionBarProps<T> {\n isOpen?: boolean\n}\n\nfunction ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElement>) {\n props = useProviderProps(props);\n\n let {\n children,\n isEmphasized,\n onAction,\n onClearSelection,\n selectedItemCount,\n isOpen,\n buttonLabelBehavior = 'collapse',\n items\n } = props;\n\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/actionbar');\n\n // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.\n let [lastCount, setLastCount] = useState(selectedItemCount);\n if ((selectedItemCount === 'all' || selectedItemCount > 0) && selectedItemCount !== lastCount) {\n setLastCount(selectedItemCount);\n }\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n if (e.key === 'Escape') {\n e.preventDefault();\n onClearSelection();\n }\n }\n });\n\n // Announce \"actions available\" on mount.\n let isInitial = useRef(true);\n useEffect(() => {\n if (isInitial.current) {\n isInitial.current = false;\n announce(stringFormatter.format('actionsAvailable'));\n }\n }, [stringFormatter]);\n\n return (\n <FocusScope restoreFocus>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n {...keyboardProps}\n ref={ref}\n className={classNames(\n styles,\n 'react-spectrum-ActionBar', {\n 'react-spectrum-ActionBar--emphasized': isEmphasized,\n 'is-open': isOpen\n },\n styleProps.className\n )}>\n <div className={classNames(styles, 'react-spectrum-ActionBar-bar')}>\n <ActionGroup\n items={items}\n aria-label={stringFormatter.format('actions')}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}\n overflowMode=\"collapse\"\n buttonLabelBehavior={buttonLabelBehavior}\n onAction={onAction}\n UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-actionGroup')}>\n {children}\n </ActionGroup>\n <ActionButton\n gridArea={styles.clear}\n aria-label={stringFormatter.format('clearSelection')}\n onPress={() => onClearSelection()}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}>\n <CrossLarge />\n </ActionButton>\n <Text UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-selectedCount')}>\n {lastCount === 'all'\n ? stringFormatter.format('selectedAll')\n : stringFormatter.format('selected', {count: lastCount})}\n </Text>\n </div>\n </div>\n </FocusScope>\n );\n}\n\nconst ActionBarInnerWithRef = React.forwardRef(ActionBarInner) as <T>(props: ActionBarInnerProps<T> & {ref?: Ref<HTMLDivElement>}) => ReactElement;\n\n/**\n * Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.\n */\nconst _ActionBar = React.forwardRef(ActionBar) as <T>(props: SpectrumActionBarProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ActionBar as ActionBar};\n"],"names":[],"version":3,"file":"ActionBar.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;AAqBD,SAAS,gCAA4B,KAAgC,EAAE,GAA2B;IAChG,IAAI,SAAS,MAAM,iBAAiB,KAAK;IACzC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC,CAAA,GAAA,qBAAa;QACZ,SAAS;QACT,IAAI;QACJ,cAAA;QACA,eAAA;qBACA,gCAAC;QAAuB,GAAG,KAAK;QAAE,KAAK;;AAG7C;AAMA,SAA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qBACjC,gCAAC,CAAA,GAAA,kBAAU;QACT,OAAO;QACP,cAAY,gBAAgB,MAAM,CAAC;QACnC,SAAA;QACA,aAAa,eAAe,UAAU;QACtC,cAAa;QACb,qBAAqB;QACrB,UAAU;QACV,cAAc;QACd,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,sDAAK,GAAG;OACpC,yBAEH,gCAAC,CAAA,GAAA,mBAAW;QACV,UAAU,CAAA,GAAA,sDAAK,EAAE,KAAK;QACtB,cAAY,gBAAgB,MAAM,CAAC;QACnC,SAAS,IAAM;QACf,SAAA;QACA,aAAa,eAAe,UAAU;qBACtC,gCAAC,CAAA,GAAA,gCAAS,yBAEZ,gCAAC,CAAA,GAAA,WAAG;QAAE,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,sDAAK,GAAG;OACxC,cAAc,QACX,gBAAgB,MAAM,CAAC,iBACvB,gBAAgB,MAAM,CAAC,YAAY;QAAC,OAAO;IAAS;AAMpE;AAEA,MAAM,4DAAwB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;AAE/C;;CAEC,GACD,MAAM,0DAAa,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/actionbar/src/ActionBar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {ActionGroup} from '@react-spectrum/actiongroup';\nimport {announce} from '@react-aria/live-announcer';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossLarge from '@spectrum-icons/ui/CrossLarge';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusScope} from '@react-aria/focus';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {OpenTransition} from '@react-spectrum/overlays';\nimport React, {ReactElement, Ref, useEffect, useRef, useState} from 'react';\nimport {SpectrumActionBarProps} from '@react-types/actionbar';\nimport styles from './actionbar.css';\nimport {Text} from '@react-spectrum/text';\nimport {useKeyboard} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ActionBar<T extends object>(props: SpectrumActionBarProps<T>, ref: DOMRef<HTMLDivElement>) {\n let isOpen = props.selectedItemCount !== 0;\n let domRef = useDOMRef(ref);\n\n return (\n <OpenTransition\n nodeRef={domRef}\n in={isOpen}\n mountOnEnter\n unmountOnExit>\n <ActionBarInnerWithRef {...props} ref={domRef} />\n </OpenTransition>\n );\n}\n\ninterface ActionBarInnerProps<T> extends SpectrumActionBarProps<T> {\n isOpen?: boolean\n}\n\nfunction ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElement>) {\n props = useProviderProps(props);\n\n let {\n children,\n isEmphasized,\n onAction,\n onClearSelection,\n selectedItemCount,\n isOpen,\n buttonLabelBehavior = 'collapse',\n items,\n disabledKeys\n } = props;\n\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/actionbar');\n\n // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.\n let [lastCount, setLastCount] = useState(selectedItemCount);\n if ((selectedItemCount === 'all' || selectedItemCount > 0) && selectedItemCount !== lastCount) {\n setLastCount(selectedItemCount);\n }\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n if (e.key === 'Escape') {\n e.preventDefault();\n onClearSelection();\n }\n }\n });\n\n // Announce \"actions available\" on mount.\n let isInitial = useRef(true);\n useEffect(() => {\n if (isInitial.current) {\n isInitial.current = false;\n announce(stringFormatter.format('actionsAvailable'));\n }\n }, [stringFormatter]);\n\n return (\n <FocusScope restoreFocus>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n {...keyboardProps}\n ref={ref}\n className={classNames(\n styles,\n 'react-spectrum-ActionBar', {\n 'react-spectrum-ActionBar--emphasized': isEmphasized,\n 'is-open': isOpen\n },\n styleProps.className\n )}>\n <div className={classNames(styles, 'react-spectrum-ActionBar-bar')}>\n <ActionGroup\n items={items}\n aria-label={stringFormatter.format('actions')}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}\n overflowMode=\"collapse\"\n buttonLabelBehavior={buttonLabelBehavior}\n onAction={onAction}\n disabledKeys={disabledKeys}\n UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-actionGroup')}>\n {children}\n </ActionGroup>\n <ActionButton\n gridArea={styles.clear}\n aria-label={stringFormatter.format('clearSelection')}\n onPress={() => onClearSelection()}\n isQuiet\n staticColor={isEmphasized ? 'white' : undefined}>\n <CrossLarge />\n </ActionButton>\n <Text UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-selectedCount')}>\n {lastCount === 'all'\n ? stringFormatter.format('selectedAll')\n : stringFormatter.format('selected', {count: lastCount})}\n </Text>\n </div>\n </div>\n </FocusScope>\n );\n}\n\nconst ActionBarInnerWithRef = React.forwardRef(ActionBarInner) as <T>(props: ActionBarInnerProps<T> & {ref?: Ref<HTMLDivElement>}) => ReactElement;\n\n/**\n * Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.\n */\nconst _ActionBar = React.forwardRef(ActionBar) as <T>(props: SpectrumActionBarProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ActionBar as ActionBar};\n"],"names":[],"version":3,"file":"ActionBar.module.js.map"}
@@ -1,4 +1,4 @@
1
- require("./actionbar.6c2bbcbf.css");
1
+ require("./actionbar.27a01ec3.css");
2
2
  var $ff24c7bbe0c168db$exports = require("./actionbar_css.main.js");
3
3
  var $hZJeg$reactspectrumutils = require("@react-spectrum/utils");
4
4
  var $hZJeg$reactariautils = require("@react-aria/utils");
@@ -1,4 +1,4 @@
1
- import "./actionbar.6c2bbcbf.css";
1
+ import "./actionbar.27a01ec3.css";
2
2
  import $cNmre$actionbar_cssmodulejs from "./actionbar_css.mjs";
3
3
  import {useStyleProps as $cNmre$useStyleProps, useDOMRef as $cNmre$useDOMRef, classNames as $cNmre$classNames} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $cNmre$filterDOMProps} from "@react-aria/utils";
@@ -1,4 +1,4 @@
1
- import "./actionbar.6c2bbcbf.css";
1
+ import "./actionbar.27a01ec3.css";
2
2
  import $cNmre$actionbar_cssmodulejs from "./actionbar_css.module.js";
3
3
  import {useStyleProps as $cNmre$useStyleProps, useDOMRef as $cNmre$useDOMRef, classNames as $cNmre$classNames} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $cNmre$filterDOMProps} from "@react-aria/utils";
@@ -1,19 +1,19 @@
1
- .R4yOqG_ActionBarContainer {
1
+ .stB2eG_ActionBarContainer {
2
2
  flex-direction: column;
3
3
  display: flex;
4
4
  position: relative;
5
5
  }
6
6
 
7
- .R4yOqG_ActionBarContainer > :not(.R4yOqG_react-spectrum-ActionBar) {
7
+ .stB2eG_ActionBarContainer > :not(.stB2eG_react-spectrum-ActionBar) {
8
8
  flex: 1;
9
9
  min-height: 0;
10
10
  }
11
11
 
12
- .R4yOqG_ActionBarContainer > .R4yOqG_react-spectrum-ActionBar {
12
+ .stB2eG_ActionBarContainer > .stB2eG_react-spectrum-ActionBar {
13
13
  flex: none;
14
14
  }
15
15
 
16
- .R4yOqG_react-spectrum-ActionBar {
16
+ .stB2eG_react-spectrum-ActionBar {
17
17
  transition: height var(--spectrum-global-animation-duration-100, .13s) ease-in-out, opacity var(--spectrum-global-animation-duration-100, .13s) ease-in-out;
18
18
  opacity: 0;
19
19
  block-size: 0;
@@ -21,14 +21,14 @@
21
21
  overflow: hidden;
22
22
  }
23
23
 
24
- .R4yOqG_react-spectrum-ActionBar.R4yOqG_is-open {
24
+ .stB2eG_react-spectrum-ActionBar.stB2eG_is-open {
25
25
  height: calc(var(--spectrum-global-dimension-size-600) + var(--spectrum-global-dimension-size-100) * 2);
26
26
  opacity: 1;
27
27
  transition-delay: 0s;
28
28
  }
29
29
 
30
- .R4yOqG_react-spectrum-ActionBar .R4yOqG_react-spectrum-ActionBar-bar {
31
- grid-template-areas: "R4yOqG_clear R4yOqG_selected . R4yOqG_actiongroup";
30
+ .stB2eG_react-spectrum-ActionBar .stB2eG_react-spectrum-ActionBar-bar {
31
+ grid-template-areas: "stB2eG_clear stB2eG_selected . stB2eG_actiongroup";
32
32
  grid-template-columns: auto max-content minmax(var(--spectrum-global-dimension-size-300), 1fr) auto;
33
33
  isolation: isolate;
34
34
  padding: var(--spectrum-global-dimension-size-100);
@@ -51,33 +51,33 @@
51
51
  position: absolute;
52
52
  }
53
53
 
54
- .R4yOqG_react-spectrum-ActionBar.R4yOqG_is-open .R4yOqG_react-spectrum-ActionBar-bar {
54
+ .stB2eG_react-spectrum-ActionBar.stB2eG_is-open .stB2eG_react-spectrum-ActionBar-bar {
55
55
  transform: translateY(0);
56
56
  }
57
57
 
58
- .R4yOqG_react-spectrum-ActionBar.R4yOqG_react-spectrum-ActionBar--emphasized .R4yOqG_react-spectrum-ActionBar-bar {
58
+ .stB2eG_react-spectrum-ActionBar.stB2eG_react-spectrum-ActionBar--emphasized .stB2eG_react-spectrum-ActionBar-bar {
59
59
  background: var(--spectrum-global-color-static-blue-700, #0d66d0);
60
60
  color: #fff;
61
61
  box-shadow: 0 2px 6px var(--spectrum-alias-dropshadow-color);
62
62
  border: none;
63
63
  }
64
64
 
65
- .R4yOqG_react-spectrum-ActionBar .R4yOqG_react-spectrum-ActionBar-selectedCount {
65
+ .stB2eG_react-spectrum-ActionBar .stB2eG_react-spectrum-ActionBar-selectedCount {
66
66
  padding: 0 var(--spectrum-global-dimension-size-50);
67
67
  -webkit-user-select: none;
68
68
  user-select: none;
69
69
  cursor: default;
70
- grid-area: R4yOqG_selected;
70
+ grid-area: stB2eG_selected;
71
71
  }
72
72
 
73
- .R4yOqG_react-spectrum-ActionBar .R4yOqG_react-spectrum-ActionBar-actionGroup {
74
- grid-area: R4yOqG_actiongroup;
73
+ .stB2eG_react-spectrum-ActionBar .stB2eG_react-spectrum-ActionBar-actionGroup {
74
+ grid-area: stB2eG_actiongroup;
75
75
  min-width: 0;
76
76
  }
77
77
 
78
78
  @media (forced-colors: active) {
79
- .R4yOqG_react-spectrum-ActionBar.R4yOqG_react-spectrum-ActionBar--emphasized .R4yOqG_react-spectrum-ActionBar-bar {
79
+ .stB2eG_react-spectrum-ActionBar.stB2eG_react-spectrum-ActionBar--emphasized .stB2eG_react-spectrum-ActionBar-bar {
80
80
  border: 1px solid #0000;
81
81
  }
82
82
  }
83
- /*# sourceMappingURL=actionbar.6c2bbcbf.css.map */
83
+ /*# sourceMappingURL=actionbar.27a01ec3.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAAA;;;;;;AAKE;;;;;AAKA;;;;AAKF;;;;;;;;AAYE;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;AA2BA;;;;AAIA;;;;;;;AAOA;;;;;;;;AAOA;;;;;AAMF;EAEI","sources":["packages/@react-spectrum/actionbar/src/actionbar.css"],"sourcesContent":[".ActionBarContainer {\n display: flex;\n flex-direction: column;\n position: relative;\n\n & > :not(.react-spectrum-ActionBar) {\n flex: 1;\n min-height: 0;\n }\n\n & > .react-spectrum-ActionBar {\n flex: 0 0 auto;\n }\n}\n\n.react-spectrum-ActionBar {\n transition: height var(--spectrum-global-animation-duration-100) ease-in-out,\n opacity var(--spectrum-global-animation-duration-100) ease-in-out;\n\n /* Take up no space when not open */\n block-size: 0;\n opacity: 0;\n width: 100%;\n\n /* Clip anything outside of us, whether we're open or not. This makes the animation smooth */\n overflow: hidden;\n\n &.is-open {\n height: calc(var(--spectrum-global-dimension-size-600) + var(--spectrum-global-dimension-size-100) * 2);\n opacity: 1;\n transition-delay: 0ms;\n }\n\n .react-spectrum-ActionBar-bar {\n display: grid;\n grid-template-areas: \"clear selected . actiongroup\";\n grid-template-columns: auto max-content minmax(var(--spectrum-global-dimension-size-300), 1fr) auto;\n align-items: center;\n isolation: isolate;\n justify-content: space-between;\n padding: var(--spectrum-global-dimension-size-100);\n\n position: absolute;\n bottom: var(--spectrum-global-dimension-size-100);\n left: var(--spectrum-global-dimension-size-100);\n right: var(--spectrum-global-dimension-size-100);\n max-width: 960px;\n margin: 0 auto;\n\n background: var(--spectrum-global-color-gray-50);\n border-radius: var(--spectrum-popover-border-radius);\n border-style: solid;\n border-width: var(--spectrum-popover-border-size);\n border-color: var(--spectrum-popover-border-color);\n box-shadow: 0 2px 8px var(--spectrum-alias-dropshadow-color);\n\n transform: translateY(var(--spectrum-overlay-positive-transform-distance));\n transition: transform var(--spectrum-global-animation-duration-100) ease-in-out;\n }\n\n &.is-open .react-spectrum-ActionBar-bar {\n transform: translateY(0);\n }\n\n &.react-spectrum-ActionBar--emphasized .react-spectrum-ActionBar-bar {\n background: var(--spectrum-global-color-static-blue-700);\n color: white;\n box-shadow: 0 2px 6px var(--spectrum-alias-dropshadow-color);\n border: none;\n }\n\n .react-spectrum-ActionBar-selectedCount {\n grid-area: selected;\n padding: 0 var(--spectrum-global-dimension-size-50);\n user-select: none;\n cursor: default;\n }\n\n .react-spectrum-ActionBar-actionGroup {\n grid-area: actiongroup;\n min-width: 0;\n }\n}\n@media (forced-colors: active) {\n .react-spectrum-ActionBar {\n &.react-spectrum-ActionBar--emphasized .react-spectrum-ActionBar-bar {\n\n border: 1px solid transparent;\n }\n }\n}\n"],"names":[],"version":3,"file":"actionbar.6c2bbcbf.css.map"}
1
+ {"mappings":"AAAA;;;;;;AAKE;;;;;AAKA;;;;AAKF;;;;;;;;AAYE;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;AA2BA;;;;AAIA;;;;;;;AAOA;;;;;;;;AAOA;;;;;AAMF;EAEI","sources":["packages/@react-spectrum/actionbar/src/actionbar.css"],"sourcesContent":[".ActionBarContainer {\n display: flex;\n flex-direction: column;\n position: relative;\n\n & > :not(.react-spectrum-ActionBar) {\n flex: 1;\n min-height: 0;\n }\n\n & > .react-spectrum-ActionBar {\n flex: 0 0 auto;\n }\n}\n\n.react-spectrum-ActionBar {\n transition: height var(--spectrum-global-animation-duration-100) ease-in-out,\n opacity var(--spectrum-global-animation-duration-100) ease-in-out;\n\n /* Take up no space when not open */\n block-size: 0;\n opacity: 0;\n width: 100%;\n\n /* Clip anything outside of us, whether we're open or not. This makes the animation smooth */\n overflow: hidden;\n\n &.is-open {\n height: calc(var(--spectrum-global-dimension-size-600) + var(--spectrum-global-dimension-size-100) * 2);\n opacity: 1;\n transition-delay: 0ms;\n }\n\n .react-spectrum-ActionBar-bar {\n display: grid;\n grid-template-areas: \"clear selected . actiongroup\";\n grid-template-columns: auto max-content minmax(var(--spectrum-global-dimension-size-300), 1fr) auto;\n align-items: center;\n isolation: isolate;\n justify-content: space-between;\n padding: var(--spectrum-global-dimension-size-100);\n\n position: absolute;\n bottom: var(--spectrum-global-dimension-size-100);\n left: var(--spectrum-global-dimension-size-100);\n right: var(--spectrum-global-dimension-size-100);\n max-width: 960px;\n margin: 0 auto;\n\n background: var(--spectrum-global-color-gray-50);\n border-radius: var(--spectrum-popover-border-radius);\n border-style: solid;\n border-width: var(--spectrum-popover-border-size);\n border-color: var(--spectrum-popover-border-color);\n box-shadow: 0 2px 8px var(--spectrum-alias-dropshadow-color);\n\n transform: translateY(var(--spectrum-overlay-positive-transform-distance));\n transition: transform var(--spectrum-global-animation-duration-100) ease-in-out;\n }\n\n &.is-open .react-spectrum-ActionBar-bar {\n transform: translateY(0);\n }\n\n &.react-spectrum-ActionBar--emphasized .react-spectrum-ActionBar-bar {\n background: var(--spectrum-global-color-static-blue-700);\n color: white;\n box-shadow: 0 2px 6px var(--spectrum-alias-dropshadow-color);\n border: none;\n }\n\n .react-spectrum-ActionBar-selectedCount {\n grid-area: selected;\n padding: 0 var(--spectrum-global-dimension-size-50);\n user-select: none;\n cursor: default;\n }\n\n .react-spectrum-ActionBar-actionGroup {\n grid-area: actiongroup;\n min-width: 0;\n }\n}\n@media (forced-colors: active) {\n .react-spectrum-ActionBar {\n &.react-spectrum-ActionBar--emphasized .react-spectrum-ActionBar-bar {\n\n border: 1px solid transparent;\n }\n }\n}\n"],"names":[],"version":3,"file":"actionbar.27a01ec3.css.map"}
@@ -23,16 +23,16 @@ var $ff24c7bbe0c168db$export$adc2706661946993;
23
23
  var $ff24c7bbe0c168db$export$ea5a1c79ca7998e9;
24
24
  var $ff24c7bbe0c168db$export$8b9fb52122670f9e;
25
25
  var $ff24c7bbe0c168db$export$d90250155de6d7e7;
26
- $ff24c7bbe0c168db$export$ac2eb07f267e434c = `R4yOqG_ActionBarContainer`;
27
- $ff24c7bbe0c168db$export$7c12d760fcaf48e4 = `R4yOqG_actiongroup`;
28
- $ff24c7bbe0c168db$export$42ffd38884aecdac = `R4yOqG_clear`;
29
- $ff24c7bbe0c168db$export$a9781837241c946d = `R4yOqG_is-open`;
30
- $ff24c7bbe0c168db$export$71a4c2be37bc4ee5 = `R4yOqG_react-spectrum-ActionBar`;
31
- $ff24c7bbe0c168db$export$3377f5e3cddd68a7 = `R4yOqG_react-spectrum-ActionBar--emphasized`;
32
- $ff24c7bbe0c168db$export$adc2706661946993 = `R4yOqG_react-spectrum-ActionBar-actionGroup`;
33
- $ff24c7bbe0c168db$export$ea5a1c79ca7998e9 = `R4yOqG_react-spectrum-ActionBar-bar`;
34
- $ff24c7bbe0c168db$export$8b9fb52122670f9e = `R4yOqG_react-spectrum-ActionBar-selectedCount`;
35
- $ff24c7bbe0c168db$export$d90250155de6d7e7 = `R4yOqG_selected`;
26
+ $ff24c7bbe0c168db$export$ac2eb07f267e434c = `stB2eG_ActionBarContainer`;
27
+ $ff24c7bbe0c168db$export$7c12d760fcaf48e4 = `stB2eG_actiongroup`;
28
+ $ff24c7bbe0c168db$export$42ffd38884aecdac = `stB2eG_clear`;
29
+ $ff24c7bbe0c168db$export$a9781837241c946d = `stB2eG_is-open`;
30
+ $ff24c7bbe0c168db$export$71a4c2be37bc4ee5 = `stB2eG_react-spectrum-ActionBar`;
31
+ $ff24c7bbe0c168db$export$3377f5e3cddd68a7 = `stB2eG_react-spectrum-ActionBar--emphasized`;
32
+ $ff24c7bbe0c168db$export$adc2706661946993 = `stB2eG_react-spectrum-ActionBar-actionGroup`;
33
+ $ff24c7bbe0c168db$export$ea5a1c79ca7998e9 = `stB2eG_react-spectrum-ActionBar-bar`;
34
+ $ff24c7bbe0c168db$export$8b9fb52122670f9e = `stB2eG_react-spectrum-ActionBar-selectedCount`;
35
+ $ff24c7bbe0c168db$export$d90250155de6d7e7 = `stB2eG_selected`;
36
36
 
37
37
 
38
38
  //# sourceMappingURL=actionbar_css.main.js.map
@@ -24,16 +24,16 @@ var $7bd9eeb2cd70bd0c$export$adc2706661946993;
24
24
  var $7bd9eeb2cd70bd0c$export$ea5a1c79ca7998e9;
25
25
  var $7bd9eeb2cd70bd0c$export$8b9fb52122670f9e;
26
26
  var $7bd9eeb2cd70bd0c$export$d90250155de6d7e7;
27
- $7bd9eeb2cd70bd0c$export$ac2eb07f267e434c = `R4yOqG_ActionBarContainer`;
28
- $7bd9eeb2cd70bd0c$export$7c12d760fcaf48e4 = `R4yOqG_actiongroup`;
29
- $7bd9eeb2cd70bd0c$export$42ffd38884aecdac = `R4yOqG_clear`;
30
- $7bd9eeb2cd70bd0c$export$a9781837241c946d = `R4yOqG_is-open`;
31
- $7bd9eeb2cd70bd0c$export$71a4c2be37bc4ee5 = `R4yOqG_react-spectrum-ActionBar`;
32
- $7bd9eeb2cd70bd0c$export$3377f5e3cddd68a7 = `R4yOqG_react-spectrum-ActionBar--emphasized`;
33
- $7bd9eeb2cd70bd0c$export$adc2706661946993 = `R4yOqG_react-spectrum-ActionBar-actionGroup`;
34
- $7bd9eeb2cd70bd0c$export$ea5a1c79ca7998e9 = `R4yOqG_react-spectrum-ActionBar-bar`;
35
- $7bd9eeb2cd70bd0c$export$8b9fb52122670f9e = `R4yOqG_react-spectrum-ActionBar-selectedCount`;
36
- $7bd9eeb2cd70bd0c$export$d90250155de6d7e7 = `R4yOqG_selected`;
27
+ $7bd9eeb2cd70bd0c$export$ac2eb07f267e434c = `stB2eG_ActionBarContainer`;
28
+ $7bd9eeb2cd70bd0c$export$7c12d760fcaf48e4 = `stB2eG_actiongroup`;
29
+ $7bd9eeb2cd70bd0c$export$42ffd38884aecdac = `stB2eG_clear`;
30
+ $7bd9eeb2cd70bd0c$export$a9781837241c946d = `stB2eG_is-open`;
31
+ $7bd9eeb2cd70bd0c$export$71a4c2be37bc4ee5 = `stB2eG_react-spectrum-ActionBar`;
32
+ $7bd9eeb2cd70bd0c$export$3377f5e3cddd68a7 = `stB2eG_react-spectrum-ActionBar--emphasized`;
33
+ $7bd9eeb2cd70bd0c$export$adc2706661946993 = `stB2eG_react-spectrum-ActionBar-actionGroup`;
34
+ $7bd9eeb2cd70bd0c$export$ea5a1c79ca7998e9 = `stB2eG_react-spectrum-ActionBar-bar`;
35
+ $7bd9eeb2cd70bd0c$export$8b9fb52122670f9e = `stB2eG_react-spectrum-ActionBar-selectedCount`;
36
+ $7bd9eeb2cd70bd0c$export$d90250155de6d7e7 = `stB2eG_selected`;
37
37
 
38
38
 
39
39
  export {$7bd9eeb2cd70bd0c$exports as default};
@@ -24,16 +24,16 @@ var $7bd9eeb2cd70bd0c$export$adc2706661946993;
24
24
  var $7bd9eeb2cd70bd0c$export$ea5a1c79ca7998e9;
25
25
  var $7bd9eeb2cd70bd0c$export$8b9fb52122670f9e;
26
26
  var $7bd9eeb2cd70bd0c$export$d90250155de6d7e7;
27
- $7bd9eeb2cd70bd0c$export$ac2eb07f267e434c = `R4yOqG_ActionBarContainer`;
28
- $7bd9eeb2cd70bd0c$export$7c12d760fcaf48e4 = `R4yOqG_actiongroup`;
29
- $7bd9eeb2cd70bd0c$export$42ffd38884aecdac = `R4yOqG_clear`;
30
- $7bd9eeb2cd70bd0c$export$a9781837241c946d = `R4yOqG_is-open`;
31
- $7bd9eeb2cd70bd0c$export$71a4c2be37bc4ee5 = `R4yOqG_react-spectrum-ActionBar`;
32
- $7bd9eeb2cd70bd0c$export$3377f5e3cddd68a7 = `R4yOqG_react-spectrum-ActionBar--emphasized`;
33
- $7bd9eeb2cd70bd0c$export$adc2706661946993 = `R4yOqG_react-spectrum-ActionBar-actionGroup`;
34
- $7bd9eeb2cd70bd0c$export$ea5a1c79ca7998e9 = `R4yOqG_react-spectrum-ActionBar-bar`;
35
- $7bd9eeb2cd70bd0c$export$8b9fb52122670f9e = `R4yOqG_react-spectrum-ActionBar-selectedCount`;
36
- $7bd9eeb2cd70bd0c$export$d90250155de6d7e7 = `R4yOqG_selected`;
27
+ $7bd9eeb2cd70bd0c$export$ac2eb07f267e434c = `stB2eG_ActionBarContainer`;
28
+ $7bd9eeb2cd70bd0c$export$7c12d760fcaf48e4 = `stB2eG_actiongroup`;
29
+ $7bd9eeb2cd70bd0c$export$42ffd38884aecdac = `stB2eG_clear`;
30
+ $7bd9eeb2cd70bd0c$export$a9781837241c946d = `stB2eG_is-open`;
31
+ $7bd9eeb2cd70bd0c$export$71a4c2be37bc4ee5 = `stB2eG_react-spectrum-ActionBar`;
32
+ $7bd9eeb2cd70bd0c$export$3377f5e3cddd68a7 = `stB2eG_react-spectrum-ActionBar--emphasized`;
33
+ $7bd9eeb2cd70bd0c$export$adc2706661946993 = `stB2eG_react-spectrum-ActionBar-actionGroup`;
34
+ $7bd9eeb2cd70bd0c$export$ea5a1c79ca7998e9 = `stB2eG_react-spectrum-ActionBar-bar`;
35
+ $7bd9eeb2cd70bd0c$export$8b9fb52122670f9e = `stB2eG_react-spectrum-ActionBar-selectedCount`;
36
+ $7bd9eeb2cd70bd0c$export$d90250155de6d7e7 = `stB2eG_selected`;
37
37
 
38
38
 
39
39
  export {$7bd9eeb2cd70bd0c$exports as default};
@@ -1 +1 @@
1
- {"mappings":";;;AA2IA;;GAEG;AACH,OAAA,MAAM,WAA4C,CAAC,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,OAAO,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACvGzI;;;GAGG;AACH,OAAA,MAAM,uIAA0D,CAAC;AC7BjE,OAAO,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAChD,YAAY,EAAC,+BAA+B,EAAC,MAAM,wBAAwB,CAAC;AAC5E,YAAY,EAAC,sBAAsB,EAAC,MAAM,wBAAwB,CAAC","sources":["packages/@react-spectrum/actionbar/src/packages/@react-spectrum/actionbar/src/ActionBar.tsx","packages/@react-spectrum/actionbar/src/packages/@react-spectrum/actionbar/src/ActionBarContainer.tsx","packages/@react-spectrum/actionbar/src/packages/@react-spectrum/actionbar/src/index.ts","packages/@react-spectrum/actionbar/src/index.ts"],"sourcesContent":[null,null,null,"/*\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/// <reference types=\"css-module-types\" />\nexport {ActionBar} from './ActionBar';\nexport {ActionBarContainer} from './ActionBarContainer';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumActionBarContainerProps} from '@react-types/actionbar';\nexport type {SpectrumActionBarProps} from '@react-types/actionbar';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AA6IA;;GAEG;AACH,OAAA,MAAM,WAA4C,CAAC,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,OAAO,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACzGzI;;;GAGG;AACH,OAAA,MAAM,uIAA0D,CAAC;AC7BjE,OAAO,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAChD,YAAY,EAAC,+BAA+B,EAAC,MAAM,wBAAwB,CAAC;AAC5E,YAAY,EAAC,sBAAsB,EAAC,MAAM,wBAAwB,CAAC","sources":["packages/@react-spectrum/actionbar/src/packages/@react-spectrum/actionbar/src/ActionBar.tsx","packages/@react-spectrum/actionbar/src/packages/@react-spectrum/actionbar/src/ActionBarContainer.tsx","packages/@react-spectrum/actionbar/src/packages/@react-spectrum/actionbar/src/index.ts","packages/@react-spectrum/actionbar/src/index.ts"],"sourcesContent":[null,null,null,"/*\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/// <reference types=\"css-module-types\" />\nexport {ActionBar} from './ActionBar';\nexport {ActionBarContainer} from './ActionBarContainer';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumActionBarContainerProps} from '@react-types/actionbar';\nexport type {SpectrumActionBarProps} from '@react-types/actionbar';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/actionbar",
3
- "version": "3.5.2-nightly.5042+68403fe55",
3
+ "version": "3.6.1",
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.3114+68403fe55",
40
- "@react-aria/i18n": "3.0.0-nightly.3114+68403fe55",
41
- "@react-aria/interactions": "3.0.0-nightly.3114+68403fe55",
42
- "@react-aria/live-announcer": "3.0.0-nightly.3114+68403fe55",
43
- "@react-aria/utils": "3.0.0-nightly.3114+68403fe55",
44
- "@react-spectrum/actiongroup": "3.10.8-nightly.5042+68403fe55",
45
- "@react-spectrum/button": "3.0.0-nightly.3114+68403fe55",
46
- "@react-spectrum/overlays": "3.0.0-nightly.3114+68403fe55",
47
- "@react-spectrum/text": "3.5.8-nightly.5042+68403fe55",
48
- "@react-spectrum/utils": "3.0.0-nightly.3114+68403fe55",
49
- "@react-stately/collections": "3.0.0-nightly.3114+68403fe55",
50
- "@react-types/actionbar": "3.1.10-nightly.5042+68403fe55",
51
- "@react-types/shared": "3.0.0-nightly.3114+68403fe55",
52
- "@spectrum-icons/ui": "3.0.0-nightly.3114+68403fe55",
39
+ "@react-aria/focus": "^3.18.4",
40
+ "@react-aria/i18n": "^3.12.3",
41
+ "@react-aria/interactions": "^3.22.4",
42
+ "@react-aria/live-announcer": "^3.4.0",
43
+ "@react-aria/utils": "^3.25.3",
44
+ "@react-spectrum/actiongroup": "^3.10.9",
45
+ "@react-spectrum/button": "^3.16.8",
46
+ "@react-spectrum/overlays": "^5.6.5",
47
+ "@react-spectrum/text": "^3.5.9",
48
+ "@react-spectrum/utils": "^3.11.11",
49
+ "@react-stately/collections": "^3.11.0",
50
+ "@react-types/actionbar": "^3.1.10",
51
+ "@react-types/shared": "^3.25.0",
52
+ "@spectrum-icons/ui": "^3.6.10",
53
53
  "@swc/helpers": "^0.5.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@adobe/spectrum-css-temp": "3.0.0-nightly.3114+68403fe55"
56
+ "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@react-spectrum/provider": "^3.0.0",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "68403fe55489dce3de1b3094c957d598ad719861"
66
+ "gitHead": "8e0a28d188cdbdbd2b32296fa034b1b02ddde229"
67
67
  }
package/src/ActionBar.tsx CHANGED
@@ -59,7 +59,8 @@ function ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElemen
59
59
  selectedItemCount,
60
60
  isOpen,
61
61
  buttonLabelBehavior = 'collapse',
62
- items
62
+ items,
63
+ disabledKeys
63
64
  } = props;
64
65
 
65
66
  let {styleProps} = useStyleProps(props);
@@ -113,6 +114,7 @@ function ActionBarInner<T>(props: ActionBarInnerProps<T>, ref: Ref<HTMLDivElemen
113
114
  overflowMode="collapse"
114
115
  buttonLabelBehavior={buttonLabelBehavior}
115
116
  onAction={onAction}
117
+ disabledKeys={disabledKeys}
116
118
  UNSAFE_className={classNames(styles, 'react-spectrum-ActionBar-actionGroup')}>
117
119
  {children}
118
120
  </ActionGroup>