@viasat/beam-react 2.39.1 → 2.39.3
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/lib/BadgeDot/BadgeDot.d.ts +6 -5
- package/lib/Divider/Divider.d.ts +5 -5
- package/lib/FileUpload/FileUpload.d.ts +4 -1
- package/lib/FloatingUI/FloatingUI.content.d.ts +4 -1
- package/lib/Header/HeaderNavigation.cjs.js +1 -1
- package/lib/Header/HeaderNavigation.d.ts +4 -8
- package/lib/Header/HeaderNavigation.es.js +9 -12
- package/lib/PageLayout/PageLayout.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { BadgeDotAppearance, BadgeDotEmphasis } from '@viasat/beam-shared/components/badgeDot';
|
|
2
3
|
import { ThemeTypes } from '@viasat/beam-shared/utils/constants';
|
|
3
4
|
/**
|
|
4
5
|
* # A11y things that a user must do:
|
|
@@ -8,11 +9,11 @@ import { ThemeTypes } from '@viasat/beam-shared/utils/constants';
|
|
|
8
9
|
* - aria-describedby: to associate the dot with the text if text is present
|
|
9
10
|
* - aria-label: to add a description to the dot when no visible text is present
|
|
10
11
|
*/
|
|
11
|
-
export interface BadgeDotProps extends
|
|
12
|
+
export interface BadgeDotProps extends ComponentPropsWithoutRef<'span'> {
|
|
12
13
|
/**
|
|
13
14
|
* Provide text for the BadgeDot
|
|
14
15
|
*/
|
|
15
|
-
children?:
|
|
16
|
+
children?: ReactNode;
|
|
16
17
|
/**
|
|
17
18
|
* Specify the theme of the BadgeDot. By default it inherits the theme from the parent
|
|
18
19
|
*/
|
|
@@ -21,12 +22,12 @@ export interface BadgeDotProps extends React.ComponentPropsWithoutRef<'span'> {
|
|
|
21
22
|
* Specify the appearance of the BadgeDot
|
|
22
23
|
* @default 'infoPrimary'
|
|
23
24
|
*/
|
|
24
|
-
appearance?:
|
|
25
|
+
appearance?: BadgeDotAppearance;
|
|
25
26
|
/**
|
|
26
27
|
* Specify the emphasis of the BadgeDot
|
|
27
28
|
* @default 'strong'
|
|
28
29
|
*/
|
|
29
|
-
emphasis?:
|
|
30
|
+
emphasis?: BadgeDotEmphasis;
|
|
30
31
|
/**
|
|
31
32
|
* Overrides default dot color
|
|
32
33
|
*/
|
package/lib/Divider/Divider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Spacing
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { Spacing } from '@viasat/beam-shared/utils';
|
|
3
3
|
import { DividerBorderColor, DividerOrientation, DividerBorderWidth, DividerBorderStyle, DividerAlignContent } from '@viasat/beam-shared/components/divider';
|
|
4
|
-
export interface DividerProps extends
|
|
4
|
+
export interface DividerProps extends ComponentPropsWithRef<'div'> {
|
|
5
5
|
/**
|
|
6
6
|
* Add text to the Divider
|
|
7
7
|
*/
|
|
@@ -20,7 +20,7 @@ export interface DividerProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
20
20
|
* Add equal padding to each side of the Divider
|
|
21
21
|
* @default '0'
|
|
22
22
|
*/
|
|
23
|
-
inset?:
|
|
23
|
+
inset?: Spacing;
|
|
24
24
|
/**
|
|
25
25
|
* Specify the width of the divider line
|
|
26
26
|
* @default 'md'
|
|
@@ -45,4 +45,4 @@ export interface DividerProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
45
45
|
*/
|
|
46
46
|
alignContent?: DividerAlignContent;
|
|
47
47
|
}
|
|
48
|
-
export declare const Divider:
|
|
48
|
+
export declare const Divider: import('react').ForwardRefExoticComponent<Omit<DividerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -68,7 +68,10 @@ export interface FileUploadProps extends React.ComponentPropsWithRef<'input'> {
|
|
|
68
68
|
*/
|
|
69
69
|
width?: string;
|
|
70
70
|
/**
|
|
71
|
-
* Specify the callback function that is called when a file is uploaded. Setting this prop will make upload asynchronous
|
|
71
|
+
* Specify the callback function that is called when a file is uploaded. Setting this prop will make upload asynchronous.
|
|
72
|
+
* The `actions` argument exposes `progress(percent: number)`, `success()`,
|
|
73
|
+
* `error(message: string)`, and `dismiss()` to report upload state back to the
|
|
74
|
+
* component; `abortSignal` fires when the user cancels the upload.
|
|
72
75
|
*/
|
|
73
76
|
onUpload?: (file: File, actions: FileActions, abortSignal: AbortSignal) => void;
|
|
74
77
|
/**
|
|
@@ -5,7 +5,10 @@ export type Overlay = boolean | FloatingOverlayProps | 'transparent';
|
|
|
5
5
|
export type FocusManagerProps = Omit<FloatingFocusManagerProps, 'children' | 'context'>;
|
|
6
6
|
export type FloatingUIContentProps = Omit<BoxProps, 'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderWidth' | 'shadow' | 'theme' | 'm' | 'mAfter' | 'mBefore' | 'mBottom' | 'mTop' | 'mx' | 'my'> & {
|
|
7
7
|
/**
|
|
8
|
-
* Specify if the content should render with an overlay
|
|
8
|
+
* Specify if the content should render with an overlay.
|
|
9
|
+
* Pass `true` for a default dimmed scrim, `'transparent'` for an invisible
|
|
10
|
+
* click-blocking overlay, or a `FloatingOverlayProps` object (e.g. to lock
|
|
11
|
+
* scroll or apply custom styling) for full control. Omit or `false` for none.
|
|
9
12
|
* @default false
|
|
10
13
|
*/
|
|
11
14
|
overlay?: Overlay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("../_Navigation/Navigation.cjs.js"),o=require("../../chunks/NavigationItem.PeFGKPy2.js");function r({className:s,...i}){return e.jsx(n._Navigation,{"aria-label":"Main Navigation",...i})}const g=t.memo(r),a=g;a.displayName="HeaderNavigation";a.Item=o._NavigationItem;exports.HeaderNavigation=a;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { NavigationProps } from '../_Navigation';
|
|
2
|
+
import { _NavigationItem } from '../_Navigation/NavigationItem';
|
|
2
3
|
export type HeaderNavigationProps = NavigationProps;
|
|
3
4
|
declare function _HeaderNavigation({ className, ...props }: HeaderNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} & {
|
|
5
|
+
declare const _Memo: import('react').MemoExoticComponent<typeof _HeaderNavigation>;
|
|
6
|
+
export declare const HeaderNavigation: typeof _Memo & {
|
|
7
7
|
displayName: string;
|
|
8
|
-
Item:
|
|
9
|
-
readonly type: (props: import('../_Navigation').NavigationItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
} & {
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
8
|
+
Item: typeof _NavigationItem;
|
|
13
9
|
};
|
|
14
10
|
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { memo as t } from "react";
|
|
3
|
-
import { _Navigation as
|
|
4
|
-
import "../../chunks/NavigationItem.Dj8FWMjs.js";
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */ e
|
|
3
|
+
import { _Navigation as e } from "../_Navigation/Navigation.es.js";
|
|
4
|
+
import { _ as m } from "../../chunks/NavigationItem.Dj8FWMjs.js";
|
|
5
|
+
function r({ className: N, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ o(e, { "aria-label": "Main Navigation", ...i });
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
displayName: "HeaderNavigationItem"
|
|
12
|
-
})
|
|
13
|
-
});
|
|
8
|
+
const n = t(r), a = n;
|
|
9
|
+
a.displayName = "HeaderNavigation";
|
|
10
|
+
a.Item = m;
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
a as HeaderNavigation
|
|
16
13
|
};
|
|
@@ -9,7 +9,10 @@ export interface PageLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
*/
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
/**
|
|
12
|
-
* Configuration for SideNav and Header passed to SideNavContext
|
|
12
|
+
* Configuration for SideNav and Header, passed to SideNavContext.
|
|
13
|
+
* Accepts `{ withMobile?: boolean; defaultOpen?: boolean }` — `withMobile`
|
|
14
|
+
* enables mobile responsive behavior (default `true`); `defaultOpen` sets the
|
|
15
|
+
* SideNav's initial open state (default `false`).
|
|
13
16
|
*/
|
|
14
17
|
sideNavConfig?: SideNavConfig;
|
|
15
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viasat/beam-react",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.3",
|
|
4
4
|
"description": "React component library for the Beam design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Viasat",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@viasat/beam-fonts": "2.39.
|
|
63
|
-
"@viasat/beam-shared": "2.39.
|
|
64
|
-
"@viasat/beam-styles": "2.39.
|
|
65
|
-
"@viasat/beam-tokens": "2.39.
|
|
66
|
-
"@viasat/beam-icons": "2.39.
|
|
62
|
+
"@viasat/beam-fonts": "2.39.3",
|
|
63
|
+
"@viasat/beam-shared": "2.39.3",
|
|
64
|
+
"@viasat/beam-styles": "2.39.3",
|
|
65
|
+
"@viasat/beam-tokens": "2.39.3",
|
|
66
|
+
"@viasat/beam-icons": "2.39.3",
|
|
67
67
|
"clsx": "^1.2.1",
|
|
68
68
|
"@floating-ui/react": "^0.26.18",
|
|
69
69
|
"@stepperize/react": "^5.1.5",
|