@primer/react 38.37.0-rc.0b6dd7e38 → 38.37.0-rc.5b155816b
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- [#8306](https://github.com/primer/react/pull/8306) [`a3afd7b`](https://github.com/primer/react/commit/a3afd7baf05ea6c4a272a40ccb636f20a48f87dc) Thanks [@llastflowers](https://github.com/llastflowers)! - Deprecate the `Flash` component and move to `@primer/react/deprecated`
|
|
8
|
+
|
|
7
9
|
- [#8295](https://github.com/primer/react/pull/8295) [`bfebb8a`](https://github.com/primer/react/commit/bfebb8a538e6f068a457722b154799876bda3ab4) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Textarea: Add an `autoSize` option that allows the field to grow with its content
|
|
8
10
|
|
|
9
11
|
### Patch Changes
|
package/dist/Flash/Flash.d.ts
CHANGED
|
@@ -2,11 +2,17 @@ import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Flash/Flash.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
7
|
+
*/
|
|
5
8
|
type FlashProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
6
9
|
className?: string;
|
|
7
10
|
variant?: 'default' | 'warning' | 'success' | 'danger';
|
|
8
11
|
full?: boolean;
|
|
9
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
15
|
+
*/
|
|
10
16
|
declare const Flash: ForwardRefComponent<"div", FlashProps>;
|
|
11
17
|
//#endregion
|
|
12
18
|
export { FlashProps, Flash as default };
|
package/dist/Flash/Flash.js
CHANGED
|
@@ -4,6 +4,12 @@ import { clsx } from "clsx";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import React from "react";
|
|
6
6
|
//#region src/Flash/Flash.tsx
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
12
|
+
*/
|
|
7
13
|
const Flash = /*#__PURE__*/ React.forwardRef(function Flash(t0, ref) {
|
|
8
14
|
const $ = c(15);
|
|
9
15
|
let className;
|
|
@@ -3,6 +3,7 @@ import { ItemProps } from "./ActionList/Item.js";
|
|
|
3
3
|
import { GroupedListProps, ItemInput, ListProps } from "./ActionList/List.js";
|
|
4
4
|
import { ActionList } from "./ActionList/index.js";
|
|
5
5
|
import Octicon, { OcticonProps } from "../Octicon/Octicon.js";
|
|
6
|
+
import Flash, { FlashProps } from "../Flash/Flash.js";
|
|
6
7
|
import { ActionMenu, ActionMenuProps } from "./ActionMenu.js";
|
|
7
8
|
import FilteredSearch, { FilteredSearchProps } from "./FilteredSearch/FilteredSearch.js";
|
|
8
9
|
import _default$2, { UnderlineNavLinkProps, UnderlineNavProps } from "./UnderlineNav/UnderlineNav.js";
|
|
@@ -10,4 +11,4 @@ import _default, { DialogHeaderProps, DialogProps } from "./DialogV1/Dialog.js";
|
|
|
10
11
|
import Pagehead, { PageheadProps } from "../Pagehead/Pagehead.js";
|
|
11
12
|
import _default$1, { TabNavLinkProps, TabNavProps } from "../TabNav/TabNav.js";
|
|
12
13
|
import Tooltip, { TooltipProps } from "../Tooltip/Tooltip.js";
|
|
13
|
-
export { ActionList, type GroupProps as ActionListGroupProps, type GroupedListProps as ActionListGroupedListProps, type ItemInput as ActionListItemInput, type ItemProps as ActionListItemProps, type ListProps as ActionListProps, ActionMenu, type ActionMenuProps, _default as Dialog, type DialogHeaderProps, type DialogProps, FilteredSearch, type FilteredSearchProps, Octicon, type OcticonProps, Pagehead, type PageheadProps, _default$1 as TabNav, type TabNavLinkProps, type TabNavProps, Tooltip, type TooltipProps, _default$2 as UnderlineNav, type UnderlineNavLinkProps, type UnderlineNavProps };
|
|
14
|
+
export { ActionList, type GroupProps as ActionListGroupProps, type GroupedListProps as ActionListGroupedListProps, type ItemInput as ActionListItemInput, type ItemProps as ActionListItemProps, type ListProps as ActionListProps, ActionMenu, type ActionMenuProps, _default as Dialog, type DialogHeaderProps, type DialogProps, FilteredSearch, type FilteredSearchProps, Flash, type FlashProps, Octicon, type OcticonProps, Pagehead, type PageheadProps, _default$1 as TabNav, type TabNavLinkProps, type TabNavProps, Tooltip, type TooltipProps, _default$2 as UnderlineNav, type UnderlineNavLinkProps, type UnderlineNavProps };
|
package/dist/deprecated/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import Octicon from "../Octicon/Octicon.js";
|
|
3
|
+
import Flash from "../Flash/Flash.js";
|
|
3
4
|
import { ActionList } from "./ActionList/index.js";
|
|
4
5
|
import { ActionMenu } from "./ActionMenu.js";
|
|
5
6
|
import FilteredSearch from "./FilteredSearch/FilteredSearch.js";
|
|
@@ -17,4 +18,4 @@ import Tooltip from "../Tooltip/Tooltip.js";
|
|
|
17
18
|
* example: import {FormGroup} from '@primer/react/deprecated
|
|
18
19
|
*/
|
|
19
20
|
//#endregion
|
|
20
|
-
export { ActionList, ActionMenu, Dialog_default as Dialog, FilteredSearch, Octicon, Pagehead, TabNav_default as TabNav, Tooltip, UnderlineNav_default as UnderlineNav };
|
|
21
|
+
export { ActionList, ActionMenu, Dialog_default as Dialog, FilteredSearch, Flash, Octicon, Pagehead, TabNav_default as TabNav, Tooltip, UnderlineNav_default as UnderlineNav };
|
|
@@ -3394,39 +3394,39 @@
|
|
|
3394
3394
|
"source": "https://github.com/primer/react/tree/main/packages/react/src/Flash",
|
|
3395
3395
|
"id": "flash",
|
|
3396
3396
|
"name": "Flash",
|
|
3397
|
-
"status": "
|
|
3397
|
+
"status": "deprecated",
|
|
3398
3398
|
"a11yReviewed": "2025-01-08",
|
|
3399
3399
|
"stories": [
|
|
3400
3400
|
{
|
|
3401
|
-
"id": "components-flash--default",
|
|
3401
|
+
"id": "deprecated-components-flash--default",
|
|
3402
3402
|
"code": "() => <Flash>Default</Flash>"
|
|
3403
3403
|
},
|
|
3404
3404
|
{
|
|
3405
|
-
"id": "components-flash-features--success",
|
|
3405
|
+
"id": "deprecated-components-flash-features--success",
|
|
3406
3406
|
"code": "() => (\n <Flash\n variant=\"success\"\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <CheckCircleIcon aria-label=\"Success\" />\n </div>\n <div className={classes.Message}>Success</div>\n </Flash>\n)"
|
|
3407
3407
|
},
|
|
3408
3408
|
{
|
|
3409
|
-
"id": "components-flash-features--danger",
|
|
3409
|
+
"id": "deprecated-components-flash-features--danger",
|
|
3410
3410
|
"code": "() => (\n <Flash\n variant=\"danger\"\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Danger\" />\n </div>\n <div className={classes.Message}>Danger</div>\n </Flash>\n)"
|
|
3411
3411
|
},
|
|
3412
3412
|
{
|
|
3413
|
-
"id": "components-flash-features--warning",
|
|
3413
|
+
"id": "deprecated-components-flash-features--warning",
|
|
3414
3414
|
"code": "() => (\n <Flash\n variant=\"warning\"\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <AlertIcon aria-label=\"Warning\" />\n </div>\n <div className={classes.Message}>Warning</div>\n </Flash>\n)"
|
|
3415
3415
|
},
|
|
3416
3416
|
{
|
|
3417
|
-
"id": "components-flash-features--full",
|
|
3417
|
+
"id": "deprecated-components-flash-features--full",
|
|
3418
3418
|
"code": "() => (\n <Flash\n full\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Info\" />\n </div>\n <div className={classes.Message}>Full</div>\n </Flash>\n)"
|
|
3419
3419
|
},
|
|
3420
3420
|
{
|
|
3421
|
-
"id": "components-flash-features--with-icon-and-action",
|
|
3421
|
+
"id": "deprecated-components-flash-features--with-icon-and-action",
|
|
3422
3422
|
"code": "() => (\n <Flash className={classes.WithIconAndAction}>\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Info\" />\n </div>\n <div className={classes.Message}>\n This is a flash message with an icon and an action.\n <Link href=\"/\"> Learn more.</Link>\n </div>\n <div className={classes.ActionsResponsive}>\n <Button>Join waitlist</Button>\n </div>\n </Flash>\n)"
|
|
3423
3423
|
},
|
|
3424
3424
|
{
|
|
3425
|
-
"id": "components-flash-features--with-icon-action-dismiss",
|
|
3425
|
+
"id": "deprecated-components-flash-features--with-icon-action-dismiss",
|
|
3426
3426
|
"code": "() => (\n <Flash className={classes.WithIconActionDismiss}>\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Info\" />\n </div>\n <div className={classes.Message}>\n This is a flash message with an icon and an action.\n <Link href=\"/\"> Learn more.</Link>\n </div>\n <div className={classes.ActionsResponsive}>\n <Button>Join waitlist</Button>\n </div>\n <div className={classes.Close}>\n <IconButton variant=\"invisible\" icon={XIcon} aria-label=\"Dismiss\" />\n </div>\n </Flash>\n)"
|
|
3427
3427
|
}
|
|
3428
3428
|
],
|
|
3429
|
-
"importPath": "@primer/react",
|
|
3429
|
+
"importPath": "@primer/react/deprecated",
|
|
3430
3430
|
"props": [
|
|
3431
3431
|
{
|
|
3432
3432
|
"name": "full",
|
package/package.json
CHANGED