@aurora-ds/components 1.7.10 → 1.7.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.
package/dist/index.d.ts CHANGED
@@ -1137,7 +1137,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
1137
1137
  static getDerivedStateFromError: (error: Error) => ErrorBoundaryState;
1138
1138
  componentDidCatch(error: Error, info: ErrorInfo): void;
1139
1139
  private reset;
1140
- render(): string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
1140
+ render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | null | undefined;
1141
1141
  }
1142
1142
 
1143
1143
  type DefaultErrorFallbackProps = {
@@ -2097,7 +2097,14 @@ declare const Grid: FC<GridProps>;
2097
2097
  * Props for the Header component.
2098
2098
  * Accepts all style tokens from Box, forwarded to a native `<header>` element.
2099
2099
  */
2100
- type HeaderProps = SemanticBoxProps<HTMLElement>;
2100
+ type HeaderProps = SemanticBoxProps<HTMLElement> & {
2101
+ /**
2102
+ * When `true`, adds a 1px `borderBottom` using the `borderMain` color token.
2103
+ * Useful for visually separating the header from the page content.
2104
+ * @default false
2105
+ */
2106
+ withBorder?: boolean;
2107
+ };
2101
2108
 
2102
2109
  /**
2103
2110
  * Semantic `<header>` enriched with the same token-aware style props as `Box`.
@@ -2107,6 +2114,7 @@ type HeaderProps = SemanticBoxProps<HTMLElement>;
2107
2114
  * `banner` landmark when it is a direct child of `<body>`.
2108
2115
  *
2109
2116
  * @example <Header padding="md" display="flex" alignItems="center" gap="sm">…</Header>
2117
+ * @example <Header withBorder>…</Header>
2110
2118
  */
2111
2119
  declare const Header: FC<HeaderProps>;
2112
2120
 
@@ -3084,6 +3092,10 @@ type UseTransitionRenderReturnType = {
3084
3092
  * Closing sequence:
3085
3093
  * `isFadingIn=false` → CSS transition plays → after `duration` ms → `isVisible=false`.
3086
3094
  *
3095
+ * When `prefers-reduced-motion: reduce` is active the effective duration is forced to
3096
+ * `0` so the element is removed from the DOM immediately after hiding, in sync with
3097
+ * the near-instant CSS transition set by the global `globals.css` rule.
3098
+ *
3087
3099
  * @param isOpen - Whether the element should be shown.
3088
3100
  * @param duration - Transition duration in milliseconds (defaults to `DEFAULT_TRANSITION_DURATION_MS`).
3089
3101
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "1.7.10",
3
+ "version": "1.7.12",
4
4
  "type": "module",
5
5
  "description": "Aurora DS - React Components Library",
6
6
  "main": "dist/cjs/index.js",