@box/blueprint-web 6.41.2 → 6.41.4
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-esm/primitives/tabs/index.d.ts +1 -0
- package/lib-esm/primitives/tabs/tab-list.d.ts +1 -0
- package/lib-esm/primitives/tabs/tab-list.js +3 -2
- package/lib-esm/primitives/tabs/types.d.ts +1 -0
- package/lib-esm/search-input/search-input.d.ts +5 -0
- package/lib-esm/search-input/search-input.js +5 -3
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ export declare const Tabs: ((props: import("./types").TabsProps) => JSX.Element)
|
|
|
9
9
|
*/
|
|
10
10
|
TabList: import("react").ForwardRefExoticComponent<Omit<Omit<import("@ariakit/react").TabListProps<"div">, "store"> & {
|
|
11
11
|
variant?: import("./types").TabsVariant | undefined;
|
|
12
|
+
containerClassname?: string | undefined;
|
|
12
13
|
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
14
|
/**
|
|
14
15
|
* The content for a single Tab.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TabList: import("react").ForwardRefExoticComponent<Omit<Omit<import("@ariakit/react").TabListProps<"div">, "store"> & {
|
|
3
3
|
variant?: import("./types").TabsVariant | undefined;
|
|
4
|
+
containerClassname?: string | undefined;
|
|
4
5
|
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -8,14 +8,15 @@ import { useTabs } from './use-tabs.js';
|
|
|
8
8
|
const TabList = /*#__PURE__*/forwardRef(function TabList(props, ref) {
|
|
9
9
|
const {
|
|
10
10
|
className,
|
|
11
|
-
variant = 'default'
|
|
11
|
+
variant = 'default',
|
|
12
|
+
containerClassname
|
|
12
13
|
} = props;
|
|
13
14
|
const tab = useTabs();
|
|
14
15
|
if (!tab) {
|
|
15
16
|
throw new Error('TabList must be wrapped in a Tabs component');
|
|
16
17
|
}
|
|
17
18
|
return jsx("div", {
|
|
18
|
-
className: styles.tabsListContainer,
|
|
19
|
+
className: clsx(styles.tabsListContainer, containerClassname),
|
|
19
20
|
children: jsx(TabList$1, {
|
|
20
21
|
...props,
|
|
21
22
|
ref: ref,
|
|
@@ -3,6 +3,7 @@ import { type ReactNode } from 'react';
|
|
|
3
3
|
export type TabsVariant = 'default' | 'contentSwitcher';
|
|
4
4
|
export type TabListProps = Omit<PrimitiveTabListProps, 'store'> & {
|
|
5
5
|
variant?: TabsVariant;
|
|
6
|
+
containerClassname?: string;
|
|
6
7
|
};
|
|
7
8
|
export type TabPanelProps = Omit<PrimitiveTabPanelProps, 'store'>;
|
|
8
9
|
export type TabProps = PrimitiveTabProps & {
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
import { type SearchInputProps } from './types';
|
|
3
3
|
export declare const AccessibleXMark: () => JSX.Element;
|
|
4
4
|
export declare const AccessibleXMarkGlobal: () => JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated This uncontrolled version of SearchInput is deprecated.
|
|
7
|
+
* Currently, we have two SearchInput components: SearchInput and SearchInput.Controlled. In the future, both will be deprecated and replaced
|
|
8
|
+
* by a standardized version of the SearchInput component as part of EPIC: https://jira.inside-box.net/browse/DSYS-1216 effort.
|
|
9
|
+
*/
|
|
5
10
|
export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -15,9 +15,11 @@ const AccessibleXMarkGlobal = () => jsx(XMark, {
|
|
|
15
15
|
role: "presentation",
|
|
16
16
|
width: "1.25rem"
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated This uncontrolled version of SearchInput is deprecated.
|
|
20
|
+
* Currently, we have two SearchInput components: SearchInput and SearchInput.Controlled. In the future, both will be deprecated and replaced
|
|
21
|
+
* by a standardized version of the SearchInput component as part of EPIC: https://jira.inside-box.net/browse/DSYS-1216 effort.
|
|
22
|
+
*/
|
|
21
23
|
const SearchInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
22
24
|
const {
|
|
23
25
|
children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "6.41.
|
|
3
|
+
"version": "6.41.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@box/storybook-utils": "^0.0.7"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b5ed1ad632534166f23319540e923b5c0c2064f0",
|
|
61
61
|
"module": "lib-esm/index.js",
|
|
62
62
|
"main": "lib-esm/index.js",
|
|
63
63
|
"exports": {
|