@react-spectrum/inlinealert 3.2.10 → 3.2.12

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 $cf1d087b199fc7c5$exports = require("./intlStrings.main.js");
2
- require("./vars.d26a2e16.css");
2
+ require("./vars.5fcabb04.css");
3
3
  var $8d976ce4ebad141b$exports = require("./inlinealert_vars_css.main.js");
4
4
  var $9SIjx$spectrumiconsuiAlertMedium = require("@spectrum-icons/ui/AlertMedium");
5
5
  var $9SIjx$reactspectrumutils = require("@react-spectrum/utils");
@@ -50,7 +50,7 @@ let $5de8c6729f05c665$var$ICONS = {
50
50
  notice: (0, ($parcel$interopDefault($9SIjx$spectrumiconsuiAlertMedium))),
51
51
  negative: (0, ($parcel$interopDefault($9SIjx$spectrumiconsuiAlertMedium)))
52
52
  };
53
- function $5de8c6729f05c665$var$InlineAlert(props, ref) {
53
+ const $5de8c6729f05c665$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).forwardRef(function InlineAlert(props, ref) {
54
54
  props = (0, $9SIjx$reactspectrumprovider.useProviderProps)(props);
55
55
  let { children: children, variant: variant = 'neutral', autoFocus: autoFocus, ...otherProps } = props;
56
56
  let { styleProps: styleProps } = (0, $9SIjx$reactspectrumutils.useStyleProps)(otherProps);
@@ -95,11 +95,7 @@ function $5de8c6729f05c665$var$InlineAlert(props, ref) {
95
95
  UNSAFE_className: (0, ($parcel$interopDefault($8d976ce4ebad141b$exports)))['spectrum-InLineAlert-icon'],
96
96
  "aria-label": iconAlt
97
97
  }), children))));
98
- }
99
- /**
100
- * Inline alerts display a non-modal message associated with objects in a view.
101
- * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
102
- */ const $5de8c6729f05c665$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).forwardRef($5de8c6729f05c665$var$InlineAlert);
98
+ });
103
99
 
104
100
 
105
101
  //# sourceMappingURL=InlineAlert.main.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAiCD,IAAI,8BAAQ;IACV,MAAM,CAAA,GAAA,0DAAS;IACf,UAAU,CAAA,GAAA,6DAAY;IACtB,QAAQ,CAAA,GAAA,2DAAU;IAClB,UAAU,CAAA,GAAA,2DAAU;AACtB;AAEA,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,YACF,QAAQ,WACR,UAAU,sBACV,SAAS,EACT,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,+BAA+B;QAAA;QAClE,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,+BAA+B;QAAA;IACpE;IAEA,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAChE,IAAI,OAAsC;IAC1C,IAAI,UAAkB;IACtB,IAAI,WAAW,6BAAO;QACpB,OAAO,2BAAK,CAAC,QAAQ;QACrB,UAAU,gBAAgB,MAAM,CAAC;IACnC;IAEA,IAAI,eAAe,CAAA,GAAA,mBAAK,EAAE,MAAM,SAAS;IACzC,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,aAAa,OAAO,IAAI,OAAO,OAAO,EACxC,OAAO,OAAO,CAAC,KAAK;QAEtB,aAAa,OAAO,GAAG;IACzB,GAAG;QAAC;KAAO;IAEX,qBACE,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,mDAAK,CAAC,CAAC,aAAa;qBAC7C,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,MAAM;QACxB,GAAG,UAAU;QACd,KAAK;QACL,UAAU,YAAY,KAAK;QAC3B,WAAW;QACX,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,SAAS,EAClC,WAAW,SAAS;QAEtB,MAAK;qBACL,0DAAC,CAAA,GAAA,+BAAG;QAAE,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,4BAA4B;qBACzD,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;OAClB,sBAAQ,0DAAC;QAAK,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAMb;AAEA;;;CAGC,GACD,MAAM,0DAAe,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/inlinealert/src/InlineAlert.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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ReactNode, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nexport interface SpectrumInlineAlertProps extends DOMProps, StyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/in-line-alert/#Options) of the Inline Alert.\n * @default 'neutral'\n */\n variant?: 'neutral' | 'info' | 'positive' | 'notice' | 'negative',\n /**\n * The contents of the Inline Alert.\n */\n children: ReactNode,\n /**\n * Whether to automatically focus the Inline Alert when it first renders.\n */\n autoFocus?: boolean\n}\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\nfunction InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n autoFocus,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n heading: {UNSAFE_className: styles['spectrum-InLineAlert-heading']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/inlinealert');\n let Icon: typeof React.Component | null = null;\n let iconAlt: string = '';\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n let autoFocusRef = useRef(props.autoFocus);\n useEffect(() => {\n if (autoFocusRef.current && domRef.current) {\n domRef.current.focus();\n }\n autoFocusRef.current = false;\n }, [domRef]);\n\n return (\n <FocusRing focusRingClass={styles['focus-ring']}>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n tabIndex={autoFocus ? -1 : undefined}\n autoFocus={autoFocus}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n </FocusRing>\n );\n}\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nconst _InlineAlert = React.forwardRef(InlineAlert);\nexport {_InlineAlert as InlineAlert};\n"],"names":[],"version":3,"file":"InlineAlert.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAiCD,IAAI,8BAAQ;IACV,MAAM,CAAA,GAAA,0DAAS;IACf,UAAU,CAAA,GAAA,6DAAY;IACtB,QAAQ,CAAA,GAAA,2DAAU;IAClB,UAAU,CAAA,GAAA,2DAAU;AACtB;AAMO,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAA+B,EAAE,GAA2B;IAC3H,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,YACF,QAAQ,WACR,UAAU,sBACV,SAAS,EACT,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,+BAA+B;QAAA;QAClE,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,+BAA+B;QAAA;IACpE;IAEA,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAChE,IAAI,OAAsC;IAC1C,IAAI,UAAkB;IACtB,IAAI,WAAW,6BAAO;QACpB,OAAO,2BAAK,CAAC,QAAQ;QACrB,UAAU,gBAAgB,MAAM,CAAC;IACnC;IAEA,IAAI,eAAe,CAAA,GAAA,mBAAK,EAAE,MAAM,SAAS;IACzC,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,aAAa,OAAO,IAAI,OAAO,OAAO,EACxC,OAAO,OAAO,CAAC,KAAK;QAEtB,aAAa,OAAO,GAAG;IACzB,GAAG;QAAC;KAAO;IAEX,qBACE,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,mDAAK,CAAC,CAAC,aAAa;qBAC7C,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,MAAM;QACxB,GAAG,UAAU;QACd,KAAK;QACL,UAAU,YAAY,KAAK;QAC3B,WAAW;QACX,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,SAAS,EAClC,WAAW,SAAS;QAEtB,MAAK;qBACL,0DAAC,CAAA,GAAA,+BAAG;QAAE,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,4BAA4B;qBACzD,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;OAClB,sBAAQ,0DAAC;QAAK,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAMb","sources":["packages/@react-spectrum/inlinealert/src/InlineAlert.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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ReactNode, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nexport interface SpectrumInlineAlertProps extends DOMProps, StyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/in-line-alert/#Options) of the Inline Alert.\n * @default 'neutral'\n */\n variant?: 'neutral' | 'info' | 'positive' | 'notice' | 'negative',\n /**\n * The contents of the Inline Alert.\n */\n children: ReactNode,\n /**\n * Whether to automatically focus the Inline Alert when it first renders.\n */\n autoFocus?: boolean\n}\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nexport const InlineAlert = React.forwardRef(function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n autoFocus,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n heading: {UNSAFE_className: styles['spectrum-InLineAlert-heading']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/inlinealert');\n let Icon: typeof React.Component | null = null;\n let iconAlt: string = '';\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n let autoFocusRef = useRef(props.autoFocus);\n useEffect(() => {\n if (autoFocusRef.current && domRef.current) {\n domRef.current.focus();\n }\n autoFocusRef.current = false;\n }, [domRef]);\n\n return (\n <FocusRing focusRingClass={styles['focus-ring']}>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n tabIndex={autoFocus ? -1 : undefined}\n autoFocus={autoFocus}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"InlineAlert.main.js.map"}
@@ -1,5 +1,5 @@
1
1
  import $8S3NB$intlStringsmodulejs from "./intlStrings.mjs";
2
- import "./vars.d26a2e16.css";
2
+ import "./vars.5fcabb04.css";
3
3
  import $8S3NB$inlinealert_vars_cssmodulejs from "./inlinealert_vars_css.mjs";
4
4
  import $8S3NB$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
5
5
  import {useStyleProps as $8S3NB$useStyleProps, useDOMRef as $8S3NB$useDOMRef, classNames as $8S3NB$classNames, SlotProvider as $8S3NB$SlotProvider} from "@react-spectrum/utils";
@@ -44,7 +44,7 @@ let $abf1e6290496dda5$var$ICONS = {
44
44
  notice: (0, $8S3NB$spectrumiconsuiAlertMedium),
45
45
  negative: (0, $8S3NB$spectrumiconsuiAlertMedium)
46
46
  };
47
- function $abf1e6290496dda5$var$InlineAlert(props, ref) {
47
+ const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $8S3NB$react).forwardRef(function InlineAlert(props, ref) {
48
48
  props = (0, $8S3NB$useProviderProps)(props);
49
49
  let { children: children, variant: variant = 'neutral', autoFocus: autoFocus, ...otherProps } = props;
50
50
  let { styleProps: styleProps } = (0, $8S3NB$useStyleProps)(otherProps);
@@ -89,11 +89,7 @@ function $abf1e6290496dda5$var$InlineAlert(props, ref) {
89
89
  UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-icon'],
90
90
  "aria-label": iconAlt
91
91
  }), children))));
92
- }
93
- /**
94
- * Inline alerts display a non-modal message associated with objects in a view.
95
- * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
96
- */ const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $8S3NB$react).forwardRef($abf1e6290496dda5$var$InlineAlert);
92
+ });
97
93
 
98
94
 
99
95
  export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
@@ -1,5 +1,5 @@
1
1
  import $8S3NB$intlStringsmodulejs from "./intlStrings.module.js";
2
- import "./vars.d26a2e16.css";
2
+ import "./vars.5fcabb04.css";
3
3
  import $8S3NB$inlinealert_vars_cssmodulejs from "./inlinealert_vars_css.module.js";
4
4
  import $8S3NB$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
5
5
  import {useStyleProps as $8S3NB$useStyleProps, useDOMRef as $8S3NB$useDOMRef, classNames as $8S3NB$classNames, SlotProvider as $8S3NB$SlotProvider} from "@react-spectrum/utils";
@@ -44,7 +44,7 @@ let $abf1e6290496dda5$var$ICONS = {
44
44
  notice: (0, $8S3NB$spectrumiconsuiAlertMedium),
45
45
  negative: (0, $8S3NB$spectrumiconsuiAlertMedium)
46
46
  };
47
- function $abf1e6290496dda5$var$InlineAlert(props, ref) {
47
+ const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $8S3NB$react).forwardRef(function InlineAlert(props, ref) {
48
48
  props = (0, $8S3NB$useProviderProps)(props);
49
49
  let { children: children, variant: variant = 'neutral', autoFocus: autoFocus, ...otherProps } = props;
50
50
  let { styleProps: styleProps } = (0, $8S3NB$useStyleProps)(otherProps);
@@ -89,11 +89,7 @@ function $abf1e6290496dda5$var$InlineAlert(props, ref) {
89
89
  UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-icon'],
90
90
  "aria-label": iconAlt
91
91
  }), children))));
92
- }
93
- /**
94
- * Inline alerts display a non-modal message associated with objects in a view.
95
- * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
96
- */ const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $8S3NB$react).forwardRef($abf1e6290496dda5$var$InlineAlert);
92
+ });
97
93
 
98
94
 
99
95
  export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAiCD,IAAI,8BAAQ;IACV,MAAM,CAAA,GAAA,gCAAS;IACf,UAAU,CAAA,GAAA,mCAAY;IACtB,QAAQ,CAAA,GAAA,iCAAU;IAClB,UAAU,CAAA,GAAA,iCAAU;AACtB;AAEA,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,YACF,QAAQ,WACR,UAAU,sBACV,SAAS,EACT,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,+BAA+B;QAAA;QAClE,SAAS;YAAC,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,+BAA+B;QAAA;IACpE;IAEA,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAChE,IAAI,OAAsC;IAC1C,IAAI,UAAkB;IACtB,IAAI,WAAW,6BAAO;QACpB,OAAO,2BAAK,CAAC,QAAQ;QACrB,UAAU,gBAAgB,MAAM,CAAC;IACnC;IAEA,IAAI,eAAe,CAAA,GAAA,aAAK,EAAE,MAAM,SAAS;IACzC,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,aAAa,OAAO,IAAI,OAAO,OAAO,EACxC,OAAO,OAAO,CAAC,KAAK;QAEtB,aAAa,OAAO,GAAG;IACzB,GAAG;QAAC;KAAO;IAEX,qBACE,gCAAC,CAAA,GAAA,gBAAQ;QAAE,gBAAgB,CAAA,GAAA,6DAAK,CAAC,CAAC,aAAa;qBAC7C,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,MAAM;QACxB,GAAG,UAAU;QACd,KAAK;QACL,UAAU,YAAY,KAAK;QAC3B,WAAW;QACX,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,6DAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,SAAS,EAClC,WAAW,SAAS;QAEtB,MAAK;qBACL,gCAAC,CAAA,GAAA,WAAG;QAAE,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,4BAA4B;qBACzD,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;OAClB,sBAAQ,gCAAC;QAAK,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAMb;AAEA;;;CAGC,GACD,MAAM,0DAAe,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/inlinealert/src/InlineAlert.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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ReactNode, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nexport interface SpectrumInlineAlertProps extends DOMProps, StyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/in-line-alert/#Options) of the Inline Alert.\n * @default 'neutral'\n */\n variant?: 'neutral' | 'info' | 'positive' | 'notice' | 'negative',\n /**\n * The contents of the Inline Alert.\n */\n children: ReactNode,\n /**\n * Whether to automatically focus the Inline Alert when it first renders.\n */\n autoFocus?: boolean\n}\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\nfunction InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n autoFocus,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n heading: {UNSAFE_className: styles['spectrum-InLineAlert-heading']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/inlinealert');\n let Icon: typeof React.Component | null = null;\n let iconAlt: string = '';\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n let autoFocusRef = useRef(props.autoFocus);\n useEffect(() => {\n if (autoFocusRef.current && domRef.current) {\n domRef.current.focus();\n }\n autoFocusRef.current = false;\n }, [domRef]);\n\n return (\n <FocusRing focusRingClass={styles['focus-ring']}>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n tabIndex={autoFocus ? -1 : undefined}\n autoFocus={autoFocus}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n </FocusRing>\n );\n}\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nconst _InlineAlert = React.forwardRef(InlineAlert);\nexport {_InlineAlert as InlineAlert};\n"],"names":[],"version":3,"file":"InlineAlert.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAiCD,IAAI,8BAAQ;IACV,MAAM,CAAA,GAAA,gCAAS;IACf,UAAU,CAAA,GAAA,mCAAY;IACtB,QAAQ,CAAA,GAAA,iCAAU;IAClB,UAAU,CAAA,GAAA,iCAAU;AACtB;AAMO,MAAM,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAA+B,EAAE,GAA2B;IAC3H,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,YACF,QAAQ,WACR,UAAU,sBACV,SAAS,EACT,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,+BAA+B;QAAA;QAClE,SAAS;YAAC,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,+BAA+B;QAAA;IACpE;IAEA,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAChE,IAAI,OAAsC;IAC1C,IAAI,UAAkB;IACtB,IAAI,WAAW,6BAAO;QACpB,OAAO,2BAAK,CAAC,QAAQ;QACrB,UAAU,gBAAgB,MAAM,CAAC;IACnC;IAEA,IAAI,eAAe,CAAA,GAAA,aAAK,EAAE,MAAM,SAAS;IACzC,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,aAAa,OAAO,IAAI,OAAO,OAAO,EACxC,OAAO,OAAO,CAAC,KAAK;QAEtB,aAAa,OAAO,GAAG;IACzB,GAAG;QAAC;KAAO;IAEX,qBACE,gCAAC,CAAA,GAAA,gBAAQ;QAAE,gBAAgB,CAAA,GAAA,6DAAK,CAAC,CAAC,aAAa;qBAC7C,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,MAAM;QACxB,GAAG,UAAU;QACd,KAAK;QACL,UAAU,YAAY,KAAK;QAC3B,WAAW;QACX,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,6DAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,SAAS,EAClC,WAAW,SAAS;QAEtB,MAAK;qBACL,gCAAC,CAAA,GAAA,WAAG;QAAE,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,4BAA4B;qBACzD,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;OAClB,sBAAQ,gCAAC;QAAK,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAMb","sources":["packages/@react-spectrum/inlinealert/src/InlineAlert.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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ReactNode, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nexport interface SpectrumInlineAlertProps extends DOMProps, StyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/in-line-alert/#Options) of the Inline Alert.\n * @default 'neutral'\n */\n variant?: 'neutral' | 'info' | 'positive' | 'notice' | 'negative',\n /**\n * The contents of the Inline Alert.\n */\n children: ReactNode,\n /**\n * Whether to automatically focus the Inline Alert when it first renders.\n */\n autoFocus?: boolean\n}\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nexport const InlineAlert = React.forwardRef(function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n autoFocus,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n heading: {UNSAFE_className: styles['spectrum-InLineAlert-heading']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/inlinealert');\n let Icon: typeof React.Component | null = null;\n let iconAlt: string = '';\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n let autoFocusRef = useRef(props.autoFocus);\n useEffect(() => {\n if (autoFocusRef.current && domRef.current) {\n domRef.current.focus();\n }\n autoFocusRef.current = false;\n }, [domRef]);\n\n return (\n <FocusRing focusRingClass={styles['focus-ring']}>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n tabIndex={autoFocus ? -1 : undefined}\n autoFocus={autoFocus}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"InlineAlert.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;AA2BA,yCAA0C,SAAQ,QAAQ,EAAE,UAAU;IACpE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;IAClE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAoED;;;GAGG;AACH,OAAA,MAAM,yHAA4C,CAAC","sources":["packages/@react-spectrum/inlinealert/src/packages/@react-spectrum/inlinealert/src/InlineAlert.tsx","packages/@react-spectrum/inlinealert/src/packages/@react-spectrum/inlinealert/src/index.ts","packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":[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 {InlineAlert} from './InlineAlert';\nexport type {SpectrumInlineAlertProps} from './InlineAlert';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;AA2BA,yCAA0C,SAAQ,QAAQ,EAAE,UAAU;IACpE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;IAClE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AASD;;;GAGG;AACH,OAAO,MAAM,yHAyDX,CAAC","sources":["packages/@react-spectrum/inlinealert/src/packages/@react-spectrum/inlinealert/src/InlineAlert.tsx","packages/@react-spectrum/inlinealert/src/packages/@react-spectrum/inlinealert/src/index.ts","packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":[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 {InlineAlert} from './InlineAlert';\nexport type {SpectrumInlineAlertProps} from './InlineAlert';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -84,6 +84,7 @@
84
84
  --spectrum-focus-ring-border-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
85
85
  --spectrum-focus-ring-size: var(--spectrum-button-primary-focus-ring-size-key-focus, var(--spectrum-alias-focus-ring-size));
86
86
  box-sizing: border-box;
87
+ min-inline-size: 240px;
87
88
  padding-block: var(--spectrum-global-dimension-static-size-300, 24px);
88
89
  padding-inline: var(--spectrum-global-dimension-static-size-300, 24px);
89
90
  border-block-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
@@ -91,7 +92,6 @@
91
92
  border-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
92
93
  border-style: solid;
93
94
  outline: none;
94
- min-inline-size: 240px;
95
95
  display: inline-block;
96
96
  position: relative;
97
97
  }
@@ -196,4 +196,4 @@
196
196
  ._7aUzWa_spectrum-InLineAlert--negative ._7aUzWa_spectrum-InLineAlert-icon {
197
197
  color: var(--highcontrast-inlinealert-border-and-icon-color, var(--spectrum-negative-visual-color));
198
198
  }
199
- /*# sourceMappingURL=vars.d26a2e16.css.map */
199
+ /*# sourceMappingURL=vars.5fcabb04.css.map */
@@ -1 +1 @@
1
- {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;;;;;;;;AAwBA;;;;;;;;;AAWA;;;;;;AAKA;;;;;;AAOA;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;AA8BA;EACE;;;;;;;;AAQF;;;;;AAKA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA","sources":["packages/@adobe/spectrum-css-temp/components/inlinealert/vars.css"],"sourcesContent":["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.d26a2e16.css.map"}
1
+ {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;;;;;;;;AAwBA;;;;;;;;;AAWA;;;;;;AAKA;;;;;;AAOA;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;AA8BA;EACE;;;;;;;;AAQF;;;;;AAKA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA","sources":["packages/@adobe/spectrum-css-temp/components/inlinealert/vars.css"],"sourcesContent":["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.5fcabb04.css.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/inlinealert",
3
- "version": "3.2.10",
3
+ "version": "3.2.12",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,13 +36,13 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/focus": "^3.19.0",
40
- "@react-aria/i18n": "^3.12.4",
41
- "@react-aria/utils": "^3.26.0",
42
- "@react-spectrum/layout": "^3.6.10",
43
- "@react-spectrum/utils": "^3.12.0",
44
- "@react-types/shared": "^3.26.0",
45
- "@spectrum-icons/ui": "^3.6.11",
39
+ "@react-aria/focus": "^3.20.0",
40
+ "@react-aria/i18n": "^3.12.6",
41
+ "@react-aria/utils": "^3.28.0",
42
+ "@react-spectrum/layout": "^3.6.12",
43
+ "@react-spectrum/utils": "^3.12.2",
44
+ "@react-types/shared": "^3.28.0",
45
+ "@spectrum-icons/ui": "^3.6.13",
46
46
  "@swc/helpers": "^0.5.0"
47
47
  },
48
48
  "devDependencies": {
@@ -50,10 +50,11 @@
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@react-spectrum/provider": "^3.0.0",
53
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
53
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
54
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
54
55
  },
55
56
  "publishConfig": {
56
57
  "access": "public"
57
58
  },
58
- "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
59
+ "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
59
60
  }
@@ -48,7 +48,11 @@ let ICONS = {
48
48
  negative: AlertMedium
49
49
  };
50
50
 
51
- function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {
51
+ /**
52
+ * Inline alerts display a non-modal message associated with objects in a view.
53
+ * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
54
+ */
55
+ export const InlineAlert = React.forwardRef(function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {
52
56
  props = useProviderProps(props);
53
57
  let {
54
58
  children,
@@ -105,11 +109,4 @@ function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement
105
109
  </div>
106
110
  </FocusRing>
107
111
  );
108
- }
109
-
110
- /**
111
- * Inline alerts display a non-modal message associated with objects in a view.
112
- * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
113
- */
114
- const _InlineAlert = React.forwardRef(InlineAlert);
115
- export {_InlineAlert as InlineAlert};
112
+ });